trans.c (check_for_eliminated_entity): New function.
[gcc.git] / gcc / ada / ChangeLog
1 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2
3 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
4 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
5 (call_to_gnu): Invoke it instead of manually checking.
6
7 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
8
9 * gcc-interface/utils.c (finish_record_type): Force structural equality
10 checks if the record type is discriminated.
11
12 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
13
14 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
15 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
16 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
17 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
18 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
19 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
20 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
21
22 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
23
24 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
25 of TREE_CONSTANT_OVERFLOW.
26
27 2009-03-30 Joseph Myers <joseph@codesourcery.com>
28
29 PR rtl-optimization/323
30 * gcc-interface/misc.c (gnat_post_options): Set
31 flag_excess_precision_cmdline. Give an error for
32 -fexcess-precision=standard for processors where the option is
33 significant.
34
35 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR c/39323
38 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
39 on bit_align.
40
41 2009-03-11 Olivier Hainque <hainque@adacore.com>
42
43 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
44 checks processing, remove unintended TREE_TYPE walk on index type.
45
46 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
47
48 PR ada/39264
49 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
50 call make_packable_type on fat pointer types.
51 <E_Array_Subtype>: Likewise.
52 <E_Record_Subtype>: Call make_packable_type on all record types
53 except for fat pointer types.
54 (make_packable_type): Likewise.
55 (gnat_to_gnu_field): Likewise.
56
57 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
58
59 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
60 EH_MECHANISM change made on 2007-12-06.
61
62 2009-02-26 Andreas Schwab <schwab@suse.de>
63
64 PR ada/39172
65 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
66 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
67 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
68 (AWK): Substitute.
69 (target_cpu_default): Substitute.
70
71 2009-02-25 Laurent GUERBY <laurent@guerby.net>
72
73 PR ada/39221
74 * a-teioed.adb (Expand): Fix Result overflow.
75
76 2009-02-25 Laurent GUERBY <laurent@guerby.net>
77
78 * gcc-interface/Makefile.in: Fix multilib handling for
79 sparc64-linux.
80
81 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
82
83 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
84
85 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
86
87 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
88
89 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
90
91 * gcc-interface/deftarg.c: Remove.
92
93 2009-02-10 Olivier Hainque <hainque@adacore.com>
94 Eric Botcazou <ebotcazou@adacore.com>
95
96 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
97 (copy_alias_set): Rename into...
98 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
99 underlying array of unconstrained arrays for the new type as well.
100 If the old and new alias sets don't conflict, make one a subset of
101 the other as per the OP parameter.
102 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
103 <E_Record_Type>: Do not copy the alias set for derived types.
104 For all types, make the alias set of derived types a superset of
105 that of their parent type.
106 (make_aligning_type): Adjust calls to copy_alias_set.
107 (make_packable_type): Likewise.
108 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
109 Check for alias set conflict instead of strict equality to issue the
110 warning.
111
112 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
113
114 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
115 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
116 (copy_alias_set): Assert that arrays have the same aliasing settings.
117 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
118
119 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
120
121 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
122 Set TYPE_NONALIASED_COMPONENT on the array type.
123
124 2009-01-31 Laurent GUERBY <laurent@guerby.net>
125
126 * gcc-interface/Makefile.in: Fix mipsel linux handling.
127
128 2009-01-16 Jakub Jelinek <jakub@redhat.com>
129
130 * gcc-interface/Makefile.in: Fix multilib handling for
131 powerpc64-linux.
132
133 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
134
135 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
136 only useless conversions around renamed objects.
137
138 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
139
140 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
141 the _Tag field before any discriminants in the field list.
142 (components_to_record): Remove obsolete comment.
143
144 2008-12-09 Jakub Jelinek <jakub@redhat.com>
145
146 PR ada/38450
147 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
148 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
149 Likewise.
150
151 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
152
153 PR bootstrap/38262
154 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
155
156 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
157
158 PR ada/30827
159 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
160
161 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
162
163 * gcc-interface/decl.c: Fix various nits.
164
165 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
166
167 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
168
169 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
170
171 PR ada/38127
172 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
173 special-case boolean types. Propagate the name.
174 * gcc-interface/targtyps.c: Tweak comment.
175
176 2008-11-15 Geert Bosch <bosch@adacore.com>
177
178 * gcc-interface/trans.c (emit_check): Put back a final save_expr
179 to prevent exponential expansion during gimplification.
180
181 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
182
183 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
184
185 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
186
187 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
188 initialized to a static constant to be statically allocated even if
189 they are of a padding type, provided the original type also has
190 constant size.
191
192 2008-11-15 Laurent Guerby <laurent@guerby.net>
193
194 PR ada/37993
195 * gcc-interface/Makefile.in: Add multilib handling for x86_64
196 on darwin.
197 * system-darwin-x86_64.ads: New file.
198
199 2008-11-13 Olivier Hainque <hainque@adacore.com>
200
201 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
202 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
203 are explicit to the middle-end. Tidy.
204
205 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
206
207 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
208 (MINUS_NOMOD_EXPR): Likewise.
209 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
210 unreachable.
211 <PLUS_NOMOD_EXPR>: New case.
212 <MINUS_NOMOD_EXPR>: Likewise.
213 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
214 assignment statement instead of using an increment operator.
215
216 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
217
218 * system-irix-n64.ads: New file.
219 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
220 multilibs.
221
222 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
223
224 PR ada/37681
225 * system-solaris-x86_64.ads: New file.
226 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
227
228 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
229 Eric Botcazou <ebotcazou@adacore.com>
230
231 PR ada/34289
232 * lib.ads: (Enable_Switch_Storing): Declare.
233 * lib.adb: (Enable_Switch_Storing): New procedure.
234 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
235 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
236 (Display): Never display -gnatea
237 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
238
239 2008-11-07 Thomas Quinot <quinot@adacore.com>
240
241 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
242 for empty range in original base type, not converted result type.
243
244 2008-11-07 Geert Bosch <bosch@adacore.com>
245
246 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
247 and result for call to __gnat_mulv64.
248
249 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
250
251 * gcc-interface/trans.c: Fix formatting nits.
252
253 2008-11-07 Geert Bosch <bosch@adacore.com>
254
255 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
256 overflow check for constant result.
257
258 2008-11-07 Geert Bosch <bosch@adacore.com>
259
260 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
261 overflow check for addition/subtraction if neither operand is constant.
262
263 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
264
265 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
266 files for the target-dependent part of the runtime.
267 (SPARC/Linux): Likewise.
268
269 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
270
271 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
272 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
273 purposes.
274
275 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
276
277 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
278 in GC memory.
279
280 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
281
282 PR ada/19419
283 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
284 Generate a call to memmove for an assignment between overlapping
285 array slices.
286
287 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
288
289 PR target/37977
290 * gcc-interface/Makefile.in: Add multilib handling for
291 s390-linux and s390x-linux.
292
293 2008-10-24 Jakub Jelinek <jakub@redhat.com>
294
295 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
296 check-acats-subtargets and check-gnat-subtargets.
297 (check_acats_targets): New variable.
298 (check-acats-subtargets, check-acats%): New targets.
299 (check-acats): If -j is used and CHAPTERS is empty, run the testing
300 in multiple make goals, possibly parallel, and afterwards run
301 dg-extract-results.sh to merge the sum and log files.
302
303 2008-10-17 Geert Bosch <bosch@adacore.com>
304
305 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
306 to use only a single check instead of three, and avoid unnecessary
307 COMPOUND_EXPR.
308 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
309 creating more opportunities for optimizations.
310
311 2008-10-13 Jakub Jelinek <jakub@redhat.com>
312
313 PR middle-end/37601
314 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
315 NULL TYPE_DOMAIN.
316
317 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
318
319 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
320 dealing with volatileness to after code dealing with renaming.
321
322 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
323
324 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
325 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
326
327 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
328
329 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
330 (unchecked_convert): Use it to disable problematic folding with
331 VIEW_CONVERT_EXPR in the general case. Always disable it for the
332 special VIEW_CONVERT_EXPR built for integral types and cope with
333 its addressability issues by preserving the first conversion.
334
335 2008-10-01 Andreas Schwab <schwab@suse.de>
336
337 * system-linux-ppc64.ads: New file.
338 * gcc-interface/Makefile.in: Add multilib handling for
339 powerpc-linux.
340
341 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
342
343 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
344 to that of ptr_mode instead of word_mode.
345
346 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
347
348 PR ada/5911
349 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
350
351 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
352
353 PR ada/37641
354 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
355 instead of deprecated FILE_WRITE_PROPERTIES.
356
357 2008-09-22 Olivier Hainque <hainque@adacore.com>
358
359 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
360 are never assigned, volatile entities are not constant for code
361 generation purposes.
362
363 2008-09-21 Laurent Guerby <laurent@guerby.net>
364
365 PR ada/5911
366 * gcc-interface/Makefile.in: Add multilib handling for x86_64
367 and sparc.
368 * system-linux-sparcv9.ads: New file.
369
370 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
371
372 * exp_dbug.ads: Document new convention for the XVZ variable.
373 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
374 debug info if necessary for the type padding the component type.
375 <E_Array_Subtype>: Likewise.
376 (maybe_pad_type): Emit the XVZ variable in units.
377 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
378 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
379 on statements generated to initialize the parameter attributes cache.
380 Set the source line of the end label of the body on the special return
381 statement built for a procedure with copy-in copy-out parameters.
382
383 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
384
385 PR ada/37585
386 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
387 inlined external functions if they contain a nested function not
388 declared inline.
389
390 2008-09-18 Jan Hubicka <jh@suse.cz>
391
392 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
393 (end_subprog_body): Do not set DECL_INLINE.
394
395 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
396
397 PR ada/21327
398 * gnat_ugn.texi: Use proper format in direntry.
399
400 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
401
402 * gcc-interface/trans.c (gigi): Declare the name of the compilation
403 unit as the first global name.
404
405 2008-09-14 Jan Hubicka <jh@suse.cz>
406
407 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
408
409 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
410
411 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
412 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
413 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
414 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
415 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
416 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
417 gcc-interface/gigi.h, gcc-interface/trans.c,
418 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
419 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
420 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
421 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
422 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
423 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
424 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
425 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
426 comments.
427 * gnathtml.pl: Fix typos.
428
429 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
430
431 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
432 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
433 layer. RTEMS binds to OS provided adapter routines so there are
434 no modifications to s-osinte-rtems.adb.
435
436 2008-09-09 Arnaud Charlet <charlet@adacore.com>
437 Joel Sherrill <joel.sherrill@oarcorp.com>
438
439 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
440
441 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
442
443 * s-interr-hwint.adb: New file.
444
445 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
446 needed by s-interr-hwint.adb.
447
448 * s-osinte-vxworks-kernel.adb: New file.
449
450 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
451
452 * s-stchop-rtems.adb: Add file missed in early commit. Already
453 referenced in gcc-interface/Makefile.in.
454
455 2008-08-30 Thomas Quinot <quinot@adacore.com>
456
457 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
458 be built even without a separate libada directory.
459
460 2008-08-22 Arnaud Charlet <charlet@adacore.com>
461
462 * lib-xref.ads: Fix typo in subprogram reference definition.
463
464 2008-08-22 Robert Dewar <dewar@adacore.com>
465
466 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
467 to avoid warning.
468
469 * g-trasym.adb: Ditto
470
471 * s-utf_32.adb (Get_Category): Fix obvious typo
472
473 * s-wwdcha.adb: Minor code reorganization
474 Remove dead code
475
476 2008-08-22 Robert Dewar <dewar@adacore.com>
477
478 * checks.adb (Determine_Range): Deal with values that might be invalid
479
480 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
481 configuration switches.
482
483 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
484
485 * sem_prag.adb: Implement pragma Assume_No_Default_Values
486
487 * snames.adb, snames.ads, snames.h:
488 Add entries for pragma Assume_No_Invalid_Values
489
490 * switch-c.adb: Add processing for -gnatB switch
491
492 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
493
494 2008-08-22 Javier Miranda <miranda@adacore.com>
495
496 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
497 init procedure all the expanded code associated with the spec of
498 task types and protected types.
499
500 2008-08-22 Gary Dismukes <dismukes@adacore.com>
501
502 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
503 component expression copies rather than directly setting Etype and
504 Is_Static_Expression.
505
506 2008-08-22 Gary Dismukes <dismukes@adacore.com>
507
508 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
509 private types to allow for types derived from a private type with
510 preelaborable initialization, but return False for a private extension
511 (unless it has the pragma).
512
513 2008-08-22 Robert Dewar <dewar@adacore.com>
514
515 * opt.ads: Minor code reorganization (put entries in alpha order)
516
517 2008-08-22 Pascal Obry <obry@adacore.com>
518
519 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
520 spawn.
521
522 2008-08-22 Geert Bosch <bosch@adacore.com>
523
524 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
525 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
526
527 2008-08-22 Doug Rupp <rupp@adacore.com>
528
529 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
530 __gnat_set_features.
531
532 * init.c
533 (__gnat_set_features): New function.
534 (__gnat_features_set): New tracking variable.
535 (__gl_no_malloc_64): New feature global variable
536
537 2008-08-22 Ed Schonberg <schonberg@adacore.com>
538
539 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
540 use_type_clause in an instance.
541
542 2008-08-22 Bob Duff <duff@adacore.com>
543
544 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
545
546 2008-08-22 Robert Dewar <dewar@adacore.com>
547
548 * exp_ch6.adb: Minor reformatting
549
550 * exp_ch7.adb: Minor reformatting
551
552 * exp_ch7.ads: Put routines in proper alpha order
553
554 * exp_dist.adb: Minor reformatting
555
556 2008-08-22 Vincent Celier <celier@adacore.com>
557
558 * prj.ads: Minor comment update
559
560 2008-08-22 Robert Dewar <dewar@adacore.com>
561
562 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
563
564 2008-08-22 Ed Schonberg <schonberg@adacore.com>
565
566 * exp_tss.adb:
567 (Base_Init_Proc): For a protected subtype, use the base type of the
568 corresponding record to locate the propoer initialization procedure.
569
570 2008-08-22 Robert Dewar <dewar@adacore.com>
571
572 * checks.adb:
573 (In_Subrange_Of): New calling sequence
574 (Determine_Range): Prepare for new processing using base type
575
576 * exp_ch4.adb:
577 (Compile_Time_Compare): Use new calling sequence
578
579 * exp_ch5.adb:
580 (Compile_Time_Compare): Use new calling sequence
581
582 * sem_eval.adb:
583 (Compile_Time_Compare): New calling sequence allows dealing with
584 invalid values.
585 (In_Subrange_Of): Ditto
586
587 * sem_eval.ads:
588 (Compile_Time_Compare): New calling sequence allows dealing with
589 invalid values.
590 (In_Subrange_Of): Ditto
591
592 2008-08-22 Pascal Obry <obry@adacore.com>
593
594 * adaint.c: Fix possible race condition on win32_wait().
595
596 2008-08-22 Bob Duff <duff@adacore.com>
597
598 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
599 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
600 exp_intr.adb, exp_ch3.adb: Rename:
601 Exp_Ch7.Controlled_Type => Needs_Finalization
602 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
603 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
604 Has_Controlled_Parts
605 (Has_Some_Controlled_Component): Fix bug in array case.
606
607 2008-08-22 Robert Dewar <dewar@adacore.com>
608
609 * sem_ch8.adb: Minor reformatting
610
611 2008-08-22 Kevin Pouget <pouget@adacore.com>
612
613 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
614 Shared_Var_Close procedure specifications from package spec to package body.
615
616 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
617 RE_Shared_Var_WOpen entries.
618
619 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
620 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
621
622 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
623
624 * init.c: adjust EH support code on Alpha/Tru64 as well.
625
626 * raise-gcc.c: Add back a couple of comments.
627
628 2008-08-22 Ed Schonberg <schonberg@adacore.com>
629
630 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
631 involved and the return type is class-wide, use the type of the expression
632 for the generated access type. Suppress useless discriminant checks on the
633 allocator.
634
635 2008-08-22 Bob Duff <duff@adacore.com>
636
637 * exp_ch7.adb: Minor comment fix
638
639 * exp_ch6.ads: Minor comment fix
640
641 2008-08-22 Thomas Quinot <quinot@adacore.com>
642
643 * sem_ch8.adb: Minor reformatting
644 Minor code reorganization (introduce subprogram to factor duplicated
645 code).
646
647 2008-08-22 Sergey Rybin <rybin@adacore.com>
648
649 * gnat_ugn.texi: Change the description of gnatcheck default rule
650 settings.
651
652 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
653
654 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
655 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
656 do not adjust the PC anymore.
657 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
658 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
659
660 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
661 instead of _Unwind_GetIP.
662
663 2008-08-22 Gary Dismukes <dismukes@adacore.com>
664
665 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
666 with a range is transformed into a positional aggregate, any copied
667 component literals should be marked Is_Static_Expression.
668
669 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
670 not being known at at compile time when Configurable_Run_Time_Mode is
671 true.
672
673 2008-08-22 Robert Dewar <dewar@adacore.com>
674
675 * exp_attr.adb:
676 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
677 Read or Input attribute.
678
679 2008-08-22 Ed Schonberg <schonberg@adacore.com>
680
681 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
682 clauses in related units is redundant, if one of the units is a package
683 instantiation, use its instance_spec to determine which unit is the
684 ancestor of the other.
685
686 2008-08-22 Javier Miranda <miranda@adacore.com>
687
688 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
689 attributes add missing support to handle designated types that come
690 from the limited view.
691
692 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
693
694 2008-08-22 Sergey Rybin <rybin@adacore.com>
695
696 * vms_data.ads: Add entry for new gnatcheck -mNNN option
697
698 * gnat_ugn.texi: Add description for gnatcheck option '-m'
699
700 2008-08-22 Sergey Rybin <rybin@adacore.com>
701
702 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
703 acoording to the latest changes in the metric rule interface
704
705 2008-08-22 Vincent Celier <celier@adacore.com>
706
707 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
708 (Check): Check if the file names registered in the ALI file for the
709 spec, the body and each of the subunits are the ones expected.
710
711 2008-08-22 Robert Dewar <dewar@adacore.com>
712
713 * g-catiio.adb: Code cleanup.
714
715 2008-08-20 Vincent Celier <celier@adacore.com>
716
717 * make.adb (Gnatmake): Remove extra space in version line
718
719 * ali.adb:
720 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
721 as the name may already have been entered in the table by the Project
722 Manager.
723
724 2008-08-20 Jose Ruiz <ruiz@adacore.com>
725
726 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
727 weak symbols so we use the version provided by MaRTE when available.
728
729 2008-08-20 Emmanuel Briot <briot@adacore.com>
730
731 * g-catiio.ads, g-catiio.adb:
732 (Value): Avoid an unnecessary system call to Clock in most cases.
733 This call is only needed when only the time is provided in the string,
734 and ignored in all other cases. This is more efficient.
735
736 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
737
738 * raise-gcc.c: Fix formatting nits.
739
740 2008-08-20 Robert Dewar <dewar@adacore.com>
741
742 * sem_ch13.adb:
743 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
744 non-existing component clause.
745
746 * exp_ch5.adb: Minor reformatting
747
748 * g-comlin.adb: Minor reformatting
749
750 * make.adb: Minor reformatting
751
752 * prj-proc.adb: Minor reformatting
753
754 * stylesw.ads: Minor reformatting
755
756 2008-08-20 Vincent Celier <celier@adacore.com>
757
758 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
759 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
760 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
761 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
762 and a switch is not recognized by gnatmake.
763 (Gnatmake): Implement new scheme for gnatmake switches and global
764 compilation switches.
765 (Switches_Of): Try successively Switches (<file name>),
766 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
767
768 2008-08-20 Ed Schonberg <schonberg@adacore.com>
769
770 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
771 implement style check that overriding operations are explicitly marked
772 at such.
773
774 * style.ads (Missing_Overriding): new procedure that provides interface
775 to previous one.
776
777 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
778 that the declaration or body of overriding operations carries an
779 explicit overriding indicator.
780
781 * sem_ch8.adb
782 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
783 explicit indicator should be present.
784
785 * sem_ch6.adb (Verify_Overriding_Indicator,
786 Check_Overriding_Indicator): If operation is overriding, check whether
787 declaration and/or body of subprogram should be present
788
789 2008-08-20 Vincent Celier <celier@adacore.com>
790
791 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
792 gprbuild when casing is MixedCase, whatever the casing of the letters
793 in the file name.
794
795 2008-08-20 Gary Dismukes <dismukes@adacore.com>
796
797 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
798 creating dummy init proc.
799 (Requires_Init_Proc): Return False in the case No_Default_Initialization
800 is in force and the type does not have associated default
801 initialization. Move test of Is_Public (with tests of restrictions
802 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
803 for default initialization.
804
805 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
806
807 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
808 of any alias or prefix but having attached parameters (as \"-O2\").
809
810 2008-08-20 Robert Dewar <dewar@adacore.com>
811
812 * s-fileio.adb: Minor reformatting
813
814 2008-08-20 Thomas Quinot <quinot@adacore.com>
815
816 * exp_strm.adb (Build_Elementary_Input_Call,
817 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
818 selects the stream attribute routines for long float types.
819
820 2008-08-20 Vincent Celier <celier@adacore.com>
821
822 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
823
824 * prj.ads (Array_Data): Add a component Location
825
826 2008-08-20 Ed Schonberg <schonberg@adacore.com>
827
828 * sem_prag.adb:
829 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
830 argument for ASIS and navigation use.
831
832 2008-08-20 Ed Schonberg <schonberg@adacore.com>
833
834 * einfo.ads: Add comment.
835
836 2008-08-20 Bob Duff <duff@adacore.com>
837
838 * sem_eval.ads: Minor comment fix.
839
840 2008-08-20 Bob Duff <duff@adacore.com>
841
842 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
843 folding. We were folding things like "False and then ...", but not
844 "X and then ..." where X is a constant whose value is known at compile
845 time.
846
847 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
848
849 * exp_ch5.adb (Controlled_Type): New routine.
850 (Expand_N_Extended_Return_Statement): When generating a move of the
851 final list in extended return statements, check the type of the
852 function and in the case of double expanded return statements, the type
853 of the returned object.
854 (Expand_Simple_Function_Return): Perform an interface conversion when
855 the type of the returned object is an interface and the context is an
856 extended return statement.
857
858 2008-08-20 Ed Schonberg <schonberg@adacore.com>
859
860 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
861 and the full view is visible, set flag on full view as well.
862
863 2008-08-20 Thomas Quinot <quinot@adacore.com>
864
865 * g-comlin.adb: Minor reformatting
866 Minor code reorganization.
867
868 * freeze.adb: Minor reformatting
869
870 2008-08-20 Vincent Celier <celier@adacore.com>
871
872 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
873 source of another project.
874
875 2008-08-20 Pascal Obry <obry@adacore.com>
876
877 * s-os_lib.ads: Minor reformatting.
878
879 2008-08-20 Arnaud Charlet <charlet@adacore.com>
880
881 * gnatvsn.ads: Minor reformatting.
882
883 2008-08-20 Arnaud Charlet <charlet@adacore.com>
884
885 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
886 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
887 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
888 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
889 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
890 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
891 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
892 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
893 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
894 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
895 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
896 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
897 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
898 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
899 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
900 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
901 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
902 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
903 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
904 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
905 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
906 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
907 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
908 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
909 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
910 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
911 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
912 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
913 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
914 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
915 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
916 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
917 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
918 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
919 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
920 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
921 s-poosiz.adb, link.c: Fix copyright notice.
922
923 2008-08-20 Arnaud Charlet <charlet@adacore.com>
924
925 * g-comlin.ads: Update comments.
926
927 2008-08-20 Ed Schonberg <schonberg@adacore.com>
928
929 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
930
931 2008-08-20 Gary Dismukes <dismukes@adacore.com>
932
933 * exp_ch11.adb:
934 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
935 Make_Implicit_Exception_Handler when rewriting an exception handler with
936 a choice parameter, and pass the handler's Sloc instead of that of the
937 handled sequence of statements. Make_Implicit_Exception_Handler sets the
938 Sloc to No_Location (unless debugging generated code), which we don't
939 want for the case of a user handler.
940
941 2008-08-20 Robert Dewar <dewar@adacore.com>
942
943 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
944
945 * sem_ch13.adb:
946 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
947 now labeled as info msgs, not warnings.
948
949 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
950
951 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
952
953 * a-textio.adb: Remove redundant test.
954
955 * a-witeio.adb: Minor code reorganization
956 Remove redundant test found working on another issue
957
958 * a-ztexio.adb: Minor code reorganization
959 Remove redundant test found working on another issue
960
961 2008-08-20 Thomas Quinot <quinot@adacore.com>
962
963 * s-fileio.adb (Open) Use C helper function to determine whether a
964 given errno value corresponds to a "file not found" error.
965
966 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
967
968 2008-08-20 Jose Ruiz <ruiz@adacore.com>
969
970 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
971 to get access to the per-task errno variable.
972 (__set_errno for MaRTE): Do not redefine this function here since it is
973 already defined in MaRTE.
974
975 2008-08-20 Tristan Gingold <gingold@adacore.com>
976
977 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
978
979 2008-08-20 Robert Dewar <dewar@adacore.com>
980
981 * freeze.adb: Minor reformatting
982
983 * g-comlin.adb: Minor reformatting
984
985 * g-socket.adb: Minor reformatting
986
987 * g-socthi-mingw.adb: Minor reformatting
988
989 * g-stheme.adb: Minor reformatting
990
991 2008-08-20 Ed Schonberg <schonberg@adacore.com>
992
993 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
994 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
995 confusion between partial and full views of an ancestor of the context
996 type when the parent is a private extension declared in a parent unit,
997 and full views are available for the context type.
998
999 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1000 Robert Dewar <dewar@adacore.com>
1001
1002 PR ada/30827
1003 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
1004 version string.
1005 Move comment in the right place.
1006 * g-comver.adb (Version): Look for a zero-termination in
1007 addition to a closing parenthesis.
1008
1009 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1010
1011 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
1012 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
1013 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
1014 Is_Package_Or_Generic_Package instead of hand-crafted tests.
1015
1016 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1017
1018 PR ada/15808
1019 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
1020 as well.
1021
1022 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1023
1024 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
1025
1026 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1027
1028 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
1029 for back-copy statements in lieu of that of the actual.
1030
1031 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1032
1033 PR ada/20548
1034 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
1035 setjmp test consistently. Adjust for new behavior of flag_stack_check.
1036 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
1037 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
1038
1039 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
1040
1041 PR ada/36777
1042 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1043 * sem_attr.adb (Check_Type): The current instance of a protected
1044 object is not a type name.
1045 (Analyze_Access_Attribute): Accept instances of protected objects.
1046 (Analyze_Attribute, Attribute_Address clause): Ditto.
1047 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1048 the prefix as being the current instance if needed.
1049
1050 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1051
1052 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1053 Remove duplicate s-win32.o. Add s-winext.o.
1054
1055 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1056
1057 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1058 with SOSC.SOCK__STREAM.
1059 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1060 SOSC.MSG_OOB.
1061
1062 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1063
1064 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1065 * gsocket.h, socket.c: Update to support RTEMS.
1066 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1067
1068 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
1069 Robert Dewar <dewar@adacore.com>
1070
1071 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1072 left argument even when right argument is 0.
1073 (Expand_N_Op_Mod): Ditto when right argument is 1.
1074 (Expand_N_Op_Multiply): Ditto when any argument is 0.
1075 (Expand_N_Op_Rem): Ditto when right argument is 1.
1076
1077 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1078
1079 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1080 by warn_unused.
1081
1082 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1083
1084 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1085 from Freeze_Entity. Used to generate cross-reference information for
1086 types declared in generic packages.
1087
1088 2008-08-08 Thomas Quinot <quinot@adacore.com>
1089
1090 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1091 compatibility shim.
1092
1093 2008-08-08 Thomas Quinot <quinot@adacore.com>
1094
1095 * gsocket.h:
1096 On Windows, include <errno.h> and redefine only selected errno values
1097 from their <winsock2.h> definitions.
1098
1099 * s-osinte-freebsd.ads: Minor reformatting
1100
1101 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1102
1103 * g-soccon.ads: New file.
1104
1105 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1106 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1107 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1108 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1109 unit, to allow building software that depends on this internal unit
1110 with both older and newer compilers.
1111
1112 2008-08-08 Robert Dewar <dewar@adacore.com>
1113
1114 * s-strxdr.adb: Minor reformatting
1115
1116 2008-08-08 Bob Duff <duff@adacore.com>
1117
1118 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1119 checking for integer operations (including division by zero)", which
1120 is wrong -- divide by zero is not part of overflow checking.
1121 Also added misc clarification about what check-suppression means.
1122
1123 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1124
1125 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
1126
1127 * g-comlin.adb (Add_Switch): Handle addition of switches at the
1128 begining of the command line.
1129 (Append, Add): Renaming of Append to Add as this now allows addition
1130 at the begining of the list.
1131
1132 * g-comlin.ads (Add_Switch): Handle addition of switches at the
1133 begining of the command line.
1134
1135 2008-08-08 Thomas Quinot <quinot@adacore.com>
1136
1137 * g-sercom.ads:
1138 (Name): Document application scope (only legacy PC serial ports on
1139 Linux and Windows).
1140
1141 2008-08-08 Thomas Quinot <quinot@adacore.com>
1142
1143 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1144 previous change, not needed after all.
1145
1146 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1147
1148 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1149 exclusion indicator is present
1150
1151 2008-08-08 Robert Dewar <dewar@adacore.com>
1152
1153 * g-comlin.adb: Minor code reorganization
1154 Minor reformatting
1155
1156 * g-comlin.ads: Minor reformatting
1157
1158 * s-fileio.adb: Minor reformatting
1159
1160 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1161 Minor reformatting
1162
1163 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1164
1165 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1166 with s-oscons-tmplt.i.
1167
1168 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1169
1170 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1171
1172 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1173
1174 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1175 of incomplete type.
1176
1177 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1178 of a formal parameter of an incomplete type. Improve error message for
1179 other improper uses of incomplete types.
1180
1181 2008-08-06 Robert Dewar <dewar@adacore.com>
1182
1183 * gnat_ugn.texi: Clarify -gnato documentation
1184
1185 2008-08-06 Thomas Quinot <quinot@adacore.com>
1186
1187 * gcc-interface/Makefile.in,
1188 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1189 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1190 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1191 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1192 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1193 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1194 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1195 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1196 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1197 Remove GNAT.Sockets.Constants. This internal package is replaced by
1198 System.OS_Constants.
1199
1200 2008-08-06 Thomas Quinot <quinot@adacore.com>
1201
1202 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1203 Remove obsolete targets referencing gen-soccon
1204 When generating s-oscons.ads, use a file name that includes the
1205 THREAD_KIND, to ensure that the (potentially different) version from a
1206 previous build with a different threads flavour does not get reused.
1207
1208 2008-08-06 Thomas Quinot <quinot@adacore.com>
1209
1210 * sem_res.adb: Minor reformatting
1211
1212 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1213 only when the operating system reports a non-existing file or directory
1214 (ENOENT), otherwise raise Name_Error.
1215
1216 * exp_ch11.adb: Minor reformatting
1217
1218 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1219
1220 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1221 incomplete, add the access_to_subprogram type to the list of private
1222 dependents only if the incomplete type will be completed in the current
1223 scope.
1224 (Build_Discriminant_Constraints): If the type of the discriminant is
1225 access_to_variable, reject a constraint that is access_to_constant.
1226
1227 2008-08-06 Thomas Quinot <quinot@adacore.com>
1228
1229 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1230 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1231 g-sttsne-dummy.ads: New files.
1232
1233 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1234 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1235
1236 2008-08-06 Pascal Obry <obry@adacore.com>
1237
1238 * adaint.c: Another fix for ACL support on Windows.
1239
1240 2008-08-06 Javier Miranda <miranda@adacore.com>
1241
1242 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1243 expansion of calls to subprograms using selected components.
1244
1245 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1246
1247 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1248 dereference is needed because a subtype of an access_to_subprogram is
1249 simply an access-subtype
1250
1251 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1252
1253 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1254 parameters, always specify the expected separator.
1255
1256 2008-08-06 Thomas Quinot <quinot@adacore.com>
1257
1258 * xnmake.adb: Use new XUtil package for platform independent text
1259 output.
1260
1261 2008-08-06 Vincent Celier <celier@adacore.com>
1262
1263 * gnat_ugn.texi: Document compiler switch -gnateG
1264
1265 2008-08-06 Quentin Ochem <ochem@adacore.com>
1266
1267 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1268 in the case of an empty pattern size.
1269 (Compute_Result): Do not do any computation in the case of an empty
1270 pattern size.
1271 (Report_Result): Fixed computation of the overflow guard.
1272
1273 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1274
1275 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1276 finalization routine to prevent elaboration order anomalies in new
1277 finalization scheme.
1278
1279 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1280
1281 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1282 declaration for the same type.
1283
1284 2008-08-06 Thomas Quinot <quinot@adacore.com>
1285
1286 * sem.adb: Minor rewording (comment)
1287
1288 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1289
1290 * g-comlin.adb (Define_Switch, Get_Switches): New.
1291 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1292 ungrouping switches.
1293 (For_Each_Simple_Switch): Allow more control over parameters handling.
1294 This generic method now allows ungrouping of switches with parameters
1295 and switches with more than one letter after the prefix.
1296 (Set_Command_Line): Take care of switches that are prefixed with a
1297 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1298 example).
1299 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1300 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1301 the operation.
1302 (Start, Alias_Switches, Group_Switches): Take care of parameters
1303 possibly present inside a group.
1304
1305 * g-comlin.ads (Define_Switch): New method used to define a list of
1306 expected switches, that are necessary for correctly ungrouping switches
1307 with more that one character after the prefix.
1308 (Get_Switches): Method that builds a getopt string from the list of
1309 switches as set previously by Define_Switch.
1310 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1311 status of the operation. Also allow the removal of switches with
1312 parameters only.
1313 (Command_Line_Configuration_Record): Maintain a list of expected
1314 switches.
1315
1316 2008-08-06 Doug Rupp <rupp@adacore.com>
1317
1318 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1319 TARGET_MALLOC64 clear.
1320
1321 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1322 if TARGET_MALLOC64 clear.
1323
1324 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1325 (TARGET_MALLC64): New macro. Default to clear.
1326
1327 2008-08-06 Doug Rupp <rupp@adacore.com>
1328
1329 * gcc-interface/utils2.c (snames.h) Include
1330 (TARGET_ABI_OPEN_VMS): Initialize.
1331 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1332 for Convention C.
1333
1334 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1335
1336 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1337 null exclusion in a discriminant declaration
1338
1339 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1340 indicators when type is not an access type.
1341
1342 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1343 indicators when type is not an access type.
1344
1345 2008-08-06 Javier Miranda <miranda@adacore.com>
1346
1347 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1348 with the target interface before expanding the code of the interface
1349 conversion.
1350
1351 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1352
1353 * freeze.adb:
1354 (Freeze_Entity): A deferred constant does not violate the restriction
1355 No_Default_Initialization,
1356
1357 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1358 can carry a null exclusion indicator, and on which an error may be
1359 posted if the indicator is redundant.
1360
1361 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1362 does not apply to a subtype mark that already excludes null.
1363
1364 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1365 exclusion does not apply to a subtype mark that already excludes null.
1366
1367 2008-08-05 Thomas Quinot <quinot@adacore.com>
1368
1369 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1370
1371 2008-08-05 Doug Rupp <rupp@adacore.com>
1372
1373 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1374
1375 2008-08-05 Thomas Quinot <quinot@adacore.com>
1376
1377 * gsocket.h: Make this file includable in a Nucleus environment, which
1378 does not support sockets.
1379
1380 * socket.c: Remove Nucleus-specific hack.
1381
1382 2008-08-05 Pascal Obry <obry@adacore.com>
1383
1384 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1385
1386 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1387
1388 * sem_attr.adb:
1389 (Analyze_Attribute, case 'Result): handle properly the case where some
1390 operand of the expression in a post-condition generates a transient
1391 block.
1392
1393 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1394 right-hand side when it is an anonymous access_to_subprogram, to force
1395 static accessibility check when needed.
1396
1397 2008-08-05 Sergey Rybin <rybin@adacore.com>
1398
1399 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1400 rule according to the change in the rule option.
1401 Add documentation for -gnatw.b/-gnatw.B
1402
1403 2008-08-05 Robert Dewar <dewar@adacore.com>
1404
1405 * ug_words: Add entries for -gnatw.b/-gnatw.B
1406
1407 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1408
1409 2008-08-05 Vincent Celier <celier@adacore.com>
1410
1411 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1412 (File).
1413
1414 * a-ztdeio.adb: Ditto.
1415
1416 2008-08-05 Pascal Obry <obry@adacore.com>
1417
1418 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1419 readable attribute.
1420
1421 2008-08-05 Vincent Celier <celier@adacore.com>
1422
1423 * s-wchwts.adb:
1424 (Wide_String_To_String): Returns a String with the same 'First as its
1425 parameter S.
1426 (Wide_Wide_String_To_String): Ditto
1427
1428 * s-wchwts.ads:
1429 (Wide_String_To_String): Document that the lowest index of the returned
1430 String is equal to S'First.
1431
1432 2008-08-05 Thomas Quinot <quinot@adacore.com>
1433
1434 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1435
1436 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1437 s-oscons.ads
1438
1439 2008-08-05 Robert Dewar <dewar@adacore.com>
1440
1441 * opt.ads (Warn_On_Biased_Representation): New flag
1442
1443 * sem_ch13.adb:
1444 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1445 representation is required.
1446 (Minimum_Size): Don't allow biasing if enum rep clause case
1447
1448 * sem_warn.adb:
1449 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1450 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1451
1452 * usage.adb: Add lines for -gnatw.b/B switches
1453
1454 2008-08-05 Pascal Obry <obry@adacore.com>
1455
1456 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1457
1458 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1459
1460 2008-08-05 Thomas Quinot <quinot@adacore.com>
1461
1462 * socket.c: Minor reformatting.
1463
1464 2008-08-05 Robert Dewar <dewar@adacore.com>
1465
1466 * sem_ch3.adb: Minor reformatting
1467
1468 * prj-nmsc.adb: Minor reformatting
1469
1470 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1471
1472 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1473 visibility check on the component type if the simple test fails.
1474
1475 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1476
1477 * init.c (__gnat_install_handler for linux): If we are building the
1478 Xenomai run time then we need to do two additional things: avoid
1479 memory swapping and transform the Linux environment task into a native
1480 Xenomai task.
1481
1482 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1483 time): Use interface to Xenomai native skin and avoid linux-specific
1484 way of setting CPU affinity.
1485 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1486
1487 2008-08-05 Bob Duff <duff@adacore.com>
1488
1489 * checks.ads: Minor comment fix
1490
1491 2008-08-05 Thomas Quinot <quinot@adacore.com>
1492
1493 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1494 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1495 CS8.
1496
1497 2008-08-05 Robert Dewar <dewar@adacore.com>
1498
1499 * mlib.adb: Minor code reorganization
1500 Minor reformatting
1501
1502 * make.adb: Minor reformatting
1503
1504 * prj-attr.ads: Minor reformatting
1505
1506 * s-os_lib.adb: Minor reformatting
1507
1508 * s-fileio.adb: Minor code reorganization
1509 Minor reformatting
1510
1511 * prj.ads: Minor reformatting
1512
1513 2008-08-05 Bob Duff <duff@adacore.com>
1514
1515 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1516 unresolved initial value of "null", because it causes implicitly
1517 generated "=" operators to be ambiguous, and because this type should
1518 not be passed to gigi.
1519
1520 2008-08-05 Vincent Celier <celier@adacore.com>
1521
1522 * mlib.adb: Update comments.
1523
1524 * make.adb (Switches_Of): Check for Switches (others), before checking
1525 for Default_Switches ("Ada").
1526 (Gnatmake): Use Builder'Switches (others) in preference to
1527 Builder'Default_Switches ("Ada") if there are several mains.
1528
1529 * prj-attr-pm.adb:
1530 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1531 aggregate.
1532
1533 * prj-attr.adb:
1534 Add markers to indicates that attributes Switches allow others as index
1535 (Others_Allowed_For): New Boolean function, returning True for
1536 attributes with the mark.
1537 (Initialize): Recognize optional letter 'O' as the marker for
1538 associative array attributes where others is allowed as the index.
1539
1540 * prj-attr.ads:
1541 (Others_Allowed_For): New Boolean function
1542 (Attribute_Record): New Boolean component Others_Allowed
1543
1544 * prj-dect.adb:
1545 (Parse_Attribute_Declaration): For associative array attribute where
1546 others is allowed as the index, allow others as an index.
1547
1548 * prj-nmsc.adb:
1549 (Process_Binder): Skip associative array attributes with index others
1550 (Process_Compiler): Ditto
1551
1552 * prj-util.adb:
1553 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1554 index is All_Other_Names.
1555
1556 * prj.ads:
1557 (All_Other_Names): New constant
1558
1559 * prj-proc.adb:
1560 (Process_Declarative_Items): Skip associative array attribute when index
1561 is reserved word "others".
1562
1563 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1564
1565 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1566
1567 2008-08-05 Thomas Quinot <quinot@adacore.com>
1568
1569 * a-rttiev.adb: Minor reformatting (comments)
1570
1571 * gen-soccon.c: Rename to gen-oscons.c
1572
1573 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1574 GNAT.Sockets.Constants.
1575 Add new constants for GNAT.Serial_Communications and System.File_IO.
1576
1577 2008-08-05 Javier Miranda <miranda@adacore.com>
1578
1579 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1580 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1581 implementation of this routine has been simplified.
1582
1583 2008-08-05 Pascal Obry <obry@adacore.com>
1584
1585 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1586 Set_Read_Only Win32 implementation.
1587
1588 2008-08-05 Thomas Quinot <quinot@adacore.com>
1589
1590 * exp_strm.adb: Minor reformatting (comments)
1591
1592 * sem_ch12.adb: Minor reformatting.
1593
1594 2008-08-05 Robert Dewar <dewar@adacore.com>
1595
1596 * sem_ch3.adb: Minor reformatting
1597
1598 * checks.adb: Minor reformatting
1599
1600 2008-08-05 Thomas Quinot <quinot@adacore.com>
1601
1602 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1603 restriction on Prefix.
1604
1605 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1606
1607 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1608 methods needed to handle switch sections when building a command line.
1609 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1610 Current_Section): New public methods or methods modified to handle
1611 building command lines with sections.
1612 (Set_Command_Line): Take into account sections when analysing a switch
1613 string.
1614 (Start): Sort the switches by sections before iterating the command line
1615 elements.
1616
1617 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1618 Is_New_Section, Current_Section): New methods or methods modified to
1619 handle building command lines with sections.
1620
1621 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1622
1623 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1624 discriminants, indicate that the corresponding object declaration has
1625 no initialization, to prevent spurious warnings when the access type is
1626 null-excluding.
1627
1628 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1629
1630 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1631 Abort_Task, warn if the call appears within a protected operation.
1632
1633 2008-08-04 Robert Dewar <dewar@adacore.com>
1634
1635 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1636
1637 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1638
1639 * sem_ch3.adb:
1640 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1641 anonymous access to protected subprogram that is the return type of the
1642 specification of a subprogram body.
1643
1644 * sem_ch6.adb:
1645 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1646 subprogram, freeze it now to prevent access anomalies in the back-end.
1647
1648 * exp_ch9.adb: Minor code cleanup.
1649 Make sure that new declarations are inserted into the tree before
1650 analysis (from code reading).
1651
1652 2008-08-04 Robert Dewar <dewar@adacore.com>
1653
1654 * exp_ch5.adb:
1655 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1656 at point of return.
1657
1658 2008-08-04 Thomas Quinot <quinot@adacore.com>
1659
1660 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1661
1662 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1663
1664 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1665
1666 2008-08-04 Javier Miranda <miranda@adacore.com>
1667
1668 * sem_prag.adb (Process_Convention): Add missing support for
1669 N_Private_Extension_Declaration nodes.
1670
1671 2008-08-04 Robert Dewar <dewar@adacore.com>
1672
1673 * exp_ch4.adb: Minor reformatting
1674
1675 2008-08-04 Pascal Obry <obry@adacore.com>
1676
1677 * adaint.h: Add missing prototype.
1678
1679 * adaint.c: Refine support for Windows file attributes.
1680
1681 2008-08-04 Robert Dewar <dewar@adacore.com>
1682
1683 * sem_res.adb:
1684 (Valid_Conversion): Catch case of designated types having different
1685 sizes, even though they statically match.
1686
1687 2008-08-04 Javier Miranda <miranda@adacore.com>
1688
1689 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1690 added in previous patch to handle access to subprograms.
1691
1692 2008-08-04 Robert Dewar <dewar@adacore.com>
1693
1694 * freeze.adb:
1695 (Freeze_Entity): Only check No_Default_Initialization restriction for
1696 constructs that come from source
1697
1698 2008-08-04 Thomas Quinot <quinot@adacore.com>
1699
1700 * exp_ch6.adb: Minor comment fix.
1701
1702 * sem_ch4.adb: Minor reformatting.
1703
1704 2008-08-04 Robert Dewar <dewar@adacore.com>
1705
1706 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1707
1708 2008-08-04 Pascal Obry <obry@adacore.com>
1709
1710 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1711 file attributes.
1712
1713 2008-08-04 Javier Miranda <miranda@adacore.com>
1714
1715 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1716 for N_Formal_Object_Declaration nodes. Adding kludge required by
1717 First_Formal to provide its functionality with access to functions.
1718 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1719 for anonymous access types returned by functions.
1720
1721 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1722 conversion of null-excluding access types (required only once to force
1723 the generation of the required runtime check).
1724
1725 * sem_type.adb (Covers): minor reformating
1726
1727 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1728 with internally generated nodes. Avoid generating the error inside init
1729 procs.
1730
1731 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1732 (Resolve_Null): Generate the null-excluding check in case of assignment
1733 to a null-excluding object.
1734 (Valid_Conversion): Add missing support for anonymous access to
1735 subprograms.
1736
1737 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1738 anonymous access types whose designated type is an itype. This case
1739 occurs with anonymous access to protected subprograms types.
1740 (Analyze_Return_Type): Add missing support for anonymous access to
1741 protected subprogram.
1742
1743 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1744 subprograms addition of missing check on matching convention. Required
1745 to properly handle access to protected subprogram types.
1746
1747 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1748 null excluding access types.
1749
1750 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1751
1752 * sem_ch12.adb: Add comments
1753
1754 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1755 access type and the allocator is not initialized, warn rather than
1756 reporting an error.
1757
1758 2008-08-04 Robert Dewar <dewar@adacore.com>
1759
1760 * exp_ch4.adb: Minor reformatting
1761
1762 * exp_dist.adb: Minor reformatting
1763
1764 * g-comlin.adb: Minor reformatting
1765
1766 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1767
1768 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1769 target to the type of the aggregate in the case where the target object
1770 is class-wide.
1771
1772 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1773 result type is class-wide and inherently limited, and the expression
1774 has a specific type, create a return object of the specific type, for
1775 more efficient handling of returns of build-in-place aggregates (avoids
1776 conversions of the class-wide return object to the specific type on
1777 component assignments).
1778
1779 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1780 about a type mismatch for a class-wide function with a return object
1781 having a specific type when the object declaration doesn't come from
1782 source. Such an object can result from the expansion of a simple return.
1783
1784 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1785
1786 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1787
1788 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1789 compiling for 64bit windows.
1790
1791 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1792
1793 * g-comlin.adb (Group_Switches): Preserve the switch order when
1794 grouping and allow switch grouping of switches with more than one
1795 character extension (e.g. gnatw.x).
1796 (Args_From_Expanded): Remove this now obsolete method.
1797
1798 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1799
1800 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1801 chain at once, to ensure that type is properly decorated for back-end,
1802 when allocator appears within a loop.
1803
1804 2008-08-04 Kevin Pouget <pouget@adacore.com>
1805
1806 * snames.h, snames.adb, snames.ads:
1807 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1808
1809 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1810 Build_To_Any_Call and Build_TypeCode_Call procedures.
1811
1812 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1813
1814 * rtsfind.ads: Add corresponding names.
1815
1816 * tbuild.adb: Update prefix restrictions to allow '_' character.
1817
1818 2008-08-04 Doug Rupp <rupp@adacore.com>
1819
1820 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1821 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1822 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1823 use it. Calculate pointer range overflow using 64bit types.
1824
1825 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1826
1827 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1828 legal context for an anonymous access to subprogram.
1829
1830 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1831 indirect call, report success to the caller to include possible
1832 interpretation.
1833
1834 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1835 check when the type
1836 of the extended return is an anonymous access_to_subprogram type.
1837
1838 * sem_res.adb:
1839 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1840 access_to_subprogram and the context requires its return type, and a
1841 dereference has not been introduced previously.
1842
1843 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1844
1845 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1846 gnatcheck support in GPS.
1847
1848 2008-08-04 Vincent Celier <celier@adacore.com>
1849
1850 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1851 requested
1852
1853 2008-08-04 Vincent Celier <celier@adacore.com>
1854
1855 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1856 variable, but don't check the resulting value as it has no impact on
1857 the processing.
1858
1859 * opt.ads:
1860 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1861 when switch -gnateG is used.
1862
1863 * prep.adb:
1864 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1865 when the source is modified by the preprocessor and there is no
1866 preprocessing errors.
1867
1868 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1869
1870 * sinput-l.adb:
1871 (Load_File): Output the result of preprocessing if the source text was
1872 modified.
1873
1874 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1875
1876 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1877
1878 * ug_words: Add VMS equivalent for -gnateG
1879
1880 * vms_data.ads:
1881 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1882
1883 2008-08-04 Doug Rupp <rupp@adacore.com>
1884
1885 * gcc-interface/utils2.c:
1886 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1887 in 32bit descriptor.
1888
1889 2008-08-04 Robert Dewar <dewar@adacore.com>
1890
1891 * par-ch10.adb: Minor reformatting
1892
1893 * i-cobol.adb: Minor reformatting.
1894
1895 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1896
1897 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1898 anonymous access return type of a regular function that is not a
1899 compilation unit.
1900
1901 2008-08-04 Vincent Celier <celier@adacore.com>
1902
1903 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1904
1905 * snames.adb: New standard name Global_Compilation_Switches
1906
1907 * snames.ads: New standard name Global_Compilation_Switches
1908
1909 * make.adb: Correct spelling error in comment
1910
1911 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1912
1913 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1914 target.
1915
1916 2008-08-04 Thomas Quinot <quinot@adacore.com>
1917
1918 * sem_ch10.adb: Minor comment fix.
1919
1920 2008-08-04 Robert Dewar <dewar@adacore.com>
1921
1922 * restrict.adb: Improved messages for restriction warnings
1923
1924 * restrict.ads: Improved messages for restriction messages
1925
1926 * s-rident.ads (Profile_Name): Add No_Profile
1927
1928 2008-08-04 Robert Dewar <dewar@adacore.com>
1929
1930 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1931
1932 2008-08-04 Robert Dewar <dewar@adacore.com>
1933
1934 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1935
1936 2008-08-04 Vincent Celier <celier@adacore.com>
1937
1938 * prj-proc.adb:
1939 (Copy_Package_Declarations): When inheriting package Naming from a
1940 project being extended, do not inherit source exception names.
1941
1942 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1943
1944 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1945 list of declaration to find previous subprogram, do not go to the
1946 original node of a generic unit.
1947
1948 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1949
1950 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1951 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1952
1953 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1954
1955 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1956 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1957 and adjust for above renaming.
1958 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1959 gnu_expr_alt_type parameter. Convert the expression to it instead
1960 of changing its type in place.
1961 (build_function_stub): Adjust call to above function.
1962
1963 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1964
1965 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1966 code. Do not get full definition of deferred constants with address
1967 clause for a use. Do not ignore deferred constant definitions with
1968 address clause. Ignore constant definitions already marked with the
1969 error node.
1970 <object>: Remove obsolete comment. For a deferred constant with
1971 address clause, get the initializer from the full view.
1972 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1973 Rework and remove obsolete comment.
1974 <N_Object_Declaration>: For a deferred constant with address clause,
1975 mark the full view with the error node.
1976 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1977 formatting nits.
1978
1979 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1980
1981 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1982
1983 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1984 sem_prag.adb, snames.adb, snames.ads, snames.h,
1985 par-prag.adb: Undo previous stream related changes.
1986
1987 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1988
1989 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1990 Define enumeration type to designate different IO mechanisms.
1991 Enchance generic package Stream_Ops_Internal to include an
1992 implementation of Input and Output.
1993
1994 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1995 No_Stream_Optimization is active, choose the default byte IO
1996 implementations of stream attributes for Strings.
1997 Otherwise use the corresponding block IO version.
1998
1999 2008-08-01 Olivier Hainque <hainque@adacore.com>
2000
2001 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
2002 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
2003
2004 2008-08-01 Robert Dewar <dewar@adacore.com>
2005
2006 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
2007 convert plain identifier into defining identifier.
2008
2009 2008-08-01 Robert Dewar <dewar@adacore.com>
2010
2011 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
2012 warnings
2013
2014 * lib-xref.adb: Add error defense.
2015
2016 2008-08-01 Bob Duff <duff@adacore.com>
2017
2018 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
2019
2020 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2021
2022 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
2023 correct accessibility levels. In the "when others" case, retrieve the
2024 access level of the Etype of Prev rather than Prev_Orig, because the
2025 original exression has not always been analyzed.
2026
2027 2008-08-01 Robert Dewar <dewar@adacore.com>
2028
2029 * prj-nmsc.adb: Minor reformatting
2030
2031 * sem_ch4.adb: Minor reformatting
2032 Minor code reorganization
2033
2034 * prj.ads: Minor reformatting
2035
2036 * s-os_lib.adb: Minor reformatting
2037
2038 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
2039 half encodings
2040
2041 * scans.ads: Minor reformatting.
2042
2043 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2044 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2045
2046 * sem_res.adb:
2047 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2048
2049 * sem_ch12.adb: Minor comment reformatting
2050
2051 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2052 keyword
2053
2054 2008-08-01 Robert Dewar <dewar@adacore.com>
2055
2056 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2057 generating code
2058
2059 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2060
2061 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2062 converted is a real literal and the target type has static bounds,
2063 perform the conversion exactly to prevent floating-point anomalies on
2064 some targets.
2065
2066 2008-08-01 Vincent Celier <celier@adacore.com>
2067
2068 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2069
2070 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
2071
2072 * prj.adb (Object_Exist_For): Use Object_Generated, not
2073 Objects_Generated that is removed and was never modified anyway.
2074
2075 * prj.ads:
2076 (Path_Syntax_Kind): New enumeration type
2077 (Language_Config): New component Path_Syntax, defaulted to Host.
2078 Components PIC_Option and Objects_Generated removed, as they are not
2079 used.
2080
2081 * snames.adb: New standard name Path_Syntax
2082
2083 * snames.ads: New standard name Path_Syntax
2084
2085 2008-08-01 Vincent Celier <celier@adacore.com>
2086
2087 * mlib-utl.adb:
2088 (Adalib_Path): New variable to store the path of the adalib directory
2089 when procedure Specify_Adalib_Dir is called.
2090 (Lib_Directory): If Adalib_Path is not null, return its value
2091 (Specify_Adalib_Dir): New procedure
2092
2093 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2094
2095 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2096
2097 * sem_prag.adb:
2098 (Check_Precondition_Postcondition): If not generating code, analyze the
2099 expression in a postcondition that appears in a subprogram body, so that
2100 it is properly decorated for ASIS use.
2101
2102 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2103
2104 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2105 Orig_Prev to Prev in the case where the actual is N_Function_Call or
2106 N_Identifier. This was interfering with other cases that are rewritten
2107 as N_Identifier, such as allocators, resulting in passing of the wrong
2108 accessibility level, and based on testing this code is apparently no
2109 longer needed at all.
2110
2111 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2112
2113 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2114 procedure call whose prefix
2115 is a parameterless function call that returns an access_to_procedure.
2116
2117 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2118
2119 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2120 for RTX. Adding a suffix that is incremented at each iteration.
2121
2122 2008-08-01 Robert Dewar <dewar@adacore.com>
2123
2124 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2125 Raise_Exception
2126
2127 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
2128
2129 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2130 paths, which are authorized by Windows but can lead to errors when used
2131 elsewhere.
2132
2133 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2134
2135 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2136 a pending instantiation for the body of a subprogram that is to be
2137 inlined.
2138
2139 * sem_ch12.adb:
2140 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2141
2142 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2143 create a pending instance for its body, so that calls to the subprogram
2144 can be inlined by the back-end.
2145
2146 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2147
2148 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2149 rts-rtx-w32).
2150
2151 2008-08-01 Robert Dewar <dewar@adacore.com>
2152
2153 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2154
2155 2008-08-01 Doug Rupp <rupp@adacore.com>
2156
2157 * gnat_rm.texi: Document new mechanism Short_Descriptor.
2158
2159 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2160 mechanism values.
2161
2162 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2163 mechanism and Short_Descriptor mechanism values.
2164
2165 * snames.adb (preset_names): Add short_descriptor entry.
2166
2167 * snames.ads: Add Name_Short_Descriptor.
2168
2169 * types.h: Add new By_Short_Descriptor mechanism values.
2170
2171 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2172 mechanism and Short_Descriptor mechanism values.
2173
2174 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2175 values.
2176 (Descriptor_Codes): Modify range for new mechanism values.
2177
2178 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2179 mechanism values.
2180
2181 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2182 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2183
2184 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2185 (build_vms_descriptor32): New prototype.
2186 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2187
2188 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2189 argument in call fill_vms_descriptor.
2190
2191 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2192 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2193 (build_vms_descriptor): Renamed from build_vms_descriptor64.
2194 (convert_vms_descriptor32): New function.
2195 (convert_vms_descriptor64): New function.
2196 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2197 descriptors.
2198
2199 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2200 no longer needed.
2201
2202 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2203
2204 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2205 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2206 name.
2207
2208 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2209
2210 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2211 current directory so only fully qualified names are allowed.
2212
2213 2008-08-01 Robert Dewar <dewar@adacore.com>
2214
2215 * gnat_ugn.texi:
2216 Minor editing, remove uncomfortable use of semicolon
2217
2218 * s-ststop.adb: Add some ??? comments
2219
2220 * sem_ch10.adb: Minor reformatting
2221
2222 * snames.ads:
2223 Minor comment fixes, some pragmas were not properly
2224 categorized in the comments, documentation change only
2225
2226 * xref_lib.adb: Minor reformatting
2227
2228 * sinput.adb: Minor reformatting
2229
2230 * gnatchop.adb: Minor reformatting
2231
2232 * sem_util.ads: Minor reformatting.
2233
2234 * opt.ads: Minor documentation fix
2235
2236 * scng.adb: Minor reformatting
2237
2238 * prj-part.adb: Update comments
2239
2240 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2241
2242 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2243 tagged synchronized type, use corresponding record type.
2244
2245 2008-08-01 Doug Rupp <rupp@adacore.com>
2246
2247 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2248 dummy transfer address for debugging.
2249
2250 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2251
2252 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2253
2254 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2255
2256 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2257 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2258
2259 2008-07-31 Pascal Obry <obry@adacore.com>
2260
2261 * prj-nmsc.adb: Keep Object and Exec directory casing.
2262
2263 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2264
2265 * system-rtx-rtss.ads
2266 Change the default stack size. It is important to set the commit part.
2267
2268 * s-taprop-rtx.adb
2269 (Initialize): Get the clock resolution.
2270 (RT_Resolution): Return the clock resolution that is indicated by the
2271 system.
2272
2273 * s-parame-vxworks.adb
2274 Document that this body is used for RTX in RTSS (kernel) mode.
2275
2276 * gcc-interface/Makefile.in
2277 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2278 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2279 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2280 cannot ask for too big values.
2281
2282 2008-07-31 Robert Dewar <dewar@adacore.com>
2283
2284 * exp_aggr.adb: Minor reformatting
2285
2286 * makeutl.adb: Minor reformatting
2287
2288 * prj-env.adb: Minor reformatting
2289
2290 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2291
2292 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2293 tagged type is completed by a concurrent type.
2294
2295 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2296
2297 * sem_aggr.adb:
2298 (Resolve_Record_Aggregate): Bypass error that a type without
2299 components must have a "null record" aggregate when compiling for Ada
2300 2005, since it's legal to give an aggregate of form (others => <>)
2301 for such a type.
2302
2303 2008-07-31 Javier Miranda <miranda@adacore.com>
2304
2305 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2306 handle synchronized types. Required to handle well the object.operation
2307 notation applied to synchronized types.
2308
2309 2008-07-31 Quentin Ochem <ochem@adacore.com>
2310
2311 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2312 anymore - just used internally.
2313 Added handling of very small tasks - when the theoretical size is
2314 already full at the point of the call.
2315 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2316 not need to be added to the result.
2317
2318 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2319
2320 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2321 corresponding spec is a primitive wrapper. Update comment.
2322
2323 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2324
2325 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2326 (Gen_Adainit_Ada): Add the declaration, import and value set for
2327 configuration flag Canonical_Streams.
2328 (Gen_Adainit_C): Add the declaration and initial value of external
2329 symbol __gl_canonical_streams.
2330
2331 * init.c: Update the list of global values computed by the binder.
2332
2333 * opt.ads: Add flag Canonical_Streams.
2334
2335 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2336 semantically handled pragmas.
2337
2338 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2339 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2340
2341 * snames.adb: Add character value for name Canonical_Streams.
2342
2343 * snames.ads:
2344 Add Name_Canonical_Streams to the list of configuration pragmas.
2345 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2346
2347 * snames.h: Add a definition for Pragma_Canonical_Streams.
2348
2349 * s-ststop.adb:
2350 Add a flag and import to seize the value of external symbol
2351 __gl_canonical_streams. Update comment and initial value of constant
2352 Use_Block_IO.
2353
2354 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2355
2356 * gnat_ugn.texi:
2357 Add pragma Canonical_Streams to the list of configuration pragmas.
2358
2359 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2360
2361 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2362 has the form A.B.C and B is a unit renaming, analyze its compilation
2363 unit and add a with_clause on A.b to the context.
2364
2365 2008-07-31 Vincent Celier <celier@adacore.com>
2366
2367 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2368 return the empty string, instead of raising Constraint_Error.
2369
2370 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2371
2372 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2373
2374 * checks.adb (Apply_Accessibility_Check): Insert the check on
2375 Insert_Node.
2376
2377 * exp_attr.adb:
2378 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2379 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2380 Necessary to distinguish the insertion node because the dereferenced
2381 formal may come from a rename, but the check must be inserted in
2382 front of the attribute.
2383
2384 * exp_ch4.adb:
2385 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2386 call to Apply_Accessibility_Check.
2387 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2388 on call to Apply_Accessibility_Check.
2389 Minor reformatting
2390
2391 2008-07-31 Javier Miranda <miranda@adacore.com>
2392
2393 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2394 types when the candidate type is a synchronized type.
2395
2396 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2397 types, and complete management of synchronized types adding missing
2398 code to handle formal that is a synchronized type.
2399
2400 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2401 are not available and cause the compiler to blowup. Found compiling
2402 test with switch -gnatc
2403
2404 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2405 Has_Correct_Formal_Mode plus code cleanup.
2406
2407 2008-07-31 Bob Duff <duff@adacore.com>
2408
2409 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2410 recognized as two end-of-lines, but it should be just one.
2411
2412 2008-07-31 Thomas Quinot <quinot@adacore.com>
2413
2414 * exp_ch9.adb: Minor reformatting
2415
2416 * tbuild.ads: Fix several occurrences of incorrectly referring to
2417 Name_Find as Find_Name.
2418
2419 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2420
2421 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2422 and the context is an object declaration with non-static bounds, treat
2423 the aggregate as non-static.
2424
2425 2008-07-31 Vincent Celier <celier@adacore.com>
2426
2427 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2428 Move back spec of Parse_Single_Project to body, as it is not called
2429 outside of package Prj.Part.
2430 (Project_Data): Remove components Linker_Name, Linker_Path and
2431 Minimum_Linker_Options as they are no longer set.
2432 Remove function There_Are_Ada_Sources from package Prj and move code
2433 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2434
2435 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2436
2437 * mlib-utl.ads: Fix typo.
2438
2439 2008-07-31 Robert Dewar <dewar@adacore.com>
2440
2441 * sem_ch12.adb: Minor reformatting
2442
2443 2008-07-31 Sergey Rybin <rybin@adacore.com>
2444
2445 * gnat_ugn.texi: Change the description of the
2446 Overly_Nested_Control_Structures: now the rule always requires a
2447 positive parameter for '+R' option
2448
2449 2008-07-31 Thomas Quinot <quinot@adacore.com>
2450
2451 * g-pehage.adb: Minor reformatting
2452
2453 2008-07-31 Pascal Obry <obry@adacore.com>
2454
2455 * s-finimp.ads: Minor reformatting.
2456
2457 2008-07-31 Vincent Celier <celier@adacore.com>
2458
2459 * s-regexp.ads: Minor comment fix
2460
2461 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2462
2463 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2464 so that we can compile this file successfully with -gnatc.
2465
2466 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2467
2468 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2469 of the type when looking for stream subprograms for type String,
2470 Wide_String and Wide_Wide_String.
2471
2472 * s-ststop.adb: Change the initialization expression of constant
2473 Use_Block_IO.
2474
2475 2008-07-31 Geert Bosch <bosch@adacore.com>
2476
2477 * arit64.c:
2478 New file implementing __gnat_mulv64 signed integer multiplication with
2479 overflow checking
2480
2481 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2482
2483 * gcc-interface/gigi.h:
2484 (standard_types): Add ADT_mulv64_decl
2485 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2486
2487 * gcc-interface/utils.c:
2488 (init_gigi_decls): Add initialization of mulv64_decl
2489
2490 * gcc-interface/trans.c:
2491 (build_unary_op_trapv): New function
2492 (build_binary_op_trapv): New function
2493 (gnat_to_gnu): Use the above functions instead of
2494 build_{unary,binary}_op
2495
2496 * gcc-interface/Makefile.in
2497 (LIBGNAT_SRCS): Add arit64.c
2498 (LIBGNAT_OBJS): Add arit64.o
2499
2500 2008-07-31 Vincent Celier <celier@adacore.com>
2501
2502 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2503 Linker'Default_Switches are declared. Warn if they are declared.
2504
2505 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2506
2507 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2508 Insert_Actions to place the pointer declaration in the code, rather
2509 than Insert_Before_And_Analyze, so that insertions of temporaries are
2510 kept in the proper order when transient scopes are present.
2511
2512
2513 2008-07-31 Robert Dewar <dewar@adacore.com>
2514
2515 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2516
2517 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2518
2519 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2520 subprogram case
2521
2522 2008-07-31 Vincent Celier <celier@adacore.com>
2523
2524 * s-os_lib.adb: Minor comment fix
2525
2526 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2527
2528 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2529 transfer pre/postconditions from generic copy to original tree, so that
2530 they will appear in each instance.
2531 (Process_PPCs): Do not transform postconditions into a procedure in a
2532 generic context, to prevent double expansion of check pragmas.
2533
2534 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2535 can be the renaming of the
2536 current instance, so check validity of the name accordingly.
2537
2538 2008-07-31 Robert Dewar <dewar@adacore.com>
2539
2540 * mlib-utl.ads: Minor reformatting
2541
2542 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2543
2544 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2545 from context. This attribute must be usable in Ada95 mode.
2546 The attribute can appear in the body of a function marked
2547 Inline_Always, but in this case the postocondition is not enforced.
2548
2549 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2550 of an inlined call pre- and postconditions are legal
2551
2552 2008-07-31 Vincent Celier <celier@adacore.com>
2553
2554 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2555 were for gprmake only
2556
2557 2008-07-31 Robert Dewar <dewar@adacore.com>
2558
2559 * gnat_ugn.texi: Update -gnatN documentation.
2560
2561 * gnat_rm.texi: Add note about pre/postcondition
2562 pragmas not checked in conjunction with front-end inlining.
2563
2564 2008-07-31 Robert Dewar <dewar@adacore.com>
2565
2566 * g-pehage.adb, g-pehage.ads: Minor reformatting
2567
2568 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2569
2570 * mlib-utl.ads, prj-makr.ads: Add comments.
2571
2572 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2573
2574 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2575 [WINDOWS]: Add s-winext.o.
2576
2577 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2578
2579 PR ada/36554
2580 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2581 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2582 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2583 Set precision to 1 for subtype of BOOLEAN_TYPE.
2584 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2585 (make_type_from_size): Deal with BOOLEAN_TYPE.
2586 * gcc-interface/misc.c (gnat_print_type): Likewise.
2587 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2588 Set boolean_type_node as its translation in the table, as well
2589 as boolean_false_node for False and boolean_true_node for True.
2590 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2591 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2592 (create_param_decl): Deal with BOOLEAN_TYPE.
2593 (build_vms_descriptor): Likewise.
2594 (build_vms_descriptor64): Likewise.
2595 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2596
2597 2008-07-30 Robert Dewar <dewar@adacore.com>
2598
2599 * exp_ch9.adb: Minor reformatting
2600
2601 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2602 if no primitive operation is found.
2603
2604 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2605
2606 * sem_ch8.adb: Minor reformatting
2607
2608 2008-07-30 Laurent Pautet <pautet@adacore.com>
2609
2610 * g-pehage.adb:
2611 Remove a limitation on the length of the words handled by the minimal
2612 perfect hash function generator.
2613
2614 * g-pehage.ads:
2615 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2616 Fix some typos.
2617
2618 2008-07-30 Robert Dewar <dewar@adacore.com>
2619
2620 * gnatlink.adb: Minor reformatting
2621
2622 2008-07-30 Thomas Quinot <quinot@adacore.com>
2623
2624 * rtsfind.adb (Check_RPC): Check version consistency even when not
2625 generating RCI stubs. Provide more detailed error message in case of
2626 mismatch.
2627
2628 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2629
2630 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2631 as a actual in an instance, check for a missing attribute to prevent
2632 program_error on an illegal program.
2633
2634 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2635 error if primitive is not found, so that exception can be handled
2636 elsewhere on illegal programs.
2637
2638 2008-07-30 Robert Dewar <dewar@adacore.com>
2639
2640 * uintp.adb (UI_GCD): Fix potential overflow
2641
2642 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2643
2644 * einfo.adb: Flag245 is now used.
2645 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2646 check to include functions.
2647 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2648 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2649 include functions.
2650 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2651 to the list of displayed flags.
2652
2653 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2654 Wrapped_Entity. These two flags are now present in functions.
2655 New flag Is_Private_Primitive.
2656 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2657
2658 * exp_ch9.adb:
2659 (Build_Wrapper_Bodies): New subprogram.
2660 (Build_Wrapper_Body): The spec and body have been moved to in
2661 Build_Wrapper_ Bodies. Code cleanup.
2662 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2663 Wrappers are now generated for primitives declared between the private
2664 and full view of a concurrent type that implements an interface.
2665 (Build_Wrapper_Specs): New subprogram.
2666 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2667 creation mechanism with a call to Build_Wrapper_Bodies.
2668 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2669 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2670 (Expand_N_Task_Body): Replace the wrapper body creation
2671 mechanism with a call to Build_Wrapper_Bodies.
2672 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2673 creation mechanism with a call to Build_Wrapper_Specs.
2674 (Is_Private_Primitive_Subprogram): New subprogram.
2675 (Overriding_Possible): Code cleanup.
2676 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2677
2678 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2679
2680 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2681 (Process_Full_View): Build wrapper specs for all primitives
2682 that belong to a private view completed by a concurrent type
2683 implementing an interface.
2684
2685 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2686 is a primitive of a
2687 concurrent type with a private view that implements an interface, try to
2688 find the proper spec.
2689 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2690 primitive if the type of its first parameter is a non-generic tagged
2691 private type.
2692 (Analyze_Subprogram_Specification): Code reformatting.
2693 (Disambiguate_Spec): New routine.
2694 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2695 (Is_Private_Concurrent_Primitive): New routine.
2696
2697 * sem_ch6.ads:
2698 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2699
2700 2008-07-30 Doug Rupp <rupp@adacore.com>
2701
2702 * gigi.h (build_vms_descriptor64): New function prototype.
2703 (fill_vms_descriptor): Modified function prototype.
2704
2705 * utils.c (build_vms_descriptor64): New function.
2706
2707 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2708
2709 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2710 argument.
2711
2712 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2713 64bit and 32bit descriptor and save the 64bit version as an alternate
2714 TREE_TYPE in the parameter.
2715 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2716 thin pointer.
2717
2718 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2719
2720 2008-07-30 Robert Dewar <dewar@adacore.com>
2721
2722 * make.adb: Minor reformatting
2723
2724 * mlib-utl.adb: Minor reformatting
2725
2726 * osint.ads: Minor reformatting
2727
2728 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2729
2730 * adaint.c
2731 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2732 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2733 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2734
2735 * cio.c
2736 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2737 the function RtPrintf for console output.
2738
2739 * argv.c Do not use the environ variable for RTX.
2740
2741 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2742 been moved before the call to Osint.Add_Default_Search_Dirs in order
2743 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2744 from the appropriate run time.
2745
2746 * targparm.ads
2747 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2748 target is a RTSS module for RTX.
2749
2750 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2751 RTX_RTSS_Kernel_Module
2752 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2753
2754 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2755 exception handling mechanism for Windows and RTX in Win32 mode, but
2756 not for RTX in kernel mode (RTSS).
2757 (LIBGNAT_SRCS): Remove ada.h
2758
2759 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2760
2761 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2762 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2763 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2764 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2765 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2766 ALL_ADA_CFLAGS): Remove.
2767 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2768 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2769 (GCC_CFLAGS): Remove X_CFLAGS.
2770 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2771 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2772 (ADA_CFLAGS): Substitute.
2773
2774 2008-07-30 Laurent Guerby <laurent@guerby.net>
2775
2776 PR ada/5911
2777 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2778 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2779 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2780 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2781 by stamp-gnatlib2-rts.
2782
2783 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2784
2785 PR documentation/15479
2786 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2787 statement for GNAT. Add @copying stanza, use it. Update to
2788 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2789 title as Front-Cover Text.
2790 * gnat_rm.texi: Likewise.
2791 * gnat_ugn.texi: Likewise.
2792
2793 2008-07-29 Jan Hubicka <jh@suse.cz>
2794
2795 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2796 check.
2797
2798 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2799
2800 * gcc-interface: New directory.
2801
2802 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2803 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2804 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2805 to gcc-interface subdirectory.
2806
2807 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2808
2809 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2810
2811 2008-07-28 Jan Hubicka <jh@suse.cz>
2812
2813 * misc.c (gnat_post_options): Do not set flag_no_inline.
2814
2815 2008-07-28 Richard Guenther <rguenther@suse.de>
2816
2817 Merge from gimple-tuples-branch.
2818
2819 2008-07-22 Olivier Hainque <hainque@adacore.com>
2820
2821 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2822 this is called for an elab proc to be discarded if empty.
2823 * utils.c (end_subprog_body): Honor ELAB_P.
2824 (build_function_stub): Adjust call to end_subprog_body.
2825 * trans.c (Subprogram_Body_to_gnu): Likewise.
2826 (gigi): Reorganize processing of elab procs to prevent
2827 gimplifying twice, using the new end_subprog_body argument.
2828
2829 2008-07-19 Richard Guenther <rguenther@suse.de>
2830
2831 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2832 (utils.o): Likewise.
2833 * trans.c: Include tree-iterator.h.
2834 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2835 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2836 (set_expr_location_from_node): Likewise.
2837 (gigi): Tuplify.
2838 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2839 of GENERIC_NEXT.
2840 * utils.c: Include tree-iterator.h.
2841 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2842
2843 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2844
2845 * trans.c: Include gimple.h instead of tree-gimple.h.
2846 * utils.c: Same.
2847
2848 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2849
2850 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2851
2852 2008-07-25 Jan Hubicka <jh@suse.cz>
2853
2854 * utils.c (end_subprog_body): Remove inline trees check.
2855 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2856
2857 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2858
2859 * raise-gcc.c: Move tsystem.h before tm.h.
2860
2861 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2862
2863 * gnathtml.pl: New file.
2864
2865 2008-07-19 Olivier Hainque <hainque@adacore.com>
2866
2867 * targtyps.c (get_target_default_allocator_alignment): Use
2868 MALLOC_ABI_ALIGNMENT.
2869
2870 2008-07-17 Olivier Hainque <hainque@adacore.com>
2871
2872 * adaint.c (__MINGW32__ section): Include ctype.h and define
2873 a fallback ISALPHA if IN_RTS.
2874 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2875
2876 2008-07-17 Olivier Hainque <hainque@adacore.com>
2877
2878 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2879 argument, to apply to references in addition to definitions. Prevent
2880 setting TREE_STATIC on externals.
2881 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2882
2883 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2884
2885 PR documentation/15479
2886 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2887 Replace backets around optional parameters with @ovar
2888 where possible, use @r{[}, @r{]} otherwise.
2889 Replace some @r, @i, and @emph with @var where appropriate.
2890
2891 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2892
2893 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2894
2895 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2896
2897 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2898 -Wc++-compat warnings.
2899 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2900 __gnat_locate_exec_on_path): Likewise.
2901 * decl.c (annotate_value): Likewise.
2902 * misc.c (gnat_handle_option): Likewise.
2903 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2904 post_error_ne_tree): Likewise.
2905
2906 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2907
2908 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2909 version of its type, attempt to first convert its elements.
2910
2911 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2912
2913 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2914
2915 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2916
2917 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2918
2919 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2920
2921 * utils2.c (known_alignment): Derive the alignment from pointed-to
2922 types only if it is otherwise unknown.
2923 <INTEGER_CST>: Tidy.
2924 <MULT_EXPR>: Likewise.
2925 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2926 that of the base.
2927
2928 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2929
2930 PR ada/36573
2931 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2932
2933 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2934
2935 * gnat_rm.texi (Implementation Defined Characteristics)
2936 (Standard Library Routines): Use @smallexample for indented
2937 text. Drop Indentation outside examples.
2938 * gnat_ugn.texi: Likewise.
2939
2940 2008-06-13 Olivier Hainque <hainque@adacore.com>
2941
2942 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2943 if undefined.
2944 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2945 realignment with force_align_arg_pointer attribute on foreign
2946 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2947
2948 2008-06-13 Olivier Hainque <hainque@adacore.com>
2949
2950 * utils.c (rest_of_record_type_compilation): When computing
2951 encodings for the components of a variable size type, early
2952 strip conversions on the current position expression to make
2953 sure it's shape is visible. Use remove_conversions for this
2954 purpose.
2955
2956 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2957
2958 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2959 constrained subtype of a discriminated type, discard the fields that
2960 are beyond its limits according to its size.
2961
2962 2008-06-10 Olivier Hainque <hainque@adacore.com>
2963
2964 * utils.c (create_subprog_decl): If this is for the 'main' entry
2965 point according to the asm name, redirect main_identifier_node.
2966
2967 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2968
2969 * decl.c (components_to_record): Adjust the packedness for the
2970 qualified union as well.
2971
2972 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2973
2974 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2975 checks non fatal.
2976
2977 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2978
2979 * sem_res.adb (Large_Storage_Type): A type is large if it
2980 requires as many bits as Positive to store its values and its
2981 bounds are known at compile time.
2982 * sem_ch13.adb (Minimum_Size): Note that this function returns
2983 0 if the size is not known at compile time.
2984
2985 2008-06-06 Nicolas Setton <setton@adacore.com>
2986 Olivier Hainque <hainque@adacore.com>
2987
2988 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2989 attribute, parallel descriptive type attached to another
2990 type for debug info generation purposes.
2991 * utils.c (add_parallel_type): New function, register
2992 parallel type to be attached to a type.
2993 (get_parallel_type): New function, fetch a registered
2994 parallel type, if any.
2995 (rest_of_record_type_compilation): Register the parallel
2996 type we make for variable size records.
2997 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2998 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2999 parallel debug types we make.
3000 * trans.c (extract_encoding, decode_name): New functions.
3001 (gigi): If the DWARF attribute extensions are available, setup
3002 to use them.
3003 * lang.opt: Register language specific processing request
3004 for -gdwarf+.
3005 * misc.c (gnat_dwarf_extensions): New global variable. How much
3006 do we want of our DWARF extensions. 0 by default.
3007 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
3008 (gnat_post_options): Map gnat_dwarf_extensions to the
3009 commonuse_gnu_debug_info_extensions for later processing.
3010
3011 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
3012
3013 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
3014
3015 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3016
3017 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
3018 * gnat_ugn.texi (Style Checking)
3019 (Adding the Results of Compiler Checks to gnatcheck Output)
3020 (Example of Binder Output File): Fix typos.
3021 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
3022 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
3023 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
3024 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
3025 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
3026 sinfo.ads, utils.c: Fix typos in comments.
3027 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
3028
3029 2008-05-29 Thomas Quinot <quinot@adacore.com>
3030
3031 * sem_eval.adb: Minor reformatting
3032
3033 2008-05-29 Ed Schonberg <schonberg@adacore.com>
3034
3035 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
3036 is abstract, do not apply abstractness check on subprogram if this is
3037 a renaming declaration.
3038
3039 2008-05-29 Arnaud Charlet <charlet@adacore.com>
3040
3041 PR ada/864
3042 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3043 allow recognition of program suffix in addition to prefix.
3044
3045 * gnatchop.adb (Locate_Executable): Add support for prefix.
3046
3047 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3048 mlib-utl.adb: Adjust calls to Program_Name.
3049
3050 2008-05-29 Robert Dewar <dewar@adacore.com>
3051
3052 * sem_ch3.adb: Minor reformatting
3053 * sem_prag.adb: Minor reformatting
3054 * sem_res.adb: Minor reformatting
3055 * sinput-p.ads: Minor reformatting
3056
3057 2008-05-29 Javier Miranda <miranda@adacore.com>
3058
3059 * sem_util.adb:
3060 (Abstract_Interface_List): Add missing support for full type-declaration
3061 associated with synchronized types.
3062
3063 2008-05-29 Robert Dewar <dewar@adacore.com>
3064
3065 * sem_eval.adb (Is_Same_Value): Take care of several more cases
3066
3067 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3068
3069 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3070 access type, wrap the expression in a conversion to force an
3071 accessibility check.
3072
3073 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3074 accessibility checks even when expansion is disabled in order to
3075 generate messages in the presence of previous errors or in
3076 semantics-only mode.
3077
3078 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
3079
3080 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3081 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3082
3083 2008-05-28 Vincent Celier <celier@adacore.com>
3084
3085 PR ada/34446
3086 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3087 preprocessing expressions
3088
3089 2008-05-28 Vincent Celier <celier@adacore.com>
3090
3091 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3092 for preprocessing
3093
3094 * sinput-p.ads: Minor comment update and reformatting
3095
3096 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3097
3098 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3099 type has a deeper level than any master only when it is the type of an
3100 access parameter.
3101
3102 2008-05-28 Javier Miranda <miranda@adacore.com>
3103
3104 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3105
3106 2008-05-28 Javier Miranda <miranda@adacore.com>
3107
3108 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3109 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3110 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3111 Add code that was previously located in
3112 Find_Overridden_Synchronized_Primitive because it is only used here.
3113
3114 2008-05-28 Sergey Rybin <rybin@adacore.com>
3115
3116 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3117 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3118
3119 2008-05-28 Robert Dewar <dewar@adacore.com>
3120
3121 * restrict.ads:
3122 Add missing restrictions, and properly label all GNAT defined ones
3123
3124 * rtsfind.ads:
3125 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3126 Add entry for Ada.Task_Termination.Set_Specific_Handler
3127 Add entry for Ada.Task_Termination.Specific_Handler
3128
3129 * s-rident.ads:
3130 Add missing restrictions and properly mark all gnat defined ones
3131
3132 * sem_ch3.adb:
3133 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3134
3135 * sem_res.adb:
3136 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3137
3138 * gnat_rm.texi: Add missing restrictions, and properly label all
3139 GNAT defined ones
3140
3141 2008-05-28 Robert Dewar <dewar@adacore.com>
3142
3143 * restrict.adb:
3144 (Check_Restriction): violation of restriction No_Finalization is
3145 treated as a serious error to stop expansion
3146
3147 2008-05-28 Robert Dewar <dewar@adacore.com>
3148
3149 * exp_util.adb: Minor reformatting
3150 * exp_util.ads: Minor reformatting.
3151
3152 2008-05-28 Arnaud Charlet <charlet@adacore.com>
3153
3154 * Make-lang.in: Remove gprmake.
3155
3156 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3157
3158 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3159
3160 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3161 improper progenitor names, and avoid cascaded errors.
3162
3163 2008-05-28 Robert Dewar <dewar@adacore.com>
3164
3165 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3166
3167 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3168 a constant
3169
3170 2008-05-28 Robert Dewar <dewar@adacore.com>
3171
3172 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3173 size
3174
3175 2008-05-28 Robert Dewar <dewar@adacore.com>
3176
3177 * exp_ch5.adb:
3178 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3179
3180 2008-05-28 Javier Miranda <miranda@adacore.com>
3181
3182 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3183 for user-defined predefined primitives.
3184
3185 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3186 (Find_Overridden_Synchronized_Primitive): Ditto.
3187
3188 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3189
3190 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3191
3192 * a-ststio.adb, s-direio.adb:
3193 Further code clean up of previous change.
3194 Update comments.
3195
3196 2008-05-27 Vincent Celier <celier@adacore.com>
3197
3198 * prj-nmsc.adb: Minor reformatting
3199
3200 2008-05-27 Bob Duff <duff@adacore.com>
3201
3202 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3203 untagged private type with a tagged full type, where the full type has
3204 a self reference, create the corresponding class-wide type early, in
3205 case the self reference is "access T'Class".
3206
3207 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3208
3209 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3210 tasks and context is an object declaration. create master entity before
3211 expansion.
3212
3213 2008-05-27 Robert Dewar <dewar@adacore.com>
3214
3215 * mlib-prj.adb: Minor reformatting
3216
3217 * prj-part.adb: Minor reformatting
3218
3219 * prj.ads: Minor reformatting
3220
3221 * exp_ch3.adb: Minor reformatting.
3222
3223 * sem_ch3.ads: Minor reformatting
3224
3225 * sem_eval.adb: Minor reformatting
3226
3227 2008-05-27 Vincent Celier <celier@adacore.com>
3228
3229 * gnatcmd.adb:
3230 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3231
3232 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3233
3234 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3235 tasks, create an activation chain now, before the expansion into
3236 assignments and build-in-place calls that require the presence of an
3237 activation chain.
3238 (Backend_Processing_Possible): If the component type is inherently
3239 limited, the aggregate must be expanded into individual built-in-place
3240 assignments.
3241
3242 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3243 determine whether an allocation extra parameter must be built, to
3244 handle case of a private type whose full type is a discriminated type
3245 with defaults.
3246
3247 2008-05-27 Bob Duff <duff@adacore.com>
3248
3249 * gnat_rm.texi:
3250 Document the new behavior regarding trampolines.
3251
3252 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3253
3254 * a-direio.adb, a-sequio.adb: Replace address clause by
3255 unrestricted_access, simpler and compatible with .NET.
3256
3257 2008-05-27 Vincent Celier <celier@adacore.com>
3258
3259 * prj-part.adb:
3260 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3261 a project file, so that symbolic links are not resolved.
3262
3263 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3264
3265 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3266 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3267 portable across GNAT targets, since this kind of address clause is not
3268 supported by VM back-ends (.NET/JGNAT).
3269
3270 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3271
3272 * bindgen.adb: Update comments.
3273
3274 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3275
3276 2008-05-27 Vincent Celier <celier@adacore.com>
3277
3278 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3279 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3280 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3281 (Path_Information): New record type
3282 Use component of type Path_Information when there are two paths, one in
3283 canonical format and one in display format.
3284 Update the project manager to these new components.
3285
3286 2008-05-27 Robert Dewar <dewar@adacore.com>
3287
3288 * makeutl.adb: Minor reformatting
3289 * prj-nmsc.adb: Minor reformatting
3290 * s-stausa.adb: Minor reformatting
3291 * s-stausa.ads: Minor reformatting
3292 * sem_ch6.adb: Minor reformatting
3293
3294 2008-05-27 Thomas Quinot <quinot@adacore.com>
3295
3296 * sem_res.adb: Minor comment fixes
3297
3298 2008-05-27 Thomas Quinot <quinot@adacore.com>
3299
3300 * makeutl.adb: Minor code reorganization
3301
3302 * exp_aggr.adb: Add ??? comment
3303 Fix typo
3304
3305 * exp_ch6.adb: Minor reformatting
3306
3307 2008-05-27 Quentin Ochem <ochem@adacore.com>
3308
3309 * s-stausa.adb (Initialize): Updated result initialization, and
3310 initialization of environment stack.
3311 (Fill_Stack): Improved computation of the pattern zone, taking into
3312 account already filled at the calling point.
3313 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3314 Measure and Overflow_Guard.
3315 (Report_Result): Fixed computation of the result using new fields of
3316 Stack_Analyzer.
3317
3318 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3319 params by more explicit Stack_Size / Max_Pattern_Size params.
3320 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3321 Added Stack_Used_When_Filling field.
3322 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3323 Min_Measure and Max_Measure fields.
3324
3325 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3326
3327 2008-05-27 Vincent Celier <celier@adacore.com>
3328
3329 * prj-nmsc.adb:
3330 (Check_File): Make sure that a unit that replaces the same unit in a
3331 project being extended is properly processed.
3332
3333 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3334
3335 * sem_ch3.adb:
3336 (Get_Discr_Value): Remove obsolete code that failed to find the value
3337 of a discriminant for an inherited task component appearing in a type
3338 extension.
3339
3340 2008-05-27 Thomas Quinot <quinot@adacore.com>
3341
3342 (System.File_IO.{Close, Delete, Reset}):
3343 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3344
3345 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3346 Pass File parameter by reference.
3347
3348 2008-05-27 Vincent Celier <celier@adacore.com>
3349
3350 * prj-nmsc.adb:
3351 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3352 sources of the same project that have the same object file name.
3353 (Find_Explicit_Sources): Always remove a source exception that was not
3354 found.
3355
3356 2008-05-27 Thomas Quinot <quinot@adacore.com>
3357
3358 * sem_ch3.adb: Minor reformatting
3359
3360 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3361
3362 * sem_ch6.adb:
3363 (Is_Interface_Conformant): Handle properly a primitive operation that
3364 overrides an interface function with a controlling access result.
3365 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3366 inherited and overriding operations, omit as well the conformance check
3367 on result types, to prevent spurious errors.
3368
3369 2008-05-27 Vincent Celier <celier@adacore.com>
3370
3371 * makeutl.ads, makeutl.adb:
3372 (Set_Location): New procedure
3373 (Get_Location): New function
3374 (Update_Main): New procedure
3375
3376 2008-05-27 Vincent Celier <celier@adacore.com>
3377
3378 * prj-nmsc.adb:
3379 (Check_Library): Allow standard project to be extended as a static
3380 library project.
3381 (Get_Mains): Do not inherit attribute Main in an extending library
3382 project.
3383
3384 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3385
3386 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3387 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3388 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3389 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3390 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3391 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3392 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3393 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3394 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3395 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3396
3397 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3398
3399 * sem_attr.adb: add guard to previous patch.
3400
3401 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3402
3403 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3404 a synchronized tagged type, do not attempt to build dispatch table for
3405 full view. The table is built for the corresponding record type, which
3406 has its own declaration.
3407
3408 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3409
3410 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3411 to the known type entity E, rather than setting it to Any_Type. Fixes
3412 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3413 for objects whose type had an illegal constraint.
3414
3415 2008-05-27 Vincent Celier <celier@adacore.com>
3416
3417 * gnat_ugn.texi:
3418 Add succinct documentation for attribute Excluded_Source_List_File
3419
3420 2008-05-27 Vincent Celier <celier@adacore.com>
3421
3422 * prj-attr.adb: Add new project level attribute Map_File_Option
3423
3424 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3425
3426 * prj.ads: Minor reformatting and comment update
3427 (Project_Configuration): New component Map_File_Option
3428
3429 * snames.adb: New standard name Map_File_Option
3430
3431 * snames.ads: New standard name Map_File_Option
3432
3433 2008-05-27 Vincent Celier <celier@adacore.com>
3434
3435 * xsnames.adb: Remove unused variable Oname
3436
3437 2008-05-27 Doug Rupp <rupp@adacore.com>
3438
3439 * exp_ch6.adb:
3440 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3441
3442 * exp_vfpt.ads:
3443 (Expand_Vax_Foreign_Return): Fix comments.
3444
3445 2008-05-27 Thomas Quinot <quinot@adacore.com>
3446
3447 * exp_dist.adb: Minor reformating
3448
3449 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3450
3451 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3452 No_Default_Initialization, which is now delayed until the freeze point
3453 of the object. Add a comment about deferral of the check.
3454
3455 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3456 on objects is moved here.
3457
3458 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3459
3460 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3461 (Compare_Array_S16): Adjust for above change.
3462 * s-casi32.adb (Uword): Likewise.
3463 (Compare_Array_S32): Likewise.
3464 * s-casi64.adb (Uword): Likewise.
3465 (Compare_Array_S64): Likewise.
3466 * s-caun16.adb (Uhalf): Likewise.
3467 (Compare_Array_U16): Likewise.
3468 * s-caun32.adb (Uword): Likewise.
3469 (Compare_Array_U32): Likewise.
3470 * s-caun64.adb (Uword): Likewise.
3471 (Compare_Array_U64): Likewise.
3472
3473 2008-05-26 Robert Dewar <dewar@adacore.com>
3474
3475 * exp_ch6.adb: Add ??? comment for previous change
3476
3477 * exp_vfpt.adb: Minor reformatting
3478
3479 * exp_vfpt.ads: Add ??? comment for last change
3480
3481 * sem_attr.adb: Add some ??? comments for previous change
3482
3483 * s-vaflop.ads: Add comments for previous change
3484
3485 2008-05-26 Doug Rupp <rupp@adacore.com>
3486
3487 * s-vaflop-vms-alpha.adb:
3488 Remove System.IO use clause, to prevent spurious ambiguities when
3489 package is access through rtsfind.
3490
3491 2008-05-26 Sergey Rybin <rybin@adacore.com>
3492
3493 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3494 made in front-end
3495
3496 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3497
3498 * sem_attr.adb:
3499 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3500 converted to S (A)'address only if A .. B is known to be a non-null
3501 range.
3502
3503 2008-05-26 Doug Rupp <rupp@adacore.com>
3504
3505 * s-vaflop.adb:
3506 (Return_D, Return_F, Return_G): New functions.
3507
3508 * s-vaflop.ads:
3509 (Return_D, Return_F, Return_G): New functions.
3510
3511 * exp_vfpt.adb:
3512 (Expand_Vax_Foreign_Return): New procedure
3513
3514 * exp_vfpt.ads:
3515 (Expand_Vax_Foreign_Return): New procedure
3516
3517 * rtsfind.ads:
3518 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3519 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3520
3521 * exp_ch6.adb:
3522 Import Exp_Vfpt
3523 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3524
3525 * s-vaflop-vms-alpha.adb:
3526 (Return_D, Return_F, Return_G): New functions.
3527
3528 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3529
3530 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3531 init proc entity when there is actual default initialization associated
3532 with the component type, to avoid spurious errors on objects of scalar
3533 array types that are marked Is_Public when No_Default_Initialization
3534 applies.
3535
3536 2008-05-26 Thomas Quinot <quinot@adacore.com>
3537
3538 * rtsfind.ads, rtsfind.adb:
3539 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3540 (Check_RPC): Support per-PCS-kind API versioning.
3541
3542 exp_dist.ads, exp_dist.adb:
3543 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3544 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3545 library function Get_RACW.
3546 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3547 library function Get_Reference.
3548 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3549 through an intermediate Any.
3550 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3551 going through an intermediate Any.
3552
3553 * sem_dist.adb: Minor reformatting.
3554
3555 2008-05-26 Javier Miranda <miranda@adacore.com>
3556
3557 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3558 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3559 (Is_Internal): Adding documentation on internal entities that have
3560 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3561
3562 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3563 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3564 Added assertion to force entities with this attribute to have
3565 attribute Is_Internal set to True.
3566 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3567
3568 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3569 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3570 a new implementation.
3571 (Add_Interface_Tag_Components): Remove special management of
3572 synchronized interfaces.
3573 (Analyze_Interface_Declaration): Minor reformating
3574 (Build_Derived_Record_Type): Minor reformating
3575 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3576 predefined primitive inherited from interface type because the body of
3577 internally generated predefined primitives of tagged types are generated
3578 later by Freeze_Type
3579 (Derive_Subprogram): Avoid generating an internal name if the parent
3580 subprogram overrides an interface primitive.
3581 (Derive_Subprograms): New implementation that keeps separate the
3582 management of tagged types not implementing interfaces, from tagged
3583 types that implement interfaces.
3584 (Is_Progenitor): New implementation.
3585 (Process_Full_View): Add documentation
3586 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3587 by call to Derive_Progenitor_Subprograms.
3588
3589 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3590 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3591 Skip_Controlling_Formals.
3592
3593 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3594 (Check_Conventions): New implementation. Remove local subprogram
3595 Skip_Check. Remove formal Search_From of routine Check_Convention.
3596 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3597 Skip_Controlling_Formals.
3598 (New_Overloaded_Entity): Enable addition of predefined dispatching
3599 operations.
3600
3601 * sem_disp.ads
3602 (Find_Primitive_Covering_Interface): New subprogram.
3603
3604 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3605 the task body procedure as a primitive of the corresponding tagged
3606 type.
3607 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3608 to the list of primitives.
3609 (Find_Primitive_Covering_Interface): New subprogram.
3610 (Override_Dispatching_Operation): Add documentation.
3611
3612 * sem_type.adb (Covers): Minor reformatings
3613
3614 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3615 Collect_Interfaces.
3616 Rename formal.
3617 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3618 (Implements_Interface): New subprogram.
3619 (Is_Parent): Removed.
3620 (Primitive_Names_Match): New subprogram.
3621 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3622 (Ultimate_Alias): New subprogram.
3623
3624 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3625 Collect_Interfaces.
3626 Remove special management for synchronized types. Rename formal. Remove
3627 internal subprograms Interface_Present_In_Parent and Add_Interface.
3628 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3629 on non-record types by code to return false in such case.
3630 (Implements_Interface): New subprogram.
3631 (Is_Parent): Removed. No special management is now required for
3632 synchronized types covering interfaces.
3633 (Primitive_Names_Match): New subprogram.
3634 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3635 (Ultimate_Alias): New subprogram.
3636
3637 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3638 Add internal entities associated with secondary dispatch tables to
3639 the list of tagged type primitives that are not interfaces.
3640 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3641 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3642 the management of predefined equality operator. In addition, if
3643 the type has an equality function corresponding with a primitive
3644 defined in an interface type, the inherited equality is abstract
3645 as well, and no body can be created for it.
3646
3647 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3648 exp_util to exp_disp.
3649 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3650 an entity corresponds with one of the predefined primitives required
3651 to implement interfaces.
3652 Update copyright notice.
3653
3654 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3655 final check on abstract subprograms all the primitives associated with
3656 interface primitives because they must be visible in the public and
3657 private part.
3658 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3659 interface type. This allows the use of this routine, for debugging
3660 purposes, when the tagged type is not fully decorated.
3661 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3662 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3663 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3664 entity corresponds with one of the predefined primitives required to
3665 implement interfaces.
3666
3667 * exp_util.adb (Find_Interface_ADT): New implementation
3668 (Find_Interface): Removed.
3669
3670 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3671 list of interfaces associated with nodes
3672 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3673
3674 2008-05-26 Thomas Quinot <quinot@adacore.com>
3675
3676 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3677 condition for assignment to temporary.
3678
3679 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3680
3681 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3682 checks on the upper bound if the index type is a modular type, to
3683 prevent wrap-around computations when size is close to upper bound of
3684 type.
3685
3686 2008-05-26 Robert Dewar <dewar@adacore.com>
3687
3688 * sem_ch3.adb: Minor reformatting
3689
3690 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3691
3692 * sem_ch12.adb (Remove_Parent): Use specification of instance
3693 to retrieve generic parent,
3694 to handle properly the case where the instance is a child unit.
3695 Add guard to handle properly wrapper packages.
3696 Minor reformatting
3697
3698 2008-05-26 Thomas Quinot <quinot@adacore.com>
3699
3700 * sinfo.ads: Minor reformatting
3701
3702 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3703
3704 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3705 Generate a tag check when the result subtype of a function, defined by
3706 an access definition, designates a specific tagged type.
3707 (Make_Tag_Check): New routine.
3708
3709 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3710
3711 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3712
3713 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3714
3715 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3716 (builtin_decl_for): Likewise.
3717 * trans.c (gigi): Likewise.
3718 * utils.c (def_builtin_1): Fix formatting.
3719
3720 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3721
3722 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3723 Create the statements which map a string name to protected or task
3724 entry indix.
3725
3726 * exp_ch9.adb: Add with and use clause for Stringt.
3727 Minor code reformatting.
3728 (Build_Entry_Names): New routine.
3729 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3730 for flag Build_Entry_Names which controls the allocation of the data
3731 structure for the string names of entries.
3732
3733 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3734
3735 * exp_util.adb (Entry_Names_OK): New function.
3736
3737 * exp_util.ads (Entry_Names_OK): New function.
3738
3739 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3740 enumerations RE_Id and RE_Unit_Table.
3741
3742 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3743 (Free_Entry_Names_Array): New routine.
3744
3745 * s-taskin.ads: Comment reformatting.
3746 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3747 Add component Entry_Names to record Ada_Task_Control_Block.
3748 (Free_Entry_Names_Array): New routine.
3749
3750 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3751 dynamically allocate an array
3752 of string pointers. This structure holds string entry names.
3753 (Free_Entry_Names): New routine.
3754 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3755 (Set_Entry_Names): New routine.
3756
3757 * s-tassta.ads:
3758 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3759 control the allocation of the data structure which stores entry names.
3760 (Set_Entry_Name): New routine.
3761
3762 * s-tpoben.adb:
3763 Add with and use clause for Ada.Unchecked_Conversion.
3764 (Finalize): Deallocate the entry names array.
3765 (Free_Entry_Names): New routine.
3766 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3767 create an array of string pointers to hold the entry names.
3768 (Set_Entry_Name): New routine.
3769
3770 * s-tpoben.ads:
3771 Add field Entry_Names to record Protection_Entries.
3772 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3773 (Set_Entry_Name): New routine.
3774
3775 2008-05-26 Vincent Celier <celier@adacore.com>
3776
3777 * prj-nmsc.adb:
3778 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3779
3780 * prj.ads:
3781 (Project_Configuration): New component Shared_Lib_Driver
3782
3783 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3784
3785 * inline.adb:
3786 (Cleanup_Scopes): For a protected operation, transfer finalization list
3787 to protected body subprogram, to force cleanup actions when needed.
3788
3789 2008-05-26 Robert Dewar <dewar@adacore.com>
3790
3791 * sem_cat.adb: Minor reformatting
3792
3793 * gnatname.adb: Minor reformatting
3794
3795 * osint.ads: Minor reformatting
3796
3797 * s-carun8.ads: Minor reformatting
3798
3799 * g-heasor.ads: Minor comment fix (unit is now pure)
3800
3801 2008-05-26 Robert Dewar <dewar@adacore.com>
3802
3803 * exp_ch2.adb:
3804 (Expand_Current_Value): Properly type generated integer literal
3805
3806 2008-05-26 Sergey Rybin <rybin@adacore.com>
3807
3808 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3809 Separate_Numeric_Error_Handlers.
3810
3811 2008-05-26 Pascal Obry <obry@adacore.com>
3812
3813 * sem_aggr.adb: Minor reformatting.
3814
3815 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3816
3817 * s-osinte-aix.adb:
3818 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3819 the scheduling policy to FIFO within priorities or round-robin
3820 respectively.
3821 Hence, the priority must be set in this case to the one selected by the
3822 user.
3823
3824 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3825
3826 * sem_ch12.adb:
3827 (Remove_Parent): If the enclosing scope is an instance whose generic
3828 parent is declared within some parent scope of the just completed
3829 instance, make full views of the entities in that parent visible, when
3830 applicable.
3831
3832 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3833
3834 * mingw32.h (STD_MINGW): Set to true for target w64.
3835
3836 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3837
3838 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3839 instead of TREE_STATIC on the ADDR_EXPR.
3840
3841 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3842
3843 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3844 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3845 GNAT standard locations.
3846
3847 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3848
3849 * gigi.h (mark_visited): Declare.
3850 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3851 only the topmost node of expressions.
3852 (elaborate_expression_1): Look deeper for read-only variables.
3853 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3854 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3855 (mark_visited_r): New function.
3856
3857 2008-05-23 Vincent Celier <celier@adacore.com>
3858
3859 * snames.adb: New standard name Excluded_Source_List_File.
3860
3861 * snames.ads: New standard name Excluded_Source_List_File.
3862
3863 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3864
3865 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3866 Get excluded sources from
3867 file indicated by attribute Excluded_Source_List_File, when present and
3868 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3869
3870 2008-05-23 Robert Dewar <dewar@adacore.com>
3871
3872 * exp_dist.adb: Minor reformatting
3873
3874 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3875
3876 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3877 slice, convert it to an indexed component, which is equivalent, more
3878 efficient, and usable even if the slice itself is not addressable.
3879
3880 2008-05-23 Olivier Hainque <hainque@adacore.com>
3881
3882 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3883 convention also allows access to named compiler built-in subprograms
3884 such as the GCC __builtin family.
3885
3886 2008-05-23 Vincent Celier <celier@adacore.com>
3887
3888 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3889 sep. If there are several possibilities, choose the one with the
3890 longer prefix.
3891
3892 2008-05-23 Vincent Celier <celier@adacore.com>
3893
3894 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3895 back end switches when executable specified with --GCC= is same as
3896 default, even if there are additional options.
3897
3898 * gnat_ugn.texi:
3899 Document when the back end switches from the ALI file are taken into
3900 account when gnatlink is invoked with --GCC=
3901
3902 2008-05-23 Thomas Quinot <quinot@adacore.com>
3903
3904 * s-os_lib.adb:
3905 (copy_File): Do not open destination file if source file is unreadable.
3906
3907 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3908
3909 * utils.c (handle_type_generic_attribute): Adjust to accept
3910 fixed arguments before an elipsis.
3911
3912 2008-05-21 Thomas Quinot <quinot@adacore.com>
3913
3914 * g-sothco.ads, g-sothco.adb: New files.
3915
3916 2008-05-20 Thomas Quinot <quinot@adacore.com>
3917
3918 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3919
3920 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3921 Add missing "with" of Ada.Unchecked_Conversion
3922
3923 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3924 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3925 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3926 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3927 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3928 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3929 Move common code out of GNAT.Sockets.Thin implementations and into
3930 Thin_Common.
3931 New constant SIZEOF_fd_set
3932 New flag Has_Sockaddr_Len
3933 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3934
3935 * g-stsifd-sockets.adb
3936 (Create): Remove call to Set_Length; use Set_Family to set the family
3937 and (on appropriate platforms) length fields in struct sockaddr.
3938
3939 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3940 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3941 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3942 Move common code out of GNAT.Sockets.Thin implementations and into
3943 Thin_Common.
3944
3945 * g-socket.ads, g-socket.adb:
3946 Move common code out of GNAT.Sockets.Thin implementations and into
3947 Thin_Common.
3948 (Connect_Socket, Accept_Socket): Provide new versions of these two
3949 routines that operate with a user specified timeout.
3950 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3951 this is now handled automatically by Set_Family on platforms that
3952 require it.
3953
3954 * gen-soccon.c:
3955 Move common code out of GNAT.Sockets.Thin implementations and into
3956 Thin_Common.
3957 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3958 this constant to 0 (not -1) because we use it to initialize an
3959 unsigned_char value.
3960 Align values for numeric constants only.
3961 Handle the case of systems that do not support AF_INET6.
3962 New constant SIZEOF_fd_set
3963 New flag Has_Sockaddr_Len
3964 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3965
3966 * gsocket.h: New flag Has_Sockaddr_Len
3967 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3968
3969 2008-05-20 Santiago Uruena <uruena@adacore.com>
3970
3971 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3972
3973 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3974
3975 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3976 the underlying issue with malloc/free has been fixed. Remove associated
3977 comments.
3978 Minor reformatting.
3979 Related to PR ada/24533
3980
3981 2008-05-20 Robert Dewar <dewar@adacore.com>
3982
3983 * ali.adb: Correct casing of ASCII.NUL
3984
3985 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3986 properly.
3987
3988 2008-05-20 Robert Dewar <dewar@adacore.com>
3989 Gary Dismukes <dismukes@adacore.com>
3990
3991 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3992 overflow if result converted to wider integer type.
3993 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3994 discriminated types when discriminant checks are suppressed.
3995
3996 2008-05-20 Vincent Celier <celier@adacore.com>
3997
3998 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3999 Wide_Wide_Character.
4000
4001 2008-05-20 Tristan Gingold <gingold@adacore.com>
4002
4003 * decl.c: Do not emit a variable for a object that has an address
4004 representation clause whose value is known at compile time.
4005 When a variable has an address clause whose value is known at compile
4006 time, refer to this variable by using directly the address instead of
4007 dereferencing a pointer.
4008
4009 2008-05-20 Robert Dewar <dewar@adacore.com>
4010
4011 PR ada/30740
4012 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
4013 subtypes, always False for non-modular types.
4014 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
4015 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
4016 for Shared_Storage package.
4017 (Is_RACW_Stub_Type): New entity flag.
4018
4019 * exp_ch4.adb
4020 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
4021 case where we have a modular type with a non-binary modules.
4022 Comments reformattings.
4023
4024 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
4025 all types.
4026
4027 2008-05-20 Javier Miranda <miranda@adacore.com>
4028
4029 * exp_aggr.adb
4030 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
4031 tests did not covered the case in which the type of the aggregate has
4032 no progenitors but some its parents has progenitors.
4033
4034 2008-05-20 Gary Dismukes <dismukes@adacore.com>
4035 Hristian Kirtchev <kirtchev@adacore.com>
4036
4037 * exp_ch3.adb
4038 (Expand_N_Object_Declaration): Correct the condition which triggers the
4039 generation of a call to Displace when initializing a class-wide object.
4040 (Build_Dcheck_Functions): Build discriminant-checking for null variants
4041 when Frontend_Layout_On_Target is true to ensure that they're available
4042 for calling when a record variant size function is built in Layout.
4043
4044 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4045
4046 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4047 procedure for a derived type retrieve the discriminant values from the
4048 parent using the corresponding discriminant.
4049 (Expand_N_Assignment_Statement): Skip generation of implicit
4050 if-statement associated with controlled types if we are
4051 compiling with restriction No_Finalization.
4052
4053 2008-05-20 Vincent Celier <celier@adacore.com>
4054
4055 * prj.adb (Hash (Project_Id)): New function
4056 (Project_Empty): Add new component Interfaces_Defined
4057
4058 * prj.ads (Source_Data): New component Object_Linked
4059 (Language_Config): New components Object_Generated and Objects_Linked
4060 (Hash (Project_Id)): New function
4061 (Source_Data): New Boolean components In_Interfaces and
4062 Declared_In_Interfaces.
4063 (Project_Data): New Boolean component Interfaces_Defined
4064
4065 * prj-attr.adb:
4066 New project level attribute Object_Generated and Objects_Linked
4067 Add new project level attribute Interfaces
4068
4069 * prj-dect.adb: Use functions Present and No throughout
4070 (Parse_Variable_Declaration): If a string type is specified as a simple
4071 name and is not found in the current project, look for it also in the
4072 ancestors of the project.
4073
4074 * prj-makr.adb:
4075 Replace procedure Make with procedures Initialize, Process and Finalize
4076 to implement H414-023: process different directories with different
4077 patterns.
4078 Use functions Present and No throughout
4079
4080 * prj-makr.ads:
4081 Replace procedure Make with procedures Initialize, Process and Finalize
4082
4083 * prj-nmsc.adb
4084 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4085 the language configuration.
4086 (Process_Project_Level_Array_Attributes): Process new attributes
4087 Object_Generated and Object_Linked.
4088 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4089 False, to indicate that the erreor/warning is a continuation.
4090 (Check): Call Report_No_Sources with Contnuation = True after the first
4091 call.
4092 (Error_Msg): Process successively contnuation character and warning
4093 character.
4094 (Find_Explicit_Sources): Check that all declared sources have been found
4095 (Check_File): Indicate in hash table Source_Names when a declared source
4096 is found.
4097 (Check_File): Set Other_Part when found
4098 (Find_Explicit_Sources): In multi language mode, check if all exceptions
4099 to the naming scheme have been found. For Ada, report an error if an
4100 exception has not been found. Otherwise, disregard the exception.
4101 (Check_Interfaces): New procedure
4102 (Add_Source): When Other_Part is defined, set mutual pointers in spec
4103 and body.
4104 (Check): In multi-language mode, call Check_Interfaces
4105 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4106 for an excluded source.
4107 (Remove_Source): A source replacing a source in the interfaces is also
4108 in the interfaces.
4109
4110 * prj-pars.adb: Use function Present
4111
4112 * prj-part.adb: Use functions Present and No throughout
4113 (Parse_Single_Project): Set the parent project for child projects
4114 (Create_Virtual_Extending_Project): Register project with no qualifier
4115 (Parse_Single_Project): Allow an abstract project to be extend several
4116 times. Do not allow an abstract project to extend a non abstract
4117 project.
4118
4119 * prj-pp.adb: Use functions Present and No throughout
4120 (Print): Take into account the full associative array attribute
4121 declarations.
4122
4123 * prj-proc.adb: Use functions Present and No throughout
4124 (Expression): Call itself with the same From_Project_Node for the
4125 default value of an external reference.
4126
4127 * prj-strt.adb: Use functions Present and No throughout
4128 (Parse_Variable_Reference): If a variable is specified as a simple name
4129 and is not found in the current project, look for it also in the
4130 ancestors of the project.
4131
4132 * prj-tree.ads, prj-tree.adb (Present): New function
4133 (No): New function
4134 Use functions Present and No throughout
4135 (Parent_Project_Of): New function
4136 (Set_Parent_Project_Of): New procedure
4137
4138 * snames.ads, snames.adb:
4139 Add new standard names Object_Generated and Objects_Linked
4140
4141 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4142
4143 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4144 and the derived type are of the same kind.
4145 (Expand_Call): Generate type conversions for actuals of
4146 record or array types when the parent and the derived types differ in
4147 size and/or packed status.
4148
4149 2008-05-20 Javier Miranda <miranda@adacore.com>
4150 Ed Schonberg <schonberg@adacore.com>
4151
4152 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4153 generating dispatch tables of locally defined tagged types statically.
4154 Remove implicit if-statement that is no longer required.
4155 (Expand_Dispatching_Call): If this is a call to an instance of the
4156 generic dispatching constructor, the type of the first argument may be
4157 a subtype of Tag, so always use the base type to recognize this case.
4158
4159 2008-05-20 Thomas Quinot <quinot@adacore.com>
4160
4161 * exp_dist.adb
4162 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4163 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4164 assigning NULL into the result, to avoid a spurious warning.
4165 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4166 is not frozen.
4167 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4168 type.
4169 (Build_From_Any_Function, Build_To_Any_Function,
4170 Build_TypeCode_Function): For a type that has user-specified stream
4171 attributes, use an opaque sequence of octets as the representation.
4172
4173 2008-05-20 Kevin Pouget <pouget@adacore.com>
4174
4175 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4176 routines has been replaced by an instantiation of
4177 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4178 shared variable declaration.
4179 Calls to access and assign routines have been replaced by calls to
4180 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4181 instantiated package.
4182
4183 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4184 It identifies the new generic package added in s-shasto.
4185
4186 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4187 is instantiated for each shared passive variable. It provides
4188 supporting procedures called upon each read or write access by the
4189 expanded code.
4190
4191 * sem_attr.adb:
4192 For this runtime unit (always compiled in GNAT mode), we allow
4193 stream attributes references for limited types for the case where
4194 shared passive objects are implemented using stream attributes,
4195 which is the default in GNAT's persistent storage implementation.
4196
4197 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4198
4199 * freeze.adb
4200 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4201 convention from its base type, do not set the type to that of integer,
4202 because it may inherit a size clause.
4203 Warn on a size clause with a size different
4204 from that of Integer, if the type has convention C.
4205
4206 2008-05-20 Vincent Celier <celier@adacore.com>
4207
4208 * gnatname.adb
4209 (Scan_Args): Rewrite to take into account new switch --and to separate
4210 arguments into sections.
4211 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4212 section, then Finalize.
4213
4214 2008-05-20 Tristan Gingold <gingold@adacore.com>
4215
4216 * init.c: Enable stack probing on ppc-linux.
4217
4218 * tracebak.c: Add symbolic traceback for ppc-linux.
4219
4220 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4221
4222 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4223
4224 * Makefile.in
4225 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4226 Reenable parallel builds on this Makefile.
4227
4228 * Make-lang.in: Update dependencies.
4229
4230 2008-05-20 Robert Dewar <dewar@adacore.com>
4231
4232 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4233
4234 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4235 Treat_Restrictions_As_Warnings.
4236
4237 * switch-c.adb: Recognize new switch -gnatr
4238
4239 * usage.adb: Add line for -gnatr
4240
4241 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4242
4243 * par-ch3.adb
4244 (P_Access_Definition): Change the error message when parsing "access
4245 all" in Ada 95 mode. The message no longer forces the user to recompile
4246 in 05 mode only to discover that anonymous access types are not allowed
4247 to have "all".
4248
4249 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4250
4251 * par-ch9.adb
4252 (P_Protected): Update the error message on missing "-gnat05" switch when
4253 using interfaces in conjunction with protected types. Remove the
4254 incorrect error message associated with the presence of "private" after
4255 a "with".
4256
4257 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4258
4259 * sem_aggr.adb: Update comments.
4260 Improve previous change for PR ada/17985
4261
4262 2008-05-20 Thomas Quinot <quinot@adacore.com>
4263
4264 * sem_cat.adb
4265 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4266 the visible part of the spec of a remote types unit.
4267 (Validate_Remote_Access_Object_Type_Declaration):
4268 New local subprogram Is_Valid_Remote_Object_Type, replaces
4269 Is_Recursively_Limited_Private.
4270 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4271 non-controlling formals (and the return type, even though this is not
4272 explicit in the standard) must support external streaming.
4273 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4274 as above for of RAS types and RCI subprograms. (The return type is not
4275 checked yet).
4276 Update comments related to RACWs designating limited interfaces per
4277 ARG ruling on AI05-060.
4278
4279 * sem_util.ads, sem_util.adb
4280 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4281 Is_Remote_Call_Interface to identify RACW types in a stable and
4282 consistent way. We used to rely in this predicate on the privateness of
4283 the designated type and its ancestors, but depending on the currently
4284 visible private parts, this caused false negatives. We now uniformly
4285 rely on checks made at the point where the RACW type is declared.
4286 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4287
4288 2008-05-20 Javier Miranda <miranda@adacore.com>
4289 Ed Schonberg <schonberg@adacore.com>
4290 Hristian Kirtchev <kirtchev@adacore.com>
4291
4292 * sem_ch3.adb
4293 (Analyze_Object_Declaration): Fix over-conservative condition
4294 restricting use of predefined assignment with tagged types that have
4295 convention CPP.
4296 (Analyze_Object_Declaration): Relax the check regarding deferred
4297 constants declared in scopes other than packages since they can be
4298 completed with pragma Import.
4299 Add missing escaping of all-caps word 'CPP' in error messages.
4300 (Build_Discriminated_Subtype): Do not inherit representation clauses
4301 from parent type if subtype already carries them, because they are
4302 inherited earlier during derivation and already include those that may
4303 come from a partial view.
4304
4305 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4306 Check the declarations of a subprogram body for proper deferred
4307 constant completion.
4308
4309 * sem_ch7.ads, sem_ch7.adb
4310 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4311
4312 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4313 Thomas Quinot <quinot@adacore.com>
4314
4315 * sem_ch4.adb
4316 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4317 F is a parameterless function that returns an array, and S is a subtype
4318 mark.
4319 (Analyze_Call): Insert dereference when the prefix is a parameterless
4320 function that returns an access to subprogram and the call has
4321 parameters.
4322 Reject a non-overloaded call whose name resolves to denote
4323 a primitive operation of the stub type generated to support a remote
4324 access-to-class-wide type.
4325
4326 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4327
4328 * sem_ch8.adb
4329 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4330 when there is a use clause for the same entity in the context.
4331 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4332 created for a stream attribute of an abstract type or interface type.
4333
4334 2008-05-20 Thomas Quinot <quinot@adacore.com>
4335
4336 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4337 subprogram.
4338
4339 * sem_type.adb
4340 (Add_One_Interp): Ignore any interpretation that is a primitive
4341 operation of an RACW stub type (these primitives are only executed
4342 through dispatching, never through static calls).
4343 (Collect_Interps): When only one interpretation has been found, set N's
4344 Entity and Etype to that interpretation, otherwise Entity and Etype may
4345 still refer to an interpretation that was ignored by Add_One_Interp,
4346 in which case would end up with being marked as not overloaded but with
4347 an Entity attribute not pointing to its (unique) correct interpretation.
4348
4349 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4350
4351 * sem_eval.adb
4352 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4353 denotes the whole array of its prefix.
4354
4355 2008-05-20 Robert Dewar <dewar@adacore.com>
4356
4357 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4358
4359 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4360
4361 * sprint.adb
4362 (Print_Itype): Do not modify the sloc of the component type of a
4363 (packed) array itype, because it is an unrelated type whose source
4364 location is independent of the point of creation of the itype itself.
4365
4366 2008-05-20 Thomas Quinot <quinot@adacore.com>
4367
4368 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4369 Append.
4370
4371 2008-05-20 Robert Dewar <dewar@adacore.com>
4372 Vincent Celier <celier@adacore.com>
4373
4374 * vms_data.ads: Add entry for -gnatr
4375 Put GNAT SYNC section in proper alpha order
4376 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4377
4378 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4379 Update the style checks section
4380 Add documentation of -gnatr
4381 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4382 subsection the explanation how compiler checks should be disabled for
4383 gnatcheck.
4384 Update the list of Ada 95 reserved words used by in the project language
4385 Add documentation for project qualifiers.
4386 Document that abstract projects may be extended by different projects in
4387 the same project tree.
4388 Add documentation for gnatmake switch -d
4389
4390 * ug_words: Add -gnatyy VMS equivalence string.
4391 Add entry for -gnatr
4392
4393 2008-05-20 Bob Duff <duff@adacore.com>
4394
4395 * a-rttiev.adb
4396 (Set_Handler): Remove code from both of these that implements
4397 RM-D.15(15/2), because it causes a race condition and potential
4398 deadlock.
4399 (Process_Queued_Events): Add comment explaining "exception when others
4400 => null". Add clarifying ".all", even though implicit .all is legal
4401 here.
4402
4403 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4404
4405 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4406 equivalent representation, but has the advantage of allowing
4407 compilation of this file under 64 bits platforms.
4408
4409 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4410
4411 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4412
4413 * adaint.c:
4414 Don't define dummy implementation of convert_addresses on ppc-linux.
4415
4416 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4417
4418 * exp_ch7.adb
4419 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4420 if expression is aggregate component.
4421
4422 2008-05-20 Robert Dewar <dewar@adacore.com>
4423
4424 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4425 sem_ch12.adb: Update comments. Minor reformatting.
4426
4427 * exp_ch2.adb: Typo
4428
4429 * s-unstyp.ads: Fixed some typos in comments.
4430
4431 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4432
4433 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4434 type/constant.
4435
4436 * g-socthi-vxworks.ads: Update to latest socket changes.
4437
4438 * a-caldel-vms.adb: Resync with a-caldel spec.
4439
4440 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4441 Update comments.
4442
4443 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4444
4445 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4446 for dummy types pointed to by the converted pointer types.
4447
4448 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4449
4450 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4451 of records and unions.
4452 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4453
4454 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4455 Robert Dewar <dewar@adacore.com>
4456
4457 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4458 restrictions to the prefix of 'Old.
4459 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4460 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4461 variables.
4462
4463 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4464
4465 PR ada/24880
4466 PR ada/26635
4467 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4468 expression to an integral type with lower precision, use NOP_EXPR
4469 directly in a couple of special cases.
4470
4471 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4472 Ed Schonberg <schonberg@adacore.com>
4473
4474 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4475 constraint expressions.
4476
4477 2008-05-12 Tomas Bily <tbily@suse.cz>
4478
4479 * utils2.c (known_alignment, contains_save_expr_p)
4480 (gnat_mark_addressable): Use CASE_CONVERT.
4481 * decl.c (annotate_value): Likewise.
4482 * trans.c (maybe_stabilize_reference): Likewise.
4483 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4484 * utils.c (rest_of_record_type_compilation): Likewise.
4485 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4486 (protect_multiple_eval): Likewise.
4487
4488 2008-05-08 Andreas Schwab <schwab@suse.de>
4489
4490 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4491 DECL_IS_PURE to DECL_PURE_P.
4492
4493 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4494
4495 * decl.c (maybe_pad_type): Add ??? comment.
4496
4497 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4498
4499 * decl.c (components_to_record): Zero the alignment of the qualified
4500 union built for the variant part upon creating it.
4501
4502 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4503
4504 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4505 mode even if the alignment is not a factor of the original size. But
4506 make sure to create the inner field with the original size. Reorder.
4507 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4508 record as always addressable.
4509 * utils.c (convert): Deal specially with conversions between original
4510 and packable versions of a record type.
4511 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4512 recognizing an assignment between padded objects.
4513
4514 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4515
4516 * decl.c (make_packable_type): Resize the last component to its RM size
4517 only if it is of an aggregate type.
4518 * trans.c (call_to_gnu): Fix nit in comment.
4519 (gnat_to_gnu): Likewise.
4520
4521 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4522
4523 * Makefile.in: Adapt sh4-linux target.
4524
4525 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4526
4527 PR ada/35792
4528 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4529 tagged type by an untagged protected or task type.
4530
4531 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4532 Tristan Gingold <gingold@adacore.com>
4533
4534 PR ada/36007
4535 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4536 of aliased objects with an unconstrained nominal subtype.
4537 Cap the promotion to the effective alignment of the word mode.
4538
4539 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4540
4541 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4542 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4543 Use '&&' instead of ';'.
4544
4545 2008-04-24 Olivier Hainque <hainque@adacore.com>
4546
4547 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4548 doesn't require signed arithmetic anymore.
4549
4550 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4551
4552 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4553 (call_to_gnu): Don't set TREE_INVARIANT.
4554 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4555
4556 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4557
4558 * s-osinte-rtems.adb: Add sigalstack function.
4559 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4560 function. Add Alternate_Stack and Alternate_Stack_Size.
4561 Add missing process_shared field to pthread_condattr_t
4562 and change ss_low_priority to int from timespec.
4563
4564 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4565
4566 * i-forbla.adb: Link against -llapack and -lblas by default
4567 instead of the private -lgnalasup.
4568
4569 2008-04-21 Olivier Hainque <hainque@adacore.com>
4570
4571 Access to most C builtins from Ada
4572 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4573 (handle_pure_attribute, handle_novops_attribute,
4574 handle_nonnull_attribute, handle_sentinel_attribute,
4575 handle_noreturn_attribute, handle_malloc_attribute,
4576 handle_type_generic_attribute): New attribute handlers, from C fe.
4577 (gnat_internal_attribute_table): Map the new handlers.
4578 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4579 (init_gigi_decls): ... here.
4580 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4581 Move to a section dedicated to builtins processing.
4582 (build_void_list_node, builtin_type_for_size): New functions.
4583 (def_fn_type, get_nonnull_operand): Likewise.
4584 (install_builtin_elementary_type, install_builtin_function_types,
4585 install_builtin_attributes): Likewise.
4586 (fake_attribute_handler): Fake handler for attributes we don't
4587 support in Ada.
4588 (def_builtin_1): New function, worker for DEF_BUILTIN.
4589 (install_builtin_functions): New function.
4590 (gnat_install_builtins): Move to the builtins processing section.
4591 Now calling the newly introduced installers.
4592
4593 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4594
4595 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4596 constant objects, but not exceptions.
4597 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4598 compatibility test.
4599 * utils.c (create_var_decl_1): Likewise.
4600 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4601 the type when copying to padded object and the source is a constructor.
4602
4603 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4604
4605 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4606 alignment, reset it to zero if it would end up not being greater
4607 than that of the type.
4608
4609 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4610
4611 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4612 the padded type has a variable size.
4613
4614 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4615
4616 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4617 target pointer mechanism as soon as the size is not constant.
4618
4619 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4620
4621 * gigi.h (create_var_decl_1): Declare.
4622 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4623 (create_true_var_decl): Likewise.
4624 * utils.c (create_var_decl_1): Make global and reorder parameters.
4625 (create_var_decl): Delete.
4626 (create_true_var_decl): Likewise.
4627
4628 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4629
4630 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4631 objects by default.
4632 * fe.h (Debug_Flag_Dot_A): Delete.
4633 * debug.adb (-gnatd.a): Update documentation.
4634
4635 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4636
4637 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4638 "not null" parameter.
4639
4640 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4641
4642 * g-socket.adb: Add a message "IPv6 not supported" to the
4643 Socket_Error exception.
4644
4645 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4646
4647 PR ada/29015
4648 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4649 the type is known instead of the underlying type.
4650
4651 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4652
4653 PR ada/22387
4654 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4655 procedure for a derived type retrieve the discriminant values from
4656 the parent using the corresponding discriminant.
4657
4658 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4659 Gary Dismukes <dismukes@adacore.com>
4660
4661 PR ada/28733
4662 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4663 which is not an entity (and hence not a package).
4664 (End_Use_Package): Ditto.
4665
4666 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4667
4668 PR ada/16086
4669 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4670 protected operation that matches the signature, not only an entry, a
4671 regular subprogram or a literal.
4672
4673 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4674
4675 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4676 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4677 if a size or alignment is specified. Do not take into account
4678 alignment promotions for the computation of the object's size.
4679 <type>: Call maybe_pad_type only if a size or alignment is specified.
4680 (maybe_pad_type): Really reuse the RM_Size of the original type if
4681 requested.
4682 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4683 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4684 statements. Use the padded view of the type when copying between
4685 padded objects of the same underlying type.
4686
4687 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4688
4689 * vms_data.ads: Fix typo in constant.
4690 * gen-soccon.c: Fix typo in error string.
4691 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4692 Fix typos.
4693 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4694 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4695 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4696 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4697 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4698 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4699 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4700 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4701 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4702 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4703 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4704 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4705 sinfo.ads: Fix typos in comments.
4706
4707 2008-04-14 Robert Dewar <dewar@adacore.com>
4708
4709 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4710 to every non-object and change error message.
4711
4712 2008-04-14 Robert Dewar <dewar@adacore.com>
4713
4714 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4715 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4716 directly.
4717
4718 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4719
4720 PR ada/18680
4721 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4722 apply pragma Linker_Section on type.
4723
4724 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4725
4726 PR ada/16098
4727 * sem_prag.adb (Error_Pragma_Ref): New.
4728 (Process_Convention): Specialized message for non-local
4729 subprogram renaming. Detect the problem in homonyms as well.
4730
4731 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4732
4733 PR ada/15915
4734 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4735 * sem_ch12.adb (Instantiate_Object): Use it.
4736 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4737 storage pool denotes a variable as per RM 13.11(15).
4738
4739 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4740
4741 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4742 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4743
4744 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4745
4746 PR ada/20822
4747 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4748 line endings even on non-Unix platforms.
4749
4750 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4751
4752 PR ada/35050
4753 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4754 renaming information.
4755
4756 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4757
4758 PR ada/17985
4759 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4760 itself.
4761
4762 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4763
4764 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4765 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4766 snames.ads, sprint.adb, stand.ads, stringt.ads,
4767 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4768 switch.ads, sysdep.c, table.adb, table.ads,
4769 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4770 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4771 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4772 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4773 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4774 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4775 Fix comment typos.
4776
4777 * sem_ch10.adb, sem_ch10.ads,
4778 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4779 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4780 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4781 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4782 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4783 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4784 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4785 sem_warn.ads: Fix comment typos.
4786
4787 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4788 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4789 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4790 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4791 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4792 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4793 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4794 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4795 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4796 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4797 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4798 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4799 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4800 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4801 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4802 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4803 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4804 sem_cat.adb, sem_cat.ads: Fix comment typos.
4805
4806 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4807
4808 PR ada/35825
4809 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4810
4811 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4812
4813 * s-linux-hppa.ads: Fix syntax errors.
4814
4815 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4816
4817 * gnat_ugn.texi: Fix typos.
4818 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4819 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4820 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4821 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4822 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4823 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4824 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4825 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4826 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4827 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4828 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4829 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4830 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4831 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4832 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4833 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4834 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4835 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4836 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4837 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4838 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4839 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4840 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4841 s-rident.ads: Fix comment typos.
4842
4843 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4844
4845 PR ada/28305
4846 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4847 environment if generic instance is a top-level one.
4848
4849 2008-04-09 Doug Rupp <rupp@adacore.com>
4850
4851 * decl.c (validate_size): Set minimum size for fat pointers same as
4852 access types. Code clean ups.
4853
4854 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4855 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4856
4857 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4858
4859 * s-crtl.ads (malloc32) New function, alias for malloc
4860 (realloc32) New function, alias for realloc
4861
4862 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4863
4864 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4865 allocator size is 32 and default pointer size is 64.
4866 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4867 lhs type if smaller, whatever the modes.
4868
4869 * gigi.h (malloc32_decl): New macro definition
4870
4871 * utils.c (init_gigi_decls): New malloc32_decl
4872 Various code clean ups.
4873
4874 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4875 Task_Address vice System.Address.
4876
4877 * s-taspri-vms.ads: Import System.Aux_DEC
4878 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4879 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4880
4881 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4882 Task_Address vice System.Address.
4883
4884 * s-inmaop-vms.adb: Import System.Task_Primitives
4885 (To_Address): Unchecked convert to Task_Address vice System.Address
4886
4887 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4888 expires now.
4889 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4890 (To_Address) Unchecked convert to Task_Address vice System.Address
4891
4892 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4893
4894 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4895
4896 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4897
4898 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4899 (fdesc_type_node): Define.
4900 (null_fdesc_node): Likewise.
4901 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4902 uses descriptors for vtables and the type comes from a dispatch table,
4903 return the descriptor type.
4904 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4905 uses descriptors for vtables and the type comes from a dispatch table,
4906 build a descriptor in the static case and copy the existing one in the
4907 non-static case.
4908 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4909 the type is a pointer-to-subprogram coming from a dispatch table,
4910 return the null descriptor.
4911 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4912 vtables, the source type is the descriptor type and the target type
4913 is a pointer type, first build the pointer.
4914 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4915 build the descriptor type and the null descriptor.
4916
4917 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4918
4919 * decl.c (prepend_attributes): Fix typo.
4920 * trans.c (Pragma_to_gnu): Likewise.
4921 * utils.c (gnat_genericize): Likewise.
4922
4923 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4924 Richard Kenner <kenner@adacore.com>
4925
4926 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4927 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4928 <E_Record_Type>: Try to get a better form of the component for
4929 packing, even if it has an integral mode.
4930 <E_Record_Subtype>: Likewise.
4931 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4932 exception suppressing the final conversion between record types.
4933
4934 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4935
4936 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4937 alignment for space, promote the alignment of non-scalar variables with
4938 no size and alignment.
4939 * gigi.h (gnat_types_compatible_p): Declare.
4940 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4941 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4942 * utils.c (gnat_types_compatible_p) : New predicate.
4943 (convert): Use it throughout to test for cases where a mere view
4944 conversion is sufficient.
4945 * utils2.c (build_binary_op): Minor tweaks.
4946 (build_unary_op): Likewise.
4947
4948 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4949
4950 * decl.c (adjust_packed): Expand comment.
4951
4952 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4953
4954 * s-tasuti.ads: Use Task_Address instead of System.Address.
4955
4956 * makeutl.adb (Path_Or_File_Name): New function
4957
4958 * nlists.ads, itypes.ads: Update comments.
4959
4960 * s-crtl.ads (malloc32, realloc32): New functions.
4961
4962 * s-auxdec.ads (Short_Address_Size): New constant.
4963
4964 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4965
4966 * s-ststop.ads, s-ststop.adb: New file.
4967
4968 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4969 Minor reformatting.
4970
4971 2008-04-08 Pascal Obry <obry@adacore.com>
4972
4973 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4974 (Stop_Bits_Number): New type.
4975 (Parity_Check): Likewise.
4976 (Set): Add parameter to set the number of stop bits and
4977 the parity. Parameter timeout is now a duration instead
4978 of a plain integer.
4979
4980 * g-sercom-linux.adb:
4981 Implement the stop bits and parity support for GNU/Linux.
4982 Fix handling of timeout, it must be given in tenth of seconds.
4983
4984 * g-sercom-mingw.adb:
4985 Implement the stop bits and parity support for Windows.
4986 Use new s-win32.ads unit instead of declaring Win32 services
4987 directly into this body.
4988 Update handling of timeout as now a duration.
4989
4990 * s-win32.ads, s-winext.ads: New files.
4991
4992 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4993 Arnaud Charlet <charlet@adacore.com>
4994
4995 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4996
4997 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4998 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4999
5000 * s-osinte-lynxos-3.ads,
5001 (Alternate_Stack): Remove when not needed. Simplify declaration
5002 otherwise.
5003 (Alternate_Stack_Size): New constant.
5004
5005 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
5006 'Unrestricted_Access.
5007
5008 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
5009 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
5010 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
5011 s-osinte-solaris.ads, s-osinte-vms.ads
5012 (SA_ONSTACK): New constant.
5013 (stack_t): New record type.
5014 (sigaltstack): New imported function.
5015 (Alternate_Stack): New imported variable.
5016 (Alternate_Stack_Size): New constant.
5017
5018 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
5019
5020 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
5021 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
5022 s-taspri-vms.ads (Task_Address): New subtype of System.Address
5023 (Task_Address_Size): New constant size of System.Address
5024 (Alternate_Stack_Size): New constant.
5025
5026 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
5027 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
5028 Establish the alternate stack if the platform makes use of n alternate
5029 signal stack for stack overflows.
5030 (Create_Task): Take into account the alternate stack in the stack size.
5031 (Initialize): Save the address of the alternate stack into the ATCB for
5032 the environment task.
5033 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
5034
5035 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
5036
5037 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
5038
5039 * s-intman-posix.adb:
5040 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5041 alternate signal stack for stack overflows.
5042
5043 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5044 x86-64, adjust the saved value of the stack pointer if the signal was
5045 raised by a stack checking probe.
5046 (HP-UX section): Use global __gnat_alternate_stack as signal handler
5047 stack and only for SIGSEGV.
5048 (Linux section): Likewise on x86 and x86-64.
5049 [VxWorks section]
5050 (__gnat_map_signal): Now static.
5051 (__gnat_error_handler): Not static any more.
5052 (__gnat_adjust_context_for_raise): New function. Signal context
5053 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5054 propagation circuitry.
5055 (__gnat_error_handler): Second argument of a sigaction handler is a
5056 pointer, not an int, and is unused.
5057 Adjust signal context before mapping to exception.
5058 Install signal handlers for LynxOS case.
5059
5060 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5061 (Task_Id): Set size to Task_Address_Size
5062 (To_Task_id): Unchecked convert from Task_Address vice System.Address
5063 (To_Address): Unchecked convert to Task_Address vice System.Address
5064
5065 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5066 address into the ATCB if the platform makes use of an alternate signal
5067 stack for stack overflows.
5068 (Free_Task): Add call to Finalize_Attributes_Link.
5069 Add argument Relative_Deadline to pass the value specified for
5070 the task. This is not yet used for any target.
5071
5072 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5073 the value specified for the task.
5074
5075 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5076
5077 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5078 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5079 s-vxwext-rtp.adb): New files.
5080
5081 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5082 Minor updates to accomodate changes above.
5083
5084 2008-04-08 Pascal Obry <obry@adacore.com>
5085
5086 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5087 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5088 Use new s-win32.ads unit instead of declaration
5089 from s-osinte-mingw.ads.
5090
5091 * s-osinte-mingw.ads:
5092 Move all non tasking based interface to s-win32.ads.
5093
5094 * s-osprim-mingw.adb:
5095 Remove duplicated declarations and use s-win32.ads
5096 unit instead.
5097
5098 2008-04-08 Vincent Celier <celier@adacore.com>
5099 Arnaud Charlet <charlet@adacore.com>
5100
5101 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5102 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5103 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5104 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5105 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5106
5107 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5108 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5109 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5110 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5111 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5112 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5113 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5114 mlib-tgt-specific-mingw.adb: New names.
5115
5116 * Makefile.in:
5117 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5118 Get rid of gnatbl.
5119 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5120 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5121 Minor updates for VMS
5122
5123 * gnatbl.c: Removed.
5124
5125 2008-04-08 Thomas Quinot <quinot@adacore.com>
5126
5127 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5128 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5129 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5130 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5131 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5132 ASCII.NUL throughout.
5133
5134 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5135 Matthew Heaney <heaney@adacore.com>
5136
5137 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5138 renaming.
5139
5140 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5141 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5142 to convention for non-RM specs.
5143 Add descriptive header, and documented each operation
5144 document each operation
5145
5146 2008-04-08 Robert Dewar <dewar@adacore.com>
5147 Bob Duff <duff@adacore.com>
5148 Gary Dismukes <dismukes@adacore.com>
5149 Ed Schonberg <schonberg@adacore.com>
5150
5151 * alloc.ads: Add entries for Obsolescent_Warnings table
5152
5153 * einfo.ads, einfo.adb: Minor reformatting.
5154 (Is_Discriminal): New subprogram.
5155 (Is_Prival): New subprogram.
5156 (Is_Protected_Component): New subprogram.
5157 (Is_Protected_Private): Removed.
5158 (Object_Ref, Set_Object_Ref): Removed.
5159 (Prival, Set_Prival): Change assertion.
5160 (Privals_Chain, Set_Privals_Chain): Removed.
5161 (Prival_Link, Set_Prival_Link): New subprogram.
5162 (Protected_Operation, Set_Protected_Operation): Removed.
5163 (Protection_Object, Set_Protection_Object): New subprogram.
5164 (Write_Field17_Name): Remove case for Object_Ref.
5165 (Write_Field20_Name): Add case for Prival_Link.
5166 (Write_Field22_Name): Remove case for Protected_Operation,
5167 Privals_Chain.
5168 Add case for Protection_Object.
5169 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5170 so clients
5171 (Overlays_Constant): New flag
5172 (Is_Constant_Object): New predicate
5173 (Is_Standard_Character_Type): New predicate
5174 (Optimize_Alignment_Space): New flag
5175 (Optimize_Alignment_Time): New flag
5176 (Has_Postconditions): New flag
5177 (Obsolescent_Warrning): Field removed
5178 (Spec_PPC_List): New field
5179 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5180 subprograms to get and set the relative deadline associated to a task.
5181
5182 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5183 Access attribute is part of a named parameter association.
5184 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5185 within an init proc and use that directly as the scope rather than
5186 traversing up to the protected operation's enclosing scope. Only apply
5187 assertion on Is_Open_Scopes in the case the scope traversal is done.
5188 For the init proc case use the address of the first formal (_init) as
5189 the protected object reference.
5190 Implement Invalid_Value attribute
5191 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5192 contents of the dispatch table there is no need to duplicate the
5193 itypes associated with record types (i.e. the implicit full view
5194 of private types).
5195 Implement Enum_Val attribute
5196 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5197 within _Postconditions procedure
5198 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5199
5200 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5201 a return statement calls a function that is not available in
5202 configurable runtime.
5203 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5204 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5205 (Expand_Simple_Function_Return): Ditto
5206
5207 * frontend.adb: Add call to Sem_Aux.Initialize
5208
5209 * sem_aux.ads, sem_aux.adb: New file.
5210
5211 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5212 Add new Pragma_Relative_Deadline.
5213 Add support for pragmas Check and Check_Policy
5214
5215 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5216 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5217 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5218 missing check because they are not allowed in CPP tagged types.
5219 Add Sure parameter to Note_Possible_Modification calls
5220 Add implementation of Invalid_Value attribute
5221 Implement new attribute Has_Tagged_Values
5222 Implement Enum_Val attribute
5223 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5224 generated attributes.
5225 (Analyze_Attribute, case Result): If prefix of the attribute is
5226 overloaded, it always resolves to the enclosing function.
5227 (Analyze_Attribute, case Result): Properly deal with analysis when
5228 Postconditions are not active.
5229 (Resolve_Attribute, case Result): Properly deal with appearence during
5230 preanalysis in spec.
5231 Add processing for attribute Result
5232
5233 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5234 for operators.
5235 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5236 acts as a spec.
5237 (Check_Inline_Pragma): recognize an inline pragma that appears within
5238 the subprogram body to which it applies.
5239 (Analyze_Function_Return): Check that type of the expression of a return
5240 statement in a function with a class-wide result is not declared at a
5241 deeper level than the function.
5242 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5243 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5244 user- defined operators.
5245 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5246 analysis of precondition/postcondition pragmas.
5247 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5248 Last_Formal, along with lots of comments on what this is about
5249 (Analyze_Subprogram_Body): Fix case where we move entities from the
5250 spec to the body when there are no body entities (now possible with
5251 precondition and postcondition pragmas).
5252 (Process_PPCs): New procedure
5253 (Analyze_Subprogram_Body): Add call to Process_PPCs
5254
5255 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5256 clause.
5257 (Pop_Scope): Restore Check_Policy_List on scope exit
5258 (Push_Scope): Save Check_Policy_List on scope entry
5259 Change name In_Default_Expression => In_Spec_Expression
5260 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5261 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5262 (Analyze_Object_Renaming): Allow 'Reference as object
5263 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5264 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5265 of restriction identifier.
5266 Add Sure parameter to Note_Possible_Modication calls
5267
5268 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5269 Don't check for primitive operations when calling Rep_Item_Too_Late.
5270 (Process_Import_Or_Interface): Do not place flag on formal
5271 subprograms.
5272 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5273 propagate information to full view, which is the one elaborated by the
5274 back-end.
5275 (Make_Inline): the pragma is effective if it applies to an internally
5276 generated subprogram declaration for a body that carries the pragma.
5277 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5278 Optimize_Alignment_Local.
5279 (Analyze_PPC_In_Decl_Part): New procedure
5280 (Get_Pragma_Arg): Moved to outer level
5281 (Check_Precondition_Postcondition): Change to allow new visibility
5282 rules for package spec
5283 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5284 same as pragma Suppress/Unsuppress.
5285 Change name In_Default_Expression => In_Spec_Expression
5286 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5287 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5288 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5289 for the case of these pragmas appearing in the spec.
5290 (Check_Enabled): New function
5291 (Initialize): New procedure
5292 (Tree_Read): New procedure
5293 (Tree_Write): New procedure
5294 (Check_Precondition_Postcondition): New procedure
5295 Implement pragmas Check and Check_Policy
5296 Merge Assert processing with Check
5297
5298 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5299 New warning flag -gnatw.e
5300
5301 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5302 returning whether a task (or main procedure) has a pragma
5303 Relative_Deadline.
5304 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5305 (or main procedure) has a pragma Relative_Deadline.
5306 Add Next_Pragma field to N_Pragma node
5307 (PPC_Enabled): New flag
5308 (Next_Pragma): Now used for Pre/Postcondition processing
5309
5310 * snames.h, snames.ads, snames.adb: New standard name
5311 Inherit_Source_Path
5312 Add entry for 'Invalid_Value attribute
5313 Add entry for new attribute Has_Tagged_Values
5314 Add entry for Enum_Val attribute
5315 Add new standard names Aggregate, Configuration and Library.
5316 Add _Postconditions
5317 Add _Result
5318 Add Pragma_Precondition
5319 Add Pragma_Postcondition
5320 Add Attribute_Result
5321 New standard name Archive_Builder_Append_Option
5322 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5323 There was also a missing non_preemptive_within_priorities.
5324 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5325 Relative_Deadline.
5326 Add support for pragmas Check and Check_Policy
5327
5328 * tree_gen.adb: Call Sem_Aux.Tree_Write
5329
5330 * tree_in.adb: Call Sem_Aux.Tree_Read
5331
5332 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5333 sequence
5334
5335 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5336 sequence
5337
5338 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5339 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5340 Relative_Deadline.
5341 (Expand_Pragma_Check): New procedure
5342
5343 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5344 buffer.
5345
5346 * sinfo.adb (PPC_Enabled): New flag
5347
5348 2008-04-08 Robert Dewar <dewar@adacore.com>
5349 Gary Dismukes <dismukes@adacore.com>
5350 Javier Miranda <miranda@adacore.com>
5351 Ed Schonberg <schonberg@adacore.com>
5352
5353 * fe.h: Remove global Optimize_Alignment flag, no longer used
5354
5355 * layout.adb: Test Optimize_Alignment flags rather than global switch
5356
5357 * lib.ads, lib.adb: New OA_Setting field in library record
5358
5359 * lib-load.adb: New OA_Setting field in library record
5360
5361 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5362 units mentioned in limited_with_ clauses in the ali file, with an
5363 'Y' marker.
5364 New Ox fields in U line
5365
5366 * opt.adb: New flag Optimize_Alignment_Local
5367 (Check_Policy_List[_Config]): New flags
5368
5369 * opt.ads (Invalid_Value_Used): New flag
5370 New switch Optimize_Alignment_Local
5371 (Warn_On_Parameter_Order): New flag
5372 (Check_Policy_List[_Config]): New flags
5373
5374 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5375 limited_with clauses.
5376 New data structures for Optimize_Alignment
5377
5378 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5379 New procedure
5380 (Check_Consistent_Optimize_Alignment): Rework for new structure
5381 (Check_Consistent_Restrictions): Fix incorrect error message
5382
5383 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5384 created class-wide type (to the Parent field of the specific type).
5385 (Install_Siblings): Handle properly private_with_clauses on subprogram
5386 bodies and on generic units.
5387 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5388 illegal limited_with_clause that names a non-existent package.
5389 (Check_Body_Required): Determine whether a unit named a limited_with
5390 clause needs a body.
5391 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5392 Capture Optimize_Alignment settings to set new OA_Setting field in
5393 library record.
5394 (Build_Limited_Views): Include task and protected type declarations.
5395
5396 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5397 case of a possible constant redeclaration where the current object is
5398 an entry index constant.
5399 (Analyze_Object_Declaration): Generate an error in case of CPP
5400 class-wide object initialization.
5401 (Analyze_Object_Declaration): Add extra information on warnings for
5402 declaration of unconstrained objects.
5403 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5404 conflicts with the setting of Stored_Constraint in the case where the
5405 access type entity has already been created as an E_Incomplete_Type due
5406 to a limited with clause.
5407 Use new Is_Standard_Character_Type predicate
5408 (Analyze_Object_Declaration): Apply access_constant check only after
5409 expression has been resolved, given that it may be overloaded with
5410 several access types.
5411 (Constant_Redeclaration): Additional legality checks for deferred
5412 constant declarations tha involve anonymous access types and/or null
5413 exclusion indicators.
5414 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5415 (Analyze_Subtype_Declaration): Ditto
5416 (Analyze_Object_Declaration): Ditto
5417 (Analyze_Object_Declaration): Don't count tasks in generics
5418 Change name In_Default_Expression => In_Spec_Expression
5419 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5420 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5421 (Process_Discriminants): Additional check for illegal use of default
5422 expressions in access discriminant specifications in a type that is not
5423 explicitly limited.
5424 (Check_Abstract_Overriding): If an inherited function dispaches on an
5425 access result, it must be overridden, even if the type is a null
5426 extension.
5427 (Derive_Subprogram): The formals of the derived subprogram have the
5428 names and defaults of the parent subprogram, even if the type is
5429 obtained from the actual subprogram.
5430 (Derive_Subprogram): In the presence of interfaces, a formal of an
5431 inherited operation has the derived type not only if it descends from
5432 the type of the formal of the parent operation, but also if it
5433 implements it. This is relevant for the renamings created for the
5434 primitive operations of the actual for a formal derived type.
5435 (Is_Progenitor): New predicate, to determine whether the type of a
5436 formal in the parent operation must be replaced by the derived type.
5437
5438 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5439 predicate recursive to handle components that have a user-defined
5440 Initialize procedure. Handle controlled derived types whose ancestor
5441 has a user-defined Initialize procedured.
5442 (Note_Possible_Modification): Add Sure parameter, generate warning if
5443 sure modification of constant
5444 Use new Is_Standard_Character_Type predicate
5445 (Find_Parameter_Type): when determining whether a protected operation
5446 implements an interface operation, retrieve the type of the formal from
5447 the entity when the formal is an access parameter or an
5448 anonymous-access-to-subprogram.
5449 Move Copy_Parameter_List to sem_util, for use when building stubbed
5450 subprogram bodies.
5451 (Has_Access_Values): Tagged types now return False
5452 (Within_HSS_Or_If): New procedure
5453 (Set_Optimize_Alignment_Flags): New procedure
5454 Change name In_Default_Expression => In_Spec_Expression
5455 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5456 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5457
5458 2008-04-08 Tristan Gingold <gingold@adacore.com>
5459
5460 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5461
5462 2008-04-08 Tristan Gingold <gingold@adacore.com>
5463
5464 PR ada/10768
5465
5466 * cuintp.c: Fix 16 bits issue for AVR.
5467 On AVR, integer is 16 bits, so it can't be used to do math with
5468 Base (=32768).
5469 So use long_integer instead.
5470
5471 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5472
5473 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5474 System.OS_Primitives.
5475 Change type of various constants, parameters and local variables from
5476 Time to representation type OS_Time.
5477 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5478 Remove the declaration of constant Mili_F from several routines. New
5479 body for internal package Conversions_Operations.
5480 (Time_Of): Add default parameters for several formals.
5481
5482 * a-caldel.adb: Minor reformatting
5483
5484 * a-calend.ads, a-calend.adb: New body for internal package
5485 Conversions_Operations.
5486 (Time_Of): Add default parameters for several formals.
5487
5488 * Makefile.rtl: Add a-ststop
5489 Add Ada.Calendar.Conversions to the list of runtime files.
5490 Add g-timsta
5491
5492 * a-calcon.adb, a-calcon.ads: New files.
5493
5494 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5495 Tristan Gingold <gingold@adacore.com>
5496
5497 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5498 (Install_Restricted_Handlers): New procedure
5499 which is a simplified version of Install_Handlers that does not store
5500 previously installed.
5501
5502 * s-interr-vxworks.adb: Fix ACATS cxc3001
5503 On VxWorks interrupts can't be detached.
5504 (Install_Restricted_Handlers): New procedure.
5505
5506 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5507 procedure.
5508
5509 2008-04-08 Olivier Hainque <hainque@adacore.com>
5510
5511 * s-intman-vxworks.ads, s-intman-vxworks.adb
5512 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5513 required services already implemented elsewhere.
5514 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5515 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5516 argument passed to the handler, which we need for ZCX propagation
5517 purposes.
5518
5519 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5520
5521 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5522
5523 * g-timsta.adb, g-timsta.ads: New files.
5524
5525 2008-04-08 Robert Dewar <dewar@adacore.com>
5526
5527 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5528 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5529 (Raise_Exception_Always): Fix documentation accordingly
5530
5531 2008-04-08 Robert Dewar <dewar@adacore.com>
5532
5533 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5534 Stream_Convert)
5535
5536 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5537 FOnly
5538
5539 2008-04-08 Javier Miranda <miranda@adacore.com>
5540 Robert Dewar <dewar@adacore.com>
5541 Ed Schonberg <schonberg@adacore.com>
5542
5543 * a-tags.adb (Register_Interface_Offset): New subprogram.
5544 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5545 (To_Predef_Prims_Table_Ptr): Removed.
5546 (Acc_Size): Removed.
5547 (To_Acc_Size): Removed.
5548 (Parent_Size): Modified to the call the subprogram returning the size of
5549 the parent by means of the new TSD component Size_Func.
5550
5551 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5552 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5553 code referencing the Offset_To_Top component of the dispatch table's
5554 prologue.
5555 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5556 use of 'address to initialize dispatch table slots.
5557 (Size_Func): New component of the TSD. Used by the run-time to call the
5558 size primitive of the tagged type.
5559
5560 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5561 Offset_To_Top component of a dispatch table.
5562 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5563 deferred constant declaration. do not add a null expression, to prevent
5564 spurious errors when full declaration is analyzed.
5565 (Apply_Discriminant_Check): If both discriminant constraints share a
5566 node which is not static but has no side effects, do not generate a
5567 check for that discriminant.
5568 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5569 subexpr, since the prefix of an attribute is a name.
5570
5571 * checks.ads: Fix nit in comment.
5572
5573 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5574 and body of predefined primitives in case of CPP tagged type
5575 derivations.
5576 (Freeze_Type): Deal properly with no storage pool case
5577 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5578 primitive Deep_Adjust if a nonlimited interface is derived from a
5579 limited interface.
5580 (Build_Dcheck_Functions): Create discriminant-checking functions only
5581 for variants that have some component(s).
5582 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5583 properly the case where the slice bounds extend to the last value of the
5584 underlying representation.
5585 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5586 (Is_Variable_Size_Record): An array component has a static size if
5587 index bounds are enumeration literals.
5588
5589 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5590 an external tag has been specified for the type.
5591 (Building_Static_DT): Add missing support for private types.
5592 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5593 to the entity associated with the parent of Typ. This is done to
5594 avoid wrong access when the parent is a private type.
5595 (Expand_Interface_Conversion): Improve error message when the
5596 configurable runtime has no support for dynamic interface conversion.
5597 (Expand_Interface_Thunk): Add missing support to interface types in
5598 configurable runtime.
5599 (Expand_Dispatching_Call): remove obsolete code.
5600 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5601 ensure that all subtypes and aggregates associated with dispatch
5602 tables have the attribute Is_Dispatch_Table_Entity set to true.
5603 (Register_Primitive): Rename one variable to improve code reading.
5604 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5605 of the pointer to the 'size primitive in the TSD.
5606
5607 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5608 (RE_Offset_To_Top_Ptr): New entity.
5609 (RE_Register_Interface_Offset): New entity.
5610 (RE_Set_Dynamic_Offset_To_Top): New entity.
5611 (RE_Set_Offset_To_Top): Removed entity.
5612 (RE_Prim_Ptr): New entity
5613 (RE_Size_Func): New entity
5614 (RE_Size_Ptr): New entity
5615 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5616 (Ada_Dispatching_Child): Define this new subrange.
5617 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5618 RE_Time_Span, and RE_Time_Span_Zero).
5619 (RE_Unit_Table): Add new required run-time calls
5620
5621 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5622 children.
5623
5624 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5625 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5626 initializes the Offset_To_Top component of a dispatch table.
5627 (Build_Predef_Prims): Removed.
5628 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5629 its actual code.
5630 (Build_Set_Size_Function): New subprogram.
5631
5632 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5633 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5634
5635 2008-04-08 Robert Dewar <dewar@adacore.com>
5636
5637 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5638 computing Fore when Exp > 0
5639
5640 2008-04-08 Robert Dewar <dewar@adacore.com>
5641
5642 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5643
5644 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5645 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5646
5647 * fmap.adb: Remove Big_String declarations (now in Types)
5648 (No_Mapping_File): New Boolean global variable
5649 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5650 False.
5651 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5652 tables were empty before adding entries, open the mapping file
5653 with Truncate = True, instead of delete/re-create.
5654
5655 * fname-sf.adb: Remove Big_String declarations (now in Types)
5656
5657 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5658 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5659 big pointer types
5660
5661 * table.ads: Add for Table_Ptr'Storage_Size use 0
5662
5663 * types.ads: Add Big_String declarations
5664 Add Size_Clause of zero for big pointer types
5665
5666 2008-04-08 Vincent Celier <celier@adacore.com>
5667
5668 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5669 (Usage): Add line for switch --subdirs=
5670 Add new switch -eL, to follow symbolic links when processing project
5671 files.
5672
5673 * gnatcmd.adb: Process switches -eL and --subdirs=
5674 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5675 Program_Name to get proper tool names when AAMP_On_Target is set.
5676 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5677 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5678 Osint.Program_Name).
5679
5680 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5681 (Usage): Add lines for switches -eL and --subdirs=
5682
5683 * makeusg.adb: Add line for switch --subdirs=
5684
5685 * prj.ads:
5686 (Source_Data): New Boolean component Compiled, defaulted to True
5687 (Empty_File_Name: New global variable in private part, initialized in
5688 procedure Initialize.
5689 (Subdirs_Option): New constant string
5690 (Subdirs): New String_Ptr global variable
5691 (Language_Config): New component Include_Compatible_Languages
5692 (Project_Qualifier): New type for project qualifiers
5693 (Project_Data): New component Qualifier
5694 (Project_Configuration): New component Archive_Builder_Append_Option
5695
5696 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5697 another imported project indicate the name of this imported project.
5698 (Check_File): When a unit is in two project files, indicate the project
5699 names and the paths of the source files for each project.
5700 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5701 set object, dependency and switches file names if Compiled is True.
5702 (Process_Compiler): Allow the empty string for value of attribute Driver
5703 (Get_Directories): When Subdirs is not null and Object_Dir is not
5704 specified, locate and create if necessary the actual object dir.
5705 (Locate_Directory): When Subdirs is not empty and Create is not the
5706 empty string, locate and create if necessary the actual directory
5707 as a subdirectory of directory Name.
5708 (Check_Library_Attributes.Check_Library): Allow a project where the only
5709 "sources" are header files of file based languages to be imported by
5710 library projects, in multi-language mode (gprbuild).
5711 (Check_Library_Attributes.Check_Library): In multi-language mode
5712 (gprbuild), allow a library project to import a project with no
5713 sources, even when this is not declared explicitly.
5714 (Check_If_Externally_Built): A virtual project extending an externally
5715 built project is also externally built.
5716 (Check_Library_Attributes): For a virtual project extending a library
5717 project, inherit the library directory.
5718 (Process_Project_Level_Array_Attributes): Process new attribute
5719 Inherit_Source_Path.
5720 For projects with specified qualifiers "standard", "library" or
5721 "abstract", check that the project conforms to the qualifier.
5722 (Process_Project_Level_Simple_Attributes): Process new attribute
5723 Archive_Builder_Append_Option.
5724
5725 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5726 (Normalize_Compiler_Switches): Only keep compiler switches that are
5727 passed to gnat1 by the gcc driver and that are stored in the ALI file
5728 by gnat1.
5729 Do not take into account switc -save-temps
5730
5731 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5732 gprmake is called with -eL.
5733 (Scan_Arg): Recognize switch -eL
5734 (Usage): Add line for switch -eL
5735
5736 * prj.adb (Initialize): Initialize Empty_File_Name
5737 (Project_Empty): New component Qualifier
5738
5739 * prj-attr.ads, prj-attr.adb: New project level attribute
5740 Inherit_Source_Path.
5741 New project level attribute Archive_Builder_Append_Option
5742
5743 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5744
5745 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5746 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5747 upward compatibility.
5748
5749 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5750 each Trying ..." on different lines.
5751 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5752 is "configuration" when not in configuration. Fail when in configuration
5753 when a specified qualifier is other than "configuration".
5754
5755 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5756 full associative array together.
5757 (Recursive_Process): Put the project qualifier in the project data
5758
5759 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5760 (Set_Project_Qualifier_Of): New procedure
5761
5762 2008-04-08 Robert Dewar <dewar@adacore.com>
5763
5764 * errout.ads: Update comments for new handling of info: messages
5765
5766 * erroutc.adb (Matches): New procedure
5767 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5768 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5769 info messages as well as style messages.
5770
5771 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5772
5773 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5774 subprograms.
5775 (Check_A_Call): Special "info: " warnings now have ? in the text
5776 (Elab_Warning): Use info message in static case
5777
5778 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5779
5780 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5781 whether an array aggregate with static bounds and scalar components
5782 should be expanded into a static constant.
5783
5784 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5785 Ed Schonberg <schonberg@adacore.com>
5786 Robert Dewar <dewar@adacore.com>
5787
5788 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5789 Has_Stream_Attribute_ Definition when checking for available stream
5790 attributes on parameters of a limited type in Ada 2005. Necessary for
5791 proper recognition of visible stream attribute clauses.
5792 (Has_Stream_Attribute_Definition): If the type is derived from a
5793 private type, then use the derived type's underlying type for checking
5794 whether it has stream attributes.
5795 (Validate_Object_Declaration): The check for a user-defined Initialize
5796 procedure applies also to types with controlled components or a
5797 controlled ancestor.
5798 Reject an object declaration in a preelaborated unit if the type is a
5799 controlled type with an overriding Initialize procedure.
5800 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5801 checking when the parent of a dereference is a selected component and
5802 the name has not been analyzed.
5803
5804 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5805 prefixes that are invalid explicit dereferences of remote
5806 access-to-class-wide values, first checking whether the selected
5807 component is a prefixed form of call to a tagged operation.
5808 (Analyze_Call): Remove code that issues an error for limited function
5809 calls in illegal contexts, as we now support all of the contexts that
5810 were forbidden here.
5811 Allow a function call that returns a task.and appears as the
5812 prefix of a selected component.
5813 (Analyze_Reference): Give error message if we try to make a 'Reference
5814 for an object that is atomic/aliased without its type having the
5815 corresponding attribute.
5816 (Analyze_Call): Remove condition checking for attributes to allow
5817 calls to functions with inherently limited results as prefixes of
5818 attributes. Remove related comment about Class attributes.
5819 (Analyze_Selected_Component): If the prefix is a remote type, check
5820 whether this is a prefixed call before reporting an error.
5821 (Complete_Object_Operation): If the controlling formal is an access to
5822 variable reject an actual that is a constant or an access to one.
5823 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5824 primitive operations from base type.
5825
5826 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5827 build-in-place
5828 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5829 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5830 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5831 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5832 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5833 (Analyze_Call): Remove code that issues an error for limited function
5834 calls in illegal contexts, as we now support all of the contexts that
5835 were forbidden here.
5836 New calling sequence for Get_Simple_Init_Val
5837 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5838 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5839
5840 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5841 Ed Schonberg <schonberg@adacore.com>
5842 Robert Dewar <dewar@adacore.com>
5843
5844 * exp_ch2.adb: Minor reformatting.
5845 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5846 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5847 (Expand_Protected_Component): New routine.
5848 (Expand_Protected_Private): Removed.
5849 Add Sure parameter to Note_Possible_Modification calls
5850
5851 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5852 generated subprogram declaration must inherit the overriding indicator
5853 from the instantiation node.
5854 (Validate_Access_Type_Instance): If the designated type of the actual is
5855 a limited view, use the available view in all cases, not only if the
5856 type is an incomplete type.
5857 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5858 and the actual subtype does not exclude null.
5859 (Process_Default): Handle properly abstract formal subprograms.
5860 (Check_Formal_Package_Instance): Handle properly defaulted formal
5861 subprograms in a partially parameterized formal package.
5862 Add Sure parameter to Note_Possible_Modification calls
5863 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5864 actual cannot be limited.
5865 (Collect_Previous_Instances): Generate instance bodies for subprograms
5866 as well.
5867
5868 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5869 try to set RM_Size.
5870 Add Sure parameter to Note_Possible_Modification calls
5871 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5872 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5873 constant overlaid by variable and issue warning.
5874 Use new Is_Standard_Character_Type predicate
5875 (Analyze_Record_Representation_Clause): Check that the specified
5876 Last_Bit is not less than First_Bit - 1.
5877 (Analyze_Attribute_Definition_Clause, case Address): Check for
5878 self-referential address clause
5879
5880 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5881 detection mechanism when the lhs is a prival.
5882 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5883 assignment of a pointer to protected data, to an object declared
5884 outside of the protected object.
5885 (Analyze_Loop_Statement): Check for unreachable code after loop
5886 Add Sure parameter to Note_Possible_Modication calls
5887 Protect analysis from previous syntax error such as a scope mismatch
5888 or a missing begin.
5889 (Analyze_Assignment_Statement): The assignment is illegal if the
5890 left-hand is an interface.
5891
5892 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5893 violation of restriction No_Implicit_Conditionals
5894 Add Sure parameter to Note_Possible_Modication calls
5895 Use new Is_Standard_Character_Type predicate
5896 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5897 call as operator. Fixes problems (e.g. validity checking) which
5898 come from the result looking as though it does not come from source).
5899 (Resolve_Call): Check case of name in named parameter if style checks
5900 are enabled.
5901 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5902 from the checking that such calls should not occur from an entry body.
5903 (Resolve_Call): If the return type of an Inline_Always function
5904 requires the secondary stack, create a transient scope for the call
5905 if the body of the function is not available for inlining.
5906 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5907 that are actuals for in-out formals.
5908 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5909 primitive operations from base type.
5910 (Analyze_Selected_Component): If the context is a call to a protected
5911 operation the parent may be an indexed component prior to expansion.
5912 (Resolve_Actuals): If an actual is of a protected subtype, use its
5913 base type to determine whether a conversion to the corresponding record
5914 is needed.
5915 (Resolve_Short_Circuit): Handle pragma Check
5916
5917 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5918 Use new Is_Standard_Character_Type predicate
5919 (Eval_Relational_Op): Catch more cases of string comparison
5920
5921 2008-04-08 Robert Dewar <dewar@adacore.com>
5922 Gary Dismukes <dismukes@adacore.com>
5923
5924 * s-rident.ads: Add No_Default_Initialization restriction
5925
5926 * exp_tss.adb:
5927 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5928 (Set_TSS): Handle No_Default_Initialization case
5929
5930 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5931 No_Default_Initialization
5932 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5933 parameters when Normalize_Scalars is active.
5934 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5935 Fix casing error in formal parameter name in call
5936 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5937 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5938 dispatching call on VM targets.
5939
5940 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5941 Thomas Quinot <quinot@adacore.com>
5942
5943 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5944 selected component from an access type's Associated_Final_Chain to
5945 check for the presence of that field, rather than assuming it exists
5946 for all named access types.
5947 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5948 procedure to call at the end of the generated cleanup procedure.
5949 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5950 and an At_End_Proc already exists in the handled sequence of statements
5951 for which cleanup actions are being expanded, the original cleanup
5952 action must be preserved.
5953
5954 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5955 Ed Schonberg <schonberg@adacore.com>
5956 Robert Dewar <dewar@adacore.com>
5957 Gary Dismukes <dismukes@adacore.com>
5958
5959 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5960 Build_Unprotected_Subprogram_Body): Generate debug info for
5961 declarations related to the handling of private data in task and
5962 protected types.
5963 (Debug_Private_Data_Declarations): New subprogram.
5964 (Install_Private_Data_Declarations): Remove all debug info flagging.
5965 This is now done by Debug_Private_Data_Declarations at the correct
5966 stage of expansion.
5967 (Build_Simple_Entry_Call): If the task name is a function call, expand
5968 the prefix into an object declaration, and make the surrounding block a
5969 task master.
5970 (Build_Master_Entity): An internal block is a master if it wraps a call.
5971 Code reformatting, update comments. Code clean up.
5972 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5973 (Replicate_Entry_Formals): If the formal is an access parameter or
5974 anonymous access to subprogram, copy the original tree to create new
5975 entities for the formals of the subprogram.
5976 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5977 for tasks to store the value passed using pragma Relative_Deadline.
5978 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5979 run-time call to create a task.
5980 (Build_Wrapper_Spec): If the controlling argument of the interface
5981 operation is an access parameter with a non-null indicator, use the
5982 non-null indicator on the wrapper.
5983
5984 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5985 present, which it may not be in the case where the type entity is an
5986 incomplete view brought in by a limited with.
5987 (Analyze_Task_Type): Only retrieve the full view when present, which it
5988 may not be in the case where the type entity is an incomplete view brought
5989 in by a limited with.
5990 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5991 private components of a protected type, to prevent the generation of freeze
5992 nodes for which there is no proper scope of elaboration.
5993
5994 * exp_util.ads, exp_util.adb
5995 (Remove_Side_Effects): If the expression is a function call that returns a
5996 task, expand into a declaration to invoke the build_in_place machinery.
5997 (Find_Protection_Object): New routine.
5998 (Remove_Side_Effects): Also make a copy of the value
5999 for attributes whose result is of an elementary type.
6000 (Silly_Boolean_Array_Not_Test): New procedure
6001 (Silly_Boolean_Array_Xor_Test): New procedure
6002 (Is_Volatile_Reference): New function
6003 (Remove_Side_Effects): Use Is_Volatile_Reference
6004 (Possible_Bit_Aligned_Component): Handle slice case properly
6005
6006 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
6007 case test to Exp_Util
6008 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
6009
6010 2008-04-08 Thomas Quinot <quinot@adacore.com>
6011
6012 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
6013 in call
6014 (Add_RACW_Features): When processing an RACW in another unit than the
6015 main unit, set Body_Decls to No_List to indicate that the bodies of
6016 the type's TSS must not be generated.
6017 (GARLIC_Support.Add_RACW_Read_Attribute,
6018 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
6019 Body_Decls is No_List.
6020 (PolyORB_Support.Add_RACW_Read_Attribute,
6021 PolyORB_Support.Add_RACW_Write_Attribute,
6022 PolyORB_Support.Add_RACW_From_Any,
6023 PolyORB_Support.Add_RACW_To_Any,
6024 PolyORB_Support.Add_RACW_TypeCode): Same.
6025 (Transmit_As_Unconstrained): New function.
6026 (Build_Ordered_Parameters_List): Use the above to order parameters.
6027 (GARLIC_Support.Build_General_Calling_Stubs):
6028 Use the above to determine which parameters to unmarshall using 'Input
6029 at the point where their temporary is declared (as opposed to later on
6030 with a 'Read call).
6031 (PolyORB_Support.Build_General_Calling_Stubs):
6032 Use the above to determine which parameters to unmarshall using From_Any
6033 at the point where their temporary is declared (as opposed to later on
6034 with an assignment).
6035
6036 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6037
6038 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
6039 an Input function for an access type, do not perform default
6040 initialization on the local variable that receives the value, to
6041 prevent spurious warnings when the type is null-excluding.
6042
6043 2008-04-08 Robert Dewar <dewar@adacore.com>
6044 Ed Schonberg <schonberg@adacore.com>
6045
6046 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6047 units.
6048 (Size_Known): Generic formal scalar types have known at compile
6049 time size, so remove check.
6050 Fix casing error in formal parameter name in call
6051 (Freeze_Subprogram): If the subprogram is a user-defined operator,
6052 recheck its overriding indication.
6053
6054 2008-04-08 Vincent Celier <celier@adacore.com>
6055
6056 * gnat1drv.adb: Send all messages indicating an error to standard error
6057
6058 2008-04-08 Robert Dewar <dewar@adacore.com>
6059
6060 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6061 (List_Applicable_Restrictions): Do not list existing restrictions
6062
6063 2008-04-08 Thomas Quinot <quinot@adacore.com>
6064
6065 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6066 add a pointer to generic sockets literature
6067 do not mention that the given example is "typical" usage.
6068 Remove obsolete comment about multicast not being supported on Windows.
6069 (Connect_Socket): Make Server mode IN rather than IN OUT
6070 since this formal is never modified.
6071
6072 2008-04-08 Robert Dewar <dewar@adacore.com>
6073
6074 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6075 the declaration for some different entity.
6076 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6077 list is precent (following the parent subtype indication), display
6078 appropriate "and" keyword.
6079
6080 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6081 Remove unnecessary calls to Init_Size_Align and Init_Esize.
6082 Add notes on use of Parent field of an Itype
6083
6084 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6085 Robert Dewar <dewar@adacore.com>
6086 Gary Dismukes <dismukes@adacore.com>
6087
6088 * lib-xref.adb (Is_On_LHS): Remove dead code
6089 (Output_Overriden_Op): If the overridden operation is itself inherited,
6090 list the ancestor operation, which is the one whose body or absstract
6091 specification is actually being overridden. For source navigation
6092 purposes.
6093
6094 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6095 operation is primitive for the type.
6096 (Declare_Inherited_Private_Subprograms): If the new operation overrides
6097 an inherited private subprogram, set properly the Overridden_Operation
6098 attribute, for better cross-reference information.
6099 (Analyze_Package_Specification): Do late analysis of spec PPCs
6100 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6101 properly the full view and underlying full views of a private type in a
6102 child unit, whose full view is derived from a private type in a parent
6103 unit, and whose own full view becomes visible in the child body.
6104
6105 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6106 primitive operation after the type has been frozen, add an explicit
6107 reference to the type and the operation, because other primitive
6108 references have been emitted already.
6109 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6110 dispatching call on VM targets.
6111
6112 2008-04-08 Vincent Celier <celier@adacore.com>
6113 Thomas Quinot <quinot@adacore.com>
6114
6115 * make.adb: (Gnatmake_Called): Remove, no longer necessary
6116 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6117 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6118 (Insert_Project_Sources): Take into account index in multi-unit source
6119 files.
6120 After building a library project, delete all temporary files.
6121 (Initialize): Reset current output after parsing project file.
6122 (Collect_Arguments_And_Compile): Never insert in the queue the sources
6123 of library projects that are externally built.
6124 Put file name in error and inform messages if -df is used
6125 (Display): If invoked with -d7, do not display path names, but only
6126 file names.
6127
6128 * makeutl.ads (Path_Or_File_Name): New function
6129 (Path_Or_File_Name): New function
6130
6131 2008-04-08 Arnaud Charlet <charlet@adacore.com>
6132
6133 * Make-lang.in: Disable warnings during first stage of bootstrap
6134 Get rid of gnatbl.
6135 Update dependencies.
6136
6137 2008-04-08 Vincent Celier <celier@adacore.com>
6138
6139 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6140 case to decide if ALI object file is included in library.
6141 (Build_Library): Never attempt to build a library if the project is
6142 externally built.
6143
6144 2008-04-08 Thomas Quinot <quinot@adacore.com>
6145
6146 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6147 (No_List) is defined to return Empty.
6148
6149 2008-04-08 Jose Ruiz <ruiz@adacore.com>
6150
6151 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6152 documentation.
6153 Update comments.
6154 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6155 because spaces may be part of legal paths.
6156
6157 2008-04-08 Robert Dewar <dewar@adacore.com>
6158
6159 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6160 handler
6161
6162 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6163
6164 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6165 in a type declaration, if this is not an interface declaration or
6166 private type extension.
6167
6168 2008-04-08 Vincent Celier <celier@adacore.com>
6169
6170 * prj-util.adb (Executable_Of): New String parameter Language. When
6171 Ada_Main is False and Language is not empty, attempt to remove the body
6172 suffix or the spec suffix of the language to get the base of the
6173 executable file name.
6174 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6175 Lower_Case is True, put the value in lower case in the name list.
6176 (Executable_Of): If there is no executable suffix in the configuration,
6177 then do not modify Executable_Extension_On_Target.
6178
6179 * prj-util.ads (Executable_Of): New String parameter Language,
6180 defaulted to the empty string.
6181 (Put): New Boolean parameter Lower_Case, defauilted to False
6182
6183 2008-04-08 Robert Dewar <dewar@adacore.com>
6184
6185 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6186 wide character using UTF-8 encoding.
6187
6188 2008-04-08 Javier Miranda <miranda@adacore.com>
6189
6190 * sem.adb (Analyze): Consider case in which we analyze an empty node
6191 that was generated by a call to a runtime function that is not
6192 available under the configurable runtime.
6193
6194 * sem.ads (Inside_Freezing_Actions): New flag.
6195 (Save_Check_Policy_List): New field in scope stack entry
6196
6197 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6198 Robert Dewar <dewar@adacore.com>
6199
6200 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6201 the ancestor part of an extension aggregate for a limited type.
6202 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6203 enumeration index bounds.
6204 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6205 when array is too short.
6206 (Check_Expr_OK_In_Limited_Aggregate): Move function
6207 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6208 change name).
6209 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6210 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6211 component associations.
6212 (Check_Non_Limited_Type): Moved to outer level and renamed.
6213 (Resolve_Record_Aggregate): In an extension aggregate, an association
6214 with a box initialization can only designate a component of the
6215 extension, not a component inherited from the given ancestor
6216
6217 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6218
6219 2008-04-08 Robert Dewar <dewar@adacore.com>
6220
6221 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6222 negative scale
6223 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6224 Properly handle case where Aft > Scale and input number is less than
6225 one.
6226
6227 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6228
6229 * s-stoele.ads, s-soflin.ads: Move the location of
6230 Dummy_Communication_Block from System.Storage_Elements to
6231 System.Soft_Links.
6232
6233 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6234 emulate Communication_Block in certain scenarios.
6235
6236 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6237
6238 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6239 subprogram.
6240 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6241 To_WWC.
6242 (I_WWC, O_WWC): New routines for input and output of
6243 Wide_Wide_Character.
6244
6245 2008-04-08 Robert Dewar <dewar@adacore.com>
6246
6247 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6248 properly
6249
6250 2008-04-08 Robert Dewar <dewar@adacore.com>
6251
6252 * styleg.adb (Check_Comment): Allow special char after -- in
6253 non-end-of-line case
6254
6255 2008-04-08 Robert Dewar <dewar@adacore.com>
6256
6257 * stylesw.adb: Implement -gnaty + - y options
6258 (Set_GNAT_Style_Check_Options): Includ I in style check string
6259
6260 * stylesw.ads: Add comments for new style switch options
6261
6262 2008-04-08 Sergey Rybin <rybin@adacore.com>
6263
6264 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6265 to the set of the GNAT components needed by ASIS.
6266
6267 2008-04-08 Bob Duff <duff@adacore.com>
6268
6269 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6270
6271 2008-04-08 Tristan Gingold <gingold@adacore.com>
6272
6273 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6274 Improve error message generation.
6275
6276 2008-04-08 Vincent Celier <celier@adacore.com>
6277
6278 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6279 Use_Error, as specified in the RM. Check if directory is open and raise
6280 Use_Error if it is not.
6281
6282 2008-04-08 Vincent Celier <celier@adacore.com>
6283 Robert Dewar <dewar@adacore.com>
6284
6285 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6286 AAMP_On_Target is set.
6287
6288 * vms_data.ads: Add NOxxx to style check switch list
6289 Add entry COMPONENTS for -gnatVe
6290 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6291 (/SUBDIRS=).
6292 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6293 Add qualifiers for gnatmetric coupling options
6294 Add note that -gnata enables all checks
6295 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6296 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6297 New warning flag -gnatw.e
6298
6299 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6300 Add entry for -gnatyN (forgotten before)
6301 Line for new warning switch -gnatw.p
6302 New warning flag -gnatw.e
6303
6304 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6305 Document -gnaty - + y
6306 Replace occurences of "package specification" with "package spec"
6307 Define preprocessing symbols in documentation of gnatprep
6308 Clarify reason for distinguishing overflow checking
6309 Add documentation for project-aware tool switches -eL and --subdirs=
6310 Complete list of configuration pragmas
6311 Specify that, even when gnatmake switch -x is used, mains on the command
6312 line need to be sources of project files.
6313 Editing of gnatcheck/gnatmetric doc.
6314 Add documentation for -gnatw.p/-gnatw.P
6315 Add missing documentation for -fno-inline-functions.
6316 Add documentation for -gnatw.e
6317
6318 * gnat_rm.texi: Add documentation for No_Default_Initialization
6319 Replace occurences of "package specification" with "package spec"
6320 Document use of * in Warnings Off string
6321 Update documentation of alignment/component clauses.
6322 Add documentation for Invalid_Value
6323 Document new consistency rule for Optimize_Alignment
6324 Add documentation for Precondition and Postcondition pragmas
6325 Add documentation for Check and Check_Policy pragmas
6326 Document new Enum_Val attribute
6327 Remove requirement for static string in pragma Assert
6328 Add documentation on GNAT.Time_Stamp
6329
6330 * ug_words: add entry for -gnatVe
6331 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6332 Add entry for -gnatw.e
6333
6334 * debug.adb: Add missing documentation for d.a flag
6335 Document new -gnatd.a switch.
6336 Add documentation for new gnatmake debug switch -df
6337
6338 2008-04-08 Thomas Quinot <quinot@adacore.com>
6339
6340 * gen-soccon.c: Bump year in copyright notices.
6341
6342 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6343
6344 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6345
6346 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6347 Minor reformatting.
6348
6349 2008-04-08 Robert Dewar <dewar@adacore.com>
6350 Bob Duff <duff@adacore.com>
6351
6352 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6353 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6354
6355 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6356
6357 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6358
6359 * g-trasym.ads: Minor comment improvements
6360
6361 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6362
6363 * a-sequio.ads, a-direio.ads: improve message for tagged type
6364
6365 * a-strunb.ads: Minor reformatting
6366
6367 * a-tifiio.adb: Minor reformatting
6368
6369 * atree.adb (Fix_Parents): Use clearer names for formals
6370 Cleanup and simplify code
6371 Use named notation in calls
6372
6373 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6374 confusing calls
6375
6376 * uintp.adb: Used named notation for some confusing calls
6377
6378 * bindusg.adb: Minor change in one line of output
6379
6380 * cstand.adb: Minor reformatting of src representation of Standard
6381
6382 * a-assert.ads: Add comment.
6383
6384 * g-decstr.adb: Fix bad indentation
6385
6386 * expander.ads, expander.adb: Code clean up.
6387
6388 * sem_dist.ads: Minor comment improvement
6389
6390 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6391 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6392
6393 * i-cstrin.adb: Fix casing error in formal parameter name in call
6394
6395 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6396
6397 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6398 mentioned in limited_with_clauses to do create semantic dependencies
6399 even though they appear in the ali file.
6400
6401 2008-04-08 Emmanuel Briot <briot@adacore.com>
6402
6403 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6404 statement.
6405 (Get_Configuration): New subprogram.
6406
6407 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6408 These optional parameters help preserve the casing of the project's name
6409 when pretty-printing.
6410
6411 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6412 Arnaud Charlet <charlet@adacore.com>
6413
6414 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6415 then use __gnat_set_exit_status to report the returned status code.
6416
6417 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6418 messages on .NET, since some constructs of the language are not
6419 properly supported.
6420
6421 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6422 .NET linker, gnatlink now concatenate all .il files and pass this to
6423 ilasm.
6424
6425 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6426 Xavier Grave <grave@ipno.in2p3.fr>
6427
6428 * Makefile.in: Add make ifeq define for mips/mipsel support.
6429 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6430 system-linux-mips.ads: New files.
6431
6432 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6433
6434 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6435 detect systems using GNU libc.
6436 * gsocket.h: ditto.
6437 * socket.c: ditto.
6438 * adaint.c: ditto.
6439 * link.c: ditto.
6440
6441 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6442
6443 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6444 constant constant for sysconf call.
6445 (bit_field): New packed boolean type used by cpu_set_t.
6446 (cpu_set_t): New type corresponding to the C type with
6447 the same name. Note that on the Ada side we use a bit
6448 field array for the affinity mask. There is not need
6449 for the C macro for setting individual bit.
6450 (pthread_setaffinity_np): New imported routine.
6451 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6452 on GNU/kFreeBSD.
6453
6454 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6455
6456 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6457
6458 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6459
6460 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6461 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6462 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6463 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6464 Return by Depressed Stack Pointer.
6465
6466 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6467
6468 * decl.c (is_variable_size): Do not unconditionally return false
6469 on non-strict alignment platforms.
6470
6471 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6472
6473 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6474 used to process all the variants of the specified type.
6475 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6476 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6477 (rest_of_type_decl_compilation): Likewise.
6478 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6479
6480 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6481
6482 * gigi.h (insert_block): Kill.
6483 * utils.c (insert_block): Kill.
6484
6485 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6486
6487 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6488 type has self-referential size, get the size from the initializing
6489 expression directly if it is also a constant whose nominal type
6490 has self-referential size.
6491
6492 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6493
6494 PR ada/33688
6495 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6496
6497 PR ada/33857
6498 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6499 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6500
6501 2008-04-01 Andreas Jaeger <aj@suse.de>
6502
6503 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6504 IP_PKTINFO.
6505
6506 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6507
6508 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6509 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6510 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6511 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6512 gnatlink.adb, gnatmem.adb, gprep.adb,
6513 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6514 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6515 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6516 lib-xref.ads, lib.adb, link.c, live.ads,
6517 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6518 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6519 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6520 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6521 namet.adb, namet.h, nlists.adb, nlists.ads,
6522 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6523 osint-c.ads, osint.adb, osint.ads, output.ads,
6524 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6525 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6526 par-endh.adb, par-labl.adb, par-prag.adb,
6527 par-sync.adb, par-tchk.adb, par-util.adb,
6528 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6529 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6530 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6531 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6532
6533 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6534
6535 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6536 size if it has overflowed.
6537
6538 2008-03-31 Olivier Hainque <hainque@adacore.com>
6539 Eric Botcazou <ebotcazou@adacore.com>
6540
6541 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6542 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6543
6544 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6545
6546 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6547 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6548 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6549 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6550 exp_tss.ads, exp_util.adb, exp_util.ads,
6551 exp_vfpt.adb, freeze.adb, freeze.ads,
6552 frontend.adb, g-alleve.adb, g-altcon.adb,
6553 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6554 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6555 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6556 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6557 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6558 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6559 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6560 g-except.ads, g-expect.ads, g-heasor.adb,
6561 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6562 g-locfil.ads, g-md5.adb, g-md5.ads,
6563 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6564 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6565 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6566 g-soccon-aix.ads, g-soccon-darwin.ads,
6567 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6568 g-soccon-hpux.ads, g-soccon-irix.ads,
6569 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6570 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6571 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6572 g-soccon-solaris.ads, g-soccon-tru64.ads,
6573 g-soccon-vms.ads, g-soccon-vxworks.ads,
6574 g-soccon.ads, g-socket.adb, g-socket.ads,
6575 g-socthi-mingw.adb, g-socthi-vms.adb,
6576 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6577 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6578 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6579 typos.
6580
6581 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6582
6583 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6584 if the procedure is imported.
6585
6586 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6587
6588 * adaint.c: Fix warnings.
6589
6590 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6591
6592 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6593
6594 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6595
6596 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6597 Fix problem of status check for null file
6598
6599 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6600
6601 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6602 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6603 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6604 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6605 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6606 comments.
6607
6608 2008-03-26 Thomas Quinot <quinot@adacore.com>
6609
6610 PR ada/33688
6611 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6612 Get_Socket_Option): Add support for Receive_Packet_Info.
6613
6614 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6615 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6616 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6617 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6618 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6619 new constants SO_REUSEPORT and IP_PKTINFO
6620
6621 2008-03-26 Robert Dewar <dewar@adacore.com>
6622
6623 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6624 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6625 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6626 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6627 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6628 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6629 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6630 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6631 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6632 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6633 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6634 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6635 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6636 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6637 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6638 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6639 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6640 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6641 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6642 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6643 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6644 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6645 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6646 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6647 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6648 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6649 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6650 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6651 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6652 s-tasloc.adb: Minor reformatting.
6653 Update comments.
6654 Remove "used for" sections from comments.
6655
6656 2008-03-26 Robert Dewar <dewar@adacore.com>
6657
6658 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6659 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6660 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6661 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6662 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6663 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6664 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6665 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6666 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6667 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6668 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6669 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6670 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6671 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6672 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6673 double spaced if it fits on one line and otherwise single spaced.
6674
6675 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6676
6677 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6678 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6679 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6680 or task info if the thread could not be created.
6681
6682 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6683
6684 * gnatvsn.ads (Library_Version): Bump to 4.4.
6685 (Current_Year): Bump to 2008.
6686
6687 2008-03-26 Robert Dewar <dewar@adacore.com>
6688
6689 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6690
6691 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6692
6693 * debug.adb: Add debug flags d.r and d.v
6694 Add debug flag .T (Optimize_Alignment (Time))
6695 Add debug flag .S (Optimize_Alignment (Space))
6696
6697 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6698 depending on setting of relevant debug flags.
6699 Replace use of Warnings_Off by Has_Warnings_Off
6700 (Freeze_Entity): In circuit for warning on suspicious convention
6701 actuals, do not give warning if subprogram has same entity as formal
6702 type, or if subprogram does not come from source.
6703 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6704 if Optimize_Alignment set to Space.
6705
6706 * frontend.adb: Add call to Sem_Warn.Initialize
6707 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6708 Reset Optimize_Alignment mode from debug switches .S and .T
6709
6710 * layout.adb (Layout_Composite_Object): Rewritten for
6711 Optimize_Aligment pragma.
6712
6713 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6714 mode.
6715
6716 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6717
6718 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6719 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6720 this change. Add entry for pragma Optimize_Alignment
6721
6722 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6723 (Pragma_Identifier (..
6724 instead, adjustments throughout to accomodate this change.
6725 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6726 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6727 Add implementation of pragma Optimize_Alignment
6728
6729 2008-03-26 Vincent Celier <celier@adacore.com>
6730
6731 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6732 Improve memory usage to avoid use of stack.
6733
6734 2008-03-26 Robert Dewar <dewar@adacore.com>
6735
6736 * a-teioed.ads: Correct value of Default_Fill
6737
6738 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6739
6740 2008-03-26 Robert Dewar <dewar@adacore.com>
6741
6742 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6743 with Current_Output (introduce Self).
6744
6745 2008-03-26 Robert Dewar <dewar@adacore.com>
6746
6747 * checks.adb (Ensure_Valid): Capture valid status if possible
6748 (eliminate checks)
6749
6750 2008-03-26 Robert Dewar <dewar@adacore.com>
6751
6752 * stand.ads: Deal with reordering of package standard declarations
6753
6754 * cstand.adb: Put package Standard declarations in proper order
6755
6756 2008-03-26 Robert Dewar <dewar@adacore.com>
6757
6758 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6759 (Pragma_Identifier (.. instead.
6760 (OK_To_Reorder_Components): New flag
6761 (Has_Entries): Code cleanup.
6762 (Warnings_Off_Used): New flag
6763 (Warnings_Off_Used_Unmodified): New flag
6764 (Warnings_Off_Used_Unreferenced): New flag
6765 (Has_Warnings_Off): New function
6766 (Has_Unmodified): New function
6767 (Has_Unreferenced): New function
6768 (Is_Trivial_Subprogram): New flag
6769 (Is_Static_Dispatch_Table_Entity): New attribute.
6770 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6771 (more consistent with other similar names)
6772 (Access_Subprogram_Type): New classification function
6773
6774 2008-03-26 Robert Dewar <dewar@adacore.com>
6775
6776 * errout.ads: Document new !! insertion sequence
6777
6778 * errout.adb (N_Pragma): Chars field removed, use Chars
6779 (Pragma_Identifier (.. instead.
6780 Replace use of Warnings_Off by Has_Warnings_Off
6781 (Error_Msg_Internal): Don't delete warning ending in !!
6782
6783 2008-03-26 Robert Dewar <dewar@adacore.com>
6784
6785 * par.adb (Check_No_Right_Paren): Removed no longer used
6786
6787 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6788 (Pragma_Identifier (.. instead.
6789
6790 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6791
6792 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6793 par-ch4.adb: Minor improvements in error recovery and messages.
6794
6795 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6796 non-serious
6797
6798 * par-ch9.adb: Minor improvements in error recovery and messages
6799 (P_Protected): Better error recovery for "protected type x;"
6800
6801 * par-util.adb: Minor improvements in error recovery and messages
6802 (Check_No_Right_Paren): Removed no longer used
6803
6804 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6805
6806 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6807 that the prefix of an attribute is the type of the aggregate being
6808 expanded.
6809
6810 2008-03-26 Javier Miranda <miranda@adacore.com>
6811 Robert Dewar <dewar@adacore.com>
6812
6813 * exp_attr.adb (N_Pragma): Chars field removed.
6814 (Expand_N_Attribute_Reference): If the designated type associated with
6815 attribute 'Unrestricted_Access is a subprogram entity then replace it
6816 by an E_Subprogram_Type itype.
6817 Implement attribute Old
6818
6819 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6820
6821 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6822 Replace call to
6823 New_Internal_Entity by call to Create_Itype to centralize calls
6824 building itypes, ad propagate the convention of the designated
6825 subprogram. In addition, disable the machinery cleaning constant
6826 indications from all entities in current scope when 'Unrestricted_Access
6827 corresponds with a node initializing a dispatch table slot.
6828 (Analyze_Attribute): Parameterless attributes returning a string or a
6829 type will not be called with improper arguments, so we can remove junk
6830 code that was dealing with this case.
6831 Implement attribute Old
6832
6833 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6834 Add entry for pragma Optimize_Alignment
6835 New standard names Sync and Synchronize
6836
6837 2008-03-26 Robert Dewar <dewar@adacore.com>
6838 Arnaud Charlet <charlet@adacore.com>
6839
6840 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6841 stmt.
6842 (No_Exception_Propagation_Active): New function.
6843 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6844 Update comments, and review all uses of No_Exception_Propagation, which
6845 are now correct and in sync with what gigi expects.
6846
6847 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6848 function.
6849 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6850 Update comments, and review all uses of No_Exception_Propagation, which
6851 are now correct and in sync with what gigi expects.
6852
6853 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6854
6855 * sem_ch3.adb (Access_Definition): If the access type is the return
6856 result of a protected function, create an itype reference for it
6857 because usage will be in an inner scope from the point of declaration.
6858 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6859 OK_To_Reorder_Components.
6860 (Make_Index): If an overloaded range includes a universal integer
6861 interpretation, resolve to Standard.Integer.
6862 (Analyze_Subtype_Indication): Copy Convention to subtype
6863 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6864 limited an synchronized progenitors in type declaration and private
6865 extension declarations.
6866
6867 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6868 protected subprogram body, determine proper scope from subprogram
6869 declaration.
6870
6871 2008-03-26 Robert Dewar <dewar@adacore.com>
6872
6873 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6874 No_Run_Time_Mode
6875
6876 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6877
6878 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6879 of a heap allocator for a limited unconstrained function return when
6880 resstriction No_Allocators is active.
6881 (Analyze_Allocator): The restriction No_Allocators is now only checked
6882 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6883
6884 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6885 of a heap allocator for a limited unconstrained function return when
6886 resstriction No_Allocators is active.
6887 (Analyze_Allocator): The restriction No_Allocators is now only checked
6888 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6889 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6890 operands are fixed-point types, the universal_fixed predefined operation
6891 is used, regardless of whether the operand type (s) have a primitive
6892 operation of the same name.
6893
6894 2008-03-26 Javier Miranda <miranda@adacore.com>
6895
6896 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6897 Is_Static_Dispatch_Table
6898 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6899 to Exchange_Declarations to exchange the private and full-view. Bug
6900 found working in this issue.
6901 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6902 to the subprogram pointer type.
6903 (Make_Secondary_DT): Replace generation of Prim'Address by
6904 Address (Prim'Unrestricted_Access)
6905 (Make_DT): Replace generation of Prim'Address by
6906 Address (Prim'Unrestricted_Access)
6907 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6908 simple call form for single entry.
6909 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6910 tables of predefined primitives).
6911 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6912 predefined primitives.
6913 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6914 access to dispatch tables containing predefined primitives.
6915
6916 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6917 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6918 this change.
6919 (Register_Predefined_DT_Entry): Updated to handle the new contents
6920 of attribute Access_Disp_Table (pointers to dispatch tables containing
6921 predefined primitives).
6922
6923 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6924 subprogram.
6925 (Find_Interface_ADT): Updated to skip the new contents of attribute
6926 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6927 primitives).
6928
6929 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6930 concurrent types.
6931 (Set_Convention): Use new function Is_Access_Subprogram_Type
6932 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6933 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6934 primitives).
6935
6936 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6937 expanded code avoiding calls to Build_Predef_Prims.
6938 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6939 call to Build_Get_Predefined_Prim_Op_Address.
6940
6941 2008-03-26 Javier Miranda <miranda@adacore.com>
6942
6943 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6944 subprogram Corresponding_Runtime_Package to know the runtime package
6945 that will provide support to a given protected type.
6946
6947 * exp_ch9.adb (Add_Private_Declarations,
6948 Build_Protected_Subprogram_Call,
6949 Build_Protected_Entry, Build_Simple_Entry_Call,
6950 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6951 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6952 cleanup using the new centralized subprogram Corresponding_Runtime
6953 Package to know the runtime package that provides support to
6954 a given protected type.
6955
6956 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6957
6958 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6959 assignment is within the initialization procedure for a packed array,
6960 and Initialize_Scalars is enabled, compile right-hand side with checks
6961 off, because the value is purposely out of range.
6962
6963 2008-03-26 Vincent Celier <celier@adacore.com>
6964
6965 * gnatcmd.adb: Add processing for GNAT SYNC
6966
6967 * vms_conv.ads: (Command_Type): Add command Sync
6968
6969 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6970
6971 * vms_data.ads: Add entries for -gnatw.w
6972 Add qualifier for gnatstub --header-file option
6973 Add switches for GNAT SYNC
6974
6975 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6976 (Add_Package_Name): New procedure
6977 (Package_Name_List): New function
6978 (Initialize): Add known package names to the list
6979 (Register_New_Package): Add the new package name to the list
6980
6981 2008-03-26 Robert Dewar <dewar@adacore.com>
6982
6983 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6984 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6985 Raise_Exception by "raise with" construct.
6986
6987 2008-03-26 Pascal Obry <obry@adacore.com>
6988
6989 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6990 supported platforms.
6991
6992 * Makefile.rtl: Add g-sercom.o.
6993
6994 * impunit.adb: Add g-sercom.adb.
6995
6996 * s-crtl.ads (open): New routine.
6997 (close): Likewise.
6998 (write): Likewise.
6999
7000 * s-osinte-mingw.ads (BYTE): New type.
7001 (CHAR): Likewise.
7002 (OVERLAPPED): Likewise.
7003 (GENERIC_READ): New constant.
7004 (GENERIC_WRITE): Likewise.
7005 (OPEN_EXISTING): Likewise.
7006 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
7007 type instead.
7008 (CreateFile): New routine.
7009 (WriteFile): Likewise.
7010 (ReadFile): Likewise.
7011 (CloseHandle): Move next to the other file oriented routines.
7012
7013 * g-sercom.ads: New unit.
7014
7015 * g-sercom.adb: Default implementation, calls to this unit will raise
7016 a program error exception.
7017
7018 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
7019 GNU/Linux implementations.
7020
7021 2008-03-26 Robert Dewar <dewar@adacore.com>
7022
7023 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
7024
7025 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
7026 unchecked conversion for different conventions only for subprogram
7027 pointers or on VMS.
7028
7029 2008-03-26 Vincent Celier <celier@adacore.com>
7030
7031 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
7032 to check if the specified object file is correct.
7033
7034 2008-03-26 Thomas Quinot <quinot@adacore.com>
7035
7036 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
7037 Comes_From_Source to exclude primitives from being checked. We want to
7038 exclude predefined primitives only, so use the appropriate specific
7039 predicate. Also, flag a formal parameter of an anonymous
7040 access-to-subprogram type as illegal for a primitive operation of a
7041 remote access to class-wide type.
7042
7043 2008-03-26 Vincent Celier <celier@adacore.com>
7044
7045 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7046 known, check if it may be a missspelling of a known package name. In
7047 not verbose, not mode, issue warnings only if the package name is a
7048 possible misspelling.
7049 In verbose mode, always issue a warning for a not known package name,
7050 plus a warning if the name is a misspelling of a known package name.
7051
7052 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7053 limited withs or limited withs are parse during one call.
7054 (Parse_Single_Project): Post parse context clause in two passes: non
7055 limited withs before current project and limited withs after current
7056 project.
7057
7058 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7059 project with the name With_Name, even if it is only extended indirectly.
7060 (Recursive_Process): Process projects in order: first single withs, then
7061 current project, then limited withs.
7062
7063 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7064 project with the name With_Name, even if it is only extended indirectly.
7065
7066 2008-03-26 Robert Dewar <dewar@adacore.com>
7067
7068 * scn.adb (Initialize_Scanner): Format messages belong on standard error
7069
7070 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7071
7072 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7073 a generic subprogram that is imported, do not attempt to compile
7074 non-existent body.
7075
7076 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7077 imported, do not generate a raise_program_error for the non-existent
7078 body.
7079 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7080 perform minimal name resolution on the generic to avoid spurious
7081 warnings.
7082 (Find_Actual_Type): the designated type of the actual in a child unit
7083 may be declared in a parent unit without being an actual.
7084
7085 2008-03-26 Robert Dewar <dewar@adacore.com>
7086
7087 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7088 * sinfo.ads, sinfo.adb (From_At_End): New flag
7089
7090 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7091
7092 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7093 operations that have an interface parameter.
7094 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7095 Don't treat No_Return call as raise.
7096
7097 * sem_disp.adb (Check_Dispatching_Operations): apply check for
7098 non-primitive interface primitives to access parameters, not to all
7099 parameters of an access type.
7100
7101 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7102
7103 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7104 declarations of a parent unit are made visible when compiling a child
7105 instance, the parent is not a hidden open scope, even though it may
7106 contain other pending instance.
7107
7108 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7109 hidden open scope for some child instance, it does affect the
7110 visibility status of other stach entries.
7111 (Analyze_Object_Renaming): Check that a class-wide object cannot be
7112 renamed as an object of a specific type.
7113
7114 2008-03-26 Robert Dewar <dewar@adacore.com>
7115
7116 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7117 recursion and raise SE directly.
7118 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7119 set for formal type for IN mode parameter.
7120
7121 2008-03-26 Robert Dewar <dewar@adacore.com>
7122
7123 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7124 (Initialize): New procedure
7125 (Output_Warnings_Off_Warnings): New procedure
7126 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7127 (Output_Non_Modifed_In_Out_Warnings): Ditto
7128 (Warn_On_Unreferenced_Entity): Ditto
7129
7130 2008-03-26 Vincent Celier <celier@adacore.com>
7131
7132 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7133 readable.
7134
7135 2008-03-26 Matthew Heaney <heaney@adacore.com>
7136
7137 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7138 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7139 Marked with clauses as private, and controlled operations as overriding
7140
7141 2008-03-26 Robert Dewar <dewar@adacore.com>
7142
7143 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7144
7145 2008-03-26 Robert Dewar <dewar@adacore.com>
7146
7147 * back_end.adb, back_end.ads: Minor reformatting
7148
7149 * bindgen.adb: Minor clarification of comments
7150
7151 * fname.ads: Minor comment fixes
7152
7153 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7154 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7155
7156 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7157 xsnames.adb: Remove warnings off pragma no longer needed
7158
7159 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7160 a-calfor.ads: Fix header.
7161
7162 2008-03-26 Tristan Gingold <gingold@adacore.com>
7163
7164 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7165
7166 2008-03-26 Robert Dewar <dewar@adacore.com>
7167
7168 * lib-xref.adb: (OK_To_Set_Reference): New function
7169 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7170 Unmodified, or Unreferenced pragma
7171
7172 2008-03-26 Robert Dewar <dewar@adacore.com>
7173
7174 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7175
7176 2008-03-26 GNAT Script <nobody@adacore.com>
7177
7178 * Make-lang.in: Makefile automatically updated
7179
7180 2008-03-26 Robert Dewar <dewar@adacore.com>
7181
7182 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7183 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7184 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7185 throughout to accomodate this change.
7186
7187 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7188
7189 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7190 Einfo.Set_Needs_Debug_Info)
7191
7192 2008-03-26 Robert Dewar <dewar@adacore.com>
7193
7194 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7195 Add description for the new gnatstub option '--header-file'
7196 clarification of -gnatwz/-gnatwZ
7197 Add a "Irix-Specific Considerations" section to document the need to
7198 set LD_LIBRARY_PATH when using the default shared runtime library.
7199 Added documentation for both gcov and gprof.
7200
7201 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7202 messages that are not suppressed when clients are compiled.
7203 Add documentation of s-pooglo s-pooloc
7204 Document the new GNAT.Serial_Communications API.
7205 Add documentation for 'Old attribute
7206 Add description of pragma Optimize_Alignment
7207
7208 * ug_words: Add entries for -gnatw.w -gnatw.W
7209
7210 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7211
7212 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7213
7214 Revert
7215 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7216 PR ada/35186
7217 * decl.c (maybe_pad_type): Avoid padding an integral type when
7218 bumping its alignment is sufficient.
7219
7220 2008-03-25 Arnaud Charlet <charlet@adacore.com>
7221
7222 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7223 Fix wrong formatting (lines too long)
7224
7225 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7226
7227 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7228 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7229 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7230 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7231 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7232 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7233 a-except-2005.ads, a-except.adb, a-except.ads,
7234 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7235 a-exextr.adb, a-filico.ads, a-finali.ads,
7236 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7237 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7238 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7239 checks.adb, exp_ch3.adb, exp_ch4.adb,
7240 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7241 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7242 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7243 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7244 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7245
7246 2008-03-24 Robert Dewar <dewar@adacore.com>
7247
7248 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7249 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7250 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7251 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7252 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7253 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7254 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7255 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7256 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7257 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7258 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7259 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7260 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7261 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7262 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7263 double spaced if it fits on one line and otherwise single spaced.
7264
7265 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7266
7267 PR documentation/15479
7268 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7269 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7270 (doc/gnat_ugn.info): Renamed from ...
7271 (doc/gnat_ugn_unw.info): ... this.
7272 (doc/gnat_ugn.dvi): Renamed from ...
7273 (doc/gnat_ugn_unw.dvi): ... this.
7274 (doc/gnat_ugn.pdf): Renamed from ...
7275 (doc/gnat_ugn_unw.pdf): ... this.
7276 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7277 Adjusted.
7278 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7279 unconditionally to gnat_ugn.info. Fix cross references to the
7280 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7281 and GNU make manuals to be proper texinfo links.
7282 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7283
7284 2008-03-21 Olivier Hainque <hainque@adacore.com>
7285
7286 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7287 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7288
7289 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7290
7291 * trans.c (addressable_p): Add notes on addressability issues.
7292
7293 2008-03-21 Olivier Hainque <hainque@adacore.com>
7294 Ed Schonberg <schonberg@adacore.com>
7295
7296 * trans.c (addressable_p): Accept COND_EXPR when both arms
7297 are addressable.
7298 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7299 (call_to_gnu): Do not use name reference in the error message
7300 for a misaligned by_reference_parameter. The actual may be a
7301 general expression.
7302
7303 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7304
7305 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7306
7307 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7308
7309 * gnat_rm.texi (Implementation Defined Characteristics)
7310 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7311 appropriate.
7312 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7313 (Switches for gnatchop, Installing a library): Likewise.
7314
7315 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7316
7317 * trans.c (emit_range_check): Do not emit the check if the base type
7318 of the expression is the type against which its range must be checked.
7319
7320 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7321
7322 * decl.c (maybe_pad_type): Use value_factor_p.
7323
7324 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7325
7326 * lang.opt (nostdlib): Move around.
7327 * misc.c (gnat_handle_option): Fix formatting.
7328 (gnat_dwarf_name): Move around.
7329 * trans.c (Case_Statement_to_gnu): Fix formatting.
7330 (gnat_to_gnu): Likewise.
7331 * utils.c (aggregate_type_contains_array_p): Likewise.
7332 (create_subprog_decl): Likewise.
7333
7334 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7335
7336 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7337 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7338
7339 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7340
7341 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7342 BIGGEST_ALIGNMENT when capping the alignment of records with
7343 strict alignment and size clause.
7344
7345 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7346
7347 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7348 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7349 and -Wuninitialized.
7350 (gnat_post_options): Clear warn_unused_parameter.
7351
7352 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7353
7354 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7355 aligned bit-fields, bumping the alignment of the record type if deemed
7356 profitable.
7357 (value_factor_p): Return false instead of 0.
7358
7359 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7360
7361 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7362 for scalar types with small alignment.
7363
7364 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7365
7366 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7367 from that of the front-end's end label.
7368 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7369 from that of the loop label.
7370
7371 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7372
7373 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7374 comment for the packed array type case.
7375 * utils.c (build_template): Use a loop to strip padding or
7376 containing records for justified modular types.
7377
7378 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7379
7380 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7381 large alignments specified for types.
7382 (validate_alignment): Minor cleanup.
7383
7384 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7385
7386 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7387 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7388 the component for packing, if possible, as well as if a component
7389 size clause is specified.
7390 <E_Record_Subtype>: For an array type used to implement a packed
7391 array, get the component type from the original array type.
7392 Try to get a smaller form of the component for packing, if possible,
7393 as well as if a component size clause is specified.
7394 (round_up_to_align): New function.
7395 (make_packable_type): Add in_record parameter.
7396 For a padding record, preserve the size. If not in_record and the
7397 size is too large for an integral mode, attempt to shrink the size
7398 by lowering the alignment.
7399 Ditch the padding bits of the last component.
7400 Compute sizes and mode manually, and propagate the RM size.
7401 Return a BLKmode record type if its size has shrunk.
7402 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7403 Use Original_Array_Type to retrieve the type in case of an error.
7404 Adjust call to make_packable_type.
7405 (gnat_to_gnu_field): Likewise.
7406 (concat_id_with_name): Minor tweak.
7407 * trans.c (larger_record_type_p): New predicate.
7408 (call_to_gnu): Compute the nominal type of the object only if the
7409 parameter is by-reference. Do the conversion actual type -> nominal
7410 type if the nominal type is a larger record.
7411 (gnat_to_gnu): Do not require integral modes on the source type to
7412 avoid the conversion for types with identical names.
7413 (addressable_p): Add gnu_type parameter. If it is specified, do not
7414 return true if the expression is not addressable in gnu_type.
7415 Adjust recursive calls.
7416 * utils.c (finish_record_type): Remove dead code.
7417
7418 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7419
7420 PR ada/35186
7421 * decl.c (maybe_pad_type): Avoid padding an integral type when
7422 bumping its alignment is sufficient.
7423
7424 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7425
7426 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7427 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7428 statement.
7429 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7430 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7431 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7432 code output strings.
7433 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7434 system-vms_64.ads: Fix typos in ada source code comments.
7435 * sinfo-cn.adb: Remove incomplete sentence.
7436
7437 PR documentation/15479
7438 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7439
7440 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7441
7442 PR ada/22255
7443 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7444
7445 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7446
7447 PR ada/34799
7448 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7449 that underlying type is present.
7450
7451 2008-02-26 Tom Tromey <tromey@redhat.com>
7452
7453 * misc.c (internal_error_function): Remove test of
7454 USE_MAPPED_LOCATION.
7455 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7456 (Sloc_to_locus): Remove old location code.
7457
7458 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7459
7460 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7461 `i.e.' by adding comma or `@:' as appropriate.
7462 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7463 plain characters `C', use `@samp{C}'.
7464 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7465 (Krunching Method): Likewise.
7466
7467 * gnat_ugn.texi (Conventions): List environment variables and
7468 metasyntactic variables.
7469 (Compiling Programs): Fix notation of metasyntactic variables.
7470 Add @file where appropriate. Use @file for file extensions,
7471 @samp for strings.
7472 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7473 instead of @file, @env instead of @code.
7474
7475 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7476
7477 PR documentation/15479
7478 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7479 and `...' with `@dots{}' or `@enddots{}'.
7480
7481 PR documentation/15479
7482 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7483 use @command instead of @code, @option instead of @samp or @code,
7484 @code instead of @var, @samp instead of @file.
7485
7486 PR documentation/15479
7487 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7488 in Makefile rules, by using `&&' rather than `;'.
7489
7490 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7491
7492 PR documentation/15479
7493 * gnat_ugn.texi: In non-code, avoid space before colon.
7494 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7495 (Examples of gnatxref Usage): Use @command{vi} instead of
7496 @file{vi}.
7497 (Character Set Control): Do not use @code for UTF-8.
7498 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7499 use @code for IEEE.
7500 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7501 sample.
7502 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7503
7504 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7505
7506 PR ada/35143
7507 * env.c: Add __rtems__ to if defined.
7508 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7509 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7510 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7511 pragma Convention as required.
7512 * gsocket.h: Make compile in and out of RTS.
7513 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7514 Use g-soccon-rtems.ads.
7515 * g-soccon-rtems.ads, system-rtems.ads: New files.
7516
7517 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7518
7519 PR other/35107
7520 * Make-lang.in (gnat1): Add $(GMPLIBS).
7521
7522 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7523
7524 * decl.c (components_to_record): Improve comment.
7525
7526 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7527
7528 * decl.c (components_to_record): Do not reuse the empty union type
7529 if there is a representation clause on the record.
7530 * trans.c (addressable_p): Return true for INTEGER_CST.
7531
7532 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7533
7534 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7535 in pointer arithmetics.
7536 * utils2.c (build_allocator): Likewise.
7537
7538 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7539
7540 * utils.c (build_function_stub): Properly build the call expression.
7541
7542 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7543
7544 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7545 before converting the expression to the type of the object.
7546 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7547 Stabilize constructors for special wrapping types.
7548
7549 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7550
7551 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7552 when necessary. Merge some conditional statements. Update comments.
7553 Rename unchecked_convert_p local variable to suppress_type_conversion.
7554 Do not suppress conversions in the In case.
7555 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7556 into account on non strict-alignment platforms.
7557
7558 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7559
7560 * utils.c (aggregate_type_contains_array_p): New predicate.
7561 (create_field_decl): In a packed record, force byte alignment
7562 for fields without specified position that contain an array.
7563
7564 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7565
7566 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7567
7568 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7569
7570 PR ada/34466
7571 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7572 sysconf call.
7573 (bit_field): New packed boolean type used by cpu_set_t.
7574 (cpu_set_t): New type corresponding to the C type with
7575 the same name. Note that on the Ada side we use a bit
7576 field array for the affinity mask. There is not need
7577 for the C macro for setting individual bit.
7578 (pthread_setaffinity_np): New imported routine.
7579
7580 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7581
7582 PR ada/34647
7583 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7584 on OpenBSD as is done on other BSD systems.
7585
7586 PR ada/34645
7587 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7588 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7589 I/O.
7590
7591 PR ada/34644
7592 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7593 clearenv().
7594
7595 PR ada/34646
7596 * init.c (__gnat_error_handler, __gnat_install_handler,
7597 __gnat_init_float): Define for OpenBSD.
7598
7599 * initialize.c (__gnat_initialize): Define for OpenBSD.
7600
7601 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7602
7603 PR ada/34553
7604 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7605 instead of mktemp() or tmpnam() on NetBSD.
7606
7607 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7608
7609 * trans.c (call_to_gnu): Make the temporary for non-addressable
7610 In parameters passed by reference.
7611 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7612
7613 2007-12-19 Robert Dewar <dewar@adacore.com>
7614
7615 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7616 Add pragma Warnings (Off) for unassigned IN OUT arguments
7617
7618 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7619 (Check_References): Extensive changes to tune up warnings
7620 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7621 (Has_Pragma_Unmodifed_Check_Spec): New function
7622 (Check_References): Implement pragma Unmodified
7623 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7624
7625 * par-prag.adb: Dummy entry for pragma Unmodified
7626
7627 * sem_prag.adb: Implement pragma Unmodified
7628
7629 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7630 (Proc_Next_Component_Or_Discriminant): Fix typo.
7631 Update comments.
7632
7633 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7634 Unmodified.
7635 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7636 because the former already takes care of discarding the result.
7637 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7638 Add comment.
7639
7640 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7641
7642 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7643
7644 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7645 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7646 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7647 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7648 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7649 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7650 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7651 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7652 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7653 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7654 (Dynamic_Trampolines_Used): Delete.
7655
7656 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7657 Turn on stack probing mechanism on LynxOS.
7658
7659 2007-12-19 Bob Duff <duff@adacore.com>
7660
7661 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7662 the resulting tail recursion by hand. This prevents running out of
7663 memory on deeply nested concatenations, since Field2 is where the left
7664 operand of concatenations is stored.
7665 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7666 clarify that it can only return OK or Abandon.
7667
7668 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7669 operand by iteration, in order to avoid running out of memory on
7670 deeply-nested concatenations. Use the Parent pointer to get back up the
7671 tree.
7672 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7673 Resolve_Op_Concat_Rest): New procedures split out of
7674 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7675 clearer.
7676
7677 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7678 Traverse_Func, because the former already takes care of discarding the
7679 result.
7680
7681 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7682 because the former already takes care of discarding the result.
7683 (Remove_Warning_Messages): Use appropriate subtype for Status and
7684 Discard
7685
7686 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7687
7688 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7689 discriminants forces expansion of the aggregate into assignments.
7690 (Init_Record_Controller): If the type of the aggregate is untagged and
7691 is not inherently limited, the record controller is not limited either.
7692
7693 2007-12-19 Robert Dewar <dewar@adacore.com>
7694
7695 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7696 handling compile time known size of record or array (case of front end
7697 layout active, e.g. in GNAAMP).
7698
7699 2007-12-19 Javier Miranda <miranda@adacore.com>
7700
7701 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7702 that forces the construction of static dispatch tables in case of
7703 record subtypes.
7704
7705 2007-12-19 Robert Dewar <dewar@adacore.com>
7706
7707 * exp_ch9.adb (Null_Statements): Moved to library level
7708 (Trivial_Accept_OK): New function
7709 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7710 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7711
7712 2007-12-19 Robert Dewar <dewar@adacore.com>
7713
7714 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7715 in complex case where array is Volatile.
7716
7717 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7718
7719 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7720 properly the Ada2005 rules concerning when the current instance of a
7721 record type is aliased.
7722
7723 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7724
7725 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7726 mangled declaration
7727 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7728 declarations.
7729 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7730
7731 2007-12-19 Vincent Celier <celier@adacore.com>
7732
7733 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7734 package is not known
7735
7736 * prj-attr.ads (Unknown_Package): New constant
7737 Do not crash when an unknown package is in several projects
7738
7739 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7740 ignored
7741
7742 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7743 existing package Language_Processing.
7744
7745 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7746 Gary Dismukes <dismukes@adacore.com>
7747 Samuel Tardieu <sam@rfc1149.net>
7748
7749 PR ada/15803, ada/15805
7750 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7751 illegal access subtypes when there is a constrained partial view.
7752 (Check_For_Premature_Usage): New procedure inside
7753 Access_Subprogram_Declaration for checking that an access-to-subprogram
7754 type doesn't reference its own name within any formal parameters or
7755 result type (including within nested anonymous access types).
7756 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7757 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7758 context is an access_to_variable, the expression cannot be an
7759 access_to_constant.
7760
7761 2007-12-19 Bob Duff <duff@adacore.com>
7762
7763 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7764 (Analyze_Concatenation): Use iteration instead of recursion in order
7765 to avoid running out of stack space for deeply nested concatenations.
7766
7767 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7768 Gary Dismukes <dismukes@adacore.com>
7769
7770 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7771 whose renamed entity is a subprogram that requires overriding.
7772 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7773 issuing an error for premature usage and issue a message that says
7774 'type' rather than 'object'.
7775
7776 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7777
7778 PR ada/34149
7779 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7780 presence of a statically tagged operand (Present (Static_Tag)) with
7781 test for Indeterm_Ancestor_Call when determining whether to propagate
7782 the static tag to tag-indeterminate operands (which forces dispatching
7783 on such calls).
7784 (Check_Controlling_Formals): Ada2005, access parameters can have
7785 defaults.
7786 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7787 not insert subprogram in list of primitive operations if already there.
7788
7789 2007-12-19 Tristan Gingold <gingold@adacore.com>
7790
7791 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7792 global variable.
7793
7794 2007-12-19 Thomas Quinot <quinot@adacore.com>
7795
7796 Part of PR ada/33688
7797 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7798 datagram info on Linux.
7799
7800 2007-12-19 Vincent Celier <celier@adacore.com>
7801
7802 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7803 that the source path name is always found in the dependencies.
7804
7805 2007-12-19 Robert Dewar <dewar@adacore.com>
7806
7807 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7808 Fix name of Wide_Wide_Latin_1/9 file names
7809 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7810 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7811 Add missing documentation for Ada.Command_Line.Response_File
7812 Update list of warning letters for Warnings pragma
7813 Add documentation for pragma Unmodified
7814
7815 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7816
7817 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7818
7819 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7820
7821 * s-vxwork-alpha.ads: Removed, no longer used.
7822
7823 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7824
7825 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7826
7827 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7828
7829 PR ada/34360
7830 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7831 mlib-tgt-specific.adb.
7832
7833 2007-12-13 Bob Duff <duff@adacore.com>
7834
7835 * trans.c (Attribute_to_gnu): Check for violations of the
7836 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7837 the front end, but is moved here so we can make it more accurate.
7838
7839 2007-12-13 Pascal Obry <obry@adacore.com>
7840
7841 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7842 version is provided for older GNU/Linux distribution not
7843 supporting thread affinity sets.
7844
7845 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7846 call.
7847 (bit_field): New packed boolean type used by cpu_set_t.
7848 (cpu_set_t): New type corresponding to the C type with
7849 the same name. Note that on the Ada side we use a bit
7850 field array for the affinity mask. There is not need
7851 for the C macro for setting individual bit.
7852 (pthread_setaffinity_np): New imported routine.
7853
7854 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7855 no null.
7856 (Create_Task): Set the processor affinity mask if information
7857 is present.
7858
7859 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7860
7861 2007-12-13 Robert Dewar <dewar@adacore.com>
7862
7863 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7864 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7865 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7866 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7867 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7868 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7869 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7870 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7871 for subprogram pointers.
7872
7873 * g-ctrl_c.adb: New file.
7874
7875 * g-ctrl_c.ads (Install_Handler): New body.
7876
7877 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7878 instead of obsolete function Is_Always_Inlined.
7879 (Freeze_Entity): check for tagged type in imported C subprogram
7880 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7881 (Freeze_Entity): check for convention Ada subprogram pointer in
7882 imported C subprogram.
7883 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7884 bound would be chopped off and go from negative to zero, force
7885 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7886 bound) so that the size computation for the base type will take
7887 negative values into account.
7888
7889 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7890 Bob Duff <duff@adacore.com>
7891 Tristan Gingold <gingold@adacore.com>
7892
7893 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7894 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7895 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7896 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7897 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7898 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7899 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7900 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7901 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7902 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7903 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7904 (Always_Compatible_Rep): New flag to control trampolines globally.
7905 (Dynamic_Trampolines_Used): New flag for implementing the
7906 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7907 and not yet set correctly for some targets).
7908
7909 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7910 Simply indirectly call s-stchop when a task is created.
7911
7912 * ali.ads:
7913 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7914 appears as an argument (entries A) in an ALI file.
7915
7916 * fe.h (Stack_Check_Limits): Declare new target parameter.
7917 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7918
7919 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7920 This variable is declared in C to be sure not subject to elaboration
7921 code.
7922 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7923 Storage_Error.
7924
7925 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7926 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7927
7928 * s-stchop.ads: Add comments.
7929
7930 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7931 limit method of stack checking.
7932
7933 * s-stchop-limit.ads: New file.
7934
7935 2007-12-13 Robert Dewar <dewar@adacore.com>
7936
7937 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7938 a-cihama.adb, g-awk.adb,
7939 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7940 warnings
7941
7942 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7943
7944 * sem.adb: Update handling of assigned value/unreferenced warnings
7945
7946 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7947
7948 * lib-xref.ads: Improve documentation for k xref type
7949
7950 * lib-xref.adb:
7951 Update handling of assigned value/unreferenced warnings
7952 (Generate_Reference): Warning for reference to entity for which a
7953 pragma Unreferenced has been given should be unconditional.
7954 If the entity is a discriminal, mark the original
7955 discriminant as referenced.
7956
7957 * sem_warn.ads, sem_warn.adb
7958 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7959 no entities referenced in package
7960 (Check_One_Unit): Don't give message about no entities referenced in
7961 a package if a pragma Unreferenced has appeared.
7962 Handle new warning flag -gnatw.a/-gnatw.A
7963 Update handling of assigned value/unreferenced warnings
7964
7965 * atree.h: Add flags up to Flag247
7966 (Flag231): New macro.
7967
7968 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7969
7970 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7971
7972 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7973 RTX systems.
7974
7975 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7976 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7977 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7978 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7979
7980 * mingw32.h:
7981 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7982
7983 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7984 since we only have problems with Windows 95/98, which are not
7985 supported by RTX.
7986 (__gnat_ttyname): Return the empty string on Nucleus, just as
7987 done on vxworks.
7988
7989 2007-12-13 Robert Dewar <dewar@adacore.com>
7990
7991 * a-textio.adb, a-textio.ads:
7992 Extensive changes to private part for wide character encoding
7993
7994 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7995 (Look_Ahead): Fix mishandling of encoded sequences
7996 Move declaration of Wch_Con to private part (should not be visible)
7997
7998 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7999 UTF-8. Probably this is never used, but if it is, brackets is
8000 clearly correct.
8001
8002 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
8003 setting wide character encoding for no main program case and when
8004 encoding is specified using -W?
8005 Initialize stack limit of environment task if stack limit method of
8006 stack checking is enabled.
8007 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
8008 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
8009 (Get_Main_Unit_Name): New function.
8010 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
8011 (Gen_Output_File): Set Bind_Main_Program to True for .NET
8012
8013 * bindusg.adb: Add line for -Wx switch
8014
8015 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
8016 Add comments
8017 Add new useful constant WC_Longest_Sequences
8018
8019 * switch-b.adb: Clean up handling of -Wx switch
8020 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8021
8022 * switch-c.adb: -gnatg activates warning on assertion errors
8023 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8024
8025 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
8026
8027 2007-12-13 Robert Dewar <dewar@adacore.com>
8028 Ed Schonberg <schonberg@adacore.com>
8029
8030 * a-ngcoty.adb: New pragma Fast_Math
8031
8032 * opt.adb: New pragma Fast_Math
8033
8034 * par-prag.adb:
8035 Add Implemented_By_Entry to the list of pragmas which do not require any
8036 special processing.
8037 (Favor_Top_Level): New pragma.
8038 New pragma Fast_Math
8039
8040 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8041 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8042 Expand_Allocator_Expression): Take into account VM_Target
8043 (Expand_Attribute, case 'Identity): Handle properly the case where
8044 the prefix is a task interface.
8045 New pragma Fast_Math
8046
8047 * par.adb (Next_Token_Is): New function
8048 (P_Pragma): Add Skipping parameter
8049 (U_Left_Paren): New procedure
8050 (U_Right_Paren): New procedure
8051 New pragma Fast_Math
8052
8053 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8054 subunit
8055 New pragma Fast_Math
8056
8057 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8058 Implemented_By_Entry.
8059 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8060 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8061 items, since it can apply to more than one overloadable entity. Set
8062 new flag Has_Pragma_Inline_Always for Inline_Always case.
8063 (Analyze_Pragma, case Complex_Representation): Improve error message.
8064 (Analyze_Pragma, case Assert): When assertions are disabled build the
8065 rewritten code with Sloc of expression rather than pragma, so new
8066 warning about failing is not deleted.
8067 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8068 protected types and update error message to reflect that. Test whether
8069 the protected type is allowed for the pragma (an error is issued if the
8070 type has any entries, or components that do not have preelaborable
8071 initialization).
8072 New pragma Fast_Math
8073 (Analyze_Pragma, case No_Return): Handle generic instance
8074
8075 * snames.h, snames.ads, snames.adb:
8076 Add new predefined name for interface primitive _Disp_Requeue.
8077 New pragma Fast_Math
8078
8079 * a-tags.ads, a-tags.adb: New calling sequence for
8080 String_To_Wide_[Wide_]String
8081 (Secondary_Tag): New subprogram.
8082
8083 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8084 from Exp_Attr
8085 New calling sequence for String_To_Wide_[Wide_]String
8086 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8087 the use of the secondary stack for image routines.
8088
8089 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8090 calling sequence for String_To_Wide_[Wide_]String
8091
8092 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8093 Ada 95 mode
8094 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8095 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8096
8097 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8098 (P_Formal_Part): Use Skipping parameter in P_Pragma call
8099 to improve error recovery
8100
8101 * par-util.adb (Next_Token_Is): New function
8102 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8103
8104 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8105 semicolon if missing
8106 (P_Pragma): Implement new Skipping parameter
8107 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8108 Fix location of flag for unrecognized pragma message
8109
8110 * par-tchk.adb (U_Left_Paren): New procedure
8111 (U_Right_Paren): New procedure
8112
8113 2007-12-13 Geert Bosch <bosch@adacore.com>
8114
8115 * a-tifiio.adb:
8116 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8117 the second or later Scaled_Divide would omit leading zeroes,
8118 resulting in too few digits produced and a Layout_Error as result.
8119 (Put): Initialize Pos.
8120
8121 2007-12-13 Robert Dewar <dewar@adacore.com>
8122
8123 atree.ads, atree.adb (Flag231..Flag247): New functions
8124 (Set_Flag231..Set_Flag247): New procedures
8125 (Basic_Set_Convention): Rename Set_Convention to be
8126 Basic_Set_Convention
8127 (Nkind_In): New functions
8128 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8129
8130 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8131 instead
8132 of obsolete function Is_Always_Inlined
8133 (Register_Predefined_DT_Entry): Initialize slots of the second
8134 secondary dispatch table.
8135 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8136 (Expand_N_Function_Call): Remove special provision for stack checking.
8137
8138 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8139 Include _Disp_Requeue in the list of predefined operations.
8140 (Find_Interface_ADT): Modified to fulfill the new specification.
8141 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8142
8143 * par-ch4.adb, nlists.ads, nlists.adb:
8144 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8145
8146 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8147 Fix location of flag for unrecognized pragma message
8148
8149 * sem_ch7.adb: Use Nkind_In
8150
8151 2007-12-13 Vincent Celier <celier@adacore.com>
8152
8153 * opt.ads:
8154 Indicate what flags are used by the Project Manager, gprbuild and
8155 gprclean.
8156 (Opt.Follow_Links_For_Dirs): New flag
8157 (Warn_On_Assertion_Failure): New flag
8158 (Wide_Character_Encoding_Method_Specified): New flag
8159 (Suppress_All_Inlining): New switch set by -fno-inline
8160 (Real_VMS_Target): New flag
8161 New pragma Fast_Math
8162
8163 2007-12-13 Robert Dewar <dewar@adacore.com>
8164
8165 * back_end.adb: Recognize -fno-inline
8166
8167 2007-12-13 Robert Dewar <dewar@adacore.com>
8168
8169 * checks.adb: Fix optimization problem with short-circuited form
8170
8171 2007-12-13 Bob Duff <duff@adacore.com>
8172
8173 * clean.adb (Usage): Add line for -aP
8174 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8175 with a parameter "procedure Usage", instead of passing a pointer to a
8176 procedure. This is to eliminate trampolines (since the Usage procedure
8177 is often nested in a main procedure, and it would be inconvenient to
8178 unnest it).
8179
8180 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8181 to be generic, with a parameter "procedure Callback (...)", instead of
8182 passing a pointer to a procedure. This is to eliminate trampolines
8183 (since the Callback procedure is usually nested).
8184
8185 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8186 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8187 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8188
8189 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8190 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8191
8192 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8193
8194 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8195 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8196 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8197 (Renamed_In_Spec): New flag
8198 (Has_Pragma_Inline_Always): New flag
8199 Add missing doc for pragma Obsolescent_Warning
8200 Add missing doc for 17 additional unused flags (230-247)
8201 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8202 Alphabetize with clauses.
8203 Separate Is_Thunk and Has_Thunks flags
8204 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8205 (Related_Interface): Renamed to Related_Type.
8206 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8207 (Set_Is_Flag): Restrict the assertion.
8208
8209 2007-12-13 Vincent Celier <celier@adacore.com>
8210
8211 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8212 the source line number if the source line is empty.
8213
8214 2007-12-13 Geert Bosch <bosch@adacore.com>
8215
8216 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8217 (Compose): Remove special casing of zero.
8218 (Exponent): Likewise.
8219 (Fraction): Likewise.
8220 (Machine): Likewise.
8221 (Decompose): Update comment.
8222
8223 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8224
8225 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8226 limited ancestor part, initialize controllers of enclosing record
8227 before expanding ancestor aggregate.
8228 (Gen_Assign): If a component of the aggregate is box-initialized, add
8229 code to call Initialize if the component is controlled, and explicit
8230 assignment of null if the component is an access type.
8231
8232 Handle properly aggregates for limited types that appear in object
8233 declarations when the aggregate contains controlled values such as
8234 protected types.
8235 When expanding limited aggregates into individual components, do not
8236 call Adjust on controlled components that are limited.
8237
8238 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8239
8240 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8241
8242 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8243
8244 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8245 predefined primitive _Disp_Requeue.
8246 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8247 primitive _Disp_Requeue.
8248 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8249 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8250 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8251 an interface type. In case of limited interfaces we now declare all the
8252 predefined primitives associated with synchronized interfaces as
8253 abstract.
8254 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8255 declarations.
8256 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8257 tagged type is an interface type and there is no user-defined equality
8258 function.
8259 Add also bodies of predefined primitives associated with synchronized
8260 interfaces.
8261 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8262 interface types because they are now defined abstract.
8263 Add missing documentation.
8264 (Expand_Record_Controller): Update occurrence of Related_Interface
8265 to Related_Type.
8266 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8267 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8268 class wide interface object declaration.
8269 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8270 if the access type already has one.
8271 (Expand_N_Object_Declaration): Defend against attempt to validity check
8272 generic types. Noticed for -gnatVcf specified with previous errors.
8273
8274 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8275
8276 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8277 Expand_Allocator_Expression): Take into account VM_Target
8278
8279 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8280 secondary stack when VM_Target /= No_VM
8281
8282 2007-12-13 Javier Miranda <miranda@adacore.com>
8283 Ed Schonberg <schonberg@adacore.com>
8284
8285 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8286 Is_Complation_Unit by Is_Library_Level_Entity in the code
8287 that decides if the static dispatch tables need to be built.
8288 (Wrap_Transient_Declaration): Do not generate a finalization call if
8289 this is a renaming declaration and the renamed object is a component
8290 of a controlled type.
8291
8292 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8293
8294 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8295 In the case where the renamed subprogram is a dereference, call
8296 Force_Evaluation on the prefix.
8297
8298 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8299 Ed Schonberg <schonberg@adacore.com>
8300
8301 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8302 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8303 comment reformatting.
8304 (Set_Privals): Inherit aliased flag from formal. From code reading.
8305 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8306 by copy and initialized from the actual. This includes entry parameters.
8307 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8308 and Ada 2005 models of requeue.
8309 (Null_Statements): Still connsider do-end block null if it contains
8310 Unreferenced and Warnings pragmas.
8311 (Expand_N_Accept_Statement): Do not optimize away null do end if
8312 dispatching policy is other than defaulted.
8313 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8314 dispatching call, manually analyze the delay statement.
8315 (Find_Parameter_Type): Move subprogram to Sem_Util.
8316
8317 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8318 Javier Miranda <miranda@adacore.com>
8319
8320 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8321 _Disp_Requeue occupies dispatch table slot number 15. Move
8322 _Disp_Timed_Select to slot 16.
8323 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8324 generate the spec and body of _Disp_Reqeueue.
8325 (Make_DT): Build and initialize the second dispatch table.
8326 Handle initialization of RC_Offset when the parent
8327 is a private type with variable size components.
8328 (Make_Secondary_DT): Complete documentation. Add support to
8329 initialize the second dispatch table.
8330 (Make_Tags): Generate the tag of the second dispatch table.
8331 (Register_Primitive): Add support to register primitives in the
8332 second dispatch table.
8333
8334 2007-12-13 Pascal Obry <obry@adacore.com>
8335
8336 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8337 Windows. This signal is used by gnatmake to kill child processes for
8338 example.
8339
8340 2007-12-13 Javier Miranda <miranda@adacore.com>
8341
8342 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8343 support for generic dispatching constructor calls in which we need to
8344 locate the tag of a secondary dispatch table associated with an
8345 interface type to properly dispatch the call.
8346 (Expand_N_Attribute_Reference [case Address],
8347 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8348 handling of VM targets.
8349
8350 2007-12-13 Robert Dewar <dewar@adacore.com>
8351 Ed Schonberg <schonberg@adacore.com>
8352
8353 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8354 assert fail
8355
8356 * ug_words: Add entries for -gnatw.a -gnatw.A
8357
8358 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8359 literal is a subtype with non-static constraints, use the base type of
8360 the context as the base of the string subtype, to prevent type
8361 mismatches in gigi.
8362 (Resolve_Actuals): If the actual is an entity name, generate a
8363 reference before the actual is resolved and expanded, to prevent
8364 spurious warnings on formals of enclosing protected operations.
8365 (Analyze_Overloaded_Selected_Component): If type of prefix if
8366 class-wide, use visible components of base type.
8367 (Resolve_Selected_Component): Ditto.
8368 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8369 evaluating to False, and issue warning message.
8370
8371 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8372
8373 2007-12-13 Emmanuel Briot <briot@adacore.com>
8374
8375 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8376 time value
8377
8378 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8379 formats.
8380 (Month_Name_To_Number): New subprogram
8381
8382 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8383 letter to upper-case.
8384
8385 2007-12-13 Robert Dewar <dewar@adacore.com>
8386 Ed Schonberg <schonberg@adacore.com>
8387
8388 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8389
8390 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8391 context is a limited view, use non-limited view when available. If the
8392 non-limited view is an unconstrained array, this enforces consistency
8393 requirements in 3.10.2 (27).
8394 (Layout_Type): For an access type whose designated type is a limited
8395 view, examine its declaration to determine if it is an unconstrained
8396 array, and size the access type accordingly.
8397 (Layout_Type): Do not force 32-bits for convention c subprogram
8398 pointers in -gnatdm mode, only if real vms target.
8399
8400 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8401 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8402 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8403 violations of the No_Implicit_Dynamic_Code restriction.
8404 (Resolve_Attribute, case 'Access): If designated type of context is a
8405 limited view, use non-limited view when available. If the non-limited
8406 view is an unconstrained array, this enforces consistency requirements
8407 in 3.10.2 (27).
8408 (Layout_Type): For an access type whose designated type is a limited
8409 view, examine its declaration to determine if it is an unconstrained
8410 array, and size the access type accordingly.
8411
8412 2007-12-13 Vincent Celier <celier@adacore.com>
8413
8414 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8415 object directory of main project does not exist.
8416 On VMS, correctly set then environment variable for the source
8417 directories.
8418
8419 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8420
8421 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8422 set to True this procedure will create the value of type REG_EXPAND_SZ.
8423 It was only possible to create REG_SZ values before.
8424
8425 2007-12-13 Robert Dewar <dewar@adacore.com>
8426
8427 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8428 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8429 namet-sp.adb, namet-sp.ads: New files.
8430
8431 * g-speche.adb: Use generic routine in g-spchge
8432
8433 * s-wchcnv.ads, s-wchcnv.adb:
8434 Minor code cleanup (make formal type consistent with spec)
8435
8436 * namet.adb: Update comments.
8437
8438 * par-endh.adb (Evaluate_End_Entry): Use new
8439 Namet.Sp.Is_Bad_Spelling_Of function
8440
8441 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8442
8443 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8444 ancestor is an access type initialized with a box, set its type
8445 explicitly, for use in subsequent expansion.
8446 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8447 function
8448
8449 2007-12-13 Robert Dewar <dewar@adacore.com>
8450
8451 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8452 access Vstring)
8453
8454 2007-12-13 Robert Dewar <dewar@adacore.com>
8455
8456 * inline.adb (Back_End_Cannot_Inline): Use new flag
8457 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8458
8459 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8460 Has_Pragma_Inline_Always instead.
8461 of obsolete function Is_Always_Inlined
8462 (Build_Body_To_Inline): Same change
8463 (Cannot_Inline): Same change
8464 Do not give warning on exception raise in No_Return function
8465
8466 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8467 component has two inconsistent component clauses in the same record
8468 representation clause, favor the message that complains about
8469 duplication rather than inconsistency.
8470 Update comments.
8471 (Record_Representation_Clause): Do not warn on missing component
8472 clauses for inherited components of a type extension.
8473 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8474 an overloadable item if it is a pragma that can apply to multiple
8475 overloadable entities (e.g. Inline) because a pragma cannot be on
8476 more than one chain at a time.
8477 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8478 conversion where one of the operands is Ada.Calendar.Time.
8479 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8480 For now, ignore Component_Size clause on VM targets, as done for
8481 pragma Pack.
8482
8483 2007-12-13 Emmanuel Briot <briot@adacore.com>
8484 Vincent Celier <celier@adacore.com>
8485
8486 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8487 string
8488 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8489 prj.ads
8490 (Hash): Move instantiation of System.HTable.Hash from spec to body
8491 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8492 systems, since we do not need to recompute the Name_Id for the canonical
8493 file name.
8494 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8495 as a parameter. This parameter is in fact always "ada" in all calls, and
8496 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8497 while loading a project with 40000 files
8498
8499 * prj-attr.adb: Fix name of attribute Dependency_Driver
8500 Change the kind of indexing for attribute Root
8501
8502 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8503 variables already declared, in case constructions.
8504
8505 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8506 Current_Object_Path_File to No_Path.
8507
8508 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8509 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8510
8511 * prj-makr.adb: new parameter Current_Dir
8512
8513 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8514 Ada sources when language is not Ada.
8515 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8516 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8517 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8518 (Locate_Directory): Always resolve links when computing Canonical_Path
8519 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8520 in Source_Files before checking for the presence of a directory
8521 separator.
8522 Optimize calls to Name_Find when on case sensitive systems.
8523 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8524 as a parameter.
8525 (Prj.Nmsc.Check): new parameter Current_Dir
8526 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8527 cannot be empty and the spec suffix cannot be the same as the body or
8528 separate suffix.
8529 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8530 subunit), always consider the longest suffix.
8531 (Check_Configuration): Do not issue an error if there is no compiler
8532 for a language. Just issue a warning and ignore the sources for the
8533 language.
8534 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8535 not empty.
8536 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8537 (Unit_Exceptions): New hash table
8538 (Check_Naming_Schemes): Check if a file that could be a unit because of
8539 the naming scheme is not in fact a source because there is an exception
8540 for the unit.
8541 (Look_For_Sources): Put the unit exceptions in hash table
8542 Unit_Exceptions
8543 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8544 Other_Part to avoid exception when code is compiled with validity
8545 checking.
8546 (Get_Sources_From_File): Check that there is no directory information
8547 in the file names.
8548 (Look_For_Sources): Check that there is no directory information in the
8549 list of file names in Source_Files.
8550 (Look_For_Sources): In multi-language mode, do not allow exception file
8551 names that are excluded.
8552 (Excluded_Sources_Htable): New hash table
8553 (Search_Directories.Check_File): New procedure to simplify
8554 Search_Directories.
8555 (Search_Directories): Do not consider excluded sources
8556 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8557 Search_Directories.
8558 (Get_Exceptions): Set component Lang_Kind of Source_Data
8559 (Get_Unit_Exceptions): Ditto
8560 (Search_Directories): Ditto
8561
8562 * prj-pars.adb: new parameter Current_Dir
8563
8564 * prj-part.ads, prj-part.adb:
8565 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8566 (Opt.Follow_Links_For_Dirs): New flag
8567 (Project_Path_Name_Of): Cache information returned by this routine as
8568 Locate_Regular_File is a costly routine. The code to output a log
8569 information and the effective call to Locate_Regular_File is now
8570 factorized into a routine (code clean-up).
8571 (Parse, Parse_Single_Project): new parameter Current_Dir
8572 When main project file cannot be found, indicate in the error
8573 message the project path that was used to do the search.
8574
8575 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8576 (Prj.Proc.Process*): new parameter Current_Dir
8577
8578 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8579
8580 2007-12-13 Bob Duff <duff@adacore.com>
8581
8582 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8583 procedure to be called from the back end to check the
8584 No_Implicit_Dynamic_Code restriction.
8585
8586 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8587
8588 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8589 Fixes another case where RTE_Available_Call was ignored instead of being
8590 taken into account.
8591 (Load_Fail): Ditto.
8592
8593 * rtsfind.ads: Add new entries.
8594
8595 2007-12-13 Robert Dewar <dewar@adacore.com>
8596
8597 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8598 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8599
8600 * scn.adb: Implement BOM recognition
8601
8602 2007-12-13 Thomas Quinot <quinot@adacore.com>
8603 Ed Schonberg <schonberg@adacore.com>
8604
8605 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8606 subprogram body that acts as its own spec may not have a non-private
8607 WITH clause on a private sibling.
8608 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8609 child unit is a renaming, create an implicit with_clause on that
8610 parent, and not on the unit it renames, to prevent visibility errors
8611 in the current unit.
8612
8613 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8614
8615 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8616 renaming declaration, use the Slocs of the formal parameters from the
8617 declaration of the formal subprogram when creating the formal parameter
8618 entities in the renaming declaration.
8619 (Analyze_Formal_Type_Declaration): Change the placement of the error
8620 message concerning illegal known discriminants. It is now posted on the
8621 type rather than on the first discriminant. This change ensures early
8622 error report.
8623 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8624 the package body that contains the instance, do not generate an
8625 out-of-place freeze node for the enclosing package.
8626 (Collect_Previous_Instantiations): Ignore internal instantiations
8627 generated for formal packages.
8628 (Validate_Derived_Type_Instance): Add a check that when a formal
8629 derived type is Known_To_Have_Preelab_Init then the actual type must
8630 have preelaborable initialization, and issue an error when this
8631 condition is violated.
8632
8633 2007-12-13 Robert Dewar <dewar@adacore.com>
8634
8635 * s-imenne.adb, s-imenne.ads: New files.
8636
8637 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8638 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8639 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8640 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8641 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8642 stack usage.
8643
8644 2007-12-13 Javier Miranda <miranda@adacore.com>
8645 Ed Schonberg <schonberg@adacore.com>
8646
8647 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8648 generation of spurious error if parent is an interface type; caused
8649 because predefined primitive bodies will be generated later by
8650 Freeze_Record_Type.
8651 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8652 flag.
8653 (Derive_Subprograms): Handle derivations of predefined primitives
8654 after all the user-defined primitives to ensure that they are
8655 found in proper order in instantiations.
8656 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8657 of Related_Interface to Related_Type.
8658 (Record_Type_Declaration): Minor reordering of calls to decorate the
8659 Tag component because the entity must have set its Ekind attribute
8660 before setting its Is_Tag attribute.
8661 (Analyze_Subtype_Declaration): In the case of subtypes with
8662 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8663
8664 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8665 Ed Schonberg <schonberg@adacore.com>
8666
8667 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8668 statement to the list of contexts where a selected component with a
8669 concurrent tagged type prefix should yield a primitive operation.
8670 (Find_Primitive_Operation): Handle case of class-wide types.
8671 (Analyze_Overloaded_Selected_Component): If type of prefix is
8672 class-wide, use visible components of base type.
8673 (Resolve_Selected_Component): Ditto.
8674 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8675 formal of a generic subprogram. find candidate interpretations by
8676 scanning the list of generic formal declarations.:
8677 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8678 type from a limited_with_clause, and the full view is available, use it
8679 for subsequent semantic checks.
8680 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8681 (Find_Primitive_Operation): New function.
8682 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8683 only once if several interpretations of the prefix yield an access type.
8684 (Try_Object_Operation): Code and comment cleanup.
8685 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8686 code reformatting. When the type of the prefix is tagged concurrent, a
8687 correct interpretation might be available in the primitive and
8688 class-wide operations of the type.
8689
8690 2007-12-13 Robert Dewar <dewar@adacore.com>
8691 Ed Schonberg <schonberg@adacore.com>
8692
8693 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8694 renaming entry as subprogram using rename-as-body if subprogram spec
8695 frozen.
8696 (Use_One_Type): The clause is legal on an access type whose designated
8697 type has a limited view.
8698 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8699 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8700 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8701 operation denoted by a selected component.
8702 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8703 it can be an expression, possibly overloaded, that returns a task or
8704 an access to one.
8705
8706 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8707 Gary Dismukes <dismukes@adacore.com>
8708
8709 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8710 requeue statement is dispatching. Do not emit an error when the name is
8711 not an entry and the context is a dispatching select. Add code to
8712 perform subtype conformance between the formals of the current entry
8713 and those of the target interface primitive.
8714 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8715 Timed_Entry_Call): Analyze the triggering statement as the first step of
8716 the processing. If this is a dispatching select, postpone the analysis
8717 of all select statements until the Expander transforms the select. This
8718 approach avoids generating duplicate identifiers after the Expander has
8719 replicated some of the select statements. In case the Expander is
8720 disabled, perform regular analysis.
8721 (Check_Triggering_Statement): New routine.
8722 (Analyze_Requeue): Exclude any interpretations that are not entries when
8723 checking overloaded names in a requeue. Also test type conformance for
8724 matching interpretations rather than requiring subtype conformance at
8725 that point to conform with the RM's resolution rule for requeues.
8726
8727 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8728
8729 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8730 inherited operation is a defaulted tag-indeterminate call, and there is
8731 a statically tagged actual, use the static tag as a controlling actual
8732 for the defaulted actual.
8733
8734 2007-12-13 Geert Bosch <bosch@adacore.com>
8735
8736 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8737 context, so do not call Check_Non_Static_Context.
8738
8739 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8740
8741 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8742 whether formal E is an entity which may have parameters.
8743
8744 2007-12-13 Bob Duff <duff@adacore.com>
8745 Javier Miranda <miranda@adacore.com>
8746 Robert Dewar <dewar@adacore.com>
8747
8748 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8749 (Set_Convention): New procedure to set the Convention flag, and in
8750 addition make sure the Favor_Top_Level flag is kept in sync (all
8751 foreign-language conventions require Favor_Top_Level = True).
8752 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8753 to Related_Type.
8754 (Collect_Interfaces_Info): Minor update to handle the two secondary
8755 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8756 (Generate_Parent_Ref): Add parameter to specify entity to check
8757 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8758 initialize a component of a type with preelaborable initialization.
8759 This includes the case of a discriminal used in such a context.
8760 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8761 latest Ada 2005 rules about renaming and 'Access of
8762 discriminant-dependent components.
8763 (Check_Nested_Access): Add handling when there are no enclosing
8764 subprograms (e.g. case of a package body).
8765 (Find_Parameter_Type): Factor routine from several other compiler files.
8766 Remove routine from Find_Overridden_Synchronized_Primitive.
8767
8768 2007-12-13 Thomas Quinot <quinot@adacore.com>
8769
8770 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8771 an invalid access to an uninitialized slot in the
8772 Source_File_Index_Table.
8773
8774 2007-12-13 Thomas Quinot <quinot@adacore.com>
8775
8776 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8777
8778 2007-12-13 Bob Duff <duff@adacore.com>
8779
8780 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8781 access-to-subprogram types in this package.
8782
8783 2007-12-13 Olivier Hainque <hainque@adacore.com>
8784
8785 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8786 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8787 Stack_Overlay_Address and document that we are using an internal
8788 abstraction.
8789 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8790 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8791 consistently throughout the various implementation pieces.
8792
8793 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8794 overlay we are using to fill the stack area with patterns.
8795 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8796 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8797 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8798
8799 2007-12-13 Robert Dewar <dewar@adacore.com>
8800
8801 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8802
8803 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8804
8805 * s-tassta.adb:
8806 (Create_Task): Take into account tasks created by foreign threads.
8807 Code clean up: use constants instead of hard coded values.
8808
8809 2007-12-13 Robert Dewar <dewar@adacore.com>
8810
8811 * styleg.adb (Check_Comment): More liberal rules for comment placement
8812
8813 2007-12-13 Olivier Hainque <hainque@adacore.com>
8814
8815 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8816 of Procedure Value instead of Frame Pointer as the invocation
8817 identifier associated with the instruction pointer in each traceback
8818 entry.
8819
8820 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8821 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8822 Pointer as the invocation identifier passed to tbk$symbolize.
8823
8824 * s-traent-vms.ads, s-traent-vms.adb
8825 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8826 Procedure Value instead of Frame Pointer as the invocation identifier
8827 passed to tbk$symbolize.
8828
8829 2007-12-13 Robert Dewar <dewar@adacore.com>
8830
8831 * tbuild.ads, tbuild.adb:
8832 Fix location of flag for unrecognized pragma message
8833
8834 2007-12-13 Robert Dewar <dewar@adacore.com>
8835
8836 * treepr.ads, treepr.adb: (pl): implement use of positive value
8837 shorthands
8838
8839 2007-12-13 Robert Dewar <dewar@adacore.com>
8840
8841 * xeinfo.adb: Remove warnings
8842 * xnmake.adb: Remove warnings
8843 * xsinfo.adb: Remove warnings
8844 * xtreeprs.adb: Remove warnings
8845 * xsnames.adb: Remove warnings
8846
8847 * a-ngcoar.adb: Fix typo.
8848 * s-interr.adb: Minor reformatting
8849 * env.c: Minor reformatting.
8850 * g-bytswa.adb: Minor reformatting.
8851 * g-rannum.ads: Minor documentation improvements
8852 * s-tasinf-mingw.adb: Minor header fix
8853 * a-clrefi.adb: Minor reformatting
8854 * g-sttsne.ads: Minor documentation improvement
8855 * g-sttsne-locking.ads: Minor documentation improvement
8856 * g-soliop-solaris.ads: Minor documentation improvement
8857 * g-soliop-mingw.ads: Minor documentation improvement
8858 * g-soliop.ads: Minor documentation improvement
8859 * exp_aggr.ads: Minor reformatting
8860 * debug.adb: Add documentation for the gprbuild debug flags
8861 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8862 * exp_pakd.adb: Minor reformatting
8863
8864 * g-altive.ads, g-alleve.adb: Remove assertions.
8865 Add comment about minor differences between targets regarding
8866 floating-point operations.
8867
8868 * g-thread.adb: Remove pragma unreferenced.
8869 * lib.ads: Minor reformatting
8870 * par-ch9.adb: Minor reformatting of error messages
8871 * sem_case.adb: Minor reformatting
8872 * s-fileio.adb: Minor reformattinng
8873 * s-vmexta.ads: Minor typo
8874 * vxaddr2line.adb:
8875 Take into account 'Success' value as per new GNAT warning.
8876
8877 2007-12-13 Vincent Celier <celier@adacore.com>
8878
8879 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8880 even on Windows
8881
8882 2007-12-13 Robert Dewar <dewar@adacore.com>
8883 Bob Duff <duff@adacore.com>
8884
8885 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8886 Document that suffixes may be terminations of each others
8887 Add doc for -gnatw.a and -gnatw.A
8888 Document gnatbind -Wx switch
8889 Document BOM recognition
8890 Document pragma Implemented_By_Entry.
8891 Document new units.
8892
8893 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8894 Add doc for pragma Unreferenced suppressing no entities referenced msg
8895 Add documentation of GNAT.Directory_Operations.Iteration
8896 Add documentation of GNAT.Random_Numbers
8897 Add documentation for pragma Shared.
8898 Correct documentation for Bit_Order
8899 Add documentation for the Pool_Address attribute.
8900 Fix and improve documentation of pragma machine_attribute.
8901 New pragma Fast_Math
8902 Document BOM recognition
8903
8904 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8905 Add /Wide_Character_Encoding for binder
8906 Add qualifier for the new gnatpp option --no-separate-loop-then
8907
8908 2007-12-13 Matthew Heaney <heaney@adacore.com>
8909
8910 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8911 which generic formal operations are called for each operation.
8912
8913 2007-12-13 Olivier Hainque <hainque@adacore.com>
8914
8915 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8916 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8917
8918 2007-12-13 Emmanuel Briot <briot@adacore.com>
8919
8920 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8921 Reference_Dir unless we actually need it.
8922
8923 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8924 Tristan Gingold <gingold@adacore.com>
8925
8926 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8927
8928 * s-osprim-vms.adb,
8929 a-calend-vms.adb: Remove pragma warning off and add pragma
8930 unreferenced.
8931
8932 2007-12-13 Robert Dewar <dewar@adacore.com>
8933
8934 * impunit.adb: Add entries for missing units
8935
8936 * Makefile.rtl: Add new run-time units.
8937
8938 * Make-lang.in: Update dependencies.
8939
8940 2007-12-13 Bob Duff <duff@adacore.com>
8941
8942 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8943 types, set Can_Use_Internal_Rep appropriately, based on
8944 Always_Compatible_Rep_On_Target.
8945
8946 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8947 Arnaud Charlet <charlet@adacore.com>
8948
8949 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8950 it to the front end and setting the aamp_target environment variable
8951 to the switch's argument to ensure that gnaampbind and gnaamplink will
8952 take the specified library into account.
8953 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8954 target, since the CIL compiler supports an "object" file (.il files).
8955
8956 2007-12-13 Vincent Celier <celier@adacore.com>
8957
8958 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8959 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8960
8961 2007-12-13 Geert Bosch <bosch@adacore.com>
8962
8963 * s-parame-vxworks.adb:
8964 Update comments to reflect usage of this package by Nucleus.
8965
8966 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8967
8968 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8969 spec would break code.
8970
8971 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8972
8973 * system-vxworks-alpha.ads: Removed.
8974
8975 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8976
8977 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8978
8979 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8980
8981 PR ada/34366
8982 * sem_ch3.adb (Designates_T): New function.
8983 (Mentions_T): Factor reusable part of the logic into Designates_T.
8984 Consider non-access parameters and access and non-access result.
8985 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8986 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8987
8988 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8989
8990 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8991
8992 PR ada/34361
8993 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8994 the new implementation of target-specific calls.
8995
8996 2007-12-07 Olivier Hainque <hainque@adacore.com>
8997
8998 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8999 the designated full view, only follow a second level Full_View link
9000 for Non_Limited_Views of from_limited_with references.
9001
9002 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
9003
9004 PR ada/15805
9005 * sem_ch6.adb (Process_Formals): Prevent an access type formal
9006 to be initialized with an access to constant object.
9007
9008 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
9009 when an access to constant is used to initialize an access
9010 value.
9011
9012 PR ada/21346
9013 * a-direct.adb (Compose): Containing_Directory can be an empty string.
9014
9015 2007-12-07 Olivier Hainque <hainque@adacore.com>
9016
9017 PR ada/34173
9018 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
9019 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
9020 this is from an alignment clause on the GNAT entity.
9021 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
9022 to distinguish the case where we set it from the type's alignment.
9023 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
9024 whether this alignment was set from an explicit alignment clause.
9025
9026 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
9027
9028 * decl.c (make_packable_type): Revert last change.
9029 (gnat_to_gnu_field): Avoid setting size and position multiple times.
9030 * utils.c (finish_record_type): Retrieve the real name of the type.
9031
9032 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
9033
9034 * trans.c (lvalue_required_p): Take base node directly instead
9035 of its parent. Rename second parameter to 'gnu_type'.
9036 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
9037 <N_Slice>: Likewise.
9038 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
9039 Adjust calls to lvalue_required_p.
9040
9041 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
9042
9043 PR ada/21489
9044 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9045 parameters of an entry call.
9046
9047 2007-12-03 Robert Dewar <dewar@adacore.com>
9048 Samuel Tardieu <sam@rfc1149.net>
9049
9050 PR ada/34287
9051 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9052 of variables declared in a library-level package.
9053
9054 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
9055
9056 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9057 of Empty_String'Unchecked_Access.
9058
9059 * Makefile.in: Add support for sh4-linux.
9060
9061 * system-linux-sh4.ads: New file.
9062
9063 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
9064
9065 PR ada/33722
9066 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9067 and its argument must not be free()ed.
9068
9069 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
9070
9071 * decl.c (make_packable_type): Retrieve the real name of the type.
9072 (maybe_pad_type): Simplify similar code.
9073
9074 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
9075
9076 PR ada/15804
9077 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9078 than an identifier is used after "case" in a variant_part.
9079
9080 PR ada/17318
9081 * par-ch4.adb (Is_Parameterless_Attribute): New map.
9082 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9083 attribute name or not depending on the new map.
9084
9085 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9086 returning a string or a type will not be called with improper
9087 arguments.
9088
9089 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9090
9091 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9092
9093 PR ada/32792
9094 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9095 Signal an error when attribute argument is a fixed-point value of
9096 an unknown type.
9097
9098 PR ada/22559
9099 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9100 a derived ordinary fixed point type.
9101
9102 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9103 RM_Size when a Small clause is found.
9104
9105 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
9106
9107 PR 34081/C++
9108 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9109 Pass 'false' for the new allocate_struct_function parameter.
9110 * utils.c (build_function_stub): Likewise.
9111
9112 2007-11-25 Richard Guenther <rguenther@suse.de>
9113
9114 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9115 (gnat_poplevel): Likewise.
9116
9117 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
9118
9119 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9120 strict alignment, no alignment clause and a known static size, cap
9121 the type alignment to the greatest power of 2 factor of the size.
9122 (gnat_to_gnu_field): If the field has a component clause, is aliased
9123 or of a type with strict alignment, require that its size be equal to
9124 that of the type.
9125 (validate_size): Use the type size as the minimum size for a type with
9126 strict alignment.
9127
9128 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
9129
9130 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9131 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9132 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9133 Use 'Access instead of 'Unchecked_Access in second and third
9134 arguments of pthread_sigmask.
9135
9136 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
9137
9138 * decl.c (ceil_alignment): New function.
9139 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9140 (make_packable_type): Likewise.
9141
9142 2007-11-22 Olivier Hainque <hainque@adacore.com>
9143
9144 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9145 to fit in 80 columns.
9146
9147 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
9148
9149 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9150 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9151
9152 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9153
9154 PR ada/34098
9155 * misc.c (gnat_adjust_rli): Delete.
9156 (gnat_init): Do not initialize the translation code here.
9157 Do not call set_lang_adjust_rli.
9158 * trans.c (init_code_table): Make static.
9159 (gnat_init_stmt_group): Delete.
9160 (gigi): Initialize the translation code entirely here.
9161 Emit debug info for the common types here instead of...
9162 * utils.c (gnat_init_decl_processing): ...here.
9163 * gigi.h (init_code_table): Delete.
9164 (gnat_init_stmt_group): Likewise.
9165
9166 2007-11-16 Olivier Hainque <hainque@adacore.com>
9167
9168 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9169 retrieving an allocator return value from a super-aligned address from
9170 here to ...
9171 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9172 expect a super-aligned address for a fat or thin pointer.
9173
9174 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9175
9176 * trans.c (call_to_gnu): Always set the source location on the call
9177 expression. If the function returns-by-target, also set it on the
9178 address expression.
9179
9180 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
9181
9182 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9183 sections of non-supported Interix target.
9184
9185 * s-osinte-interix.ads: Removed.
9186
9187 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9188
9189 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
9190
9191 * a-tasatt.adb: Add a comment at the beginning of the package
9192 explaining why in general 'Unchecked_Access must be used instead
9193 of 'Access.
9194
9195 * sem_prag.adb (Process_Convention): Move the test for the
9196 entity on which the Convention pragma applies down to also
9197 forbid pragma Convention on enumeration literals reached
9198 through renamings.
9199
9200 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
9201
9202 * a-tasatt.adb: Revert previous change for this file as it will
9203 generate an error when this package is instantiated from a
9204 local context.
9205
9206 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
9207
9208 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9209 of already declared type Node_Access.
9210 Use 'Access instead of 'Unchecked_Access when applicable. Local
9211 lifetime is the one of the package.
9212 (Set_Value): W is allocated on the heap.
9213
9214 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9215 applicable.
9216 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9217 access type.
9218 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9219 access type.
9220
9221 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9222 applicable.
9223 (elaboration code): Timer_Queue lifetime is the one of the
9224 package.
9225
9226 * tracebak.c (i386 alternative): Remove useless comparaison
9227 which is always false; LOWEST_ADDRESS is 0 and is never greater
9228 than an unsigned integer.
9229
9230 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9231 embedded check for "Ada_Version >= Ada_05".
9232
9233 2007-11-07 Olivier Hainque <hainque@adacore.com>
9234
9235 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9236 craft and expand comment.
9237
9238 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9239
9240 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9241
9242 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9243
9244 * misc.c (gnat_handle_option): Replace call to abort with
9245 call to gcc_unreachable.
9246 (gnat_init): Likewise.
9247 (gnat_expand_expr): Likewise.
9248 (fp_prec_to_size): Likewise.
9249 (fp_size_to_prec): Likewise.
9250
9251 2007-10-23 Richard Guenther <rguenther@suse.de>
9252
9253 PR bootstrap/33608
9254 * tracebak.c: #undef abort after including system.h.
9255
9256 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9257
9258 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9259 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9260 for win32 targets.
9261 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9262
9263 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9264
9265 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9266 Set the protection status of the guard page based on the value of On.
9267
9268 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9269
9270 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9271 (Exit_Task): Pass False to Hide_Yellow_Zone.
9272
9273 2007-10-15 Robert Dewar <dewar@adacore.com>
9274
9275 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9276 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9277 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9278 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9279 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9280 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9281 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9282 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9283 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9284 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9285 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9286 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9287 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9288 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9289 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9290 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9291 Minor reformatting.
9292 Add Unreferenced and Warnings (Off) pragmas for cases of
9293 variables modified calls where they are IN OUT or OUT parameters and
9294 the resulting values are not subsequently referenced. In a few cases,
9295 we also remove redundant code found by the new warnings.
9296
9297 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9298 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9299 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9300 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9301 warning controlled by -gnatw.o that warns on cases of out parameter
9302 values being ignored.
9303
9304 2007-10-15 Geert Bosch <bosch@adacore.com>
9305
9306 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9307
9308 * expect.c: Initial port to arm-mentor-nucleus.
9309 Use kill for __gnat_kill() on VMS.
9310
9311 2007-10-15 Emmanuel Briot <briot@adacore.com>
9312
9313 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9314 value.
9315 (Xref_Record): Change type for Line, since in the case of a reference to
9316 a predefined entity (as happens for array index types), the line is set
9317 to 0.
9318 Add support for parsing multiple array index types info, or
9319 multiple inherited interfaces info. This information cannot be stored
9320 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9321 and is therefore stored in the list of references instead. It has a
9322 special treatement later on in tools that use this information.
9323
9324 2007-10-15 Tristan Gingold <gingold@adacore.com>
9325
9326 * debug.adb: Document use of -gnatd.a and -gnatd.I
9327
9328 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9329
9330 2007-10-15 Javier Miranda <miranda@adacore.com>
9331
9332 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9333 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9334 care of access to class-wide interface types plus removal of bizarre
9335 conversion of tagged object to access type (reported by Gary
9336 Dismukes). After this patch there is no need to perform any
9337 additional management on these nodes in Expand_Interface_Actuals.
9338
9339 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9340 that handles use of 'Access and 'Unchecked_Access applied to
9341 actuals covering interface types. Such code is now
9342 centralized in Expand_N_Attribute_Reference.
9343
9344 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9345
9346 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9347 of tagged types whose ultimate ancestor is a CPP type.
9348 (Freeze_Array_Type): For a packed array type, generate an initialization
9349 procedure if the type is public, to handle properly a client that
9350 specifies Normalize_Scalars.
9351
9352 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9353
9354 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9355 inside a generic body, retrieve the full view of the entry family
9356 discrete subtype if available.
9357
9358 2007-10-15 Thomas Quinot <quinot@adacore.com>
9359
9360 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9361 attempt to generate stubs for hidden primitive operations.
9362
9363 2007-10-15 Vincent Celier <celier@adacore.com>
9364
9365 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9366 returning None, used when there is no platform specific body for
9367 MLib.Tgt.Specific.
9368
9369 2007-10-15 Bob Duff <duff@adacore.com>
9370
9371 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9372 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9373 the generic Heap_Sort_G, in order to avoid trampolines.
9374
9375 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9376 Jose Ruiz <ruiz@adacore.com>
9377
9378 * vx_stack_info.c: New file.
9379
9380 * i-forbla-unimplemented.ads: New file.
9381
9382 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9383 for unsupported configurations; use it on VMS targets instead of the
9384 real one.
9385 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9386 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9387 used by VxWorks targets to have access to task-specific data and be
9388 able to extract the stack boundaries for stack checking.
9389 Use system-vms-ia64.ads on ivms.
9390
9391 * Make-lang.in: Update dependencies.
9392
9393 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9394 (vx_stack_info.c).
9395
9396 2007-10-15 Vincent Celier <celier@adacore.com>
9397
9398 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9399
9400 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9401
9402 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9403
9404 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9405 the source is unknown.
9406
9407 * prj-ext.adb: Spelling error fix
9408
9409 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9410 95 reserved word in its name.
9411 (Process_Project_Level_Array_Attributes): Process new attribute
9412 Runtime_Library_Dir.
9413
9414 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9415 config project against the user project names.
9416
9417 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9418 not include a dot are always case insensitive.
9419 (Process_Declarative_Items): Ditto
9420 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9421 detected.
9422
9423 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9424 True, compare both indexes in lower case.
9425
9426 2007-10-15 Robert Dewar <dewar@adacore.com>
9427
9428 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9429
9430 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9431
9432 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9433 association for an access component, add an association with null as
9434 the expression. Remove testing for array subtypes and the setting in
9435 that case of Ctyp to the array component type, which prevented proper
9436 inclusion of an association for null-initialized arrays. Collapse
9437 condition that tests for array subtypes into just a test of
9438 Is_Partially_Initialized_Type (which already covers arrays anyway).
9439
9440 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9441
9442 * sem_ch12.adb: Minor code reformatting.
9443 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9444 find the parent package which may have been hidden by local
9445 declarations.
9446
9447 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9448
9449 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9450 flag of derived concurrent types, taking into account the flag setting
9451 on the parent subtype and any new set of discriminants.
9452
9453 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9454
9455 * sem_ch4.adb: Minor code and comment reformatting.
9456 (Analyze_Allocator): When the designated type of an unconstrained
9457 allocator is a record with unknown discriminants or an array with
9458 unknown range bounds, emit a detailed error message depending on the
9459 compilation mode and whether the designated type is limited.
9460
9461 2007-10-15 Tristan Gingold <gingold@adacore.com>
9462
9463 * system-vms-ia64.ads: New file.
9464
9465 * system-vms_64.ads: Minor comment fix.
9466
9467 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9468
9469 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9470 body generated for a function with a controlling result that is a null
9471 extension, discard the generated body in favor of the current explicit
9472 one.
9473
9474 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9475
9476 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9477 examining its original form, to handle properly operator calls that
9478 have been rewritten.
9479
9480 2007-10-15 Olivier Hainque <hainque@adacore.com>
9481
9482 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9483 instead of a procedure value in each traceback entry.
9484
9485 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9486 instead of procedure value to TBK$SYMBOLIZE.
9487
9488 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9489 field.
9490 (TB_Entry_For): Account for the PV/FP renaming.
9491
9492 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9493 add comment.
9494 (Null_TB_Entry): Account for change of component name.
9495 (PV_For): Rename as FP_For.
9496
9497 2007-10-15 Tristan Gingold <gingold@adacore.com>
9498
9499 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9500 This optimize assignment to over-aligned record.
9501
9502 2007-10-15 Emmanuel Briot <briot@adacore.com>
9503
9504 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9505 interfaces.
9506
9507 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9508 type, for dispatching calls.
9509
9510 2007-10-15 Vincent Celier <celier@adacore.com>
9511 Robert Dewar <dewar@adacore.com>
9512
9513 * gnat_ugn.texi: Add documentation for switches --version and --help
9514 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9515 gnatxref, gnatfind, gnatls, and gnatclean.
9516 Document -gnatw.o.
9517 Mention attribute Excluded_Source_Dirs
9518 Replace obsolescent attribute Locally_Removed_Files with attribute
9519 Excluded_Source_Files.
9520 Improve documentation of -u (gnatbind)
9521 Document how to do reliable stack checking for the environmental task
9522 on iVMS.
9523
9524 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9525 Document attribute Excluded_Source_Files and indicate that attribute
9526 Locally_Removed_Files is obsolescent.
9527
9528 2007-10-15 Thomas Quinot <quinot@adacore.com>
9529
9530 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9531
9532 * gen-soccon.c:
9533 Update documentation to note that OpenVMS 8.3 or later must be used
9534 to generate g-soccon-vms.ads.
9535
9536 * atree.adb: Add ??? comment
9537
9538 * exp_util.adb: Minor reformatting.
9539 Add ??? comment in Kill_Dead_Code.
9540
9541 2007-10-15 Robert Dewar <dewar@adacore.com>
9542
9543 * errout.ads: Comment clarification
9544
9545 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9546 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9547
9548 * lib.ads: Comment update
9549
9550 * init.c: Minor reformatting.
9551
9552 * sem_attr.adb: Minor formatting
9553
9554 * osint-b.ads: Minor reformatting
9555
9556 * sem_ch9.adb: Implement -gnatd.I switch
9557
9558 * g-comlin.adb: (Start): Fix handling of empty command line.
9559
9560 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9561 even when -rules follows the -cargs section.
9562
9563 2007-10-08 Ollie Wild <aaw@google.com>
9564
9565 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9566 gnat_return_tree.
9567 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9568 gnat_return_tree.
9569 (gnat_eh_runtime_type): Removed.
9570 (gnat_return_tree): New function.
9571
9572 2007-10-08 Ben Elliston <bje@au.ibm.com>
9573
9574 PR ada/33454
9575 Revert:
9576 2007-08-31 Ben Elliston <bje@au.ibm.com>
9577
9578 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9579 when compiling for powerpc64-*-linux.
9580 * system-linux-ppc64.ads: New file.
9581
9582 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9583
9584 Mapped location support
9585 * back_end.adb (Call_Back_End): Pass information about source
9586 files instead of units to gigi.
9587 * gigi.h (struct File_Info_Type): New.
9588 (gigi): Rename and change type of number_units parameter, change
9589 type of file_info_ptr parameter.
9590 * trans.c (number_files): New global variable.
9591 (gigi): Rename and change type of number_units parameter, change
9592 type of file_info_ptr parameter.
9593 If mapped location support is enabled, create the isomorphic mapping
9594 between source files and line maps.
9595 (Sloc_to_locus): If mapped location support is enabled, translate
9596 source location into mapped location.
9597 (annotate_with_node): Rename into set_expr_location_from_node.
9598 Call set_expr_location instead of annotate_with_locus.
9599 (Pragma_to_gnu): Adjust for above change.
9600 (Loop_Statement_to_gnu): Likewise.
9601 (call_to_gnu): Likewise.
9602 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9603 (gnat_to_gnu): Likewise.
9604 (add_stmt_with_node): Likewise.
9605 (add_cleanup): Likewise.
9606 * utils.c (gnat_init_decl_processing): Do not set input_line.
9607
9608 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9609
9610 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9611 (Applicable_Use): Emit a warning when a package tries to use itself.
9612 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9613 is already in use or the package where it is declared is in use or is
9614 declared in the current package.
9615 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9616
9617 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9618 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9619 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9620
9621 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9622
9623 * a-calend-vms.adb, a-calend.adb:
9624 Add a section on leap seconds control along with two entities used to
9625 enable and disable leap seconds support. The array Leap_Second_Times is
9626 now constant and contains hard time values pre-generated. Remove
9627 all elaboration code used to populate the table of leap seconds.
9628
9629 * bindgen.adb:
9630 Add entity Leap_Seconds_Support to the list of global run-time variables
9631 along with a comment on its usage and values.
9632 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9633 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9634 or one (enabled) depending on the presence of binder switch "-y".
9635 (Gen_Adainit_C): Add code to generate the declaration of external int
9636 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9637 (enabled) depending on the presence of binder switch "-y".
9638
9639 * init.c: Add __gl_leap_seconds_support to the list of global values
9640 computed by the binder.
9641
9642 2007-09-26 Jerome Guitton <guitton@adacore.com>
9643
9644 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9645 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9646 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9647 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9648
9649 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9650
9651 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9652 function which can be called by the debugger to interrupt the tasks of
9653 an Ada application asynchronously, as needed on VxWorks.
9654 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9655
9656 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9657 renamed from Stop_All_Tasks. Update comments.
9658 (Stop_All_tasks): New function declaration.
9659
9660 2007-09-26 Olivier Hainque <hainque@adacore.com>
9661
9662 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9663 #include <utime.h> and #define GCC_RESOURCE_H before
9664 #include <sys/wait.h>.
9665 Add more protections in __gnat_translate_vms.
9666
9667 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9668 #include <sys/wait.h>.
9669
9670 2007-09-26 Thomas Quinot <quinot@adacore.com>
9671 Sergey Rybin <rybin@adacore.com>
9672
9673 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9674
9675 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9676 where it belongs.
9677
9678 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9679
9680 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9681 where it belongs.
9682
9683 * sem_dist.ads: Minor comment fix
9684
9685 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9686
9687 2007-09-26 Javier Miranda <miranda@adacore.com>
9688 Eric Botcazou <ebotcazou@adacore.com>
9689
9690 * a-tags.adb:
9691 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9692 indirection added to the HT_Link component of the TSD. This is required
9693 to statically allocate the TSD.
9694
9695 * a-tags.ads:
9696 Minor reordering of the declarations in the private part. Required to
9697 add a level of indirection to the contents of the TSD component HT_Link.
9698 This is required to statically allocate the TSD.
9699
9700 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9701 Is_Statically_Allocated set from constant objects.
9702 Do not make exported constants created by the compiler volatile.
9703 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9704 as read-only.
9705
9706 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9707 before returning them.
9708
9709 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9710 public part of the package.
9711 (Make_DT): Move HT_Link component out of the TSD record. For this
9712 purpose Make_DT now declares a separate object that stores the
9713 HT_Link value, and initializes the TSD component with the address
9714 of this new object. The addition of this level of indirection is
9715 required to statically allocate the TSD because the TSD cannot
9716 have variable components.
9717 (Expand_Interface_Conversion): Improve the expanded code.
9718 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9719
9720 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9721 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9722 if we are building static dispatch tables then we must not generate
9723 extra code to register the primitive because the dispatch table will
9724 be built at the end of the library package; otherwise we notify that
9725 we cannot build the static dispatch table.
9726
9727 2007-09-26 Robert Dewar <dewar@adacore.com>
9728
9729 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9730 overlays.
9731
9732 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9733 (Analyze_Record_Representation_Clause): Suppress junk warning for
9734 missing component clause.
9735 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9736 tests for controlled type overlay to composites with controlled
9737 components.
9738 (Analyze_Record_Representation_Clause): Add reference for component name
9739
9740 2007-09-26 Javier Miranda <miranda@adacore.com>
9741 Gary Dismukes <dismukes@adacore.com>
9742
9743 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9744 for thunks associated with interface types.
9745
9746 * einfo.ads: Improve documentatation of Is_Internal
9747 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9748 associated with interface types.
9749 Extensive comment fixes regarding flags that appear in all entities. The
9750 documentation is now consistent for all such flags (there were a number
9751 of errors in the documentation in this regard).
9752
9753 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9754
9755 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9756 of these procedures are passed a function call that already has
9757 build-in-place actuals (testing new flag
9758 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9759 the case where processing continues.
9760 (Expand_Call): If the call is generated from a thunk body then we
9761 propagate the extra actuals associated with the accessibility
9762 level of the access type actuals.
9763
9764 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9765 of each extra formal of a protected operation to reference the
9766 corresponding extra formal of the subprogram denoted by the
9767 operation's Protected_Body_Subprogram.
9768
9769 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9770 N_Function_Call nodes.
9771
9772 2007-09-26 Robert Dewar <dewar@adacore.com>
9773
9774 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9775
9776 * debug.adb: Add d.s flag.
9777
9778 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9779
9780 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9781 debug variable so that it won't be initialized when pragma
9782 Initialize_Scalars is in effect.
9783
9784 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9785
9786 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9787 initialization of a full view. This is moved to
9788 Analyze_Package_Specification.
9789
9790 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9791 preelaborable initialization of a full view in entity loop.
9792 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9793 its child units are use-visible only if they are visible child units.
9794
9795 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9796 whether an expression can be used within a type declaration that
9797 requires preelaborable init.
9798 (Check_Components): Replace inline code that does partial checking for
9799 preelaborable default expressions with call to
9800 Is_Preelaborable_Expression.
9801 (Has_Preelaborable_Initialization): In the case of a generic actual
9802 subtype, (that is, Is_Generic_Actual is True), return the result of
9803 applying Has_Preelaborable_Initialization to the generic actual's base
9804 type.
9805
9806 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9807
9808 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9809 call to Jan_1_Day _Of_Week to optimize its performance.
9810 (Is_Leap): Move the routine to the scope of Week_In_Year.
9811 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9812 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9813 avoids calling Time_Of and Split, thus making it more efficent.
9814 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9815
9816 * g-calend.ads (Week_In_Year): Change comment to reflect new
9817 implementation.
9818
9819 2007-09-26 Emmanuel Briot <briot@adacore.com>
9820
9821 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9822 Command_Line): New types
9823 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9824 support for defining how switches can be grouped on a command line (as
9825 is the case for -gnatw... for GNAT), and how simple switches can be
9826 used as aliases for more complex switches (-gnatwa is same as
9827 -gnatwbcef...)
9828 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9829 (Start, Current_*): New subprograms
9830 Added support for parsing an array of strings in addition to the real
9831 command line.
9832 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9833 be moved from the body to the private part of the spec.
9834 (*): All subprograms now have an extra parameter with default value to
9835 specify which parser should be used. For backward compatibility, it
9836 defaults to parsing the command line of the application. They were also
9837 modified to properly handle cases where each of the argument does not
9838 start at index 1 (which is always true for Ada.Command_Line, but not
9839 when processing any Argument_List).
9840 (Free): New subprogram
9841 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9842 Argument): New subprograms
9843 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9844 special characters like ':', '=',... are now handled in a single place,
9845 which makes the code more extensible eventually.
9846 (Getopt, Full_Switch): When the switch was returned as part of the
9847 special character '*', make sure it is prepended by the switch character
9848 ('-' in general), so that the application knows whether "foo" or "-foo"
9849 was specified on the command line.
9850
9851 2007-09-26 Florian Villoing <villoing@adacore.com>
9852
9853 * g-dirope.adb (Remove_Dir): In case we are removing directories
9854 recursively, make sure that if an exception is raised during the
9855 processing, the current working directory is reset to its initial
9856 value before propagating the exception.
9857
9858 2007-09-26 Vincent Celier <celier@adacore.com>
9859
9860 * gnatbind.adb: If there are several ALI files specified and there is
9861 a main program to bind, the first ALI is expected to contain the main
9862 subprogram and the names of the binder generated files will be derived
9863 from the first ALI file name.
9864 (Gnatbind): Fix insertion character in invocation of Error_Msg
9865
9866 2007-09-26 Vincent Celier <celier@adacore.com>
9867
9868 * gnatcmd.adb (Check_Files): Do not include sources that have been
9869 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9870
9871 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9872
9873 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9874 information about each of its index types, following the type
9875 reference for its component type.
9876
9877 2007-09-26 Vincent Celier <celier@adacore.com>
9878
9879 * make.adb: (Kill): New procedure (__gnat_kill imported)
9880 (Running_Compile, Outstanding_Compiles): Global variables that
9881 were previously local to procedure Compile_Sources.
9882 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9883 compilation processes.
9884
9885 (Gnatmake): If project files are used, create the mapping of all the
9886 sources, so that the correct paths will be found.
9887
9888 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9889
9890 2007-09-26 Vincent Celier <celier@adacore.com>
9891
9892 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9893
9894 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9895 Replace components Compiler_Min_Options and Binder_Min_Options with
9896 Compiler_Required_Switches and Binder_Required_Switches in record
9897 Language_Config.
9898 Remove components Default_Language and Config in Project_Tree_Data,
9899 no longer used.
9900
9901 * prj-attr.adb: New attributes Required_Switches (<language>) in
9902 packages Compiler and Binder.
9903
9904 * prj-nmsc.adb: Major rewrite of the processing of configuration
9905 attributes for gprbuild. No impact on GNAT tools.
9906
9907 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9908 process configuration attributes: this is done in Prj.Nmsc.Check.
9909 (Recursive_Process): Make a full copy of packages inherited from project
9910 being extended, instead of a shallow copy.
9911 (Process_Project_Tree_Phase_1): New procedure
9912 (Process_Project_Tree_Phase_1): New procedure
9913 (Process): Implementation now uses the two new procedures
9914
9915 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9916 from the project config, not the tree config that no longer exists.
9917
9918 2007-09-26 Vincent Celier <celier@adacore.com>
9919
9920 * Make-lang.in: Update dependencies..
9921
9922 2007-09-26 Vincent Celier <celier@adacore.com>
9923
9924 * osint.adb, osint.ads: Minor reformatting
9925
9926 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9927
9928 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9929
9930 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9931 message to cite use of <> in aggregate component associations rather
9932 than wrongly indicating use of limited aggregates.
9933
9934 2007-09-26 Robert Dewar <dewar@adacore.com>
9935
9936 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9937 Address_Taken.
9938
9939 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9940
9941 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9942 ancestor of the derived type, the operations are inherited from the
9943 primary dispatch table of the parent.
9944 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9945 when the context is an explicit type conversion.
9946
9947 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9948
9949 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9950 rule for qualified expressions properly, to detect improper conversions
9951 and resolve some cases of overloading.
9952
9953 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9954
9955 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9956 proper kind of reference to the primitive operation, for better source
9957 navigation.
9958 (Valid_Conversion): A tagged conversion is legal if both operands are
9959 tagged.
9960
9961 2007-09-26 Robert Dewar <dewar@adacore.com>
9962
9963 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9964 packages.
9965
9966 2007-09-26 Vincent Celier <celier@adacore.com>
9967
9968 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9969
9970 2007-09-26 Robert Dewar <dewar@adacore.com>
9971
9972 * s-wchstw.adb: provide messages for run time unit exceptions
9973
9974 * a-witeio.adb: Minor reformatting
9975
9976 * exp_ch13.adb: Minor reformatting
9977
9978 2007-09-26 Sergey Rybin <rybin@adacore.com>
9979
9980 * vms_data.ads: Revise gnatmetric qualifiers.
9981 Add qualified for the new gnatbind option '-y'
9982
9983 * gnat_ugn.texi: Revise the gnatmetric section.
9984 Add entry for new gnatbind option '-y'.
9985
9986 * gnat_rm.texi: Minor spelling correction.
9987 Document restriction on overlaying controlled types
9988
9989 2007-09-26 Vincent Celier <celier@adacore.com>
9990
9991 * makegpr.adb (Link_Executables): Do not fail when the root project has
9992 no sources, but is an extending project.
9993
9994 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9995
9996 * trans.c: Fix misplaced #define.
9997
9998 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9999
10000 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
10001 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
10002
10003 2007-09-21 Olivier Hainque <hainque@adacore.com>
10004
10005 * utils.c (type_for_nonaliased_component_p): Return false for
10006 all AGGREGATE_TYPEs.
10007
10008 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
10009
10010 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
10011 object covered by 13.3(19) volatile.
10012
10013 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
10014
10015 PR ada/26797
10016 PR ada/32407
10017 * utils.c (unchecked_convert): Use a subtype as the intermediate type
10018 in the special VIEW_CONVERT_EXPR case.
10019
10020 2007-09-12 Robert Dewar <dewar@adacore.com>
10021
10022 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
10023
10024 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
10025 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
10026 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
10027 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
10028 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
10029 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
10030 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
10031 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
10032 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
10033 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
10034 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
10035 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
10036 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
10037 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
10038 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
10039 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
10040 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10041 pragma Compiler_Unit and adds it to relevant library units.
10042
10043 2007-09-12 Ed Schonberg <schonberg@adacore.com>
10044
10045 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10046 a box need not correspond to any component.
10047
10048 2007-09-12 Robert Dewar <dewar@adacore.com>
10049
10050 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10051 the tasking version of the Ada run time when foreign threads are
10052 present and there are no explicit Ada tasks or tasking constructs.
10053
10054 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10055
10056 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
10057
10058 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10059 the usage of switch -y.
10060
10061 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10062 when switch -y is present.
10063
10064 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10065 leap seconds in Ada.Calendar and its children.
10066
10067 2007-09-12 Jose Ruiz <ruiz@adacore.com>
10068
10069 * a-extiti.ads (Timer): The discriminant is a "not null access
10070 constant" in the Reference Manual.
10071 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10072
10073 2007-09-12 Robert Dewar <dewar@adacore.com>
10074
10075 * a-swuwha.adb: Remove junk RM header
10076
10077 2007-09-12 Vincent Celier <celier@adacore.com>
10078
10079 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10080 indicator
10081
10082 * g-bytswa.ads: Minor reformatting
10083
10084 2007-09-12 Thomas Quinot <quinot@adacore.com>
10085
10086 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10087 Add new constant Thread_Blocking_IO, always True by default, set False
10088 on a per-runtime basis.
10089 (Need_Netdb_Buffer): New constant.
10090
10091 2007-09-12 Arnaud Charlet <charlet@adacore.com>
10092
10093 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10094 Added renames for corresponding functions in System.Partition_Interface.
10095
10096 2007-09-12 Doug Rupp <rupp@adacore.com>
10097
10098 * Makefile.in: Remove VMS specific System.CRTL packages which are no
10099 longer needed.
10100
10101 * s-crtl-vms64.ads: Removed.
10102
10103 2007-09-12 Olivier Hainque <hainque@adacore.com>
10104
10105 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10106 with discriminant constraints, generalize the code for BIT_FIELDs
10107 to PACKED fields of constant size and propagate DECL_PACKED.
10108
10109 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
10110
10111 * decl.c (array_type_has_nonaliased_component): New predicate.
10112 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10113 set the TYPE_NONALIASED_COMPONENT flag on the type.
10114 <E_Array_Subtype>: Likewise.
10115 * gigi.h (type_for_nonaliased_component_p): Declare.
10116 * utils.c (type_for_nonaliased_component_p): New predicate.
10117 (create_field_decl): Invoke the above predicate to set the
10118 DECL_NONADDRESSABLE_P flag on the field.
10119
10120 2007-09-11 Javier Miranda <miranda@adacore.com>
10121
10122 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10123 in library level record type entities if we are generating statically
10124 allocated dispatch tables.
10125
10126 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10127 importing/exporting the _tag declaration by new code
10128 importing/exporting the dispatch table wrapper. This change allows us
10129 to statically allocate of the TSD.
10130 (Make_DT.Export_DT): New procedure.
10131 (Build_Static_DT): New function.
10132 (Has_DT): New function.
10133
10134 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10135 True_Constant and Current_Value. Required to statically
10136 allocate the dispatch tables.
10137 (Check_Allocator): Make function iterative instead of recursive.
10138 Also return inner allocator node, when present, so that we do not have
10139 to look for that node again in the caller.
10140
10141 2007-09-11 Jan Hubicka <jh@suse.cz>
10142
10143 * misc.c (gnat_expand_body): Kill.
10144 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10145
10146 2007-09-10 Robert Dewar <dewar@adacore.com>
10147
10148 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10149 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10150 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10151 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10152 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10153 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10154 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10155 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10156 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10157 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10158 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10159 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10160 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10161 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10162 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10163 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10164 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10165 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10166 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10167 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10168 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10169 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10170 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10171 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10172 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10173 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10174 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10175 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10176 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10177 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10178 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10179 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10180 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10181 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10182 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10183 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10184 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10185 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10186 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10187 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10188 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10189 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10190 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10191 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10192 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10193 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10194 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10195 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10196 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10197 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10198 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10199 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10200 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10201 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10202 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10203 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10204 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10205 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10206 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10207 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10208 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10209 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10210 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10211 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10212 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10213 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10214 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10215 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10216 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10217 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10218 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10219 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10220 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10221 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10222 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10223 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10224 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10225 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10226 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10227 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10228 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10229 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10230 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10231
10232 2007-09-10 Emmanuel Briot <briot@adacore.com>
10233
10234 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10235 classes ("[]").
10236
10237 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10238
10239 * adaint.c (__gnat_translate_vms): new function.
10240
10241 2007-09-10 Gary Dismukes <dismukes@adacore.com>
10242 Thomas Quinot <quinot@adacore.com>
10243
10244 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10245 create an abstract subprogram in the case of 'Input. For 'Output we now
10246 create a real spec/body when the type is abstract, since it can
10247 potentially be called.
10248 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10249 body for 'Output when the type is abstract (only the creation of the
10250 body for 'Input is excluded when the type is abstract).
10251 (Stream_Operation_OK): Add an additional condition in the return
10252 statement, so that False will be returned for TTS_Stream_Input if the
10253 associated tagged type is an abstract extension. Add comments for
10254 return statement.
10255 (Expand_N_Object_Declaration): For the case of a shared passive
10256 variable, insert init proc call only after the shared variable
10257 procedures have been processed, because the IP call needs to undergo
10258 shared passive variable reference expansion, which requires these
10259 procedures to be available (and elaborated).
10260
10261 2007-09-10 Vincent Celier <celier@adacore.com>
10262
10263 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10264 parameter Runtime_Project.
10265
10266 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10267
10268 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10269 given a box association, the type of the component is discriminated,
10270 and the value of the discriminant is the discriminant of the enclosing
10271 type, retrieve its value from the aggregate itself, where it must have
10272 been supplied.
10273
10274 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10275 to remove other spurious ambiguities on arithmetic operations involving
10276 literals and addresses, on systems where Address is a visible integer
10277 type, when the operator is called in functional notation.
10278 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10279 is legal when the types match, even if the operation is currently
10280 hidden.
10281
10282 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10283
10284 * sem_ch12.adb (Build_Local_Package): A formal package with no
10285 associations is legal if all formals have defaults. It is not
10286 equivalent to a formal declared with a box.
10287
10288 2007-09-10 Sergey Rybin <rybin@adacore.com>
10289
10290 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10291
10292 2007-09-10 Sergey Rybin <rybin@adacore.com>
10293
10294 * gnat_ugn.texi: Add description of the new '-lratio' option
10295 Update 7.3.1 section about availability of the feature.
10296
10297 2007-09-10 Thomas Quinot <quinot@adacore.com>
10298
10299 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10300 inserted node.
10301
10302 2007-09-10 Olivier Hainque <hainque@adacore.com>
10303
10304 * Makefile.in: (mips-irix section): Activate build of libgmem.
10305
10306 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10307
10308 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10309 x87 registers.
10310
10311 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10312
10313 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10314 a debug renaming declaration specially.
10315
10316 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10317
10318 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10319 which a constant renaming is treated as a normal object declaration.
10320 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10321 the N_Indexed_Component case.
10322 <N_Indexed_Component>: Fall through to above case.
10323 <N_Object_Renaming_Declaration>: Return true for all composite types.
10324
10325 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10326
10327 * decl.c (make_packable_type): If the new type has been given BLKmode,
10328 try again to get an integral mode for it.
10329
10330 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10331
10332 Re-apply accidentally reverted change:
10333
10334 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10335
10336 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10337 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10338 and _Unwind_SWord with _sleb128_t.
10339
10340 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10341
10342 * trans.c (convert_with_check): Update call to real_2expN.
10343
10344 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10345
10346 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10347 * utils.c (end_subprog_body): Likewise.
10348
10349 2007-09-03 Nick Clifton <nickc@redhat.com>
10350
10351 * Make-lang.in: Change copyright header to refer to version 3 of
10352 the GNU General Public License and to point readers at the
10353 COPYING3 file and the FSF's license web page.
10354 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10355 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10356 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10357 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10358 Likewise.
10359
10360 2007-08-31 Vincent Celier <celier@adacore.com>
10361
10362 PR ada/4720
10363
10364 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10365 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10366 (Check_Version_And_Help): New procedure in package Switch to process
10367 switches --version and --help.
10368 Use Check_Version_And_Help in GNAT tools
10369
10370 * make.adb: Ditto.
10371 (Compile_Sources): Make sure that sources that are "excluded" are not
10372 compiled.
10373 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10374 project file is used.
10375 (Version_Switch): Remove, moved to Switch
10376 (Help_Switch): Remove, moved to Switch
10377 (Display_Version): Remove, moved to Switch
10378
10379 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10380 package Switch to process switches --version and --help.
10381 (Display_Version): New procedure
10382
10383 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10384
10385 2007-08-31 Javier Miranda <miranda@adacore.com>
10386
10387 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10388 internal tags.
10389
10390 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10391
10392 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10393 (Mark_Non_Null): If the node for which we just generated an access check
10394 is a reference to an *in* parameter and the reference appears in the
10395 declarative part of a subprogram body, mark the node as known non null.
10396
10397 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10398
10399 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10400 structure of E_Exception to reflect the new flag.
10401 (Is_Raised, Set_Is_Raised): New inlined routines.
10402 Update the usage of available flag to reflect the addition of Is_Raised.
10403 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10404 (Write_Entity_Flags): Write the status of flag Is_Raised.
10405 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10406 spurious ambiguities when integer literals appear in the context of an
10407 address type that is a visible integer type.
10408
10409 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10410 exceptions never being raised.
10411 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10412 explicitly raised.
10413
10414 2007-08-31 Javier Miranda <miranda@adacore.com>
10415
10416 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10417 statement when compiling under restriction No_Exceptions_Proparation.
10418
10419 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10420
10421 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10422 initialization aggregate for the type, generate itype references for
10423 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10424
10425 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10426
10427 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10428 library-level package renaming, pass the declaration associated with
10429 the renaming's special debug variable to Qualify_Entity_Names to ensure
10430 that its encoded name is properly qualified.
10431
10432 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10433 occurring in the list of entities to qualify, and do not attempt to
10434 traverse an entity list in that case. Variables associated with
10435 ` library-level package renamings can now occur in the table.
10436
10437 * exp_dbug.ads: Revise documentation of the encoding for renaming
10438 declarations.
10439
10440 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10441
10442 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10443 access type points to an unconstrained array.
10444
10445 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10446
10447 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10448 conversion.
10449
10450 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10451 simple redundant qualifications. The check is performed whenever the
10452 expression is a non-overloaded identifier.
10453 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10454 to include loop parameters.
10455 (Valid_Conversion): Avoid generation of spurious error message.
10456
10457 2007-08-31 Bob Duff <duff@adacore.com>
10458
10459 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10460 concatenations of string literals into a single literal, in order to
10461 avoid very deep recursion in the front end, which was causing stack
10462 overflow.
10463
10464 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10465 string, and the right operand is a string literal (the case of "" &
10466 "..."), optimize by avoiding copying the right operand -- just use the
10467 value of the right operand directly.
10468
10469 * stringt.adb (Store_String_Chars): Optimize by growing the
10470 String_Chars table all at once, rather than appending characters one by
10471 one.
10472 (Write_String_Table_Entry): If the string to be printed is very long,
10473 just print the first few characters, followed by the length. Otherwise,
10474 doing "pn(n)" in the debugger can take an extremely long time.
10475
10476 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10477 Store_String_Char with Store_String_Chars.
10478
10479 2007-08-31 Vincent Celier <celier@adacore.com>
10480
10481 * prj-attr.adb: Add new attribute Excluded_Source_Files
10482
10483 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10484 Locally_Removed_Files.
10485
10486 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10487
10488 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10489
10490 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10491 clauses of subunits, ignore limited_with_clauses that are illegal and
10492 have not been fully analyzed.
10493
10494 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10495
10496 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10497 flag, for effiency. It is called when analyzing arithmetic operators
10498 and also for actuals in calls that are universal_integers. The flag is
10499 set for the predefined type address, and for any type or subtype
10500 derived from it.
10501
10502 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10503 Universal_Integer, when the formal is a descendent of address and the
10504 call appears in user code.
10505 (Analyze_Selected_Component): if the prefix is a private extension, the
10506 tag component is visible.
10507
10508 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10509 entity flag.
10510
10511 2007-08-31 Robert Dewar <dewar@adacore.com>
10512
10513 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10514 sensitive file name systems to avoid unexpected mismatch in Vista.
10515
10516 2007-08-31 Vincent Celier <celier@adacore.com>
10517
10518 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10519
10520 2007-08-31 Vincent Celier <celier@adacore.com>
10521
10522 * symbols-vms.adb (Initialize): Read symbol files with continuation
10523 lines
10524 (Finalize): If symbol is long, split the line
10525
10526 2007-08-31 Vincent Celier <celier@adacore.com>
10527
10528 * fmap.ads: Minor comment updates
10529
10530 2007-08-31 GNAT Script <nobody@adacore.com>
10531
10532 * Make-lang.in: Makefile automatically updated
10533
10534 2007-08-31 Bob Duff <duff@adacore.com>
10535
10536 * sinfo.ads: Minor comment fix.
10537
10538 2007-08-31 Thomas Quinot <quinot@adacore.com>
10539
10540 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10541 with implementation.
10542 Documentation cleanup only.
10543
10544 2007-08-31 Sergey Rybin <rybin@adacore.com>
10545
10546 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10547 gnatpp '--separate-stmt-name' option.
10548 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10549 option.
10550
10551 * gnat_ugn.texi: Add description for the new gnatpp
10552 '--separate-stmt-name' and '--use-on-new-line' options.
10553
10554 2007-08-31 Ben Elliston <bje@au.ibm.com>
10555
10556 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10557 when compiling for powerpc64-*-linux.
10558 * system-linux-ppc64.ads: New file.
10559
10560 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10561
10562 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10563 NetBSD.
10564
10565 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10566
10567 * misc.c (gnat_type_max_size): Constify.
10568
10569 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10570
10571 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10572 associated with Standard_Debug_Renaming_Type, to be used as the type of
10573 the special variables whose names provide debugger encodings for
10574 renaming declarations.
10575
10576 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10577 (Set_Debug_Renaming_Link): Change to set Node25.
10578 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10579 (Write_Field25_Name): Add case for E_Variable to output
10580 "Debug_Renaming_Link".
10581 (Write_Field23_Name): Correct the output string for "Limited_View".
10582
10583 * exp_dbug.adb: Add with and use of Tbuild.
10584 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10585 and literal with creation of a variable of type
10586 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10587 and the entity of the renaming declaration.
10588 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10589 part of the name of a variable that has a Debug_Renaming_Link.
10590
10591 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10592 special type to be associated with variables that provide debugger
10593 encodings for renaming declarations.
10594
10595 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10596 Ed Schonberg <schonberg@adacore.com>
10597 Javier Miranda <miranda@adacore.com>
10598
10599 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10600 ancestor part given by an aggregate to test for an unchecked conversion,
10601 since this can occur in some cases when the ancestor part is a function
10602 call, and we don't want to fall into the recursive call to this
10603 procedure in that case.
10604
10605 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10606 stream attributes on limited types to account for user-specified
10607 attributes as well as whether Input (resp. Output) becomes available
10608 due to Read (resp. Write) being available for the type. Change Boolean
10609 variable to the more accurate name
10610 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10611 double-"not" predicate at beginning of return statement to more
10612 understandable form.
10613
10614 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10615 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10616 in a block statement and use that as the first statement of the
10617 expanded return rather than incorrectly using the handled sequence as
10618 the first statement.
10619
10620 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10621 operation, generate an explicit freeze node for it rather than
10622 generating extra formals, to ensure that gigi has the proper order of
10623 elaboration for anonymous subtypes in the signature of the subprograms.
10624 (Build_In_Place_Formal): Move assertion to beginning of loop.
10625 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10626 applied to a function call (occurs for some cases of 'Input).
10627 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10628 applied to a function call (occurs for some cases of 'Input).
10629
10630 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10631 2005, generate an extended return statement enclosing the result object
10632 and 'Read call.
10633
10634 * freeze.adb (Freeze_Record_Type): Extend the current management of
10635 components that are access type with an allocator as default value: add
10636 missing support to the use of qualified expressions of the
10637 allocator (which also cause freezing of the designated type!)
10638 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10639 dispatching operation, since extra formals may be needed by calls to
10640 build-in-place functions (such as stream 'Input).
10641
10642 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10643 formals for 'Constrained and accessibility level in the case of a
10644 predefined dispatching operation.
10645
10646 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10647 point, no need to find the parent node.
10648
10649 2007-08-16 Javier Miranda <miranda@adacore.com>
10650
10651 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10652 and entry barriers.
10653
10654 2007-08-16 Javier Miranda <miranda@adacore.com>
10655
10656 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10657 is not really required and can introduce regression with the debugger.
10658 The original problem is fixed with the patch written for checks.adb.
10659
10660 2007-08-16 Thomas Quinot <quinot@adacore.com>
10661
10662 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10663 Range_Check on Allocated_Table.
10664
10665 2007-08-16 Vincent Celier <celier@adacore.com>
10666
10667 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10668 Including_Non_Switch set to False.
10669 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10670 Including_Non_Switch set to False.
10671
10672 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10673 parameter Including_Non_Switch, defaulted to True. When
10674 Including_Non_Switch is False, options that are not switches and
10675 appear as relative path are not converted to absolute paths.
10676
10677 2007-08-16 Nicolas Roche <roche@adacore.com>
10678
10679 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10680 makefiles
10681
10682 * Make-lang.in: Update dependencies
10683
10684 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10685
10686 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10687 currently inspected is a selected component, retrieve the entity of
10688 its selector.
10689 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10690 from the immediate ancestor of Main_Unit_Entity.
10691 (Install_Limited_Withed_Unit): Do not install the limited view of
10692 package P if P is reachable through an ancestor chain from package C
10693 and C also has a with clause for P in its body.
10694 (Has_Limited_With_Clause): New routine.
10695 (Has_With_Clause): New routine.
10696
10697 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10698
10699 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10700 generic for an enclosing instance is a global reference, even though
10701 its scope is the enclosing instance.
10702
10703 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10704 Javier Miranda <miranda@adacore.com>
10705
10706 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10707 initialize a limited object.
10708 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10709 13/2 and 14/2.
10710 Make sure Has_Complex_Representation is inherited by derived type.
10711
10712 2007-08-16 Robert Dewar <dewar@adacore.com>
10713
10714 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10715 exception case
10716
10717 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10718
10719 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10720 implements an operation inherited from a progenitor interface, verify
10721 that they are subtype-conformant.
10722
10723 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10724 Bob Duff <duff@adacore.com>
10725 Nicolas Setton <setton@adacore.com>
10726
10727 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10728 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10729 the statement which is being resolved comes from a predefined library
10730 unit, all non-predefined library interpretations are skipped.
10731 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10732 but the "&" is user defined, give an error, because the folding would
10733 be wrong.
10734
10735 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10736 the parser has folded a long sequence of concatenations of string
10737 literals.
10738
10739 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10740 and "JMP_BUF" variables as artificial.
10741 (N_String_Literal): Do not use alloca for very long string literals. Use
10742 xmalloc/free instead. Otherwise the stack might overflow.
10743
10744 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10745 compiler.
10746
10747 2007-08-16 Vincent Celier <celier@adacore.com>
10748
10749 * vms_conv.adb (Process_Argument): Ensure that project related options
10750 are not put in the -cargs section when using GNAT COMPILE.
10751
10752 2007-08-16 Robert Dewar <dewar@adacore.com>
10753
10754 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10755
10756 2007-08-16 Thomas Quinot <quinot@adacore.com>
10757
10758 * a-tags.adb: Minor reformatting.
10759
10760 2007-08-16 Bob Duff <duff@adacore.com>
10761
10762 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10763
10764 2007-08-14 Thomas Quinot <quinot@adacore.com>
10765
10766 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10767 s-osinte-interix.ads, system-interix.ads: Removed.
10768
10769 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10770
10771 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10772 calls to Check_Within_Time_Bounds.
10773 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10774 (Difference): Account for possible rounding of the resulting difference
10775
10776 2007-08-14 Robert Dewar <dewar@adacore.com>
10777
10778 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10779 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10780 s-osinte-solaris.adb, s-osinte-solaris.ads,
10781 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10782
10783 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10784 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10785
10786 2007-08-14 Robert Dewar <dewar@adacore.com>
10787 Ed Schonberg <schonberg@adacore.com>
10788
10789 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10790 Suppress unmodified in-out parameter warning in some cases
10791 This patch is a also fairly significant change to the way suppressible
10792 checks are handled.
10793
10794 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10795 needed for access to concurrent record types generated by the expander.
10796 (Generate_Range_Check): When generating a temporary to capture the
10797 value of a conversion that requires a range check, set the type of the
10798 temporary before rewriting the node, so that the type is always
10799 properly placed for back-end use.
10800 (Apply_Float_Conversion_Check): Handle case where the conversion is
10801 truncating.
10802 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10803 for a protected type in order to examine its discriminants.
10804
10805 2007-08-14 Robert Dewar <dewar@adacore.com>
10806 Gary Dismukes <dismukes@adacore.com>
10807 Ed Schonberg <schonberg@adacore.com>
10808 Thomas Quinot <quinot@adacore.com>
10809
10810 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10811 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10812 tests optimized out.
10813
10814 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10815 (Get_Allocator_Final_List): For the case of an anonymous access type
10816 that has a specified Associated_Final_Chain, do not go up to the
10817 enclosing scope.
10818 (Expand_N_Type_Conversion): Test for the case of renamings of access
10819 parameters when deciding whether to apply a run-time accessibility
10820 check.
10821 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10822 aggregate code before allocator, and ahead of declaration for
10823 temporary, to prevent access before elaboration when the allocator is
10824 an actual for an access parameter.
10825 (Expand_N_Type_Conversion): On an access type conversion involving an
10826 access parameter, do not apply an accessibility check when the
10827 operand's original node was an attribute other than 'Access. We now
10828 create access conversions for the expansion of 'Unchecked_Access and
10829 'Unrestricted_Access in certain cases and clearly accessibility should
10830 not be checked for those.
10831
10832 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10833 includes a type conversion of a packed component that has been expanded,
10834 recover the original expression for the object, and use this expression
10835 in the post-call assignment statement, so that the assignment is made
10836 to the object and not to a back-end temporary.
10837 (Freeze_Subprogram): In case of primitives of tagged types not defined
10838 at the library level force generation of code to register the primitive
10839 in the dispatch table. In addition some code reorganization has been
10840 done to leave the implementation clear.
10841 (Expand_Call): When expanding an inherited implicit conversion,
10842 preserve the type of the inherited function after the intrinsic
10843 operation has been expanded.
10844
10845 * exp_ch2.ads, exp_ch2.adb
10846 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10847 of an entry formal appearing in an assignment statement does not assign
10848 to the formal.
10849 (Expand_Current_Value): Instead of calling a routine to determine
10850 whether the prefix of an attribute reference should be optimized or
10851 not, prevent the optimization of such prefixes all together.
10852
10853 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10854 component whose prefix is known to be of an access type is an implicit
10855 dereference and does not assign to the prefix.
10856
10857 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10858 Robert Dewar <dewar@adacore.com>
10859
10860 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10861 itype is visited, make an entry into table to link associated node and
10862 new itype.
10863 Add comments and correct harmless error in Build_NCT_Hash_Tables
10864 (Array_Aggr_Subtype): Associate each itype created for an index type to
10865 the corresponding range construct, and not to the aggregate itself. to
10866 maintain a one-to-one correspondence between itype and its associated
10867 node, to prevent errors when complex expression is copied.
10868 Fix mishandling of multiple levels of parens
10869
10870 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10871 treatment of limited views uniform for all visible declarations in a
10872 limited_withed package.
10873 (New_Copy_Tree): If hash table is being used and itype is visited,
10874 make an entry into table to link associated node and new itype.
10875 (Resolve_Record_Aggregate): Do not add an others box association for a
10876 discriminated record component that has only discriminants, when there
10877 is a box association for the component itself.
10878
10879 * par-ch4.adb: Fix mishandling of multiple levels of parens
10880
10881 2007-08-14 Robert Dewar <dewar@adacore.com>
10882
10883 * comperr.adb: Fix problem with suppressing warning messages from gigi
10884
10885 * erroutc.ads, erroutc.adb, errout.ads,
10886 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10887 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10888 possible trailing spaces.
10889 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10890 Fix problem with suppressing warning messages from back end
10891 Improve handling of deleted warnings
10892
10893 * gnat1drv.adb:
10894 Fix problem with suppressing warning messages from back end
10895 Handle setting of Static_Dispatch_Tables flag.
10896
10897 * prepcomp.adb:
10898 Fix problem with suppressing warning messages from back end
10899
10900 * exp_intr.adb: Improve handling of deleted warnings
10901
10902 2007-08-14 Robert Dewar <dewar@adacore.com>
10903
10904 * debug.adb: Improve -gnatdI to cover all cases of serialization
10905 Add documentation of dZ, d.t
10906
10907 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10908 serialization.
10909 (Sprint_Node_Actual): Generate new output associated with implicit
10910 importation and implicit exportation of object declarations.
10911
10912 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10913 Robert Dewar <dewar@adacore.com>
10914 Javier Miranda <miranda@adacore.com>
10915 Gary Dismukes <dismukes@adacore.com>
10916
10917 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10918 to make treatment of limited views uniform for all visible declarations
10919 in a limited_withed package.
10920 Improve warnings for in out parameters
10921 (Set_Related_Interaface/Related_Interface): Allow the use of this
10922 attribute with constants.
10923 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10924 Warn on duplicate pragma Preelaborable_Initialialization
10925
10926 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10927 generation of a freezing node to ensure proper management of null
10928 excluding access types in the backend.
10929 (Create_Extra_Formals): Test base type of the formal when checking for
10930 the need to add an extra accessibility-level formal. Pass the entity E
10931 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10932 originally being done in a couple of cases), to ensure that the
10933 Extra_Formals list gets set on the entity E when the first entity is
10934 added.
10935 (Conforming_Types): Add missing calls to Base_Type to the code that
10936 handles anonymous access types. This is required to handle the
10937 general case because Process_Formals builds internal subtype entities
10938 to handle null-excluding access types.
10939 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10940 functions that need it, even when not marked Requires_Overriding.
10941 Improve warnings for in out parameters
10942 (Analyze_Function_Return): Warn for disallowed null return
10943 Warn on return from procedure with unset out parameter
10944 Ensure consistent use of # in error messages
10945 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10946 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10947 the implicit conversion of the expression done for anonymous access
10948 types. This is required to generate the code of the null excluding
10949 check (if required).
10950
10951 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10952 A formal parameter is never publicly referenceable outside of its body.
10953 (Check_References): For an unreferenced formal parameter in an accept
10954 statement, use the same warning circuitry as for subprogram formal
10955 parameters.
10956 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10957 Output_Unreferenced_Messages, containing the part of that routine that
10958 is now reused for entry formals as described above.
10959 (Goto_Spec_Entity): New function
10960 (Check_References): Do not give IN OUT warning for dispatching operation
10961 Improve warnings for in out parameters
10962 (Test_Ref): Check that the entity is not undefinite before calling
10963 Scope_Within, in order to avoid infinite loops.
10964 Warn on return from procedure with unset out parameter
10965 Improved warnings for unused variables
10966
10967 2007-08-14 Robert Dewar <dewar@adacore.com>
10968 Javier Miranda <miranda@adacore.com>
10969 Gary Dismukes <dismukes@adacore.com>
10970
10971 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10972 (Expand_N_Attribute_Reference): Further unify the handling of the
10973 three forms of access attributes, using common code now for all three
10974 cases. Add a test for the case of applying an access attribute to
10975 an explicit dereference when the context is an access-to-interface
10976 type. In that case we need to apply the conversion to the prefix
10977 of the explicit dereference rather than the prefix of the attribute.
10978 (Attribute_Version, UET_Address): Set entity as internal to ensure
10979 proper dg output of implicit importation.
10980 (Expand_Access_To_Type): Removed.
10981 (Expand_N_Attribute_Reference): Merge the code from the three cases
10982 of access attributes, since the processing is largely identical for
10983 these cases. The substantive fix here is to process the case of a
10984 type name prefix (current instance case) before handling the case
10985 of interface prefixes.
10986
10987 2007-08-14 Thomas Quinot <quinot@adacore.com>
10988 Ed Schonberg <schonberg@adacore.com>
10989 Javier Miranda <miranda@adacore.com>
10990 Robert Dewar <dewar@adacore.com>
10991
10992 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10993 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10994 type that is an anonymous access to controlled object, establish
10995 an associated finalization chain to avoid corrupting the global
10996 finalization list when a dynamically allocated object designated
10997 by such a component is deallocated.
10998 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10999 functions that need it, even when not marked Requires_Overriding.
11000 (Initialize_Tag): Replace call to has_discriminants by call to
11001 Is_Variable_Size_Record in the circuitry that handles the
11002 initialization of secondary tags.
11003 (Is_Variable_Size_Record): New implementation.
11004 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
11005 Suppress_Initialization pragma for a derived type.
11006 (Is_Variable_Size_Record): New subprogram.
11007 (Build_Offset_To_Top_Functions): New implementation that simplifies the
11008 initial version of this routine and also fixes problems causing
11009 incomplete initialization of the table of interfaces.
11010 (Build_Init_Procedure): Improve the generation of code to initialize the
11011 the tag components of secondary dispatch tables.
11012 (Init_Secondary_Tags): New implementation that simplifies the previous
11013 version of this routine.
11014 (Make_DT): Add parameter to indicate when type has been frozen by an
11015 object declaration, for diagnostic purposes.
11016 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
11017 diagnose attemps to freeze a subprogram when some untagged type of its
11018 profile is a private type whose full view has not been analyzed yet.
11019 (Freeze_Array_Type): Generate init proc for packed array if either
11020 Initialize or Normalize_Scalars is set.
11021 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
11022 constructing the new profile, copy the null_exclusion indicator for each
11023 parameter, to ensure full conformance of the new body with the spec.
11024
11025 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
11026 Create wrappers for constructor functions that need it, even when not
11027 marked Requires_Overriding.
11028 (Covers): Handle properly designated types of anonymous access types,
11029 whose non-limited views are themselves incomplete types.
11030 (Add_Entry): Use an entity to store the abstract operation which hides
11031 an interpretation.
11032 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
11033 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
11034 initialization aggregate.
11035 (Function_Interp_May_Be_Hidden): Rename to
11036 Function_Interp_Has_Abstract_Op.
11037 (Has_Compatible_Type): Remove machinery that skips interpretations if
11038 they are labeled as potentially hidden by an abstract operator.
11039 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11040 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11041 (Write_Overloads): Output the abstract operator if present.
11042 (Add_Entry): Before inserting a new entry into the interpretation table
11043 for a node, determine whether the entry will be disabled by an abstract
11044 operator.
11045 (Binary_Op_Interp_May_Be_Hidden): New routine.
11046 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11047 aggregate.
11048 (Function_Interp_May_Be_Hidden): New routine.
11049 (Has_Compatible_Type): Do not consider interpretations hidden by
11050 abstract operators when trying to determine whether two types are
11051 compatible.
11052 (Has_Hidden_Interp): New routine.
11053 (Set_May_Be_Hidden_Interp): New routine.
11054 (Write_Overloads): Write the status of flag May_Be_Hidden.
11055
11056 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11057 Javier Miranda <miranda@adacore.com>
11058
11059 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11060 types declared in the declarative part of a nested package body or in
11061 the proper body of a stub.
11062 (Set_All_DT_Position): Add missing check to avoid wrong assignation
11063 of the same dispatch table slot to renamed primitives.
11064 (Make_Select_Specific_Data_Table): Handle private types.
11065 (Tagged_Kind): Handle private types.
11066 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11067 output of implicit importation and exportation.
11068 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11069 first formal of the thunk is always associated with the controlling
11070 type. In addition perform the following code cleanup: remove formal
11071 Thunk_Alias which is no longer required, cleanup evaluation of the
11072 the controlling type, and update the documentation.
11073 Replace occurrence of Default_Prim_Op_Count by
11074 Max_Predef_Prims. Addition of compile-time check to verify
11075 that the value of Max_Predef_Prims is correct.
11076 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11077 (Make_DT): Add parameter to indicate when type has been frozen by an
11078 object declaration, for diagnostic purposes.
11079 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11080 construction of statically allocated dispatch tables.
11081 (Make_DT): In case of library-level tagged types export the declaration
11082 of the primary tag. Remove generation of tags (now done by Make_Tags).
11083 Additional modifications to handle non-static generation of dispatch
11084 tables. Take care of building tables for asynchronous interface types
11085 (Make_Tags): New subprogram that generates the entities associated with
11086 the primary and secondary tags of Typ and fills the contents of Access_
11087 Disp_Table. In case of library-level tagged types imports the forward
11088 declaration of the primary tag that will be declared later by Make_DT.
11089 (Expand_Interface_Conversion): In case of access types to interfaces
11090 replace an itype declaration by an explicit type declaration to avoid
11091 problems associated with the scope of such itype in transient blocks.
11092
11093 2007-08-14 Robert Dewar <dewar@adacore.com>
11094 Ed Schonberg <schonberg@adacore.com>
11095 Javier Miranda <miranda@adacore.com>
11096
11097 * exp_util.ads, exp_util.adb:
11098 This patch replaces a number of occurrences of explicit tests for N_Null
11099 with calls to Known_Null. This improves tracking of null values, since
11100 Known_Null also catches null constants, and variables currently known to
11101 be null, so we get better tracking.
11102 (Ensure_Defined): create an itype reference only in the scope of the
11103 itype.
11104 (Side_Effect_Free): A selected component of an access type that
11105 denotes a component with a rep clause must be treated as not
11106 side-effect free, because if it is part of a linked structure its
11107 value may be affected by a renaming.
11108 (Expand_Subtype_From_Expr): For limited objects initialized with build
11109 in place function calls, do nothing; otherwise we prematurely introduce
11110 an N_Reference node in the expression initializing the object, which
11111 breaks the circuitry that detects and adds the additional arguments to
11112 the called function. Bug found working in the new patch for statically
11113 allocated dispatch tables.
11114 (Is_Library_Level_Tagged_Type): New subprogram.
11115 (Remove_Side_Effects): If the expression of an elementary type is an
11116 operator treat as a function call.
11117 (Make_Literal_Range): If the index type of the array is not integer, use
11118 attributes properly to compute the constraint on the resulting aggregate
11119 which is a string.
11120
11121 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11122 class-wide type whose base type is an incomplete private type, leave
11123 class-wide type unfrozen so that freeze nodes can be generated
11124 properly at a later point.
11125 (Freeze_Entity, array case): Handle case of pragma Pack and component
11126 size attributre clause for same array.
11127
11128 2007-08-14 Vincent Celier <celier@adacore.com>
11129
11130 * prj.ads, prj.adb: Update Project Manager to new attribute names for
11131 gprbuild.
11132 Allow all valid declarations in configuration project files
11133 (Reset): Initialize all tables and hash tables in the project tree data
11134 Major update of the Project Manager and of the project aware tools,
11135 including gprmake, so that the same sources in the GNAT repository
11136 can be used by gprbuild.
11137 (Slash_Id): Change type to be Path_Name_Type
11138 (Slash): Return a Path_Name_Type instead of a File_Name_Type
11139
11140 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11141 gprbuild.
11142 Update Project Manager to new attribute names for ghprbuild
11143 Allow all valid declarations in configuration project files
11144 Major update of the Project Manager and of the project aware tools,
11145 including gprmake, so that the same sources in the GNAT repository
11146 can be used by gprbuild.
11147
11148 * prj-com.ads:
11149 Major update of the Project Manager and of the project aware tools,
11150 including gprmake, so that the same sources in the GNAT repository
11151 can be used by gprbuild.
11152
11153 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11154 insensitive flag for attributes with optional index.
11155 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11156 array attribute, put the index in lower case.
11157 Update Project Manager to new attribute names for ghprbuild
11158 Allow all valid declarations in configuration project files
11159 Major update of the Project Manager and of the project aware tools,
11160 including gprmake, so that the same sources in the GNAT repository
11161 can be used by gprbuild.
11162
11163 * prj-env.ads, prj-env.adb:
11164 Major update of the Project Manager and of the project aware tools,
11165 including gprmake, so that the same sources in the GNAT repository
11166 can be used by gprbuild.
11167 (Get_Reference): Change type of parameter Path to Path_Name_Type
11168
11169 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11170 removing '-' from the path to start with the first character of the
11171 next directory.
11172 Major update of the Project Manager and of the project aware tools,
11173 including gprmake, so that the same sources in the GNAT repository
11174 can be used by gprbuild.
11175 Major update of the Project Manager and of the project aware tools,
11176 including gprmake, so that the same sources in the GNAT repository
11177 can be used by gprbuild.
11178
11179 * prj-nmsc.ads, prj-nmsc.adb:
11180 Update Project Manager to new attribute names for ghprbuild
11181 Allow all valid declarations in configuration project files
11182 (Search_Directories): Detect subunits that are specified with an
11183 attribute Body in package Naming. Do not replace a source/unit in the
11184 same project when the order of the source dirs are known. Detect
11185 duplicate sources/units in the same project when the order of the
11186 source dirs are not known.
11187 (Check_Ada_Name): Allow all identifiers that are not reserved words
11188 in Ada 95.
11189 Major update of the Project Manager and of the project aware tools,
11190 including gprmake, so that the same sources in the GNAT repository
11191 can be used by gprbuild.
11192 (Look_For_Sources): If the list of sources is empty, set the object
11193 directory of non extending project to nil.
11194 Change type of path name variables to be Path_Name_Type
11195 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11196 otherwise creating missing directories will fail.
11197
11198 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11199 prj-part.ads, prj-part.adb:
11200 Major update of the Project Manager and of the project aware tools,
11201 including gprmake, so that the same sources in the GNAT repository
11202 can be used by gprbuild.
11203
11204 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11205 insensitive flag for attributes with optional index.
11206 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11207 array attribute, put the index in lower case.
11208 (Parse_Variable_Reference): Allow the current project name to be used in
11209 the prefix of an attribute reference.
11210
11211 * prj-util.ads, prj-util.adb
11212 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11213 defaulted to False. When True, always check against indexes in lower
11214 case.
11215
11216 * snames.ads, snames.h, snames.adb:
11217 Update Project Manager to new attribute names for gprbuild
11218 Allow all valid declarations in configuration project files
11219
11220 2007-08-14 Robert Dewar <dewar@adacore.com>
11221 Ed Schonberg <schonberg@adacore.com>
11222
11223 * opt.ads: Warning for non-local exception propagation now off by
11224 default
11225 New switch -gnatI to disable representation clauses
11226 Implement new pragma Implicit_Packing
11227
11228 * usage.adb:
11229 Warning for non-local exception propagation now off by default
11230 Add warning for unchecked conversion of pointers wi different
11231 conventions.
11232 New switch -gnatI to disable representation clauses
11233
11234 * usage.adb: new switch -gnatyS
11235
11236 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11237 note that aggregates of anonymous array types are not flagged.
11238 -gnatwc now includes membership tests optimized away
11239 -gnatw.x warnings are now off by default
11240 Added conditional compilation Appendix
11241 Add documentation of -gnatI
11242 Add documentation for new -gnatyS style check
11243 Update documentation about SAL and auto-init on Windows.
11244
11245 * gnat_rm.texi:
11246 Add documentation for pragma Check_Name and 'Enabled attribute
11247 Document that Eliminate on dispatching operation is ignored
11248 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11249 Document pragma Main
11250 Document pragma Implicit_Packing
11251
11252 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11253 different conventions
11254 New switch -gnatI to disable representation clauses
11255
11256 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11257 recognized, report the invalid characters including "-gnat" instead of
11258 just the first character in the switch.
11259 New switch -gnatI to disable representation clauses
11260 Set Warn_On_Object_Renames_Function true for -gnatg
11261
11262 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11263 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11264 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11265 to switch -aP (add directory to project search dir).
11266
11267 * par-prag.adb: Implement new pragma Implicit_Packing
11268
11269 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11270 type as having a non-standard representation, to force expansion on
11271 conversion to related types.
11272 (Analyze_Pragma): Warn on misspelled pragma
11273 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11274 Ensure consistent use of # in error messages
11275 Implement pragma Implicit_Packing
11276
11277 2007-08-14 Olivier Hainque <hainque@adacore.com>
11278 Eric Botcazou <ebotcazou@adacore.com>
11279
11280 * targtyps.c (get_target_maximum_default_alignment): New function.
11281 Maximum alignment
11282 that the compiler might choose by default for a type or object.
11283 (get_target_default_allocator_alignment): New function. Alignment known
11284 to be honored by the target default allocator.
11285 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11286 we might accept for any type or object on the target.
11287 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11288
11289 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11290 (get_target_default_allocator_alignment): Likewise.
11291 (get_target_maximum_allowed_alignment): Likewise.
11292
11293 PR ada/19037
11294 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11295 result of a function call, first try to use a stabilized reference for
11296 a constant renaming too.
11297 (validate_alignment): Use target_maximum_allowed_alignment instead of
11298 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11299 (gnat_to_gnu_entity): Use common nodes directly.
11300 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11301 alignment and size for the object.
11302 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11303 and N_Procedure_Call_Statement.
11304 (takes_address): Rename to lvalue_required_p, add third parameter
11305 'aliased' and adjust recursive calls.
11306 <N_Indexed_Component>: Update 'aliased' from the array type.
11307 <N_Selected_Component>: New case.
11308 <N_Object_Renaming_Declaration>: New Likewise.
11309 (Identifier_to_gnu): Adjust for above changes.
11310 (maybe_stabilize_reference) <CONST_DECL>: New case.
11311
11312 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11313 between type variants.
11314 (build_simple_component_ref): Likewise.
11315 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11316 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11317 aligning type circuitry for allocations from the default storage pool.
11318 (build_allocator): Likewise.
11319 (build_simple_component_ref): Manually fold the reference for a
11320 constructor if the record type contains a template.
11321
11322 * utils.c (value_zerop): Delete.
11323 (gnat_init_decl_processing): Emit debug info for common types.
11324 (rest_of_record_type_compilation): If a union contains a field
11325 with a non-constant qualifier, treat it as variable-sized.
11326 (finish_record_type): Give the stub TYPE_DECL a name.
11327 (rest_of_record_type_compilation): Likewise.
11328 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11329 types are equivalent array types.
11330 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11331 even if the type is not passed by reference.
11332 (static_ctors, static_dtors): Delete.
11333 (end_subprog_body): Do not record constructors and destructors.
11334 (build_global_cdtor): Delete.
11335 (gnat_write_global_declarations): Do not call build_global_cdtor.
11336
11337 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11338 -fRTS=rtp is specified.
11339 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11340 specified.
11341
11342 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11343 of the personality function with SJLJ exceptions.
11344
11345 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11346 the name of the personality function with SJLJ exceptions.
11347
11348 2007-08-14 Robert Dewar <dewar@adacore.com>
11349 Ed Schonberg <schonberg@adacore.com>
11350
11351 * par.ads, par.adb: Improve handling of extra right parens.
11352 (Par): Remove flag From_Limited_With_Clause.
11353
11354 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11355 Improve handling of extra right parens.
11356
11357 2007-08-14 Robert Dewar <dewar@adacore.com>
11358
11359 * par-tchk.adb (TF_Semicolon): Improve error recovery
11360
11361 2007-08-14 Robert Dewar <dewar@adacore.com>
11362 Ed Schonberg <schonberg@adacore.com>
11363
11364 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11365 enumeration type, mark all literals as referenced.
11366 (Eval_Attribute, case 'Image): If the argument is an enumeration
11367 literal and names are available, constant-fold but mark nevertheless as
11368 non-static.
11369 Clean up function names.
11370 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11371 comment.
11372 (Requires_Simple_Name_Prefix): Removed.
11373
11374 2007-08-14 Robert Dewar <dewar@adacore.com>
11375 Ed Schonberg <schonberg@adacore.com>
11376
11377 * sem_ch11.adb: Improved warnings for unused variables
11378
11379 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11380 is a synchronized interface, the derived type is limited.
11381 (Analyze_Object_Declaration): Mark the potential coextensions in the
11382 definition and expression of an object declaration node.
11383 (Build_Derived_Type): For the completion of a private type declaration
11384 with a derived type declaration, chain the parent type's representation
11385 items to the last representation item of the derived type (not the
11386 first one) if they are not present already.
11387 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11388 object declaration of forward references to tags.
11389 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11390 subprogram types can appear as access discriminants of synchronized
11391 types.
11392 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11393 given in prefixed form as a selected component.
11394 (Process_Discriminants): If not all discriminants have defaults, place
11395 error message on a default that is present.
11396 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11397 extend a synchronized tagged type.
11398 Improved warnings for unused variables
11399 (Is_Visible_Component): Fix a visibility hole on a component inherited
11400 by a private extension when parent is itself declared as a private
11401 extension, and the derivation is in a child unit.
11402 (Find_Hidden_Interface): Move spec from the package body.
11403
11404 2007-08-14 Robert Dewar <dewar@adacore.com>
11405 Ed Schonberg <schonberg@adacore.com>
11406
11407 * sem_ch5.adb: Improve warnings on redundant assignments
11408
11409 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11410 parameter
11411 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11412 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11413 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11414 is set to False. Improves handling of Known_[Not_]Null.
11415 (Wrong_Type): Special case address arithmetic attempt
11416 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11417 abstract interfaces just using the partial view of private types.
11418 (Has_Abstract_Interfaces): Add new formal to allow checking types
11419 covering interfaces using the partial view of private types.
11420 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11421 component still needs to be defined in this case, but is never
11422 initialized as VMs are using other dispatching mechanisms.
11423 (Abstract_Interface_List): For a protected type, use base type to get
11424 proper declaration.
11425 Improve warnings on redundant assignments
11426 (Is_Variable): Handle properly an implicit dereference of a prefixed
11427 function call.
11428 (Build_Actual_Subtype): If this is an actual subtype for an
11429 unconstrained formal parameter, use the sloc of the body for the new
11430 declaration, to prevent anomalises in the debugger.
11431
11432 2007-08-14 Robert Dewar <dewar@adacore.com>
11433
11434 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11435 dispatching operation
11436
11437 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11438 Gary Dismukes <dismukes@adacore.com>
11439
11440 * exp_aggr.ads,
11441 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11442 expanded aggregate code before allocator, and ahead of declaration for
11443 temporary, to prevent access before elaboration when the allocator is
11444 an actual for an access parameter.
11445 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11446 the TSD and the table of interfaces.
11447 (Convert_To_Assignments): Augment the test for delaying aggregate
11448 expansion for limited return statements to include the case of extended
11449 returns, to prevent creation of an unwanted transient scope.
11450 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11451 (Expand_Array_Aggregate): Handle aggregates associated with
11452 statically allocated dispatch tables.
11453 (Expand_Record_Aggregate): Handle aggregates associated with
11454 statically allocated dispatch tables.
11455 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11456 of anonymous access type.
11457
11458 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11459
11460 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11461 is a variable that renames a slice, use the variable itself in the
11462 expannsion when the renamed expression itself may be modified between
11463 the declaration of the renaming and the array assignment.
11464
11465 2007-08-14 Jerome Guitton <guitton@adacore.com>
11466
11467 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11468 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11469 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11470 New functions; dummy implementations.
11471
11472 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11473 functions, used to implement the multi-tasks mode routines on VxWorks.
11474
11475 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11476 New functions, thin
11477 binding to the VxWorks routines which have changed between VxWorks 5
11478 and 6.
11479 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11480 which are not callable from a RTP.
11481
11482 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11483 implemented for the multi-tasks mode on VxWorks 5 and 6.
11484
11485 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11486
11487 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11488 functions.
11489
11490 2007-08-14 Vincent Celier <celier@adacore.com>
11491
11492 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11493 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11494 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11495 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11496 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11497 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11498 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11499 procedure.
11500 (Major_Id_Name): New function.
11501 mlib-tgt.ads/mlib.tgt.adb:
11502 (Library_Major_Minor_Id_Supported): New function, default returns True
11503 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11504 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11505 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11506 Implementation of Library_Major_Minor_Id_Supported returns False
11507 clean.adb:
11508 (Clean_Library_Directory): If major/minor ids are supported, clean all
11509 library files.
11510 Major update of the Project Manager and of the project aware tools,
11511 including gprmake, so that the same sources in the GNAT repository
11512 can be used by gprbuild.
11513
11514 2007-08-14 Olivier Hainque <hainque@adacore.com>
11515
11516 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11517 (GCC_ZCX_Support): Switch to True.
11518
11519 * s-intman-solaris.adb (Notify_Exception): Call
11520 Adjust_Context_For_Raise before raising, as expected for signal
11521 handlers in general.
11522
11523 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11524 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11525 to other implementation bodies.
11526
11527 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11528 be visible by multiple implementation bodies.
11529
11530 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11531 only for conditions coming from hardware.
11532 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11533 adjustments to signal context prior to exception raise from signal
11534 handler.
11535 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11536 mode.
11537 Solaris section: (__gnat_adjust_context_for_raise): New function.
11538 Implementation of the machine context adjustments to perform prior to
11539 raise from a signal handler. Version for both sparc and x86.
11540 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11541 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11542 prior to raising as expected for any handler, before possible nested
11543 faults to make sure all the contexts in a chain have been adjusted by
11544 the time we propagate.
11545
11546 2007-08-14 Pascal Obry <obry@adacore.com>
11547
11548 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11549 (SYSTEM_INFO): New record.
11550 (SetThreadIdealProcessor): New imported routine needed for supporting
11551 task_info pragma on Windows.
11552
11553 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11554 info can be applied to the current host.
11555 (Create_Task): Set the ideal processor if information is present.
11556
11557 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11558 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11559
11560 2007-08-14 Olivier Hainque <hainque@adacore.com>
11561
11562 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11563 stack size and initial stack pointer value for a given task.
11564 (Enter_Task): Get the stack attributes of the task we are entering and
11565 let the stack checking engine know about them.
11566
11567 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11568 Let the stack-checking engine know about the initial sp value and stack
11569 size associated with the current task.
11570 (Set_Stack_Info): If a stack base has been notified for the current
11571 task, honor it. Fallback to the previous less accurate method otherwise.
11572
11573 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11574
11575 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11576
11577 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11578 treatment of limited views uniform for all visible declarations in a
11579 limited_withed package.
11580 Set flag indicating that a subprogram body for a child unit has a
11581 generated spec.
11582 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11583 separate declaration, remove the unit name from visibility after
11584 compilation, so that environment is clean for subsequent compilations.
11585 (Install_Limited_Context_Clauses): Do not install a
11586 limited_private_with_clause unless the current unit is a body or a
11587 private child unit.
11588 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11589 in the same fashion.
11590 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11591 it applies to the declaration of the current package body.
11592 (Remove_Private_With_Clauses): If there is a regular with_clause for
11593 the unit, delete Private_With_Clause from context, to prevent improper
11594 hiding when processing subsequent nested packages and instantiations.
11595
11596 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11597
11598 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11599 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11600 representing absolute path names.
11601 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11602
11603 * cstreams.c (__gnat_full_name for VxWorks): Use
11604 __gnat_is_absolute_path to detect whether we need to add the current
11605 directory to normalize the path.
11606
11607 2007-08-14 Javier Miranda <miranda@adacore.com>
11608
11609 * a-tags.ads,
11610 a-tags.adb (Displace): Associate a message with the raised CE
11611 exception.
11612 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11613 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11614 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11615 spec.
11616 (Default_Prim_Op_Count): Removed.
11617 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11618 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11619 Remove pragma Inline_Always.
11620
11621 * rtsfind.ads (Default_Prim_Op_Count): Removed
11622 (Max_Predef_Prims): New entity
11623 (RE_Expanded_Name): Removed
11624 (RE_HT_Link): Removed
11625 (RE_Iface_Tag): Remmoved
11626 (RE_Ifaces_Table): Removed
11627 (RE_Interfaces_Array): Removed
11628 (RE_Interface_Data_Element): Removed
11629 (RE_Nb_Ifaces): Removed
11630 (RE_RC_Offset): Removed
11631 (RE_Static_Offset_To_Top): Removed
11632
11633 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11634 formal.
11635 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11636 Prim_Op_Count by Max_Predef_Prims.
11637
11638 2007-08-14 Thomas Quinot <quinot@adacore.com>
11639 Vincent Celier <celier@adacore.com>
11640
11641 * binde.adb (Elab_All_Links): Remove unnecessary call to
11642 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11643 won't be an associated Afile).
11644 (Elab_All_Links): Fail if a referenced unit cannot be found
11645
11646 * bindgen.adb:
11647 Fix comments in bindgen regarding consistency checks done in Bcheck:
11648 the checks are made across units within a partition, not across several
11649 partitions.
11650 Fix generation of C binder file for VxWorks.
11651
11652 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11653 Generic_May_Lack_ALI, more descriptive of the current use of the
11654 predicate, and update documentation.
11655
11656 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11657 reorganization and documentation update for the case of predefined
11658 library generics (for which we do not reference an Afile).
11659
11660 2007-08-14 Robert Dewar <dewar@adacore.com>
11661
11662 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11663 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11664 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11665 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11666 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11667 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11668 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11669 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11670 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11671 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11672 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11673 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11674 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11675 g-altcon.adb: Minor reformatting
11676
11677 ada-tree.h: Delete empty line.
11678
11679 ali.ads: Minor reformatting
11680 Clarification of comments.
11681 Minor spelling correction
11682
11683 * exp_dbug.adb: Add Warnings Off to suppress new warning
11684
11685 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11686 formal
11687
11688 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11689 value
11690
11691 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11692
11693 * a-textio.ads: Reorder the standard input/output/error declarations
11694 for consistency.
11695
11696 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11697
11698 * par-ch2.adb: Recognize RM specially in errout
11699 Change 'R'M to RM in all error messages
11700
11701 * scng.adb: Recognize RM specially in errout
11702
11703 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11704 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11705
11706 * s-direio.adb: Add missing routine header box.
11707
11708 * sem_attr.ads: Add ??? comments
11709
11710 * sem_eval.adb: Recognize RM specially in errout
11711 Change 'R'M to RM in all error messages
11712
11713 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11714
11715 * s-tasinf.ads: Fix minor comment typo.
11716
11717 * a-cihama.adb: Minor comment addition
11718
11719 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11720 formal
11721
11722 * s-tasinf-tru64.ads: Fix minor comment typo.
11723
11724 * itypes.ads: Comment update.
11725
11726 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11727 anymore.
11728
11729 * argv.c: Added protection against null gnat_argv and gnat_envp.
11730
11731 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11732 warning message when Tolerate_Consistency_Errors is True.
11733
11734 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11735 Any_Id, as this subprogram is only applicable to *type* entities (it
11736 sets RM_Size). Instead initialize just Esize and Alignment.
11737
11738 2007-08-14 Bob Duff <duff@adacore.com>
11739
11740 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11741 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11742 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11743 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11744 a-coorse.ads (Next): Applied pragma Inline.
11745 Make all Containers packages Remote_Types (unless they are already
11746 Pure).
11747 (Previous): applied pragma Inline
11748 (Elements_Type): is now a record instead of an array
11749
11750 2007-08-14 Thomas Quinot <quinot@adacore.com>
11751
11752 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11753 of Set_Item.
11754 (Set_Item): When the new item is an element of the currently allocated
11755 table passed by reference, save a copy on the stack if we're going
11756 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11757 variable to determine whether to call Set_Last.
11758
11759 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11760 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11761 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11762 some occurrences of the pattern
11763 T.Increment_Last;
11764 T.Table (T.Last) := Value;
11765 with a cleaner call to
11766 T.Append (Value);
11767
11768 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11769 Gary Dismukes <dismukes@adacore.com>
11770 Thomas Quinot <quinot@adacore.com>
11771
11772 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11773 derived type with interface progenitors use the analyzed formal as the
11774 parent of the actual, to create renamings for all the inherited
11775 operations in Derive_Subprograms.
11776 (Collect_Previous_Instances): new procedure within of
11777 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11778 unit being loaded, to ensure that the generation of global symbols is
11779 consistent in different compilation modes.
11780 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11781 takes progenitor types into account.
11782 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11783 traversing over the primitives of the formal and actual types to locate
11784 any abstract subprograms of the actual type that correspond to a
11785 nonabstract subprogram of the formal type's ancestor type(s), and issue
11786 an error if such is found.
11787 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11788 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11789 Remove bogus guard around calls to Inherit_Context.
11790 (Reset_Entity): If the entity is the selector of a selected component
11791 that denotes a named number, propagate constant-folding to the generic
11792 template only if the named number is global to the generic unit.
11793 (Set_Instance_Env): Only reset the compilation switches when compiling
11794 a predefined or internal unit.
11795
11796 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11797
11798 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11799 parameter to determine whether operation applies to the prefix.
11800 (Complete_Object_Operation): If actual has an access type and
11801 controlling formal is not an in_parameter, reject the actual if it is
11802 an access_to_constant type.
11803 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11804 type, the candidate operations are found in the scope of declaration of
11805 the type, because the type has no primitive subprograms.
11806 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11807 a private extension, only examine visible components before trying to
11808 analyze as a prefixed call.
11809 Change Entity_List to Type_To_Use, for better readability.
11810 (Has_Fixed_Op): Use base type when checking whether the type of an
11811 operator has a user-defined multiplication/division
11812 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11813 user-defined operators are available for fixed-point types.
11814
11815 2007-08-14 Thomas Quinot <quinot@adacore.com>
11816 Ed Schonberg <schonberg@adacore.com>
11817
11818 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11819 formal At_Any_Place indicating, when True, that we want to test for
11820 availability of the stream attribute at any place (as opposed to the
11821 current visibility context only).
11822 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11823 purpose of enforcing E.2.2(8) only if it is not available at any place.
11824 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11825 when checking the legality of an extension aggregate in a preelaborable
11826 package. Treat the literal null as a valid default expression in a
11827 component declaration for a type with preelaborable initialization.
11828 A limited interface is a legal progenitor for the designated type of a
11829 remote access to class-wide type.
11830
11831 2007-08-14 Thomas Quinot <quinot@adacore.com>
11832 Ed Schonberg <schonberg@adacore.com>
11833
11834 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11835 reference): Use correct entity as denoted entity for the selector of
11836 the rewritten node.
11837 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11838 setting the Referenced_As_LHS flag for entities that are implicitly
11839 dereferenced.
11840 (Find_Type): If the type is an internally generated incomplete type,
11841 mark the full view as referenced, to prevent spurious warnings.
11842 (Find_Selected_Component, Has_Components): Handle properly non-limited
11843 views that are themselves incomplete types.
11844 Handle interfaces visible through limited-with clauses.
11845 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11846 subprogram generic actual for which we have generated a renaming.
11847 Warn when the renaming introduces a homonym of
11848 the renamed entity, and the renamed entity is directly visible.
11849
11850 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11851 Hristian Kirtchev <kirtchev@adacore.com>
11852
11853 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11854 appear in the subtree to the current allocator if it is not a static
11855 coextension.
11856 (Resolve_Allocator): Perform cleanup if resolution has determined that
11857 the allocator is not a coextension.
11858 (Resolve): Skip an interpretation hidden by an abstract operator only
11859 when the type of the interpretation matches that of the context.
11860 (Resolve): When looping through all possible interpretations of a node,
11861 do not consider those that are hidden by abstract operators.
11862 (Resolve_Actuals): When verifying that an access to class-wide object
11863 is an actual for a controlling formal, ignore anonymous access to
11864 subprograms whose return type is an access to class_wide type.
11865 (Resolve_Slice): If the prefix of the slice is a selected component
11866 whose type depends on discriminants, build its actual subtype before
11867 applying range checks on the bounds of the slice.
11868 (Valid_Conversion): In an instance or inlined body, compare root types,
11869 to prevent anomalies between private and public views.
11870 (Resolve): Improve error message for ambiguous fixed multiplication
11871 expressions that involve universal_fixed multiplying operations.
11872
11873 2007-08-14 Javier Miranda <miranda@adacore.com>
11874 Hristian Kirtchev <kirtchev@adacore.com>
11875
11876 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11877 location to allow the correct generation of errors in case of
11878 restrictions applied to the expanded code.
11879 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11880 function if the condition does not reference them.
11881 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11882 valid value.
11883
11884 2007-08-14 Thomas Quinot <quinot@adacore.com>
11885 Pablo Oliveira <oliveira@adacore.com>
11886
11887 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11888 typecode parameters for a union (in a variant record), remove
11889 extraneous layer of Any wrapping for member label.
11890 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11891 elabration statements, register the package with the name server
11892 at the beginning, not at the end, of the elaboration statements so
11893 that they can create remote access to subprogram values that designate
11894 remote subprograms from the package.
11895
11896 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11897
11898 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11899 values to compute the number of seconds since the Unix Epoc in order to
11900 account for Daylight Savings Time. Perform special processing for dates
11901 that are earlier than the Unix Epoc to obtain a negative number.
11902
11903 2007-08-14 Emmanuel Briot <briot@adacore.com>
11904
11905 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11906 switches.
11907
11908 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11909
11910 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11911 binder-generated file is not in Ada.
11912 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11913 recorded in the ALI file.
11914 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11915
11916 2007-08-14 Vincent Celier <celier@adacore.com>
11917
11918 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11919 (Output_Source): Do nothing if parameter is No_Sdep_Id
11920
11921 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11922 shared library it imports has a later time stamp.
11923 (Check): Resolve the symbolic links in the path name of the object
11924 directory.
11925 Check that the ALI file is in the correct object directory
11926 Check if a file name does not correspond to the mapping of units
11927 to file names.
11928 (Display_Version): New procedure
11929 (Initialize): Process switches --version and --help
11930 Use type Path_Name_Type for path name
11931
11932 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11933
11934 * impunit.adb: Re-organize System.Random_Numbers and
11935 GNAT.Random_Numbers and add to builds.
11936
11937 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11938
11939 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11940
11941 * a-assert.ads, a-assert.adb: New files.
11942
11943 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11944
11945 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11946 if AAMP_On_Target is True, then the size of the type encompasses two
11947 addresses (a static link and a subprogram address), except in the case
11948 of library-level access types.
11949
11950 2007-08-14 Vincent Celier <celier@adacore.com>
11951
11952 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11953 writing the line.
11954 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11955 possible trailing spaces.
11956 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11957
11958 2007-08-14 Javier Miranda <miranda@adacore.com>
11959
11960 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11961 null-excluding access types.
11962
11963 2007-08-14 Javier Miranda <miranda@adacore.com>
11964
11965 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11966 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11967 of private types add missing check on matching interfaces in the
11968 partial and full declarations.
11969 (Analyze_Protected_Type): Code cleanup.
11970 (Analyze_Task_Type): Code cleanup.
11971
11972 2007-08-14 Javier Miranda <miranda@adacore.com>
11973
11974 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11975 generated interface thunk.
11976
11977 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11978
11979 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11980 obsolescent warning on application of 'Class to an incomplete type.
11981
11982 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11983 prevent obsolescent warning on application of 'Class to an incomplete
11984 type.
11985
11986 2007-08-14 Pascal Obry <obry@adacore.com>
11987
11988 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11989 file stream.
11990
11991 2007-08-14 Cyrille Comar <comar@adacore.com>
11992
11993 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11994 since it is potentially used in cases implying double finalization of
11995 the same object.
11996
11997 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11998
11999 * s-tasini.adb (Get_Stack_Info): Move this function to
12000 System.Soft_Links.Tasking because it is common to the full and the
12001 restricted run times.
12002 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
12003 in SSL.Tasking.Init_Tasking_Soft_Links.
12004
12005 * s-solita.adb (Get_Stack_Info): Function moved from
12006 System.Tasking.Initialization because it is common to the full and the
12007 restricted run times.
12008 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
12009
12010 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12011
12012 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
12013 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
12014 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
12015 parameter.
12016
12017 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
12018 guard to 12K.
12019
12020 2007-08-14 Gary Dismukes <dismukes@adacore.com>
12021
12022 * s-veboop.adb (SU): New named number initialized to
12023 System.Storage_Unit.
12024 (True_Val): The initialization expression is revised to use SU (=
12025 Storage_Unit) rather than assuming 8 for the component size of an
12026 unpacked Boolean array.
12027
12028 2007-08-14 Tristan Gingold <gingold@adacore.com>
12029
12030 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
12031
12032 * tb-ivms.c: New file.
12033
12034 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
12035
12036 2007-08-14 Geert Bosch <bosch@adacore.com>
12037
12038 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
12039 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12040 Add required linker pragmas for automatically linking with the gnalasup
12041 linear algebra support library, and the systems math library.
12042 Rename cdot to cdotu and zdot to zdotu.
12043 Update header comment to describe purpose of package.
12044
12045 2007-08-14 Thomas Quinot <quinot@adacore.com>
12046
12047 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12048 an explicitly specified Associated_Final_Chain, use that list.
12049 (Expand_N_Package_Body): Build dispatch tables of library level tagged
12050 types.
12051 (Expand_N_Package_Declaration): Build dispatch tables of library level
12052 tagged types. Minor code cleanup.
12053
12054 2007-08-14 Vincent Celier <celier@adacore.com>
12055
12056 * gnatchop.adb (Terminate_Program): Remove exception and use
12057 Types.Terminate_Program instead.
12058
12059 * osint.ads, osint.adb (Current_Exit_Status): New global variable
12060 (Find_Program_Name): Added protection against empty name.
12061 (OS_Exit_Through_Exception): New procedure
12062
12063 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12064 (OS_Exit_Default): New procedure that contains the previous
12065 implementation of procedure OS_Exit.
12066 (Final_Value): Remove obsolete Interix stuff.
12067
12068 2007-08-14 Thomas Quinot <quinot@adacore.com>
12069
12070 * g-socket.ads: Reorganize example code so that it also works on
12071 Windows XP.
12072
12073 2007-08-14 Tristan Gingold <gingold@adacore.com>
12074
12075 * g-trasym.ads: AIX now supports symbolic backtraces.
12076
12077 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12078
12079 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12080 units being loaded to detect circularities. A circularity may be
12081 present even if the current chain of pending units to load starts from
12082 a limited_with_clause.
12083
12084 * lib-load.ads: Change profile of Load_Unit to use a with_clause
12085 rather than a boolean flag, in order to detect circularities in
12086 with_clauses.
12087
12088 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12089 than propagating the From_Limited_With flag, in order to handle
12090 properly circularities involving with_clauses.
12091
12092 2007-08-14 Nicolas Setton <setton@adacore.com>
12093
12094 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12095 warnings.
12096
12097 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12098
12099 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12100 to build for libgnala.
12101 libgnat: Add rules to build libgnala.a
12102 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12103 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12104 Add s-osinte-vxworks-kernel.adb to the target pairs of the
12105 kernel run-time lib for VxWorks 6, which would provide a different
12106 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12107 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12108 running ZCX by default.
12109 Add g-sttsne-locking to LynxOS version.
12110 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12111 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12112
12113 * system-darwin-x86.ads: New file.
12114
12115 * Make-lang.in: Delete files before copying onto them, so if they are
12116 read-only, the copy won't fail.
12117 Update dependencies
12118
12119 2007-08-14 Pascal Obry <obry@adacore.com>
12120
12121 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12122 naming scheme.
12123
12124 2007-08-14 Vincent Celier <celier@adacore.com>
12125
12126 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12127 (Gcc): Initialize Gcc_Name at the first call
12128
12129 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12130
12131 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12132 with_clauses of the enclosing unit when analyzing the package
12133 specification of a nested instance.
12134
12135 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12136
12137 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12138 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12139 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12140 layout of N_Allocator.
12141
12142 2007-08-14 Thomas Quinot <quinot@adacore.com>
12143
12144 * rtsfind.adb (Check_RPC): Add PCS version check.
12145
12146 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12147 (Gnat_Free_Software): New function.
12148
12149 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12150 the PCS_Version value from s-parint, used to check that it is consistent
12151 with what exp_dist expects.
12152
12153 * s-parint.ads (PCS_Version): New entity for checking consistency
12154 between exp_dist and PCS.
12155
12156 * gen-soccon.c: (SO_REUSEPORT): New constant.
12157
12158 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12159
12160 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12161 variable Sub_Second to Duration in order to accomodate a larger range
12162 of arithmetic operations.
12163
12164 2007-08-14 Bob Duff <duff@adacore.com>
12165
12166 * g-sttsne-locking.ads: Move comments from spec to body.
12167 * g-sttsne-locking.adb: Move comments from spec to body.
12168 * g-sttsne-vxworks.ads: Removed.
12169 * g-sttsne-vxworks.adb: Removed.
12170
12171 2007-08-11 Ian Lance Taylor <iant@google.com>
12172
12173 * misc.c (gnat_get_alias_set): Change return type to
12174 alias_set_type.
12175
12176 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12177
12178 * decl.c, utils2.c: Fix whitespace in last change.
12179
12180 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12181
12182 * decl.c (compare_field_bitpos): Constify.
12183 * utils2.c (compare_elmt_bitpos): Likewise.
12184
12185 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12186
12187 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12188 anonymous access type.
12189 (pthread_sigmask): Now take an access sigset_t.
12190
12191 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12192
12193 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12194
12195 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12196
12197 PR tree-optimization/25737
12198 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12199
12200 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12201
12202 * trans.c (Attribute_to_gnu): When subtracting an
12203 offset from a pointer, use POINTER_PLUS_EXPR with
12204 NEGATE_EXPR instead of MINUS_EXPR.
12205 (gnat_to_gnu): Likewise.
12206 * utils.c (convert): When converting between
12207 thin pointers, use POINTER_PLUS_EXPR and sizetype
12208 for the offset.
12209 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12210 have the same semantics as PLUS_EXPR for alignment.
12211 (build_binary_op): Add support for the semantics of
12212 POINTER_PLUS_EXPR's operands.
12213 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12214
12215 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
12216
12217 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12218 of get_signed_or_unsigned_type.
12219 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12220
12221 2007-06-11 Bob Duff <duff@adacore.com>
12222 Thomas Quinot <quinot@adacore.com>
12223
12224 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12225 'bind' on windows that causes 'connect' to fail intermittently, by
12226 retrying the 'bind'.
12227 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12228
12229 2007-06-10 Duncan Sands <baldrick@free.fr>
12230
12231 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12232 than to void, for the fields when making a new fat pointer type.
12233 (gnat_substitute_in_type): Now substitute_in_type.
12234 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
12235 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12236 * utils.c (update_pointer_to): Update fat pointers by updating the
12237 dummy node pointers used for the fields.
12238
12239 2007-06-06 Thomas Quinot <quinot@adacore.com>
12240 Bob Duff <duff@adacore.com>
12241
12242 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12243 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12244 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12245 constant Thread_Blocking_IO, always True by default, set False
12246 on a per-runtime basis.
12247 (Need_Netdb_Buffer): New constant.
12248
12249 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12250 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12251 files.
12252
12253 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12254 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12255 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12256 child package Task_Safe_NetDB
12257 (Host_Error_Messages): Add stub body.
12258 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12259
12260 * g-soccon-mingw.ads: Add Windows-specific constants.
12261 (Need_Netdb_Buffer): New constant.
12262 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12263 wrapper and import inet_addr(3) from the standard sockets library
12264 directly instead.
12265 (In_Addr): Add alignment clause.
12266 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12267
12268 2007-06-06 Robert Dewar <dewar@adacore.com>
12269
12270 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12271 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12272 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12273 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12274 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12275 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12276 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12277 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12278 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12279 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12280 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12281 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12282 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12283 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12284 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12285 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12286 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12287 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12288 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12289 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12290 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12291 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12292 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12293 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12294 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12295 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12296 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12297 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12298 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12299 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12300 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12301 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12302 Unchecked_* by Ada.Unchecked_*
12303
12304 2007-06-06 Robert Dewar <dewar@adacore.com>
12305
12306 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12307 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12308 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12309 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12310 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12311 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12312
12313 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12314 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12315 s-tasloc.adb, s-tasloc.ads: New files.
12316
12317 2007-06-06 Bob Duff <duff@adacore.com>
12318
12319 * g-expect-vms.adb:
12320 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12321 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12322 (Send_Signal, Close): Raise Invalid_Process if the process id is
12323 invalid.
12324 (Pattern_Matcher_Access): Is now a general access type to be able to
12325 use aliased string.
12326
12327 2007-06-06 Thomas Quinot <quinot@adacore.com>
12328 Arnaud Charlet <charlet@adacore.com>
12329
12330 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12331 (SIGEMT is now used instead of SIGTERM on AIX).
12332
12333 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12334 (Time_Slice_Supported): Set to True.
12335 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12336
12337 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12338
12339 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12340 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12341 express the bounds of Duration as Time. Raise Time_Error when the
12342 result is greater or equal to the higher bound of Duration (on the
12343 margin case).
12344 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12345 Ada_High_And_Leaps.
12346 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12347 Ada_High_And_Leaps.
12348 ("-" (Time, Time)): Reorder code.
12349 (All_Leap_Seconds): Removed.
12350 (Arithmetic_Operations.Add): Remove sign related kludge.
12351 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12352 with flag Leap_Support.
12353 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12354 (Check_Within_Time_Bounds): New procedure.
12355 (Clock): Control the leap seconds processing with flag Leap_Support.
12356 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12357 (Formatting_Operations.Split): Control the leap seconds processing with
12358 flag Leap_Support.
12359 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12360 with flag Leap_Support. Adjust the year, month and day (if applicable)
12361 when the value of day seconds designates a new day.
12362 (Split): Use parameter associations for better readability. Integrate
12363 flag Is_Ada_05.
12364 (Time_Of): Use parameter associations for better readability. Integrate
12365 flag Is_Ada_05.
12366
12367 * a-calfor.adb (Split): Use parameter associations for better
12368 readability. Integrate flag Is_Ada_05.
12369 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12370 better readability. Integrate flag Is_Ada_05.
12371
12372 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12373
12374 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12375 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12376 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12377 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12378 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12379 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12380 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12381 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12382 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12383 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12384 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12385 time when entering this routine to detect a backward clock setting
12386 (manual setting or DST adjustment), to avoid waiting for a longer delay
12387 than needed.
12388 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12389 Remove handling of deferred priority change, and replace by setting the
12390 task priority directly, as required by AI-188.
12391 Update comments.
12392 (Max_Task_Image_Length): New constant.
12393 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12394 (Dynamic_Priority_Support): Removed, no longer needed.
12395 (Poll_Base_Priority_Change): Ditto.
12396 (Set_Ceiling): Add this procedure to change the ceiling priority
12397 associated to a lock. This is a dummy implementation because dynamic
12398 priority ceilings are not supported by the underlying system.
12399
12400 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12401 accepting a RV with its priority boosted.
12402 Remove handling of deferred priority change, and replace by setting the
12403 task priority directly, as required by AI-188.
12404
12405 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12406 Succeeded = True.
12407 Remove handling of deferred priority change, and replace by setting the
12408 task priority directly, as required by AI-188.
12409 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12410 of Self_Id earlier.
12411
12412 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12413 (Poll_Base_Priority_Change): Removed.
12414 Code clean up: use SSL.Current_Target_Exception.
12415
12416 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12417 to run as this is a potentially dispatching point.
12418 (Call_Synchronous): Use Local_Defer_Abort.
12419 (Callable): Relax assertion.
12420 (Selective_Wait): Relax assertion in case abort is not allowed.
12421 Remove handling of deferred priority change, and replace by setting the
12422 task priority directly, as required by AI-188.
12423
12424 * s-tasuti.adb (Make_Passive): Adjust assertions.
12425 Remove handling of deferred priority change, and replace by setting the
12426 task priority directly, as required by AI-188.
12427
12428 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12429
12430 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12431 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12432 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12433 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12434 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12435 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12436 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12437 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12438 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12439 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12440 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12441 This patch changes the largest non-binary modulus from 2**31-1 to
12442 2**32-1.
12443 (Compiler_System_Version): Removed, no longer used.
12444 Clean up system files by removing flags only used on a single target.
12445 Also remove obsolete flags, only used during bootstrap from system.ads
12446 (Address): Add a pragma Preelaborable_Initialization.
12447
12448 * system-aix.ads: Ditto.
12449 (GCC_ZCX_Support): Set to true.
12450 Update priority range on AIX and map Ada priorities to target
12451 priorities appropriately for different scheduling policies.
12452
12453 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12454
12455 2007-06-06 Vincent Celier <celier@adacore.com>
12456
12457 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12458 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12459
12460 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12461 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12462 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12463 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12464 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12465 MLib.Tgt, containing the default versions of the exported subprograms.
12466 For each platform, create a specific version of the body of new child
12467 package MLib.Tgt.Specific that contains only the body of subprograms
12468 that are different from the default.
12469 (Archive_Builder_Append_Options): New function.
12470
12471 2007-06-06 Matthew Gingell <gingell@adacore.com>
12472
12473 * s-osinte-aix.adb: Map Ada priorities to target priorities
12474 appropriately for different scheduling policies.
12475
12476 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12477
12478 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12479 its C counterpart.
12480 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12481 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12482
12483 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12484
12485 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12486 Noop on VMS, added for interface commonality.
12487
12488 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12489 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12490 Olivier Hainque <hainque@adacore.com>
12491
12492 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12493 renamed expression of a full renaming at toplevel.
12494 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12495 the values the constant is initialized to if it is an N_Allocator.
12496 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12497 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12498 (make_aligning_type): Accept an extra ROOM argument for storage to be
12499 made available before the aligned field, and an extra BASE_ALIGN
12500 argument for callers to pass the alignment guaranteed to be honored for
12501 the whole aligning object. Avoid call to finish_record_type, which only
12502 interferes with the sizes we want to set.
12503 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12504 make_aligning_type for super-aligned objects on stack.
12505 (components_to_record): Pass the adjusted size of the type when creating
12506 fields in the qualified union for the variant part.
12507 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12508 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12509 packed array type.
12510 (maybe_pad_type): Set TYPE_USER_ALIGN.
12511 (make_aligning_type): Likewise.
12512 ALIGN argument is unsigned int.
12513 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12514 (gnat_to_gnu_param): Likewise, for parameters.
12515 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12516 if it is constant and stems from a function call.
12517 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12518 of the record is specified. Adjust accordingly.
12519 (adjust_packed): New static function.
12520 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12521 (components_to_record): Likewise.
12522 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12523 side-effects if the object is deemed constant.
12524 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12525 type instead of merely finalizing it. Tidy.
12526 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12527 <E_Access_Type>: Likewise.
12528 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12529 (defer_debug_level): Delete.
12530 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12531 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12532 type.
12533 <E_Record_Type>: Do not explicitly defer finalizing the type.
12534 Adjust for write_record_type_debug_info renaming.
12535 <E_Subprogram_Type>: Likewise.
12536 Finalize deferred types right after deferred incomplete types are
12537 expanded.
12538 (rest_of_type_decl_compilation): New global function.
12539 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12540 (components_to_record): Propagate the packedness to the fields of the
12541 qualified union type if there is a variant part.
12542 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12543 instead of inline code to adjust the XUT field offsets.
12544 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12545 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12546 and write the debug info if the type derives from a discriminated one.
12547 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12548 <E_Array_Subtype>: Likewise.
12549 <E_String_Literal_Subtype>: Likewise.
12550 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12551 an alignment clause.
12552 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12553 before giving warning.
12554 (prepend_one_attribute_to): New function, helper to prepend an attribute
12555 to an attribute list.
12556 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12557 (prepend_attributes): Likewise.
12558 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12559 <E_Array_Type>: Declare the padding type for the element type, if any.
12560 <E_Array_Subtype>: Likewise.
12561 (defer_limited_with): New variable.
12562 (Gigi_Equivalent_Type): New function.
12563 (gnat_to_gnu_entity): Use it at start and use result throughout.
12564 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12565 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12566 indirection, precompute if unconstrained array to simplify logic, and
12567 use defer_limited_with to defer elaboration of some types from limited
12568 with.
12569 (finalize_from_with_types): New function.
12570
12571 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12572 Eric Botcazou <ebotcazou@adacore.com>
12573 Tristan Gingold <gingold@adacore.com>
12574 Olivier Hainque <hainque@adacore.com>
12575
12576 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12577 adding guard that the entity is an E_Constant before testing presence
12578 of Full_view (and remove unnecessary test that entity is not a type).
12579 For a CONST_DECL used by reference, manually retrieve
12580 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12581 (struct language_function): Move from utils.c to here.
12582 (struct parm_attr): New structure.
12583 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12584 (f_parm_attr_cache): New macro.
12585 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12586 expressions for the 'First, 'Last and 'Length attributes of the
12587 unconstrained array IN parameters.
12588 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12589 Allocate the information structure for the function earlier, as well
12590 as the language-specific part.
12591 If the parameter attributes cache has been populated, evaluate the
12592 cached expressions on entry.
12593 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12594 N_Procedure_Call_Statement and N_Indexed_Component.
12595 (Pragma_to_gnu): Translate inspection_point to an asm statement
12596 containaing a comment and a reference to the object (either its address
12597 for BLKmode or its value).
12598 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12599 to go to DECL_INITIAL. Together with the size constraint relaxation
12600 in create_var_decl, enlarges the set of situations in which an
12601 identifier may be used as an initializer without implying elaboration
12602 code.
12603 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12604 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12605 node.
12606 (maybe_stabilize_reference): Remove lvalues_only parameter.
12607 (gnat_stabilize_reference): Adjust for above change.
12608 (gnat_to_gnu): Do not set location information on the result
12609 if it is a reference.
12610 (add_cleanup): Add gnat_node parameter and set the location of the
12611 cleanup to it.
12612 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12613 (Exception_Handler_to_gnu_zcx): Likewise.
12614 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12615 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12616 the former right after the latter.
12617 (start_stmt_group): Make global.
12618 (end_stmt_group): Likewise.
12619 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12620 vars.
12621 (gnu_program_error_label_stack): Likewise.
12622 (gigi): Initialize them.
12623 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12624 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12625 New cases.
12626 (push_exception_label_stack): New function.
12627 (takes_address): New function.
12628
12629 * utils.c (struct language_function): Move to trans.c from here.
12630 (unchecked_convert): Do not wrap up integer constants in
12631 VIEW_CONVERT_EXPRs.
12632 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12633 the latter for aggregate types, unexpected by later passes, and relax an
12634 arbitrary size constraint on the former.
12635 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12636 to compare the sizes.
12637 (convert_vms_descriptor): When converting to a fat pointer type, be
12638 prepared for a S descriptor at runtime in spite of a SB specification.
12639 (shift_unc_components_for_thin_pointers): New function.
12640 (write_record_type_debug_info): For variable-sized fields, cap the
12641 alignment of the pointer to the computed alignment.
12642 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12643 If REP_LEVEL is 2, do not compute the sizes.
12644 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12645 (build_unc_object_type): Likewise.
12646 (declare_debug_type): New function.
12647
12648 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12649
12650 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12651 no statement is expandable anymore.
12652 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12653 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12654 when the user requested it explicitely.
12655 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12656 to 0 for Ada.
12657 (get_alias_set): Return alias set 0 for a type if
12658 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12659
12660 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12661 (DECL_FUNCTION_STUB): New accessor macro.
12662 (SET_DECL_FUNCTION_STUB): New setter macro.
12663
12664 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12665
12666 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12667 declarations.
12668
12669 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12670
12671 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12672 Rename to Abort_Task_Interrupt to be able to keep the same interface
12673 as the rest of the targets.
12674
12675 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12676 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12677
12678 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12679 New files.
12680
12681 2007-06-06 Robert Dewar <dewar@adacore.com>
12682
12683 * a-chahan.ads: Remove obsolescent pragmas
12684
12685 * a-chlat1.ads: Minor reformatting
12686
12687 2007-06-06 Robert Dewar <dewar@adacore.com>
12688
12689 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12690 for Errout
12691
12692 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12693 implementation
12694
12695 * errout.ads (Finalize): Changed interface
12696 (Output_Messages): New procedure
12697 (Compilation_Errors): New Interface
12698
12699 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12700 Finalize/Output_Messages interface for Errout
12701 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12702 Errout.
12703
12704 2007-06-06 Thomas Quinot <quinot@adacore.com>
12705 Olivier Hainque <hainque@adacore.com>
12706 Robert Dewar <dewar@adacore.com>
12707
12708 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12709 check.
12710 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12711 propagation starts, to let debuggers know about the event in a reliable
12712 fashion.
12713 (Local_Raise): Moved to System.Exceptions
12714 More convenient to have this as a separate unit
12715
12716 * s-except.adb, s-except.ads: New files.
12717
12718 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12719 Debug_Unhandled_Exception in System.Exceptions where it belongs
12720 together with a couple of other debug helpers.
12721 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12722 the former Unhandled_Exception.
12723
12724 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12725 (Warn_No_Exception_Propagation): New procedure
12726 (Warn_If_No_Propagation): Rewritten for new warning generation
12727 (Expand_Exception_Handlers): New warning generation
12728 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12729 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12730 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12731 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12732 even if restriction is set (makes life easier in Check_Returns)
12733 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12734 checking exception identities.
12735 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12736 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12737 block for handler (used by Check_Returns)
12738 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12739 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12740 remove all exception handlers when optimizing local raise statements.
12741 (Find_Local_Handler): Use Get_Renamed_Entity
12742 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12743 marked analyzed after expanding exception handlers, do not generate
12744 redundant cleanup actions, because they have been constructed already.
12745
12746 2007-06-06 Thomas Quinot <quinot@adacore.com>
12747
12748 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12749 presence of this categorization pragma is mandated by the language.
12750 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12751 for this type.
12752
12753 2007-06-06 Vincent Celier <celier@adacore.com>
12754 Robert Dewar <dewar@adacore.com>
12755
12756 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12757 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12758 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12759 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12760 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12761 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12762 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12763 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12764 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12765 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12766 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12767 ali.ads, ali.adb:
12768 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12769 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12770 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12771 Use variables of types File_Name_Type and Unit_Name_Type in error
12772 messages.
12773 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12774 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12775 here.
12776 Define flags Flag217-Flag230 with associated subprograms
12777 (Flag_Word5): New record type.
12778 (Flag_Word5_Ptr): New access type.
12779 (To_Flag_Word5): New unchecked conversion.
12780 (To_Flag_Word5_Ptr): Likewise.
12781 (Flag216): New function.
12782 (Set_Flag216): New procedure.
12783
12784 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12785
12786 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12787 instead of 'Size.
12788
12789 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12790
12791 2007-06-06 Javier Miranda <miranda@adacore.com>
12792
12793 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12794 the package.
12795 (Object_Specific_Data_Array): This is now internal to the package.
12796 (Object_Specific_Data): This is now internal to the package.
12797 (Select_Specific_Data_Element): This is now internal to the package.
12798 (Select_Specific_Data_Array): This is now internal to the package.
12799 (Select_Specific_Data): This is now internal to the package.
12800 (Offset_To_Top_Function_Ptr): This is now public.
12801 (To_Offset_To_Top_Function_Ptr): Removed.
12802 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12803 local to subprogram Offset_To_Top.
12804 (Predefined_DT): Removed.
12805 (Typeinfo_Ptr): Removed.
12806 (OSD): This function is now internal to this package.
12807 (SSD): This function is now internal to this package.
12808 (DT): New function that displaces the pointer to the table of primitives
12809 to get access to the enclosing wrapper record.
12810 (IW_Membership): Code cleanup.
12811 (Offset_To_Top): Code cleanup.
12812 (Predefined_DT): Removed.
12813 (Register_Interface_Tag): Removed.
12814 (Set_Interface_Table): Removed.
12815 (Set_Offset_Index): Removed.
12816 (Set_Offset_To_Top): Code cleanup.
12817 (Set_OSD): Removed.
12818 (Set_Signature): Removed.
12819 (Set_SSD): Removed.
12820 (Set_Tagged_Kind): Removed.
12821 (Typeinfo_Ptr): Removed.
12822 (TSD): Removed.
12823 (Displace): Add missing check on null actual.
12824
12825 * exp_disp.ads, exp_disp.adb
12826 (Select_Expansion_Utilities): Removed.
12827 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12828 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12829 the interface requires a new parameter.
12830 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12831 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12832 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12833 Done to remove package Select_Expansion_Utilities.
12834 (Make_DT): New implementation for statically allocated dispatch tables.
12835 (Make_Secondary_DT): Moved to the scope of Make_DT.
12836 (Register_Primitive): Code cleanup plus incoporate the use of the new
12837 function DT_Address_Attribute.
12838 (Expand_Interface_Thunk): The profile of this subprogram has been
12839 changed to return the Thunk_Id and the corresponding code.
12840 (Fill_DT_Entry): Removed. Its functionality is now provided by
12841 subprogram Register_Primitive.
12842 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12843 subprogram Register_Primitive.
12844 (Register_Primitive): New subprogram that incorporates the previous
12845 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12846 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12847 was only required to call Make_DT_Access_Action, which is now removed.
12848 (Ada_Actions): Removed
12849 (Action_Is_Proc): Removed
12850 (Action_Nb_Arg): Removed
12851 Replace all the calls to Make_DT_Access_Action by direct calls to
12852 Make_Procedure_Call_Statement or Make_Function_Call.
12853 (Set_DTC_Entity_Value): New subprogram.
12854 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12855 (Expand_Interface_Thunk): Add missing support for primitives that are
12856 functions with a controlling result (case in which there is no need
12857 to generate the thunk).
12858
12859 * exp_atag.ads, exp_atag.adb
12860 (Build_DT): New subprogram that displaces the pointer to reference the
12861 base of the wrapper record.
12862 (Build_Typeinfo_Offset): Removed.
12863 (RTE_Tag_Node): Removed.
12864 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12865 (Build_Get_RC_Offset): Removed.
12866 (Build_Inherit_Predefined_Prims): Removed.
12867 (Build_Inherit_TSD: Removed.
12868 (Build_New_TSD): Removed.
12869 (Build_Set_External_Tag): Removed.
12870 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12871 (Build_Set_Prim_Op_Address): Add documentation.
12872 (Build_Set_TSD): Removed.
12873
12874 * rtsfind.ads, rtsfind.adb
12875 (Load_Fail): If load fails and we are not in configurable run-time
12876 mode, then raise Unrecoverable_Error.
12877 (Text_IO_Kludge): Generate an error message if a run-time library is
12878 not available in a given run-time (ie. zfp run-time).
12879 (RTE_Record_Component): Add code to check that the component we search
12880 for is not found in two records in the given run-time package.
12881 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12882 (RE_DT_Predef_Prims_Offset): New entity
12883 (RE_Static_Offset_To_Top): New entity
12884 (RE_HT_Link): New entity.
12885 (System_Address_Image): Addition of this run-time package.
12886 (RE_Address_Image): New entity.
12887 (RE_Abstract_Interface): Removed.
12888 (RE_Default_Prim_Op_Count): Removed.
12889 (RE_DT_Entry_Size): Removed.
12890 (RE_DT_Min_Prologue_Size): Removed.
12891 (RE_DT_Prologue_Size): Removed.
12892 (RE_Ifaces_Table_Ptr): Removed.
12893 (RE_Interface_Data_Ptr): Removed.
12894 (RE_Type_Specific_Data): Removed.
12895 (RE_Primary_DT): Removed.
12896 (RE_Register_Interface_Tag): Removed.
12897 (RE_Set_Offset_Index): Removed.
12898 (RE_Set_OSD): Removed.
12899 (RE_Set_SSD): Removed.
12900 (RE_Set_Signature): Removed.
12901 (RE_Set_Tagged_Kind): Removed.
12902 (RE_Address_Array): New entity.
12903 (RE_DT): New entity.
12904 (RE_Iface_Tag): New entity.
12905 (RE_Interfaces_Table): New entity.
12906 (RE_No_Dispatch_Table): New entity.
12907 (RE_NDT_Prims_Ptr): New entity.
12908 (RE_NDT_TSD): New entity.
12909 (RE_Num_Prims): New entity.
12910 (RE_Offset_To_Top_Function_Ptr): New entity.
12911 (RE_OSD_Table): New entity.
12912 (RE_OSD_Num_Prims): New entity.
12913 (RE_Predef_Prims): New entity
12914 (RE_Predef_Prims_Table_Ptr): New entity.
12915 (RE_Primary_DT): New entity.
12916 (RE_Signature): New entity.
12917 (RE_SSD): New entity.
12918 (RE_TSD): New entity.
12919 (RE_Type_Specific_Data): New entity.
12920 (RE_Tag_Kind): New entity.
12921
12922 2007-06-06 Thomas Quinot <quinot@adacore.com>
12923
12924 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12925 C imported variable.
12926 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12927 on entry.
12928
12929 2007-06-06 Robert Dewar <dewar@adacore.com>
12930
12931 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12932 character
12933
12934 2007-06-06 Vincent Celier <celier@adacore.com>
12935
12936 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12937 is room for at least one digit and the minus sign.
12938 (Put.Put_Character): Never put a character outside of the range of
12939 string To.
12940
12941 2007-06-06 Olivier Hainque <hainque@adacore.com>
12942 Eric Botcazou <ebotcazou@adacore.com>
12943
12944 * utils2.c (build_allocator): Provide the extra arguments to
12945 make_aligning_type for super-aligned objects allocated from the default
12946 pool. Leave enough room for a pointer before the aligning field, and
12947 store the system's allocator return value there.
12948 (build_call_alloc_dealloc): When releasing a super-aligned object,
12949 retrieve the system's allocator return value from where build_allocator
12950 has stored it, just ahead of the adjusted address we are passed.
12951 (build_call_raise): Handle properly the generation of line numbers when
12952 the node is marked No_Location.
12953 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12954 by using DECL_UID on ties.
12955 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12956 main variant.
12957 (build_call_raise): Handle converting exception into goto; support new
12958 argument KIND.
12959 (build_component_ref): Add new arg to build_call_raise.
12960
12961 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12962
12963 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12964 "." in the case of nnn.xxx when nnn terminates with an underscore.
12965 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12966
12967 2007-06-06 Robert Dewar <dewar@adacore.com>
12968
12969 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12970
12971 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12972 Vincent Celier <celier@adacore.com>
12973 Robert Dewar <dewar@adacore.com>
12974
12975 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12976 needed.
12977 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12978 ((destructor)) for adafinal, even when switch -a is used.
12979 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12980 used.
12981 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12982 Output_Linker_Option_List is set. Suppress this formatting when
12983 Zero_Formatting is set.
12984 Add case for CLI_Target.
12985 (System_Restrictions_Used): New flag, used to avoid generating with of
12986 System_Restrictions and initialization of the data unless there is
12987 some use of System.Restrictions in the partition.
12988 (Check_System_Restrictions_Used): New procedure
12989
12990 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12991 since we only with this unit in the binder file if it is used elsewhere
12992 in the partition.
12993
12994 2007-06-06 Vincent Celier <celier@adacore.com>
12995
12996 * bindusg.adb: Add line for @<response file>
12997 Add lines for new switches -R and -Z
12998
12999 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
13000 hierarchy in the list of files of the closure when -R is used
13001 (Gnatbind): Accept arguments starting with '@' to indicate response
13002 files and take the arguments from the response files.
13003 If List_Closure is set, display the referenced files
13004
13005 2007-06-06 Javier Miranda <miranda@adacore.com>
13006 Robert Dewar <dewar@adacore.com>
13007 Ed Schonberg <schonberg@adacore.com>
13008
13009 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
13010 which the address-clause is applied to in-mode actuals (allowed by
13011 13.1(22)).
13012 (Apply_Discriminant_Check): Do not generate a check if the type is
13013 constrained by a current instance.
13014 (Activate_Division_Check): New procedure
13015 (Activate_Overflow_Check): New procedure
13016 (Activate_Range_Check): New procedure
13017 Call these new Activate procedures instead of setting flags directly
13018 (Apply_Array_Size_Check): Removed, no longer needed.
13019 Code clean up: remove obsolete code related to GCC 2.
13020 (Get_E_Length): Protect against bomb in case scope is standard
13021 (Selected_Range_Checks): If the node to be checked is a conversion to
13022 an unconstrained array type, and the expression is a slice, use the
13023 bounds of the slice to construct the required constraint checks.
13024 Improve NOT NULL error messages
13025 (Apply_Constraint_Check): If the context is a null-excluding access
13026 type, diagnose properly the literal null.
13027
13028 2007-06-06 Pascal Obry <obry@adacore.com>
13029
13030 * clean.adb (Clean_Archive): Use untouched casing for the archive name
13031 and the corresponding .deps file.
13032 (Clean_Interface_Copy_Directory): Use untouched casing for the library
13033 src directory. Minor code-clean-up. Use untouched casing for files
13034 read into the library src dir.
13035 (Clean_Library_Directory): Idem.
13036 (Parse_Cmd_Line): Accept new switch -aP
13037
13038 2007-06-06 Javier Miranda <miranda@adacore.com>
13039 Ed Schonberg <schonberg@adacore.com>
13040 Robert Dewar <dewar@adacore.com>
13041 Eric Botcazou <ebotcazou@adacore.com>
13042 Arnaud Charlet <charlet@adacore.com>
13043
13044 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13045 applicable to types that have the With_Type flag set. Returns the
13046 non-limited view of the type, if available, otherwise the type itself.
13047 For class-wide types, there is no direct link in the tree, so we have
13048 to retrieve the class-wide type of the non-limited view of the Etype.
13049 New attributes Static_Initialization and Static_Elaboration_Desired.
13050 Remove the pragma Thread_Body, and the associated flag
13051 Is_Thread_Body in entities, and all related code.
13052 (Suppress_Value_Tracking_On_Call): New flag
13053 E_Exception has Esize and Alignment fields
13054 (Universal_Aliasing): New function.
13055 (Set_Universal_Aliasing): New procedure.
13056 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13057 (Check_Nested_Access): New procedure.
13058 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13059 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13060 (Related_Interface): New attribute. Present in dispatch table pointer
13061 components of records. Set to point to the entity of the corresponding
13062 interface type.
13063 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13064 (Original_Access_Type): Remove, not needed.
13065 (Root_Type): Handle properly subtypes of class-wide-types.
13066 Update comments.
13067
13068 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13069 class-wide types visible through limited-with clauses.
13070 (Try_Primitive_Operation): When examining all primitive operations of a
13071 tagged type, do not consider subprograms labeled as hidden unless they
13072 belong to a private generic type with a tagged parent.
13073 (Try_Object_Operation): Extensive rewriting, to handle properly various
13074 overloading cases, when several ancestors may have class-wide operations
13075 that are possible candidates, and when the overloaded functions return
13076 array types and have defaulted parameters so that the call may be
13077 interpreted as an indexing.
13078 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13079 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13080 successive actuals before analyzing the call itself.
13081 (Try_Primitive_Operation): A primitive operation is compatible with the
13082 prefix if the prefix has a synchronized type and the type of the formal
13083 is its corresponding record, as can be the case when the primitive
13084 operation is declared outside of the body of the type.
13085 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13086 perform homonym traversal, looking for class-wide operation matches
13087 (formerly done in statements of Try_Class_Wide_Operation). Matches on
13088 access parameters are now restricted to anonymous access types.
13089 (Mark_Allocator): An allocator with a discriminant association parent is
13090 a coextension.
13091 (Try_One_Prefix_Interpretation): If the type of the object is
13092 incomplete, as can be happen when it is a limited view obtained through
13093 a limited_with_clause, the selected component is not part of a prefixed
13094 call.
13095 (Complete_Object_Operation): Diagnose properly an object that is not
13096 aliased when the corresponding controlling formal is an access
13097 parameter.
13098 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13099 ambiguous calls in prefixed notation, where two primitives differ only
13100 in that the controlling argument of one is an access parameter.
13101
13102 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13103 whether a function that returns an unconstrained type can be inlined.
13104 (Process_Formals): Diagnose properly the illegal use of an incomplete
13105 type in the profile of an access_to_subprogram declaration.
13106 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13107 operations are attached to the corresponding record.
13108 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13109 When processing a primitive of a concurrent type which implements an
13110 interface change the type of all controlling formals to that of the
13111 corresponding record type.
13112 (Check_Synchronized_Overriding): Relax the conditional logic when trying
13113 to determine the tagged type to which a primitive belongs.
13114 (Check_Conventions): Capture condition to ignore a primitive operation
13115 (which is shared between the loop in Check_Conventions and the one in
13116 Check_Convention) in a new local function Skip_Check.
13117 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13118 confusion with Check_Conventions' own Prim_Op local variable.
13119 (Create_Extra_Formals): Test for a tagged result type rather than a
13120 controlling result when determining whether to add a BIP_Alloc_Form
13121 formal and a BIP_Final_List formal to the function.
13122 (Check_Conformance); For parameters that are anonymous access types,
13123 subtype conformance requires that the not null and the constant
13124 indicators must match
13125 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13126 to retrieve the appropriate type when processing a concurrent type
13127 declared within a generic. Minor comment reformatting. Change invocation
13128 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13129 mitive.
13130 (Analyze_Subprogram_Body): If the return type of a function is an
13131 anonymous access to the limited view of a class-wide type, and the
13132 non-limited view of the type is available, update the type of the
13133 function so that code can be generated.
13134 (Process_Formals): In case of access-subtype itype whose designated
13135 type is also an itype (situation that happens now with access to
13136 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13137 attribute to avoid backend problems.
13138 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13139 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13140 anonymous types' designated types are same before testing
13141 Subtypes_Statically_Match.
13142 (Create_Extra_Formals): Test for a named access parameter that is a
13143 controlling formal as an additional condition for adding an
13144 accessibility level formal. This can occur in the subp type created for
13145 dispatching calls in Expand_Dispatching_Call, and allows calling
13146 Create_Extra_Formals from that procedure rather than special-casing the
13147 extra formals there.
13148 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13149 when the function has a controlling result.
13150 (Check_Returns): Add much more knowledge of the optimization of local
13151 raise statements to gotos, to retain proper warnings in this case.
13152 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13153 nodes when looking for last statement.
13154
13155 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13156 class-wide types visible through limited with clauses.
13157 (Add_One_Interp): If the operands are anonymous access types, the
13158 predefined operator on universal_access is immediately visibles
13159 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13160 other anonymous access types.
13161 (Disambiguate): Take into account CIL convention.
13162 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13163
13164 2007-06-06 Robert Dewar <dewar@adacore.com>
13165
13166 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13167 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13168 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13169 Fix lower bound of tables.
13170 Add rep clauses.
13171
13172 * nlists.adb: Ditto.
13173 (Prev_Node, Next_Node): Change index type to Int so that it properly
13174 covers the range First_Node_Id - 1 up.
13175
13176 2007-06-06 Javier Miranda <miranda@adacore.com>
13177 Ed Schonberg <schonberg@adacore.com>
13178 Bob Duff <duff@adacore.com>
13179 Hristian Kirtchev <kirtchev@adacore.com>
13180
13181 * exp_aggr.ads, exp_aggr.adb:
13182 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13183 in extension aggregates.
13184 (Flatten): Other conditions being met, an aggregate is static if the
13185 low bound given by component associations is different from the low
13186 bound of the base index type.
13187 (Packed_Array_Aggregate_Handled): If the component type is itself a
13188 packed array or record, the front-end must expand into assignments.
13189 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13190 Init_Pr, instead of Ancestor_Is_Expression.
13191 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13192 coextension chain root, either generate a list controller or use the
13193 already existing one.
13194 (Static_Array_Aggregate): New procedure to construct a positional
13195 aggregate that can be handled by the backend, when all bounds and
13196 components are compile-time known constants.
13197 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13198 types covering interface types into assignments.
13199 (Replace_Type): move to Build_Record_Aggr_Code.
13200 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13201 interface type, convert to the definite type of the aggregate itself,
13202 so that needed components are visible.
13203 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13204 components and the context is an extended return statement do not
13205 create a transient block for it, to prevent premature finalization
13206 before the return is executed.
13207 (Gen_Assign): Do not generate a call to deep adjust routine if the
13208 component type is itself an array of controlled (sub)-components
13209 initialized with an inner aggregate.
13210 (Component_Check): New name for Static_Check. This name is now more
13211 appropriate, and documentation is added which was missing.
13212 (Component_Check): Add test for bit aligned component value
13213 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13214 Tagged_Comps, name is more appropriate given added function below.
13215 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13216
13217 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13218 Javier Miranda <miranda@adacore.com>
13219 Robert Dewar <dewar@adacore.com>
13220
13221 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13222 Terminated: Add unchecked type conversion from System.Address to
13223 System.Tasking.Task_Id when calling the predefined primitive
13224 _disp_get_task_id.
13225 Disable new Ada 05 accessibility check for JVM.NET targets, which
13226 cannot be implemented in a practical way.
13227 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13228 the sources always references the tag of the actual object. Therefore,
13229 if 'Tag is applied in the sources to class-wide interface objects we
13230 generate code that displaces "this" to reference the base of the object.
13231 (Expand_N_Attribute_Reference, case Size): Return specified size if
13232 known to front end.
13233 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13234 has code that displaces the pointer of the object to manage interface
13235 types. However this code must not be executed when the prefix is a
13236 subprogram. This bug caused the wrong expansion of the internally
13237 generated assignment that fills the dispatch table when the primitive
13238 is a function returning a class-wide interface type.
13239 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13240 Set_Attribute_Name for Name_Unaligned_Valid.
13241
13242 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13243 Gary Dismukes <dismukes@adacore.com>
13244
13245 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13246 If the initialization is the equivalent aggregate of the initialization
13247 procedure of the type, do not remove it.
13248 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13249 initialized to null from having their expression reset to empty and
13250 note this exception in the comment.
13251
13252 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13253 Robert Dewar <dewar@adacore.com>
13254 Ed Schonberg <schonberg@adacore.com>
13255 Gary Dismukes <dismukes@adacore.com>
13256
13257 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13258 Add "with" and "use" clauses for Sem_Attr.
13259 (Expand_Current_Value): Do not replace occurences of attribute
13260 references where the prefix must be a simple name.
13261
13262 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13263 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13264 Attribute_Requires_Simple_Name_Prefix.
13265 (Name_Modifies_Prefix): Body of new function.
13266 (Requires_Simple_Name_Prefix): Body of new function.
13267 (Resolve_Attribute, case Access): Improve error message for case of
13268 mismatched conventions.
13269 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13270 incomplete type.
13271 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13272 constrained subtype for a nominal unconstrained type, use its base type
13273 to check for conformance with the context.
13274 (Resolve_Attribute): Remove test of the access type being associated
13275 with a return statement from condition for performing accessibility
13276 checks on access attributes, since this case is now captured by
13277 Is_Local_Anonymous_Access.
13278 (Analyze_Access_Attribute): Set Address_Taken on entity
13279 (Analyze_Attribute, case Address): Set Address_Taken on entity
13280 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13281 validating an access attribute whose prefix is a current instance.
13282 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13283 applied to dispatching operations, if freezing is required then we set
13284 the attribute Has_Delayed_Freeze in the prefix's entity.
13285 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13286 current scope if access of local subprogram taken
13287 (Analyze_Access_Attribute): Check legality of self-reference even if the
13288 expression comes from source, as when a single component association in
13289 an aggregate has a box association.
13290 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13291 the prefix if it is a protected operation and the attribute is
13292 Unrestricted_Access.
13293 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13294 reference to the base type of the context, to force a constraint check
13295 when the context is an access subtype with an explicit constraint.
13296 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13297 node is rewritten as an interface conversion. leave unanalyzed after
13298 resolution, to ensure that type checking against the context will take
13299 place.
13300
13301 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13302 Javier Miranda <miranda@adacore.com>
13303 Robert Dewar <dewar@adacore.com>
13304
13305 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13306 wrapper when the full view of the controlling type of an inherited
13307 function that dispatches on result implements interfaces.
13308 (Expand_N_Object_Declaration): In cases where the type of the
13309 declaration is anonymous access, create finalization list for it.
13310 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13311 if the object has no explicit initialization, to match description of
13312 functionality of pragam Persistent_BSS.
13313 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13314 new function to build static aggregates, to replace initialization call
13315 when static initialization is desired.
13316 (Freeze_Type): Generate a list controller for an access type whenever
13317 its designated type has controlled anonymous access discriminants.
13318 (Build_Equivalent_Aggregate): New procedure to compute a static
13319 aggregate to be used as default initialization for composite types,
13320 instead of a generating a call to the initialization procedure for the
13321 type.
13322 (Build_Initialization_Call): When available, replace a call to the
13323 initialization procedure with a copy of the equivalent static aggregate
13324 for the type.
13325 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13326 declarations for objects of a class-wide interface type, rather than
13327 just identifiers, to prevent visibility problems.
13328 (Expand_N_Object_Declaration): When expanding the declaration for an
13329 object of a class-wide interface type, preserve the homonym chain of
13330 the original entity before exchanging it with that of the generated
13331 renaming declaration.
13332 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13333 active, because there is no way to handle the exception.
13334 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13335 to do a minimum decoration of the Access_Disp_Table list.
13336 (Expand_Record_Controller): Avoid the addition of the controller between
13337 the component containing the tag of a secondary dispatch table and its
13338 adjacent component that stores the offset to the base of the object.
13339 This latter component is only generated when the parent type has
13340 discriminants ---documented in Add_Interface_Tag_Components).
13341 (Apply_Array_Size_Check): Removed, no longer needed.
13342 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13343 components, create a Master_Entity for it only if it contains tasks.
13344 (Build_Init_Procedure): Suppress the tag assignment compiling under
13345 no run-time mode.
13346 (Freeze_Record_Type): Remove code associated with creation of dispatch
13347 table.
13348 (Init_Secondary_Tags): Update type of actuals when generating calls to
13349 Ada.Tags.Set_Offset_To_Top
13350 (Stream_Operation_OK): Disable use of streams compiling under no
13351 run-time mode
13352 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13353 if Has_Init_Expression set.
13354 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13355 Register_Primitive, which provides the same functionality.
13356 (Requires_Init_Proc): Return false in case of interface types.
13357 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13358 cleanup the code.
13359 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13360 is always associated with a predefined primitive because the internal
13361 entities associated with interface types are not predefined primitives.
13362 Therefore, the call to Is_Internal is replaced by a call to the
13363 function Is_Predefined_Dispatching_Operation.
13364 (Make_Eq_If): When generating the list of comparisons for the
13365 components of a given variant, omit the controller component that is
13366 present if the variant has controlled components.
13367
13368 2007-06-06 Javier Miranda <miranda@adacore.com>
13369 Hristian Kirtchev <kirtchev@adacore.com>
13370 Bob Duff <duff@adacore.com>
13371
13372 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13373 handle the creation of finalization lists and calls for nested
13374 coextensions when the root of the chains is part of a return statement.
13375 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13376 Finalization.
13377 (Expand_Record_Equality): Skip components that are interface types.
13378 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13379 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13380 with Rewrite_Coextension. Change the condition for detecting coextension
13381 root nodes.
13382 (Is_Local_Access_Discriminant): Removed.
13383 (Rewrite_Coextension): New routine which rewrites a static coextension
13384 as a temporary and uses its unrestricted access in the construction of
13385 the outer object.
13386 (Complete_Coextension_Finalization): New routine. Generate finalization
13387 attachment calls to all delayed coextensions.
13388 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13389 the allocator is not a coextension itself and has delayed coextensions.
13390 If the current allocator is controlled, but also a coextension, delay
13391 the generation of the finalization attachment call.
13392 Rename local variable "Node" to "Nod" in order to avoid confusion with
13393 "Elists.Node".
13394 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13395 limited types that are not inherently limited. Such an allocator is
13396 illegal, but is generated by the expander for a return statement, to
13397 copy the result onto the secondary stack. This is the only case where a
13398 limited object can be copied. Generate code to displace the pointer
13399 to the object if the qualified expression is a class-wide interface
13400 object. Such displacement was missing and hence the copy of the object
13401 was wrong.
13402 (Apply_Accessibility_Check): Handle allocated objects initialized in
13403 place.
13404 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13405 and Expand_Allocator_Expression. Allocating class-wide interface objects
13406 this routine displaces the pointer to the allocated object to reference
13407 the component referencing the corresponding secondary dispatch table.
13408 Expand_Allocator_Expression): Add missing support to allocate class-wide
13409 interface objects initialized with a qualified expression.
13410 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13411 function result type, and use the finalization list associated with the
13412 function scope in that case (such an anonymous type should not be
13413 treated like an access parameter's type).
13414
13415 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13416 Gary Dismukes <dismukes@adacore.com>
13417 Javier Miranda <miranda@adacore.com>
13418
13419 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13420 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13421 required exception handler.
13422 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13423 properly the case of a function whose return type is a limited
13424 class-wide interface type. Modify the code of the accessibility
13425 check to handle class-wide interface objects. In this case we need to
13426 displace "this" to reference the primary dispatch table to get access
13427 to the TSD of the object (to evaluate its accessibility level).
13428 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13429 rather than a controlling result as one of the conditions for
13430 generating tests of the implicit BIP_Alloc_Form formal. The
13431 initialization assignment is also handled according to whether the
13432 result is tagged instead of controlling.
13433 In the case where the init assignment is inserted in the "then" part of
13434 the allocation conditional, rewrite the target to be a dereference of
13435 the implicit BIP_Object_Access formal.
13436 If the returned value is unconstrained and created on the secondary
13437 stack, mark the enclosing block and function so that the secondary
13438 stack is not reclaimed on return.
13439 Treat returns from functions with controlling results similarly to
13440 returns from functions with unconstrained result subtypes.
13441 If the object returned is unconstrained, and an allocator must be
13442 created for it, analyze the allocator once the block for the extended
13443 return is installed, to ensure that finalizable components
13444 of the expression use the proper finalization list. Guard the call to
13445 Move_Final_List with a check that there is something to finalize.
13446 (Make_Tag_Ctrl_Assignment): Use "old" handling
13447 of controlled type assignment for virtual machines, since new code uses
13448 unsupported features (such as direct access to bytes in memory).
13449
13450 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13451 Ed Schonberg <schonberg@adacore.com>
13452
13453 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13454 accessibility actual, check for the case of an aliased object that has
13455 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13456 we fall into processing for the attribute rather than the name of the
13457 object.
13458 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13459 formal has its address taken in the body, create a temporary to capture
13460 value. If the return type is a limited interface, do not treat the
13461 return value as Controlled.
13462 (Is_In_Place_Function): If the return type is a limited interface,
13463 treat as returning in place. The actual returned object may not always
13464 be limited, but the caller has to assume that it is returned in place.
13465 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13466 context of an allocator, use the correct finalization chain (that is,
13467 the chain belonging to the access type, rather than the chain belonging
13468 to the current scope).
13469 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13470 result type rather than a controlling result as a precondition for
13471 adding an allocation form actual to a build-in-place call.
13472 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13473 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13474 primitive in the dispatch tables. This work is now done by Make_DT when
13475 the type is frozen.
13476 (Register_Predefined_DT_Entry): Removed.
13477 (Add_Return): If end label is not present, use sloc of last statement
13478 for generated return statement in procedure, for better gdb behavior
13479 on expanded code.
13480 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13481 object address nodes to ensure proper processing by routines like
13482 Insert_After*.
13483 (Expand_Call): Fix generation of validity check for parameter
13484 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13485 the allocation form parameter if the result subtype is constrained,
13486 except when the function has a controlling result.
13487 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13488 rather than Is_Controlled and Has_Controlled_Component, since we want to
13489 include class-wide result types in this treatment. Also test for a
13490 controlling result, since that also requires passing a finalization
13491 list.
13492 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13493 even when the result subtype is constrained, to handle calls involving
13494 controlling results.
13495 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13496 is now called even when the result subtype is constrained, to handle
13497 calls involving controlling results.
13498 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13499 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13500 now performs the test).
13501 (Make_Build_In_Place_Call_In_Object_Declaration):
13502 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13503 constrained, to handle calls involving controlling results.
13504 (Add_Return): Accomodate rewritten pattern from local raise to goto
13505 transformation, so that we still recognize an transfer statement
13506 and do the right thing here in that case.
13507 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13508 and end of subprogram code.
13509 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13510 support for primitives that are functions (without formals) with a
13511 controlling result.
13512 (Inherited_From_Formal): If the actual subtype has not generic parent
13513 type, it is not an actual for a formal derived type, and there is no
13514 operation to inherit from the formal.
13515
13516 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13517 Thomas Quinot <quinot@adacore.com>
13518
13519 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13520 inserted cleanup code appropriately for GDB use.
13521 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13522 exception handler for Deep_Adjust or Deep_Finalize.
13523 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13524 Raise_From_Controlled_Operation is available, use a call to that
13525 subprogram instead of a plain "raise Program_Error" node to raise
13526 Program_Error if an exception is propagated from an Adjust or Finalize
13527 operation.
13528 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13529 appears in the optional statement list of a triggering alternative, the
13530 scope actions can be inserted directly there, and not in the list that
13531 includes the asynchronous select itself.
13532
13533 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13534 Robert Dewar <dewar@adacore.com>
13535 Hristian Kirtchev <kirtchev@adacore.com>
13536
13537 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13538 generated exception handler appropriately when debugging generated code.
13539 Deal properly with No_Exception_Propagation restriction mode.
13540 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13541 System.Address to System.Tasking.Task_Id when processing the result of
13542 the predefined primitive _disp_get_task_id.
13543 (Expand_N_Asynchronous_Select): Clarify comment.
13544 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13545 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13546 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13547 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13548 privals and for generated call to Complete_Entry_Body, for better gdb
13549 behavior.
13550 (Copy_Result_Type): Utility to construct a parameter and result profile
13551 for protected functions whose return type is an anonymous access to
13552 subprogram.
13553 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13554 call the above.
13555 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13556 point when the local-raise-to-goto transformation has taken place.
13557
13558 2007-06-06 Javier Miranda <miranda@adacore.com>
13559 Nicolas Setton <setton@adacore.com>
13560
13561 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13562 functionality when the backend is generating code.
13563 Otherwise any serious error
13564 reported by the backend calling the frontend routine Error_Msg
13565 changes the Compilation_Mode to Check_Semantics, disables the
13566 functionality of this routine and causes the generation of
13567 spureous additional errors.
13568
13569 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13570 debugging information now generated by the compiler for fat-pointer
13571 types.
13572 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13573 DWARF2/3.
13574 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13575
13576 2007-06-06 Thomas Quinot <quinot@adacore.com>
13577
13578 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13579 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13580 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13581 For a remote call to a function with a classwide return type, apply an
13582 E.4(18) check to the returned value.
13583 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13584 stream attributes of the designated type of an RACW, as they are not
13585 dispatching primitive operations.
13586
13587 2007-06-06 Geert Bosch <bosch@adacore.com>
13588
13589 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13590 negative literal
13591 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13592 positive
13593 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13594 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13595 positive
13596 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13597
13598 2007-06-06 Javier Miranda <miranda@adacore.com>
13599
13600 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13601 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13602
13603 2007-06-06 Javier Miranda <miranda@adacore.com>
13604
13605 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13606 deallocation of class-wide interface objects.
13607 (Expand_Dispatching_Constructor_Call): Take into account that if the
13608 result of the dispatching constructor is an interface type, the
13609 function returns a class-wide interface type; otherwise the returned
13610 object would be actual. The frontend previously accepted returning
13611 interface types because Expand_Interface_Actuals silently performed
13612 the management of the returned type "as if" it were a class-wide
13613 interface type.
13614 (Expand_Dispatching_Constructor_Call): Replace call to
13615 Make_DT_Access_Action by direct call to Make_Function_Call.
13616
13617 2007-06-06 Robert Dewar <dewar@adacore.com>
13618 Ed Schonberg <schonberg@adacore.com>
13619
13620 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13621 compute masking constant, since we now set Esize properly to the
13622 underlying size.
13623 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13624 to match the alignment.
13625 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13626 packed arrays of 8 bits or less.
13627
13628 * freeze.adb (Freeze_Entity): When freezing the formals of a
13629 subprogram, freeze the designated type of a parameter of an access type
13630 only if it is an access parameter.
13631 Increase size of C convention enumeration object
13632 (Freeze_Entity, array type case): Make sure Esize value is properly
13633 adjusted for the alignment if it is known.
13634 (Freeze_Entity, array type case): When checking bit packed arrays for
13635 the size being incorrect, check RM_Size, not Esize.
13636 (Freeze_Record_Type): Check for bad discriminated record convention
13637 (In_Exp_Body): Return true if the body is generated for a subprogram
13638 renaming, either an attribute renaming or a renaming as body.
13639 (Check_Itype): If the designated type of an anonymous access component
13640 is a non-protected subprogram type, indicate that it is frozen, to
13641 prevent out-of-scope freeze node at some subsequent call.
13642 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13643 only if the subprogram is neither imported nor exported, as well as the
13644 NCA descriptor class if the subprogram is exported.
13645
13646 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13647 Arnaud Charlet <charlet@adacore.com>
13648 Robert Dewar <dewar@adacore.com>
13649 Gary Dismukes <dismukes@adacore.com>
13650
13651 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13652 default initialization on an imported object, when there is no
13653 initialization call generated for it.
13654 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13655 restriction
13656
13657 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13658 Static_Elaboration_Desired.
13659 Remove pragma Thread_Body.
13660 Implement a new pragma No_Body
13661 Removes the Explicit_Overriding pragma
13662 Remove Optional_Overriding pragma
13663 (Prag): Deal with Universal_Aliasing.
13664 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13665 Pragma_CIL_Constructor): New names.
13666
13667 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13668 uses the equivalent aggregate of a type must be treated as an implicit
13669 initialization.
13670 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13671 has none of the other categories.
13672 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13673 to apply Import to an object renaming declaration.
13674
13675 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13676 from a C++ class should be declared as limited and that it will be
13677 considererd limited.
13678 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13679 should be declared as limited and that it will be considererd limited.
13680 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13681 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13682 (Analyze_Pragma): Deal with Universal_Aliasing.
13683 (Sig_Flags): Likewise.
13684 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13685 (Overflow_Checks_Unsuppressed): New flag.
13686 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13687 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13688 case of JVM or .NET targets, and compiling user code.
13689 Add debugging convenience routine rv
13690
13691 2007-06-06 Robert Dewar <dewar@adacore.com>
13692
13693 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13694 are interface type.
13695 (Build_Elementary_Input_Call): For floating-point use right type in the
13696 absence of strange size or stream size clauses.
13697 (Build_Elementary_Write_Call): Same fix
13698 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13699 set to value that does not match base type size.
13700
13701 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13702
13703 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13704 object of a limited type can be initialized with a call to a function
13705 that returns in place. If the limited type has unknown discriminants,
13706 and the underlying type is a constrained composite type, build an actual
13707 subtype from the function call, as is done for private types.
13708 (Side_Effect_Free): An expression that is the renaming of an object or
13709 whose prefix is the renaming of a object, is not side-effect free
13710 because it may be assigned through the renaming and its value must be
13711 captured in a temporary.
13712 (Has_Controlled_Coextensions): New routine.
13713 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13714 as is done for other limited types.
13715 (Non_Limited_Designated_Type): new predicate.
13716 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13717 objects.
13718 Remove all handling of with_type clauses.
13719
13720 * par-ch10.adb: Remove all handling of with_type clauses.
13721
13722 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13723 checksum if the main source could not be parsed.
13724 (Loat_Unit): When processing a child unit, determine properly whether
13725 the parent unit is a renaming when the parent is itself a child unit.
13726 Remove handling of with_type clauses.
13727
13728 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13729 (Set_Is_Static_Coextension): New procedure.
13730 (Has_Local_Raise): New function
13731 (Set_Has_Local_Raise): New procedure
13732 (Renaming_Exception): New field
13733 (Has_Init_Expression): New flag
13734 (Delay_Finalize_Attach): Remove because flag is obsolete.
13735 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13736 Remove all handling of with_type clauses.
13737 (Exception_Junk): Can now be set in N_Block_Statement
13738
13739 2007-06-06 Vincent Celier <celier@adacore.com>
13740 Robert Dewar <dewar@adacore.com>
13741
13742 * frontend.adb (Frontend): Return immediately if the main source could
13743 not be parsed, because of preprocessing errors.
13744
13745 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13746 (Gnat1drv): Exit with errors if the main source could not be parsed,
13747 because of preprocessing errors.
13748 (Check_Rep_Info): New procedure
13749
13750 2007-06-06 Robert Dewar <dewar@adacore.com>
13751
13752 * g-hesorg.ads, g-heasor.ads,
13753 g-busorg.ads, g-bubsor.ads: Update documentation
13754 GNAT.Heap/Bubble_Sort_G is now pure
13755
13756 2007-06-06 Robert Dewar <dewar@adacore.com>
13757
13758 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13759
13760 2007-06-06 Robert Dewar <dewar@adacore.com>
13761 Ed Schonberg <schonberg@adacore.com>
13762
13763 * g-comlin.ads, g-comlin.adb:
13764 Add new warning for renaming of function return objects
13765
13766 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13767 (Tree_Read): Use size of object instead of type'object_size, since the
13768 latter is incorrect for packed array types.
13769 (Tree_Write): Same fix
13770
13771 * opt.ads: Add new warning for renaming of function return objects
13772 (Generating_Code): New boolean variable used to indicate that the
13773 frontend as finished its work and has called the backend to process
13774 the tree and generate the object file.
13775 (GCC_Version): Is now private
13776 (Static_Dispatch_Tables): New constant declaration.
13777 (Overflow_Checks_Unsuppressed): New flag.
13778 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13779 (List_Closure): New flag for gnatbind (-R)
13780 Zero_Formatting: New flag for gnatbind (-Z)
13781 (Special_Exception_Package_Used): New flag.
13782 (Warn_On_Unrepped_Components): New flag.
13783
13784 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13785 unit is a compilation unit, rather than relying on its scope, so that
13786 Standard can be renamed.
13787 (Analyze_Object_Renaming): Add new warning for renaming of function
13788 return objects.
13789 Also reject attempt to rename function return object in Ada 83 mode.
13790 (Attribute_Renaming): In case of tagged types, add the body of the
13791 generated function to the freezing actions of the type.
13792 (Find_Type): A protected type is visible right after the reserved word
13793 "is" is encountered in its type declaration. Set the entity and type
13794 rather than emitting an error message.
13795 (New_Scope): Properly propagate Discard_Names to inner scopes
13796 (Check_Nested_Access): New procedure.
13797 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13798 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13799
13800 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13801 Add new warning for renaming of function return objects
13802 (Check_References): Suppress warnings for objects whose type or
13803 base type has Warnings suppressed.
13804 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13805 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13806
13807 2007-06-06 Vincent Celier <celier@adacore.com>
13808 Emmanuel Briot <briot@adacore.com>
13809 Olivier Hainque <hainque@adacore.com>
13810
13811 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13812 absolute value of Header.Block_Size when displaying the freed physical
13813 memory in traces.
13814 (Allocate): Compute Storage_Address using Integer_Address, not
13815 Storage_Offset, because the range of Storage_Offset may not be large
13816 enough.
13817 (Configure): New parameter Low_Level_Traces
13818 (Allocate, Deallocation, Free_Physically): Added low-level traces
13819 (Configure): new parameter Errors_To_Stdout.
13820 (Output_File): new subprogram
13821 (Deallocate, Dereference): Send error messages to the proper stream
13822 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13823 documented. Previous code would send it to the current output file
13824 defined in GNAT.IO, which might not be stdout
13825 (Is_Valid): Adjust comment to mention that a positive reply means that
13826 Header_Of may be used to retrieve the allocation header associated with
13827 the subprogram Storage address argument. Return False early if this
13828 address argument is misaligned.
13829
13830 2007-06-06 Vincent Celier <celier@adacore.com>
13831
13832 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13833 switch -P
13834 (ASIS_Main): New global variable
13835 (Get_Closure): New procedure
13836 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13837 check, metric or pretty. Call Get_Closure in this case.
13838 (Check_Files): For GNAT LIST, check all sources of all projects when
13839 All_Projects is True.
13840 (GNATCmd): Accept -U for GNAT LIST
13841
13842 2007-06-06 Vincent Celier <celier@adacore.com>
13843
13844 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13845 has been specified
13846 Correct error message when invocation of the linker fails
13847 Add explicit size clause for the C imported variables
13848 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13849 we expect char size.
13850 Read target parameters earlier, since this is needed to set
13851 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13852 targets.
13853
13854 2007-06-06 Vincent Celier <celier@adacore.com>
13855
13856 * gnatls.adb:
13857 Add 3 spaces before the default project directory when displaying
13858 the project search path.
13859 Add new command line switch '-l' to display license information.
13860
13861 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13862
13863 * gmem.c: Add support for timestamps on memory operations.
13864
13865 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13866 operations (not used currently, just foundation for future
13867 enhancements). Add possibility to perform full dump of gmem.out file.
13868 (Print_Back_Traces): Declare accesses to root arrays constants since
13869 they aren't modified.
13870 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13871
13872 2007-06-06 Vincent Celier <celier@adacore.com>
13873
13874 * gnatsym.adb: Update Copyright notice
13875 (Parse_Cmd_Line): Accept new switch -D
13876 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13877 file.
13878
13879 * prj.ads (Policy): New policy Direct
13880 (Yes_No_Unknown): New enumeration type
13881 (Project_Data): New component Libgnarl_Needed
13882
13883 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13884 use the untouched pathname casing.
13885 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13886 proper casing on non case-sensitive platforms like Windows.
13887 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13888 on all platforms, as it is not possible to know which one is allowed
13889 before processing the project files.
13890 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13891 specified when symbol policy is Direct. Check that when there is a
13892 symbol file defined (either by default or with attribute
13893 Library_Symbol_File) it is not the same as the reference symbol file.
13894 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13895 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13896 extending projects.
13897 (Record_Ada_Source): Record a source that has been locally removed in an
13898 imported project.
13899
13900 * symbols.ads (Policy): New policy Direct
13901
13902 * symbols-vms.adb (Initialize): Take new policy Direct in case
13903 statement
13904
13905 2007-06-06 Vincent Celier <celier@adacore.com>
13906
13907 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13908 Correct obvious bug (return Dir; instead of return Directory;).
13909 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13910
13911 2007-06-06 Thomas Quinot <quinot@adacore.com>
13912
13913 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13914 they have UNIX line endings (LF only) even on Windows, and thus pass
13915 all GNAT style checks.
13916
13917 2007-06-06 Emmanuel Briot <briot@adacore.com>
13918
13919 * g-regpat.adb (Quote): Fix improper quoting of '.'
13920
13921 2007-06-06 Thomas Quinot <quinot@adacore.com>
13922
13923 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13924 default, set False on a per-runtime basis.
13925 (Need_Netdb_Buffer): New constant.
13926
13927 * g-socket.ads, g-socket.adb: Import new package
13928 GNAT.Sockets.Thin.Task_Safe_NetDB.
13929 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13930 binding to obtain proper message.
13931 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13932 Replace various occurrences of Arry (Arry'First)'Address with the
13933 equivalent Arry'Address (GNAT always follows implementation advice from
13934 13.3(14)).
13935 (Get_Host_By_Address, Get_Host_By_Name,
13936 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13937 instead, rely on platform-specific task safe netdb operations provided
13938 by g-socthi.
13939
13940 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13941 parameter Process_Blocking_IO.
13942 (Host_Error_Messages): Add stub body.
13943 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13944 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13945 Safe_Getservbyport): Move functions into new child package
13946 Task_Safe_NetDB.
13947 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13948 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13949 (In_Addr): Add alignment clause.
13950
13951 2007-06-06 Robert Dewar <dewar@adacore.com>
13952
13953 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13954 Add note about symbolic traceback
13955
13956 2007-06-06 Pascal Obry <obry@adacore.com>
13957
13958 * hostparm.ads (Normalized_CWD): Use the host directory separator
13959 instead of the hardcoded forward slash which is not the proper
13960 character on Windows for example.
13961 (Java_VM): Removed.
13962
13963 2007-06-06 Vincent Celier <celier@adacore.com>
13964 Arnaud Charlet <charlet@adacore.com>
13965
13966 * a-clrefi.adb, a-clrefi.ads: New files
13967
13968 * impunit.adb: Add s-os_lib in the list of user visible units.
13969 (Non_Imp_File_Names_95): Add a-clrefi to this list
13970 Remove obsolete run-time entries.
13971 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13972 "a-exetim" -- Ada.Execution_Time
13973 "a-extiti" -- Ada.Execution_Time.Timers
13974
13975 * mlib-prj.ads, mlib-prj.adb
13976 (Build_Library): Use untouched object dir and library dir. At the
13977 same time makes sure that the checks are done using the canonical
13978 form. Removes hard-coded directory separator and use the proper host
13979 one instead.
13980 (Process_Project): Do not look in object directory to check if libgnarl
13981 is needed for a library, if there is no object directory.
13982 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13983 linking.
13984 (Build_Library): When invoking gnatbind, use a response file if the
13985 total size of the arguments is too large.
13986
13987 * Makefile.rtl: (g-sttsne): New object file.
13988 Add entry for a-clrefi, s-utf_32, System.Exceptions
13989
13990 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13991 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13992 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13993 Change g-string to s-string, g-os_lib to s-os_lib
13994 Change all g-utf_32 references to s-utf_32
13995
13996 2007-06-06 Tristan Gingold <gingold@adacore.com>
13997 Olivier Hainque <hainque@adacore.com>
13998
13999 * init.c: Do not adjust IP of an imported VMS exception of ia64.
14000 LIB$STOP is called to raise an exception and the IP of the exception
14001 is the instruction right after the call.
14002 (__gnat_adjust_context_for_raise, AIX): Implement.
14003 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
14004 adjust_context_for_raise before Raise_From_Signal_Hanler.
14005 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
14006 siginfo is passed to the handler, necessary to let the zcx propagation
14007 engine unwind past it.
14008
14009 2007-06-06 Olivier Hainque <hainque@adacore.com>
14010
14011 * initialize.c (__gnat_initialize for vxworks): Update documentation
14012 on the ZCX support, using different sets of crtstuff objects than with
14013 GCC 3.4.
14014
14015 2007-06-06 Robert Dewar <dewar@adacore.com>
14016
14017 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
14018 spec from body
14019 (Layout_Type): Fix recomputation of size from alignment.
14020
14021 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14022 Javier Miranda <miranda@adacore.com>
14023
14024 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
14025 association in an instance.
14026 (Copy_Generic_Node): If the node is a string literal, no need to copy
14027 its descendants.
14028 (Is_Generic_Formal): For a formal subprogram, the declaration is the
14029 grandparent of the entity.
14030 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
14031 to simplify handling of formal interfaces that derive from other formal
14032 interfaces.
14033 (Instantiate_Subprogram_Body): The defining unit name of the body of
14034 the instance should be a defining identifier.
14035 (Install_Formal_Packages): make global to the package, for use in
14036 instantiations of child units.
14037 (Analyze_Package_Instantiation): Do not attempt to set information on an
14038 enclosing master of an entry when expansion is disabled.
14039 (Instantiate_Type): If the actual is a tagged synchronized type and the
14040 generic ancestor is an interface, create a generic actual for the
14041 corresponding record.
14042 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14043 declaration, to ensure that the interface list is processed correctly.
14044 (Inline_Instance_Body): If enclosing scope is an instance body, remove
14045 its entities from visibiility as well.
14046 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
14047 given with a named association, analyze the expression only, not the
14048 discriminant association itself.
14049 (Reset_Entity): If the analysis of a selected component is transformed
14050 into an expanded name in the prefix of a call with parameters, do not
14051 transform the original node into an expanded name, to prevent visibility
14052 errors in the case of nested generics.
14053 (Check_Private_View): For an array type, check whether the index types
14054 may need exchanging.
14055
14056 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14057 Vincent Celier <celier@adacore.com>
14058
14059 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14060 since both are separated.
14061 Add support for imported CIL packages.
14062 Add further special handling of "value_type" for CIL.
14063 Add special handling of pragma Import for CIL.
14064
14065 * make.ads, make.adb: When switch -eS is used, direct all outputs to
14066 standard output instead of standard error, except errors.
14067 (Absolute_Path): Use untouched casing for the parent directory.
14068 (Add_Library_Search_Dir): Use the untouched directory name.
14069 (Add_Source_Search_Dir): Idem.
14070 (Change_To_Object_Directory): Update output to use proper casing.
14071 (Create_Binder_Mapping_File): Use the untouched filename to set
14072 ALI_Name.
14073 (Gnatmake): Use untouched library and executable directory names.
14074 (Insert_Project_Sources): Use untouched filename for spec and body.
14075 (Is_In_Object_Directory): Use untouched object directory.
14076 (Mark_Directory): Idem.
14077 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14078 contains the non-canonical filename in all cases.
14079 (Change_To_Object_Directory): In verbose mode, display the name of the
14080 object directory we're changing to.
14081 (Compile_Sources): Make sure, when a project file is used, to compile
14082 the body of the unit, when there is one, even when only the spec is
14083 recorded in an ALI file.
14084 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14085 spec to the body.
14086 (Report_Compilation_Failed): New procedure
14087 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14088 procedures moved from the spec to the body.
14089 (Extract_Failure): Removed, not used
14090 Replace explicit raises of exception Bind_Failed and Link_Failed with
14091 calls to Make_Failed with the proper message.
14092 Replace explicit raises of exception Compilation_Failed with calls to
14093 procedure Report_Compilation_Failed.
14094 (Initialize): Create mapping files unconditionally when using project
14095 files.
14096
14097 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14098 Pragma_CIL_Constructor): New names.
14099
14100 * targparm.ads, targparm.adb
14101 (Compiler_System_Version): Removed, no longer used.
14102 (Get_Target_Parameters): Relax checks on system.ads validity. Add
14103 handling of two new system flags: JVM and CLI.
14104
14105 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14106 Arnaud Charlet <charlet@adacore.com>
14107
14108 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14109 time, use the default s-interr body that provides interrupt support
14110 based on signals.
14111 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14112 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14113 g-soccon.ads, and s-taprop.adb for the marte run time.
14114 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14115 timers are supported on marte.
14116 (EH_MECHANISM for marte): Do not use ZCX.
14117 (THREADSLIB for marte): Use -lmarte.
14118 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14119 Add mlib-tgt-specific.o to gnatmake objects
14120 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14121 longer of MLib.Tgt.
14122 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14123 6, either kernel or rtp, use a specialized version of s-osinte.ads.
14124
14125 2007-06-06 Pascal Obry <obry@adacore.com>
14126
14127 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14128
14129 2007-06-06 Vincent Celier <celier@adacore.com>
14130
14131 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14132 separator, use instead the proper host directory separator.
14133 (Copy_ALI_Files): Make sure that an already existing ALI file in the
14134 ALI copy dir is writable, before doing the copy.
14135
14136 * mlib-utl.ads, mlib-utl.adb:
14137 (Gcc): If length of command line is too long, put the list of object
14138 files in a response file, if this is supported by the platform.
14139 (Ar): If invocation of the archive builder is allowed to be done in
14140 chunks and building it in one shot would go above an OS dependent
14141 limit on the number of characters on the command line, build the archive
14142 in chunks.
14143
14144 2007-06-06 Vincent Celier <celier@adacore.com>
14145
14146 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14147 of specified object file is not equal to base name of source.
14148
14149 2007-06-06 Javier Miranda <miranda@adacore.com>
14150 Hristian Kirtchev <kirtchev@adacore.com>
14151 Ed Schonberg <schonberg@adacore.com>
14152
14153 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14154 the full type declaration.
14155 (Analyze_Component_Declaration): Add local variable E to capture the
14156 initialization expression of the declaration. Replace the occurences of
14157 Expression (N) with E.
14158 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14159 limited interface object with a function call.
14160 (Array_Type_Declaration): If the declaration lacks subtype marks for
14161 indices, create a simple index list to prevent cascaded errors.
14162 (Is_Null_Extension): Ignore internal components created for secondary
14163 tags when checking whether a record extension is a null extension.
14164 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14165 and generic formals.
14166 (Derived_Type_Declaration): Add missing support for interface subtypes
14167 and generic formals.
14168 (Analyze_Object_Declaration): If an initialization expression is
14169 present, traverse its subtree and mark all allocators as static
14170 coextensions.
14171 (Add_Interface_Tag_Component): When looking for components that may be
14172 secondary tags, ignore pragmas that can appear within a record
14173 declaration.
14174 (Check_Abstract_Overriding): an inherited function that dispatches on
14175 result does not need to be overriden if the controlling type is a null
14176 extension.
14177 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14178 component declaration, when the prefix is an expanded name.
14179 (Inherit_Component): If the derivation is for a private extension,
14180 inherited components remain visible and their ekind should not be set
14181 to Void.
14182 (Find_Type_Of_Object): In the case of an access definition, always set
14183 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14184 access type of a return object as a local anonymous type.
14185 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14186 range with character literal bounds.
14187 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14188 (Access_Subprogram_Declaration): Indicate that the type declaration
14189 depends on an incomplete type only if the incomplete type is declared
14190 in an open scope.
14191 (Analyze_Subtype_Declaration): Handle properly subtypes of
14192 synchronized types that are tagged, and that may appear as generic
14193 actuals.
14194 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14195 appear as an access discriminant in a private type declaration.
14196 (Add_Interface_Tag_Components): Complete decoration of the component
14197 containing the tag of a secondary dispatch table and the component
14198 containing the offset to the base of the object (this latter component
14199 is only generated when the parent type has discriminants --as documented
14200 in this routine).
14201 (Inherit_Components): Use the new decoration of the tag components to
14202 improve the condition that avoids inheriting the components associated
14203 with secondary tags of the parent.
14204 (Build_Discriminanted_Subtype): Indicate to the backend that the
14205 size of record types associated with dispatch tables is known at
14206 compile time.
14207 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14208 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14209 to include task, protected, and synchronized interfaces as limited
14210 interfaces.
14211 (Process_Discriminants): Remove the setting of
14212 Is_Local_Anonymous_Access on the type of (anonymous) access
14213 discriminants of nonlimited types.
14214 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14215 class-wide entity it is is already present. This situation occurs if
14216 the limited-view has been previously built.
14217 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14218 field.
14219 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14220 Related_Interface.
14221
14222 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14223
14224 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14225 of the type that specify the position of interface tags when the type
14226 inherits discriminated array components from the parent type.
14227 If a component is initialized with a box, check for the presence of a
14228 default expression in its declaration before using its default
14229 initialization procedure.
14230 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14231 component type has a discriminants, create a partial aggregate for it
14232 by copying the discriminants of the component subtype.
14233 Reject attempt to initialize a discriminant with a box.
14234 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14235 associated with dispatch tables is known at compile time.
14236 (Get_Value): If an association in a record aggregate has a box
14237 association, and the corresponding record component has a default
14238 expression, always copy the default expression, even when the
14239 association has a single choice, in order to create a proper
14240 association for the expanded aggregate.
14241
14242 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14243 Robert Dewar <dewar@adacore.com>
14244
14245 * par-ch12.adb (P_Generic_Associations): The source position of an
14246 Others association is that of the others keyword, not that of the token
14247 that follows the box.
14248 (P_Formal_Type_Definition): Handle formal access types that carry a
14249 not null indicator.
14250
14251 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14252 multiple identifier are present, save Scan_State before scanning the
14253 colon, to ensure that separate trees are constructed for each
14254 declaration.
14255 (P_Identifier_Declarations): For object declaration, set new flag
14256 Has_Init_Expression if initialization expression present.
14257 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14258 Improve NOT NULL error messages
14259
14260 2007-06-06 Robert Dewar <dewar@adacore.com>
14261
14262 * par-ch4.adb: (P_Name): Recover from literal used as name
14263
14264 2007-06-06 Vincent Celier <celier@adacore.com>
14265
14266 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14267 defaulted to False.
14268 In the "not" case, recursive call with Complemented set to True.
14269 Do not allow "or" or "and" operators when Complemented is True.
14270
14271 2007-06-06 Vincent Celier <celier@adacore.com>
14272
14273 * prj.adb (Project_Empty): Gives default value for new component
14274 Libgnarl_Needed
14275
14276 * prj-attr.ads: Minor reformatting
14277
14278 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14279 directory using the untouched casing.
14280 (For_All_Source_Dirs): Idem.
14281
14282 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14283 directories specified with switches -aP.
14284 (Add_Search_Project_Directory): New procedure
14285 (Initialize_Project_Path): Put the directories in table
14286 Search_Directories in the project search path.
14287 (Initialize_Project_Path): For VMS, transform into canonical form the
14288 project path.
14289
14290 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14291
14292 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14293 true if configurable run-time or No_Run_Time is set.
14294 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14295 processing an unit which is not the one being compiled.
14296
14297 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14298
14299 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14300 Replace UC by Ada.UC
14301
14302 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14303 Replace UC by Ada.UC
14304
14305 2007-06-06 Robert Dewar <dewar@adacore.com>
14306
14307 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14308
14309 2007-06-06 Robert Dewar <dewar@adacore.com>
14310
14311 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14312 Remove no longer used nodes.
14313
14314 2007-06-06 Javier Miranda <miranda@adacore.com>
14315 Ed Schonberg <schonberg@adacore.com>
14316 Robert Dewar <dewar@adacore.com>
14317
14318 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14319 on obsolescent withed unit in case of limited-withed units.
14320 (Analyze_Compilation_Unit): Add guard to code that removed an
14321 instantiation from visibility, to prevent compiler aborts when
14322 instantiation is abandoned early on.
14323 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14324 current unit being analyzed, and Distinguish local incomplete types
14325 from limited views of types declared elsewhere.
14326 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14327 to state that the class-wide entity is shared by the limited-view
14328 and the full-view.
14329 (Analyze_With_Clause): Improve placement of flag for case of
14330 unimplemented unit.
14331 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14332 manner similar to GNAT.Current_Exception. This is a violation of
14333 restriction (No_Exception_Propagation), and also inhibits the
14334 optimization of local raise to goto.
14335 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14336 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14337 for violation of restriction No_Exception_Propagation.
14338
14339 2007-06-06 Javier Miranda <miranda@adacore.com>
14340 Hristian Kirtchev <kirtchev@adacore.com>
14341 Gary Dismukes <dismukes@adacore.com>
14342
14343 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14344 use of entity Exception_Occurrence if it is not available in the
14345 target run-time.
14346
14347 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14348 concurrent types are declared within an Ada 2005 generic, build their
14349 corresponding record types since they are needed for overriding-related
14350 semantic checks.
14351 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14352 protected type does not implement a task interface or a nonlimited
14353 interface.
14354 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14355 type does not implement a protected interface or a nonlimited interface.
14356 (Single_Task_Declaration, Single_Protected_Declaration): use original
14357 entity for variable declaration, to ensure that debugging information
14358 is correcty generated.
14359 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14360 routines if the expander is not active.
14361 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14362 raise, since special things happen for task exception handlers.
14363
14364 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14365 concurrent types declared within a generic.
14366 (Check_Dispatching_Operation): Do not emit warning about late interface
14367 operations in the context of an instance.
14368 (Check_Dispatching_Call): Remove restriction against calling a
14369 dispatching operation with a limited controlling result.
14370 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14371 Register_Interface_DT_Entry by calls to Register_Primitive.
14372 (Check_Dispatching_Formals): Handle properly a function with a
14373 controlling access result.
14374
14375 2007-06-06 Robert Dewar <dewar@adacore.com>
14376 Arnaud Charlet <charlet@adacore.com>
14377
14378 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14379 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14380 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14381 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14382 message when using a VM, since this attribute is not supported.
14383 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14384
14385 * usage.adb: Add new warning for renaming of function return objects
14386 Indicate that -gnatwp and -gnatwP concern front-end inlining
14387 Add line for -gnatyg
14388 Add usage information for -gnatw.c/C
14389
14390 2007-06-06 Robert Dewar <dewar@adacore.com>
14391 Ed Schonberg <schonberg@adacore.com>
14392
14393 * sem_ch5.adb
14394 (Find_Var): Do not consider function call in test for infinite loop
14395 warning if warnings set off for function entity.
14396 (One_Bound): Do not create a temporary for a loop bound if it is a
14397 character literal.
14398 (Analyze_Assignment): Traverse the right hand side of an assignment and
14399 mark all allocators as static coextensions.
14400 (Analyze_Assignment): Exempt assignments involving a dispatching call
14401 to a function with a controlling access result from the check requiring
14402 the target to be class-wide.
14403
14404 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14405 Ed Schonberg <schonberg@adacore.com>
14406 Robert Dewar <dewar@adacore.com>
14407 Javier Miranda <miranda@adacore.com>
14408
14409 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14410 chain of coextensions when an allocator serves as the root of such a
14411 chain.
14412 (Propagate_Coextensions): Remove the test for the root being an
14413 allocator.
14414 (Resolve_Allocator): Add condition to ensure that all future decoration
14415 occurs on an allocator node. Add processing and cleanup for static
14416 coextensions.
14417 (Valid_Conversion): If the operand type is the limited view of a
14418 class-wide type, use the non-limited view is available to determine
14419 legality of operation.
14420 (Ambiguous_Character): move to spec, for use elsewhere.
14421 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14422 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14423 character literals.
14424 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14425 Do_Division_Check flag explicitly.
14426 (Resolve_Actuals): If the actual is of a synchronized type, and the
14427 formal is of the corresponding record type, this is a call to a
14428 primitive operation of the type, that is declared outside of the type;
14429 the actual must be unchecked-converted to the type of the actual
14430 (Resolve_Call): Kill all current values for any subprogram call if
14431 flag Suppress_Value_Tracking_On_Call is set.
14432 (Resolve_Type_Conversion): Generate error message the the operand
14433 or target of interface conversions come from a limited view.
14434 (Check_Infinite_Recursion): Ignore generated calls
14435 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14436 that an expression that constrains an access discriminant in an
14437 allocator does not denote an object with a deeper level than the
14438 allocator's access type.
14439 (Resolve_Allocator): In the case of an allocator initialized by an
14440 aggregate of a discriminated type, check that associations for any
14441 access discriminants satisfy accessibility requirements by calling
14442 Check_Allocator_Discrim_Accessibility.
14443 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14444 subprogram types in the same fashion as other anonymous access types.
14445 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14446 message that is not a continuation message.
14447 (Resolve_Type_Conversion): Add missing support for conversion to
14448 interface type.
14449 (Resolve_Actuals): Introduce a transient scope around the call if an
14450 actual is a call to a function returning a limited type, because the
14451 resulting value must be finalized after the call.
14452 (Resolve_Actuals): If the call was given in prefix notations, check
14453 whether an implicit 'Access reference or implicit dereference must be
14454 added to make the actual conform to the controlling formal.
14455
14456 2007-06-06 Robert Dewar <dewar@adacore.com>
14457 Javier Miranda <miranda@adacore.com>
14458
14459 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14460 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14461 overriding of an inherited private subprogram now there is no need to
14462 inherit its dispatching slot and reduce the size of the dispatch table.
14463 Set_All_DT_Position now ensures that the same slot is now assigned to
14464 both entities. This is required to statically build the dispatch table.
14465 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14466 of calling Set_All_DT_Position to re-evaluate the position of the
14467 entries in the dispatch table. Such reevaluation is not desired if
14468 the tagged type is already frozen.
14469
14470 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14471 Gary Dismukes <dismukes@adacore.com>
14472 Robert Dewar <dewar@adacore.com>
14473 Javier Miranda <miranda@adacore.com>
14474
14475 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14476 reference acts as an lvalue when the attribute name modifies the prefix
14477 (Is_Coextension_Root): New routine.
14478 (Mark_Static_Coextensions): New routine.
14479 (Type_Access_Level): Revise code for checking the level of the
14480 anonymous access type of a return object.
14481 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14482 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14483 retrieval of the corresponding controlling record type.
14484 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14485 concurrent types declared within a generic as well as class wide types.
14486 Emit a mode incompatibility error whenever a protected entry or routine
14487 override an interface routine whose first parameter is not of mode
14488 "out", "in out" or access to variable.
14489 (Overrides_Synchronized_Primitive): Rename to
14490 Find_Overridden_Synchronized_Primitive.
14491 (Collect_Interface_Components): New subprogram that collects all the
14492 components of a tagged record containing tags of secondary dispatch
14493 tables.
14494 (Add_Global_Declaration): New procedure
14495 (Abstract_Interface_List): Handle properly the case of a subtype of a
14496 private extension.
14497 (Type_Access_Level): In the case of a type whose parent scope is a
14498 return statement, call Type_Access_Level recursively on the enclosing
14499 function's result type to determine the level of the return object's
14500 type.
14501 (Build_Elaboration_Entity): Build name of elaboration entity from the
14502 scope chain of the entity, rather than the unit name of the file name.
14503 (Check_Nested_Access): New procedure.
14504 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14505 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14506 (Get_Renamed_Entity): Utility routine for performing common operation
14507 of chasing the Renamed_Entity field of an entity.
14508
14509 2007-06-06 Robert Dewar <dewar@adacore.com>
14510
14511 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14512 elaboration model
14513 (Check_A_Call): Add check for entry call which was causing blowup
14514
14515 2007-06-06 Olivier Hainque <hainque@adacore.com>
14516
14517 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14518 special code on ia64-vms to handle major incompatibilities between the
14519 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14520 this routine with a very different set of arguments and expectations on
14521 the return value.
14522
14523 2007-06-06 Thomas Quinot <quinot@adacore.com>
14524
14525 * socket.c (__gnat_close_signalling_fd): New function.
14526 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14527 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14528 New supporting functions for task safe Netdb operations.
14529
14530 2007-06-06 Thomas Quinot <quinot@adacore.com>
14531 Olivier Hainque <hainque@adacore.com>
14532
14533 * a-except-2005.ads, a-except-2005.adb
14534 (Raise_From_Controlled_Operation): New procedure in
14535 (private part of) Ada.Exceptions (standard runtime version). Used to
14536 provide informational exception message when Program_Error is raised as
14537 a result of an Adjust or Finalize operation propagating an exception.
14538 (Rmsg_28): Fix description for E.4(18) check.
14539 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14540 propagation starts, to let debuggers know about the event in a reliable
14541 fashion.
14542 Take the address of E and dereference to make sure it is homed on stack
14543 and prevent the stores from being deleted, necessary for proper
14544 debugger behavior on "break exception" hits.
14545 (Local_Raise): Moved to System.Exceptions
14546
14547 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14548 exception message from the current occurrence and raise Program_Error
14549 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14550
14551 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14552 Arnaud Charlet <charlet@adacore.com>
14553
14554 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14555 lock, if needed.
14556
14557 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14558 priority associated to a lock.
14559
14560 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14561 assertion to take into account case of no abort restriction.
14562 (Initialize_Protection_Entries): Add initialization for the field
14563 New_Ceiling associated to the protected object.
14564 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14565 needed.
14566
14567 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14568 since this function needs to be set consistently with Update_Exception.
14569
14570 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14571 since this function needs to be set consistently with Update_Exception.
14572
14573 * s-taskin.ads: Update comments on
14574 Interrupt_Server_Blocked_On_Event_Flag.
14575 (Unbind_Handler): Fix handling of server_task wakeup
14576 (Server_Task): Set self's state so that Unbind_Handler can take
14577 appropriate actions.
14578 (Common_ATCB): Now use a constant from System.Parameters to determine
14579 the max size of the Task_Image field.
14580
14581 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14582 Initialize_Analyzer function.
14583 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14584 take into account case of no abort restriction.
14585 ([Vulnerable_]Complete_Master): Modify assertion.
14586
14587 * s-tataat.adb (Finalize): Use the nestable versions of
14588 Defer/Undefer_Abort.
14589
14590 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14591
14592 * s-tpobop.ads: Update comments.
14593
14594 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14595 of locking the object manually, to avoid inconsistencies between
14596 Lock/Unlock_Entry assertions.
14597
14598 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14599 terminating
14600 application and System.Parameters.No_Abort is True.
14601 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14602 (Unbind_Handler): Fix handling of server_task wakeup
14603 (Server_Task): Set self's state so that Unbind_Handler can take
14604 appropriate actions.
14605
14606 2007-06-06 Thomas Quinot <quinot@adacore.com>
14607
14608 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14609 declarations instead of an explicit null body, for conciseness.
14610
14611 2007-06-06 Robert Dewar <dewar@adacore.com>
14612
14613 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14614 illegal aggregate and the type is still Any_Composite.
14615 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14616
14617 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14618
14619 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14620 to prevent subsequent expansion.
14621
14622 2007-06-06 Robert Dewar <dewar@adacore.com>
14623
14624 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14625
14626 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14627 Robert Dewar <dewar@adacore.com>
14628
14629 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14630 exceptions.
14631 (Write_Itype): Handle case of string literal subtype, which
14632 comes up in this context.
14633 (Update_Itype): when debugging expanded code, update sloc of itypes
14634 associated with defining_identifiers and ranges, for gdb use.
14635 (Sprint_Node_Actual): Add static keyword to object or exception
14636 declaration output if Is_Statically_Allocated is True.
14637 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14638 or task body, so that the tree carries the proper Sloc information for
14639 debugging use.
14640 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14641
14642 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14643
14644 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14645 compile time, to avoid dynamic memory allocation
14646 (Elaboration code): Only use dynamic memory allocation when needed.
14647
14648 2007-06-06 Quentin Ochem <ochem@adacore.com>
14649
14650 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14651 "Overflow_Guard".
14652 (Stack_Analyzer): Added field "Overflow_Guard"
14653 (Task_Result): Added field "Overflow_Guard".
14654 (Index_Str): New constant.
14655 (Task_Name_Str): New constant.
14656 (Actual_Size_Str): New constant.
14657 (Pattern_Array_Element_Size): New constant.
14658 (Get_Usage_Range): New subprogram.
14659 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14660 Now align the output.
14661 Added comments.
14662 (Initialize): Added value for Overflow_Guard.
14663 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14664 Update the value of the overflow guard according to the actual
14665 beginning of the pattern array.
14666 (Initialize_Analyzer): Added parameter Overflow_Guard.
14667 Take this parameter into accound when computing the max size.
14668 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14669 (Report_Result): Removed extra useless procedure.
14670 Updated call to Output_Result.
14671 Moved full computation of the Task_Result here.
14672
14673 2007-06-06 Thomas Quinot <quinot@adacore.com>
14674
14675 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14676 Thread_Blocking_IO, always True by default, set False on a per-runtime
14677 basis.
14678 Add Windows-specific constants
14679 Add new constant Need_Netdb_Buffer.
14680 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14681 not, whether to use getXXXbyYYY_r.
14682
14683 * gsocket.h: Add new constant Need_Netdb_Buffer.
14684 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14685 not, whether to use getXXXbyYYY_r.
14686
14687 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14688
14689 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14690 than their first call.
14691 Add type Dummy_Communication_Block used in the generation of the pre-
14692 defined dispatching primitive _disp_asynchronous_select.
14693 (Storage_Element): Put Pragma Universal_Aliasing on it.
14694
14695 2007-06-06 Vincent Celier <celier@adacore.com>
14696
14697 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14698 function.
14699
14700 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14701 letter if it is not followed by a '/' or a '\'.
14702 (Windows): New Boolean function
14703
14704 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14705 Ada 2005.
14706 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14707 drive letter.
14708 (Containing_Directory): Raise Use_Error when the directory is a root
14709 directory.
14710 (Extension): When returning the result, use a conversion to Result_Type,
14711 not a qualification.
14712
14713 2007-06-06 Robert Dewar <dewar@adacore.com>
14714
14715 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14716 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14717
14718 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14719 Warn_On_Non_Local_Exception to False, to turn off warnings for
14720 No_Exception_Propagation in ZFP runtime.
14721 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14722 back-ends.
14723 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14724
14725 2007-06-06 Vincent Celier <celier@adacore.com>
14726
14727 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14728 switches -R and -Z
14729
14730 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14731 (Scan_Make_Switches): Recognize new switch -aP
14732
14733 2007-06-06 Matthew Gingell <gingell@adacore.com>
14734 Jose Ruiz <ruiz@adacore.com>
14735
14736 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14737 VxWorks task descriptor in the Ada run time, call a C subprogram
14738 (__gnat_get_stack_info) that extracts the required information.
14739
14740 * sysdep.c: Back out temporary lynxos workaround.
14741 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14742 time the stack information associated to the currently executing task.
14743 Only VxWorks systems require this function.
14744
14745 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14746
14747 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14748 add the stack bias if the offset is computed from a frame address.
14749 (__gnat_backtrace): Adjust for above change.
14750
14751 2007-06-06 Thomas Quinot <quinot@adacore.com>
14752
14753 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14754 PE_Non_Transportable_Actual.
14755 (By_Descriptor_Last): New constant.
14756 (By_Copy_Return): Likewise.
14757
14758 2007-06-06 Vincent Celier <celier@adacore.com>
14759
14760 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14761 is.
14762
14763 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14764 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14765 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14766 Add missing comment for /OPTIMIZE=SPACE
14767 Add entry for OPTIMIZE=SPACE
14768 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14769 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14770
14771 2007-06-06 Vincent Celier <celier@adacore.com>
14772 Robert Dewar <dewar@adacore.com>
14773
14774 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14775 -gnatw.C)
14776
14777 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14778 Document gnatbind switch -a
14779 (case Constructions): Document that variables declarations are allowed
14780 for previously declared variables.
14781 Fix external lib project example
14782 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14783 Indicate that "#if not X or Y then" is not allowed in input files to
14784 gnatprep.
14785 Document gnatw.x and gnatw.X warning flags
14786 Mention -Winline switch to activate warnings when back-end inlining is
14787 ineffective.
14788 Add gnatcheck rule descriptions
14789 Describe how to use the GNAT driver to call a tool on a closure.
14790 Describe how to run project-wide checks or metrics.
14791 Document gnatbind's -R option
14792 Updated to account for Ada 2005 support
14793
14794 * gnat_rm.texi (Case Construction): Allow variable declarations for
14795 previously declared variables.
14796 (Representation Clauses and Pragmas): Lift restriction on alignment
14797 clauses for record types.
14798 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14799 Document No_Exception_Propagation restriction
14800 Document No_Body pragma
14801 Updated to account for Ada 2005 support; corrected some typos
14802 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14803
14804 * gnat-style.texi: Make it clear that we never use mode IN for
14805 procedures or functions
14806
14807 * ug_words: Add entries for -gnatw.x and -gnatw.X
14808 Add entries for -gnatw.c/.C
14809
14810 2007-06-06 Pascal Obry <obry@adacore.com>
14811 Vincent Celier <celier@adacore.com>
14812
14813 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14814 dirs and library name.
14815 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14816 comments.
14817 (Build_Library): Idem.
14818 (Compile_Individual_Sources): Idem.
14819 (Compile_Link_With_Gnatmake): Idem.
14820 (Compile_Sources): Idem.
14821 (Get_Imported_Directories): Idem.
14822 (Link_Executables): Idem. Same change for the executable dir.
14823 (Check_Compilation_Needed): C_Source_Path new variable containing
14824 the canonical form of Source_Path to check against the source names
14825 in the dependency file.
14826 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14827 verbose mode, display the name of the object directory we're changing
14828 to.
14829 (Saved_Switches): New name of table X_Switches
14830 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14831 (Usage): New line for switch -aP
14832 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14833 testing if a directory should be added to the search path.
14834
14835 2007-06-06 Javier Miranda <miranda@adacore.com>
14836
14837 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14838 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14839 declaration after freezing point of all its associated tagged types;
14840 otherwise such types are frozen too early.
14841
14842 2007-06-06 Robert Dewar <dewar@adacore.com>
14843
14844 * a-reatim.adb: Documentation addition
14845
14846 * g-cgideb.adb: Minor code reorganization
14847
14848 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14849 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14850 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14851
14852 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14853 function. Change name New_Scope to Push_Scope
14854 (Get_Debug_Flag_K): Remove unused obsolete function.
14855
14856 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14857 Push_Scope.
14858
14859 * makeusg.adb: Update Copyright notice
14860 Add line for switch -aP
14861
14862 * makeusg.adb: Fix wording of some usage messages
14863
14864 * s-assert.adb (Raise_Assert_Failure): Add call to
14865 Debug_Raise_Assert_Failure.
14866
14867 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14868 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14869 is restricted to 1).
14870
14871 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14872
14873 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14874 node location to No_Location when we're not debugging the expanded
14875 code.
14876
14877 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14878
14879 * misc.c (enumerate_modes): Consider log2_b to always be one.
14880
14881 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14882
14883 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14884
14885 2007-05-02 Pascal Obry <obry@adacore.com>
14886
14887 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14888 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14889 encoding support of Stream_IO.
14890 (Write_Unit): Idem.
14891
14892 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14893 filename and corresponding encoding to match the OS requirement.
14894 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14895 routine will fail on specific devices like CON: AUX: ...
14896
14897 PR ada/29856: Add missing braces
14898
14899 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14900
14901 PR ada/31660
14902 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14903
14904 2007-04-21 Jan Hubicka <jh@suse.cz>
14905
14906 * misc.c (gnat_expand_body): Don't call target for destructors,
14907 avoid redundant check on syntax errors.
14908
14909 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14910
14911 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14912 instead of checking GIMPLE_STMT_P in chain_next.
14913
14914 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14915
14916 PR ada/31576
14917 * system-linux-alpha.ads: Disable constant condition warning for the
14918 Default_Bit_Order variable.
14919 * system-linux-s390.ads: Likewise.
14920 * system-linux-s390x.ads: Likewise.
14921 * system-linux-sparc.ads: Likewise.
14922
14923 2007-04-06 Javier Miranda <miranda@adacore.com>
14924 Matt Heaney <heaney@adacore.com>
14925 Robert Dewar <dewar@adacore.com>
14926
14927 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14928 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14929 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14930 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14931 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14932 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14933 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14934 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14935 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14936 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14937 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14938 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14939 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14940 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14941 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14942 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14943 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14944 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14945 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14946 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14947 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14948 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14949 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14950 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14951 s-taprop-tru64.adb, s-taprop-irix.adb,
14952 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14953 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14954 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14955 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14956 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14957 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14958 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14959 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14960 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14961 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14962 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14963 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14964 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14965 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14966 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14967 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14968 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14969 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14970 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14971 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14972 access types.
14973 Update documentation.
14974 Minor rewording.
14975
14976 2007-04-06 Robert Dewar <dewar@adacore.com>
14977
14978 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14979 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14980 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14981 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14982 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14983 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14984 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14985 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14986 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14987 system-hpux-ia64.ads, targparm.adb,
14988 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14989
14990 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14991 kept for bootstrap purposes only.
14992
14993 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14994
14995 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14996 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14997 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14998 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14999
15000 2007-04-06 Robert Dewar <dewar@adacore.com>
15001
15002 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
15003 (Local_Raise): New dummy procedure called when a raise is converted
15004 to a local goto. Used for debugger to detect that the exception
15005 is raised.
15006
15007 * debug.adb: Document new d.g flag (expand local raise statements to
15008 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
15009
15010 * exp_sel.adb: Use Make_Implicit_Exception_Handler
15011
15012 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
15013 suppress warnings for unused handlers.
15014 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
15015 warnings for raise statements not handled locally.
15016 (Get_RT_Exception_Entity): New function
15017 (Get_Local_Call_Entity): New function
15018 (Find_Local_Handler): New function
15019 (Warn_If_No_Propagation): New procedure
15020 (Expand_At_End_Handler): Call Make_Implicit_Handler
15021 (Expand_Exception_Handlers): Major additions to deal with local handlers
15022 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
15023 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
15024 for local raise
15025
15026 * exp_ch11.ads (Get_RT_Exception_Entity): New function
15027 (Get_Local_Call_Entity): New function
15028
15029 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
15030 of restrictions that the binder will never suggest adding.
15031
15032 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
15033 to No_Elist.
15034
15035 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
15036 be with'ed in the presence of pragma Restriction
15037 (No_Exception_Propagation).
15038
15039 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15040
15041 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15042 parameter, then the handler is not a suitable target for a local raise,
15043 and this is a violation of restriction No_Exception_Propagation.
15044 (Analyze_Handled_Statements): Analyze choice parameters in exception
15045 handlers before analyzing statement sequence (needed for proper
15046 detection of local raise statements).
15047 (Analyze_Raise_Statement): Reraise statement is a violation of the
15048 No_Exception_Propagation restriction.
15049
15050 * s-rident.ads: Add new restriction No_Exception_Propagation
15051
15052 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15053 function, like Make_Exception_Handler but sets Local_Raise_Statements
15054 to No_List.
15055 (Add_Unique_Serial_Number): Deal with case where this is called during
15056 processing of configuration pragmas.
15057
15058 2007-04-06 Thomas Quinot <quinot@adacore.com>
15059 Pat Rogers <rogers@adacore.com>
15060 Pascal Obry <obry@adacore.com>
15061
15062 * g-stsifd-sockets.adb: New file.
15063
15064 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15065 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15066 g-socthi-vms.adb: Move signalling
15067 fd management to a nested package, so that they can conveniently be
15068 moved to a subunit that is shared across Windows, VMS, and VxWorks
15069 (Ada implementation) or completed with imported bodies from socket.c
15070 (UNIX case).
15071 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15072 subprograms.
15073 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15074 the signalling file descriptor.
15075 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15076 signalling file descriptor.
15077 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15078 instead of creating a pair of sockets for signalling here.
15079
15080 * g-socthi.adb: Ditto.
15081 Set the runtime process to ignore SIGPIPEs on platforms that support
15082 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15083
15084 * g-socthi-mingw.adb: Ditto.
15085 (WS_Version): Use Windows 2.2.
15086 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15087
15088 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15089 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15090
15091 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15092 added GNAT byte swapping facility
15093 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15094
15095 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15096
15097 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15098 New subprograms.
15099 (__gnat_create_signalling_fds): New subprogram.
15100 Set the runtime process to ignore SIGPIPEs on platforms that support
15101 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15102
15103 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
15104 Vincent Celier <celier@adacore.com>
15105
15106 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15107 New version of Ada.Calendar which supports the new upper bound of Ada
15108 time (2399-12-31 86_399.999999999).
15109 The following modifications have been made to the package:
15110 - New representation of time as count of nanoseconds since the start of
15111 Ada time (1901-1-1 0.0).
15112 - Target independent Split and Time_Of routines which service both
15113 Ada 95 and Ada 2005 code.
15114 - Target independent interface to the Ada 2005 children of Calendar.
15115 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15116 - Handling of non-leap centenial years.
15117 - Updated clock function.
15118 - Updated arithmetic and comparison operators.
15119
15120 * a-caldel.adb (To_Duration): Add call to target independent routine in
15121 Ada.Calendar to handle the conversion of time to duration.
15122
15123 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15124 (UTC Offset).
15125 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15126 set off to 0.
15127 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15128 targets do not have a natural time zone, GMT is used as a default.
15129 (__gnat_get_task_options): New.
15130
15131 * a-direct.adb (Modification_Time): Add with and use clauses for
15132 Ada.Calendar and Ada.
15133 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15134 since it is no longer needed.
15135 (Duration_To_Time): Removed.
15136 (OS_Time_To_Long_Integer): Removed.
15137 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15138 Formatting Time_Of routines which automatically handle time zones,
15139 buffer periods and leap seconds.
15140
15141 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15142 target independent routines in Ada.Calendar.
15143
15144 * a-calfor.ads, a-calfor.adb:
15145 Code cleanup and addition of validity checks in various routines.
15146 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15147 Ada.Calendar.
15148
15149 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15150 independent routine in Ada.Calendar.
15151
15152 2007-04-06 Olivier Hainque <hainque@adacore.com>
15153
15154 * adaint.c:
15155 (convert_addresses): Adjust prototype and dummy definition to expect an
15156 extra file_name argument.
15157
15158 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15159 filling the now expected file_name argument with the appropriate
15160 argv[0] expansion.
15161 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15162 (tracebk): Array of void * instead of char *, corresponding to what
15163 convert_addresses expects.
15164 (exename): New static global, to hold the executable file name to be
15165 used in all convert_addresses invocations.
15166 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15167 change.
15168 (__gnat_gmem_a2l_initialize): Resolve exename.
15169 (__gnat_convert_addresses): Use exename as the convert_addresses
15170 file_name argument.
15171
15172 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15173 "convert_addresses", now expecting a filename argument. Import the
15174 necessary entities to compute the filename to use and pass it to
15175 convert_addresses.
15176
15177 2007-04-06 Matt Gingell <gingell@adacore.com>
15178
15179 * system-aix.ads: Back out previous change.
15180 (Functions_Return_By_DSP): Removed
15181
15182 2007-04-06 Pascal Obry <obry@adacore.com>
15183
15184 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15185 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15186 on Windows.
15187
15188 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15189
15190 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15191 function. Its value changes in different VxWorks versions, and it is
15192 now handled by the function __gnat_get_task_options.
15193
15194 * s-taprop-vxworks.adb (Create_Task): Call the function
15195 __gnat_get_task_options to get the required options for creating a task.
15196
15197 2007-04-06 Pascal Obry <obry@adacore.com>
15198 Thomas Quinot <quinot@adacore.com>
15199
15200 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15201 dealing with filename.
15202 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15203 filename from a standard string to a wide-string depending on the
15204 encoding value.
15205 (__gnat_freopen): Idem.
15206 (__gnat_current_time): New function (wrapper for time(3) standard C
15207 function).
15208
15209 * g-os_lib.ads (Current_Time): New function. Returns the current
15210 system time as an OS_Time value.
15211
15212 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15213 (Monotonic_Clock): Same.
15214
15215 2007-04-06 Quentin Ochem <ochem@adacore.com>
15216
15217 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15218 not on a natural.
15219 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15220
15221 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15222
15223 * a-retide.adb: Add elaboration code to ensure that the tasking run
15224 time is initialized when using delay operations even when no task is
15225 created.
15226
15227 2007-04-06 Javier Miranda <miranda@adacore.com>
15228
15229 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15230 component Num_Prim_Ops.
15231 (Set_Num_Prim_Ops): Removed.
15232 Remove all the assertions because all the routines of this
15233 package are inline always.
15234 (Get_Offset_Index): Add support to primary dispatch tables.
15235 Move the documentation about the dispatch table to a-tags.ads
15236 (Set_External_Tag): Removed
15237 (Inherit_TSD): Removed.
15238 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15239 moved to a-tags.ads
15240 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15241 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15242 of the TSD field "Table" because this field has been renamed to
15243 "Ifaces_Table".
15244 (Inherit_CPP_DT): Removed.
15245 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15246 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15247 declarations have been moved to a-tags.ads
15248 (Check_Size): Removed.
15249 (Expanded_Name): Updated to get access to the new field of TSD
15250 containing the address of the expanded name.
15251 (Get_Access_Level/Set_Access_Level): Removed.
15252 (Get_Predefined_Prim_Op_Address): Removed.
15253 (Set_Predefined_Prim_Op_Address): Removed.
15254 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15255 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15256 (Set_Expanded_Name): Removed.
15257 (Inherit_DT): Removed.
15258 (Inherit_CPP_DT): Removed.
15259 (Set_RC_Offset): Removed.
15260 (Set_TSD): Removed.
15261 (Base_Address): New function that displaces "this" to point to the base
15262 of the object (that is, to point to the primary tag of the object).
15263
15264 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15265 Javier Miranda <miranda@adacore.com>
15266
15267 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15268 anonymous access component, do not create a master_id if type already
15269 has one, as may happen if the type is a subcomponent of a packed array
15270 type.
15271 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15272 Initialize_Tag): Remove code associated with the old CPP pragmas.
15273 CPP_Virtual and CPP_Vtable are no longer supported.
15274 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15275 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15276 (Freeze_Record_Type): Remove call to
15277 Init_Predefined_Interface_Primitives.
15278 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15279 code required to initialize the tags of the secondary dispatch tables.
15280 This leaves the algoritm more clear.
15281 (Init_Secondary_Tags): Add support for concurrent record types
15282 (Make_Predefined_Primitive_Specs): Code cleanup.
15283 (Predefined_Primitive_Bodies): Code cleanup.
15284 (Build_Master_Renaming): New local subprogram.
15285 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15286 anonymous access to task type components.
15287 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15288 subtype indication are resolved during analysis, and must not be done
15289 here.
15290 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15291
15292 2007-04-06 Geert Bosch <bosch@adacore.com>
15293 Ed Schonberg <schonberg@adacore.com>
15294 Javier Miranda <miranda@adacore.com>
15295 Bob Duff <duff@adacore.com>
15296
15297 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15298 for conversion of a Float_Type'Truncation to integer.
15299
15300 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15301 check if a node is an attribute that can be handled directly by the
15302 back end.
15303 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15304 attributes that can be handled directly by the back end.
15305 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15306 use new predicate Is_Access_Protected_Subprogram_Type.
15307 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15308 and Unchecked_Union if it is generated as part of the default Output
15309 procedure for a type with default discriminants.
15310 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15311 if we are compiling under restriction No_Dispatching_Calls.
15312 (Constrained): Use Underlying_Type, in case the type is private without
15313 discriminants, but the full type has discriminants.
15314 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15315 call to Build_Get_Access_Level.
15316 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15317 interface objects requires a call to the run-time subprogram that
15318 returns the base address of the object.
15319 (Valid_Conversion): Improve error message on illegal attempt to store
15320 an anonymous access to subprogram value into a record component.
15321
15322 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15323 null".
15324 (Simplify_Type_Conversion): New procedure that performs simplification
15325 of Int_Type (Float_Type'Truncation (X)).
15326 (Resolve_Type_Conversion): Call above procedure after resolving operand
15327 and before performing checks. This replaces the existing ineffective
15328 code in Exp_Ch4.
15329 (Set_String_Literal_Subtype): When creating the internal static lower
15330 bound subtype for a string literal, use a newly created copy of the
15331 subtree representing the lower bound.
15332 (Resolve_Call): Exclude build-in-place function calls from transient
15333 scope treatment. Update comments to describe this exception.
15334 (Resolve_Equality_Op): In case of dispatching call check violation of
15335 restriction No_Dispatching_Calls.
15336 (Resolve_Call): If the call returns an array, the context imposes the
15337 component type of the array, and the function has one non-defaulted
15338 parameter, rewrite the call as the indexing of a call with a single
15339 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15340 in prefix form.
15341 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15342 the master of the created object is the innermost enclosing statement.
15343 (Remove_Conversions): For a binary operator, check if type of second
15344 formal is numeric, to check if an abstract interpretation is present
15345 in the case of exponentiation as well.
15346
15347 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15348 Bob Duff <duff@adacore.com>
15349
15350 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15351 copying a parameter list in a call, set properly the First_Named_Formal
15352 and Next_Named_Formal fields in the new list and in the enclosing call.
15353 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15354 names, to ease typing in the debugger. Improve comments.
15355 (Watch_Node): New variable, intended to be set in the debugger.
15356 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15357 called when the watched node is created.
15358 (New_Node_Debugging_Output): Combined version of local procedures
15359 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15360 with a parameter so that conditional breakpoints like "if Node = 12345"
15361 work.
15362 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15363 Add Elist1 function
15364
15365 2007-04-06 Thomas Quinot <quinot@adacore.com>
15366 Ed Schonberg <schonberg@adacore.com>
15367 Gary Dismukes <dismukes@adacore.com>
15368
15369 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15370 required for a conversion between two access-to-unconstrained-array
15371 types.
15372 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15373 to discriminant constraints on discriminant objects. This rule must
15374 apply as well to discriminants of protected types in private components.
15375 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15376 object of a null-excluding access type then don't require the
15377 the object declaration to have an expression and don't emit a
15378 run-time check.
15379
15380 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15381 Eric Botcazou <botcazou@adacore.com>
15382
15383 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15384 and made constant.
15385
15386 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15387 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15388 carry any.
15389
15390 * fe.h (Compiler_Abort): Add third parameter.
15391
15392 * misc.c (internal_error_function): Build third argument from current
15393 input location and pass it to Compiler_Abort.
15394
15395 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15396
15397 * cstand.adb (Create_Standard): When the target's storage unit size is
15398 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15399 Standard_String.
15400
15401 2007-04-06 Nicolas Roche <roche@adacore.com>
15402
15403 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15404 absolute path can have the following form: device:/a/b. In this case
15405 '/' should be inserted between the path and the filename.
15406
15407 2007-04-06 Olivier Hainque <hainque@adacore.com>
15408 Eric Botcazou <botcazou@adacore.com>
15409
15410 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15411 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15412 corresponding definition has created the so made visible variable.
15413 Handle anonymous access to protected subprogram.
15414 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15415 object with an address clause volatile. Re-enable original fix.
15416 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15417 too.
15418 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15419 associated with either the Equivalent or Root type, instead of the
15420 naked type node.
15421 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15422 subtree for every field of a global record type.
15423 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15424 discriminants, invoke again variable_size on its newly computed sizes.
15425
15426 2007-04-06 Robert Dewar <dewar@adacore.com>
15427 Thomas Quinot <quinot@adacore.com>
15428 Ed Schonberg <schonberg@adacore.com>
15429 Bob Duff <duff@adacore.com>
15430
15431 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15432 (Next_Component_Or_Discriminant): New function and procedure
15433 (First_Index, First_Literal, Master_Id,
15434 Set_First_Index, Set_First_Literal, Set_Master_Id):
15435 Add missing Ekind assertions.
15436 (Is_Access_Protected_Subprogram_Type): New predicate.
15437 (Has_RACW): New entity flag, set on package entities to indicate that
15438 the package contains the declaration of a remote accecss-to-classwide
15439 type.
15440 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15441 attribute, in case the result type has controlled parts.
15442 (Requires_Overriding): Add this new flag, because "requires
15443 overriding" is subtly different from "is abstract" (see AI-228).
15444 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15445 Is_Abstract_Type. Make sure these are called only when appropriate.
15446 (Has_Pragma_Unreferenced_Objects): New flag
15447
15448 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15449 class-wide, the tag of the right-hand side must be an exact match, not
15450 an ancestor of that of the object on left-hand side.
15451 (Move_Activation_Chain): New procedure to create the call to
15452 System.Tasking.Stages.Move_Activation_Chain.
15453 (Expand_N_Extended_Return_Statement): Generate code to call
15454 System.Finalization_Implementation.Move_Final_List at the end of a
15455 return statement if the function's result type has controlled parts.
15456 Move asserts to Build_In_Place_Formal.
15457 (Move_Final_List): New function to create the call statement.
15458 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15459 tagged type, replace generation of call to the run-time subprogram
15460 CW_Membership by call to Build_CW_Membership.
15461 (Expand_N_Return_Statement): Replace generation of call to the run-time
15462 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15463 (Expand_N_Simple_Function_Return): Replace generation of call to the
15464 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15465
15466 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15467 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15468 access to protected operations.
15469 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15470 master and chain actual parameters to a build-in-place function call
15471 involving tasks.
15472 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15473 statement.
15474 (Make_Build_In_Place_Call_In_Allocator,
15475 Make_Build_In_Place_Call_In_Anonymous_Context,
15476 Make_Build_In_Place_Call_In_Assignment,
15477 Make_Build_In_Place_Call_In_Object_Declaration): Call
15478 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15479 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15480 stubbed procedure with a null body, replace the call with a null
15481 statement without using the full inlining machinery, for efficiency
15482 and to avoid invalid values in source file table entries.
15483
15484 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15485 renamings of calls to build-in-place functions.
15486
15487 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15488 provides the functionality of RTE_Available to record components.
15489 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15490 to avoid undesired overloading.
15491 (Entity): New subprogram that returns the entity for the referened
15492 unit. If this unit has not been loaded, it returns Empty.
15493 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15494 Remove no longer used entities.
15495 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15496 (RE_Type_Specific_Data): New entity.
15497 (RE_Move_Any_Value): New entity.
15498 (RE_TA_A, RE_Get_Any_Type): New entities.
15499 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15500 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15501 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15502 (Entity): New subprogram that returns the entity for the referened
15503 unit. If this unit has not been loaded, it returns Empty.
15504 (RTE): Addition of a new formal that extends the search to the scopes
15505 of the record types found in the chain of the package.
15506
15507 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15508 "abstract subprograms must be visible" message, whether or not the type
15509 is an interface; that is, remove the special case for interface types.
15510 (Analyze_Function_Return): Remove error message "return of task objects
15511 is not yet implemented" because this is now implemented.
15512 (Create_Extra_Formals): Add the extra master and activation chain
15513 formals in case the result type has tasks.
15514 Remove error message "return of limited controlled objects is not yet
15515 implemented".
15516 (Create_Extra_Formals): Add the extra caller's finalization list formal
15517 in case the result type has controlled parts.
15518 (Process_Formals): In case of access formal types there is no need
15519 to continue with the analysis of the formals if we already notified
15520 errors.
15521 (Check_Overriding_Indicator): Add code to check overriding of predefined
15522 operators.
15523 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15524 flags for formals that do not require them,.
15525 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15526 hidden entity is use visible or directly visible.
15527 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15528 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15529 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15530 New_Overloaded_Entity): Split Is_Abstract flag into
15531 Is_Abstract_Subprogram and Is_Abstract_Type.
15532
15533 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15534 a return statement's finalization list to the caller's list, used for
15535 build-in-place functions with result type with controlled parts.
15536 Remove no longer used entities.
15537
15538 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15539 longer needed, because the full type is now limited, and therefore a
15540 pass-by-reference type.
15541 (Foreign_Task_Level): New constant.
15542
15543 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15544 move tasks from the activation chain belonging to a return statement to
15545 the one passed in by the caller, and update the master to the one
15546 passed in by the caller.
15547 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15548 of unactivated tasks, so we don't kill the ones that are being returned
15549 by a build-in-place function.
15550 (Create_Task): Ignore AI-280 for foreign threads.
15551
15552 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15553 Robert Dewar <dewar@adacore.com>
15554 Bob Duff <duff@adacore.com>
15555 Gary Dismukes <dismukes@adacore.com>
15556
15557 * errout.adb (Unwind_Internal_Type): Use predicate
15558 Is_Access__Protected_Subprogram_Type.
15559
15560 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15561 (Freeze_Entity, packed array case): Do not override explicitly set
15562 alignment and size clauses.
15563 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15564 the enclosing subprogram is a child unit body that acts as a spec.
15565 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15566 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15567 Remove all code for DSP option
15568
15569 * layout.adb (Layout_Record_Type): Use First/
15570 Next_Component_Or_Discriminant
15571 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15572 to handle properly the anonymous access case.
15573
15574 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15575 for all access attributes, because overload resolution should work the
15576 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15577 causes the error message for the ambiguous "X'Access = Y'Access" and
15578 "X'Unrestricted_Access = Y'Access" and so forth to match.
15579 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15580 now that anonymous access to protected operations have their own kind.
15581 (Resolve_Attribute): In case of dispatching call check the violation of
15582 restriction No_Dispatching_Calls.
15583 (Check_Array_Type): Check new -gnatyA array index style option
15584
15585 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15586 attempt to derive from a synchronized tagged type.
15587 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15588 type, inherit the class-wide type already created, because it may
15589 already have been used in a self-referential anonymous access component.
15590 (Mentions_T): Recognize self-referential anonymous access components
15591 that use (a subtype of) the class-wide type of the enclosing type.
15592 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15593 Derived_Type for Prev formal on call to
15594 Check_Anonymous_Access_Components rather than Empty.
15595 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15596 a record extension in deciding whether to create a class-wide type,
15597 rather than just checking Tagged_Present.
15598 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15599 to stand-alone object declarations as well as component declarations.
15600 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15601 prevent accidental overwriting when enclosing package appears in
15602 a limited_with_clause.
15603 (Array_Type_Declaration): If the component type is an anonymous access,
15604 the associated_node for the itype is the type declaration itself.
15605 (Add_Interface_Tag_Components): Modified to support concurrent
15606 types with abstract interfaces.
15607 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15608 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15609 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15610 to complete the decoration of synchronized interface types. Add also
15611 a call to Check_Abstract_Interfaces to verify the ARM rules.
15612 (Derive_Interface_Subprograms): Modified to support concurrent types
15613 with abstract interfaces.
15614 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15615 mark, rather than delaying the full resolution depending on context.
15616 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15617 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15618 Array_Type_Declaration,Build_Derived_Record_Type,
15619 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15620 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15621 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15622 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15623 called only when appropriate.
15624 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15625 to private type.
15626 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15627 an itype reference for the anonymous designated subtype, to prevent
15628 scope anonmalies in gigi.
15629 (Build_Itype_Reference): New utility, to simplify construction of such
15630 references.
15631
15632 2007-04-06 Vincent Celier <celier@adacore.com>
15633
15634 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15635 are suppressed, supply an initial dummy entry covering all possible
15636 source locations.
15637
15638 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15639 and start with only one, such as "-RTS=none".
15640 (Collect_Arguments): Do not check for sources outside of projects.
15641 Do not collect arguments if project is externally built.
15642 (Compile_Sources): Do nothing, not even check if the source is up to
15643 date, if its project is externally built.
15644 (Compile): When compiling a predefined source, add -gnatpg
15645 as the second switch, after -c.
15646 (Compile_Sources): Allow compilation of Annex J renames without -a
15647 (Is_In_Object_Directory): Check if the ALI file is in the object
15648 even if there is no project extension.
15649 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15650 gnatbind if the ALI file effectively exists.
15651 (Initialize): Add the directory where gnatmake is invoked in front of
15652 the path if it is invoked from a bin directory, even without directory
15653 information, so that the correct GNAT tools will be used when spawned
15654 without directory information.
15655
15656 * makeusg.adb: Change switch -S to -eS
15657 Add lines for new switches -we, -wn and -ws
15658 Add line for new switch -p
15659
15660 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15661 Treat_As_Error and there are warnings.
15662
15663 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15664 -gnatww Change gnatmake switch -S to -eS
15665 (Scan_Make_Switches): Code reorganisation. Process separately multi
15666 character switches and single character switches.
15667 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15668 False when switch is not recognized by gnatmake.
15669 (Scan_Make_Switches): Set Setup_Projects True when -p or
15670 --create-missing-dirs is specified.
15671
15672 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15673 renamings Calendar, Machine_Code, Unchecked_Conversion and
15674 Unchecked_Deallocation only when Renamings_Included is True.
15675
15676 * par.adb: Allow library units Calendar, Machine_Code,
15677 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15678 when -gnatg is not specified.
15679 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15680 there is no need to generate always a record_definition_node in case
15681 of synchronized interface types.
15682 (SIS_Entry_Active): Initialize global variable to False
15683 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15684 indicate cases where AI-447 says "not null" is legal.
15685
15686 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15687
15688 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15689 files with with several lines starting with the object fileb name.
15690 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15691 is specified.
15692 (Initialize): Add the directory where gprmake is invoked in front of the
15693 path, if it is invoked from a bin directory or with directory
15694 information, so that the correct GNAT tools will be used when invoked
15695 directly.
15696 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15697
15698 * vms_data.ads: Update switches/qualifiers
15699
15700 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15701 Thomas Quinot <quinot@adacore.com>
15702
15703 * exp_aggr.adb:
15704 If the array component is a discriminated record, the array aggregate
15705 is non-static even if the component is given by an aggregate with
15706 static components.
15707 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15708 (Convert_Aggr_In_Allocator): If the allocator is for an access
15709 discriminant and the type is controlled. do not place on a finalization
15710 list at this point. The proper list will be determined from the
15711 enclosing object.
15712 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15713 initialize record controller if needed, before the components, to ensure
15714 that they are properly finalized.
15715 (Build_Record_Aggr_Code): For the case of an array component that has a
15716 corresponding array aggregate in the record aggregate, perform sliding
15717 if required.
15718
15719 2007-04-06 Javier Miranda <miranda@adacore.com>
15720 Gary Dismukes <dismukes@adacore.com>
15721 Ed Schonberg <schonberg@adacore.com>
15722
15723 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15724 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15725
15726 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15727 accessibility on class-wide allocators if the allocator occurs at the
15728 same scope level as the allocator's type. The check is guaranteed to
15729 succeed in that case, even when the expression originates from a
15730 parameter of the containing subprogram.
15731 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15732 under No_Dispatching_Calls restriction. During the semantic analysis
15733 we already notified such violation.
15734 (Tagged_Membership): Constant folding. There is no need to check
15735 the tag at run-time if the type of the right operand is non
15736 class-wide abstract.
15737 Replace call to Is_Ancestor by call to Is_Parent
15738 to support concurrent types with interface types.
15739 (Expand_N_Allocator): Add an assertion associated with the generation
15740 of the master_id.
15741 (Expand_N_Slice): Do not enable range check to nodes associated
15742 with the frontend expansion of the dispatch table.
15743 (Is_Local_Access_Discriminant): Subsidiary function to
15744 Expand_N_Allocator.
15745 (Tagged_Membership): Replace generation of call to the run-time
15746 subprogram CW_Membership by call to Build_CW_Membership.
15747 (Expand_Allocator_Expression): Replace generation of call to the
15748 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15749
15750 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15751 initialize most the TSD components by means of an aggregate.
15752 Modify the declaration of the object containing the TSD
15753 because we now expand code that has a higher level of abstraction.
15754 The TSD has a discriminant containing the Inheritance Depth Level,
15755 value that is used in the membership test but also to fix the size
15756 of the table of ancestors.
15757 (Expand_Interface_Conversion): Insert function body at the closest place
15758 to the conversion expression, to prevent access-before-elaboration
15759 errors in the backend.
15760 Code improved to reduce the size of the dispatch table if
15761 compiling under restriction No_Dispatching_Calls plus code cleanup.
15762 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15763 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15764 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15765 code to return immediately if compiling under No_Dispatching_Calls
15766 restriction.
15767 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15768 CPP_Virtual and CPP_Vtable are no longer supported.
15769 (Expand_Interface_Conversion): Add missing support for interface type
15770 derivations.
15771 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15772 Is_Parent to support concurrent types with interfaces.
15773 (Init_Predefined_Interface_Primitives): Removed.
15774 (Make_Secondary_DT): Modified to support concurrent record types.
15775 (Set_All_DT_Position): Modified to support concurrent record types.
15776 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15777 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15778 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15779 with CW_Membership.
15780 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15781 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15782 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15783 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15784 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15785 (Expand_Dispatching_Call): Replace generation of call to the run-time
15786 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15787 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15788 Address.
15789 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15790 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15791 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15792 Build_Set_Prim_Op_Address.
15793 (Get_Remotely_Callable): Subprogram removed.
15794 (Init_Predefined_Interface_Primitives): Replace generation of call to
15795 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15796 Prims.
15797
15798 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15799 First (Parameter_Associations ()) with the call to First_Actual that
15800 returns an actual parameter expression for both named and positional
15801 associations.
15802
15803 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15804 check violation of restriction No_Dispatching_Calls.
15805 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15806 controlling argument.
15807
15808 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15809 First/Next_Component_Or_Discriminant
15810 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15811 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15812 specify Any_Limited_Interface, and this functionality is already
15813 provided by the function Has_Abstract_Interfaces.
15814 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15815 support concurrent types implementing interfaces.
15816 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15817 specify kind Any_Limited_Interface, and this functionality is already
15818 provided by the function Has_Abstract_Interfaces.
15819 (Remove_Side_Effects): replace Controlled_Type by
15820 CW_Or_Controlled_Type whenever the issue is related to
15821 using or not the secondary stack.
15822
15823 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15824 P_Interface_Type_Definition to fulfill the new interface (the formal
15825 Is_Synchronized is no longer required).
15826
15827 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15828 Update dependencies.
15829
15830 * exp_atag.ads, exp_atag.adb: New file
15831
15832 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15833 Bob Duff <duff@adacore.com>
15834 Cyrille Comar <comar@adacore.com>
15835
15836 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15837 anonymous, use finalization list of enclosing dynamic scope.
15838 (Expand_N_Package_Declaration): For a library package declaration
15839 without a corresponding body, generate RACW subprogram bodies in the
15840 spec (just as we do for the task activation call).
15841 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15842 Is_Abstract_Type. Make sure these are called only when appropriate.
15843 Remove all code for DSP option
15844 (CW_Or_Controlled_Type): new subprogram.
15845
15846 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15847 Ed Schonberg <schonberg@adacore.com>
15848 Gary Dismukes <dismukes@adacore.com>
15849
15850 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15851 parameter. If it is set to true, return a result capped according to
15852 the global upper bound for the index of an entry family.
15853 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15854 (Build_Find_Body_Index): Adjust for above change.
15855 (Entry_Index_Expression): Likewise.
15856 (Is_Potentially_Large_Family): New function extracted from...
15857 (Collect_Entry_Families): ...here. Call it to detect whether the family
15858 is potentially large.
15859 (Build_Entry_Count_Expression): If the family is potentially large, call
15860 Family_Size with 'Cap' set to true.
15861 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15862 a protected version of an operation declared in the private part of
15863 a protected object, because they may be invoked through a callback.
15864 (Set_Privals): If the type of a private component is an anonymous access
15865 type, do not create a new itype for each protected body.
15866 If the body of a protected operation creates
15867 controlled types (including allocators for class-widetypes), the
15868 body of the corresponding protected subprogram must include a
15869 finalization list.
15870 (Build_Activation_Chain_Entity): Build the chain entity for extended
15871 return statements.
15872 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15873 to determine whether operation overrides an inherited primitive.
15874 (Build_Wrapper_Spec): Add code to examine the parents while looking
15875 for a possible overriding candidate.
15876 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15877 hold an actual parameter value since its initialization is separated
15878 from the the declaration. Prevents errors on null-excluding access
15879 formals.
15880
15881 2007-04-06 Thomas Quinot <quinot@adacore.com>
15882 Pablo Oliveira <oliveira@adacore.com>
15883
15884 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15885 Do an Unchecked_Conversion to handle the passage from the Underlying
15886 Type to the Base Type when calling Build_To_Any_Call and
15887 Build_From_Any_Call.
15888 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15889 E_Constant, depending upon Variable formal.
15890 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15891 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15892 parameter that requires an extra constrained parameter, declare
15893 temporary for actual as a variable, not a constant.
15894 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15895 the unit being compiled is the one that contains the stub type.
15896 Change primitive operation name for the RACW associated with a RAS
15897 from Call to _Call so it cannot clash with any legal identifier.
15898 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15899 Is_RAS.
15900 (Append_RACW_Bodies): New subprogram.
15901 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15902 Add_Receiving_Stubs_To_Declarations functions.
15903 When expanding a package body, this list correspond to the
15904 statements in the HSS at the end of the pacakge.
15905 When expanding a package spec, this list correspond to the
15906 spec declarations.
15907 (Add_Receiving_Stubs_To_Declarations): Append the function
15908 registering the receiving stubs at the end of the 'Stmts' list.
15909 (RCI_Package_Locator): Pass the new Version generic formal when
15910 instantiating a RCI_Locator package.
15911 (Build_From_Any_Function): To compute the High bound for an
15912 unconstrained array actual, we add the Low bound with the length.
15913 Thus we must convert the low bound and the length to an appropriate
15914 type before doing the sum.
15915 (Build_Subprogram_Receiving_Stubs, PolyORB):
15916 * Retrieve the extra formals parameters at the
15917 end of the parameter stream.
15918 * Use Move_Any_Value to write back out parameters
15919 after executing the request as it is more efficient
15920 than Copy_Any_Value.
15921 * Build the any containing Extra Formals with the
15922 appropriate typecode.
15923 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15924 empty Component_List.
15925 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15926 the tree the declaration for an object that serves as actual parameter
15927 in server-side stubs.
15928 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15929 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15930 Use Build_Actual_Object_Declaration to prepare the actuals.
15931 (Add_Parameter_To_NVList): Set the parameter mode to In for
15932 Extra Constrained Parameters.
15933 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15934 Extra Constrained parameters.
15935 (Build_To_Any_Function, Build_From_Any_Function,
15936 Built_TypeCode_Function): When Typ is implicit, call the correct
15937 function with the first not implicit parent type.
15938 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15939 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15940 typecode from the Etype. Therefore we retrieve the correct typecode
15941 with a call to Get_Any_Type.
15942 (Copy_Specification): Do controlling formal type substitution based on
15943 Is_Controlling_Formal flag, instead of caller-provided object type.
15944 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15945 a RACW primitive operation, we might get a subprogram declaration for an
15946 ancestor of the RACW designated type (not for the designated type
15947 itself), in the case where this operation is inherited. In this case we
15948 have no easy means of determining the original tagged type for which
15949 the primitive was declared, so instead we now rely on
15950 Copy_Specification to use the Is_Controlling_Formal flag to determine
15951 which formals require type substitution.
15952
15953 2007-04-06 Robert Dewar <dewar@adacore.com>
15954 Ed Schonberg <schonberg@adacore.com>
15955
15956 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15957 GNAT.Current_Exception are not allowed if pragma Restrictions
15958 (No_Exception_Propagation) is set and in any case make the associated
15959 handler unsuitable as a target for a local raise statement.
15960 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15961 run-time subprogram CW_Membership by call to Build_CW_Membership.
15962 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15963 by a function call, a temporary must be created before expanding the
15964 Constructor_Call itself, to prevent out-of-order elaboration in the
15965 back-end when stack checking is enabled..
15966
15967 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15968
15969 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15970 result are the bounds of the left operand, not the right.
15971
15972 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15973
15974 * exp_strm.adb
15975 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15976 discriminant defaults.
15977 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15978 (Make_Component_List_Attributes): Ditto.
15979
15980 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15981 Bob Duff <duff@adacore.com>
15982
15983 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15984 an association with a box as providing a value even though the
15985 initialization procedure for the type is not available.
15986 (Resolve_Record_Aggregate): Check that a choice of an association with a
15987 box corresponds to a component of the type.
15988 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15989 Is_Abstract_Subprogram and Is_Abstract_Type.
15990
15991 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15992 assert.
15993
15994 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15995 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15996 called only when appropriate.
15997
15998 2007-04-06 Olivier Hainque <hainque@adacore.com>
15999
16000 * g-alleve.ads (Low Level Vector type definitions): Map each to the
16001 associated vector view instead of all to the unsigned char view.
16002
16003 * g-altcon.adb (Generic_Conversions): New internal generic package,
16004 offering facilities for all the Vector/View conversion routines
16005 implemented by this unit.
16006 (To_View/To_Vector - all versions): Reimplemented in a systematic
16007 manner, using the internal Generic_Conversions facilities.
16008
16009 2007-04-06 Pascal Obry <obry@adacore.com>
16010
16011 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
16012 string.
16013 (Create): Free the source string before storing the new one.
16014
16015 2007-04-06 Vincent Celier <celier@adacore.com>
16016
16017 * g-debpoo.adb (Validity): New package with a complete new
16018 implementation of subprograms Is_Valid and Set_Valid.
16019 (Is_Valid): Move to local package Validity
16020 (Set_Valid): Move to local package Validity
16021
16022 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16023 Pablo Oliveira <oliveira@adacore.com>
16024
16025 * g-expect.adb (Get_Command_Output): When expanding the output buffer
16026 we must ensure that there is enough place for the new data we are going
16027 to copy in.
16028
16029 2007-04-06 Thomas Quinot <quinot@adacore.com>
16030
16031 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
16032 computation.
16033
16034 2007-04-06 Jose Ruiz <ruiz@adacore.com>
16035 Vincent Celier <celier@adacore.com>
16036
16037 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
16038 (Stack_String): Add this String that contains the name of the Stack
16039 package in the project file.
16040 (Packages_To_Check_By_Stack): Add this list that contains the packages
16041 to be checked by gnatstack, which are the naming and the stack packages.
16042 (Check_Files): If no .ci files were specified for gnatstack we add all
16043 the .ci files belonging to the projects, including binder generated
16044 files.
16045 (Non_VMS_Usage): Document that gnatstack accept project file switches.
16046 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16047 Add gnatstack to the list of commands that use project file related
16048 switches, and get the single attribute Switches from the stack package
16049 in a project file when calling gnatstack. Parse the -U flag for
16050 processing files belonging to all projects in the project tree.
16051 Remove all processing for command Setup
16052
16053 * prj-attr.adb: Add new package Stack with single attribute Switches
16054
16055 * vms_conv.ads (Command_Type): Add command Stack.
16056 Move to body declarations that are only used in the body: types Item_Id,
16057 Translation_Type, Item_Ptr, Item and its subtypes.
16058
16059 * vms_conv.adb: (Initialize): Add data for new command Stack.
16060 Add declarations moved from the spec: types Item_Id, Translation_Type,
16061 Item_Ptr, Item and its subtypes.
16062 (Cargs_Buffer): New table
16063 (Cargs): New Boolean global variable
16064 (Process_Buffer): New procedure to create arguments
16065 (Place): Put character in table Buffer or Cargs_Buffer depending on the
16066 value of Cargs.
16067 (Process_Argument): Set Cargs when processing qualifiers for GNAT
16068 COMPILE
16069 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16070 empty, for table Cargs_Buffer.
16071 (Initialize): Remove component Setup in Command_List
16072
16073 2007-04-06 Vincent Celier <celier@adacore.com>
16074
16075 * gprep.adb (Process_Files.Process_One_File): Use full file name when
16076 issuing pragma Source_Reference.
16077
16078 2007-04-06 Emmanuel Briot <briot@adacore.com>
16079
16080 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16081 [[:xdigit:]] character class.
16082 Also raise an exception when an invalid character class is used.
16083
16084 2007-04-06 Pascal Obry <obry@adacore.com>
16085
16086 * i-cstrea.ads: (fopen): Add encoding parameter.
16087 (freopen): Idem.
16088 Change reference from a-sysdep.c to sysdep.c in comment.
16089 Update copyright notice.
16090 This set of patch add support for the encoding form parameter.
16091
16092 * mingw32.h (S2WSU): New macro to convert from a string to a
16093 wide-string using the UTF-8 encoding. The S2WS macro supports now only
16094 standard 8bits encoding.
16095 (WS2SU): As above but converting from wide-sring to string.
16096 This is needed as it is necessary to have access to both versions in the
16097 runtime for the form parameter encoding support.
16098 This set of patch add support for the encoding form parameter.
16099 (S2WS): Improve implementation to handle cases where the filename is not
16100 UTF-8 encoded. In this case we default to using the current code page
16101 for the conversion.
16102
16103 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16104 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16105 the constants defined in adaint.h.
16106 (fopen): Add encoding parameter.
16107 (freopen): Idem.
16108
16109 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16110 encoding. This is needed for the Reset routine (freopen low level-call).
16111
16112 * s-fileio.adb (Open): Decode encoding form parameter and set the
16113 corresponding encoding value into AFCB structure.
16114 (Reset): Pass the encoding value to freopen.
16115 (Close): Move the call to Lock_Task to the beginning of the procedure.
16116
16117 2007-04-06 Geert Bosch <bosch@adacore.com>
16118 Robert Dewar <dewar@adacore.com>
16119
16120 * i-fortra.ads: Add Double_Complex type.
16121
16122 * impunit.adb: (Is_Known_Unit): New function
16123 Add Gnat.Byte_Swapping
16124 Add GNAT.SHA1
16125 Add new Ada 2005 units
16126 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16127 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16128 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16129 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16130
16131 * impunit.ads (Is_Known_Unit): New function
16132
16133 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16134 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16135 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16136 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16137 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16138 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16139 New files.
16140
16141 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16142
16143 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16144
16145 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16146 Arnaud Charlet <charlet@adacore.com>
16147
16148 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16149 __gnat_adjust_context_for_raise.
16150 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16151 implementation of floating point operations as native x86 targets.
16152 So the FPU should be initialized in the same way using finit. Fix
16153 floating point operations accuracy issues.
16154 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16155 member in struct sigaction, so as to avoid warning for incompatible
16156 pointer types.
16157
16158 2007-04-06 Serguei Rybin <rybin@adacore.com>
16159
16160 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16161 switches from previously loaded tree
16162
16163 2007-04-06 Thomas Quinot <quinot@adacore.com>
16164
16165 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16166 cases where a given dependency has a body or not.
16167 (Write_With_File_Names): New subprogram, common code for the two cases
16168 above.
16169
16170 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16171 Javier Miranda <miranda@adacore.com>
16172
16173 * lib-xref.ads, lib-xref.adb:
16174 Modify the loop that collects type references, to include interface
16175 types that the type implements. List each of these interfaces when
16176 building the entry for the type.
16177 (Generate_Definition): Initialize component Def and Typ of new entry
16178 in table Xrefs, to avoid to have these components unitialized.
16179 (Output_References): Split Is_Abstract flag into
16180 Is_Abstract_Subprogram and Is_Abstract_Type.
16181 (Generate_Reference): Add barrier to do not generate the warning
16182 associated with Ada 2005 entities with entities generated by the
16183 expander.
16184
16185 2007-04-06 Robert Dewar <dewar@adacore.com>
16186 Arnaud Charlet <charlet@adacore.com>
16187 Vincent Celier <celier@adacore.com>
16188
16189 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16190 Update 'Exception Handling Control' chapter which was outdated.
16191 Minor fix to documentation of -gnatwq
16192 Remove section "Adapting the Run Time to a New C++ Compiler" because
16193 it is now obsolete.
16194 Add passage on need of -nostart-files in some non-ada-main cases.
16195 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16196 Update documentation about Interfacing with C++
16197 Add documentation for new gnatmake switch -p
16198 Add missing protocol part in URLs.
16199 Document -gnatyA
16200 Document pragma Compile_Time_Error
16201 Add documentation for Object_Size indicating that stand alone
16202 objects can have a larger size in some cases.
16203 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16204 Update reference to the Ravenscar profile.
16205 Document pragma Unreferenced_Objects
16206
16207 * gnat-style.texi: Fix typo
16208
16209 2007-04-06 Vincent Celier <celier@adacore.com>
16210
16211 * mlib.adb (Building_Library): Only output "building a library..." in
16212 verbose mode
16213
16214 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16215 files in verbose mode.
16216
16217 * mlib-utl.adb (Ar): Only output the first object files when not in
16218 verbose mode.
16219 (Gcc): Do not display all the object files if not in verbose mode, only
16220 the first one.
16221
16222 2007-04-06 Robert Dewar <dewar@adacore.com>
16223
16224 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16225 it no longer destroys the contents of Name_Buffer or Name_Len and
16226 non-standard and invalid names are handled better.
16227 (Get_Decoded_Name_String): Improve performance by using
16228 Name_Has_No_Encodings flag in the name table.
16229 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16230 Used for debugging printouts.
16231
16232 2007-04-06 Robert Dewar <dewar@adacore.com>
16233 Javier Miranda <miranda@adacore.com>
16234 Bob Duff <duff@adacore.com>
16235
16236 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16237 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16238 there is no need to generate always a record_definition_node in case
16239 of synchronized interface types.
16240 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16241 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16242 illegal in Ada 95, in cases where it is legal. Change the warnings to
16243 errors in other cases. Don't give the error unless the "not null"
16244 parses properly. Correct the source position at which the error occurs.
16245 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16246 P_Null_Exclusion, to suppress "not null" warnings.
16247 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16248 associated goto statements.
16249
16250 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16251 of END RECORD
16252
16253 * scans.ads (Type_Token_Location): New flag
16254
16255 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16256 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16257 P_Null_Exclusion, to suppress "not null" warnings.
16258
16259 2007-04-06 Robert Dewar <dewar@adacore.com>
16260 Javier Miranda <miranda@adacore.com>
16261 Bob Duff <duff@adacore.com>
16262 Vincent Celier <celier@adacore.com>
16263
16264 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16265 (Extensions_Allowed): No longer sets Ada_Version
16266 Entry for pragma Unreferenced_Objects
16267
16268 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16269 system.tasking if pragma priority used in a procedure
16270 (Analyze_Pragma, case Warning): Handle dot warning switches
16271 (Process_Compile_Time_Warning_Or_Error): New procedure
16272 (Analyze_Pragma): Add processing for Compile_Time_Error
16273 Add support for extra arguments External_Name and Link_Name.
16274 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16275 (Process_Import_Or_Interface): Add support for the use of pragma Import
16276 with tagged types.
16277 (Extensions_Allowed): No longer affects Ada_Version
16278 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16279 Is_Abstract_Type. Make sure these are called only when appropriate.
16280 Add processing for pragma Unreferenced_Objects
16281
16282 * snames.h, snames.ads, snames.adb: Add entry for pragma
16283 Compile_Time_Error
16284 Add new standard name Minimum_Binder_Options for new gprmake
16285 Add new standard names for gprmake: Archive_Suffix,
16286 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16287 Library_Support, Library_Version_Options,
16288 Shared_Library_Minimum_Options,
16289 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16290 Change Name_Call to Name_uCall so that it cannot clash with a legal
16291 subprogram name.
16292 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16293 Append C_Plus_Plus to convention identifiers as synonym for CPP
16294 Add new standard names Stack and Builder_Switches
16295 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16296 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16297 Run_Path_Option, Toolchain_Version.
16298 Entry for pragma Unreferenced_Objects
16299
16300 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16301 switches, without repetition of "eD". Make sure that last character of
16302 -gnatep= switch is not taken as -gnat switch character.
16303 Complete rewrite of circuit for handling saving compilation options
16304 Occasioned by need to support dot switchs for -gnatw, but cleans up
16305 things in general.
16306 -gnatX does not affect Ada_Version
16307 Include -gnatyA in -gnatg style switches
16308
16309 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16310 warnings on return objects.
16311 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16312 (Set_Dot_Warning_Switch): New procedure
16313 (Check_References): Add missing case of test for
16314 Has_Pragma_Unreferenced_Objects
16315 (Output_Unreferenced_Messages): Implement effect of new pragma
16316 Unreferenced_Objects, remove special casing of limited controlled
16317 variables.
16318
16319 2007-04-06 Vincent Celier <celier@adacore.com>
16320
16321 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16322 the default project path, initially done during elaboration of the
16323 package.
16324 If the prefix returned by Sdefault is null, get the prefix from a call
16325 to Executable_Prefix_Path.
16326 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16327 null.
16328
16329 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16330 canonical directory name to open the directory from which files are
16331 retrieved.
16332 (Record_Other_Sources): Idem.
16333 (Locate_Directory): Add the possibility to create automatically missing
16334 directories when Setup_Projects is True.
16335 Call Locate_Directory so that the directory will be created when
16336 Setup_Projects is True, for object dir, library dir, library ALI dir,
16337 library source copy dir and exec dir.
16338
16339 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16340 versions of GNAT.
16341
16342 2007-04-06 Robert Dewar <dewar@adacore.com>
16343
16344 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16345 Use First/Next_Component_Or_Discriminant
16346 (Analyze_Record_Representation_Clause):
16347 Use First/Next_Component_Or_Discriminant
16348 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16349 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16350 definition if type is unconstrained.
16351 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16352 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16353 Is_Abstract_Subprogram and Is_Abstract_Type.
16354 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16355
16356 * repinfo.adb (List_Record_Info): Use First/
16357 Next_Component_Or_Discriminant.
16358
16359 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16360 New procedure.
16361
16362 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16363 Include -gnatyA in default switches
16364
16365 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16366 (Warn_On_Reverse_Bit_Order): New flag
16367 (Extensions_Allowed): Update the documentation.
16368 (Warn_On_Questionable_Missing_Parens): Now on by default
16369
16370 * usage.adb: Add documentation of -gnatw.x/X switches
16371 Document new -gnatyA style switch
16372 -gnatq warnings are on by default
16373
16374 2007-04-06 Ed Falis <falis@adacore.com>
16375
16376 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16377 full word is no longer compared twice.
16378
16379 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16380
16381 * sem_ch10.adb (Install_Limited_Context_Clauses.
16382 Expand_Limited_With_Clause): Use a new copy of selector name in the
16383 call to Make_With_Clause. This fixes the tree structure for ASIS
16384 purposes. Nothing is changed in the compiler behaviour.
16385 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16386 a package renaming.
16387 (Install_Limited_With_Clauses): Do not install non-limited view when it
16388 is still incomplete.
16389
16390 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16391 Gary Dismukes <dismukes@adacore.com>
16392
16393 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16394 when capturing size information, instead of base type, which for a
16395 formal array type will be the unconstrained type.
16396 (Analyze_Formal_Object_Declaration): Add check for illegal default
16397 expressions for a formal in object of a limited type.
16398 (Instantiate_Object): Ditto.
16399 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16400 because they were defaulted in the formal package and no check applies
16401 to them.
16402 (Check_Formal_Package_Instance): Extend conformance check to other
16403 discrete types beyond Integer.
16404 (Process_Default): Copy directly the unmatched formal. A generic copy
16405 has already been performed in Analyze_Formal_Package.
16406 (Analyze_Associations): If a formal subprogram has no match, check for
16407 partial parametrization before looking for a default, to prevent
16408 spurious errors.
16409 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16410 not set the instantiation environment before analyzing the actuals.
16411 Fixes regression on 8515-003 with implementation of AI-133.
16412 Set_Instance_Env checks whether the generic unit is a predefined
16413 unit, in which case the instance must be analyzed with the latest Ada
16414 mode. This setting must take place after analysis of the actuals,
16415 because the actuals must be analyzed and frozen in the Ada mode extant
16416 outside of the current instantiation.
16417 (Save_Env, Restore_Env): Preserve and restore the configuration
16418 parameters so that predefined units can be compiled in the proper Ada
16419 mode.
16420 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16421 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16422 and Is_Abstract_Type.
16423 (Analyze_Formal_Package): For better error recovery, Add exception
16424 handler to catch Instantion_Error, which can be raised in
16425 Analyze_Associations
16426
16427 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16428 Bob Duff <duff@adacore.com>
16429 Gary Dismukes <dismukes@adacore.com>
16430
16431 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16432 prefix type is a discriminated subtype of the type of the formal.
16433 (Analyze_Allocator): Collect all coextensions regardless of the context.
16434 Whether they can be allocated statically is determined in exp_ch4.
16435 (Analyze_Selected_Component): If the prefix is a limited view and the
16436 non-limited view is available, use the non-limited one.
16437 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16438 therefore illegal), suggest a qualified expression rather than a type
16439 conversion, because a type conversion would be illegal in this context.
16440 (Anayze_Allocator): Trace recursively all nested allocators so that all
16441 coextensions are on the corresponding list for the root. Do no mark
16442 coextensions if the root allocator is within a declaration for a stack-
16443 allocated object, because the access discriminants will be allocated on
16444 the stack as well.
16445 (Analyze_Call): Remove restriction on calls to limited functions for the
16446 cases of generic actuals for formal objects, defaults for formal objects
16447 and defaults for record components.
16448 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16449 element list. Their expansion is delayed until the enclosing allocator
16450 is processed and its finalization list constructed.
16451 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16452 for an operation with the given name among the primitive operations of
16453 the corresponding record type.
16454 (Analyze_Selected_Component): If the prefix is a task type that
16455 implements an interface, and there is no entry with the given name,
16456 check whether there is another primitive operation (e.g. a function)
16457 with that name.
16458 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16459 properly the indexing of a function call written in prefix form, where
16460 the function returns an array type, and all parameters of the function
16461 except the first have defaults.
16462 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16463 the original operands, rather than relocating them, for efficiency and
16464 to work properly when an operand is overloaded.
16465 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16466 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16467 (Analyze_Selected_Component): If the prefix is a private extension, only
16468 scan the visible components, not those of the full view.
16469 (Try_Primitive_Operation): If the operation is a procedure, collect all
16470 possible interpretations, as for a function, because in the presence of
16471 classwide parameters several primitive operations of the type can match
16472 the given arguments.
16473
16474 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16475 Robert Dewar <dewar@adacore.com>
16476
16477 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16478 tag-indeterminate call to an abstract function, when the left-hand side
16479 is not classwide.
16480 (Analyze_Loop_Statement): Improve detection of infinite loops
16481
16482 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16483 Thomas Quinot <quinot@adacore.com>
16484
16485 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16486 out of Analyze_Package_Declaration, because processing must be applied
16487 to package bodies as well, for deferred constants completed by pragmas.
16488 (Analyze_Package_Declaration): When the package declaration being
16489 analyzed does not require an explicit body, call Check_Completion.
16490 (May_Need_Implicit_Body): An implicit body is required when a package
16491 spec contains the declaration of a remote access-to-classwide type.
16492 (Analyze_Package_Body): If the package contains RACWs, append the
16493 pending subprogram bodies generated by exp_dist at the end of the body.
16494 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16495 Is_Abstract_Subprogram and Is_Abstract_Type.
16496 (Preserve_Full_Attributes): The full entity list is not an attribute
16497 that must be preserved from full to partial view.
16498
16499 * sem_dist.adb (Add_RAS_Dereference_TSS):
16500 Change primitive name to _Call so it cannot clash with any legal
16501 identifier, and be special-cased in Check_Completion.
16502 Mark the full view of the designated type for the RACW associated with
16503 a RAS as Comes_From_Source to get proper view switching when installing
16504 private declarations.
16505 Provite a placeholder nested package body along with the nested spec
16506 to have a place for Append_RACW_Bodies to generate the calling stubs
16507 and stream attributes.
16508
16509 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16510 Robert Dewar <dewar@adacore.com>
16511
16512 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16513 that is a limited view, check the non-limited view if available.
16514 (Undefined): Refine error message for missing with of Text_IO
16515 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16516 to distinguish real missing with cases.
16517 Fix format of all missing with messages
16518 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16519 renaming as body when renamed entity is abstract.
16520
16521 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16522 Javier Miranda <miranda@adacore.com>
16523
16524 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16525 predicate recursive, to handle complex expressions on literals whose
16526 spurious ambiguity comes from the abstract interpretation of some
16527 subexpression.
16528 (Interface_Present_In_Ancestor): Add support to concurrent record
16529 types.
16530 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16531 Is_Abstract_Subprogram and Is_Abstract_Type.
16532
16533 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16534 Javier Miranda <miranda@adacore.com>
16535
16536 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16537 dereference of a local object R created as a reference to another
16538 object O, use the access level of O.
16539 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16540 rather than local Same_Formal_Type, to check whether protected operation
16541 overrides an inherited one.
16542 (Same_Formal_Type): New predicate, used when matching signatures of
16543 overriding synchronized operations, to handle the case when a formal
16544 has a type that is a generic actual.
16545 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16546 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16547 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16548 syntactic ambiguities involving indexing of function calls that return
16549 arrays.
16550 (Abstract_Interface_List): New subprogram that returns the list of
16551 abstract interfaces associated with a concurrent type or a
16552 concurrent record type.
16553 (Interface_Present_In_Parent): New subprogram used to check if a
16554 given type or some of its parents implement a given interface.
16555 (Collect_Abstract_Interfaces): Add support for concurrent types
16556 with interface types.
16557 (Has_Abstract_Interfaces): Add support for concurrent types with
16558 interface types.
16559 (Is_Parent): New subprogram that determines whether E1 is a parent
16560 of E2. For a concurrent type its parent is the first element of its
16561 list of interface types; for other types this function provides the
16562 same result than Is_Ancestor.
16563 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16564 (Collect_Synchronized_Interfaces): Removed because the subprogram
16565 Collect_Abstract_Interfaces provides this functionality.
16566 (Collect_Abstract_Interfaces): Minor update to give support to
16567 concurrent types and thus avoid undesired code duplication.
16568 (Get_Subprogram_Entity): Handle entry calls.
16569 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16570 entry calls.
16571 (Enter_Name): Do not give -gnatwh hiding warning for record component
16572 entities, they never result in hiding.
16573
16574 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16575 Robert Dewar <dewar@adacore.com>
16576
16577 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16578 to chain nested components that are allocators for access discriminants
16579 of the enclosing object.
16580 Add N_Push and N_Pop nodes
16581 New field Exception_Label added
16582 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16583 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16584 (Is_Coextension): New flag for allocators, to mark allocators that
16585 correspond to access discriminants of dynamically allocated objects.
16586 (N_Block_Statement): Document the fact that the corresponding entity
16587 can be an E_Return_Statement.
16588 (Is_Coextension): New flag for allocators.
16589 Remove all code for DSP option
16590
16591 * sprint.ads, sprint.adb: Display basic information for class_wide
16592 subtypes. Add handling of N_Push and N_Pop nodes
16593
16594 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16595
16596 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16597 before propagating exception.
16598
16599 2007-04-06 Olivier Hainque <hainque@adacore.com>
16600
16601 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16602 an address always within the call instruction from a return address.
16603
16604 2007-04-06 Olivier Hainque <hainque@adacore.com>
16605 Eric Botcazou <botcazou@adacore.com>
16606
16607 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16608 expression with a COMPOUND_EXPR including the call instead of emitting
16609 the call directly here.
16610 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16611 high bound is constant and the slice is empty. Tidy.
16612 (tree_transform, case N_Op_Not): Handle properly the case where the
16613 operation applies to a private type whose full view is a modular type.
16614 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16615 Address_Clause, use the associated Expression as the GNAT tree
16616 representing the choice value to ensure the corresponding GCC tree is
16617 of the proper kind.
16618 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16619 instead of just the operands, as the base GCC stabilize_reference does.
16620 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16621 requested; otherwise fail.
16622 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16623
16624 2007-04-06 Thomas Quinot <quinot@adacore.com>
16625
16626 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16627 implementation of UI_Div.
16628 (UI_Div): Reimplement as a call to UI_Div_Rem.
16629 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16630 remainder, avoiding the cost of a multiplication and a subtraction.
16631 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16632 provides both quotient and remainder in a single computation.
16633 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16634 functions for uint.
16635 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16636 is undefined if the given n is not inversible.
16637
16638 2007-04-06 Olivier Hainque <hainque@adacore.com>
16639
16640 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16641 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16642 opcodes.
16643
16644 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16645 Olivier Hainque <hainque@adacore.com>
16646
16647 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16648 when updating the contents of the old pointer to an unconstrained array.
16649 (end_subprog_body): Set error_gnat_node to Empty.
16650 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16651 (unchecked_convert): For subtype to base type conversions, require that
16652 the source be a subtype if it is an integer type.
16653 (builtin_decls): New global, vector of available builtin functions.
16654 (gnat_pushdecl): Add global builtin function declaration nodes to the
16655 builtin_decls list.
16656 (gnat_install_builtins): Adjust comments.
16657 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16658 calling gnat_pushdecl, so that it knows when it handed a builtin
16659 function declaration node.
16660 (builtin_decl_for): Search the builtin_decls list.
16661
16662 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16663
16664 * s-stchop-vxworks.adb:
16665 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16666
16667 2007-04-06 Robert Dewar <dewar@adacore.com>
16668 Arnaud Charlet <charlet@adacore.com>
16669
16670 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16671
16672 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16673 of files
16674 Add mention of -Sev (set initialize_scalars option from environment
16675 variable at run time) in gnatbind usage message.
16676
16677 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16678
16679 * fname-uf.ads: Minor comment fix
16680
16681 * osint.ads: Change pragma Elaborate to Elaborate_All
16682
16683 * par-load.adb: Add documentation.
16684
16685 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16686
16687 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16688
16689 * s-secsta.ads: Extra comments
16690
16691 * s-soflin.ads: Minor comment fixes
16692
16693 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16694
16695 * s-wchcon.ads: Minor comment addition
16696
16697 * treepr.adb: Minor change in message
16698 (Print_Name,Print_Node): Make these debug printouts more robust: print
16699 "no such..." instead of crashing on bad input.
16700
16701 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16702
16703 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16704 instead of gnat_signed_or_unsigned_type.
16705 * utils.c (gnat_signed_or_unsigned_type): Remove.
16706 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16707 * gigi.h (gnat_signed_or_unsigned_type): Remove
16708
16709 2007-03-09 Roger Sayle <roger@eyesopen.com>
16710
16711 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16712 fold with the result of buildN.
16713 * decl.c (gnat_to_gnu_entity): Likewise.
16714 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16715 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16716 Likewise.
16717 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16718 nonbinary_modular_operation, build_binary_op, build_unary_op,
16719 build_cond_expr): Likewise.
16720
16721 * utils.c (convert): Use fold_build1 when casting values to void.
16722 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16723 fold_convert instead of convert when appropriate.
16724
16725 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16726
16727 * Make-lang.in: Add install-pdf target as copied from
16728 automake v1.10 rules.
16729
16730 2007-02-28 Andreas Schwab <schwab@suse.de>
16731
16732 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16733 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16734 (doc/gnat-style.info): Likewise.
16735
16736 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16737
16738 * gnat-style.texi: Standardize title page.
16739 * gnat_rm.texi: Likewise.
16740 * gnat_ugn.texi: Likewise.
16741
16742 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16743
16744 * decl.c (annotate_value): Adjust for refactoring of tree_map
16745 hierarchy.
16746
16747 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16748
16749 * decl.c (annotate_value): Adjust for refactoring of tree_map
16750 hierarchy.
16751
16752 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16753
16754 PR ada/18819
16755 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16756 untagged derived type, add hidden components to keep discriminant
16757 layout consistent, when a given discriminant of the derived type
16758 constraints several discriminants of the parent type.
16759
16760 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16761 Sandra Loosemore <sandra@codesourcery.com>
16762
16763 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16764 build the call expression.
16765 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16766 * utils.c (max_size) <tcc_exceptional>: Delete.
16767 <tcc_vl_exp>: New case.
16768 <tcc_expression>: Delete CALL_EXPR subcase.
16769 (build_global_cdtor): Use build_call_nary instead of build3.
16770 * utils2.c (build_call_1_expr): Likewise.
16771 (build_call_2_expr): Likewise.
16772 (build_call_0_expr): Likewise.
16773 (build_call_alloc_dealloc): Likewise.
16774
16775 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16776
16777 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16778 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16779 and _Unwind_SWord with _sleb128_t.
16780
16781 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16782
16783 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16784 * decl.c: Include gt-ada-decl.h.
16785 (annotate_value_cache): New.
16786 (annotate_value): Use it instead of TREE_COMPLEXITY.
16787
16788 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16789
16790 * misc.c, utils2.c: Fix comment typos.
16791
16792 2007-01-24 Roger Sayle <roger@eyesopen.com>
16793
16794 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16795 TREE_CONSTANT_OVERFLOW.
16796 (allocatable_size_p, annotate_value): Likewise.
16797 * trans.c (gnat_to_gnu): Likewise.
16798 * utils.c (unchecked_convert): Likewise.
16799 * utils2.c (build_simple_component_ref): Likewise.
16800
16801 2007-01-23 Richard Guenther <rguenther@suse.de>
16802
16803 PR bootstrap/30541
16804 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16805 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16806 (gnatboot3): Likewise.
16807 (GNATBIND): Do not define.
16808 * Makefile.in (GNATBIND): Do not define.
16809
16810 2007-01-08 Richard Guenther <rguenther@suse.de>
16811
16812 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16813 * trans.c (gnat_to_gnu): Likewise.
16814
16815 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16816
16817 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16818 * adaint.c: Likewise.
16819
16820 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16821
16822 Merge from gimple-tuples-branch:
16823 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16824
16825 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16826 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16827 GIMPLE_MODIFY_STMT.
16828
16829 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16830
16831 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16832 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16833 Fix typos.
16834
16835 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16836
16837 PR ada/27936
16838 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16839 if the initializer takes into account the padding.
16840
16841 2006-11-11 Richard Guenther <rguenther@suse.de>
16842
16843 * trans.c (maybe_stabilize_reference): Remove handling of
16844 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16845
16846 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16847
16848 PR ada/29707
16849 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16850 (To_Target_Priority): New function.
16851
16852 2006-10-31 Robert Dewar <dewar@adacore.com>
16853
16854 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16855 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16856 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16857 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16858 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16859 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16860 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16861 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16862 a-szbzha.adb: Minor reformatting. Fix header.
16863
16864 * a-numaux-x86.adb: Add parentheses for use of unary minus
16865 * a-ngcefu.adb: Supply missing parentheses for unary minus
16866 * a-ngcoty.adb: Add parens for use of unary minus
16867 * a-ngelfu.adb: Add missing parens for unary minus
16868 * a-tifiio.adb: Add parentheses for uses of unary minus
16869
16870 2006-10-31 Robert Dewar <dewar@adacore.com>
16871 Bob Duff <duff@adacore.com>
16872 Ed Schonberg <schonberg@adacore.com>
16873
16874 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16875 with multiplying operator.
16876 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16877 pointer whether the context expects "any real type".
16878 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16879 universal_fixed "*" and "/" operators when they are used in a context
16880 that expects any real type. Also set the type of the node to
16881 Universal_Real in this case, because downstream processing requires it
16882 (mainly static expression evaluation).
16883 Reword some continuation messages
16884 Add some \\ sequences to continuation messages
16885 (Resolve_Call): Refine infinite recursion case. The test has been
16886 sharpened to eliminate some false positives.
16887 Check for Current_Task usage now includes entry barrier, and is now a
16888 warning, not an error.
16889 (Resolve): If the call is ambiguous, indicate whether an interpretation
16890 is an inherited operation.
16891 (Check_Aggr): When resolving aggregates, skip associations with a box,
16892 which are priori correct, and will be replaced by an actual default
16893 expression in the course of expansion.
16894 (Resolve_Type_Conversion): Add missing support for conversion from
16895 a class-wide interface to a tagged type. Minor code cleanup.
16896 (Valid_Tagged_Converion): Add support for abstact interface type
16897 conversions.
16898 (Resolve_Selected_Component): Call Generate_Reference here rather than
16899 during analysis, and use May_Be_Lvalue to distinguish read/write.
16900 (Valid_Array_Conversion): New procedure, abstracted from
16901 Valid_Conversion, to incorporate accessibility checks for arrays of
16902 anonymous access types.
16903 (Valid_Conversion): For a conversion to a numeric type occurring in an
16904 instance or inlined body, no need to check that the operand type is
16905 numeric, since this has been checked during analysis of the template.
16906 Remove legacy test for scope name Unchecked_Conversion.
16907
16908 * sem_res.ads: Minor reformatting
16909
16910 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16911 (PE_Current_Task_In_Entry_Body): New exception code
16912 (SE_Restriction_Violation): Removed, not used
16913
16914 * a-except.ads: Update comments.
16915
16916 * types.h, types.ads: Add definition for Validity_Check
16917 (PE_Current_Task_In_Entry_Body): New exception code
16918 (SE_Restriction_Violation): Removed, not used
16919
16920 2006-10-31 Thomas Quinot <quinot@adacore.com>
16921
16922 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16923 error status.
16924
16925 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16926 Jose Ruiz <ruiz@adacore.com>
16927
16928 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16929 part of Ada.Calendar: all subprogram raise Unimplemented.
16930 (Split_W_Offset): Temp function body, raising Unimplemented
16931
16932 * a-calend.ads, a-calend-vms.ads:
16933 Add imported variable Invalid_TZ_Offset used to designate targets unable
16934 to support time zones.
16935 (Unimplemented): Temporary function raised by the body of new
16936 subprograms below.
16937 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16938 unit provides handling of leap seconds and is used by the new Ada 2005
16939 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16940 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16941 version returns an extra value which is the offset to UTC.
16942
16943 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16944 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16945 (Split_W_Offset): New function body.
16946 (Time_Of): When a date is close to UNIX epoch, compute the time for
16947 that date plus one day (that amount is later substracted after
16948 executing mktime) so there are no problems with time zone adjustments.
16949
16950 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16951
16952 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16953 a-catizo.ads, a-catizo.adb: New files.
16954
16955 * impunit.adb: Add new Ada 2005 entries
16956
16957 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16958 Rename all occurences of "__gnat_localtime_r" to
16959 "__gnat_localtime_tzoff".
16960 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16961 zone data and calculate the GMT offset.
16962 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16963 Use the field "tm_gmtoff" to extract the GMT offset.
16964 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16965 the external variable "timezone" to calculate the GMT offset.
16966
16967 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16968 Jose Ruiz <ruiz@adacore.com>
16969
16970 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16971 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16972 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16973 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16974 System.Any_Priority to a POSIX priority on the target.
16975
16976 * system-linux-ia64.ads:
16977 Extend range of Priority types on Linux to use the whole range made
16978 available by the system.
16979
16980 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16981 function maps from System.Any_Priority to a POSIX priority on the
16982 target.
16983 (PTHREAD_PRIO_PROTECT): Set real value.
16984 (PTHREAD_PRIO_INHERIT): Now a function.
16985 (SIGCPUFAIL): New signal.
16986 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16987 are documented as reserved by the OS.
16988
16989 * system-aix.ads: Use the full range of priorities provided by the
16990 system on AIX.
16991
16992 * s-taprop-posix.adb: Call new function To_Target_Priority.
16993 (Set_Priority): Take into account Task_Dispatching_Policy and
16994 Priority_Specific_Dispatching pragmas when determining if Round Robin
16995 must be used for scheduling the task.
16996
16997 * system-linux-x86_64.ads, system-linux-x86.ads,
16998 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16999 the whole range made available by the system.
17000
17001 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
17002 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
17003 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
17004 when deallocating the TCB in order to avoid potential references to
17005 deallocated data.
17006 (Set_Priority): Take into account Task_Dispatching_Policy and
17007 Priority_Specific_Dispatching pragmas when determining if Round Robin
17008 or FIFO within priorities must be used for scheduling the task.
17009
17010 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
17011 the Thread field (to be used internally by the run-time system) and the
17012 kernel-level task id in the LWP field (to be used by the debugger).
17013 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
17014 instance, and propagate the current task options to the spawned task.
17015 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
17016 (Initialize): Set Round Robin dispatching when the corresponding pragma
17017 is in effect.
17018
17019 2006-10-31 Robert Dewar <dewar@adacore.com>
17020
17021 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17022 system-linux-hppa.ads, system-hpux-ia64.ads,
17023 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
17024 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
17025 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
17026 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
17027 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17028 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17029 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
17030 Default_Bit_Order) to kill constant condition warnings for references
17031 to this switch.
17032
17033 2006-10-31 Vincent Celier <celier@adacore.com>
17034 Eric Botcazou <ebotcazou@adacore.com>
17035
17036 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
17037 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
17038 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
17039 Ext_To, when building the library file name
17040
17041 * mlib-tgt-vxworks.adb: ditto.
17042 (Get_Target_Suffix): Add support for x86 targets.
17043
17044 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17045
17046 * mlib-tgt-darwin.adb:
17047 Use Append_To, instead of Ext_To, when building the library file name
17048 (Flat_Namespace): New global variable.
17049 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17050 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17051 (Link_Shared_Libgcc): Delete.
17052 (Build_Dynamic_Library): Adjust for above changes.
17053 Use Opt package.
17054 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17055
17056 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17057
17058 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17059 (Initialize): Add type conversions required by above change.
17060
17061 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17062
17063 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
17064 (getpid): New body for this function that uses the underlying taskIdSelf
17065 function for VxWorks 5 and VxWorks 6 in kernel mode.
17066 (unsigned_int): New type, modular to allow logical bit operations.
17067 (taskOptionsGet): New imported function.
17068
17069 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17070 field to be compliant with the type used by the corresponding operating
17071 system primitive.
17072
17073 2006-10-31 Pascal Obry <obry@adacore.com>
17074 Eric Botcazou <ebotcazou@adacore.com>
17075 Vincent Celier <celier@adacore.com>
17076
17077 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17078 ASCII version of the registry API. This is needed as the GNAT runtime
17079 is now UNICODE by default.
17080 Include version.h.
17081 (get_gcc_version): Do not hardcode the return value.
17082 (__gnat_file_time_name): On Windows properly set the default returned
17083 value to -1 which corresponds to Invalid_Time.
17084 (__gnat_fopen): New routine. A simple wrapper on all plateforms
17085 except on Windows where it does conversion for unicode support.
17086 (__gnat_freopen): Idem.
17087 (__gnat_locate_exec_on_path): If environment variable PATH does not
17088 exist, return a NULL pointer
17089
17090 * adaint.h: (__gnat_fopen): Declare.
17091 (__gnat_freopen): Likewise.
17092
17093 * mingw32.h (_tfreopen): Define this macro here for older MingW
17094 version.
17095 Activate the unicode support on platforms using a MingW runtime
17096 version 3.9 or newer.
17097
17098 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17099 This is needed for proper unicode support on Windows.
17100 (freopen): Idem.
17101
17102 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17103 Nicolas Setton <setton@adacore.com>
17104 Olivier Hainque <hainque@adacore.com>
17105 Gary Dismukes <dismukes@adacore.com>
17106
17107 * gigi.h: (tree_code_for_record_type): Declare.
17108 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17109 (get_global_renaming_pointers): Rename to
17110 invalidate_global_renaming_pointers.
17111 (static_ctors): Delete.
17112 (static_dtors): Likewise.
17113 (gnat_write_global_declarations): Declare.
17114 (create_var_decl): Adjust descriptive comment to indicate that the
17115 subprogram may return a CONST_DECL node.
17116 (create_true_var_decl): Declare new function, similar to
17117 create_var_decl but forcing the creation of a VAR_DECL node.
17118 (get_global_renaming_pointers): Declare.
17119 (add_global_renaming_pointer): Likewise.
17120
17121 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17122
17123 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17124 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17125 processing.
17126 (gnat_to_gnu_entity): Remove From_With_Type from computation for
17127 imported_p.
17128 <E_Access_Type>: Use the Non_Limited_View as the full view of the
17129 designated type if the pointer comes from a limited_with clause. Make
17130 incomplete designated type if it is in the main unit and has a freeze
17131 node.
17132 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17133 Underlying_Full_View similarly. Return earlier if the full view already
17134 has an associated tree.
17135 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17136 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17137 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17138 reference type built for objects with an address clause.
17139 Use create_true_var_decl with const_flag set for
17140 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17141 TREE_READONLY set.
17142 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17143 for Character and Wide_Character types. This info is read by the
17144 dwarf-2 writer, and is needed to be able to use the command "ptype
17145 character" in the debugger.
17146 (gnat_to_gnu_entity): When generating a type representing
17147 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17148 so that debug writers can distinguish it from ordinary integers.
17149 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17150 addition to TREE_READONLY to assert the constantness of variables for
17151 elaboration purposes.
17152 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17153 parameters to call new Einfo function First_Formal_With_Extras.
17154 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17155 protected type with its corresponding discriminant, to obtain a usable
17156 declaration
17157 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17158 for a multiple elaboration of the "equivalent" type.
17159 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17160 into record_global_renaming_pointer.
17161 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17162 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17163 <E_Array_Subtype>: Likewise.
17164 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17165 incomplete subtypes and incomplete subtypes of incomplete types visible
17166 through a limited with clause.
17167 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17168 the base index type for the maximum size of the array only if they are
17169 constant.
17170 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17171 expression into a SAVE_EXPR if stabilization failed.
17172
17173 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17174 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17175 by lower level compilation passes.
17176 (gnat_genericize): New function, lowering a function body to GENERIC.
17177 Turn the type of RESULT_DECL into a real reference type if the decl
17178 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17179 accordingly.
17180 (gnat_genericize_r): New function. Tree walking callback for
17181 gnat_genericize.
17182 (convert_from_reference, is_byref_result): New functions. Helpers for
17183 gnat_genericize_r.
17184 (create_type_decl): Call gnat_pushdecl before calling
17185 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17186 type_decl is properly set before calling the debug information writers.
17187 (write_record_type_debug_info): The heuristics which compute the
17188 alignment of a field in a variant record might not be accurate. Add a
17189 safety test to make sure no alignment is set to a smaller value than
17190 the alignment of the field type.
17191 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17192 the type comes from a limited_with clause. Do not loop on the full view.
17193 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17194 (dummy_node_table): New global variable, moved from decl.c.
17195 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17196 (save_gnu_tree): Use above macros.
17197 (get_gnu_tree): Likewise.
17198 (present_gnu_tree): Likewise.
17199 (init_dummy_type): New function, moved from decl.c. Use above macros.
17200 (make_dummy_type): Likewise.
17201 (tree_code_for_record_type): New function extracted from make_dummy_type
17202 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17203 (static_ctors): Change it to a vector, make static.
17204 (static_dtors): Likewise.
17205 (end_subprog_body): Adjust for above change.
17206 (build_global_cdtor): Moved from trans.c.
17207 (gnat_write_global_declarations): Emit global constructor and
17208 destructor, and call cgraph_optimize before emitting debug info for
17209 global declarations.
17210 (global_decls): New global variable.
17211 (gnat_pushdecl): Store the global declarations in global_decls, for
17212 later use.
17213 (gnat_write_global_declarations): Emit debug information for global
17214 declarations.
17215 (create_var_decl_1): Former create_var_decl, with an extra argument to
17216 state whether the creation of a CONST_DECL is allowed.
17217 (create_var_decl): Behavior unchanged. Now a wrapper around
17218 create_var_decl_1 allowing CONST_DECL creation.
17219 (create_true_var_decl): New function, similar to create_var_decl but
17220 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17221 (create_field_decl): Do not always mark the field as addressable
17222 if its type is an aggregate.
17223 (global_renaming_pointers): New static variable.
17224 (add_global_renaming_pointer): New function.
17225 (get_global_renaming_pointers): Likewise.
17226
17227 * misc.c (gnat_dwarf_name): New function.
17228 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17229 (gnat_post_options): Add comment about structural alias analysis.
17230 (gnat_parse_file): Do not call cgraph_optimize here.
17231 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17232
17233 * trans.c (process_freeze_entity): Don't abort if we already have a
17234 non dummy GCC tree for a Concurrent_Record_Type, as it might
17235 legitimately have been elaborated while processing the associated
17236 Concurrent_Type prior to this explicit freeze node.
17237 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17238 exception handler volatile if it is of variable size.
17239 (process_type): Remove bypass for types coming from a limited_with
17240 clause.
17241 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17242 actual, convert the corresponding gnu_actual to the real destination
17243 type when necessary.
17244 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17245 originally TREE_READONLY but whose elaboration cannot be performed
17246 statically.
17247 Part of fix for F504-021.
17248 (tree_transform, subprogram cases): Change loops on formal parameters to
17249 call new Einfo function First_Formal_With_Extras.
17250 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17251 stemming from type conversion for the lhs.
17252 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17253 number of bits per unit for components of records.
17254 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17255 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17256 with At_End_Proc after the SJLJ EH cleanup.
17257 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17258 compilation unit.
17259 (elaborate_all_entities): Do not retest type_annotate_only.
17260 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17261 result type of an abstract subprogram, which may be an itype associated
17262 with an anonymous access result (related to AI-318-02).
17263 (build_global_cdtor): Move to utils.c.
17264 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17265 this choice is not a null tree nor an integer constant.
17266 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17267 on the body of elaboration routines instead of mark_unvisited.
17268 (add_stmt): Do not mark the tree.
17269 (add_decl_expr): Tweak comment.
17270 (mark_unvisited): Delete.
17271 (unshare_save_expr): New static function.
17272 (call_to_gnu): Issue an error when making a temporary around a
17273 procedure call because of non-addressable actual parameter if the
17274 type of the formal is by_reference.
17275 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17276 after building the elaboration routine.
17277
17278 2006-10-31 Bob Duff <duff@adacore.com>
17279
17280 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17281 as finalization-started, so we can raise Program_Error on 'new'.
17282
17283 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17284 collection has already started.
17285
17286 * s-finimp.ads (Collection_Finalization_Started): Added new special
17287 flag value for indicating that a collection's finalization has started.
17288
17289 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17290 create a task whose master has already waited for dependent tasks.
17291
17292 2006-10-31 Robert Dewar <dewar@adacore.com>
17293
17294 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17295
17296 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17297 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17298 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17299 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17300 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17301 a-except-2005.ads: Add pragma Preelaborable_Warning
17302
17303 2006-10-31 Robert Dewar <dewar@adacore.com>
17304 Jose Ruiz <ruiz@adacore.com>
17305
17306 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17307
17308 * ali.adb (Get_Name): Properly handle scanning of wide character names
17309 encoded with brackets notation.
17310 (Known_ALI_Lines): Add S lines to this list.
17311 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17312 New flag Elaborate_All_Desirable in unit table
17313
17314 * ali.ads (Priority_Specific_Dispatching): Add this range of
17315 identifiers to be used for Priority_Specific_Dispatching table entries.
17316 (ALIs_Record): Add First_Specific_Dispatching and
17317 Last_Specific_Dispatching that point to the first and last entries
17318 respectively in the priority specific dispatching table for this unit.
17319 (Specific_Dispatching): Add this table for storing each S (priority
17320 specific dispatching) line encountered in the input ALI file.
17321 New flag Elaborate_All_Desirable in unit table
17322
17323 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17324 Check_Consistent_Dispatching_Policy.
17325 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17326 verifying that the use of Priority_Specific_Dispatching,
17327 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17328 partition.
17329
17330 * bindgen.adb: (Public_Version_Warning): function removed.
17331 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17332 required information from ALI files in order to initialize the table
17333 containing the specific dispatching policy.
17334 (Gen_Adainit_Ada): Generate the variables required for priority specific
17335 dispatching entries (__gl_priority_specific_dispatching and
17336 __gl_num_specific_dispatching).
17337 (Gen_Adainit_C): Generate the variables required for priority specific
17338 dispatching entries (__gl_priority_specific_dispatching and
17339 __gl_num_specific_dispatching).
17340 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17341 pragma entries.
17342 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17343 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17344 (Tab_To): Removed.
17345 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17346 a call to gnat_set_globals.
17347 Generate a string containing settings from
17348 Priority_Specific_Dispatching pragma entries.
17349 (Gen_Object_Files_Options): Do not include the runtime libraries when
17350 pragma No_Run_Time is specified.
17351
17352 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17353 consistency with s-intman-posix.adb.
17354 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17355 handler is installed with SA_SIGINFO.
17356 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17357 FreeBSD ZCX support, copied from Linux version.
17358 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17359 sigfillset, and sigemptyset so the routines defined by MaRTE.
17360 (__gl_priority_specific_dispatching): Add this variable that stores the
17361 string containing priority specific dispatching policies in the
17362 partition.
17363 (__gl_num_specific_dispatching): Add this variable that indicates the
17364 highest priority for which a priority specific dispatching pragma
17365 applies.
17366 (__gnat_get_specific_dispatching): Add this routine that returns the
17367 priority specific dispatching policy, as set by a
17368 Priority_Specific_Dispatching pragma appearing anywhere in the current
17369 partition. The input argument is the priority number, and the result
17370 is the upper case first character of the policy name.
17371 (__gnat_set_globals): Now a dummy function.
17372 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17373 mechargs instead of sigargs, as the latter can be retrieved from the
17374 former and sigargs is not what we want on ia64.
17375 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17376 mechargs argument.
17377 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17378 (tasking_error): Remove unused symbol.
17379 (_abort_signal): Move this symbol to the IRIX specific part since this
17380 is the only target that uses this definition.
17381 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17382 this is the only target that uses this definition.
17383 (Lock_Task): Remove unused symbol.
17384 (Unlock_Task): Remove unused symbol.
17385
17386 * lib-writ.adb (Write_ALI): Output new S lines for
17387 Priority_Specific_Dispatching pragmas.
17388 Implement new flag BD for elaborate body desirable
17389
17390 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17391 (Specific_Dispatching): Add this table for storing the entries
17392 corresponding to Priority_Specific_Dispatching pragmas.
17393 Document new BD flag for elaborate body desirable
17394
17395 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17396 of known pragmas.
17397
17398 2006-10-31 Javier Miranda <miranda@adacore.com>
17399
17400 * a-tags.ads, a-tags.adb:
17401 (Predefined_DT): New function that improves readability of the code.
17402 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17403 Inherit_DT): Use the new function Predefined_DT to improve code
17404 readability.
17405 (Register_Interface_Tag): Update assertion.
17406 (Set_Interface_Table): Update assertion.
17407 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17408 determining progenitor interfaces in Tags.
17409 (Inherit_CPP_DT): New subprogram.
17410
17411 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17412 analysis of the thunk code.
17413 (Expand_Interface_Conversion): Handle run-time conversion of
17414 access to class wide types.
17415 (Expand_Dispatching_Call): When generating the profile for the
17416 subprogram itype for a dispatching operation, properly terminate the
17417 formal parameters chaind list (set the Next_Entity of the last formal
17418 to Empty).
17419 (Collect_All_Interfaces): Removed. This routine has been moved to
17420 sem_util and renamed as Collect_All_Abstract_Interfaces.
17421 (Set_All_DT_Position): Hidden entities associated with abstract
17422 interface primitives are not taken into account in the check for
17423 3.9.3(10); this check is done with the aliased entity.
17424 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17425 interfacing with CPP by default.
17426 (Expand_Interface_Conversion): Add missing support for static conversion
17427 from an interface to a tagged type.
17428 (Collect_All_Interfaces): Add new out formal containing the list of
17429 abstract interface types to cleanup the subprogram Make_DT.
17430 (Make_DT): Update the code to generate the table of interfaces in case
17431 of abstract interface types.
17432 (Is_Predefined_Dispatching_Alias): New function that returns true if
17433 a primitive is not a predefined dispatching primitive but it is an
17434 alias of a predefined dispatching primitive.
17435 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17436 compiling under full ABI compatibility mode we avoid the generation of
17437 calls to run-time services that fill the dispatch tables because under
17438 this mode we currently inherit the dispatch tables in the IP subprogram.
17439 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17440 (Expand_Interface_Conversion): Use an address as the type of the formal
17441 of the internally built function that handles the case in which the
17442 target type is an access type.
17443
17444 2006-10-31 Robert Dewar <dewar@adacore.com>
17445
17446 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17447
17448 2006-10-31 Robert Dewar <dewar@adacore.com>
17449
17450 * bindusg.ads, bindusg.adb:
17451 Change to package and rename procedure as Display, which
17452 now ensures that it only outputs usage information once.
17453
17454 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17455
17456 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17457 using RTPs.
17458
17459 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17460 when using RTPs.
17461
17462 2006-10-31 Robert Dewar <dewar@adacore.com>
17463 Ed Schonberg <schonberg@adacore.com>
17464
17465 * treepr.adb: Use new subtype N_Membership_Test
17466
17467 * checks.ads, checks.adb: Add definition for Validity_Check
17468 (Range_Or_Validity_Checks_Suppressed): New function
17469 (Ensure_Valid): Test Validity_Check suppressed
17470 (Insert_Valid_Check): Test Validity_Check suppressed
17471 (Insert_Valid_Check): Preserve Do_Range_Check flag
17472 (Validity_Check_Range): New procedure
17473 (Expr_Known_Valid): Result of membership test is always valid
17474 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17475 by themselves. Disabling those checks must also be done for task types,
17476 where discriminants may be used for the bounds of entry families.
17477 (Apply_Address_Clause_Check): Remove side-effects if address expression
17478 is non-static and is not the name of a declared constant.
17479 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17480 Code cleanup and new error messages.
17481 (Enable_Range_Check): Test for some cases of suppressed checks
17482 (Generate_Index_Checks): Suppress index checks if index checks are
17483 suppressed for array object or array type.
17484 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17485 length check failure, even if checks are off.
17486 (Ensure_Valid): Do not generate a check on an indexed component whose
17487 prefix is a packed boolean array.
17488 * checks.adb: (Alignment_Checks_Suppressed): New function
17489 (Apply_Address_Clause_Check): New procedure, this is a completely
17490 rewritten replacement for Apply_Alignment_Check
17491 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17492 we request a discriminal value only in case of discriminants.
17493 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17494 assignments where the target subtype is unconstrained and the target
17495 object is a parameter or dereference (other aliased cases are known
17496 to be unconstrained).
17497
17498 2006-10-31 Robert Dewar <dewar@adacore.com>
17499
17500 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17501 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17502 vms_conv.adb: Fix bad table increment values (much too small)
17503
17504 * table.adb (Realloc): Make sure we get at least some new elements
17505 Defends against silly small values for table increment
17506
17507 2006-10-31 Robert Dewar <dewar@adacore.com>
17508 Ed Schonberg <schonberg@adacore.com>
17509 Bob Duff <duff@adacore.com>
17510
17511 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17512 entities. Move other fields around to make this possible
17513 (Is_Derived_Type): Add missing call to Is_Type.
17514 (Extra_Formals): New function for subprograms, entries, subprogram
17515 types.
17516 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17517 (First_Formal_With_Extras): New function for subprogs, entries, subp
17518 types.
17519 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17520 Add node information for E_Return_Statement.
17521 (Elaborate_Body_Desirable): New flag
17522 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17523 to be Is_Inherently_Limited_Type, because return-by-reference has
17524 no meaning in Ada 2005.
17525 (E_Return_Statement): New entity kind.
17526 (Return_Applies_To): Field of E_Return_Statement.
17527 (Is_Return_Object): New flag in object entities.
17528 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17529 (Must_Have_Preelab_Init): New flag
17530 (Known_To_Have_Preelab_Init): New flag
17531 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17532 (Is_Visible_Formal): New flag on entities in formal packages.
17533 (Low_Bound_Known): New flag
17534 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17535 Incomplete_Kind.
17536 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17537 output when Id is an incomplete subtype.
17538
17539 2006-10-31 Robert Dewar <dewar@adacore.com>
17540
17541 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17542 Avoid abbreviation Creat
17543 (Finalize): List all sources in extended mail source if -gnatl
17544 switch is active.
17545 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17546 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17547 (Set_Specific_Warning_On): New procedure
17548 (Set_Specific_Warning_Off): New procedure
17549 Add implementation of new insertion \\
17550 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17551 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17552 types.
17553 (Error_Msg_Internal): Make sure that we set Last_Killed to
17554 True when a message from another package is suppressed.
17555 Implement insertion character ~ (insert string)
17556 (First_Node): Minor adjustments to get better placement.
17557
17558 * frontend.adb:
17559 Implement new -gnatl=xxx switch to output listing to file
17560
17561 * gnat1drv.adb:
17562 Implement new -gnatl=xxx switch to output listing to file
17563
17564 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17565 (Commands_To_Stdout): New flag
17566 Implement new -gnatl=xxx switch to output listing to file
17567 New switch Dump_Source_Text
17568 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17569 Define Error_Msg_Line_Length
17570 (Warn_On_Assumed_Low_Bound): New switch
17571
17572 * osint.ads, osint.adb
17573 (Normalize_Directory_Name): Fix bug.
17574 Implement new -gnatl=xxx switch to output listing to file
17575 (Concat): Removed, replaced by real concatenation
17576 Make use of concatenation now allowed in compiler
17577 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17578 we find the 'lib' or 'bin' directory even when the tool has been
17579 invoked with a relative path.
17580 (Executable_Name): New function taking string parameters.
17581
17582 * osint-c.ads, osint-c.adb:
17583 Implement new -gnatl=xxx switch to output listing to file
17584
17585 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17586
17587 * switch-c.adb:
17588 Implement new -gnatl=xxx switch to output listing to file
17589 Recognize new -gnatL switch
17590 (no longer keep in old warning about old style usage)
17591 Use concatenation to simplify code
17592 Recognize -gnatjnn switch
17593 (Scan_Front_End_Switches): Clean up handling of -gnatW
17594 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17595
17596 2006-10-31 Robert Dewar <dewar@adacore.com>
17597
17598 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17599 (Set_Specific_Warning_Off): New procedure
17600 (Warning_Specifically_Suppressed): New function
17601 (Validate_Specific_Warnings): New procedure
17602 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17603
17604 * err_vars.ads: Implement insertion character ~ (insert string)
17605
17606 2006-10-31 Bob Duff <duff@adacore.com>
17607 Ed Schonberg <schonberg@adacore.com>
17608
17609 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17610 the parent part is a build-in-place function call, generate assignments.
17611 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17612 are build-in-place function calls.
17613 (Replace_Self_Reference): New subsidiary of
17614 Make_OK_Assignment_Statement, to replace an access attribute that is a
17615 self-reference into an access to the appropriate component of the
17616 target object. Generalizes previous mechanism to handle self-references
17617 nested at any level.
17618 (Is_Self_Referential_Init): Remove, not needed.
17619 (Is_Self_Referential_Init): New predicate to simplify handling of self
17620 referential components in record aggregates.
17621 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17622 check for presence of entity before checking for self-reference.
17623 (Has_Default_Init_Comps): Return True if a component association is a
17624 self-reference to the enclosing type, which can only come from a
17625 default initialization.
17626 (Make_OK_Assignment_Statement): If the expression is of the form
17627 Typ'Acc, where Acc is an access attribute, the expression comes from a
17628 default initialized self-referential component.
17629 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17630 that has been derived from several abstract interfaces we must also
17631 initialize the tags of the secondary dispatch tables.
17632
17633 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17634 Thomas Quinot <quinot@adacore.com>
17635 Javier Miranda <miranda@adacore.com>
17636 Robert Dewar <dewar@adacore.com>
17637
17638 * exp_attr.adb:
17639 (Expand_Access_To_Protected_Op): If the context indicates that an access
17640 to a local operation may be transfered outside of the object, create an
17641 access to the wrapper operation that must be used in an external call.
17642 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17643 target, pass the Valid attribute applied to a floating-point prefix on
17644 to the back end without expansion.
17645 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17646 the allocated storage when it is specified by a per-object expression.
17647 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17648 Nothing to do here, the attribute has been rewritten during semantic
17649 analysis.
17650 (Expand_Attribute_Reference): Handle expansion of the new Priority
17651 attribute
17652 (Find_Fat_Info): Handle case of universal real
17653 (Expand_Access_To_Protected_Op): Fix use of access to protected
17654 subprogram from inside the body of a protected entry.
17655 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17656 'Access and 'Unrestricted_Access, to transform the attribute reference
17657 into a fat pointer.
17658 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17659 subcomponent's enclosing variable is aliased with a constrained subtype.
17660 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17661 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17662 an aliased prefix must be known to be constrained in order to use True
17663 for the attribute value, and now it's possible for some aliased views
17664 to be unconstrained.
17665
17666 2006-10-31 Robert Dewar <dewar@adacore.com>
17667
17668 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17669 (Expand_Entity_Reference): Correct error of not handling subprogram
17670 formals in current_value processing.
17671
17672 2006-10-31 Javier Miranda <miranda@adacore.com>
17673 Robert Dewar <dewar@adacore.com>
17674 Ed Schonberg <schonberg@adacore.com>
17675 Gary Dismukes <dismukes@adacore.com>
17676
17677 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17678 register in the final list objects containing class-wide interfaces;
17679 otherwise we incorrectly register the tag of the interface in the final
17680 list.
17681 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17682 generate the wrapper if the parent primitive is abstract. This is
17683 required to report the correct error message.
17684 (Expand_N_Subtype_Indication): Do validity checks on range
17685 (Clean_Task_Names): If an initialization procedure includes a call to
17686 initialize a task (sub)component, indicate that the procedure will use
17687 the secondary stack.
17688 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17689 compatibility for interfacing with CPP by default.
17690 (Expand_N_Object_Declaration): Only build an Adjust call when the
17691 object's type is a nonlimited controlled type.
17692 * exp_ch3.adb: Add with and use of Exp_Ch6.
17693 (Expand_N_Object_Declaration): Check for object initialization that is a
17694 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17695 Object_Declaration to the call.
17696 (Freeze_Type): When the designated type of an RACW was not frozen at the
17697 point where the RACW was declared, validate the primitive operations
17698 with respect to E.2.2(14) when it finally is frozen.
17699 (Build_Initialization_Call,Expand_Record_Controller): Rename
17700 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17701 return-by-reference has no meaning in Ada 2005.
17702 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17703 to register tag of the immediate ancestor interfaces in the
17704 run-time structure.
17705 (Init_Secondary_Tags): Moved to the specification to allow the
17706 initialization of extension aggregates with abstract interfaces.
17707 (Build_Master_Renaming): Make public, for use by function declarations
17708 whose return type is an anonymous access type.
17709 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17710 Insert_List_Before_And_Analyze after the generation of the specs
17711 associated with null procedures.
17712 (Expand_Tagged_Root): Update documentation in its specification.
17713 (Init_Secondary_Tags): Update documentation.
17714 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17715 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17716 then generate code to inherit the contents of the dispatch table
17717 directly from the ancestor.
17718 (Expand_Record_Controller): Insert controller component after tags of
17719 implemented interfaces.
17720 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17721 create null procedure overridings when null procedures are inherited
17722 from interfaces.
17723 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17724 declarations for overriding null primitives inherited from interfaces.
17725 (Is_Null_Interface_Procedure): New function in
17726 Make_Null_Procedure_Specs.
17727 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17728 immediate ancestor of a tagged type is an abstract interface type we
17729 must generate the specification of the predefined primitives associated
17730 with controlled types (because the dispatch table of the ancestor is
17731 null and hence these entries cannot be inherited). This is required to
17732 elaborate well the dispatch table.
17733
17734 2006-10-31 Javier Miranda <miranda@adacore.com>
17735 Ed Schonberg <schonberg@adacore.com>
17736 Bob Duff <duff@adacore.com>
17737 Gary Dismukes <dismukes@adacore.com>
17738 Robert Dewar <dewar@adacore.com>
17739
17740 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17741 conversion.
17742 (Expand_N_In): Do validity checks on range
17743 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17744 (Expand_N_Allocator): For "new T", if the object is constrained by
17745 discriminant defaults, allocate the right amount of memory, rather than
17746 the maximum for type T.
17747 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17748 when the allocator is initialized by a build-in-place call, since the
17749 allocator is already rewritten as a reference to the function result,
17750 and this prevents an unwanted duplication of the function call.
17751 Add with and use of Exp_Ch6.
17752 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17753 is a call to build-in-place function and apply
17754 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17755 untagged designated types).
17756 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17757 optimization if source or target is biased.
17758 (Expand_N_Allocator): Add comments for case of an allocator within a
17759 function that returns an anonymous access type designating tasks.
17760 (Expand_N_Allocator): apply discriminant checks for access
17761 discriminants of anonymous access types (AI-402, AI-416)
17762
17763 2006-10-31 Bob Duff <duff@adacore.com>
17764 Robert Dewar <dewar@adacore.com>
17765 Gary Dismukes <dismukes@adacore.com>
17766 Ed Schonberg <schonberg@adacore.com>
17767
17768 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17769
17770 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17771 (Expand_N_Assignment_Statement): Call
17772 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17773 build-in-place function call. Currently, this can happen only for
17774 assignments that come from aggregates.
17775 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17776 in order to alleviate the upward compatibility introduced by AI-318.
17777 (Expand_N_Extended_Return_Statement): Add support for handling the
17778 return object as a build-in-place result.
17779 (Expand_Non_Function_Return): Implement simple return statements nested
17780 within an extended return.
17781 (Enable_New_Return_Processing): Turn on the new processing of return
17782 statements.
17783 (Expand_Non_Function_Return): For a return within an extended return,
17784 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17785 (Expand_N_Extended_Return_Statement): Implement AI-318
17786 (Expand_Simple_Function_Return): Ditto.
17787 (Expand_N_If_Statement): Handle new -gnatwt warning
17788 (Expand_N_Case_Statement): Handle new -gnatwt warning
17789 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17790 a protected object.
17791 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17792 validity checking of assignments to elementary record components.
17793 (Expand_N_Return_Statement): return Class Wide types on the secondary
17794 stack independantly of their controlled status since with HIE runtimes,
17795 class wide types are not potentially controlled anymore.
17796
17797 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17798 node kind.
17799
17800 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17801 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17802 it expects a block, procedure, or task. The return statement will get
17803 turned into a block, and Expand_Cleanup_Actions will happen then.
17804
17805 2006-10-31 Robert Dewar <dewar@adacore.com>
17806 Ed Schonberg <schonberg@adacore.com>
17807 Bob Duff <duff@adacore.com>
17808 Gary Dismukes <dismukes@adacore.com>
17809
17810 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17811 capability.
17812 (Expand_Inlined_Call): Tagged types are by-reference types, and
17813 therefore should be replaced by a renaming declaration in the expanded
17814 body, as is done for limited types.
17815 (Expand_Call): If this is a call to a function with dispatching access
17816 result, propagate tag from context.
17817 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17818 CPP by default.
17819 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17820 build-in-place when the right-hand side of an assignment is a
17821 build-in-place function call.
17822 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17823 of the explicit dereference of the allocator to the result subtype of
17824 the build-in-place function. This is needed to satisfy type checking
17825 in cases where the caller's return object is created by an allocator for
17826 a class-wide access type and the type named in the allocator is a
17827 specific type.
17828 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17829 conversion of the reference to the declared object to the result subtype
17830 of the build-in-place function. This is needed to satisfy type checking
17831 in cases where the declared object has a class-wide type. Also, in the
17832 class-wide case, change the type of the object entity to the specific
17833 result subtype of the function, to avoid passing a class-wide object
17834 without explicit initialization to the back end.
17835 (Register_Interface_DT_Entry): Moved outside the body of
17836 Freeze_Subprogram because this routine is now public; it is called from
17837 Check_Dispatching_Overriding to handle late overriding of abstract
17838 interface primitives.
17839 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17840 adding an implicit access actual on a call to a build-in-place function.
17841 (Expand_Actuals): Test for an actual parameter that is a call to a
17842 build-in-place function and apply
17843 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17844 (Is_Build_In_Place_Function): New function to determine whether an
17845 entity is a function whose calls should be handled as build-in-place.
17846 (Is_Build_In_Place_Function_Call): New function to determine whether an
17847 expression is a function call that should handled as build-in-place.
17848 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17849 calls to build-in-place functions as the initialization of an allocator.
17850 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17851 handling calls to build-in-place functions in contexts that do not
17852 involve init of a separate object (for example, actuals of subprogram
17853 calls).
17854 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17855 handling calls to build-in-place functions as the initialization of an
17856 object declaration.
17857 (Detect_Infinite_Recursion): Add explicit parameter Process to
17858 instantiation of Traverse_Body to avoid unreferenced warning.
17859 (Check_Overriding_Inherited_Interfaces): Removed.
17860 (Register_Interface_DT_Entry): Code cleanup.
17861 (Register_Predefined_DT_Entry): Code cleanup.
17862 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17863 inlined statements if within a transient scope.
17864 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17865 formal parameters with occurrences of actuals in inlined body, establish
17866 visibility on the proper view of the actual's subtype for the body's
17867 context.
17868 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17869 compatibility mode and we have an imported CPP subprogram because
17870 for now we assume that imported CPP primitives correspond with
17871 objects whose constructor is in the CPP side (and therefore we
17872 don't need to generate code to register them in the dispatch table).
17873 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17874 aligned selected component.
17875 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17876 the actual of an in-mode parameter is a type conversion.
17877 (Expand_Actuals): If the call does not come from source and the actual
17878 is potentially misaligned, let gigi handle it rather than rejecting the
17879 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17880 Class Wide types as returning by reference independantly of their
17881 controlled status since with HIE runtimes class wide types are not
17882 potentially controlled anymore.
17883
17884 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17885
17886 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17887 references that are private components of the protected object.
17888 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17889 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17890 instantiation to deal with warnings.
17891 (Initialize_Protection): If expression for priority is non-static, use
17892 System_Priority as its expected type, in case the expression has not
17893 been analyzed yet.
17894
17895 2006-10-31 Robert Dewar <dewar@adacore.com>
17896
17897 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17898 initialization of Homonym_Len.
17899 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17900 names from fully qualified name. Fixes problem of duplicate
17901 external names differing only in the presence of such a block name.
17902
17903 2006-10-31 Thomas Quinot <quinot@adacore.com>
17904 Pablo Oliveira <oliveira@adacore.com>
17905
17906 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17907 subprogram Ids, even if they are not yet assigned.
17908 (Build_Subprogram_Id): It is now this function that will take care of
17909 calling Assign_Subprogram_Ids if necessary.
17910 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17911 should be done only once they are assigned.
17912 (Build_From_Any_Function, case of tagged types): Add missing call to
17913 Allocate_Buffer.
17914 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17915 type for an RACW type.
17916 (Add_RACW_Features): When processing an RACW declaration for which the
17917 designated type is already frozen, enforce E.2.2(14) rules immediately.
17918 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17919 special reordering of controlling formals.
17920
17921 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17922 associated stub type for an RACW type.
17923
17924 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17925
17926 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17927 fixed-point operations in an integer context, i.e. as operands of a
17928 conversion to an integer type, indicate that result must be rounded.
17929
17930 2006-10-31 Robert Dewar <dewar@adacore.com>
17931
17932 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17933 cases, pass the encoding method, since it is now required by the run
17934 time.
17935
17936 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17937 assumption that Str'First = 1.
17938 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17939 it on to the Value_Wide_Wide_Character call.
17940 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17941 properly handles a string of the form quote-encoded_wide_char-quote.
17942
17943 * s-wchcnv.adb: Minor reformatting
17944
17945 2006-10-31 Javier Miranda <miranda@adacore.com>
17946
17947 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17948 run-time membership test to ensure that the constructed object
17949 implements the target abstract interface.
17950
17951 2006-10-31 Robert Dewar <dewar@adacore.com>
17952
17953 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17954 Machine_Attribute pragma internally to implement the user pragma.
17955 Add processing for pragma Interface so that it is now completely
17956 equivalent to pragma Import.
17957
17958 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17959 so that it can be applied to all entities, including record components
17960 and enumeration literals.
17961 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17962 priority ranges are correct, verify compatibility against task
17963 dispatching and locking policies, and if everything is correct an entry
17964 is added to the table containing priority specific dispatching entries
17965 for this compilation unit.
17966 (Delay_Config_Pragma_Analyze): Delay processing
17967 Priority_Specific_Dispatching pragmas because when processing the
17968 pragma we need to access run-time data, such as the range of
17969 System.Any_Priority.
17970 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17971 Allow pragma Unreferenced as a context item
17972 Add pragma Preelaborable_Initialization
17973 (Analyze_Pragma, case Interface): Interface is extended so that it is
17974 now syntactically and semantically equivalent to Import.
17975 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17976 insertion characters.
17977 Add handling for Pragma_Wide_Character_Encoding
17978 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17979 never supercedes a real restriction, and that a real restriction
17980 always supercedes a warning.
17981 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17982 appropriate form.
17983
17984 2006-10-31 Bob Duff <duff@adacore.com>
17985 Ed Schonberg <schonberg@adacore.com>
17986 Robert Dewar <dewar@adacore.com>
17987
17988 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17989 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17990 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17991 in Ada 2005.
17992 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17993 type of the function containing a return statement, because the
17994 Return_Type field was removed. We now use the Return_Applies_To field.
17995
17996 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17997 (Build_Task_Image_Decl): If procedure is not called from an
17998 initialization procedure, indicate that function that builds task name
17999 uses the sec. stack. Otherwise the enclosing initialization procedure
18000 will carry the indication.
18001 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
18002 N_Object_Declaration instead.
18003 (Kill_Dead_Code): New interface to implement -gnatwt warning for
18004 conditional dead code killed, and change implementation accordingly.
18005 (Insert_Actions): Add N_Return_Object_Declaration case.
18006 Correct comment to mention N_Extension_Aggregate node.
18007 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
18008 attempts to save information for global variables which cannot be
18009 safely tracked.
18010 (Get_Current_Value_Condition): Handle conditions the other way round
18011 (constant on left). Also handle right operand of AND and AND THEN
18012 (Set_Current_Value_Condition): Corresponding changes
18013 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
18014 (Get_Current_Value_Condition): Handle simple boolean operands
18015 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
18016 (Get_Current_Value_Condition): If the variable reference is within an
18017 if-statement, does not appear in the list of then_statments, and does
18018 not come from source, treat it as being at unknown location.
18019 (Get_Current_Value_Condition): Enhance to allow while statements to be
18020 processed as well as if statements.
18021 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
18022 come from source.
18023 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
18024 of loop. This is safe now that we fixed Kill_Current_Values.
18025 (OK_To_Do_Constant_Replacement): Check whether current scope is
18026 Standard, before examining outer scopes.
18027
18028 2006-10-31 Vincent Celier <celier@adacore.com>
18029
18030 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
18031 When True, apply VMS treatment to children of packages A, G, I and S.
18032 For F320-016
18033
18034 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
18035
18036 2006-10-31 Robert Dewar <dewar@adacore.com>
18037 Ed Schonberg <schonberg@adacore.com>
18038
18039 * freeze.adb: Add handling of Last_Assignment field
18040 (Warn_Overlay): Supply missing continuation marks in error msgs
18041 (Freeze_Entity): Add check for Preelaborable_Initialization
18042
18043 * g-comlin.adb: Add Warnings (Off) to prevent new warning
18044
18045 * g-expect.adb: Add Warnings (Off) to prevent new warning
18046
18047 * lib-xref.adb: Add handling of Last_Assignment field
18048 (Generate_Reference): Centralize handling of pragma Obsolescent here
18049 (Generate_Reference): Accept an implicit reference generated for a
18050 default in an instance.
18051 (Generate_Reference): Accept a reference for a node that is not in the
18052 main unit, if it is the generic body corresponding to an subprogram
18053 instantiation.
18054
18055 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18056
18057 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
18058 -gnatwq/Q.
18059 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18060 exception handler.
18061 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18062 use clauses, to avoid messages on packages used to qualify, and also
18063 to avoid messages from obsolescent units.
18064 (Warn_On_Useless_Assignments): Don't generate messages for imported
18065 and exported variables.
18066 (Warn_On_Useless_Assignments): New procedure
18067 (Output_Obsolescent_Entity_Warnings): New procedure
18068 (Check_Code_Statement): New procedure
18069
18070 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
18071 Change name Is_Ada_2005 to Is_Ada_2005_Only
18072 (Last_Assignment): New field for useless assignment warning
18073
18074 2006-10-31 Olivier Hainque <hainque@adacore.com>
18075
18076 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18077 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18078
18079 2006-10-31 Bob Duff <duff@adacore.com>
18080 Robert Dewar <dewar@adacore.com>
18081 Ed Schonberg <schonberg@adacore.com>
18082
18083 * g-awk.adb (Default_Session, Current_Session): Compile this file in
18084 Ada 95 mode, because it violates the new rules for AI-318.
18085
18086 * g-awk.ads: Use overloaded subprograms in every case where we used to
18087 have a default of Current_Session. This makes the code closer to be
18088 correct for both Ada 95 and 2005.
18089
18090 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18091 code, relying on the fact that the compiler generates a warning
18092 instead of an error in -gnatg mode.
18093
18094 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18095 E_Return_Statement entity kind.
18096 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18097
18098 * par.adb (P_Interface_Type_Definition): Addition of one formal to
18099 report an error if the reserved word abstract has been previously found.
18100 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18101
18102 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18103 parenthesized range attribute usage
18104 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18105
18106 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18107 in the syntax for extended_return_statement. This is not in the latest
18108 RM, but the ARG is expected to issue an AI allowing this.
18109 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18110 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18111 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18112 P_Return_Statement): Parse the new syntax for extended_return_statement.
18113
18114 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18115 Output_End_Missing): Add error-recovery code for the new
18116 extended_return_statement syntax; that is, the new E_Return entry on
18117 the scope stack.
18118
18119 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18120 limited to nonlimited, because otherwise we violate the new Ada 2005
18121 rules about returning limited types in function Create_AST_Handler in
18122 s-asthan.adb.
18123
18124 * sem.adb (Analyze): Add cases for new node kinds
18125 N_Extended_Return_Statement and N_Return_Object_Declaration.
18126
18127 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18128 type is in the same category as type of context before applying check,
18129 to prevent anomalies in instantiations.
18130 (Resolve_Aggregate): Remove test for limited components in aggregates.
18131 It's unnecessary in Ada 95, because if it has limited components, then
18132 it must be limited. It's wrong in Ada 2005, because limited aggregates
18133 are now allowed.
18134 (Resolve_Record_Aggregate): Move check for limited types later, because
18135 OK_For_Limited_Init requires its argument to have been resolved.
18136 (Get_Value): When copying the component default expression for a
18137 defaulted association in an aggregate, use the sloc of the aggregate
18138 and not that of the original expression, to prevent spurious
18139 elaboration errors, when the expression includes function calls.
18140 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18141 were missing. We also didn't handle qualified expressions. Now also
18142 allow function calls. Use new common routine OK_For_Limited_Init.
18143 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18144 with space can upper case letter).
18145
18146 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18147 Has_Static_Discriminants flag
18148 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18149 type with discriminants.
18150 (Process_Range_Expr_In_Decl): Do validity checks on range
18151 (Build_Discriminant_Constraints): Use updated form of
18152 Denotes_Discriminant.
18153 (Process_Subtype): If the subtype is a private subtype whose full view
18154 is a concurrent subtype, introduce an itype reference to prevent scope
18155 anomalies in gigi.
18156 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18157 Record_Type_Declaration): The functionality of the subprograms
18158 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18159 is now performed by a single routine.
18160 (Build_Derived_Record_Type): If the type definition includes an explicit
18161 indication of limitedness, then the type must be marked as limited here
18162 to ensure that any access discriminants will not be treated as having
18163 a local anonymous access type.
18164 (Check_Abstract_Overriding): Issue a detailed error message when an
18165 abstract subprogram was not overridden due to incorrect mode of its
18166 first parameter.
18167 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18168 synchronized private extension declarations. Verify that the ancestor is
18169 a limited or synchronized interface or in the generic case, the ancestor
18170 is a tagged limited type or synchronized interface and all progenitors
18171 are either limited or synchronized interfaces.
18172 Derived_Type_Declaration): Check for presence of private extension when
18173 dealing with synchronized formal derived types.
18174 Process_Full_View): Enchance the check done on the usage of "limited" by
18175 testing whether the private view is synchronized.
18176 Verify that a synchronized private view is completed by a protected or
18177 task type.
18178 (OK_For_Limited_Init_In_05): New function.
18179 (Analyze_Object_Declaration): Move check for limited types later,
18180 because OK_For_Limited_Init requires its argument to have been resolved.
18181 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18182 in order to alleviate the upward compatibility introduced by AI-318.
18183 (Constrain_Corresponding_Record): If the constraint is for a component
18184 subtype, mark the itype as frozen, to avoid out-of-scope references to
18185 discriminants in the back-end.
18186 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18187 this subprogram against wrong sources.
18188 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18189 discriminant of limited type completed with a protected type, when the
18190 discriminant is used to constrain a private component of the type, and
18191 expansion is disabled.
18192 (Find_Type_Of_Object): Do not treat a return subtype that is an
18193 anonymous subtype as a local_anonymous_type, because its accessibility
18194 level is the return type of the enclosing function.
18195 (Check_Initialization): In -gnatg mode, turn the error "cannot
18196 initialize entities of limited type" into a warning.
18197 (OK_For_Limited_Init): Return true for generated nodes, since it
18198 sometimes violates the legality rules.
18199 (Make_Incomplete_Declaration): If the type for which an incomplete
18200 declaration is created happens to be the currently visible entity,
18201 preserve the homonym chain when removing it from visibility.
18202 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18203 inherited subprograms.
18204 (Access_Definition): If this is an access to function that is the return
18205 type of an access_to_function definition, context is a type declaration
18206 and the scope of the anonymous type is the current one.
18207 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18208 incomplete subtype to the set of private dependents of the original
18209 incomplete type.
18210 (Constrain_Discriminated_Type): Emit an error message whenever an
18211 incomplete subtype is being constrained.
18212 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18213 corresponding subtype of the full view of the original incomplete type.
18214 (Check_Incomplete): Properly detect invalid usage of incomplete types
18215 and subtypes.
18216
18217 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18218
18219 * g-catiio.ads, g-catiio.adb (Value): New function.
18220 Given an input String, try and parse a valid Time value.
18221
18222 2006-10-31 Vincent Celier <celier@adacore.com>
18223
18224 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18225 Integer_Address arithmetic, as in Set_Valid.
18226
18227 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18228 Robert Dewar <dewar@adacore.com>
18229
18230 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18231 handling executable extension manually and duplicating code.
18232
18233 * make.adb: Implement new -S switch
18234 (Gnatmake): Use new function Osint.Executable_Name instead
18235 of handling executable extension manually.
18236
18237 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18238 is specified, the executable name ends with this suffix.
18239 Take advantage of Osint.Executable_Name instead of duplicating code.
18240
18241 * switch-m.adb: Recognize new gnatmake -S switch
18242
18243 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18244 variable.
18245 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18246 available.
18247
18248 * makeusg.adb: Add line for gnatmake -S switch
18249
18250 2006-10-31 Vincent Celier <celier@adacore.com>
18251
18252 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18253 call it with -static-libgcc, as there are some platforms, such as
18254 Darwin, where one of these two switches is compulsory to link.
18255
18256 2006-10-31 Vincent Celier <celier@adacore.com>
18257
18258 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18259 instead of ADA_PROJECT_PATH, for the project path.
18260 (Gnatls): When displaying the project path directories, use host dir
18261 specs.
18262
18263 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18264 names in the project path, as absolute paths may correspond to
18265 multi-valued VMS logical names.
18266
18267 2006-10-31 Vincent Celier <celier@adacore.com>
18268
18269 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18270 absolute path name.
18271 (Locate_Regular_File): Ditto
18272 (Change_Dir): Remove, no longer used
18273 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18274 on Windows. Get it calling Get_Current_Dir.
18275 (OpenVMS): Remove imported boolean, no longer needed.
18276 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18277 (Pid_To_Integer): New function to convert a Process_Id to Integer
18278
18279 2006-10-31 Thomas Quinot <quinot@adacore.com>
18280
18281 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18282 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18283 to No_Socket.
18284 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18285 W_Sig_Socket.
18286
18287 2006-10-31 Robert Dewar <dewar@adacore.com>
18288
18289 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18290 initial letter o as a zero.
18291
18292 2006-10-31 Robert Dewar <dewar@adacore.com>
18293
18294 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18295
18296 2006-10-31 Robert Dewar <dewar@adacore.com>
18297
18298 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18299 variant records
18300 (Layout_Variant_Record): Retrieve the discriminants from the entity
18301 rather than from the type definition, because in the case of a full
18302 type for a private type we need to take the discriminants from the
18303 partial view.
18304 (Layout_Component_List): When applying the Max operator to variants with
18305 a nonstatic size, check whether either operand is static and scale that
18306 operand from bits to storage units before applying Max.
18307 (Layout_Type): In VMS, if a C-convention access type has no explicit
18308 size clause (and does not inherit one in the case of a derived type),
18309 then the size is reset to 32 from 64.
18310
18311 2006-10-31 Vincent Celier <celier@adacore.com>
18312
18313 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18314 its file has already been loaded, according to the unit being loaded,
18315 not to the current value of Multiple_Unit_Index.
18316
18317 2006-10-31 Thomas Quinot <quinot@adacore.com>
18318 Eric Botcazou <ebotcazou@adacore.com>
18319 Arnaud Charlet <charlet@adacore.com>
18320
18321 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18322 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18323 possible.
18324 (a-except.o): Pass it to the compiler.
18325 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18326 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18327 a-calend-mingw.adb version.
18328
18329 * Makefile.rtl: Added s-dsaser.
18330 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18331 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18332 Ada.Dispatching.Round_Robin.
18333 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18334
18335 * Make-lang.in: Remove all references to gt-ada-decl.h.
18336 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18337 sources.
18338 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18339 Update dependencies.
18340
18341 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18342
18343 2006-10-31 Vincent Celier <celier@adacore.com>
18344
18345 * mlib-utl.adb (Initialized): Remove, no longer used
18346 (Initialize): Remove, no longer used
18347 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18348 if there is one, the archive indexer. Fail if the archive builder cannot
18349 be found.
18350 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18351 be found.
18352
18353 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18354
18355 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18356 Process_Body_Clauses): If the context of a body includes a use clause
18357 for P.Q then a with_clause for P in the same body is not redundant,
18358 even if the spec also has a with_clause on P.
18359 Add missing continuation mark to error msg
18360 (Build_Limited_Views): A limited view of a type is tagged if its
18361 declaration includes a record extension.
18362 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18363 node, even if the subunit has errors. This avoids malfunction by
18364 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18365 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18366 generation of obsolescent messages for with statements (cannot do
18367 this too early, or we cannot implement avoiding the messages in the
18368 case of obsolescent units withing obsolescent units).
18369 (Install_Siblings): If the with_clause is on a remote descendant of
18370 an ancestor of the current compilation unit, find whether there is
18371 a sibling child unit that is immediately visible.
18372 (Remove_Private_With_Clauses): New procedure, invoked after completing
18373 the analysis of the private part of a nested package, to remove from
18374 visibility the private with_clauses of the enclosing package
18375 declaration.
18376 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18377 now centralized in Generate_Reference.
18378 (Install_Limited_Context_Clauses): Remove superfluous error
18379 message associated with unlimited view visible through use
18380 and renamings. In addition, at the point in which the error
18381 is reported, we add the backslash to the text of the error
18382 to ensure that it is reported as a single error message.
18383 Use new // insertion for some continuation messages
18384 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18385 to create implicit with_clause for parent unit mentioned in original
18386 limited_with_clause.
18387 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18388 unit is a child unit. For ASIS queries.
18389 (Analyze_Subunit): If the subunit appears within a child unit, make all
18390 ancestor child units directly visible again.
18391
18392 2006-10-31 Robert Dewar <dewar@adacore.com>
18393
18394 * par-ch10.adb (P_Context_Clause): Minor error message fix
18395
18396 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18397 Javier Miranda <miranda@adacore.com>
18398
18399 * par-ch12.adb: Grammar update and cleanup.
18400 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18401 support for synchronized derived type definitions.
18402 Add the new actual Abstract_Present to every call to
18403 P_Interface_Type_Definition.
18404 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18405 a formal object declaration with an access definition or a subtype mark
18406 with a null exclusion.
18407 (P_Generic_Association): Handle association with box, and others_choice
18408 with box, to support Ada 2005 partially parametrized formal packages.
18409
18410 2006-10-31 Robert Dewar <dewar@adacore.com>
18411 Javier Miranda <miranda@adacore.com>
18412
18413 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18414 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18415 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18416 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18417 private extensions.
18418 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18419 to P_Interface_Type_Definition.
18420 (P_Interface_Type_Definition): Addition of one formal to report an error
18421 if the reserved word abstract has been previously found.
18422 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18423 object renaming declaration with an access definition or subtype mark
18424 with a possible null exclusion.
18425
18426 * par-ch9.adb: Minor error msg fix
18427
18428 * par-load.adb: Add missing continuation mark to error msg
18429
18430 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18431
18432 2006-10-31 Vincent Celier <celier@adacore.com>
18433
18434 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18435 unknown attribute in unknown package or in package that does not need
18436 to be checked.
18437 (Parse_Package_Declaration): Do not issue warning for unknown package in
18438 quiet output.
18439
18440 2006-10-31 Vincent Celier <celier@adacore.com>
18441
18442 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18443 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18444 Packages_To_Check.
18445
18446 2006-10-31 Vincent Celier <celier@adacore.com>
18447
18448 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18449 on VMS, change "__" to '.' before checking the name.
18450 (Record_Ada_Source): Always add the source file name in the list of
18451 of sources, even if it is not the first time, as it is for another
18452 source index.
18453 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18454 dot, instead of replacing only the first '_'.
18455
18456 * prj-part.adb (Parse): Convert project file path to canonical form
18457
18458 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18459 extended, the project id of the project extending it is recorded in its
18460 data, even when it has already been processed as an imported project.
18461
18462 2006-10-31 Robert Dewar <dewar@adacore.com>
18463
18464 * repinfo.adb (List_Entities): Don't list entities from renaming
18465 declarations.
18466
18467 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18468 Robert Dewar <dewar@adacore.com>
18469
18470 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18471 only a restriction warning is active for the given restriction. This is
18472 desirable because we do not want to modify code in the case where only
18473 a warning is set.
18474 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18475 causes overriding of real restrictions.
18476 Take advantage of new No_Restrictions constant.
18477
18478 * raise.h: (__gnat_set_globals): Change profile.
18479
18480 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18481
18482 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18483
18484 * rtsfind.ads:
18485 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18486 Move all the entities in obsolete package System.PolyORB_Interface to
18487 System.Partition_Interface.
18488 (RE_Storage_Size): New function in System.Tasking.
18489 (RE_Get_Ceiling): New entity.
18490 (RE_Set_Ceiling): New entity.
18491 (RO_PE_Get_Ceiling): New entity.
18492 (RO_RE_Set_Ceiling): New entity.
18493 (Inherit_CPP_DT): New entity
18494
18495 2006-10-31 Robert Dewar <dewar@adacore.com>
18496
18497 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18498 starting with a digit.
18499
18500 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18501 Thomas Quinot <quinot@adacore.com>
18502 Javier Miranda <miranda@adacore.com>
18503 Gary Dismukes <dismukes@adacore.com>
18504
18505 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18506 properly an attempt to apply Unchecked_Access to a protected operation.
18507 (OK_Self_Reference): New subprogram to check the legality of an access
18508 attribute whose prefix is the type of an enclosing aggregate.
18509 Generalizes previous mechanism to handle attribute references nested
18510 arbitrarily deep within the aggregate.
18511 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18512 can appear in an aggregate if this is a default-initialized aggregate
18513 for a self-referential type.
18514 (Resolve_Attribute, case Access): Ditto.
18515 Add support for new implementation defined attribute Stub_Type.
18516 (Eval_Attribute, case Attribute_Stub_Type): New case.
18517 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18518 (Stream_Attribute_Available): Implement using new subprogram from
18519 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18520 Has_Specified_Stream_Attribute flag.
18521 Disallow Storage_Size and Storage_Pool for access to subprogram
18522 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18523 access types of return subtypes in extended return statements. Remove
18524 accessibility checks on anonymous access types when Unchecked_Access is
18525 used.
18526 (Analyze_Attribute): Add support for the use of 'Class to convert
18527 a class-wide interface to a tagged type.
18528 Add support for the attribute Priority.
18529 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18530 whether the designated type is discriminated with a constrained partial
18531 view and require static matching in that case.
18532 Add local variable Des_Btyp. The Designated_Type
18533 of an access to incomplete subtype is either its non-limited view if
18534 coming from a limited with or its etype if regular incomplete subtype.
18535
18536 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18537 Fix predicate to identify and allow cases of (expander-generated)
18538 references to tag of designated object of a RACW.
18539 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18540 non-static, and therefore cannot appear as a primary in a preelaborable
18541 package.
18542 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18543 Has_Read_Write_Attributes.
18544 (Has_Read_Write_Attributes): Reimplement in termes of
18545 Has_Stream_Attribute_Definition.
18546 (Missing_Read_Write_Attributes): When checking component types in a
18547 record, unconditionally call Missing_Read_Write_Attributes recursively
18548 (remove guard checking for Is_Record_Type / Is_Access_Type).
18549
18550 2006-10-31 Robert Dewar <dewar@adacore.com>
18551
18552 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18553 useless assignments here and conditionalize it on absence of exception
18554 handlers.
18555 (Analyze_Exception_Handlers): Small code reorganization of error
18556 detection code, for new handling of formal packages.
18557
18558 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18559 Hristian Kirtchev <kirtchev@adacore.com>
18560
18561 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18562 that has been constant-folded, preserve information of original tree,
18563 for ASIS uses.
18564 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18565 generated private extension declaration if the formal derived type is
18566 synchronized. Carry synchronized present over to the generated private
18567 extension.
18568 (Validate_Derived_Type_Instance): Ensure that the actual of a
18569 synchronized formal derived type is a synchronized tagged type.
18570 (Instantiate_Formal_Package): When creating the instantiation used to
18571 validate the actual package of a formal declared without a box, check
18572 whether the formal itself depends on a prior actual.
18573 (Instantiate_Formal_Subprogram): Create new entities for the defining
18574 identifiers of the formals in the renaming declaration, for ASIS use.
18575 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18576 a renaming declaration or a subtype declaration for an actual in an
18577 instance, capture location information of declaration in generic, for
18578 ASIS use.
18579 (Instantiate_Formal_Package): Add comments on needed additional tests.
18580 AI-317 (partial parametrization) is fully implemented.
18581 (Validate_Private_Type_Instance): Add check for actual which
18582 must have preelaborable initialization
18583 Use new // insertion for some continuation messages
18584 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18585 Default_Expression. Add type retrieval when the declaration has an
18586 access definition. Update premature usage of incomplete type check.
18587 (Check_Access_Definition): New subsidiary routine. Check whether the
18588 current compilation version is Ada 05 and the supplied node has an
18589 access definition.
18590 (Instantiate object): Alphabetize local variables. Handle the creation
18591 of new renaming declarations with respect to the kind of definition
18592 used - either an access definition or a subtype mark. Guard against
18593 unnecessary error message in the context of anonymous access types after
18594 they have been resolved. Add check for required null exclusion in a
18595 formal object declaration.
18596 (Switch_View): A private subtype of a non-private type needs to be
18597 switched (the base type can have been switched without its private
18598 dependents because of the last branch of Check_Private_View.
18599 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18600 value from BT.
18601 (Instantiate_Type): Emit an error message whenever a class-wide type of
18602 a tagged incomplete type is used as a generic actual.
18603 (Find_Actual_Type): Extend routine to handle a component type in a child
18604 unit that is imported from a formal package in a parent.
18605 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18606 agree on constrainedness, rather than checking against ultimate ancestor
18607 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18608 generic body, for navigation purposes.
18609
18610 2006-10-31 Robert Dewar <dewar@adacore.com>
18611 Thomas Quinot <quinot@adacore.com>
18612
18613 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18614 type.
18615 (New_Stream_Subprogram): When processing an attribute definition clause
18616 for a stream-oriented subprogram, record an entity node occurring at
18617 the point of clause to use for checking the visibility of the clause,
18618 as defined by 8.3(23) as amended by AI-195.
18619 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18620 New_Stream_Function and New_Stream_Procedure.
18621 (New_Stream_Function, New_Stream_Procedure): Removed.
18622 (Analyze_Attribute_Definition_Clause, case Address): Check new
18623 Alignment_Check check
18624
18625 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18626 Javier Miranda <miranda@adacore.com>
18627 Robert Dewar <dewar@adacore.com>
18628
18629 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18630 generate the same errors compiling under -gnatc.
18631 (Try_Object_Operation): If no candidate interpretation succeeds, but
18632 there is at least one primitive operation with the right name, report
18633 error in call rather than on a malformed selected component.
18634 (Analyze_Selected_Component): If the prefix is an incomplete type from
18635 a limited view, and the full view is available, use the full view to
18636 determine whether this is a prefixed call to a primitive operation.
18637 (Operator_Check): Verify that a candidate interpretation is a binary
18638 operation before checking the type of its second formal.
18639 (Analyze_Call): Add additional warnings for function call contexts not
18640 yet supported.
18641 (Analyze_Allocator): Move the check for "initialization not allowed for
18642 limited types" after analyzing the expression. This is necessary,
18643 because OK_For_Limited_Init looks at the structure of the expression.
18644 Before analysis, we don't necessarily know what sort of expression it
18645 is. For example, we don't know whether F(X) is a function call or an
18646 indexed component; the former is legal in Ada 2005; the latter is not.
18647 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18648 were missing. We also didn't handle qualified expressions. Now also
18649 allow function calls. Use new common routine OK_For_Limited_Init.
18650 (Analyze_Type_Conversion): Do not perform some legality checks in an
18651 instance, because the error message will be redundant or spurious.
18652 (Analyze_Overloaded_Selected_Component): Do not do style check when
18653 setting an entity, since we do not know it is the right entity yet.
18654 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18655 (Analyze_Overloaded_Selected_Component): Same change
18656 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18657 since regular incomplete subtypes are transformed into corresponding
18658 subtypes of their full views.
18659 (Complete_Object_Operation): Treat name of transformed subprogram call
18660 as coming from source, for browsing purposes.
18661 (Try_Primitive_Operation): If formal is an access parameter, compare
18662 with base type of object to determine whether it is a primitive
18663 operation.
18664 (Operator_Check): If no interpretation of the operator matches, check
18665 whether a use clause on any candidate might make the operation legal.
18666 (Try_Class_Wide_Operation): Check whether the first parameter is an
18667 access type whose designated type is class-wide.
18668
18669 2006-10-31 Robert Dewar <dewar@adacore.com>
18670 Ed Schonberg <schonberg@adacore.com>
18671 Gary Dismukes <dismukes@adacore.com>
18672
18673 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18674 warn on infinite loops.
18675 Add \\ to some continuation messages
18676 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18677 (Process_Bounds): If the bounds are integer literals that result from
18678 constant-folding, and they carry a user-defined type, preserve that type
18679 rather than treating this as an integer range.
18680 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18681 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18682 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18683 left hand side of assignment.
18684 (Analyze_Assignment): Add suport to manage assigments to the attribute
18685 priority of a protected object.
18686 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18687 not just identifiers.
18688 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18689 or AND THEN for possible tracking.
18690 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18691 case of while loops so we can track values in the loop body.
18692
18693 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18694 Hristian Kirtchev <kirtchev@adacore.com>
18695 Bob Duff <duff@adacore.com>
18696
18697 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18698 procedure cannot be a protected operation (it is a basic_declaration,
18699 not a subprogram_declaration).
18700 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18701 Subp. Add logic for entry processing.
18702 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18703 Determine whether an entry or subprogram of a protected or task type
18704 override an inherited primitive of an implemented interface.
18705 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18706 Update the actual used in calls to Check_Overriding_Indicator.
18707 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18708 generate the proper reference to the parent unit, for cross-reference.
18709 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18710 Is_Formal.
18711 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18712 (Add_Extra_Formal): Revise procedure to allow passing in associated
18713 entity, scope, and name suffix, and handle setting of the new
18714 Extra_Formals field.
18715 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18716 pass new parameters. Add support for adding the new extra access formal
18717 for functions whose calls are treated as build-in-place.
18718 (Analyze_A_Return_Statement): Correct casing in error message.
18719 Move Pop_Scope to after Analyze_Function_Return, because an extended
18720 return statement really is a full-fledged scope. Otherwise, visibility
18721 doesn't work right. Correct use of "\" for continuation messages.
18722 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18723 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18724 the node doesn't get properly marked as analyzed.
18725 (Analyze_Subprogram_Body): If subprogram is a function that returns
18726 an anonymous access type that denotes a task, build a Master Entity
18727 for it.
18728 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18729 proper usage of null exclusion in a result definition.
18730 (Process_Formals): Code cleanup and new error message.
18731 (Process_Formals): Detect incorrect application of null exclusion to
18732 non-access types.
18733 (Conforming_Types): Handle conformance between [sub]types and itypes
18734 generated for entities that have null exclusions applied to them.
18735 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18736 base type is an access subtype. This case arrises with null exclusions.
18737 (New_Overloaded_Entity): Do not remove the overriden entity from the
18738 homonym chain if it corresponds with an abstract interface primitive.
18739 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18740 call to the synthesized predicate Is_Incomplete_Type.
18741 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18742 primitives.
18743 (Analyze_Subprogram_Declaration): Check that abstract interface
18744 primitives are abstract or null.
18745 (Analyze_Subprogram_Specification): Remove previous check for abstract
18746 interfaces because it was not complete.
18747 (Has_Interface_Formals): Removed.
18748
18749 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18750 Javier Miranda <miranda@adacore.com>
18751
18752 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18753 of Analyze_Package_Body, to create Itype references for anonymous
18754 access types created in the package declaration, whose designated types
18755 may have only a limited view.
18756 (Analyze_Package_Specification): For the private part of a nested
18757 package, install private_with_clauses of enclosing compilation unit if
18758 we are in its visible part.
18759 (Declare_Inherited_Private_Subprograms): Complete barrier
18760 to ensure that the primitive operation has an alias to some parent
18761 primitive. This is now required because, after the changes done for the
18762 implementation of abstract interfaces, the contents of the list of
18763 primitives has entities whose alias attribute references entities of
18764 such list of primitives.
18765 (Analyze_Package_Specification): Simplify code that handles parent units
18766 of instances and formal packages.
18767 (Uninstall_Declarations): Check the convention consistency among
18768 primitive overriding operations of a tagged record type.
18769
18770 2006-10-31 Robert Dewar <dewar@adacore.com>
18771 Hristian Kirtchev <kirtchev@adacore.com>
18772 Javier Miranda <miranda@adacore.com>
18773 Ed Schonberg <schonberg@adacore.com>
18774
18775 * sem_ch8.adb: Minor error msg rewording
18776 (Undefined): When checking for misspellings, invert arguments (to get
18777 expected and found set right)
18778 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18779 (Analyze_Generic_Renaming): Same fix
18780 (Use_One_Package): Do not take into account the internal entities of
18781 abstract interfaces during the analysis of entities that are marked
18782 as potentially use-visible.
18783 (Find_Type): Handle the case of an attribute reference for
18784 implementation defined attribute Stub_Type (simply let the analysis of
18785 the attribute reference rewrite it).
18786 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18787 type that appears in a Use_Type clause.
18788 (Analyze_Object_Renaming): Add support for renaming of the Priority
18789 attribute.
18790 (Find_Type): In Ada 2005, a task type can be used within its own body,
18791 when it appears in an access definition.
18792 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18793 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18794 in a formal object declaration or in a subtype declaration.
18795 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18796 (Check_Null_Exclusion): New local routine to
18797 Analyze_Subprogram_Renaming. Check whether the formals and return
18798 profile of a renamed subprogram have required null exclusions when
18799 their counterparts of the renaming already impose them.
18800 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18801 Determine whether an entity is inside a generic scope.
18802 (In_Open_Scope): First pass of documentation update.
18803 (Find_Expanded_Name): Add support for shadow entities associated with
18804 limited withed packages. This is required to handle nested packages.
18805 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18806 that makes a renaming of a limited withed package illegal.
18807
18808 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18809 Ed Schonberg <schonberg@adacore.com>
18810
18811 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18812 Check_Overriding_Indicator.
18813 (Analyze_Task_Definition): Ditto.
18814 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18815 (Check_Overriding_Indicator): To find overridden interface operation,
18816 examine only homonyms that have an explicit subprogram declaration, not
18817 inherited operations created by an unrelated type derivation.
18818 (Check_Overriding_Indicator): When checking for the presence of "null"
18819 in a procedure, ensure that the queried node is a procedure
18820 specification.
18821 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18822 type when the formal is an access to variable.
18823 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18824 (Analyze_Task_Type): Same addition
18825 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18826 provide navigation capabilities for entries.
18827
18828 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18829 Ed Schonberg <schonberg@adacore.com>
18830 Javier Miranda <miranda@adacore.com>
18831 Gary Dismukes <dismukes@adacore.com>
18832
18833 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18834 inherited from an interface ancestor by another interface in the
18835 context of an instance as 'late'.
18836 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18837 of a call to a function that dispatches on access result.
18838 (Check_Dispatching_Operation): In case of late overriding of a primitive
18839 that covers abstract interface subprograms we register it in all the
18840 secondary dispatch tables associated with abstract interfaces.
18841 (Check_Dispatching_Call): Add check that a dispatching call is not made
18842 to a function with a controlling result of a limited type. This is a
18843 current implementation restriction.
18844 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18845 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18846 argument is an interface type that is a generic formal.
18847 (Is_Interface_Subprogram): Removed.
18848 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18849 operation, check the formals to handle the case in which it is
18850 associated with an abstract interface type.
18851
18852 2006-10-31 Robert Dewar <dewar@adacore.com>
18853 Ed Schonberg <schonberg@adacore.com>
18854
18855 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18856 Add new calls to this procedure during traversal
18857 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18858 another unit if expansion is disabled.
18859
18860 2006-10-31 Robert Dewar <dewar@adacore.com>
18861
18862 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18863 Current_Value in the conditional case, to evaluate additional
18864 comparisons at compile time.
18865
18866 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18867 Hristian Kirtchev <kirtchev@adacore.com>
18868 Javier Miranda <miranda@adacore.com>
18869
18870 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18871 subprogram type to provide better diagnostics in case of ambiguity.
18872 (Covers): Handle coverage of formal and actual anonymous access types in
18873 the context of generic instantiation.
18874 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18875 abstract interface types; this is required to handle concurrent types
18876 with discriminants and abstract interface types.
18877 (Covers): Include type coverage of both regular incomplete subtypes and
18878 incomplete subtypes of incomplete type visibles through a limited with
18879 clause.
18880
18881 2006-10-31 Robert Dewar <dewar@adacore.com>
18882 Hristian Kirtchev <kirtchev@adacore.com>
18883 Ed Schonberg <schonberg@adacore.com>
18884
18885 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18886 messages for entities in packages which are not used.
18887 (Collect_Synchronized_Interfaces): New procedure.
18888 (Overrides_Synchronized_Primitive): New function.
18889 (Denotes_Discriminant): Extend predicate to apply to task types.
18890 Add missing continuation marks in error msgs
18891 (Unqualify): New function for removing zero or more levels of
18892 qualification from an expression. There are numerous places where this
18893 ought to be used, but we currently only deal properly with zero or one
18894 level.
18895 (In_Instance); The analysis of the actuals in the instantiation of a
18896 child unit is not within an instantiation, even though the parent
18897 instance is on the scope stack.
18898 (Safe_To_Capture_Value): Exclude the case of variables that are
18899 renamings.
18900 (Check_Obsolescent): Removed
18901 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18902 is an aliased view, even when rewritten as a reference to the target
18903 object in an assignment.
18904 (Get_Subprogram_Entity): New function
18905 (Known_To_Be_Assigned): New function
18906 (Type_Access_Level): Compute properly the access level of a return
18907 subtype that is an anonymous access type.
18908 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18909 (Is_Transfer): The new extended_return_statement causes a transfer of
18910 control.
18911 (Has_Preelaborable_Initialization): New function
18912 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18913 has a null exclusion depending on its Nkind.
18914 Change Is_Lvalue to May_Be_Lvalue
18915 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18916 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18917 (Safe_To_Capture_Value): Extend functionality so it can be used for
18918 the current value condition case.
18919 (Has_Compatible_Alignment): New function
18920 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18921 objects to handle the Ada 2005 case, where aliasedness no longer implies
18922 that the object is constrained. In particular, for dereferenced names,
18923 the designated object must be assumed to be unconstrained.
18924 (Kill_Current_Values): Properly deal with the case where we encounter
18925 a loop in the scope chain.
18926 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18927 a value.
18928 (Compile_Time_Constraint_Error): Improve error message in error case
18929
18930 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18931 associated with entities of abstract interface primitives.
18932 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18933
18934 2006-10-31 Robert Dewar <dewar@adacore.com>
18935
18936 * s-osinte-tru64.adb:
18937 Mark Asm statements Volatile to prevent warnings (seems a
18938 reasonable change anyway)
18939 Fixes new warnings
18940
18941 * s-mastop-irix.adb: Add Volatile to Asm statements
18942 Suppresses warning, and seems appropriate in any case
18943
18944 * s-osinte-vms.adb: Add Volatile to Asm statement
18945
18946 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18947
18948 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18949 returned.
18950 Add call to Check_Code_Statement
18951
18952 2006-10-31 Robert Dewar <dewar@adacore.com>
18953 Ed Schonberg <schonberg@adacore.com>
18954 Bob Duff <duff@adacore.com>
18955
18956 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18957 Synchronized_Present): Add Formal_Derived_Type_Definition and
18958 Private_Extension_Declaration to the list of assertions.
18959 (Is_Entry_Barrier_Function): New flag
18960 (Has_Self_Reference): New flag on aggregates, to indicate that they
18961 contain a reference to the enclosing type, inserted through a default
18962 initialization.
18963 (Next_Rep_Item): Move from Node4 to Node5.
18964 (Entity): Add this field for N_Attribute_Definition_Clause.
18965 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18966 (N_Return_Object_Declaration): Remove this node kind. We now use
18967 N_Object_Declaration instead.
18968 (Actual_Designated_Subtype): Move to a different place to make room in
18969 N_Extended_Return_Statement.
18970 (Procedure_To_Call): Move to a different place to make room in
18971 N_Extended_Return_Statement.
18972 (Return_Type): Removed this field to make room in return statements
18973 (both kinds).
18974 (Return_Statement_Entity): New field in return statements, in part to
18975 replace Return_Type, and in part to support the fact that return
18976 statements are now pushed on the scope stack during semantic analysis.
18977 (Return_Object_Declarations): New field to support extended return
18978 statements.
18979 (N_Extended_Return_Statement): New node for extended_return_statement
18980 nonterminal.
18981 (N_Return_Object_Declaration): New node for part of
18982 extended_return_statement nonterminal. Needed because all the necessary
18983 fields won't fit in N_Extended_Return_Statement.
18984 Generic_associations now carry the Box_Present flag, to indicate a
18985 default for an actual in a partially parametrized formal package.
18986
18987 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18988 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18989 and for the new predefined dispatching policies: EDF_Across_Priorities,
18990 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18991 Introduce new name Stub_Type for implementation defined attribute.
18992 Add pragma Preelaborable_Initialization
18993 Add entry for Priority attribute.
18994 Add Pragma_Wide_Character_Encoding
18995 (Get_Convention_Name): Given a convention id, this function returns the
18996 corresponding name id from the names table.
18997
18998 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18999 Robert Dewar <dewar@adacore.com>
19000 Bob Duff <duff@adacore.com>
19001
19002 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
19003 print null exclusion twice in the case of an access definition,
19004 Implement new -gnatL switch
19005 Remove N_Return_Object_Declaration. We now use
19006 N_Object_Declaration instead. Implement the case for
19007 N_Extended_Return_Statement. Alphabetize the cases.
19008 Add cases for new nodes N_Extended_Return_Statement and
19009 N_Return_Object_Declaration. The code is not yet written.
19010 Update the output for N_Formal_Object_Declaration
19011 and N_Object_Renaming_Declaration.
19012 (Write_Itype): Account for the case of a modular integer subtype whose
19013 base type is private.
19014
19015 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19016
19017 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
19018 Remove elaboration code, now done in the binder.
19019
19020 * s-rident.ads: Make this unit Preelaborate.
19021 (No_Restrictions): New constant used to clean up code and follow
19022 preelaborate constraints.
19023
19024 * s-stalib.adb:
19025 Add System.Restrictions dependence, referenced directly from the
19026 binder generated file.
19027
19028 2006-10-31 Gary Dismukes <dismukes@adacore.com>
19029
19030 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
19031 True when AAMP extended floating-point is in use (48-bit). Change type
19032 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
19033 the two byte array types on AFloat. Change type of IV_Ilf overlay
19034 variable from Byte8 to ByteLF. Add appropriate initializations of
19035 floating-point overlays for AAMP cases.
19036
19037 2006-10-31 Javier Miranda <miranda@adacore.com>
19038
19039 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19040 (Get_Ceiling): New subprogram that returns
19041 the ceiling priority of the protected object.
19042 (Set_Ceiling): New subprogram that sets the new ceiling priority of
19043 the protected object.
19044
19045 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19046
19047 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19048
19049 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19050
19051 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19052 requeuing to the same protected object to give higher priority tasks
19053 the opportunity to execute.
19054
19055 2006-10-31 Robert Dewar <dewar@adacore.com>
19056
19057 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19058 add more precise check for the character sequence that follows '[' to
19059 avoid possible confusion in case if '[' is the last character of a
19060 string literals.
19061 (Scan_Wide): Always allow brackets encoding
19062
19063 2006-10-31 Olivier Hainque <hainque@adacore.com>
19064
19065 * s-stchop.ads: make this unit preelaborate. This is desirable in
19066 general and made mandatory by the use of this unit by s-taprop which
19067 is itself preelaborate.
19068
19069 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19070 Td_Events component.
19071
19072 2006-10-31 Vincent Celier <celier@adacore.com>
19073
19074 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19075 in file names.
19076
19077 2006-10-31 Vincent Celier <celier@adacore.com>
19078
19079 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19080
19081 2006-10-31 Vincent Celier <celier@adacore.com>
19082
19083 * makegpr.adb (Check_Compilation_Needed): Take into account path names
19084 with spaces.
19085 (Check_Compilation_Needed): When checking a C or C++ source, do not
19086 resolve symbolic links.
19087 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19088 When not in verbose mode and Ellipse is True, display "..." for the
19089 first argument with Display set to False.
19090 (Build_Global_Archive): Always set Display True for the first object
19091 file. Call Display_Command with Ellipse set to True.
19092
19093 2006-10-31 Matt Heaney <heaney@adacore.com>
19094
19095 * a-crbtgo.ads: Commented each subprogram
19096
19097 * a-crbtgo.adb: Added reference to book from which algorithms were
19098 adapted.
19099
19100 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19101 indicate which child.
19102 (Generic_Conditional_Insert): changed parameter name from "Success" to
19103 "Inserted".
19104 (Generic_Unconditional_Insert_With_Hint): improved algorithm
19105
19106 * a-coorse.adb (Replace_Element): changed parameter name in call to
19107 conditional insert operation.
19108
19109 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19110
19111 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19112 Generic_Iteration
19113
19114 * a-ciorse.adb (Replace_Element): changed parameter name in call to
19115 conditional insert operation.
19116
19117 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19118 Generic_Iteration.
19119
19120 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19121 instead of mode inout.
19122
19123 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19124 draft
19125 (Generic_Read): preserve existing buckets array if possible
19126 (Generic_Write): don't send buckets array length anymore
19127
19128 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19129 instead of mode inout.
19130
19131 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19132 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19133
19134 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19135 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19136 (Replace_Element): local operation is now an instantiation
19137
19138 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19139 check current length.
19140 (Generic_Replace_Element): new operation
19141
19142 2006-10-31 Doug Rupp <rupp@adacore.com>
19143
19144 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19145 Call TBK$SYMBOLIZE without omitting parameters.
19146
19147 2006-10-31 Vincent Celier <celier@adacore.com>
19148
19149 * symbols-processing-vms-ia64.adb,
19150 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19151 that come from generic instantiations in bodies.
19152
19153 2006-10-31 Pat Rogers <rogers@adacore.com>
19154
19155 * a-rttiev.ads, a-rttiev.adb:
19156 This is a significant redesign primarily for the sake of automatic
19157 timer task termination but also to fix a design flaw.
19158 Therefore we are now using an RTS lock, instead of a protected
19159 object, to provide mutual exclusion to the queue of pending events
19160 and the type Timing_Event is no longer a protected type.
19161
19162 2006-10-31 Robert Dewar <dewar@adacore.com>
19163 Cyrille Comar <comar@adacore.com>
19164 Ben Brosgol <brosgol@adacore.com>
19165
19166 * debug.adb: Update flags documentation
19167
19168 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19169 Clean up documentation for several other warning switches
19170 Clarify how task stack size can be specified with various
19171 versions of Windows.
19172 Add note that -gnatVo includes ranges including loops
19173 Add documentation for -gnatL switch
19174 Add note on elaboration warning for initializing variables
19175 Add documentation for new -gnatwt warning switch
19176 Document new form of pragma Warnings (On|Off, string)
19177 Add comment on use of pragma Warnings to control warnings
19178 Add documentation for -gnatjnn switch
19179 Modify section on interfacing with C for VMS 64-bit.
19180 Add doc for -gnatVe/E
19181 Add documentation of new warning flags -gnatww/-gnatwW
19182 Add warnings about address clause overlays to list of warnings
19183 (Exception Handling Control): Document that the option --RTS must be
19184 used consistently for gcc and gnatbind.
19185 Clarify that inlining is not always possible
19186 Update documentation on pragma Unchecked_Union.
19187
19188 * gnat_rm.texi:
19189 Add documentation for new extended version of pragma Obsolescent
19190 Add documentation for implementation defined attribute 'Stub_Type.
19191 Add note on use of Volatile in asm statements
19192 Add documentation on use of pragma Unreferenced in context clause
19193 Document new form of pragma Warnings (On|Off, pattern)
19194 Document pragma Wide_Character_Encoding
19195 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19196 enforced if code generation is active.
19197 Add section on pragma Suppress to document GNAT specific check
19198 Alignment_Check
19199 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19200 Add documentation for pragma Restrictions (No_Elaboration_Code)
19201
19202 * gnat-style.texi:
19203 Add comments on layout of subprogram local variables in the
19204 presence of nested subprograms.
19205
19206 * ug_words: Resync.
19207
19208 * elists.ads: Minor reformatting
19209 Node returns Node_Or_Entity_Id (doc change only)
19210
19211 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19212
19213 * g-arrspl.ads (Create): Update comments.
19214
19215 * sem.ads: Add details on the handling of the scope stack.
19216
19217 * usage.adb: Update documentation.
19218
19219 * validsw.ads, validsw.adb:
19220 Add definition of Validity_Check_Components and implement -gnatVe/E
19221
19222 * vms_data.ads: Add missing VMS qualifiers.
19223
19224 * s-addope.ads: Add documentation on overflow and divide by zero
19225
19226 2006-10-31 Robert Dewar <dewar@adacore.com>
19227 Thomas Quinot <quinot@adacore.com>
19228 Arnaud Charlet <charlet@adacore.com>
19229
19230 * fmap.adb: Put routines in alpha order
19231
19232 * g-boumai.ads: Remove redundant 'in' keywords
19233
19234 * g-cgi.adb: Minor reformatting
19235
19236 * g-cgi.ads: Remove redundant 'in' keywords
19237
19238 * get_targ.adb: Put routines in alpha order
19239
19240 * prj-attr.ads: Minor reformatting
19241
19242 * s-atacco.ads: Minor reformatting
19243
19244 * scn.adb: Put routines in alpha order
19245
19246 * sinput-l.adb: Minor comment fix
19247
19248 * sinput-p.adb: Minor comment fix
19249
19250 * s-maccod.ads: Minor reformatting
19251
19252 * s-memory.adb: Minor reformatting
19253
19254 * s-htable.adb: Fix typo in comment.
19255
19256 * s-secsta.adb: Minor comment update.
19257
19258 * s-soflin.adb: Minor reformatting
19259
19260 * s-stoele.ads:
19261 Add comment about odd qualification in Storage_Offset declaration
19262
19263 * s-strxdr.adb:
19264 Remove unnecessary 'in' keywords for formal parameters.
19265
19266 * treeprs.adt: Minor reformatting
19267
19268 * urealp.adb: Put routines in alpha order
19269
19270 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19271 taking string.
19272
19273 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19274
19275 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19276
19277 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19278 workaround as on other platforms.
19279
19280 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19281 * g-expect-vms.adb: Remove redundant 'in' keywords
19282
19283 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19284 clear error message if the list-of-files file cannot be opened.
19285
19286 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19287 equality operator is always visible.
19288
19289 * lang.opt: Woverlength-strings: New option.
19290
19291 * nmake.adt:
19292 Update copyright, since nmake.ads and nmake.adb have changed.
19293
19294 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19295 (Binder_Output_Time_Stamps_Set): removed.
19296 (Old_Binder_Output_Time_Stamp): idem.
19297 (New_Binder_Output_Time_Stamp): idem.
19298 (Recording_Time_From_Last_Bind): idem.
19299 (Recording_Time_From_Last_Bind): Make constant.
19300
19301 * output.ads, output.adb (Write_Str): Allow LF characters
19302 (Write_Spaces): New procedure
19303
19304 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19305
19306 * inline.adb: Minor reformatting
19307
19308 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19309
19310 * s-mastop-vms.adb: Remove redundant 'in' keywords
19311
19312 * s-osprim-vms.adb: Remove redundant 'in' keywords
19313
19314 * s-trafor-default.adb: Remove redundant 'in' keywords
19315
19316 * 9drpc.adb: Remove redundant 'in' keywords
19317
19318 * s-osinte-mingw.ads: Minor reformatting
19319
19320 * s-inmaop-posix.adb: Minor reformatting
19321
19322 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19323
19324 * a-exexda.adb: Minor code reorganization
19325
19326 * a-filico.adb: Minor reformatting
19327
19328 * a-finali.adb: Minor reformatting
19329
19330 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19331
19332 * a-numeri.ads: Minor reformatting
19333
19334 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19335
19336 * exp_pakd.ads: Fix obsolete comment
19337
19338 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19339 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19340 Probably not a bug, but certainly neater and more efficient.
19341
19342 * a-tienio.adb: Minor reformatting
19343
19344 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19345 Avoid assuming low bound of string is 1.
19346
19347 * gnatbind.adb: Change Bindusg to package and rename procedure as
19348 Display, which now ensures that it only outputs usage information once.
19349 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19350
19351 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19352 Table'First.
19353
19354 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19355 warning.
19356 (Match): Add pragma Assert to ensure that Matches'First is zero
19357
19358 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19359
19360 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19361 documented preconditions (also kills warnings about bad indexes).
19362
19363 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19364 is 1.
19365 (Build_Import_Library): Ditto;
19366
19367 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19368
19369 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19370
19371 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19372 lower bound of choice table is 1.
19373
19374 * sem_case.ads (Analyze_Choices): Document that lower bound of
19375 Choice_Table is 1.
19376
19377 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19378 string is 1.
19379
19380 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19381 and add appropriate Assert pragma to suppress warnings.
19382
19383 * atree.h, atree.ads, atree.adb
19384 Change Elist24 to Elist25
19385 Add definitions of Field28 and Node28
19386 (Traverse_Field): Use new syntactic parent table in sinfo.
19387
19388 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19389
19390 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19391
19392 * exp_tss.adb: Put routines in alpha order
19393
19394 * fe.h: Remove redundant declarations.
19395
19396 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19397
19398 * utils.c (builtin_function): Rename to gnat_builtin_function.
19399 Move common code to add_builtin_function.
19400 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19401 gnat_builtin_function.
19402 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19403 Change the signature.
19404
19405 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19406
19407 * Makefile.in: Add TEXI2PDF definition.
19408 * Make-lang.in: Add "ada.pdf" target.
19409
19410 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19411
19412 * decl.c, utils.c: Fix comment typos.
19413 * utils.c: Fix a typo.
19414
19415 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19416
19417 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19418 on "pure" Ada subprograms if SJLJ exceptions are used.
19419 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19420 on the declaration node of JMPBUF_SAVE.
19421 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19422 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19423 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19424
19425 2006-08-20 Laurent Guerby <laurent@guerby.net>
19426
19427 PR ada/28716
19428 g-socket.adb (Bind_Socket): Call Set_Address.
19429
19430 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19431
19432 PR ada/15802
19433 * decl.c (same_discriminant_p): New static function.
19434 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19435 subtype and we have discriminants, fix up the COMPONENT_REFs
19436 for the discriminants to make them reference the corresponding
19437 fields of the parent subtype after it has been built.
19438
19439 2006-09-15 Roger Sayle <roger@eyesopen.com>
19440
19441 PR ada/18817
19442 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19443 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19444
19445 2006-09-13 Olivier Hainque <hainque@adacore.com>
19446
19447 PR ada/29025
19448 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19449 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19450 let the common gimplifier code make and propagate a temporary copy.
19451 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19452 out/in-out actuals and defer setting the addressable/readonly bits
19453 to the gimplifier.
19454
19455 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19456
19457 PR ada/28591
19458 * decl.c (components_to_record): Defer emitting debug info for the
19459 record type associated with the variant until after we are sure to
19460 actually use it.
19461
19462 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19463
19464 PR ada/21952
19465 * gigi.h (gnat_internal_attribute_table): Declare.
19466 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19467 * utils.c (gnat_internal_attribute_table): New global variable.
19468 (builtin_function): Always call decl_attributes on the builtin.
19469 (handle_const_attribute): New static function.
19470 (handle_nothrow_attribute): Likewise.
19471
19472 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19473
19474 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19475
19476 2006-06-23 Olivier Hainque <hainque@adacore.com>
19477
19478 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19479 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19480
19481 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19482 Eric Botcazou <ebotcazou@adacore.com>
19483
19484 PR ada/18692
19485 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19486 check-gnat into check-acats.
19487
19488 2006-06-17 Karl Berry <karl@gnu.org>
19489
19490 * gnat-style.texi (@dircategory): Use "Software development"
19491 instead of "Programming", following the Free Software Directory.
19492
19493 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19494
19495 PR ada/27944
19496 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19497
19498 2006-06-06 Laurent Guerby <laurent@guerby.net>
19499
19500 PR ada/27769
19501 mlib-utl.adb: Use Program_Name.
19502
19503 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19504
19505 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19506 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19507 trans.c, utils.c: Fix comment typos. Follow spelling
19508 conventions.
19509 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19510 conventions.
19511
19512 2006-05-19 Nicolas Setton <setton@adacore.com>
19513
19514 * misc.c (gnat_dwarf_name): New function.
19515 (LANG_HOOKS_DWARF_NAME): Define to it.
19516
19517 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19518
19519 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19520 (ada/misc.o): Likewise.
19521 (ada/utils.o): Likewise.
19522
19523 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19524
19525 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19526 * s-osinte-kfreebsd-gnu.ads: New file.
19527
19528 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19529
19530 * Make-lang.in: Rename docdir to gcc_docdir.
19531
19532 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19533
19534 * gigi.h (get_ada_base_type): Delete.
19535 * utils2.c (get_ada_base_type): Likewise.
19536 * trans.c (convert_with_check): Operate in the real base type.
19537
19538 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19539
19540 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19541
19542 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19543
19544 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19545 whether to make the decl common.
19546
19547 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19548
19549 * Make-lang.in (Ada): Remove.
19550 (.PHONY): Remove Ada
19551
19552 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19553
19554 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19555 aggregate, check the interpretations of the other operand to find one
19556 that may be a boolean array.
19557
19558 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19559 the prefix is a private extension.
19560
19561 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19562
19563 PR ada/26315
19564 * utils2.c (find_common_type): If both input types are BLKmode and
19565 have the same constant size, keep using the first one.
19566
19567 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19568
19569 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19570
19571 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19572
19573 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19574
19575 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19576 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19577 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19578 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19579 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19580 aborted while owning a lock.
19581
19582 2006-02-17 Javier Miranda <miranda@adacore.com>
19583 Robert Dewar <dewar@adacore.com>
19584
19585 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19586 through an access to class-wide interface we force the displacement of
19587 the pointer to the allocated object to reference the corresponding
19588 secondary dispatch table.
19589 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19590 if Long_Shifts are supported on the target, even if 64 bit divides
19591 are not supported (configurable run time mode).
19592 (Expand_N_Type_Conversion): Do validity check if validity checks on
19593 operands are enabled.
19594 (Expand_N_Qualified_Expression): Do validity check if validity checks
19595 on operands are enabled.
19596
19597 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19598
19599 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19600 must be materialized when the renamed expression is an explicit
19601 dereference.
19602
19603 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19604
19605 * freeze.adb (Statically_Discriminated_Components): Return false if
19606 the bounds of the type of the discriminant are not static expressions.
19607
19608 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19609 the bounds of the discriminant type are not static.
19610
19611 2006-02-17 Robert Dewar <dewar@adacore.com>
19612
19613 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19614 then we close To if it is valid.
19615
19616 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19617
19618 * init.c (facility_resignal_table): new array
19619 (__gnat_default_resignal_p): enhance default predicate to resignal if
19620 VMS condition has one of the predefined facility codes.
19621
19622 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19623
19624 * Makefile.in: Use VMS64 specialized versions of several units in
19625 Interfaces.C hierarchy to be compatible with HP C default size choices.
19626 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19627
19628 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19629
19630 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19631 instantiation, the corresponding entity is the related_instance of the
19632 wrapper package created for the instance.
19633
19634 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19635
19636 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19637 the current instance is nested within another instance in a child unit.
19638
19639 2006-02-17 Javier Miranda <miranda@adacore.com>
19640 Ed Schonberg <schonberg@adacore.com>
19641
19642 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19643 type we cannot inherit the primitive operations; we inherit the
19644 Corresponding_Record_Type (which has the list of primitive operations).
19645 (Check_Anonymous_Access_Types): When creating anonymous access types for
19646 access components, use Rewrite in order to preserve the tree structure,
19647 for ASIS use.
19648 (Analyze_Object_Declaration): For limited types with access
19649 discriminants with defaults initialized by an aggregate, obtain
19650 subtype from aggregate as for other mutable types.
19651 (Derived_Type_Declaration): If the derived type is a limited interface,
19652 set the corresponding flag (Is_Limited_Record is not sufficient).
19653
19654 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19655
19656 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19657 to inline a function that returns an unconstrained type, the return
19658 expression must be the first variable declared in the body of the
19659 function.
19660
19661 2006-02-17 Javier Miranda <miranda@adacore.com>
19662
19663 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19664 abstract interface type, the static analysis is not enough to know if
19665 the interface is implemented or not by the source tagged type. Hence
19666 we must pass the work to the expander to generate the required code to
19667 evaluate the conversion at run-time.
19668 (Resolve_Equality_Op): Do not apply previous
19669 transformation if expansion is disasbled, to prevent anomalies when
19670 locating global references in a generic unit.
19671
19672 2006-02-17 Vincent Celier <celier@adacore.com>
19673
19674 * snames.ads, snames.adb: New standard names for new project attributes:
19675 archive_builder, archive_indexer, compiler_pic_option,
19676 config_body_file_name, config_body_file_name_pattern,
19677 config_file_switches, config_file_unique, config_spec_file_name,
19678 config_spec_file_name_pattern, default_builder_switches,
19679 default_global_compiler_switches, default_language,
19680 dependency_file_kind, global_compiler_switches, include_path,
19681 include_path_file, language_kind, linker_executable_option,
19682 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19683 roots, runtime_project.
19684
19685 2006-02-17 Matthew Heaney <heaney@adacore.com>
19686
19687 * a-convec.ads, a-convec.adb:
19688 (operator "&"): handle potential overflow for large index types
19689 (Insert): removed Contraint_Error when using large index types
19690 (Insert_Space): removed Constraint_Error for large index types
19691 (Length): moved constraint check from Length to Insert
19692
19693 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19694 as not null access.
19695 Explicit raise statements now include an exception message.
19696 (operator "&"): handle potential overflow for large index types
19697 (Insert): removed Contraint_Error when using large index types
19698 (Insert_Space): removed Constraint_Error for large index types
19699 (Length): moved constraint check from Length to Insert
19700
19701 2006-02-17 Robert Dewar <dewar@adacore.com>
19702
19703 * s-wchcnv.adb: Document handling of [ on output (we do not change
19704 this to ["5B"] and the new comments say why not.
19705
19706 * gnat_ugn.texi:
19707 Add note for -gnatVo that this now includes the cases of type
19708 conversions and qualified expressions.
19709 Add comments on handling of brackets encoding for Text_IO
19710
19711 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19712 Thomas Quinot <quinot@adacore.com>
19713 Robert Dewar <dewar@adacore.com>
19714 Javier Miranda <miranda@adacore.com>
19715
19716 * expander.adb: Fix typo in comment
19717
19718 * exp_pakd.adb: Fix typo
19719 Minor comment reformatting.
19720
19721 * g-dyntab.adb: Minor reformatting
19722
19723 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19724 aliased subprograms to look for the abstract interface subprogram.
19725
19726 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19727
19728 * env.c (__gnat_setenv): Use size_t.
19729 (__gnat_unsetenv): Likewise.
19730 (__gnat_clearenv): Likewise.
19731
19732 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19733
19734 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19735
19736 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19737
19738 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19739 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19740 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19741 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19742 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19743 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19744 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19745 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19746 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19747 no longer used.
19748
19749 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19750
19751 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19752 protection against race conditions is not needed.
19753 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19754 fallback handler.
19755 (Set_Specific_Handler): Add mutual exclusive access to the specific
19756 handler.
19757 (Specific_Handler): Add mutual exclusive access for retrieving the
19758 specific handler.
19759
19760 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19761 back handler.
19762
19763 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19764 Fall_Back_Handler and Specific_Handler.
19765
19766 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19767 termination handlers.
19768 Set two different owerflow depending on the maximal stack size.
19769
19770 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19771 protection against race conditions is not needed when executing the
19772 task termination handler.
19773
19774 2006-02-13 Robert Dewar <dewar@adacore.com>
19775
19776 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19777 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19778 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19779 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19780 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19781 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19782 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19783 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19784 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19785 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19786 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19787 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19788 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19789 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19790 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19791 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19792 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19793 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19794 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19795 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19796 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19797 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19798 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19799 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19800 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19801 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19802 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19803 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19804 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19805 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19806 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19807 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19808 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19809 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19810 reformatting.
19811
19812 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19813
19814 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19815 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19816 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19817 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19818 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19819 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19820 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19821 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19822 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19823
19824 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19825
19826 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19827 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19828 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19829 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19830 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19831 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19832 replaced by anonymous access type.
19833 (pthread_sigmask): Now take an access sigset_t
19834
19835 * s-osinte-hpux.ads: Ditto.
19836 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19837 properly 32 and 64 bit ABIs.
19838
19839 2006-02-13 Pascal Obry <obry@adacore.com>
19840
19841 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19842 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19843 s-taprop-linux.adb, s-taprop-solaris.adb,
19844 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19845 adjustement is already done when calling this routine.
19846
19847 2006-02-13 Pascal Obry <obry@adacore.com>
19848
19849 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19850 table to take advantage of the 16 priority levels available on Windows
19851 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19852 supported by this new mapping.
19853
19854 2006-02-13 Nicolas Setton <setton@adacore.com>
19855
19856 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19857 (get_encoding): New subprogram. Extracts the encodings from an encoded
19858 Ada name.
19859
19860 2006-02-13 Pascal Obry <obry@adacore.com>
19861 Nicolas Roche <roche@adacore.com>
19862 Arnaud Charlet <charlet@adacore.com>
19863
19864 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19865 support.
19866 (__gnat_try_lock): Add unicode support by using a specific section on
19867 Windows.
19868 (__gnat_get_current_dir): Idem.
19869 (__gnat_open_read): Idem.
19870 (__gnat_open_rw): Idem.
19871 (__gnat_open_create): Idem.
19872 (__gnat_create_output_file): Idem.
19873 (__gnat_open_append): Idem.
19874 (__gnat_open_new): Idem.
19875 (__gnat_file_time_name): Idem.
19876 (__gnat_set_file_time_name): Idem.
19877 (__gnat_stat): Idem.
19878 (win32_no_block_spawn): Idem.
19879 (__gnat_locate_exec_on_path): Idem.
19880 (__gnat_opendir): New routine.
19881 (__gnat_closedir): Idem.
19882 (__gnat_readdir): Add new parameter length (pointer to int). Update
19883 implementation to use it and add specific Win32 code for Unicode
19884 support.
19885 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19886 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19887 (convert_addresses): Do not define this dummy routine on VMS.
19888
19889 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19890 runtime Unicode support will be activated.
19891 (S2WS): String to Wide-String conversion. This version just copy a
19892 string in non Unicode version.
19893 (WS2S): Wide-String to String conversion. This version just copy a
19894 string in non Unicode version.
19895
19896 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19897 (Open): Now import __gnat_opendir from adaint.c.
19898 (Read): Change the implementation to support unicode characters. It is
19899 not possible to use strlen() on Windows as this version supports only
19900 standard ASCII characters. So the length of the directory entry is now
19901 returned from the imported __gnat_readdir routine.
19902 Update copyright notice.
19903
19904 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19905 (opendir): Moved to adaint.c.
19906
19907 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19908 (Get_Directory): Fix wrong indexing.
19909 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19910 __gnat_getenv from env.c
19911 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19912 from env.c
19913
19914 * env.h, env.c: New file.
19915
19916 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19917 adaint.c by __gnat_getenv from env.c
19918
19919 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19920 adaint.c by __gnat_getenv from env.c
19921
19922 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19923 and gnatbind.
19924 Update dependencies.
19925
19926 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19927 Olivier Hainque <hainque@adacore.com>
19928 Eric Botcazou <ebotcazou@adacore.com>
19929
19930 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19931
19932 * gigi.h (value_factor_p): Add prototype and description, now public.
19933
19934 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19935 promotion for field with rep clause if the associated size was proven
19936 to be in error.
19937 Expand comments describing attempts to use a packable type.
19938 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19939 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19940 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19941 necessary since these are not different types and pointers may
19942 actually designate any subtype in this hierarchy.
19943 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19944 discriminants but put them into record only if not Unchecked_Union;
19945 pass flag to components_to_record showing Unchecked_Union.
19946 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19947 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19948 (components_to_record): New argument UNCHECKED_UNION.
19949 Remove special case code for Unchecked_Union and instead use main code
19950 with small changes.
19951
19952 PR ada/26096
19953 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19954 variable with the expression being built, only its inner field.
19955
19956 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19957 emit_sequence_entry_statements.
19958 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19959 (establish_gnat_vms_condition_handler): Move before
19960 Subprogram_Body_to_gnu.
19961 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19962 for a subprogram if it has a foreign convention or is exported.
19963 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19964 substituted for a CONST_DECL.
19965 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19966 Etype to assoc_to_constructor.
19967 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19968 discriminants of Unchecked_Union.
19969 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19970 don't need cluttering preprocessor directives.
19971 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19972 condition handler as current in the compiled function.
19973 (body_with_handlers_p): New function. Tell whether a given sequence of
19974 statements node is attached to a package or subprogram body and involves
19975 exception handlers possibly nested within inner block statements.
19976 (emit_sequence_entry_statements): New function, to emit special
19977 statements on entry of sequences when necessary. Establish GNAT
19978 condition handler in the proper cases for VMS.
19979 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19980 emit_sequence_entry_statements.
19981
19982 * utils2.c (find_common_type): If both input types are BLKmode and
19983 have a constant size, use the smaller one.
19984 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19985 the same.
19986
19987 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19988 units.
19989 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19990 (convert, case UNION_TYPE): Remove special treatment for unchecked
19991 unions.
19992
19993 PR ada/18659
19994 (update_pointer_to): Update variants of pointer types to unconstrained
19995 arrays by attaching the list of fields of the main variant.
19996
19997 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19998 Robert Dewar <dewar@adacore.com>
19999
20000 * a-exexpr.adb, a-exexpr-gcc.adb
20001 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
20002 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
20003 Remove code unused for exception propagation for the compiler itself
20004 from a-except.adb and update to still share separate packages.
20005
20006 * a-except.ads, a-except.adb: Ditto.
20007 Add comments that this version is now used only by the compiler and
20008 other basic tools. The full version that includes the Ada 2005 stuff
20009 is in separate files a-except-2005.ads/adb. The reason is that we do
20010 not want to cause bootstrap problems with compilers not recognizing
20011 Wide_Wide_String.
20012 Add exception reason code PE_Implicit_Return
20013 Add new exception reason code (Null Exception_Id)
20014
20015 * a-except-2005.adb, a-except-2005.ads: New files.
20016
20017 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
20018
20019 * s-wchcon.adb: New file.
20020
20021 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
20022 (traceback.o deps): Likewise.
20023 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
20024 Activate build of GMEM instrumentation library on VMS targets.
20025 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
20026 Use a-except-2005.ads/adb for all run-time library builds unless
20027 specified otherwise.
20028 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
20029 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
20030 Use s-parame.adb on all native platforms.
20031 Use s-parame-vxworks.adb on all vxworks platforms.
20032 Add env.c env.h in LIBGNAT_SRCS
20033 Add env.o in LIBGNAT_OBJS
20034 (GNATMAKE_OBJS): Remove ctrl_c.o object.
20035 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
20036 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20037 supports VxWorks 6 RTPs.
20038 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
20039 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20040
20041 * types.h, types.ads (Terminate_Program): New exception
20042 Add comment on modifying multiple versions of a-except.adb when the
20043 table of exception reasons is modified.
20044 Add exception reason code PE_Implicit_Return
20045 Add new exception reason code (Null Exception_Id)
20046
20047 * clean.adb (Initialize): Get the target parameters before checking
20048 if target is OpenVMS. Move the OpenVMS specific code here from package
20049 body elaboration code.
20050
20051 2006-02-13 Thomas Quinot <quinot@adacore.com>
20052 Vincent Celier <celier@adacore.com>
20053 Robert Dewar <dewar@adacore.com>
20054
20055 * ali-util.adb (Get_File_Checksum): Update to account for change in
20056 profile of Initialize_Scanner.
20057
20058 * gprep.adb (Gnatprep): Update to account for change in profile of
20059 Initialize_Scanner.
20060 (Process_One_File): Same.
20061
20062 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20063 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20064 that behaviour using the new Unit information recorded in the source
20065 files table, rather than going through all units every time.
20066 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20067 (Get_Source_Unit): Same.
20068
20069 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20070 change in profile of Initialize_Scanner.
20071 (Prepare_To_Preprocess): Same.
20072
20073 * lib.ads: Fix typo in comment (templace -> template).
20074
20075 * prj-part.adb (Parse_Single_Project): Update to account for change in
20076 profile of Initialize_Scanner.
20077
20078 * scn.adb (Initialize_Scanner): Account for change in profile of
20079 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20080 Also record the association of the given Source_File_Index to the
20081 corresponding Unit_Number_Type.
20082
20083 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20084 procedure.
20085 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20086 Remove Unit formal for generic scanner: this formal
20087 is only relevant to Scn (the scanner instance used to parse Ada source
20088 files), not to other instances. Update comment accordingly.
20089 (Scan): Use new function Snames.Is_Keyword_Name.
20090
20091 * sinfo-cn.adb: Fix typo in comment.
20092
20093 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20094 Unit.
20095
20096 * sinput.ads (Source_File_Record): New component Unit, used to capture
20097 the unit identifier (if any) associated to a source file.
20098
20099 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20100 Unit in Source_File_Record.
20101
20102 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20103 in profile of Initialize_Scanner.
20104
20105 * scans.adb (Initialize_Ada_Keywords): New procedure
20106
20107 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20108 Ada keywords in the Namet table, without the need to call
20109 Initialize_Scanner.
20110
20111 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20112 (Is_Keyword_Name): New function
20113
20114 * snames.ads: Add subtype Configuration_Pragma_Names
20115 Add pragma Ada_2005 (synonym for Ada_05)
20116 (Is_Keyword_Name): New function
20117
20118 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20119
20120 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20121
20122 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20123 index.
20124
20125 * a-stwima.adb (To_Set): Add extra check when N = 0.
20126
20127 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20128
20129 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20130
20131 * s-parame-mingw.adb, s-parame-linux.adb,
20132 s-parame-solaris.adb: Removed, replaced by s-parame.adb
20133
20134 * s-parame-vxworks.ads: Fix typo.
20135
20136 * s-parame-vxworks.adb: New file.
20137
20138 * s-parame.adb: Version now used by all native platforms.
20139 (Default_Stack_Size): Use 2 megs for default stack size and use
20140 __gl_default_stack_size when available.
20141 (Minimum_Stack_Size): Use 12K.
20142
20143 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20144 (Create_Task): Refine implementation taking advantage of the XP stack
20145 size support. On XP, we now create the thread using the flag
20146 STACK_SIZE_PARAM_IS_A_RESERVATION.
20147
20148 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20149
20150 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20151 XP and 0 on older Windows versions.
20152
20153 * interfac-vms.ads: Removed, no longer used.
20154
20155 2006-02-13 Matthew Heaney <heaney@adacore.com>
20156
20157 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20158 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20159 a-cohase.adb: All explicit raise statements now include an exception
20160 message.
20161
20162 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20163 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20164 Explicit raise statements now include an exception message
20165
20166 * a-cihase.ads, a-cohase.ads: Removed comment.
20167
20168 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20169 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20170 a-szbzha.adb, a-szfzha.ads: New files.
20171
20172 2006-02-13 Matthew Heaney <heaney@adacore.com>
20173
20174 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20175 quicksort.
20176
20177 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20178
20179 * lang.opt: Wvariadic-macros: New option.
20180 Wold-style-definition: Likewise.
20181 Wmissing-format-attribute: Likewise.
20182
20183 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20184 -Wold-style-definition and -Wmissing-format-attribute.
20185
20186 2006-02-13 Robert Dewar <dewar@adacore.com>
20187
20188 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20189
20190 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20191
20192 2006-02-13 Nicolas Roche <roche@adacore.com>
20193
20194 * a-envvar.adb, a-envvar.ads: New files.
20195
20196 2006-02-13 Douglas Rupp <rupp@adacore.com>
20197
20198 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20199
20200 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20201
20202 2006-02-13 Pat Rogers <rogers@adacore.com>
20203
20204 * a-rttiev.adb, a-rttiev.ads: New files.
20205
20206 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20207
20208 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20209 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20210
20211 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20212
20213 2006-02-13 Robert Dewar <dewar@adacore.com>
20214
20215 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20216 sem_case.adb: Minor code reorganization (not Present should be No)
20217
20218 2006-02-13 Geert Bosch <bosch@adacore.com>
20219 Gary Dismukes <dismukes@adacore.com>
20220
20221 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20222 0, since the lower bound of the actual string may be greater than one.
20223
20224 PR ada/20753
20225 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20226 layout is requested.
20227
20228 2006-02-13 Vincent Celier <celier@adacore.com>
20229
20230 * back_end.adb (Scan_Compiler_Arguments): Check if
20231 Search_Directory_Present is True and, if it is, add the argument in
20232 the source search directory path.
20233
20234 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20235 Search_Directory_Present to True.
20236
20237 2006-02-13 Joel Brobecker <brobecke@adacore.com>
20238
20239 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20240 volatile, to tell the compiler to preserve this variable at any level
20241 of optimization.
20242 (Gen_Versions_Ada): Temporarily work around codegen bug.
20243
20244 2006-02-13 Vincent Celier <celier@adacore.com>
20245
20246 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20247 gcc to link with option -shared-libgcc.
20248 (Gnatlink): Remove duplicate switches -shared-libgcc
20249
20250 2006-02-13 Robert Dewar <dewar@adacore.com>
20251
20252 * gnatvsn.ads (Current_Year): New constant, used to easily update
20253 copyright on all GNAT tools.
20254
20255 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20256 copyright notice.
20257
20258 2006-02-13 Robert Dewar <dewar@adacore.com>
20259
20260 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20261 after hyphen (small aesthetic change useful for a range of numbers
20262 using ^-^.
20263 Suppress range checks for a couple of assignments which otherwise
20264 cause validity checks with validity checking turned on.
20265
20266 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20267 Improvement in error message for object.
20268 (Rep_Item_Too_Late): Remove '!' in warning message.
20269
20270 2006-02-13 Robert Dewar <dewar@adacore.com>
20271 Eric Botcazou <ebotcazou@adacore.com>
20272
20273 * err_vars.ads: Suppress range checks for a couple of assignments
20274 which otherwise cause validity checks with validity checking turned on.
20275 Update comments.
20276
20277 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20278 Make message unconditional if it is a warning.
20279 (Error_Msg_NEL): Always output warning messages.
20280 Suppress range checks for a couple of assignments which otherwise
20281 cause validity checks with validity checking turned on.
20282
20283 * errout.ads (Message Insertion Characters): Document that '!' is
20284 implied by '?' in error messages.
20285
20286 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20287 (Gnat1drv): Use a goto to end of main subprogram instead of
20288 Exit_Program (E_Success) so that finalization can occur normally.
20289
20290 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20291
20292 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20293 wrapped around.
20294
20295 2006-02-13 Vincent Celier <celier@adacore.com>
20296
20297 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20298 Unchecked_Conversion functions.
20299 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20300 when OpenVMS returns False.
20301
20302 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20303 a-dirval.adb (OpenVMS): New Boolean function
20304
20305 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20306 Thomas Quinot <quinot@adacore.com>
20307
20308 * checks.adb (Build_Discriminant_Checks): If the expression being
20309 checks is an aggregate retrieve the values of its discriminants to
20310 generate the check, rather than creating a temporary and a reference
20311 to it.
20312 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20313 (Install_Null_Excluding_Check): Ditto
20314 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20315 not for the renamed object, so that the actual itype is attached in the
20316 proper context.
20317
20318 2006-02-13 Robert Dewar <dewar@adacore.com>
20319 Vincent Celier <celier@adacore.com>
20320
20321 * debug.adb: Eliminate numeric switches for binder/gnatmake
20322
20323 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20324 switches for the compiler.
20325 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20326 (Scan_Make_Switches): When failing with an illegal switch, output an
20327 error message with the full switch.
20328 Eliminate numeric switches for binder/gnatmake
20329
20330 * switch.ads, switch.adb (Bad_Switch): New procedure
20331
20332 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20333 Remove 0-9 as debug flag character possibilities
20334 -d is now controlling the primary stack size when its value is a
20335 positive. Also add checks against invalid values, and support for kb,
20336 mb. Ditto for -D switch.
20337
20338 2006-02-13 Robert Dewar <dewar@adacore.com>
20339 Serguei Rybin <rybin@adacore.com>
20340
20341 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20342 save/restore routines.
20343 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20344 were not always properly handled previously.
20345 Since we are changing the tree format anyway, also get rid of the
20346 junk obsolete Immediate_Errors flag.
20347 (Tree_Read): Change the way of reading Tree_Version_String - now we
20348 read the version string from the tree even if its length is not the
20349 same as the length of the version string computed from Gnatvsn.
20350 (Search_Directory_Present): New Boolean flag for the compiler.
20351 Define Tree_Version_String as a dynamic string.
20352 (Default_Stack_Size): new variable, used to handle switch -d.
20353
20354 * par-prag.adb:
20355 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20356 only for main unit.
20357 Add pragma Ada_2005 (synonym for Ada_05)
20358 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20359 were not always properly handled previously.
20360
20361 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20362 explicit Ada_95 to Ada_2005.
20363
20364 2006-02-13 Javier Miranda <miranda@adacore.com>
20365 Robert Dewar <dewar@adacore.com>
20366 Ed Schonberg <schonberg@adacore.com>
20367
20368 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20369 against errors in the source program: a private types for which the
20370 corresponding full type declaration is missing and pragma CPP_Virtual
20371 is used.
20372 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20373 (Is_Known_Null): New flag
20374 (Has_Pragma_Pure): New flag
20375 (No_Return): Present in all entities, set only for procedures
20376 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20377 explicitly declared limited.
20378 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20379 entities. Only used for component marked Is_Tag. If present it stores
20380 the Offset_To_Top function used to provide this value in tagged types
20381 whose ancestor has discriminants.
20382
20383 * exp_ch2.adb: Update status of new Is_Known_Null flag
20384
20385 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20386
20387 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20388 the categorization sense if Is_Pure was set by pragma Pure_Function.
20389
20390 2006-02-13 Quentin Ochem <ochem@adacore.com>
20391 Olivier Hainque <hainque@adacore.com>
20392
20393 * bindusg.adb: Updated documentation for -d and -D switches.
20394
20395 * raise.h (__gnat_set_globals): added new parameter for
20396 Default_Stack_Size.
20397
20398 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20399 (__gnat_handle_vms_condition): Adjust context before raise.
20400 (__gnat_install_handler): Restore the global vector setup for GCC
20401 versions before 3.4, as the frame based circtuitry is not available
20402 in this case.
20403 (__gnat_set_globals): added a parameter default_stack_size
20404 (__gl_default_stack_size): new variable.
20405
20406 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20407
20408 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20409 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20410 does not exist in the Ada RM.
20411 (Compatible_Int_Bounds): Determine whether two integer range bounds
20412 are of equal length and have the same start and end values.
20413 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20414 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20415 aggregate when it is part of an object declaration.
20416 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20417 constrains discriminants of its parent, add explicitly the discriminant
20418 constraints of the ancestor by retrieving them from the
20419 stored_constraint of the parent.
20420
20421 2006-02-13 Robert Dewar <dewar@adacore.com>
20422
20423 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20424 attribute Mechanism_Code is applied to renamed subprogram, modify
20425 prefix to point to base subprogram.
20426 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20427
20428 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20429 renamed subprograms so that the front-end must replace the prefix
20430 appropriately.
20431
20432 2006-02-13 Javier Miranda <miranda@adacore.com>
20433 Gary Dismukes <dismukes@adacore.com>
20434
20435 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20436 availability of RE_Interface_Tag.
20437 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20438 (Freeze_Record_Type): Do not generate the tables associated with
20439 timed and conditional dispatching calls through synchronized
20440 interfaces if compiling under No_Dispatching_Calls restriction.
20441 When compiling for Ada 2005, for a nonabstract
20442 type with a null extension, call Make_Controlling_Function_Wrappers
20443 and insert the wrapper function declarations and bodies (the latter
20444 being appended as freeze actions).
20445 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20446 predefined primitives associated with timed and conditional
20447 dispatching calls through synchronized interfaces if we are
20448 compiling under No_Dispatching_Calls.
20449 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20450 service is available before generating a call.
20451 (Make_Controlling_Function_Wrappers): New procedure.
20452 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20453 access-to-limited-interfaces because they can be used to reference
20454 tasks that implement such limited interface.
20455 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20456 procedure spec and body of the Offset_To_Top function that is generated
20457 when the parent of a type with discriminants has secondary dispatch
20458 tables.
20459 (Init_Secondary_Tags): Handle the case in which the parent of the type
20460 containing secondary dispatch tables has discriminants to generate the
20461 correct arguments to call Set_Offset_To_Top.
20462 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20463
20464 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20465 Add Wide_[Wide_]Expanded_Name.
20466 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20467 the same functionality of Get_Prim_Op_Address but applied to predefined
20468 primitive operations because the pointers to the predefined primitives
20469 are now saved in a separate table.
20470 (Parent_Size): Modified to get access to the separate table of primitive
20471 operations or the parent type.
20472 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20473 functionality of Set_Prim_Op_Address but applied to predefined primitive
20474 operations.
20475 (Set_Signature): New subprogram used to store the signature of a DT.
20476 (Displace): If the Offset_To_Top value is not static then call the
20477 function generated by the expander to get such value; otherwise use
20478 the value stored in the table of interfaces.
20479 (Offset_To_Top): The type of the actual has been changed to Address to
20480 give the correct support to tagged types with discriminants. In this
20481 case this value is stored just immediately after the tag field.
20482 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20483 offset_to_top value is static and hence pass this value to the run-time
20484 to store it in the table of interfaces, or else if this value is dynamic
20485 and then pass to the run-time the address of a function that is
20486 generated by the expander to provide this value for each object of the
20487 type.
20488
20489 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20490 (Default_Prim_Op_Count): New entity
20491 (Get_Predefined_Prim_Op_Address): New entity
20492 (Set_Predefined_Prim_Op_Address): New entity
20493 (RE_Set_Signature): New entity
20494
20495 2006-02-13 Thomas Quinot <quinot@adacore.com>
20496 Ed Schonberg <schonberg@adacore.com>
20497
20498 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20499 Make_Adjust_Call done for a newly-allocated object.
20500
20501 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20502 in a subprogram are wrapped in a cleanup block, indicate that the
20503 subprogram contains an inner block with an exception handler.
20504 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20505 Adjust call is for a newly-allocated object. In that case we must not
20506 assume that the finalization list chain pointers are correct (since they
20507 come from a bit-for-bit copy of the original object's pointers) so if
20508 the attach level would otherwise be zero (no change), we set it to 4
20509 instead to cause the pointers to be reset to null.
20510
20511 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20512 reset chain pointers to null.
20513
20514 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20515
20516 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20517 string, and the context requires a loop for the assignment (e.g.
20518 because the left-hand side is packed), generate a unique name for the
20519 temporary that holds the string, to prevent spurious name clashes.
20520
20521 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20522 Javier Miranda <miranda@adacore.com>
20523 Robert Dewar <dewar@adacore.com>
20524 Gary Dismukes <dismukes@adacore.com>
20525
20526 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20527 return unconstrained arrays.
20528 Update comments.
20529 (Expand_Call): An indirect call through an access parameter of a
20530 protected operation is not a protected call.
20531 Add circuit to raise CE in Ada 2005 mode following call
20532 to Raise_Exception.
20533 (Register_DT_Entry): Do nothing if
20534 the run-time does not give support to abstract interfaces.
20535 (Freeze_Subprogram): In case of dispatching operations, do not generate
20536 code to register the operation in the dispatch table if the source
20537 is compiled with No_Dispatching_Calls.
20538 (Register_Predefined_DT_Entry): Generate code that calls the new
20539 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20540 Set_Prim_Op_Address.
20541
20542 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20543 on array assignments if the right-hand side is a function call that has
20544 been inlined. Check is performed on the assignment in the block.
20545 (Process_Bounds): If bounds and range are overloaded, apply preference
20546 rule for root operations to disambiguate, and diagnose true ambiguity.
20547 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20548 a tag-indeterminate right-hand side even when Expander_Active is True.
20549 Needed to ensure that dispatching calls to T'Input are allowed and
20550 get the tag of the target class-wide object.
20551
20552 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20553 an inherited primitive operation that already overrides several
20554 abstract interface primitives. For transitivity, the new entity must
20555 also override all the abstract interface primitives covered by the
20556 inherited overriden primitive.
20557 Emit warning if new entity differs from homograph in same scope only in
20558 that one has an access parameter and the other one has a parameter of
20559 a general access type with the same designated type, at the same
20560 position in the signature.
20561 (Make_Inequality_Operator): Use source locations of parameters and
20562 subtype marks from corresponding equality operator when creating the
20563 tree structure for the implicit declaration of "/=". This does not
20564 change anything in behaviour except that the decoration of the
20565 components of the subtree created for "/=" allows ASIS to get the
20566 string images of the corresponding identifiers.
20567 (Analyze_Return_Statement): Remove '!' in warning message.
20568 (Check_Statement_Sequence): Likewise.
20569 (Analyze_Subprogram_Body): For an access parameter whose designated type
20570 is an incomplete type imported through a limited_with clause, use the
20571 type of the corresponding formal in the body.
20572 (Check_Returns): Implicit return in No_Return procedure now raises
20573 Program_Error with a compile time warning, instead of beging illegal.
20574 (Has_Single_Return): Function returning unconstrained type cannot be
20575 inlined if expression in unique return statement is not an identifier.
20576 (Build_Body_To_Inline): It is possible to inline a function call that
20577 returns an unconstrained type if all return statements in the function
20578 return the same local variable. Subsidiary procedure Has_Single_Return
20579 verifies that the body conforms to this restriction.
20580
20581 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20582 same type, and one of them is of an anonymous access type, convert
20583 the other operand to it, so that this is a valid binary operation for
20584 gigi.
20585 (Resolve_Type_Conversion): Handle subtypes of protected types and
20586 task types when accessing to the corresponding record type.
20587 (Resolve_Allocator): Add '\' in 2-line warning message.
20588 Remove '!' in warning message.
20589 (Resolve_Call): Add '\' in 2-line warning message.
20590 (Valid_Conversion): Likewise.
20591 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20592 resulting type may be an access type with an implicit dereference.
20593 Obtain the proper component from the designated type.
20594 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20595 given by an expanded name with prefix Standard, when the operands are
20596 of an anonymous access type.
20597 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20598 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20599 prefix of the expression is not of an incomplete type. Allows full
20600 diagnoses of all semantic errors.
20601 (Resolve_Actuals): If the actual is an allocator whose directly
20602 designated type is a class-wide interface we build an anonymous
20603 access type to use it as the type of the allocator. Later, when
20604 the subprogram call is expanded, if the interface has a secondary
20605 dispatch table the expander will add a type conversion to force
20606 the displacement of the pointer.
20607 (Resolve_Call): If a function that returns an unconstrained type is
20608 marked Inlined_Always and inlined, the call will be inlined and does
20609 not require the creation of a transient scope.
20610 (Check_Direct_Boolean_Op): Removed
20611 (Resolve_Comparison_Op): Remove call to above
20612 (Resolve_Equality_Op): Remove call to above
20613 (Resolve_Logical_Op): Inline above, since this is only call.
20614 (Valid_Conversion): Handle properly conversions between arrays of
20615 convertible anonymous access types.
20616
20617 PR ada/25885
20618 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20619 the literal in an unchecked conversion, because GCC 4.x needs a static
20620 value for a string bound.
20621
20622 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20623 Hristian Kirtchev <kirtchev@adacore.com>
20624
20625 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20626 components of the corresponding record, take into account component
20627 definitions that are access definitions.
20628 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20629 procedure is not considered a dispatching call and will be expanded
20630 properly.
20631
20632 2006-02-13 Javier Miranda <miranda@adacore.com>
20633
20634 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20635 controlling argument of the dispatching call is an abstract interface
20636 class-wide type then we use it directly.
20637 Check No_Dispatching_Calls restriction.
20638 (Default_Prim_Op_Position): Remove the code that looks for the last
20639 entity in the list of aliased subprograms. This code was wrong in
20640 case of renamings.
20641 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20642 when the source is compiled with the No_Dispatching_Calls restriction.
20643 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20644 if we are compiling with restriction No_Dispatching_Calls.
20645 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20646 subprograms if we are compiling under No_Dispatching_Calls restriction.
20647 (Make_DT): Generate a dispatch table with a single dummy entry if
20648 we are compiling with the No_Dispatching_Calls restriction. In
20649 addition, in this case we don't generate code that calls to the
20650 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20651 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20652 of this subprogram if compiling with the No_Dispatching_Calls
20653 restriction.
20654 (Expand_Type_Conversion): Instead of using the actual parameter,
20655 the argument passed as parameter to the conversion function was
20656 erroneously referenced by the expander.
20657 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20658 Set_Predefined_Primitive_Op_Address and Set_Signature.
20659 (Expand_Dispatching_Call): Generate call to
20660 Get_Predefined_Prim_Op_Address for predefined primitives.
20661 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20662 predefined primitives.
20663 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20664 primitives we reserve one dummy entry to ensure that the tag does not
20665 point to some memory that is associated with some other object. In
20666 addition, remove all the old code that generated the assignments
20667 associated with the signature of the dispatch table and replace them
20668 by a call to the new subprogram Set_Signature.
20669 (Set_All_DT_Position): Change the algorithm because now we have a
20670 separate dispatch table associated with predefined primitive operations.
20671 (Expand_Interface_Conversion): In case of non-static offset_to_top
20672 add explicit dereference to get access to the object after the call
20673 to displace the pointer to the object.
20674 (Expand_Interface_Thunk): Modify the generation of the actual used
20675 in the calls to the run-time function Offset_To_Top to fulfil its
20676 new interface.
20677 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20678
20679 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20680
20681 * exp_dist.adb (Copy_Specification): For access parameters, copy
20682 Null_Exclusion flag, which will have been set for stream subprograms
20683 in Ada2005 mode.
20684
20685 2006-02-13 Pascal Obry <obry@adacore.com>
20686
20687 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20688 previous implementation was using the C runtime spawnve routine but
20689 the corresponding wait was using directly the Win32 API. This was
20690 causing some times a lock when waiting for an event using
20691 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20692 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20693 API fixes this problem.
20694
20695 2006-02-13 Robert Dewar <dewar@adacore.com>
20696
20697 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20698 call.
20699
20700 2006-02-13 Thomas Quinot <quinot@adacore.com>
20701
20702 * exp_pakd.ads: Fix typos in comments.
20703
20704 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20705 array reference that is an explicit dereference, mark the converted
20706 (packed) array reference as analyzed to prevent a forthcoming
20707 reanalysis from resetting its type to the original (non-packed) array
20708 type.
20709
20710 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20711 Javier Miranda <miranda@adacore.com>
20712 Eric Botcazou <ebotcazou@adacore.com>
20713
20714 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20715 Is_Predefined_Primitive_Operation): When
20716 searching for the predefined equality operator, verify that operands
20717 have the same type.
20718 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20719 for the last entity in the list of aliased subprograms. This code
20720 was wrong in case of renamings.
20721 (Set_Renamed_Subprogram): New procedure
20722 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20723 Exp_Type constant computed when entering this subprogram.
20724 (Known_Null): New function
20725 (OK_To_Do_Constant_Replacement): New function
20726 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20727 (Side_Effect_Free): An attribute reference 'Input is not free of
20728 side effect, unlike other attributes that are functions. (from code
20729 reading).
20730 (Remove_Side_Effects): Expressions that involve packed arrays or records
20731 are copied at the point of reference, and therefore must be marked as
20732 renamings of objects.
20733 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20734 not a dispatching operation.
20735
20736 PR ada/18819
20737 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20738 elementary types in all cases.
20739
20740 2006-02-13 Javier Miranda <miranda@adacore.com>
20741
20742 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20743 task types when accessing to the corresponding record type.
20744 Remove '!' in warning message.
20745
20746 2006-02-13 Olivier Hainque <hainque@adacore.com>
20747
20748 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20749 to avoid useless and space inefficient overalignments on targets where
20750 Max_Alignment is larger than 16.
20751
20752 2006-02-13 Pascal Obry <obry@adacore.com>
20753
20754 * g-catiio.adb (Sec_Number): New type used to compute the number of
20755 seconds since 1-1-1970.
20756 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20757 negative numbers (years, months...) it is better to have a Natural here.
20758 Code clean-up.
20759 (Image) [Number]: Change parameter from Long_Integer to Number.
20760 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20761 overflow for dates past year 2038.
20762
20763 2006-02-13 Matthew Heaney <heaney@adacore.com>
20764
20765 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20766 Constraint_Error.
20767
20768 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20769
20770 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20771 native platforms.
20772 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20773 finalization can occur normally.
20774
20775 2006-02-13 Vincent Celier <celier@adacore.com>
20776
20777 * gnatcmd.adb (Rules_Switches): New table
20778 (Add_To_Rules_Switches): New procedure
20779 (GNATCmd): For command CHECK, put all options following "-rules" in the
20780 Rules_Switches table. Append these -rules switches after the -cargs
20781 switches.
20782
20783 2006-02-13 Robert Dewar <dewar@adacore.com>
20784
20785 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20786 These two cases were generating incorrect output, and if this unit
20787 was built with checks on, generated a discriminant mismatch constraint
20788 error.
20789
20790 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20791 Robert Dewar <dewar@adacore.com>
20792
20793 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20794 view is an array type, indicate the component type as well, for
20795 navigation purposes.
20796 (Generate_Reference): Don't consider array ref on LHS to be a case
20797 of violating pragma Unreferenced.
20798 Do not give Ada 2005 warning except on real reference.
20799
20800 2006-02-13 Vincent Celier <celier@adacore.com>
20801
20802 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20803 main source, add switch -mdebug-main=_ada_ so that the executable can
20804 be debugged by the standard VMS debugger.
20805 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20806 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20807 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20808 of the last source, as the binding and linking phases are never
20809 performed.
20810 Set all executable obsolete when rebuilding a library.
20811
20812 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20813 options.
20814
20815 2006-02-13 Javier Miranda <miranda@adacore.com>
20816
20817 PR ada/23973
20818 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20819 code to improve the error message reported when the program has
20820 declarations of abstract interface types and it is not compiled with
20821 the -gnat05 switch.
20822 (P_Access_Definition): Reorganize the code to improve the error
20823 message reported when the new Ada 2005 syntax for anonymous
20824 access types is used and the program is not compiled with the
20825 -gnat05 switch.
20826
20827 2006-02-13 Robert Dewar <dewar@adacore.com>
20828
20829 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20830 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20831 (MODE_IN)
20832
20833 2006-02-13 Javier Miranda <miranda@adacore.com>
20834
20835 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20836 against source containing syntax errors.
20837
20838 2006-02-13 Vincent Celier <celier@adacore.com>
20839
20840 * prj.adb (Reset): Initialize the first element of table Namings with
20841 the standard naming data.
20842
20843 2006-02-13 Vincent Celier <celier@adacore.com>
20844
20845 * prj.ads (Error_Warning): New enumeration type
20846
20847 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20848 unknown, use the location of the project to report the error.
20849 (When_No_Sources): New global variable
20850 (Report_No_Ada_Sources): New procedure
20851 (Check): New parameter When_No_Sources. Set value of global variable
20852 When_No_Sources,
20853 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20854 (Get_Sources_From_File): Ditto
20855 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20856 and the file name.
20857
20858 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20859 Call Prj.Proc.Process with parameter When_No_Sources.
20860
20861 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20862 Call Recursive_Check with parameter When_No_Sources.
20863 (Recursive_Check): New parameter When_No_Sources. Call itself and
20864 Prj.Nmsc.Check with parameter When_No_Sources.
20865 (Process): New parameter When_No_Sources. Call Check with parameter
20866 When_No_Sources.
20867 (Copy_Package_Declarations): New procedure to copy renamed parameters
20868 and setting the location of the declared attributes to the location
20869 of the renamed package.
20870 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20871 packages.
20872
20873 2006-02-13 Vincent Celier <celier@adacore.com>
20874
20875 * prj-makr.adb (Make): Preserve the comments from the original project
20876 file.
20877 When removing nodes (attributes Source_Dirs, Source_Files,
20878 Source_List_File and package Naming), save the comments and attach the
20879 saved comments to the newly created nodes.
20880 Do not add a with clause for the naming package if one already exists.
20881
20882 2006-02-13 Javier Miranda <miranda@adacore.com>
20883 Gary Dismukes <dismukes@adacore.com>
20884 Robert Dewar <dewar@adacore.com>
20885
20886 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20887
20888 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20889 aliased entities to look for the overriden abstract interface
20890 subprogram.
20891 (Is_Interface_Subprogram): Complete documentation.
20892 (Check_Dispatching_Operation): Do not generate code to register the
20893 operation in the dispatch table if the source is compiled with
20894 restriction No_Dispatching_Calls.
20895 (Override_Dispatching_Operation): Check for illegal attempt to override
20896 No_Return procedure with procedure that is not No_Return
20897 (Check_Dispatching_Call): Suppress the check for an abstract operation
20898 when the original node of an actual is a tag-indeterminate attribute
20899 call, since the attribute, which must be 'Input, can never be abstract.
20900 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20901 call to the Input attribute (even when rewritten).
20902 (Propagate_Tag): Augment comment to indicate the possibility of a call
20903 to an Input attribute.
20904
20905 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20906 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20907
20908 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20909 No_Wide_Characters is no longer partition-wide
20910 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20911 rather than GNAT
20912
20913 2006-02-13 Douglas Rupp <rupp@adacore.com>
20914
20915 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20916
20917 2006-02-13 Javier Miranda <miranda@adacore.com>
20918
20919 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20920 handles default-initialized components to keep separate the management
20921 of this feature but also avoid the unrequired resolution and
20922 expansion of components that do not have partially initialized
20923 values.
20924 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20925 (Check_Bounds): Likewise.
20926 (Check_Length): Likewise.
20927
20928 2006-02-13 Javier Miranda <miranda@adacore.com>
20929 Ed Schonberg <schonberg@adacore.com>
20930
20931 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20932 abstract interface type call analyze_and_resolve to expand the type
20933 conversion into the corresponding displacement of the
20934 reference to the base of the object.
20935 (Eval_Attribute, case Width): For systems where IEEE extended precision
20936 is supported, the maximum exponent occupies 4 decimal digits.
20937 (Accessibility_Message): Add '\' in 2-line warning message.
20938 (Resolve_Attribute): Likewise.
20939 (case Attribute_Access): Significantly revise checks
20940 for illegal access-to-subprogram Access attributes to properly enforce
20941 the rules of 3.10.2(32/2).
20942 Diagnose use of current instance with an illegal attribute.
20943
20944 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20945 to a Node_Id.
20946 (Enclosing_Generic_Unit): New function to return a node's innermost
20947 enclosing generic declaration node.
20948 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20949 (Type_Access_Level): The accessibility level of anonymous acccess types
20950 associated with discriminants is that of the current instance of the
20951 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20952 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20953 (Kill_Current_Values_For_Entity): New function
20954 (Enter_Name): Change formal type to Entity_Id
20955
20956 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20957 Ed Schonberg <schonberg@adacore.com>
20958 Gary Dismukes <dismukes@adacore.com>
20959
20960 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20961 Analyze_Compilation_Unit.
20962 Detect and warn on redundant with clauses detected in a package spec
20963 and/or body when -gnatwr is used.
20964 (Analyze_Context): Analyze config pragmas before other items
20965 (Install_Context_Items): Don't analyze config pragmas here
20966 (Install_Limited_Withed_Unit): Set limited entity of package in
20967 with_clause so that cross-reference information or warning messages on
20968 unused packages can be properly generated
20969 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20970 has Error_Posted set. Prevent infinite loops in illegal programs.
20971 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20972 to the point of the error test requiring the current unit to be private.
20973 This ensures that private with clauses are not exempted from the basic
20974 checking for being a descendant of the same library unit parent as a
20975 withed private descendant unit.
20976 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20977 handle private with clauses properly, as well as to account for cases
20978 where the withed unit is a public descendant of a private ancestor
20979 (in which case the current unit must be a descendant of the private
20980 ancestor's parent). The spec comments were updated accordingly. Also,
20981 the old error message in this subprogram was replaced with error
20982 messages that mirror the errors tested and reported by
20983 Check_Private_Child_Unit.
20984 Parameter and variable names improved for readability.
20985 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20986 private as the precondition for calling
20987 Check_Private_Limited_Withed_Unit since that subprogram has been
20988 revised to test public units as well as private units.
20989
20990 2006-02-13 Thomas Quinot <quinot@adacore.com>
20991 Robert Dewar <dewar@adacore.com>
20992 Ed Schonberg <schonberg@adacore.com>
20993 Javier Miranda <miranda@adacore.com>
20994
20995 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20996 that Scope_Stack.First = 1.
20997 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20998 were not always properly handled previously.
20999 (Formal_Entity): Complete rewrite, to handle properly some complex case
21000 with multiple levels of parametrization by formal packages.
21001 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
21002 to the corresponding derived type declaration for proper semantics.
21003
21004 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
21005 (Check_Component): Enforce restriction on components of
21006 unchecked_unions: a component in a variant cannot contain tasks or
21007 controlled types.
21008 (Unchecked_Union): Allow nested variants and multiple discriminants, to
21009 conform to AI-216.
21010 Add pragma Ada_2005 (synonym for Ada_05)
21011 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21012 were not always properly handled previously.
21013 Document that pragma Propagate_Exceptions has no effect
21014 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
21015 (Set_Convention_From_Pragma): Check that if a convention is
21016 specified for a dispatching operation, then it must be
21017 consistent with the existing convention for the operation.
21018 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
21019 longer required to specify an vtable-ptr component in the record. For
21020 compatibility reasons we leave the support for the previous definition.
21021 (Analyze_Pragma, case No_Return): Allow multiple arguments
21022
21023 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
21024 non-overrideen inherited operation with a controlling result as
21025 illegal only its implicit declaration comes from the derived type
21026 declaration of its result's type.
21027 (Check_Possible_Deferred_Completion): Relocate the object definition
21028 node of the subtype indication of a deferred constant completion rather
21029 than directly analyzing it. The analysis of the generated subtype will
21030 correctly decorate the GNAT tree.
21031 (Record_Type_Declaration): Check whether this is a declaration for a
21032 limited derived record before analyzing components.
21033 (Analyze_Component_Declaration): Diagnose record types not explicitly
21034 declared limited when a component has a limited type.
21035 (Build_Derived_Record_Type): Code reorganization to check if some of
21036 the inherited subprograms of a tagged type cover interface primitives.
21037 This check was missing in case of a full-type associated with a private
21038 type declaration.
21039 (Constant_Redeclaration): Check that the subtypes of the partial and the
21040 full view of a constrained deferred constant statically match.
21041 (Mentions_T): A reference to the current type in an anonymous access
21042 component declaration must be an entity name.
21043 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21044 class_wide type to refer to full type, not to the incomplete one.
21045 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21046 available. Required to give support to the certified run-time.
21047 (Analyze_Component_Declaration): In case of anonymous access components
21048 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21049 (Process_Discriminants): For an access discriminant, use the
21050 discriminant specification as the associated_node_for_itype, to
21051 simplify accessibility checks.
21052
21053 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21054 Javier Miranda <miranda@adacore.com>
21055
21056 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21057 abstract interpretations on an operator, remove interpretations that
21058 yield Address or a type derived from it, if one of the operands is an
21059 integer literal.
21060 (Try_Object_Operation.Try_Primitive_Operation,
21061 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21062 location when creating the new reference to a primitive or class-wide
21063 operation as a part of rewriting a subprogram call.
21064 (Try_Primitive_Operations): If context requires a function, collect all
21065 interpretations after the first match, because there may be primitive
21066 operations of the same type with the same profile and different return
21067 types. From code reading.
21068 (Try_Primitive_Operation): Use the node kind to choose the proper
21069 operation when a function and a procedure have the same parameter
21070 profile.
21071 (Complete_Object_Operation): If formal is an access parameter and prefix
21072 is an object, rewrite as an Access reference, to match signature of
21073 primitive operation.
21074 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21075 by an expanded name with prefix Standard, when the operands are of an
21076 anonymous access type.
21077 (Remove_Abstract_Operations): If the operation is abstract because it is
21078 inherited by a user-defined type derived from Address, remove it as
21079 well from the set of candidate interpretations of an overloaded node.
21080 (Analyze_Membership_Op): Membership test not applicable to cpp-class
21081 types.
21082
21083 2006-02-13 Bob Duff <duff@adacore.com>
21084
21085 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21086 redundant use clauses.
21087 In particular, if the scope of two use clauses overlaps, but one is not
21088 entirely included in the other, we should not warn. This can happen
21089 with nested packages.
21090 (Analyze_Subprogram_Renaming): Protect the compiler against previously
21091 reported errors. The bug was reported when the compiler was built
21092 with assertions enabled.
21093 (Find_Type): If the node is a 'Class reference and the prefix is a
21094 synchronized type without a corresponding record, return the type
21095 itself.
21096
21097 2006-02-13 Javier Miranda <miranda@adacore.com>
21098
21099 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21100 if this is the full-declaration associated with a private declaration
21101 that implement interfaces, then the private type declaration must be
21102 limited.
21103 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21104 as aliased. The use of the 'access attribute is not available for such
21105 object (for this purpose the object should be explicitly marked as
21106 aliased, but being an anonymous type this is not possible).
21107
21108 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21109 Robert Dewar <dewar@adacore.com>
21110
21111 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21112 compilation unit is an elaboration scope.
21113 (Add_Task_Proc): Add '\' in 2-line warning message.
21114 (Activate_All_Desirable): Deal with case of unit with'ed by parent
21115
21116 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21117 Javier Miranda <miranda@adacore.com>
21118
21119 * sem_type.adb (Write_Overloads): Improve display of candidate
21120 interpretations.
21121 (Add_One_Interp): Do not add to the list of interpretations aliased
21122 entities corresponding with an abstract interface type that is an
21123 immediate ancestor of a tagged type; otherwise we have a dummy
21124 conflict between this entity and the aliased entity.
21125 (Disambiguate): The predefined equality on universal_access is not
21126 usable if there is a user-defined equality with the proper signature,
21127 declared in the same declarative part as the designated type.
21128 (Find_Unique_Type): The universal_access equality operator defined under
21129 AI-230 does not cover pool specific access types.
21130 (Covers): If one of the types is a generic actual subtype, check whether
21131 it matches the partial view of the other type.
21132
21133 2006-02-13 Thomas Quinot <quinot@adacore.com>
21134
21135 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21136 line. This is necessary to allow In_Extended_Main_Unit to provide
21137 correct results for itypes while writing out expanded source.
21138 (Close_File): No need to update the source_index_table here since it's
21139 now done for each line.
21140
21141 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21142 Robert Dewar <dewar@adacore.com>
21143
21144 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21145 preserve the source unit where the itype is declared, and prevent a
21146 backend abort.
21147 (Note_Implicit_Run_Time_Call): New procedure
21148 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21149 E_Subprogram_Type)
21150
21151 * sprint.ads: Document use of $ for implicit run time routine call
21152
21153 2006-02-13 Quentin Ochem <ochem@adacore.com>
21154
21155 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21156 task name.
21157
21158 2006-02-13 Bob Duff <duff@adacore.com>
21159
21160 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21161 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21162 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21163 raise Constraint_Error.
21164
21165 * s-vallli.adb (Scan_Long_Long_Integer): Call
21166 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21167 do not scan leading blanks and sign twice.
21168 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21169 raise Constraint_Error.
21170
21171 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21172 Scan_Long_Long_Unsigned): Split out most of the processing from
21173 Scan_Long_Long_Unsigned out into
21174 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21175 This prevents scanning leading blanks and sign twice.
21176 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21177 See RM-3.5(44).
21178
21179 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21180 out most of the processing from Scan_Unsigned out into
21181 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21182 This prevents scanning leading blanks and sign twice.
21183
21184 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21185 use with Modular'Value attribute.
21186 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21187 attribute.
21188
21189 2006-02-13 Robert Dewar <dewar@adacore.com>
21190
21191 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21192
21193 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21194
21195 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21196 (PPC VxWorks): Likewise.
21197 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21198 (forced_callee): Make non-inlinable and non-pure.
21199 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21200
21201 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21202 Ben Brosgol <brosgol@adacore.com>
21203 Robert Dewar <dewar@adacore.com>
21204
21205 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21206 support.
21207 Document that gnatbind -M option is for cross environments only.
21208 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21209 Add note on use of $ to label implicit run time calls
21210 Add documentation for -gnatyI (check mode IN)
21211 Updated chapter on compatibility with HP Ada
21212 VMS-oriented edits.
21213 Ran spell and corrected errors
21214 Add documentation for gnatbind -d and rework documentation of -D
21215 at the same time.
21216 Add subprogram/data elimination section.
21217 Minor editing of annex A.
21218 Add section for gnatcheck.
21219 Add documentation for restriction No_Dispatching_Calls
21220 Add documentation for pragma Ada_2005
21221 Remove mention of obsolete pragma Propagate_Exceptions
21222 Document that pragma Unreferenced can appear after DO in ACCEPT
21223 Clarify Pure_Function for library level units
21224 Mention Max/Min in connection with No_Implicit_Conditionals
21225 No_Wide_Characters restriction is no longer partition-wide
21226 Add a nice example for Universal_Literal_String attribute
21227 Document that pragma No_Return can take multiple arguments
21228
21229 * ug_words: Added entry for gnatcheck
21230
21231 * g-ctrl_c.ads (Install_Handler): Enhance comments
21232
21233 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21234
21235 * g-trasym.ads: Add documentation on how to do off line symbolic
21236 traceback computation.
21237
21238 * s-fatgen.adb: Add comments for Unaligned_Valid
21239
21240 * stand.ads: Fix typo in comment
21241
21242 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21243
21244 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21245
21246 2006-02-06 Roger Sayle <roger@eyesopen.com>
21247
21248 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21249
21250 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21251
21252 PR target/25926
21253 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21254 implementation that calls __main.
21255
21256 2006-01-25 Peter O'Gorman <peter@pogma.com>
21257
21258 PR bootstrap/25859
21259 * Makefile.in (GCC_LINK): Remove quotes.
21260 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21261 or $(GCC_LINK).
21262
21263 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21264
21265 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21266
21267 PR ada/24533
21268 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21269
21270 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21271
21272 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21273
21274 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21275
21276 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21277 needed.
21278
21279 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21280
21281 * Make-lang.in: Update dependencies
21282
21283 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21284
21285 * Make-lang.in: Add rule for ada/exp_sel.o
21286
21287 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21288
21289 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21290
21291 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21292
21293 * gnatvsn.ads (Library_Version): Bump to version 4.2
21294 (ASIS_Version_Number): Bumped.
21295
21296 2005-12-09 Doug Rupp <rupp@adacore.com>
21297
21298 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21299 Ada bind file prefix on VMS from b$ to b__.
21300 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21301 __init.
21302
21303 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21304 Targparm.OpenVMS_On_Target.
21305 (Object_Suffix): Initialize with target object suffix.
21306 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21307
21308 * butil.adb: Change some Hostparm.OpenVMS checks to
21309 Targparm.OpenVMS_On_Target.
21310
21311 * clean.adb: Change some Hostparm.OpenVMS checks to
21312 Targparm.OpenVMS_On_Target.
21313 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21314 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21315 Ada bind file prefix on VMS from b$ to b__.
21316
21317 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21318 --GCC so that Get_Target_Parameters can find system.ads.
21319 (Gnatlink): Call Get_Target_Parameters in mainline.
21320 Initialize standard packages for Targparm.
21321 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21322 (Process_Args): Also Check for object files with target object
21323 extension.
21324 (Make_Binder_File_Names): Create with target object extension.
21325 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21326 to b__.
21327
21328 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21329 Targparm.OpenVMS_On_Target.
21330 ({declaration},Build_Library,Check_Library): Change Ada bind file
21331 prefix on VMS from b$ to b__.
21332
21333 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21334 Targparm.OpenVMS_On_Target.
21335 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21336 b__.
21337
21338 * targext.c: New file.
21339
21340 * Makefile.in: add support for vxworks653 builds
21341 (../../vxaddr2line): gnatlink with targext.o.
21342 (TOOLS_LIBS): Move targext.o to precede libgnat.
21343 (init.o, initialize.o): Minor clean up in dependencies.
21344 (GNATLINK_OBJS): Add targparm.o, snames.o
21345 Add rules fo building targext.o and linking it explicitly with all
21346 tools.
21347 Also add targext.o to gnatlib.
21348
21349 * Make-lang.in: Add rules for building targext.o and linking it in
21350 with gnat1 and gnatbind.
21351 Add entry for exp_sel.o.
21352
21353 * osint.adb Change some Hostparm.OpenVMS checks to
21354 Targparm.OpenVMS_On_Target.
21355 (Object_File_Name): Use target object suffix.
21356
21357 * osint.ads (Object_Suffix): Remove, no longer used.
21358 (Target_Object_Suffix): Initialize with target object suffix.
21359
21360 * rident.ads: Add special exception to license.
21361
21362 * targparm.adb (Get_Target_Parameters): Set the value of
21363 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21364 value.
21365 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21366
21367 * targparm.ads: Add special exception to license.
21368
21369 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21370 function.
21371 (Copy_File): Make sure from file is closed if error on to file
21372 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21373
21374 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21375 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21376
21377 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21378 target object suffix.
21379
21380 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21381 Quentin Ochem <ochem@adacore.com>
21382 Florian Villoing <villoing@adacore.com>
21383
21384 * a-taster.ads, a-taster.adb: New files.
21385
21386 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21387 link to the version that does nothing. This way the task termination
21388 routine is not executed twice for the environment task when finishing
21389 because of an unhandled exception.
21390
21391 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21392 handler because of an unhandled exception.
21393
21394 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21395 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21396
21397 * s-finimp.adb (initialization code): Modify the soft link for the
21398 finalization of the global list instead of Adafinal.
21399
21400 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21401 non-tasking version of the soft link for task termination. We do
21402 nothing since if we are using the non-tasking version it
21403 means that the task termination functionality is not used.
21404 (Null_Finalize_Global_List): Add this null version for the procedure
21405 in charge of finalizing the global list for controlled objects.
21406 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21407 instead for handling run-time termination in a more flexible way.
21408 (Adafinal_NT): This new procedure will take care of finalizing the
21409 global list for controlled objects if needed, but no tasking
21410 finalization.
21411
21412 * s-tarest.adb (Task_Lock): Do not try to lock again the
21413 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21414 some run-time operations.
21415 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21416 until all nested locks have been released.
21417 (Task_Wrapper): Call the fall-back task termination handler. It
21418 applies to all tasks but the environment task.
21419 (Finalize_Global_Tasks): Add the call for the task termination
21420 procedure for the environment task.
21421 (Task_Wrapper): suppress warnings around declaration of
21422 Secondary_Stack_Address.
21423
21424 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21425 moved to the Common_ATCB record.
21426 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21427 Common_ATCB record.
21428 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21429 Common_ATCB record.
21430
21431 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21432 Fall_Back_Handler, and Specific_Handler.
21433
21434 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21435 defined in Ada.Task_Termination, to avoid circular dependencies.
21436 (Termination_Handler): Redefine this type here, alredy defined in
21437 Ada.Task_Termination, for avoiding circular dependencies.
21438 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21439 for storing task termination handlers. In addition,
21440 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21441 Common_ATCB because it is used by both the regular and the restricted
21442 run times.
21443 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21444 Common_ATCB because it is used by both the regular and the restricted
21445 run times.
21446 (Common_ATCB): Added a dynamic task analyzer field.
21447
21448 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21449 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21450 (Task_Wrapper): Call the task termination handler. It applies to all
21451 tasks but the environment task.
21452 (Finalize_Global_Tasks): Call the task termination procedure for the
21453 environment task. The call to Finalize_Global_List is now performed
21454 using the soft links mechanism.
21455 (Task_Wrapper): added dynamic stack analysis.
21456
21457 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21458 potentially blocking operations has been moved from
21459 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21460 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21461 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21462 this run-time check.
21463
21464 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21465 of task termination procedure.
21466 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21467 link for the task termination procedure.
21468
21469 * bindusg.adb: (Bindusg): Added documentation for -u option.
21470
21471 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21472 (Get_Main_C): Add handling of dynamic stack analysis.
21473 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21474
21475 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21476 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21477 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21478
21479 * opt.ads: Added flags used by dynamic stack measurement.
21480 (Max_Line_Length): Remove (not used anymore)
21481
21482 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21483 (Standart_Output): new subprogram
21484 (Set_Output): new subprogram
21485 (Put): now uses the value of Current_Out to know if the output has to be
21486 send to stderr or stdout.
21487
21488 * s-stausa.ads: Complete implementation.
21489
21490 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21491
21492 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21493 list of Ada 05 files.
21494 (GNAT Library Units): Add AltiVec files.
21495
21496 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21497 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21498 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21499
21500 2005-12-09 Nicolas Setton <setton@adacore.com>
21501
21502 * adaint.c (__gnat_locate_regular_file): Return immediately if
21503 file_name is empty.
21504
21505 2005-12-09 Javier Miranda <miranda@adacore.com>
21506 Hristian Kirtchev <kirtchev@adacore.com>
21507
21508 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21509 to the specification because the frontend generates code that uses this
21510 subprogram.
21511 (Set_Interface_Table): Add missing assertion.
21512 Update documentation describing the run-time structure.
21513 (Displace): New subprogram that displaces the pointer to the object
21514 to reference one of its secondary dispatch tables.
21515 (IW_Membership): Modified to use the new table of interfaces.
21516 (Inherit_TSD): Modified to use the new table of interfaces.
21517 (Register_Interface_Tag): Use the additional formal to fill the
21518 contents of the new table of interfaces.
21519 (Set_Interface_Table): New subprogram that stores in the TSD the
21520 pointer to the table of interfaces.
21521 (Set_Offset_To_Top): Use the additional formal to save copy of
21522 the offset value in the table of interfaces.
21523 Update structure of GNAT Primary and Secondary dispatch table diagram.
21524 Add comment section on GNAT dispatch table prologue.
21525 (Offset_To_Signature): Update the constant value of the Signature field.
21526 (Dispatch_Table): Update comment on hidden fields in the prologue.
21527 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21528 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21529 the type of formal parameter T to Tag, introduce additional assertions.
21530 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21531 conversion.
21532 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21533
21534 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21535 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21536 record component containing the tag of the secondary dispatch table we
21537 have to use the Offset_To_Top run-time function to get this information;
21538 otherwise if the pointer to the base of the object has been displace
21539 we get a wrong value if we use the 'position attribute.
21540
21541 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21542 all the calls to Expand_Interface_Thunk.
21543 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21544 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21545 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21546 ensure that the interfaces implemented by the ancestors are placed
21547 at the header of the generated list.
21548 (Expand_Interface_Conversion): Handle the case in which the displacement
21549 associated with the interface conversion is not statically known. In
21550 this case we generate a call to the new run-time subprogram Displace.
21551 (Make_DT): Generate and fill the new table of interfaces.
21552 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21553 Get_Tagged_Kind and Set_Tagged_Kind.
21554 (Tagged_Kind): New function that determines the tagged kind of a type
21555 with respect to limitedness and concurrency and returns a reference to
21556 RE_Tagged_Kind.
21557 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21558 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21559 primary dispatch table for a type.
21560 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21561 secondary dispatch table respectively of a tagged type.
21562
21563 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21564 (Expand_Interface_Conversion): New subprogram to indicate if the
21565 displacement of the type conversion is statically known.
21566 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21567
21568 * rtsfind.ads (RE_Offset_To_Top): New entity
21569 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21570 accessible to users.
21571 (Re_Displace): New entity
21572 (RE_Interface_Data): New entity
21573 (RE_Set_Interface_Data): New_Entity
21574 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21575 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21576 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21577 RE_TK_Tagged, RE_TK_Task.
21578
21579 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21580 Init_Secondary_Tags_Internal to allow its use with interface types and
21581 also to generate the code for the new additional actual required
21582 by Set_Offset_To_Top.
21583 (Build_Init_Statements): In case of components associated with abstract
21584 interface types there is no need to generate a call to its IP.
21585 (Freeze_Record_Type): Generate Select Specific Data tables only for
21586 concurrent types.
21587 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21588 the bodies and specifications of the predefined primitive operations
21589 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21590 for concurrent types.
21591
21592 * exp_sel.ads, exp_sel.adb: New files.
21593
21594 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21595 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21596 properly protected objects and attach handler in the case of the
21597 restricted profile.
21598 Move embeded package Select_Expansion_Utilities into a separate external
21599 package.
21600 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21601 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21602 (Build_K, Build_S_Assignment): New subprograms, part of the select
21603 expansion utilities.
21604 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21605 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21606 where the trigger is a dispatching procedure of a limited tagged type.
21607
21608 2005-12-09 Olivier Hainque <hainque@adacore.com>
21609
21610 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21611 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21612 about the use and expansion of SAVE_EXPRs in the various possible
21613 renaming handling cases.
21614 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21615 abusing DECL_FCONTEXT.
21616
21617 2005-12-09 Matthew Heaney <heaney@adacore.com>
21618
21619 * a-convec.adb (Merge): Added assertions to check whether vector params
21620 are sorted.
21621
21622 * a-coinve.adb (Merge): Added assertions to check whether vector params
21623 are sorted.
21624
21625 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21626 draft.
21627 (Cursor'Read): raises PE
21628
21629 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21630 to its default value.
21631
21632 * a-cihama.adb: Manually check whether cursor's key and elem are
21633 non-null
21634
21635 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21636 (Merge): Assert that target and source lists are in order
21637 (Swap): Declare non-const temporaries, to pass to Splice
21638
21639 * a-cdlili.ads: (Splice): Changed param name and param mode
21640
21641 * a-cdlili.adb: (Splice): Changed param name and param mode
21642 (Merge): Assert that target and source lists are in order
21643 (Swap): Declare non-const temporaries, to pass to Splice
21644
21645 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21646 (Write): declare Stream param as not null
21647
21648 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21649 an exception message.
21650
21651 2005-12-09 Thomas Quinot <quinot@adacore.com>
21652 Robert Dewar <dewar@adacore.com>
21653
21654 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21655 which is the absolute maximum length we can support.
21656
21657 * frontend.adb: For the processing of configuration pragma files,
21658 remove references to Opt.Max_Line_Length, which is not checked anymore.
21659
21660 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21661 length.
21662
21663 * scn.adb, scng.adb:
21664 Always check line length against the absolute supported maximum,
21665 Hostparm.Max_Line_Length.
21666
21667 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21668 value for the maximum line length is Max_Line_Length (not
21669 Column_Number'Last).
21670 Minor error msg update
21671 (Set_Style_Check_Options): New interface returning error msg
21672 Minor code reorganization (processing for 'M' was out of alpha order)
21673
21674 * switch-c.adb: New interface for Set_Style_Check_Options
21675
21676 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21677 msg.
21678
21679 2005-12-09 Javier Miranda <miranda@adacore.com>
21680
21681 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21682 with IP subprogram were only supported if there were limited types.
21683
21684 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21685 records with IP subprogram were only supported if there were limited
21686 types.
21687
21688 2005-12-09 Olivier Hainque <hainque@adacore.com>
21689 Eric Botcazou <ebotcazou@adacore.com>
21690
21691 * trans.c (tree_transform, emit_check): Adjust calls to
21692 build_call_raise, passing the now expected GNAT_NODE argument.
21693
21694 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21695 source line information than what the current global locus indicates
21696 when appropriate.
21697
21698 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21699 field has overflowed.
21700 (build_call_raise): Add a GNAT_NODE argument to convey better source
21701 line information than what the current global locus indicates when
21702 appropriate.
21703 (build_component_ref): Adjust call to build_call_raise.
21704
21705 2005-12-09 Pascal Obry <obry@adacore.com>
21706
21707 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21708 the iterator is quitting iteration on parent directory.
21709
21710 2005-12-09 Javier Miranda <miranda@adacore.com>
21711
21712 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21713 and the assignment to a class-wide object, before the assignment we
21714 generate a run-time check to ensure that the tag of the Target is
21715 covered by the tag of the source.
21716
21717 2005-12-09 Robert Dewar <dewar@adacore.com>
21718
21719 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21720 parameter in call to Image_Wide_Character.
21721
21722 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21723 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21724 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21725 annoying FFFE/FFFF inconsistency.
21726
21727 2005-12-09 Robert Dewar <dewar@adacore.com>
21728 Javier Miranda <miranda@adacore.com>
21729 Ed Schonberg <schonberg@adacore.com>
21730
21731 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21732 of type conversion.
21733 (Find_Interface): New subprogram that given a tagged type and one of its
21734 component associated with the secondary table of an abstract interface
21735 type, return the entity associated with such abstract interface type.
21736 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21737 base type to create anonymous subtype, because entity may be a locally
21738 declared subtype or generic actual.
21739 (Find_Interface): New subprogram that given a tagged type and one of its
21740 component associated with the secondary table of an abstract interface
21741 type, return the entity associated with such abstract interface type.
21742
21743 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21744 conversion cannot be handled at compile time. In this case we pass this
21745 information to the expander to generate the appropriate code.
21746
21747 2005-12-09 Robert Dewar <dewar@adacore.com>
21748 Ed Schonberg <schonberg@adacore.com>
21749 Gary Dismukes <dismukes@adacore.com>
21750 Javier Miranda <miranda@adacore.com>
21751 Hristian Kirtchev <kirtchev@adacore.com>
21752
21753 * einfo.adb (Itype_Printed): New flag
21754 (Is_Limited_Type): Derived types do not inherit limitedness from
21755 interface progenitors.
21756 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21757 interfaces.
21758
21759 * einfo.ads (Itype_Printed): New flag
21760 Move Is_Wrapper_Package to proper section
21761 Add missing Inline for Is_Volatile
21762
21763 * output.ads, output.adb (Write_Erase_Char): New procedure
21764 (Save/Restore_Output_Buffer): New procedures
21765 (Save/Restore_Output_Buffer): New procedures
21766
21767 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21768 Add missing support for anonymous access type
21769 (Write_Id): Insert calls to Write_Itype
21770 (Write_Itype): New procedure to output itypes
21771
21772 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21773 use of "limited" in declaration.
21774
21775 * sinfo.ads, sinfo.adb:
21776 Formal derived types can carry an explicit "limited" indication.
21777
21778 * sem_ch3.adb: Add with and use of Targparm.
21779 (Create_Component): If Frontend_Layout_On_Target is True and the
21780 copied component does not have a known static Esize, then reset
21781 the size and positional fields of the new component.
21782 (Analyze_Component_Declaration): A limited component is
21783 legal within a protected type that implements an interface.
21784 (Collect_Interfaces): Do not add to the list the interfaces that
21785 are implemented by the ancestors.
21786 (Derived_Type_Declaration): If the parent of the full-view is an
21787 interface perform a transformation of the tree to ensure that it has
21788 the same parent than the partial-view. This simplifies the job of the
21789 expander in order to generate the correct object layout, and it is
21790 needed because the list of interfaces of the full-view can be given in
21791 any order.
21792 (Process_Full_View): The parent of the full-view does not need to be
21793 a descendant of the parent of the partial view if both parents are
21794 interfaces.
21795 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21796 "limited" the parent must be a limited type.
21797 (Build_Derived_Record_Type): A derived type that is explicitly limited
21798 must have limited ancestor and progenitors.
21799 (Build_Derived_Type): Ditto.
21800 (Process_Full_View): Verify that explicit uses of "limited" in partial
21801 and full declarations are consistent.
21802 (Find_Ancestor_Interface): Remove function.
21803 (Collect_Implemented_Interfaces): New procedure used to gather all
21804 implemented interfaces by a type.
21805 (Contain_Interface): New function used to check whether an interface is
21806 present in a list.
21807 (Find_Hidden_Interface): New function used to determine whether two
21808 lists of interfaces constitute a set equality. If not, the first
21809 differing interface is returned.
21810 (Process_Full_View): Improve the check for the "no hidden interface"
21811 rule as defined by AI-396.
21812
21813 2005-12-09 Robert Dewar <dewar@adacore.com>
21814
21815 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21816 types, not on record subtypes.
21817 (Freeze_Entity): Code cleanup. Add barrier to the loop
21818 that generates the references for primitive operations. This allows to
21819 remove an unnecessary exception handler.
21820 Code reformatting and comment clean ups.
21821
21822 2005-12-09 Vincent Celier <celier@adacore.com>
21823
21824 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21825 If GNAT CHECK is called with a project file, but with no
21826 source on the command line, call gnatcheck with all the compilable
21827 sources of the project.
21828 Take into account the new command Check, for gnatcheck. Treat as for
21829 other ASIS tools: take into account project, specific package Check and
21830 Compiler switches.
21831 For ASIS tools, add the switches in package Compiler for
21832 the invocation of the compiler.
21833
21834 * prj-attr.adb: Add package Check and its attributes
21835
21836 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21837
21838 * vms_conv.adb (Initialize): Change Params of command Check to
21839 unlimited files.
21840 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21841 Add data for new command Check
21842
21843 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21844 ELIM.
21845 Add qualifiers for Check command options
21846 (Command_Type): New command Check
21847
21848 2005-12-09 Thomas Quinot <quinot@adacore.com>
21849
21850 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21851 command line switch overruns the output buffer.
21852
21853 2005-12-09 Robert Dewar <dewar@adacore.com>
21854
21855 * sem_prag.adb: Processing for new pragma Complete_Representation
21856 (Analyze_Pragma, case Debug): Implement two argument form.
21857
21858 * par-prag.adb: Entry for new pragma Complete_Representation
21859 (Prag, case Debug): Recognize two argument form of pragma Debug
21860 New interface for Set_Style_Check_Options.
21861
21862 * sem_ch13.adb: Implement new pragma Complete_Representation.
21863
21864 * snames.adb, snames.ads, snames.h: Entry for new pragma
21865 Complete_Representation.
21866
21867 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21868
21869 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21870 available user-specified stream attributes on limited parameters to
21871 also test the type directly rather than only its underlying type (for
21872 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21873 attributes are visible at the point of the subprogram declaration.
21874 For Ada 2005, the error message is modified to indicate that the
21875 type's stream attributes must be visible (again, only for -gnat05).
21876
21877 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21878
21879 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21880 anonymous access types.
21881
21882 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21883 matching of anonymous access types and anonymous access to subprogram
21884 types. 'R'M 4.9.1 (2/2).
21885
21886 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21887
21888 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21889 rule prematurely when operands are universal, remaining ambiguities
21890 will be removed during resolution.
21891 Code cleanup.
21892
21893 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21894 that are Ada 2005 functions.
21895 (Has_Abstract_Interpretation): Subsidiary to
21896 Remove_Conversions, to remove ambiguities caused by abstract operations
21897 on numeric types when operands are universal.
21898
21899 2005-12-09 Robert Dewar <dewar@adacore.com>
21900
21901 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21902 for case where spec is categorized.
21903
21904 2005-12-09 Javier Miranda <miranda@adacore.com>
21905
21906 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21907 types use the corresponding record type. This was not needed before
21908 the implementation of Ada 2005 synchronized types because
21909 concurrent types were never tagged types in Ada 95.
21910
21911 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21912
21913 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21914 first subtype of the type of the expression to verify that it is a
21915 legal Time type.
21916
21917 2005-12-09 Robert Dewar <dewar@adacore.com>
21918
21919 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21920 decoded names.
21921
21922 2005-12-09 Quentin Ochem <ochem@adacore.com>
21923 Robert Dewar <dewar@adacore.com>
21924 Ed Falis <falis@adacore.com>
21925 Florian Villoing <villoing@adacore.com>
21926 Thomas Quinot <quinot@adacore.com>
21927 Arnaud Charlet <charlet@adacore.com>
21928
21929 * gnat_ugn.texi: Created section "Stack Related Tools"
21930 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21931 "Stack Related Tools"
21932 Added subsection "Static Stack Usage Analysis"
21933 Added subsection "Dynamic Stack Usage Analysis"
21934 Include documentation of itypes in sprint listing (-gnatG)
21935 Documented gnatbind -D switch (default sec stack size for fixed sec
21936 stacks).
21937 Added Interrupt_State and Persistent_BSS to list of configuration
21938 pragmas.
21939 Add missing doc for maximum value of nnn in -gnatyMnnn
21940
21941 * gnat_rm.texi: Document the AltiVec binding.
21942 Add documentation for pragma Complete_Representation
21943 Shortened an overly long line (> 79 chars)
21944 Clarify documentation of unchecked conversion in implementation
21945 defined cases.
21946 Document two argument form of pragma Debug
21947
21948 * types.ads (Column_Number): Update documentation.
21949
21950 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21951 library level Finalize_Storage_Only objects (these are not attached to
21952 any finalization list).
21953
21954 * system-mingw.ads: (Underlying_Priorities): Update comment.
21955
21956 2005-12-09 Robert Dewar <dewar@adacore.com>
21957
21958 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21959 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21960 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21961 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21962 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21963 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21964 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21965 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21966 reformatting.
21967
21968 2005-12-09 Robert Dewar <dewar@adacore.com>
21969
21970 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21971 (Ne_G): New function
21972
21973 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21974 for tag assignment.
21975 (Rewrite_Comparison): Handle case where operation is not a comparison
21976 and ignore, and also handle type conversion case.
21977
21978 2005-12-09 Thomas Quinot <quinot@adacore.com>
21979
21980 * exp_aggr.ads: Fix typo in comment.
21981 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21982
21983 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21984
21985 * layout.adb: Replace various uses of byte by storage unit throughout.
21986 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21987 static size, convert to storage units before returning, to conform to
21988 spec.
21989
21990 2005-12-09 Matthew Gingell <gingell@adacore.com>
21991
21992 * g-exctra.ads: Fix typo in comment.
21993
21994 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21995
21996 * utils.c: Minor reformatting.
21997
21998 2005-12-09 Robert Dewar <dewar@adacore.com>
21999
22000 * g-soccon.ads:
22001 Further comment fixes to make the status of the default file clear
22002
22003 * s-bitops.adb: Clarify comment for Bits_Array
22004
22005 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22006
22007 * Make-lang.in (ada.install-normal): Remove.
22008
22009 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22010
22011 * Make-lang.in: Remove all dependencies on s-gtype.
22012
22013 2005-12-05 Richard Guenther <rguenther@suse.de>
22014
22015 * utils.c (convert): Use fold_convert where appropriate.
22016
22017 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
22018
22019 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
22020 a period is meant.
22021
22022 2005-12-02 Richard Guenther <rguenther@suse.de>
22023
22024 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
22025
22026 2005-12-01 Roger Sayle <roger@eyesopen.com>
22027
22028 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
22029 nodes.
22030
22031 2005-11-23 Laurent Guerby <laurent@guerby.net>
22032
22033 * mlib-prj.adb (Build_Library): Initialize Delete.
22034
22035 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
22036
22037 * socket.c: Add extern int h_errno for rtems since networking header
22038 files are not available at this point in a tool bootstrap. Newlib
22039 only has basic C library header files.
22040
22041 2005-11-19 Richard Guenther <rguenther@suse.de>
22042 Roger Sayle <roger@eyesopen.com>
22043
22044 PR ada/23717
22045 * misc.c (internal_error_function): Don't use vsprintf to format
22046 the error message text, instead use pp_format_text and the new
22047 pretty printer APIs. This allows handling of %qs, %w, etc.
22048
22049 2005-11-18 Laurent Guerby <laurent@guerby.net>
22050
22051 PR ada/24857
22052 * Makefile.in: Use s-auxdec-empty for RTEMS.
22053
22054 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22055
22056 PR ada/22333
22057 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22058 a temporary if taking the address of something that is neither
22059 reference, declaration, or constant, since the gimplifier
22060 can't handle that case.
22061
22062 2005-11-17 Laurent Guerby <laurent@guerby.net>
22063
22064 PR ada/24857
22065 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
22066
22067 2005-11-16 Richard Guenther <rguenther@suse.de>
22068
22069 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22070
22071 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
22072
22073 PR ada/24855
22074 * raise-gcc.c: Add missing stdarg.h include.
22075
22076 2005-11-16 Richard Guenther <rguenther@suse.de>
22077
22078 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22079 (ada/misc.o): Likewise.
22080
22081 2005-11-14 Thomas Quinot <quinot@adacore.com>
22082
22083 * g-soccon.ads: Minor reformatting. Update comments.
22084
22085 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22086 gain visibility on the declaration of struct timeval.
22087
22088 * g-soccon-freebsd.ads,
22089 g-soccon-darwin.ads,
22090 g-soccon-tru64.ads,
22091 g-soccon-aix.ads,
22092 g-soccon-irix.ads,
22093 g-soccon-hpux.ads,
22094 g-soccon-solaris.ads,
22095 g-soccon-vms.ads,
22096 g-soccon-mingw.ads,
22097 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22098
22099 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22100 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22101 g-soccon-linux-x86.ads: New files.
22102
22103 * g-socthi-mingw.adb:
22104 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22105
22106 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22107 (time_t, suseconds_t): New types constructed to match the tv_sec
22108 and tv_usec fields of C struct timeval.
22109 (Timeval): Construct structure in terms of the new types.
22110 (Host_Errno): New function (imported from socket.c), returns last hosts
22111 database error.
22112
22113 * g-socthi-vxworks.adb: Add error handling circuitry.
22114
22115 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22116 components of struct timeval.
22117 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22118 (Check_Selector): In error conditions, clear internal socket sets to
22119 avoid a memory leak.
22120 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22121 Send_Timeout, Receive_Timeout.
22122
22123 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22124 the tv_sec and tv_usec fields of C struct timeval.
22125 (Timeval): Construct structure in terms of the new types.
22126 (Host_Errno): New function (imported from socket.c), returns last hosts
22127 database error.
22128
22129 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22130 hosts database last error code.
22131
22132 * gen-soccon.c: Complete value expansion should not be performed on
22133 TARGET, as it has the form of a math expression, and some components
22134 may be platform-defined macros.
22135 For VxWorks, generate the OK and ERROR values.
22136 New constants giving the sizes of the components of C struct timeval.
22137
22138 2005-11-14 Robert Dewar <dewar@adacore.com>
22139 Ed Schonberg <schonberg@adacore.com>
22140
22141 PR ada/18434
22142 * types.ads: Include All_Checks in Suppress_Array
22143
22144 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22145 not(a=b), since we no longer do this rewriting, and hence it is not
22146 needed.
22147 (Elaboration_Checks_Suppressed): Add special casing to
22148 deal with different cases of static and dynamic elaboration checks (all
22149 checks does not count in the first case, but does in the second).
22150 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22151 function call is valid, since this is not the case.
22152 (Ensure_Valid): Do not apply validity check to a real literal
22153 in a universal or fixed context
22154
22155 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22156 elementary types using the operator in standard. It is cleaner not to
22157 modify the programmers intent, especially in the case of floating-point.
22158 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22159 it did not matter because we always rewrote a/=b to not(a=b).
22160 (Expand_Allocator_Expression): For an allocator expression whose nominal
22161 subtype is an unconstrained packed type, convert the expression to its
22162 actual constrained subtype.
22163 Implement warning for <= or >= where < or > not possible
22164 Fix to Vax_Float tests (too early in many routines, causing premature
22165 Vax_Float expansions.
22166
22167 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22168 to be used with packages and generic packages as well as with
22169 subprograms.
22170 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22171 of pragma Suppress (All_Checks)
22172 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22173 a string literal for precise control over warnings.
22174 Avoid raise of pragma in case of unrecognized pragma and just return
22175 instead.
22176
22177 * sem_prag.ads: Minor reformatting
22178
22179 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22180 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22181 Switch. Do not handle any exception.
22182 Include -gnatwx as part of -gnatg (warn on redundant parens)
22183 Allow optional = after -gnatm
22184 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22185 longer sets Elaboration_Checks.
22186 Code to set warning mode moved to Sem_Warn
22187 so that it can be shared by pragma processing.
22188
22189 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22190 statement.
22191
22192 * s-taprop-solaris.adb:
22193 Change some <= to =, to avoid new warning
22194
22195 * a-exexda.adb, prj-proc.adb:
22196 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22197 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22198
22199 2005-11-14 Robert Dewar <dewar@adacore.com>
22200
22201 * exp_vfpt.adb: Handle /= case
22202 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22203 so that we do not get duplicate scaling for fixed point conversions.
22204
22205 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22206
22207 2005-11-14 Matthew Gingell <gingell@adacore.com>
22208
22209 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22210 Increase default priority on Lynx from 15 to 17, and meet the Ada
22211 requirement that Default_Priority be ((Priority'First +
22212 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22213
22214 2005-11-14 Vincent Celier <celier@adacore.com>
22215
22216 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22217 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22218 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22219 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22220 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22221 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22222
22223 2005-11-14 Doug Rupp <rupp@adacore.com>
22224
22225 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22226 private part.
22227
22228 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22229
22230 * s-traces-default.adb, s-trafor-default.ads,
22231 s-tratas-default.adb: Fix compilation errors.
22232
22233 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22234
22235 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22236 raising the exception so the memory used is freed.
22237
22238 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22239
22240 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22241 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22242 (convert_address): Update comments and list of platforms using this.
22243
22244 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22245 no longer used.
22246
22247 2005-11-14 Pascal Obry <obry@adacore.com>
22248 Vincent Celier <celier@adacore.com>
22249
22250 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22251 GNAT.Command_Line.
22252
22253 * memroot.adb: Remove redundant with/use clause on
22254 System.Storage_Elements.
22255
22256 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22257
22258 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22259 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22260 related code to a-exexpr.adb
22261 (Save_Occurrence_And_Private): Move GCC EH related code to
22262 a-exexpr-gcc.adb
22263 (Raise_Current_Excep): Add new variable Id with pragma
22264 volatile, to ensure that the variable lives on stack.
22265
22266 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22267
22268 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22269 from a-except.adb.
22270 Move GCC EH related code to a-exexpr-gcc.adb
22271
22272 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22273 64-bit Solaris
22274 Split the Linux version of g-soccon into separate variants for 32 and 64
22275 bit platforms.
22276 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22277 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22278 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22279 of host variable $(RANLIB_FLAGS).
22280 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22281 Code clean up: remove unused/obsolete targets.
22282 (EH_MECHANISM): New variable introduced to differenciate between the
22283 two EH mechanisms statically.
22284 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22285 (LIBGNAT_OBJS): Add raise-gcc.o
22286 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22287 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22288 supports VxWorks 6 RTPs.
22289 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22290 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22291
22292 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22293
22294 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22295
22296 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22297 deferral level, when abort is not allowed, to a later stage (the
22298 Task_Wrapper).
22299 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22300 it will not get changed by the generated code. It was previously done
22301 in Create_Task.
22302
22303 2005-11-14 Thomas Quinot <quinot@adacore.com>
22304 Olivier Hainque <hainque@adacore.com>
22305 Eric Botcazou <ebotcazou@adacore.com>
22306
22307 * decl.c:
22308 Factor common code to build a storage type for an unconstrained object
22309 from a fat or thin pointer type and a constrained object type.
22310 (annotate_value): Handle BIT_AND_EXPR.
22311 (annotate_rep): Don't restrict the back annotation of inherited
22312 components to the type_annotate_only case.
22313 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22314 we are not defining the type.
22315 <E_Record_Type>: Likewise.
22316 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22317 to get advantage of the new maybe_stabilize_reference interface, to
22318 ensure that what we reference is indeed stabilized instead of relying
22319 on assumptions on what the stabilizer does.
22320 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22321 type imported through a limited_with clause, use its non-limited view.
22322 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22323 differentiation.
22324 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22325 of #if sections + explicit comparisons of convention identifiers.
22326 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22327 before early-returning for certain types when code generation is
22328 disabled.
22329 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22330 nullification of gnu_expr we do for objects with address clause and
22331 that we are not defining.
22332 (elaborate_expression_1): Do not create constants when creating
22333 variables needed by the debug info: the dwarf2 writer considers that
22334 CONST_DECLs is used only to represent enumeration constants, and emits
22335 nothing for them.
22336 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22337 object with an address clause into an indirect reference, drop the
22338 initializing expression.
22339 Include "expr.h".
22340 (STACK_CHECK_BUILTIN): Delete.
22341 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22342 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22343 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22344 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22345 corresponding to the renamed object as ignored for debugging purposes.
22346
22347 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22348 related): For a prefix that is a dereference of a fat or thin pointer,
22349 if there is an actual subtype provided by the front-end, use that
22350 subtype to build an actual type with bounds template.
22351 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22352 is provided by the front-end, use that subtype to compute the size of
22353 the deallocated object.
22354 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22355 check for a potential violation of a No_Elaboration_Code restriction.
22356 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22357 with extra arguments to control whether to recurse through non-values
22358 and to let the caller know if the stabilization has succeeded.
22359 (gnat_stabilize_reference): Now a simple wrapper around
22360 maybe_stabilize, for common uses without restriction on lvalues and
22361 without need to check for the success indication.
22362 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22363 pass false instead of 0 as the FORCE argument which is a bool.
22364 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22365 attached to a renaming pointer has been properly stabilized, as no such
22366 object is attached otherwise.
22367 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22368 function uses the "target pointer" return mechanism.
22369 Reinstate conversion of the actual to the type of the formal
22370 parameter before any other specific treatment based on the passing
22371 mechanism. This turns out to be necessary in order for PLACEHOLDER
22372 substitution to work properly when the latter type is unconstrained.
22373
22374 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22375 common pattern.
22376 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22377 with extra arguments to control whether to recurse through non-values
22378 and to let the caller know if the stabilization has succeeded.
22379
22380 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22381 static output of record constructor if all the components are constant.
22382 (gnat_build_constructor): For a record type, sort the list of field
22383 initializers in increasing bit position order.
22384 Factor common code to build a storage type for an unconstrained object
22385 from a fat or thin pointer type and a constrained object type.
22386 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22387 types variants, and process special cases of VIEW_CONVERT expressions
22388 as their NOP_EXPR counterpart to ensure we get to the
22389 CORRESPONDING_VARs associated with CONST_DECls.
22390 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22391 on the right-hand side.
22392
22393 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22394 a common pattern.
22395 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22396 are converting back to its original type.
22397 (convert) <JM input>: Fallthrough regular conversion code instead of
22398 extracting the object if converting to a type variant.
22399 (create_var_decl): When a variable has an initializer requiring code
22400 generation and we are at the top level, check for a potential violation
22401 of a No_Elaboration_Code restriction.
22402 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22403 SIZE and SIZE_UNIT which we need for later back-annotations.
22404 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22405 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22406 is an unchecked union.
22407 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22408 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22409 main variant, just replace the VIEW_CONVERT_EXPR.
22410 <UNION_TYPE>: Revert 2005-03-02 change.
22411
22412 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22413
22414 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22415
22416 2005-11-14 Matthew Heaney <heaney@adacore.com>
22417
22418 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22419 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22420 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22421 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22422 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22423 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22424 Compiles against the spec for ordered maps described in sections
22425 A.18.6 of the most recent (August 2005) AI-302 draft.
22426
22427 2005-11-14 Olivier Hainque <hainque@adacore.com>
22428
22429 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22430 to ensure bias adjustments take place when need be and to prevent
22431 occurrences of intermediate overflows.
22432
22433 2005-11-14 Matthew Gingell <gingell@adacore.com>
22434 Olivier Hainque <hainque@adacore.com>
22435
22436 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22437 ia64 HP-UX.
22438
22439 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22440 tracebacks on ia64 HP-UX and provide explanatory comment.
22441 Enable backtraces on ia64 GNU/Linux.
22442 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22443 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22444
22445 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22446 Javier Miranda <miranda@adacore.com>
22447
22448 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22449 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22450 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22451 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22452
22453 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22454 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22455 assertions).
22456
22457 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22458 subprogram that generates the external name associated with a
22459 secondary dispatch table.
22460 (Get_Secondary_DT_External_Name): New subprogram that generates the
22461 external name associated with a secondary dispatch table.
22462
22463 2005-11-14 Emmanuel Briot <briot@adacore.com>
22464
22465 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22466 line in the ALI file to include both an instantiation reference, and a
22467 returned value.
22468
22469 2005-11-14 Vincent Celier <celier@adacore.com>
22470
22471 * clean.adb (Check_Project): Look for Ada code in extending project,
22472 even if Ada is not specified as a language.
22473 Use new function DLL_Prefix for DLL_Name
22474 (Clean_Interface_Copy_Directory): New procedure
22475 (Clean_Library_Directory): New procedure
22476 (Clean_Directory): Remove procedure, no longer used
22477 (Clean_Project): Do not delete any file in an externally built project
22478
22479 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22480 directory of an extending project, even when there are no Ada source
22481 present.
22482 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22483 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22484
22485 * mlib-prj.adb (Check_Library): For all library projects, get the
22486 library file timestamp.
22487 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22488 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22489 (Clean): Remove procedure, no longer used
22490 (Ultimate_Extension_Of): New function
22491 (Build_Library): When cleaning the library directory, only remove an
22492 existing library file and any ALI file of a source of the project.
22493 When cleaning the interface copy directory, remove any source that
22494 could be a source of the project.
22495
22496 * prj.ads, prj.adb (Project_Empty): Add values of new components
22497 Library_TS and All_Imported_Projects.
22498 (Project_Empty): Add values for new components of Project_Data:
22499 Library_ALI_Dir and Display_Library_ALI_Dir
22500
22501 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22502
22503 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22504 attribute Library_ALI_Dir.
22505 (Check_Library_Attributes): The library directory cannot be the same as
22506 any source directory of the project tree.
22507 (Check_Stand_Alone_Library): The interface copy directory cannot be
22508 the same as any source directory of the project tree.
22509
22510 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22511 all temporary files.
22512
22513 2005-11-14 Robert Dewar <dewar@adacore.com>
22514 Ed Schonberg <schonberg@adacore.com>
22515
22516 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22517 (Check_Elab_Call): A call within a protected body is never an
22518 elaboration call, and does not require checking.
22519 (Same_Elaboration_Scope): Take into account protected types for both
22520 entities.
22521 (Activate_Elaborate_All_Desirable): New procedure
22522
22523 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22524 desirable
22525
22526 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22527 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22528
22529 * lib-writ.ads, lib-writ.adb:
22530 Implement new AD/ED for Elaborate_All/Elaborate desirable
22531 Use new Elaborate_All_Desirable flag in N_With_Clause node
22532
22533 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22534 N_Free_Statement nodes.
22535 Define new class N_Subprogram_Instantiation
22536 Add Elaborate_Desirable flag to N_With_Clause node
22537 Add N_Delay_Statement (covering two kinds of delay)
22538
22539 * debug.adb: Introduce d.f flag for compiler
22540 Add -da switch for binder
22541
22542 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22543 Cyrille Comar <comar@adacore.com>
22544
22545 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22546 for task component, in the case of a limited aggregate. The enclosed
22547 object declaration will create it earlier. Otherwise, in the case of a
22548 nested aggregate, the object may appear in the wrong scope.
22549 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22550 (Gen_Assign): If the component being assigned is an array type and the
22551 expression is itself an aggregate, wrap the assignment in a block to
22552 force finalization actions on the temporary created for each row of the
22553 enclosing object.
22554 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22555 structures are initialized after all discriminants are set so that
22556 they can be accessed even when their offset is dynamic.
22557
22558 2005-11-14 Robert Dewar <dewar@adacore.com>
22559 Hristian Kirtchev <kirtchev@adacore.com>
22560
22561 * sem_attr.adb: Implement Machine_Rounding attribute
22562 (Analyze_Access_Attribute): The access attribute may appear within an
22563 aggregate that has been expanded into a loop.
22564 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22565 'Terminated whenever the prefix is of a task interface class-wide type.
22566 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22567 the prefix is of a task interface class-wide type.
22568
22569 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22570 to avoid warnings.
22571
22572 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22573 Remove pragma Inline for [Unaligned_]Valid.
22574 Add comments that Valid routines do not work for Vax_Float
22575
22576 * exp_attr.adb: Implement Machine_Rounding attribute
22577
22578 * snames.h: Add entry for Machine_Rounding attribute
22579
22580 2005-11-14 Javier Miranda <miranda@adacore.com>
22581 Robert Dewar <dewar@adacore.com>
22582 Hristian Kirtchev <kirtchev@adacore.com>
22583
22584 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22585 and related): For a prefix that is an explicit dereference of an
22586 access to unconstrained packed array type, annotate the dereference
22587 with an actual subtype so GIGI can make a correct size computation.
22588 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22589 'Unrestricted_Access, if the designated type is an interface we
22590 add a type conversion to force the displacement of the pointer
22591 to the secondary dispatch table.
22592 Use Universal_Real instead of Long_Long_Float when we need a high
22593 precision float type for the generated code (prevents gratuitous
22594 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22595 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22596 'Terminated for task interface class-wide objects. Generate a call to
22597 the predefined dispatching routine used to retrieve the _task_id from
22598 a task corresponding record.
22599 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22600
22601 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22602 (Check_Dispatching_Operation): Protect the frontend againts
22603 previously detected errors.
22604
22605 * Makefile.rtl: Add new instantiations of system.fat_gen
22606
22607 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22608 Change name of instantiated package for better consistency
22609 with newly added system.fat_gen instantiations.
22610
22611 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22612 s-fvagfl.ads: New files.
22613
22614 2005-11-14 Cyrille Comar <comar@adacore.com>
22615 Thomas Quinot <quinot@adacore.com>
22616
22617 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22618 assignment of a value of a tagged type that has been rewritten to a
22619 block statement, it is known by construction that no checks are
22620 necessary for the statements within the block: analyze it with checks
22621 suppressed.
22622 (Expand_N_If_Statement): When killing a dead then-branch in an
22623 if-statement that has elsif_parts, recompute the Current_Value node
22624 for any entity whose value is known from the condition of the first
22625 elsif_part.
22626 (Expand_N_Return_Statement): When returning a mutable record, convert
22627 the return value into its actual subtype in order to help the backend
22628 to return the actual size instead of the maximum. This is another
22629 aftermath of not returning mutable records on the sec-stack anymore.
22630
22631 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22632 handling of error msg for suspicious reverse range iteration.
22633 (Check_Possible_Current_Value_Condition): Move declaration from body to
22634 spec, to allow this subprogram to be called from exp_ch5.
22635
22636 2005-11-14 Thomas Quinot <quinot@adacore.com>
22637
22638 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22639 generate a set of nested array aggregates instead of a single flat
22640 aggregate for multi-dimensional arrays.
22641
22642 2005-11-14 Pascal Obry <obry@adacore.com>
22643
22644 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22645 by spawnve is a process handle, no need to convert. Add a parameter
22646 close to control wether the process handle must be closed.
22647 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22648 a process handle, not need to convert.
22649 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22650
22651 * g-expect.adb: (Kill): Document the new close parameter.
22652 (Close): Do not release the process handle in the kill there as
22653 waitpid() is using it.
22654 (Send_Signal): Release the process handle.
22655
22656 2005-11-14 Robert Dewar <dewar@adacore.com>
22657
22658 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22659 need a high precision float type for the generated code (prevents
22660 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22661 used).
22662
22663 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22664 need a high precision float type for the generated code (prevents
22665 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22666 used).
22667 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22668 allowed on non-static enumeration subtypes. Force a load error to emit
22669 the correct diagnostic.
22670
22671 2005-11-14 Thomas Quinot <quinot@adacore.com>
22672 Robert Dewar <dewar@adacore.com>
22673 Ed Schonberg <schonberg@adacore.com>
22674
22675 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22676 subtype to compute the size of the designated object at run-time,
22677 create such a subtype and store it in the Actual_Designated_Subtype
22678 attribute of the N_Free_Statement.
22679 Generate itype for classwide designated object in both cases of
22680 user-specified storage pool: specific and class-wide, not only in the
22681 specific case.
22682 Raise CE when trying to set a not null access type object to null.
22683 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22684 an explicit loop, because freeze nodes make its position variable.
22685
22686 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22687 null object.
22688
22689 2005-11-14 Javier Miranda <miranda@adacore.com>
22690
22691 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22692 Build_Stream_Procedure): Add the null-excluding attribute to the first
22693 formal.
22694 This has no semantic meaning under Ada95 mode but it is a
22695 requirement under Ada05 mode.
22696
22697 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22698 the null exclusion is used under Ada95 mode
22699 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22700 (P_Access_Definition): Remove assertion that forbids the use of
22701 the null-exclusion feature in Ada95.
22702
22703 2005-11-14 Robert Dewar <dewar@adacore.com>
22704
22705 * impunit.adb: Exclude container helper units not intended for use by
22706 users.
22707
22708 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22709
22710 * freeze.adb (Freeze_Entity): For an access formal that is an access
22711 to subprogram, freeze the anonymous subprogram type at the same time,
22712 to prevent later freezing in the wrong scope, such as the enclosing
22713 subprogram body.
22714 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22715 subprogram whenever available.
22716
22717 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22718
22719 PR ada/23732
22720 * gnatvsn.ads (Library_Version): Bump to 4.1
22721
22722 2005-11-14 Robert Dewar <dewar@adacore.com>
22723
22724 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22725 Storage_Offset to avoid wrap around causing invalid results.
22726
22727 2005-11-14 Pascal Obry <obry@adacore.com>
22728
22729 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22730 cross-compiler.
22731 (Scan_Bind_Arg): Fail with an error message if -M option is used
22732 on a native compiler.
22733
22734 2005-11-14 Robert Dewar <dewar@adacore.com>
22735 Vincent Celier <celier@adacore.com>
22736
22737 * gprep.adb: Implement -C switch to scan comments
22738
22739 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22740
22741 * scans.ads: Comment updates (including new use of Tok_Comment in
22742 preprocessing)
22743
22744 * opt.ads: Add documentation for flags that are used by gprmake,
22745 currently and in the next version of gprmake.
22746 (Verbosity_Level): New variable
22747 Add Replace_In_Comments switch
22748
22749 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22750 and -vm.
22751 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22752
22753 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22754
22755 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22756 message, friendlier.
22757
22758 2005-11-14 Robert Dewar <dewar@adacore.com>
22759
22760 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22761
22762 2005-11-14 Doug Rupp <rupp@adacore.com>
22763
22764 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22765
22766 2005-11-14 Robert Dewar <dewar@adacore.com>
22767
22768 * interfac.ads: Change declarations of IEEE float types so that we no
22769 longer need a separate version of this package for VMS.
22770
22771 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22772
22773 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22774 internal entity created for the declaration of a child subprogram body
22775 with no spec as coming from source, to generate proper cross-reference
22776 information.
22777
22778 2005-11-14 Vincent Celier <celier@adacore.com>
22779
22780 * make.adb (Compile_Sources): Change verbose message to minimum
22781 verbosity level High for "is in an Ada library", "is a read-only
22782 library" and "is an internal library",
22783 (Create_Binder_Mapping_File): Path name of ALI file for library project
22784 must include the library directory, not the object directory.
22785 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22786 for new switches -vl, -vm and -vh.
22787 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22788 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22789 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22790 in a project that is externally built.
22791 (Compute_All_Imported_Projects): New procedure
22792 (Gnatmake): Check if importing libraries should be regenerated because
22793 at least an imported library is more recent.
22794 (Initialize): For each project compute the list of the projects it
22795 imports directly or indirectly.
22796 (Add_Library_Search_Dir): New procedure, used in place of
22797 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22798 put in the search paths.
22799 (Add_Source_Search_Dir): New procedure, used in place of
22800 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22801 put in the search paths.
22802 (Mark_Directory): Resolve the absolute path the directory before marking
22803 it.
22804
22805 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22806 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22807 Switch. Do not handle any exception.
22808 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22809 so that the switch is recognized as valid.
22810 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22811
22812 2005-11-14 GNAT Script <nobody@adacore.com>
22813
22814 * Make-lang.in: Makefile automatically updated
22815
22816 2005-11-14 Pascal Obry <obry@adacore.com>
22817
22818 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22819 used.
22820 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22821 In both cases the last argument was dropped.
22822
22823 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22824
22825 * namet.h: (Column_Numbe): New type.
22826 (Get_Column_Number): Define to sinput__get_column_number.
22827 (Instantiation): Define to sinput__instantiation.
22828 (Get_Column_Number): Declare.
22829 (Instantiation): Likewise.
22830
22831 2005-11-14 Robert Dewar <dewar@adacore.com>
22832
22833 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22834 syntax, which could cause compiler hangs.
22835
22836 2005-11-14 Vincent Celier <celier@adacore.com>
22837
22838 * prj-ext.adb: Take into account new environment variable
22839 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22840 are defined.
22841 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22842 normalize its path name, making it absolute and resolving symbolic
22843 links, and replace the original if resolved path is different.
22844
22845 2005-11-14 Vincent Celier <celier@adacore.com>
22846
22847 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22848 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22849
22850 2005-11-14 Emmanuel Briot <briot@adacore.com>
22851
22852 * prj-pp.adb (Print): Do not output the with statement if the
22853 associated name is empty, which happens for virtual extending projects.
22854 (Print): Preserve the "extends all" attribute when printing the project.
22855
22856 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22857 a virtual extending project.
22858
22859 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22860
22861 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22862 rhs of an assignment even if the type is unconstrained, when the
22863 context is non-expanding.
22864 In an inlined body, if the context type is private,
22865 resolve with its full view, which must be a composite type.
22866
22867 2005-11-14 Robert Dewar <dewar@adacore.com>
22868 Ed Schonberg <schonberg@adacore.com>
22869
22870 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22871 Do not give obsolescent warning on with of subprogram (since we
22872 diagnose calls)
22873 (Analyze_With_Clause): Add test for obsolescent package
22874 (Install_Context_Clauses): If the unit is the body of a child unit, do
22875 not install twice the private declarations of the parents, to prevent
22876 circular lists of Use_Clauses in a parent.
22877 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22878 compiling body of child unit.
22879 Use new class N_Subprogram_Instantiation
22880 (Expand_With_Clause): If this is a private with_clause for a child unit,
22881 appearing in the context of a package declaration, then the implicit
22882 with_clauses generated for parent units are private as well.
22883 (License_Check): Do not generate message if with'ed unit is internal
22884
22885 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22886 Ed Schonberg <schonberg@adacore.com>
22887 Thomas Quinot <quinot@adacore.com>
22888
22889 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22890 names are internal, because they will not have a corresponding partner
22891 in the actual package.
22892 (Analyze_Formal_Package): Move the setting of the formal package spec's
22893 Generic_Parent field so that it occurs prior to analyzing the package,
22894 to allow proper operation of Install_Parent_Private_Declarations.
22895 (Analyze_Package_Instantiation): Set the instantiated package entity's
22896 Package_Instantiation field.
22897 (Get_Package_Instantiation_Node): Move declaration to package spec.
22898 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22899 field is present.
22900 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22901 instantiation is Unchecked_Conversion, for which no parents are needed.
22902 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22903 parent scopes of a scope being removed prior to inlining an instance
22904 body.
22905 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22906 the current context is itself an instance within a non-instance child
22907 unit, to prevent scope stack errors.
22908 (Save_References): If the node is an aggregate that is an actual in a
22909 call, rewrite as a qualified expression to preserve some type
22910 information, to resolve possible ambiguities in the instance.
22911 (Instance_Parent_Unit): New global variable to record the ultimate
22912 parent unit associated with a generic child unit instance (associated
22913 with the existing Parent_Unit_Visible flag).
22914 (type Instance_Env): New component Instance_Parent_Unit for stacking
22915 parents recorded in the global Instance_Parent_Unit.
22916 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22917 stack.
22918 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22919 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22920 not already set. Replace test of Is_Child_Unit with test of parent's
22921 scope against package Standard. Add comments and a ??? comment.
22922 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22923 on a child instance parent to test that the parent equals
22924 Instance_Parent rather than simply checking that the unit is not a
22925 child unit.
22926 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22927 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22928 a formal interface are ancestors of the corresponding actual.
22929 (Validate_Formal_Interface_Type): Additional legality checks.
22930 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22931 interface types with ancestors.
22932 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22933 to diagnose attempts to use generic within its own declaration.
22934
22935 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22936 Javier Miranda <miranda@adacore.com>
22937
22938 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22939 discriminant.
22940 (Build_Private_Derived_Type): The entity of the created full view of the
22941 derived type does not come from source. If after installing the private
22942 declarations of the parent scope the parent is still private, use its
22943 full view to construct the full declaration of the derived type.
22944 (Build_Derived_Record_Type): Relax the condition that controls the
22945 execution of the check that verifies that the partial view and
22946 the full view agree in the set of implemented interfaces. In
22947 addition, this test now only takes into account the progenitors.
22948 (Derive_Interface_Subprograms): No need to derive subprograms
22949 of ancestors that are interfaces.
22950 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22951 associated code.
22952 Change name Is_Package to Is_Package_Or_Generic_Package
22953 (Complete_Subprograms_Derivation): Handle the case in which the full
22954 view is a transitive derivation of the ancestor of the partial view.
22955 (Process_Full_View): Rename local subprogram Find_Interface_In_
22956 Descendant to Find_Ancestor_Interface to leave the code more clear.
22957 Remove wrong code that avoids the generation of an error message
22958 when the immediate ancestor of the partial view is an interface.
22959 In addition some minor reorganization of the code has been done to
22960 leave it more clear.
22961 (Analyze_Type_Declaration): If type has previous incomplete tagged
22962 partial view, inherit properly its primitive operations.
22963 (Collect_Interfaces): Make public, for analysis of formal
22964 interfaces.
22965 (Analyze_Interface_Declaration): New procedure for use for regular and
22966 formal interface declarations.
22967 (Build_Derived_Record_Type): Add support for private types to the code
22968 that checks if a tagged type implements abstract interfaces.
22969 (Check_Aliased_Component_Type): The test applies in the spec of an
22970 instance as well.
22971 (Access_Type_Declaration): Clean up declaration of malformed type
22972 declared as an access to its own classwide type, to prevent cascaded
22973 crash.
22974 (Collect_Interfaces): For private extensions and for derived task types
22975 and derived protected types, the parent may be an interface that must
22976 be included in the interface list.
22977 (Access_Definition): If the designated type is an interface that may
22978 contain tasks, create Master_Id for it before analyzing the expression
22979 of the declaration, which may be an allocator.
22980 (Record_Type_Declaration): Set properly the interface kind, for use
22981 in allocators, the creation of master id's for task interfaces, etc.
22982
22983 2005-11-14 Javier Miranda <miranda@adacore.com>
22984 Ed Schonberg <schonberg@adacore.com>
22985
22986 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22987 omitted in case of stream attribute subprograms.
22988 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22989 appear immediately after a subprogram body, when there is no previous
22990 subprogram declaration.
22991 Change name Is_Package to Is_Package_Or_Generic_Package
22992 (Process_Formals): A non null qualifier on a non null named access
22993 type is not an error, and is a warning only if Redundant_Constructs
22994 are flagged.
22995
22996 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22997 Ed Schonberg <schonberg@adacore.com>
22998
22999 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
23000 nested within Analyze_Package_Specification to install the private
23001 declarations and use clauses within each of the parent units of a
23002 package instance of a generic child package.
23003 (Analyze_Package_Specification): When entering a private part of a
23004 package associated with a generic instance or formal package, the
23005 private declarations of the parent must be installed (by calling new
23006 procedure Install_Parent_Private_Declarations).
23007 Change name Is_Package to Is_Package_Or_Generic_Package
23008 (Preserve_Full_Attributes): For a synchronized type, the corresponding
23009 record is absent in a generic context, which does not indicate a
23010 compiler error.
23011
23012 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23013
23014 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
23015 not try to rewrite a renamed stream attribute, because the operations
23016 on the type may not have been generated.
23017 Handle properly a renaming_as_body generated for a stream operation
23018 whose default is abstract because the object type itself is abstract.
23019 (Find_Type): If the type is incomplete and appears as the prefix of a
23020 'Class reference, it is tagged, and its list of primitive operations
23021 must be initialized properly.
23022 (Chain_Use_Clauses): When chaining the use clauses that appear in the
23023 private declaration of a parent unit, prior to compiling the private
23024 part of a child unit, find on the scope stack the proper parent entity
23025 on which to link the use clause.
23026 (Note_Redundant_Use): Emit a warning when a redundant use clause is
23027 detected.
23028 (Analyze_Object_Renaming): An attribute reference is not a legal object
23029 if it is not a function call.
23030
23031 2005-11-14 Robert Dewar <dewar@adacore.com>
23032 Ed Schonberg <schonberg@adacore.com>
23033
23034 * sem_eval.adb: Implement d.f flag
23035 (Subtype_Statically_Match): A generic actual type has unknown
23036 discriminants when the corresponding actual has a similar partial view.
23037 If the routine is called to validate the signature of an inherited
23038 operation in a child instance, the generic actual matches the full view,
23039
23040 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23041 Ed Schonberg <schonberg@adacore.com>
23042 Robert Dewar <dewar@adacore.com>
23043 Thomas Quinot <quinot@adacore.com>
23044
23045 * sem_res.adb (Resolve_Call): Provide a better error message whenever
23046 a procedure call is used as a select statement trigger and is not an
23047 entry renaming or a primitive of a limited interface.
23048 (Valid_Conversion): If the operand has a single interpretation do not
23049 remove address operations.
23050 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23051 statement to inhibit warning.
23052 (Resolve_Unary_Op): Do not produce a warning when
23053 processing an expression of the form -(A mod B)
23054 Use Universal_Real instead of Long_Long_Float when we need a high
23055 precision float type for the generated code (prevents gratuitous
23056 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23057 (Resolve_Concatenation_Arg): Improve error message when argument is an
23058 ambiguous call to a function that returns an array.
23059 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23060 there is an implicit operator in the given scope if we are within an
23061 instance: legality check has been performed on the generic.
23062 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23063 after resolving operand, to avoid false warnings on overloaded calls.
23064
23065 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23066 Javier Miranda <miranda@adacore.com>
23067
23068 PR ada/15604
23069 * sem_type.adb (Covers): In an inlined body, a composite type matches
23070 a private type whose full view is a composite type.
23071 (Interface_Present_In_Ancestor): Protect the frontend against
23072 previously detected errors to ensure that its compilation
23073 with assertions enabled gives the same output that its
23074 compilation without assertions.
23075 (Interface_Present_In_Ancestor): Add support for private types.
23076 Change name In_Actual to In_Generic_Actual (clean up)
23077 (Disambiguate): New predicate In_Actual, to recognize expressions that
23078 appear in the renaming declaration generated for generic actuals, and
23079 which must be resolved in the outer context.
23080
23081 2005-11-14 Robert Dewar <dewar@adacore.com>
23082 Thomas Quinot <quinot@adacore.com>
23083 Hristian Kirtchev <kirtchev@adacore.com>
23084 Ed Schonberg <schonberg@adacore.com>
23085
23086 * sem_util.ads, sem_util.adb: Change name Is_Package to
23087 Is_Package_Or_Generic_Package.
23088 (Check_Obsolescent): New procedure.
23089 (Set_Is_Public): Remove obsolete junk test.
23090 (Set_Public_Status): Do not set Is_Public on an object whose declaration
23091 occurs within a handled_sequence_of_statemets.
23092 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23093 for a parameterless procedure.
23094 (Enter_Name): Recognize renaming declarations created for private
23095 component of a protected type within protected operations, so that
23096 the source name of the component can be used in the debugger.
23097
23098 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23099 Robert Dewar <dewar@adacore.com>
23100
23101 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23102 of a generic subprogram are not visible outside the body.
23103 (Set_Warning_Switch): New procedure (code to set warning mode moved
23104 here from Switch.C so that it can be shared by pragma processing.
23105 (Check_References): Special case warning for non-modified non-imported
23106 volatile objects.
23107 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23108 form with a string literal argument
23109
23110 2005-11-14 Javier Miranda <miranda@adacore.com>
23111
23112 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23113 anonymous access.
23114 (Write): Addition of "not null" to the anonymous access.
23115 (Read): Addition of "not null" to the anonymous access.
23116 (Write): Addition of "not null" to the anonymous access.
23117
23118 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23119 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23120 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23121 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23122 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23123 "not null" to the anonymous access.
23124
23125 2005-11-14 Robert Dewar <dewar@adacore.com>
23126
23127 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23128 offset values
23129
23130 2005-11-14 Vincent Celier <celier@adacore.com>
23131
23132 * switch.adb (Bad_Switch): New procedure
23133 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23134 message when in error.
23135
23136 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23137 Too_Many_Output_Files): Remove declarations, no longer used.
23138 (Scan_Nat): New parameter Switch
23139 (Scan_Pos): Ditto
23140 (Bad_Switch): New procedure
23141
23142 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23143 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23144 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23145 to Osint.Fail. Do not handle any exception.
23146
23147 2005-11-14 Vincent Celier <celier@adacore.com>
23148
23149 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23150 designates a non existent directory.
23151
23152 2005-11-14 Robert Dewar <dewar@adacore.com>
23153
23154 * xgnatugn.adb: Replace invalid membership test by 'Valid
23155
23156 2005-11-14 Vincent Celier <celier@adacore.com>
23157
23158 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23159 there is no object directory.
23160
23161 2005-11-14 Robert Dewar <dewar@adacore.com>
23162
23163 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23164 (so that -gnateInnn does not run into next column)
23165
23166 2005-11-14 Ed Falis <falis@adacore.com>
23167
23168 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23169 "constrained"
23170
23171 2005-11-14 Cyrille Comar <comar@adacore.com>
23172
23173 * s-chepoo.ads: Add comments on Dereference.
23174 Remove unnecessary inherited abstract primitives.
23175 Cosmetic cleanup.
23176
23177 2005-11-14 Robert Dewar <dewar@adacore.com>
23178
23179 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23180 node parameter, not needed, since it is available as Declaration_Node.
23181
23182 2005-11-14 Geert Bosch <bosch@adacore.com>
23183
23184 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23185 grammatically correct.
23186
23187 2005-11-14 Vincent Celier <celier@adacore.com>
23188
23189 * s-fileio.ads: Correct spelling error in comment
23190
23191 2005-11-14 Cyrille Comar <comar@adacore.com>
23192 Robert Dewar <dewar@adacore.com>
23193 Vincent Celier <celier@adacore.com>
23194 Ben Brosgol <brosgol@adacore.com>
23195 Jose Ruiz <ruiz@adacore.com>
23196 Pascal Obry <obry@adacore.com>
23197
23198 * gnat_ugn.texi:
23199 Document that -fstack-check is needed for strict compliance with the
23200 Ada 95 Reference Manual.
23201 Correct reference to VAX systems to meet HP guidelines
23202 Add documentation for new gnatmake switches -vl, -vm and -vh
23203 Replace DEC Ada by HP Ada
23204 Replace DIGITAL by HP
23205 Remove empty section on tools in compatibility section
23206 Clarify the Windows convention semantics.
23207 Document the Win32 calling convention.
23208 The Stdcall, Win32 and DLL convention are synonyms.
23209 Add a note in -gnatR description about zero size record components
23210 Note on new >= and <= warnings for -gnatwc
23211 Document that equal sign after -gnatm is optional.
23212 Note that strip is working fine on DLL built with a Library
23213 Project. The restriction apply only to DLL built with gnatdll.
23214 Update section about the way to debug a DLL.
23215 Update information about the DLL convention.
23216 Document -C switch for gnatprep
23217 Document new attribute Library_ALI_Dir
23218 Update elaboration doc to include implicit Elaborate pragmas now
23219 generated for subprogram instantiations.
23220 Document limitation on executable names that include spaces for --GCC,
23221 --GNATBIND, and --GNATLINK switches.
23222 Document that -w causes -gnatws to be added at start of gcc switches
23223
23224 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23225 and NaN values in case of overflow on machines that are not fully
23226 compliant with the IEEE floating-point standard.
23227 Create a section describing the set of compiler options needed for
23228 strict compliance with the Ada 95 Reference Manual.
23229 Add documentation for pragma Obsolescent applied to a package
23230 Clarify potential issues of mixed language programs related to the
23231 I/O buffering enabling in the elaboration of the GNAT runtime.
23232 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23233 This documentation only patch adds extra documentsion for pragma
23234 Restrictions (No_Elaboration_Code), explaining why it is not possible
23235 to document this restriction in terms of allowed source constructs.
23236 Document string literal form of pragma Warnings
23237 Document new attribute Library_ALI_Dir
23238 Add documentation on stable attributes in project files that was missing
23239
23240 * gnat-style.texi: Indicate that paragraphs within a single comment
23241 should be separated by empty comment lines
23242
23243 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23244 /05 respectively)
23245
23246 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23247
23248 2005-11-14 Robert Dewar <dewar@adacore.com>
23249
23250 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23251 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23252 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23253 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23254 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23255 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23256 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23257 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23258 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23259 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23260 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23261 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23262 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23263 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23264 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23265 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23266 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23267 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23268 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23269 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23270 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23271 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23272 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23273 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23274 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23275 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23276 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23277 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23278 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23279 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23280 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23281 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23282 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23283 system-interix.ads, system-solaris-sparc.ads,
23284 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23285 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23286 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23287 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23288 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23289 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23290 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23291 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23292 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23293 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23294 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23295 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23296 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23297 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23298 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23299 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23300 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23301 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23302 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23303 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23304 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23305 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23306 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23307 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23308 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23309 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23310 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23311 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23312 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23313 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23314 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23315 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23316 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23317 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23318 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23319 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23320 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23321 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23322 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23323 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23324 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23325 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23326 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23327 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23328 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23329 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23330 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23331 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23332 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23333 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23334 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23335 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23336 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23337 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23338 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23339 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23340 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23341 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23342 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23343 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23344 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23345 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23346 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23347 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23348 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23349 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23350 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23351 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23352 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23353 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23354 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23355 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23356 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23357 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23358 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23359 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23360 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23361 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23362 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23363 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23364 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23365 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23366 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23367 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23368 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23369 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23370 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23371 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23372 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23373 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23374 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23375 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23376 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23377 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23378 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23379 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23380 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23381 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23382 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23383 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23384 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23385 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23386 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23387 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23388 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23389 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23390 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23391 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23392 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23393 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23394 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23395 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23396 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23397 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23398 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23399 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23400 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23401 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23402 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23403 a-numaux-darwin.ads, a-numaux-darwin.adb,
23404 a-swuwha.ads, a-stunha.ads: Minor reformatting
23405
23406 2005-11-14 Robert Dewar <dewar@adacore.com>
23407
23408 PR ada/18434
23409 * osint-m.adb: Add pragma Elaborate_All for Osint
23410
23411 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23412
23413 PR ada/23995
23414 * trans.c (call_to_gnu): Restore statement lost in translation.
23415
23416 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23417
23418 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23419 (__gnat_adjust_context_for_raise): Add conditional code so that the
23420 IA-64 is also supported.
23421
23422 2005-11-03 James E Wilson <wilson@specifix.com>
23423
23424 PR ada/23427
23425 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23426 TREE_OVERFLOW check.
23427
23428 2005-09-21 Olivier Hainque <hainque@adacore.com>
23429
23430 PR ada/22418
23431 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23432 as we create them to store a size in bits.
23433
23434 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23435
23436 PR ada/21937
23437 PR ada/22328
23438 PR ada/22381
23439 PR ada/22383
23440 PR ada/22419
23441 PR ada/22420
23442 * utils2.c (build_return_expr): New helper function.
23443 * gigi.h (build_return_expr): Declare it.
23444 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23445 of manually building the RETURN_EXPR tree.
23446 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23447 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23448 build_binary_op for the "target pointer" case. Use build_return_expr
23449 instead of manually building the RETURN_EXPR tree.
23450
23451 2005-09-16 Laurent Guerby <laurent@guerby.net>
23452
23453 PR ada/23788
23454 * s-tpinop.ads: Make this unit Preelaborate.
23455
23456 2005-09-16 Andreas Jaeger <aj@suse.de>
23457
23458 * socket.c: Add string.h for memcpy.
23459
23460 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23461
23462 * dec-io.ads, dec-io.adb: Removed, no longer used.
23463
23464 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23465
23466 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23467
23468 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23469 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23470 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23471 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23472 dependent units are Preelaborate.
23473 (Initialize): Call Interrupt_Managemeent.Initialize and
23474 OS_Primitives.Initialize to ensure proper initialization of this unit.
23475 Remove use of System.Soft_Links
23476 Make this unit Preelaborate.
23477
23478 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23479 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23480 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23481 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23482 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23483 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23484 Add pragma Preelaborate, since these packages are suitable for this
23485 categorization.
23486 Update comments.
23487
23488 * s-traent-vms.ads, s-intman-dummy.adb,
23489 s-taprop-dummy.adb: Make this unit Preelaborate.
23490
23491 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23492 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23493 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23494 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23495 s-intman-solaris.adb, s-intman-irix-athread.adb,
23496 s-intman-irix.adb: Mark this unit Preelaborate.
23497 (Initialize): New procedure.
23498 Update comments.
23499
23500 * s-taspri-linux.ads: Removed.
23501
23502 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23503 as done by other implementations (e.g. posix).
23504
23505 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23506 responsible for deferring abort.
23507 Mark this unit Preelaborate.
23508
23509 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23510 proper initialization of the tasking run-time.
23511
23512 * s-tasdeb.ads: Mark this unit Preelaborate.
23513 (Known_Tasks): Add explicit default value to avoid elaboration code.
23514
23515 * s-inmaop-vms.adb (Elaboration code): Add call to
23516 Interrupt_Management.Initialize since the elaboration code depends on
23517 proper initialization of this package.
23518
23519 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23520 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23521 s-osprim-posix.adb: Make this unit Preelaborate.
23522
23523 * a-calend.adb: Add call to OS_Primitives.Initialize
23524
23525 * a-elchha.adb: Update use of Except.Id.Full_Name.
23526 Minor reformatting.
23527 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23528
23529 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23530 Move with clauses outside Warnings Off now that dependent units are
23531 Preelaborate.
23532 Use raise xxx with "..."; Ada 2005 form.
23533
23534 * a-taside.ads, a-taside.adb:
23535 Remove some dependencies, to make it easier to make this unit truly
23536 Preelaborate.
23537 Rewrite some code to be conformant with Preelaborate rules.
23538
23539 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23540 marked Preelaborate in the future.
23541
23542 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23543 these units Preelaborate.
23544
23545 * s-exctab.adb: Update use of Except.Id.Full_Name.
23546
23547 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23548 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23549 Set_Exc_Stack_Addr): Removed, no longer used.
23550 Remove reference to *Machine_State_Addr*, no longer needed.
23551
23552 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23553 (Exception_Data): Full_Name is now a System.Address so that this unit
23554 can be made Preelaborate.
23555 Clean up/simplify code thanks to Full_Name being a System.Address.
23556 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23557
23558 * s-taskin.ads, s-taskin.adb:
23559 Move with clauses outside Warnings Off now that dependent units are
23560 Preelaborate.
23561 Make this unit Preelaborate.
23562 (Initialize): New proceduure, replace elaboration code and makes the
23563 set up of the tasking run-time cleaner.
23564 (Detect_Blocking): Now a function instead of a deferred boolean, to
23565 obey Preelaborate rules.
23566
23567 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23568 soft links, no longer used.
23569
23570 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23571 packages are suitable for this categorization.
23572
23573 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23574 since we compile run-time sources in Ada 2005 mode.
23575 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23576 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23577 duplication.
23578 Remove reference to *Machine_State_Addr*, no longer needed.
23579
23580 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23581
23582 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23583 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23584 Remove reference to System.Exceptions.
23585
23586 * s-mastop-x86.adb: Removed, no longer used.
23587
23588 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23589
23590 * a-excach.adb: Minor reformatting.
23591
23592 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23593 instead fix new warnings that were hidden by this change.
23594 (AAA, ZZZ): Removed, replaced by...
23595 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23596 are used instead of constants, to help make Ada.Exception truly
23597 preelaborate.
23598 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23599 Raise_Storage_Error): File is now a System.Address, to simplify code.
23600 (Elab code): Removed, no longer used.
23601 (Null_Occurrence): Remove Warnings Off and make this construct
23602 preelaborate.
23603 Remove code related to front-end zero cost exception handling, since
23604 it is no longer used.
23605 Remove -gnatL/-gnatZ switches.
23606
23607 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23608 Update use of Except.Msg.
23609
23610 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23611 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23612 to front-end zero cost exception handling, since it is no longer used.
23613 Remove -gnatL/-gnatZ switches.
23614
23615 * lib-writ.ads: Minor reformatting
23616 Remove doc of UX
23617
23618 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23619
23620 * Make-lang.in: Remove references to s-except.ads
23621
23622 * s-except.ads: Removed, no longer used.
23623
23624 * s-mastop.ads, s-mastop.adb:
23625 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23626 Remove reference to System.Exceptions.
23627
23628 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23629 switch-b.adb: Remove code related to front-end zero cost exception
23630 handling, since it is no longer used.
23631 Remove -gnatL/-gnatZ switches.
23632
23633 2005-09-01 Robert Dewar <dewar@adacore.com>
23634 Gary Dismukes <dismukes@adacore.com>
23635 Javier Miranda <miranda@adacore.com>
23636
23637 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23638 type by valid test and generate warning.
23639 (Tagged_Membership): Generate call to the run-time
23640 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23641 Change formal name Subtype_Mark to Result_Definition in several calls to
23642 Make_Function_Specification.
23643 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23644 check for proper accessibility of the operand of a class-wide allocator.
23645 The check can be left out if checks are suppressed or if the expression
23646 has a specific tagged type whose level is known to be safe.
23647
23648 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23649 generates the run-time check associated with null-excluding entities.
23650 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23651 check on the level of the return expression of a class-wide function
23652 can be elided. The check usually isn't needed if the expression has a
23653 specific type (unless it's a conversion or a formal parameter). Also
23654 add a test for whether accessibility checks are suppressed. Augment
23655 the comments to describe the conditions for performing the check.
23656
23657 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23658 Javier Miranda <miranda@adacore.com>
23659 Gary Dismukes <dismukes@adacore.com>
23660 Ed Schonberg <schonberg@adacore.com>
23661
23662 * a-tags.adb (IW_Membership): Give support to
23663 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23664 subprogram has been extended to look for the tag in the ancestors tag
23665 table.
23666 Update the structure of the GNAT Dispatch Table to reflect the
23667 additional two tables used in dispatching selects.
23668 Introduce appropriate array types and record components in
23669 Type_Specific_Data to reflect the two tables.
23670 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23671 the TSD of a tag, indexed by position.
23672 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23673 operation kind in the TSD of a tag, indexed by position.
23674
23675 * a-tags.ads: Introduce an enumeration type to capture different
23676 primitive operation kinds. Define a constant reflecting the number of
23677 predefined primitive operations.
23678 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23679 of an entry wrapper.
23680 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23681 callable entity of a primitive operation.
23682
23683 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23684 primitive operations used in dispatching selects for limited
23685 interfaces, limited tagged, task and protected types what implement a
23686 limited interface.
23687 (Freeze_Type): Generate the bodies of the primitive operations used in
23688 dispatching selects for limited tagged, task and protected types that
23689 implement a limited interface. Generate statements to populate the two
23690 auxiliary tables used for dispatching in select statements.
23691 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23692 associated with predefined interface primitive operations.
23693 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23694 Set_Result_Definition.
23695 (Build_Variant_Record_Equality): Change Subtype_Mark to
23696 Result_Definition.
23697 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23698 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23699 (Build_Assignment): Simplify the code that adds the run-time-check.
23700 (Expand_N_Object_Declaration): Code cleanup.
23701
23702 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23703 entries when there is a protected type that implements a limited
23704 interface.
23705
23706 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23707 common routines used in expansion of dispatching selects.
23708 (Add_Private_Declarations): Select the appropriate protection type when
23709 there is a protected type that implements a limited interface.
23710 (Build_Parameter_Block): Generate a wrapped parameter block.
23711 (Build_Protected_Subprogram_Body): Select the appropriate type for
23712 locking entries when there is a protected type that implements a
23713 limited interface.
23714 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23715 classified as entry wrappers.
23716 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23717 asynchronous selects.
23718 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23719 dispatching conditional selects.
23720 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23721 protection when there is a protected type that implements limited
23722 interfaces.
23723 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23724 timed selects.
23725 (Extract_Dispatching_Call): Extract the entity of the name of a
23726 dispatching call, the object parameter, actual parameters and
23727 corresponding formals.
23728 (Make_Initialize_Protection): Correct logic of protection initialization
23729 when there is a protected type that implements a limited interface.
23730 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23731 values of actual parameters.
23732 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23733 block and assign them to the original actual parameters.
23734
23735 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23736 (Build_Protected_Sub_Specification): Change the type and name of the
23737 last formal to account for the increased variety of protection modes.
23738
23739 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23740 entities. Used to save the value of the Is_Hidden attribute when the
23741 limited-view is installed.
23742 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23743 the attribute of procedures classified as entry wrappers.
23744 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23745 entity of a primitive wrapper.
23746 (Write_Entity_Flags): Output the name and value of the
23747 Is_Primitive_Wrapper attribute.
23748 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23749 Entity.
23750 (Underlying_Type): If we have an incomplete entity that comes from
23751 the limited view then we return the Underlying_Type of its non-limited
23752 view if it is already available.
23753 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23754 including operators.
23755 (Write_Field26_Name): Add entry for Overridden_Operation
23756 (Overridden_Operation): New attribute of functions and procedures.
23757
23758 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23759 predefined position in the dispatch table for the primitive operations
23760 used in dispatching selects.
23761 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23762 predefined primitive operations and replace it with
23763 Default_Prim_Op_Count.
23764 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23765 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23766 the names of the generated primitive operations used in dispatching
23767 selects.
23768 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23769 case of abstract interface types. They will be inherit by the objects
23770 implementing the interface.
23771 (Make_DT): There is no need to inherit the dispatch table of the
23772 ancestor interface for the elaboration of abstract interface types.
23773 The dispatch table will be inherited by the object implementing the
23774 interface.
23775 (Copy_Secondary_DTs): Add documentation.
23776 (Validate_Position): Improve this static check in case of
23777 aliased subprograms because aliased subprograms must have
23778 the same position.
23779 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23780 the entries associated with predefined primitives of all the secondary
23781 dispatch tables.
23782 (Build_Anonymous_Access_Type): Removed.
23783 (Expand_Interface_Actuals): With the previous cleanup there is no need
23784 to build an anonymous access type. This allows further cleanup in the
23785 code generated by the expander.
23786 (Expand_Interface_Conversion): If the actual is an access type then
23787 build an internal function to handle the displacement. If the actual
23788 is null this function returns null because no displacement is
23789 required; otherwise performs a type conversion that will be
23790 expanded in the code that returns the value of the displaced actual.
23791 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23792 conversions that have no effect in the generated code because no
23793 displacement is required. Code cleanup; use local variables to
23794 avoid repeated calls to the subprogram directly_designated_type().
23795
23796 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23797 Classify the primitive operations used in dispatching selects as
23798 predefined.
23799 (Implements_Limited_Interface): Determine whether some type either
23800 directly implements a limited interface or extends a type that
23801 implements a limited interface.
23802 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23803 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23804 expression is limited.
23805 (Find_Interface_Tag): Add code to handle class-wide types and
23806 entities from the limited-view.
23807
23808 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23809 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23810 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23811 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23812 Set_Prim_Op_Kind.
23813
23814 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23815 of procedure name or prefix that appears as a trigger in a triggering
23816 alternative.
23817
23818 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23819
23820 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23821
23822 * s-tataat.adb, a-tasatt.adb:
23823 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23824
23825 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23826 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23827 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23828 longer used.
23829
23830 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23831 Jose Ruiz <ruiz@adacore.com>
23832
23833 * s-taprop-vxworks.adb:
23834 Move with clauses outside Warnings Off now that dependent units are
23835 Preelaborate.
23836 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23837 initialization of this unit.
23838 (Specific): Add new procedures Initialize and Delete so that this
23839 package can be used for VxWorks 5.x and 6.x
23840 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23841 differences between VxWorks 5.x and 6.x
23842 Minor reformatting.
23843 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23844 caller.
23845 Use only Preelaborate-compatible constructs.
23846
23847 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23848 Primitives.Operations.
23849 (Delete, Initialize): New procedures.
23850
23851 * s-osinte-vxworks.adb: Body used to handle differences between
23852 VxWorks 5.x and 6.x
23853 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23854
23855 * s-osinte-vxworks.ads: Minor reformatting.
23856 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23857 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23858 and 6.
23859 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23860 between Vxworks 5 and 6.
23861 (taskLock, taskUnlock): Removeed, no longer used.
23862
23863 * adaint.c: The wait.h header is not located in the sys directory on
23864 VxWorks when using RTPs.
23865 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23866 using RTPs.
23867 (__gnat_dup): dup is available on Vxworks when using RTPs.
23868 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23869
23870 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23871
23872 * expect.c: The wait.h header is not located in the sys directory on
23873 VxWorks when using RTPs.
23874
23875 2005-09-01 Thomas Quinot <quinot@adacore.com>
23876
23877 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23878
23879 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23880
23881 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23882 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23883 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23884 g-soccon-freebsd.ads: Add new constants:
23885 IP_MULTICAST_IF
23886 SO_RCVTIMEO/SO_SNDTIMEO
23887 IOV_MAX
23888
23889 * gen-soccon.c:
23890 Move all target-specific file inclusions and macro definitions to
23891 gsocket.h, in order to ensure that any C code in socket.c will see a
23892 set of constants that is consistent with the contents of g-soccon.ads.
23893
23894 * gsocket.h: Code imported from gen-soccon.c:
23895 Move all target-specific file inclusions and macro definitions to
23896 gsocket.h, in order to ensure that any C code in socket.c will see a set
23897 of constants that is consistent with the contents of g-soccon.ads.
23898 This change also makes gen-soccon self-contained (removing dependencies
23899 upon GCC internal headers).
23900
23901 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23902 iovecs at a time.
23903 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23904
23905 * socket.c: Minor reformatting.
23906
23907 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23908 Thomas Quinot <quinot@adacore.com>
23909
23910 * fname-sf.adb, mlib-tgt.ads,
23911 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23912 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23913 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23914 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23915 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23916 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23917 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23918 makegpr.adb: Remove redundant use_clauses.
23919
23920 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23921
23922 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23923 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23924 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23925 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23926 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23927 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23928 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23929 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23930 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23931 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23932 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23933 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23934 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23935 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23936 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23937 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23938 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23939 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23940 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23941 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23942 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23943 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23944 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23945 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23946 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23947 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23948 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23949 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23950 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23951 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23952 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23953 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23954 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23955 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23956 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23957 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23958 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23959 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23960 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23961 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23962 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23963 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23964 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23965 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23966 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23967 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23968 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23969 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23970 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23971 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23972 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23973 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23974 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23975 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23976 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23977 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23978 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23979 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23980 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23981 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23982 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23983 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23984 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23985 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23986 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23987 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23988 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23989 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23990 and always use the no parameter form for consistency.
23991
23992 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23993
23994 2005-09-01 Robert Dewar <dewar@adacore.com>
23995
23996 * binde.adb: Minor reformatting
23997 (Find_Elab_Order): Output warning if -p used with static elab order
23998
23999 2005-09-01 Robert Dewar <dewar@adacore.com>
24000
24001 * checks.adb (Check_Needed): New procedure, deals with removing checks
24002 based on analysis of short-circuited forms. Also generates warnings for
24003 improper use of non-short-circuited forms.
24004 Code clean ups.
24005
24006 2005-09-01 Robert Dewar <dewar@adacore.com>
24007
24008 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
24009 with 'Valid tests.
24010
24011 2005-09-01 Robert Dewar <dewar@adacore.com>
24012
24013 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
24014 spec.
24015 Implement new insertion char < (conditional warning)
24016 * errutil.adb, erroutc.adb: Implement new insertion char <
24017 (conditional warning).
24018 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
24019 (Error_Msg_Warn): New variable for < insertion char.
24020 * prj-nmsc.adb: Implement new errout insertion char < (conditional
24021 warning).
24022 (Check_For_Source): Change value of Source_Id only after the current
24023 source has been dealt with.
24024
24025 2005-09-01 Robert Dewar <dewar@adacore.com>
24026 Doug Rupp <rupp@adacore.com>
24027
24028 * exp_attr.adb: Handle vax fpt for 'Valid attribute
24029 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
24030 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
24031 (Valid_D, Valid_F, Valid_G): New functions
24032
24033 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24034 Hristian Kirtchev <kirtchev@adacore.com>
24035 Javier Miranda <miranda@adacore.com>
24036
24037 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
24038 from object notation, the original node is unanalyzed and carries no
24039 semantic information, so that accessiblity checks must be performed on
24040 the type of the actual itself.
24041 (Expand_N_Subprogram_Declaration): Change last actual parameter for
24042 compatibility with Build_Protected_Sub_Specification.
24043 (Check_Overriding_Inherited_Interfaces): Add suport to handle
24044 overloaded primitives.
24045 (Register_Interface_DT_Entry): Use the new name of the formal
24046 the the calls to Expand_Interface_Thunk
24047
24048 * exp_dbug.ads: Augment comments on encoding of protected types to
24049 include the generation of dispatching subprograms when the type
24050 implements at least one interface.
24051
24052 * lib.ads: Extend information in Load_Stack to include whether a given
24053 load comes from a Limited_With_Clause.
24054
24055 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24056 whether a potential circularity is harmless, because it includes units
24057 loaded through a limited_with clause. Extends previous treatment which
24058 did not handle properly arbitrary combinations of limited and
24059 non-limited clauses.
24060
24061 2005-09-01 Nicolas Setton <setton@adacore.com>
24062
24063 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24064 to be encoded as typ___XBLU_lowerbound__upperbound instead of
24065 typ___XB_lowerbound__upperbound.
24066
24067 2005-09-01 Thomas Quinot <quinot@adacore.com>
24068
24069 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24070 dummy access formal for RACW/RAS TypeCode TSS.
24071 (Build_TypeCode_Call): Do not generate dummy null access actual for
24072 calls to the TypeCode TSS.
24073
24074 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24075
24076 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24077 fully qualified name, to distinguish instances with the same local name.
24078
24079 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24080 fully qualified.
24081
24082 2005-09-01 Robert Dewar <dewar@adacore.com>
24083
24084 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24085 packed arrays.
24086
24087 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
24088
24089 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24090 (Free): New deallocation procedure for filter elements
24091 (Close): Deallocate any existing filter for the concerned connection
24092
24093 2005-09-01 Laurent Pautet <pautet@adacore.com>
24094
24095 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24096 position set is provided, we compute one in order to reduce the maximum
24097 length of the keys. This computation first selects a character
24098 position between 1 and the minimum length of the keys in order to
24099 avoid reducing one of the keys to an empty string.
24100 (Initialize, Compute): When the ratio V to K is too low, the algorithm
24101 does not converge. The initialization procedure now comes with a
24102 maximum number of iterations such that when exceeded, an exception is
24103 raised in Compute. The user can initialize this ratio to another value
24104 and try again
24105 Reformating and updated headers.
24106
24107 2005-09-01 Javier Miranda <miranda@adacore.com>
24108
24109 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24110 that given an entity T creates and returns an Itype that duplicates the
24111 contents of T. The returned Itype has the null-exclusion
24112 attribute set to True, and its Etype attribute references T
24113 to keep the association between the two entities.
24114 Update copyright notice
24115
24116 * sem_aggr.adb (Check_Can_Never_Be_Null,
24117 Aggregate_Constraint_Checks, Resolve_Aggregate,
24118 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24119
24120 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24121
24122 2005-09-01 Gary Dismukes <dismukes@adacore.com>
24123 Robert Dewar <dewar@adacore.com>
24124 Hristian Kirtchev <kirtchev@adacore.com>
24125
24126 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24127 Result_Definition.
24128
24129 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24130 function specs.
24131 Call Set_Result_Definition instead of Set_Subtype_Mark.
24132 (P_Subprogram_Specification): Add parsing of anonymous access result
24133 plus null exclusions. Call Set_Result_Definition instead of
24134 Set_Subtype_Mark.
24135
24136 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24137 (P_Access_Type_Definition): Add parsing for an anonymous access result
24138 subtype, plus parsing for null exclusions. Call Set_Result_Definition
24139 instead of Set_Subtype_Mark.
24140
24141 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24142 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24143 (Result_Definition): New function for N_Function_Specifications.
24144 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24145 N_Function_Specification.
24146 (Set_Null_Exclusion_Present): Allow this flag for
24147 N_Function_Specification.
24148 (Set_Result_Definition): New procedure for N_Function_Specifications.
24149 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24150 and N_Function_Specification.
24151
24152 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24153 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24154 Add support for LIMITED NEW for Ada 2005 AI-419
24155 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24156 syntax for anonymous access results.
24157 Replace Subtype_Mark field by Result_Definition in
24158 N_Function_Specification and N_Access_Definition specs.
24159 Add Null_Exclusion_Present to spec of N_Function_Specification.
24160 (Result_Definition): New function for N_Function_Specification and
24161 N_Access_Function_Definition.
24162 (Set_Result_Definition): New procedure for N_Function_Specification and
24163 N_Access_Function_Definition.
24164
24165 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24166 Result_Definition for cases of N_Access_Function_Definition and
24167 N_Function_Specification.
24168 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24169
24170 2005-09-01 Vincent Celier <celier@adacore.com>
24171
24172 * lib-writ.adb: Update Copyright notice
24173 (Write_With_Lines): On platforms where file names are case-insensitive,
24174 record the file names in lower case.
24175 (Write_ALI): For D lines, on platforms where file names are
24176 case-insensitive, record the file names in lower case.
24177
24178 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24179 Emmanuel Briot <briot@adacore.com>
24180
24181 * lib-xref.adb (Output_Overridden_Op): Display information on
24182 overridden operation.
24183
24184 * lib-xref.ads: Add documentation on overridden operations.
24185
24186 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24187 information.
24188
24189 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24190 overriding entity information.
24191
24192 2005-09-01 Vincent Celier <celier@adacore.com>
24193
24194 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24195 including those that are inherited.
24196
24197 2005-09-01 Robert Dewar <dewar@adacore.com>
24198
24199 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24200
24201 * par-prag.adb: Implement new pragma Debug_Policy
24202
24203 * sem_prag.adb Implement new pragma Debug_Policy
24204 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24205 Component_Size attribute specification. Give warning for ignored pragma
24206 Pack.
24207
24208 * snames.h, snames.ads, snames.adb: Introduce entries in
24209 Preset_Names for Name_Disp_Asynchronous_Select,
24210 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24211 Name_Disp_Timed_Select.
24212 New pragma Debug_Policy
24213
24214 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24215 explicitly.
24216 Switch -gnata also sets Debug_Pragmas_Enabled
24217
24218 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24219 handle an explicit -gnata when compiling predefined files.
24220
24221 2005-09-01 Vincent Celier <celier@adacore.com>
24222
24223 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24224 directories of projects that have no Ada sources.
24225
24226 2005-09-01 Robert Dewar <dewar@adacore.com>
24227
24228 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24229 (makes a difference for wide characters)
24230
24231 * widechar.adb, widechar.ads:
24232 Add Wide_Char_Byte_Count feature to count chars vs bytes
24233
24234 2005-09-01 Thomas Quinot <quinot@adacore.com>
24235 Ed Schonberg <schonberg@adacore.com>
24236 Robert Dewar <dewar@adacore.com>
24237
24238 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24239 'Address attribute reference with an overloaded prefix, use the
24240 location of the prefix (not the location of the attribute reference) as
24241 the error location.
24242 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24243 a function renaming thereof, is a valid prefix for 'Size (where it is
24244 intepreted as a function call).
24245 (Statically_Denotes_Entity): New predicate to determine whether the
24246 prefix of an array attribute can be considered static.
24247
24248 PR ada/9087
24249 (Eval_Attr): Fix failure to evaluate Component_Size for
24250 unconstrained arrays (resulted in wrong value in packed case, since
24251 back end cannot handle this case)
24252
24253 2005-09-01 Robert Dewar <dewar@adacore.com>
24254
24255 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24256 error msgs for most common cases.
24257 Use new errout insertion char < (conditional warning)
24258
24259 2005-09-01 Javier Miranda <miranda@adacore.com>
24260 Ed Schonberg <schonberg@adacore.com>
24261
24262 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24263 become local to the whole package.
24264 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24265 the package was already analyzed the new algorithm "replaces" the
24266 real entities by the shadow ones. This is required to ensure that
24267 the order of these entities in the homonym chains does not change;
24268 otherwise we can have undefined references at linking time because
24269 in case of conflicts the external name of the entities will have
24270 a suffix that depends on the order of the entities in the chain.
24271 (Remove_Limited_With_Clause): Complementary code that completes the
24272 new algorithm and replaces the shadow entities by the real ones.
24273 (Install_Limited_Withed_Unit): When unchaining entities before the
24274 installation of the shadow entities, only regular entities of the
24275 public part must be taken into account. This is required to
24276 keep this routine in synch with the work done by Remove_Limited_
24277 With_Clause
24278 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24279 even if unit is analyzed, because the analysis of the unit is
24280 idempotent in any case, and the limited view of the unit may have to
24281 be installed for proper visibility.
24282 (Expand_Limited_With_Clause): Even if the unit in the implicit
24283 with_clause has been analyzed already, a limited view of the package
24284 must be built for the current context, if it does not exist yet.
24285
24286 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24287 Javier Miranda <miranda@adacore.com>
24288 Gary Dismukes <dismukes@adacore.com>
24289
24290 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24291 defining entity for the instance body, make a new defining identifier
24292 rather than copying the entity of the spec, to prevent accidental
24293 sharing of the entity list.
24294 (Check_Private_View): When exchanging views of private types, build the
24295 list of exchanged views as a stack, to ensure that on exit the exchanges
24296 are undone in the proper order.
24297 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24298 Restore the compilation environment in case of instantiation_error.
24299 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24300 for an anonymous access result.
24301 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24302 (Formal_Entity): Handle properly the case of a formal package that
24303 denotes a generic package renaming.
24304
24305 2005-09-01 Thomas Quinot <quinot@adacore.com>
24306
24307 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24308 clause if the array aggregate is surrounded by parentheses.
24309
24310 2005-09-01 Cyrille Comar <comar@adacore.com>
24311 Gary Dismukes <dismukes@adacore.com>
24312 Ed Schonberg <schonberg@adacore.com>
24313 Javier Miranda <miranda@adacore.com>
24314
24315 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24316 underlying type
24317 to check if a type is Constrained in cases related to code generation
24318 (rather than semantic checking) since otherwise we do not generate
24319 similar code for mutable private types depending if their
24320 discriminants are visible or not.
24321 (Check_Abstract_Overriding): Do not complain about failure to override
24322 the primitive operations used in dispatching selects since they will
24323 always be overriden at the freeze point of the type.
24324 (Access_Definition): Separate out handling for resetting the scope
24325 of an anonymous access function result type. Retrieve the scope
24326 of the associated function rather than using Current_Scope, which
24327 does not have a consistent value (depends on whether we're in the
24328 middle of analyzing formal parameters). Add ??? comment about
24329 finding a cleaner way to handle the special cases of scope setting.
24330 (Process_Incomplete_Dependents): A protected operation is never a
24331 dispatching operation (only its wrapper may be).
24332 (Build_Derived_Record_Type): In case of tagged private types that
24333 implement interfaces add derivation of predefined primitive
24334 operations.
24335 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24336 by two parameters that are used in case of derivation from abstract
24337 interface types: No_Predefined_Prims is used to avoid the derivation
24338 of predefined primitives from the interface, and Predefined
24339 Prims_Only is used to complete the derivation predefined primitives
24340 in case of private tagged types implementing interfaces.
24341 Fix typo in comments
24342 (Find_Interface_In_Descendant): Protect the frontend against
24343 wrong code with large circularity chains.
24344 (Is_Private_Overriding): Add support for entities overriding interface
24345 subprograms. The test failed because Entities associated with overriden
24346 interface subprograms are always marked as hidden (and used to build
24347 the secondary dispatch table); in this case the overriden entity is
24348 available through the field abstract_interface_alias (cf. override_
24349 dispatching_operation)
24350 (Access_Definition): Set the scope of the type to Current_Scope for the
24351 case of a function with an anonymous access result type.
24352 (Access_Subprogram_Declaration): Handle creation of the type entity for
24353 an access-to-function type with an anonymous access result.
24354 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24355 in handling for N_Access_Function_Definition.
24356 (Analyze_Subtype_Declaration): Modify the text of error message.
24357 (Derived_Type_Declaration): Modify the text of error message.
24358 (Process_Subtype): Modify the text of error message plus cleanup
24359 of one redundant error message.
24360 (Analyze_Component_Declaration): Code cleanup.
24361 (Analyze_Object_Declaration): Code cleanup.
24362 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24363 attribute in case of access types. Code cleanup.
24364 (Array_Type_Declaration): Code cleanup.
24365 (Process_Discriminants): Create the new null-excluding itype
24366 if required. Code cleanup.
24367 (Process_Subtype): Create the new null-excluding itype if
24368 required. Code cleanup.
24369 (Build_Derived_Record_Type): Code cleanup to avoid calling
24370 twice the subprogram derive_subprograms in case of private
24371 types that implement interfaces. In this particular case the
24372 subprogram Complete_Subprograms_Derivation already does the
24373 job associated with the second call.
24374
24375 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24376 conversion to the full view when generating an operation for a
24377 discriminant whose type may currently be private.
24378
24379 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24380 Javier Miranda <miranda@adacore.com>
24381
24382 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24383 V (Obj.F), the rewriting does not involve the indexed component, but
24384 only the selected component itself.
24385 Do not apply the transformation if the analyzed node is an actual of a
24386 call to another subprogram.
24387 (Complete_Object_Operation): Retain the entity of the
24388 dispatching operation in the selector of the rewritten node. The
24389 entity will be used in the expansion of dispatching selects.
24390 (Analyze_One_Call): Improve location of the error message associated
24391 with interface.
24392 (Analyze_Selected_Component): No need to resolve prefix when it is a
24393 function call, resolution is done when parent node is resolved, as
24394 usual.
24395 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24396 when attempting to resolve a call transformed from its object notation.
24397 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24398 of the argument list for each interpretation of the operation.
24399 (Try_Object_Operation): The designated type of an access parameter may
24400 be an incomplete type obtained through a limited_with clause, in which
24401 case the primitive operations of the type are retrieved from its full
24402 view.
24403 (Analyze_Call): If this is an indirect call, and the return type of the
24404 access_to_subprogram is incomplete, use its full view if available.
24405
24406 2005-09-01 Javier Miranda <miranda@adacore.com>
24407 Gary Dismukes <dismukes@adacore.com>
24408
24409 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24410 access types the null-exclusion and access-to-constant attributes must
24411 also match.
24412 (Analyze_Return_Statement): When the result type is an anonymous access
24413 type, apply a conversion of the return expression to the access type
24414 to ensure that appropriate accessibility checks are performed.
24415 (Analyze_Return_Type): For the case of an anonymous access result type,
24416 generate the Itype and set Is_Local_Anonymous_Access on the type.
24417 Add ??? placeholder for check to disallow returning a limited object
24418 in Ada 2005 unless it's an aggregate or a result of a function call.
24419 Change calls from Subtype_Mark to Result_Definition.
24420 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24421 Result_Definition in call to Make_Function_Specification.
24422 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24423 Set_Result_Definition.
24424 (Make_Inequality_Operator): Change formal Subtype_Mark to
24425 Result_Definition in call to Make_Function_Specification.
24426 (Process_Formals): Create the new null-excluding itype if required.
24427 (New_Overloaded_Entity): For an entity overriding an interface primitive
24428 check if the entity also covers other abstract subprograms in the same
24429 scope. This is required to handle the general case, that is, overriding
24430 other interface primitives and overriding abstract subprograms inherited
24431 from some abstract ancestor type.
24432 (New_Overloaded_Entity): For an overriding entity that comes from
24433 source, note the operation that it overrides.
24434 (Check_Conformance, Type_Conformant): Addition of one new formal
24435 to skip controlling formals in the analysis. This is used to
24436 handle overloading of abstract interfaces.
24437 (Base_Types_Match): Add missing case for types imported from
24438 limited-with clauses
24439 (New_Overloaded_Entity): Add barrier to protect the use of
24440 the "alias" attribute.
24441
24442 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24443
24444 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24445 verify that the procedure and the entry are mode conformant.
24446 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24447 as a different operator, which is often a cut-and-paste error.
24448
24449 2005-09-01 Javier Miranda <miranda@adacore.com>
24450 Ed Schonberg <schonberg@adacore.com>
24451
24452 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24453 used in controlling parameters exclude null because it is necessary to
24454 read the tag to dispatch, and null has no tag.
24455 (Override_Dispatching_Operation): If the previous operation is inherited
24456 from an interface, it becomes hidden and does not participate in later
24457 name resolution.
24458
24459 2005-09-01 Javier Miranda <miranda@adacore.com>
24460 Ed Schonberg <schonberg@adacore.com>
24461 Gary Dismukes <dismukes@adacore.com>
24462
24463 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24464 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24465 the expander will generate the corresponding run-time check to evaluate
24466 the expression.
24467 (Resolve_Call): Check for legal type of procedure name or prefix that
24468 appears as a trigger in a triggering alternative.
24469 (Valid_Conversion): If expression is ambiguous and the context involves
24470 an extension of System, remove System.Address interpretations.
24471 (Resolve_Qualified_Expression): Reject the case of a specific-type
24472 qualification applied to a class-wide argument. Enhance comment
24473 to explain checking of Original_Node.
24474 (Resolve_Type_Conversion): The location of the error message was not
24475 general enough to handle the general case and hence it has been removed.
24476 In addition, this patch improves the text of the message.
24477 (Resolve_Type_Conversion): Add missing support for access to interface
24478 types.
24479 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24480 do not expand if the expression is the actual in a call, because proper
24481 expansion will take place when the call itself is expanded.
24482 (Resolve_Allocator): If the context is an unchecked conversion, the
24483 allocator inherits its storage pool, if any, from the target type of
24484 the conversion.
24485
24486 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24487 Javier Miranda <miranda@adacore.com>
24488
24489 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24490 inherited interface operation that has an implementation, use the
24491 implementation to avoid spurious ambiguities.
24492 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24493 use the Corresponding_Record_Typ attribute to look for the interface
24494 because it is set by the expander (and hence it is not always
24495 available). For this reason we traverse the list of interfaces
24496 (available in the parent of the concurrent type).
24497 (Interface_Present_In_Ancestor): Handle entities from the limited view
24498
24499 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24500
24501 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24502 from the list of required components.
24503 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24504 primitive procedure of a limited interface with a controlling first
24505 parameter.
24506 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24507 of an entry.
24508 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24509 capture if it is generated in the second operand of a short-circuit
24510 operation.
24511 Do not capture values for variables with address clauses.
24512 (Is_Object_Reference): Treat a function call as an object reference only
24513 if its type is not Standard_Void_Type.
24514
24515 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24516
24517 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24518 to a variable that is statically known to be constant.
24519
24520 2005-09-01 Geert Bosch <bosch@adacore.com>
24521 Robert Dewar <dewar@adacore.com>
24522
24523 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24524 (VAXGF_Safe_First): Idem.
24525
24526 2005-09-01 Robert Dewar <dewar@adacore.com>
24527 Arnaud Charlet <charlet@adacore.com>
24528
24529 * g-dirope.ads: Minor reformatting
24530 Document that bounds of result of Base_Name match the input index
24531 positions.
24532 Add documentation on environment variable syntax for Expand_Path
24533
24534 * gnat_ugn.texi: Update documentation to include mention of -m switches
24535 Document new treatment of wide characters in max line length
24536 style check.
24537 Remove -gnatL/-gnatZ switches, no longer used.
24538 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24539 of -gnata switch.
24540
24541 * gnat_rm.texi: Add doc for two argument form of pragma
24542 Float_Representation.
24543 Add documentation for pragma No_Strict_Aliasing
24544 Add note that explicit component clause overrides pragma Pack.
24545 Add documentation of pragma Debug_Policy
24546
24547 2005-09-01 Matthew Heaney <heaney@adacore.com>
24548
24549 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24550 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24551 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24552 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24553 draft (Draft 13, August 2005) of Ada Amendment 1.
24554
24555 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24556
24557 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24558 Note that the platform-specific version of g-soccon.ads for VMS is now
24559 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24560 really is a package spec).
24561 Replace s-taspri-linux.ads by s-taspri-posix.ads
24562 Remove references to s-mastop-x86.adb
24563
24564 * system-vxworks-xscale.ads: Removed, no longer used.
24565 * s-vxwork-xscale.ads: Removed, no longer used.
24566
24567 2005-09-01 Robert Dewar <dewar@adacore.com>
24568
24569 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24570 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24571 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24572 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24573 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24574 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24575 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24576 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24577 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24578 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24579 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24580 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24581 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24582 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24583 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24584 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24585 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24586 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24587 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24588 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24589 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24590
24591 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24592
24593 PR ada/23187
24594 * adaint.c
24595 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24596
24597 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24598 Doug Rupp <rupp@adacore.com>
24599
24600 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24601 when needed.
24602 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24603 this code in the GNAT run-time.
24604
24605 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24606
24607 PR ada/21053
24608 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24609 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24610
24611 (__gnat_inside_elab_final_code): Moved here from
24612 Standard_Library and only defined for the compiler.
24613 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24614 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24615 using RTPs because directly vectored Interrupt routines are not
24616 supported on this configuration.
24617 (getpid): Do not redefine this function on VxWorks when using RTPs
24618 because this primitive is well supported by the RTP libraries.
24619 (copy_msg): Correct the code that checks for buffer overflow.
24620 Discovered during code reading.
24621
24622 2005-08-29 Olivier Hainque <hainque@adacore.com>
24623
24624 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24625 a library level mutable variable with an initializer, tell
24626 build_allocator to ignore the initializer's size. It may not be large
24627 enough for all the values that might be assigned to the variable later
24628 on.
24629
24630 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24631 Eric Botcazou <ebotcazou@adacore.com>
24632
24633 * trans.c: Protect < in error msg with quote
24634 Replace GCC_ZCX by Back_End_Exceptions.
24635 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24636 has been sufficiently aligned in the record.
24637
24638 2005-08-15 James E. Wilson <wilson@specifix.com>
24639
24640 * system-linux-alpha.ads: Change ia64 to alpha.
24641
24642 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24643
24644 * decl.c, utils.c: Fix comment typos.
24645
24646 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24647
24648 * decl.c, init.c, initialize.c: Fix comment typos.
24649
24650 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24651
24652 Make CONSTRUCTOR use VEC to store initializers.
24653 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24654 CONSTRUCTOR_ELTS.
24655 * trans.c (extract_values): Likewise.
24656 * utils.c (convert, remove_conversions): Likewise.
24657 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24658 gnat_build_constructor): Likewise.
24659
24660 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24661
24662 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24663 DECL_SECTION_NAME.
24664 (compare_field_bitpos): Likewise.
24665
24666 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24667
24668 * utils.c (create_var_decl): Only set DECL_COMMON on
24669 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24670 VAR_OR_FUNCTION_DECL_P.
24671
24672 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24673
24674 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24675 removed.
24676
24677 2005-07-07 Pascal Obry <obry@adacore.com>
24678
24679 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24680 returned type on Windows.
24681
24682 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24683 routine.
24684
24685 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24686 exception in this case.
24687 Simplify the code as "Image (Image'Range)" = "Image".
24688
24689 2005-07-07 Vincent Celier <celier@adacore.com>
24690
24691 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24692 the destructor/constructor attributes for <lib>final/<lib>init.
24693
24694 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24695
24696 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24697
24698 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24699 type if the parameter is not passed by copy but reference by default.
24700
24701 2005-07-07 Javier Miranda <miranda@adacore.com>
24702
24703 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24704 Reimplementation of the support for abstract interface types in order
24705 to leave the code more clear and easy to maintain.
24706
24707 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24708 abstract interface types in order to leave the code clearer and easier
24709 to maintain.
24710
24711 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24712 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24713 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24714 appropriate entry of the secondary dispatch table.
24715 (Make_DT): Add code to inherit the secondary dispatch tables of
24716 the ancestors.
24717
24718 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24719 implementing both functionalities by means of a common routine, each
24720 routine has its own code.
24721
24722 2005-07-07 Javier Miranda <miranda@adacore.com>
24723
24724 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24725
24726 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24727 types:
24728 --
24729 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24730 --
24731
24732 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24733 use of tag incomplete types.
24734
24735 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24736 give support to tagged incomplete types.
24737
24738 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24739 expression is a discriminant reference and its type is private, as can
24740 happen within a stream operation for a mutable record, use the full
24741 view of the type to resolve the case alternatives.
24742 (Analyze_Assignment): Check wrong dereference of incomplete types.
24743
24744 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24745 types.
24746
24747 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24748 incomplete types.
24749
24750 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24751 N_Incomplete_Type_Declaration nodes.
24752
24753 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24754 Tag_Present to give support to tagged incomplete types:
24755 --
24756 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24757 --
24758
24759 2005-07-07 Olivier Hainque <hainque@adacore.com>
24760
24761 PR ada/22301
24762 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24763 definitions for the Unwind wrappers in the compiler case.
24764
24765 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24766 Javier Miranda <miranda@adacore.com>
24767
24768 * par-load.adb (Load): If a child unit is loaded through a limited_with
24769 clause, each parent must be loaded as a limited unit as well.
24770
24771 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24772 Check_Withed_Unit. Return true if there is a previous with_clause for
24773 this unit, whether limited or not.
24774 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24775 the current unit.
24776 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24777 _withed_unit that checks if some package installed through normal with
24778 clauses has a renaming declaration of package whose limited-view is
24779 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24780 of the current Draft document for Ada 2005.
24781 (Analyze_Context): Complete the list of compilation units that
24782 are allowed to contain limited-with clauses. It also contains
24783 checks that were previously done by Install_Limited_Context_Clauses.
24784 This makes the code more clear and easy to maintain.
24785 (Expand_Limited_With_Clause) It is now a local subprogram of
24786 Install_Limited_Context_Clauses, and contains the code that adds
24787 the implicit limited-with clauses for parents of child units.
24788 This functionality was prevously done by Analyze_Context.
24789
24790 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24791 incomplete type.
24792
24793 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24794 been erroneously named in a limited-with clause of its own context.
24795 In this case the error has been previously notified by Analyze_Context.
24796
24797 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24798
24799 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24800 generic package that contains local declarations with the same name.
24801 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24802
24803 2005-07-07 Bernard Banner <banner@adacore.com>
24804
24805 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24806 ia64 platform only on platforms that you the GCC unwind library
24807 rather than the system unwind library.
24808
24809 2005-07-07 Thomas Quinot <quinot@adacore.com>
24810
24811 * expect.c: Minor reformatting
24812
24813 2005-07-07 Sergey Rybin <rybin@adacore.com>
24814
24815 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24816 --no-separate-is
24817
24818 * gnat_ugn.texi: Add description for new gnatpp option
24819 (--no-separate-is)
24820
24821 2005-07-04 Thomas Quinot <quinot@adacore.com>
24822
24823 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24824 (Get_Command_Output): New subprogram to launch a process and get its
24825 standard output as a string.
24826
24827 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24828 Olivier Hainque <hainque@adacore.com>
24829
24830 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24831 fetch a code-range descriptor associated with the machine state. On
24832 failure set the machine state's PC to 0; on success, pass the
24833 descriptor to exc_virtual_unwind.
24834
24835 * init.c (Tru64 section): New function __gnat_set_code_loc.
24836
24837 2005-07-04 Vincent Celier <celier@adacore.com>
24838
24839 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24840 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24841 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24842 Remove all auto-initialization code, as this is now done through the
24843 constructor mechanism.
24844
24845 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24846 __gnat_sals_init_using_constructors): New functions.
24847
24848 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24849 Linker_Constructor and Linker_Destructor when switch -a is used.
24850
24851 * bindusg.adb: Add line for new switch -a
24852
24853 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24854 (Gnatbind): When switch -a is used, check if it is allowed
24855
24856 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24857
24858 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24859
24860 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24861 This prevents us from hitting a limitation during the debug info
24862 generation when using stabs.
24863 (Prims_Ptr): Likewise.
24864
24865 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24866 Ed Schonberg <schonberg@adacore.com>
24867 Javier Miranda <miranda@adacore.com>
24868
24869 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24870 N_Object_Declaration, only perform the checks if the Object_Definition
24871 is not an Access_Definition.
24872
24873 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24874 where the parent of an the access definition is an N_Object_Declaration
24875 when determining the Associated_Node_For_Itype and scope of an
24876 anonymous access-to-subprogram type.
24877
24878 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24879 Corresponding_Spec on the body created for a null procedure. Add ???
24880 comment. Remove New_Copy_Tree call on body argument to
24881 Set_Body_To_Inline.
24882
24883 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24884 discriminants, use the type of the actual as well, because the
24885 discriminants may be read by the called subprogram.
24886
24887 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24888 access type we do not need to handle non-limited views.
24889 (Build_Derived_Record_Type): Additional check to check that in case of
24890 private types, interfaces are only allowed in private extensions.
24891
24892 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24893
24894 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24895 <Pragma_Linker_Destructor>: Likewise.
24896
24897 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24898 Pragma_Linker_Destructor.
24899
24900 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24901 ATTR_LINK_DESTRUCTOR.
24902 (static_ctors, static_dtors): New variables.
24903
24904 * misc.c (gnat_expand_body): Output current function as constructor
24905 and destructor if requested.
24906
24907 * par-prag.adb: Add processing for pragma Linker_Constructor and
24908 Linker_Destructor.
24909
24910 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24911 extracted from Check_Interrupt_Or_Attach_Handler.
24912 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24913 Implement pragma Linker_Constructor and Linker_Destructor with the
24914 help of Find_Unique_Parameterless_Procedure.
24915 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24916
24917 * snames.h, snames.ads, snames.adb:
24918 Add Name_Linker_Constructor and Name_Linker_Destructor.
24919 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24920 * snames.adb: Remove Name_Alias.
24921
24922 * trans.c: Include cgraph.h.
24923 (build_global_cdtor): New function.
24924 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24925 needed.
24926 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24927 of objects too.
24928 (addressable_p) <COMPONENT_REF>: Unconditionally test
24929 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24930
24931 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24932 variable if it is external.
24933
24934 (static_ctors, static_dtors): New global variables.
24935 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24936 <ATTR_LINK_DESTRUCTOR>: Likewise.
24937 (end_subprog_body): Chain function as constructor and destructor
24938 if requested.
24939
24940 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24941 Remove_Side_Effects with Variable_Ref set to true.
24942 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24943 for non-scalar types even if Variable_Ref is true and for class-wide
24944 expressions.
24945
24946 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24947
24948 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24949 to prevent spurious warnings.
24950
24951 2005-07-04 Thomas Quinot <quinot@adacore.com>
24952
24953 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24954 Itypes. Itypes are really unexpected there.
24955 (Build_TypeCode_Function): Generalise special processing for Itypes to
24956 handle the case of numeric implicit base types as well as enumerated
24957 ones.
24958
24959 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24960
24961 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24962 controlled, indicate the expected type of the dereference that is
24963 created for the call to Deep_Finalize, to prevent spurious errors when
24964 the designated type is private and completed with a derivation from
24965 another private type.
24966
24967 2005-07-04 Vincent Celier <celier@adacore.com>
24968
24969 * make.adb (Change_To_Object_Directory): When unable to change the
24970 current dir to the object directory, output the full path of the
24971 directory.
24972
24973 2005-07-04 Matthew Gingell <gingell@adacore.com>
24974
24975 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24976
24977 * indepsw-linux.adb: Replace by...
24978
24979 * indepsw-gnu.adb: ...this new file
24980
24981 2005-07-04 Vincent Celier <celier@adacore.com>
24982
24983 * mlib-prj.adb (Auto_Initialize): New constant String
24984 (SALs_Use_Constructors): New Boolean function
24985 (Build_Library): Call gnatbind with Auto_Initialize switch when
24986 SALs_Use_Constructors returns True.
24987
24988 * mlib-tgt.ads: Minor reformatting
24989
24990 * mlib-utl.ads: Minor reformatting
24991
24992 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24993
24994 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24995
24996 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24997 single protected declarations can have an interface list.
24998 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24999 with seriously malformed entry declarations, and lead to compilation
25000 abandoned messages.
25001
25002 2005-07-04 Javier Miranda <miranda@adacore.com>
25003
25004 * par-load.adb: Load the context items in two rounds.
25005
25006 2005-07-04 Robert Dewar <dewar@adacore.com>
25007
25008 * scng.adb: Do not consider Mod used as an attribute to be a keyword
25009
25010 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25011 Javier Miranda <miranda@adacore.com>
25012
25013 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
25014 type extension needs a limited view.
25015 Remove previous restriction on private types available through the
25016 limited-view (only tagged private types were previously allowed).
25017 (Install_Withed_Unit): In the code that implements the
25018 legality rule given in AI-377, exclude a child unit with the name
25019 Standard, because it is a homonym of the Standard environment package.
25020
25021 2005-07-04 Thomas Quinot <quinot@adacore.com>
25022
25023 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
25024 overloaded function call, carry interpretations from the original tree
25025 to the copy.
25026
25027 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25028
25029 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
25030 types check whether some designated type is a limited view, and use
25031 the non-limited view if available.
25032
25033 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25034
25035 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
25036 constraint of full view of a private view T1 if present, when T2 is a
25037 discriminated full view.
25038
25039 2005-07-04 Thomas Quinot <quinot@adacore.com>
25040
25041 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25042 actual that is a view conversion of a bit packed array reference.
25043
25044 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25045
25046 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25047 present before checking whether an interface type covers a synchronized
25048 type.
25049
25050 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25051
25052 * sem_util.adb (Is_Object_Reference): An indexed or selected component
25053 whose prefix is an implicit dereference is an object reference. Removes
25054 spurious errors when compiling with -gnatc.
25055
25056 2005-07-04 Robert Dewar <dewar@adacore.com>
25057
25058 PR ada/22039
25059 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25060
25061 2005-07-04 Matthew Gingell <gingell@adacore.com>
25062
25063 * tracebak.c: Enable tracebacks on ia64 platforms
25064
25065 2005-07-04 Vincent Celier <celier@adacore.com>
25066
25067 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25068 the GNAT BIND command, as gnatbind accepts multiples ALI files with
25069 the -L or -n switches.
25070
25071 2005-07-04 Vincent Celier <celier@adacore.com>
25072
25073 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25074 correctly computed and the main project data is not modified while
25075 doing so.
25076 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25077 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25078 c++linker as this does not work on some platforms.
25079
25080 2005-07-04 Matthew Heaney <heaney@adacore.com>
25081
25082 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25083 was changed.
25084 * a-coinve.adb: Perform constraint checks explicitly.
25085
25086 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25087 Thomas Quinot <quinot@adacore.com>
25088
25089 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25090 new target gen-soccon.
25091
25092 2005-07-04 Robert Dewar <dewar@adacore.com>
25093
25094 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25095
25096 2005-07-04 Thomas Quinot <quinot@adacore.com>
25097
25098 * g-socket.ads (Check_Selector): Minor rewording of comment.
25099
25100 2005-07-04 Vincent Celier <celier@adacore.com>
25101
25102 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25103
25104 2005-07-04 Thomas Quinot <quinot@adacore.com>
25105
25106 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25107
25108 2005-07-04 Sergey Rybin <rybin@adacore.com>
25109
25110 * gnat_ugn.texi: Add description of --eol gnatpp option
25111
25112 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25113 Thomas Quinot <quinot@adacore.com>
25114
25115 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25116 if the user wants all calls of a subprogram to be flagged,
25117 independently of whether they are made from within the same unit or
25118 another unit.
25119 Mention restriction for pragma Linker_Alias on some platforms.
25120 Document pragma Linker_Constructor and Linker_Destructor.
25121 Rewrite documentation of Weak_External, Linker_Section and
25122 Linker_Alias pragmas.
25123
25124 2005-07-04 Arnaud Charlet <charlet@adacore.com>
25125
25126 * s-stausa.ads, s-stausa.adb: New files.
25127
25128 2005-06-30 Kelley Cook
25129
25130 * all files: Update FSF address in copyright headers.
25131 * gen-soccon.co (main): Output new FSF address in generated files.
25132
25133 2005-06-28 Paul Brook <paul@codesourcery.com>
25134
25135 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25136
25137 2005-06-14 Olivier Hainque <hainque@adacore.com>
25138 Eric Botcazou <ebotcazou@adacore.com>
25139
25140 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25141 exc_unwind, now that we are generating proper .debug_frame output for
25142 that target.
25143
25144 * tracebak.c: Remove the mips-irix section, as we are now using the
25145 s-mastop based unwinder again.
25146 Under SPARC/Solaris, take into account the stack bias to compute the
25147 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25148 ABI.
25149
25150 2005-06-14 Doug Rupp <rupp@adacore.com>
25151
25152 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25153
25154 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25155
25156 2005-06-14 Pascal Obry <obry@adacore.com>
25157
25158 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25159 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25160 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25161 package name).
25162
25163 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25164 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25165 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25166 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25167 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25168 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25169 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25170 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25171 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25172 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25173 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25174 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25175 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25176 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25177 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25178 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25179 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25180 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25181 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25182 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25183 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25184 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25185 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25186 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25187 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25188 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25189 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25190 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25191 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25192 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25193 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25194 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25195 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25196 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25197 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25198 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25199 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25200 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25201 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25202 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25203 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25204 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25205 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25206 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25207 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25208 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25209 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25210 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25211 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25212 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25213 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25214 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25215 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25216 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25217 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25218 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25219 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25220 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25221 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25222 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25223 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25224 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25225 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25226 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25227 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25228 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25229 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25230 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25231 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25232 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25233 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25234 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25235 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25236 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25237 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25238 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25239 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25240 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25241 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25242 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25243 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25244 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25245 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25246 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25247 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25248 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25249 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25250 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25251 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25252 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25253 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25254 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25255 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25256 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25257 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25258 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25259 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25260 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25261 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25262 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25263 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25264 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25265 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25266 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25267 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25268 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25269 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25270 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25271 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25272 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25273 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25274 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25275 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25276 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25277 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25278 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25279 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25280 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25281 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25282 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25283 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25284 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25285 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25286 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25287 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25288 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25289 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25290 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25291 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25292 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25293 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25294 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25295 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25296
25297 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25298 Arnaud Charlet <charlet@adacore.com>
25299
25300 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25301 longer protected objects. They have been replaced by lower-level
25302 suspension objects made up by a mutex and a condition variable (or
25303 their equivalent given a particular OS) plus some internal data to
25304 reflect the state of the suspension object.
25305 (Initialize, Finalize): Add this initialization procedure for
25306 Suspension_Object, which is a controlled type.
25307 (Finalize): Add the finalization procedure for Suspension_Object,
25308 which is a controlled type.
25309
25310 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25311 Ada.Synchronous_Task_Control because there is no longer a need for a
25312 VxWorks specific version of this package. Target dependencies
25313 has been moved to System.Task_Primitives.Operations.
25314
25315 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25316 longer needed.
25317 (InitializeCriticalSection, EnterCriticalSection,
25318 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25319 pCriticalSection by an anonymous access type so that we avoid problems
25320 of accessibility to local objects.
25321
25322 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25323 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25324 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25325 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25326 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25327 set the environment task mask here.
25328 (Current_State): Add this function that returns the state of the
25329 suspension object.
25330 (Set_False): Add this procedure that sets the state of the suspension
25331 object to False.
25332 (Set_True): Add this procedure that sets the state of the suspension
25333 object to True, releasing the task that was suspended, if any.
25334 (Suspend_Until_True): Add this procedure that blocks the calling task
25335 until the state of the object is True. Program_Error is raised if
25336 another task is already waiting on that suspension object.
25337 (Initialize): Add this procedure for initializing the suspension
25338 object. It initializes the mutex and the condition variable which are
25339 used for synchronization and queuing, and it sets the internal state
25340 to False.
25341 (Finalize): Add this procedure for finalizing the suspension object,
25342 destroying the mutex and the condition variable.
25343
25344 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25345 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25346 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25347 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25348 which provides a low-level abstraction (using operating system
25349 primitives) for Ada.Synchronous_Task_Control.
25350 This object is made up by a mutex (for ensuring mutual exclusion), a
25351 condition variable (for queuing threads until the condition is
25352 signaled), a Boolean (State) indicating whether the object is open,
25353 and a Boolean (Waiting) reflecting whether there is a task already
25354 suspended on this object.
25355
25356 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25357 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25358 s-intman-vms.ads, s-intman-mingw.adb,
25359 (Initialize_Interrupts): Removed, no longer used.
25360
25361 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25362 (Setup_Interrupt_Mask): New procedure.
25363
25364 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25365
25366 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25367
25368 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25369 this is no longer done in the body of s-taprop
25370 (Server_Task): Explicitely test for Pending_Action in case
25371 System.Parameters.No_Abort is True.
25372
25373 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25374 is no longer done in the body of s-taprop
25375
25376 2005-06-14 Robert Dewar <dewar@adacore.com>
25377
25378 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25379 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25380 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25381 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25382 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25383 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25384 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25385 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25386 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25387 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25388 system-linux-hppa.ads, system-vms_64.ads,
25389 system-vxworks-alpha.ads: Minor comment update for
25390 AI-362 (unit is Pure).
25391
25392 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25393 Add pragma Pure_05 for AI-362
25394 Make remaining conversion functions obsolescent in Ada 95
25395
25396 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25397 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25398 Add entries for a-wichun and a-zchuni
25399 Add a-widcha a-zchara for AI-395
25400 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25401
25402 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25403 Add entries for a-wichun.o and a-zchuni.o
25404 Entries for a-widcha.o and a-zchara.o
25405 Add entry for a-chacon.o
25406
25407 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25408
25409 * a-chacon.ads, a-chacon.adb: New files.
25410
25411 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25412 categorization violations.
25413
25414 * a-strmap.ads: Add pragma Pure_05 for AI-362
25415 * a-strmap.ads: Add note on implicit categorization for AI-362
25416
25417 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25418
25419 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25420 Set Ada_Version_Explicit, for implementation of AI-362
25421 Add processing for pragma Pure_05 and Preelaborate_05
25422 Add entry for Assertion_Policy pragma
25423
25424 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25425 when needed for proper processing of categorization stuff
25426
25427 * sem_cat.adb:
25428 For several cases, make errors in preealborate units warnings,
25429 instead of errors, if GNAT_Mode is set. For AI-362.
25430
25431 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25432 preelaborate unit is now warning if in GNAT mode
25433
25434 * s-stoele.ads: Document AI-362 for pragma preelaborate
25435
25436 2005-06-14 Doug Rupp <rupp@adacore.com>
25437
25438 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25439 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25440 Default_Exception_Msg_Max_Length: new parameter.
25441
25442 * a-except.ads: (Exception_Msg_Max_Length): Set to
25443 System.Parameters.Default_Exception_Msg_Max_Length
25444 Add pragma Preelaborate_05 for AI-362
25445 Add warnings off to allow categorization violations for AI-362
25446
25447 2005-06-14 Vincent Celier <celier@adacore.com>
25448
25449 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25450 Process is now in package Processing.
25451
25452 * symbols.ads, symbols.adb:
25453 (Processing): New package, containing procedure Process
25454
25455 * symbols-vms-alpha.adb:
25456 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25457
25458 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25459 symbols-processing-vms-ia64.adb: New files.
25460
25461 2005-06-14 Pascal Obry <obry@adacore.com>
25462
25463 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25464 implementation. This new version generates the proper DllMain routine
25465 to initialize the SAL. The DllMain is generated in Ada and compiled
25466 before being added as option to the library build command.
25467
25468 2005-06-14 Doug Rupp <rupp@adacore.com>
25469 Pascal Obry <obry@adacore.com>
25470
25471 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25472 call to decc$translate_vms.
25473 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25474 need to remove those quotes before catenating the filename.
25475 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25476 * avoid allocating the memory twice for better efficiency;
25477 * allocate 32K buffer for environment expansion as suggested by MSDN;
25478 * prepend ".;" to the path so that current directory is searched too.
25479
25480 2005-06-14 Robert Dewar <dewar@adacore.com>
25481
25482 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25483 instead of raising CE (AI-241)
25484 Add warnings off to allow categorization violations for AI-362
25485
25486 2005-06-14 Robert Dewar <dewar@adacore.com>
25487
25488 * ali-util.adb, gnatbind.adb: Remove references to
25489 Force_RM_Elaboration_Order.
25490
25491 * switch-b.adb: Remove recognition of -f switch
25492
25493 2005-06-14 Pascal Obry <obry@adacore.com>
25494
25495 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25496 implementation which is slightly more efficient.
25497
25498 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25499 Javier Miranda <miranda@adacore.com>
25500 Ed Schonberg <schonberg@adacore.com>
25501 Hristian Kirtchev <kirtchev@adacore.com>
25502
25503 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25504 allocator's designated type is a class-wide type, and compiling for
25505 Ada 2005, emit a run-time check that the accessibility level of the
25506 type given in the allocator's expression is not deeper than the level
25507 of the allocator's access type.
25508
25509 (Tagged_Membership): Modified to gives support to abstract interface
25510 types.
25511
25512 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25513 Access_Level.
25514 (Descendant_Tag): New predefined function
25515 (Is_Descendant_At_Same_Level): New predefined function
25516 (Get_Access_Level): New private function
25517 (Set_Access_Level): New private procedure
25518 (IW_Membership): New function. Given the tag of an object and the tag
25519 associated with an interface, evaluate if the object implements the
25520 interface.
25521 (Register_Interface_Tag): New procedure used to initialize the table of
25522 interfaces used by the IW_Membership function.
25523 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25524 of the dispatch table.
25525 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25526 table of interfaces of the parent.
25527 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25528 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25529 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25530 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25531 Ada 2005 semantics for the new predefined function.
25532
25533 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25534 call to Descendant_Tag rather than Internal_Tag.
25535 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25536 the accessibility level of the attribute's Item parameter is not deeper
25537 than the level of the attribute's prefix type. Tag_Error is raised if
25538 the check fails. The check is only emitted for Ada_05.
25539 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25540 requested stream attribute, use it.
25541 (Expand_N_Attribute_Reference): If the designated type is an interface
25542 then rewrite the referenced object as a conversion to force the
25543 displacement of the pointer to the secondary dispatch table.
25544 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25545 is a dereference of an object with a constrained partial view.
25546
25547 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25548 type is a class-wide type, emit a run-time check that the accessibility
25549 level of the returned object is not deeper than the level of the
25550 function's master (only when compiling for Ada 2005).
25551
25552 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25553 Action_Nb_Arg): Add entries for new Get_Access_Level and
25554 Set_Access_Level routines in these tables.
25555 (Make_DT): Generate a call to set the accessibility level of the
25556 tagged type in its TSD.
25557 (Make_DT): Code cleanup. The functionality of generating all the
25558 secondary dispatch tables has been moved to freeze_record_type.
25559 (Make_Abstract_Interface_DT): Minor code cleanup.
25560 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25561 this subprogram implements a new algorithm that provides the
25562 same functionality and it is more clear in case of primitives
25563 associated with abstract interfaces.
25564 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25565 clean up, the functionality of this subprogram is now provided
25566 by Set_All_DT_Position.
25567 (Write_DT): New subprogram: a debugging procedure designed to be called
25568 within gdb to display the dispatch tables associated with a tagged
25569 type.
25570 (Collect_All_Interfaces): New subprogram that collects the whole list
25571 of interfaces that are directly or indirectly implemented by a tagged
25572 type.
25573 (Default_Prim_Op_Position): New subprogram that returns the fixed
25574 position in the dispatch table of the default primitive operations.
25575 (Expand_Interface_Actuals): New subprogram to generate code that
25576 displaces all the actuals corresponding to class-wide interfaces to
25577 reference the interface tag of the actual object.
25578 (Expand_Interface_Conversion): New subprogram. Reference the base of
25579 the object to give access to the interface tag associated with the
25580 secondary dispatch table.
25581 (Expand_Interface_Thunk): New subprogram that generates the code of the
25582 thunk. This is required for compatibility with the C+ ABI.
25583 (Make_Abstract_Interface_DT): New subprogram that generate the
25584 declarations for the secondary dispatch tables associated with an
25585 abstract interface.
25586 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25587 attribute for each primitive operation covering interface subprograms
25588 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25589 These subprograms were upgraded to give support to abstract interfaces
25590
25591 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25592 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25593 RE_Set_Access_Level.
25594 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25595 Add support to call the followig new run-time subprograms:
25596 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25597
25598 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25599 match its full declaration when both have an access definition with
25600 statically matching designated subtypes.
25601 (Analyze_Component_Declaration): Delete commented out code that was
25602 incorrectly setting the scope of an anonymous access component's type.
25603 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25604 an access discriminant when the containing type is nonlimited.
25605 (Make_Incomplete_Type_Declaration): Create an incomplete type
25606 declaration for a record type that includes self-referential access
25607 components.
25608 (Check_Anonymous_Access_Types): Before full analysis of a record type
25609 declaration, create anonymous access types for each self-referential
25610 access component.
25611 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25612 an access component in this context is a Local_Anonymous_Access, for
25613 proper accessibility checks.
25614 (Access_Definition): Set properly the scope of the anonymous access type
25615 created for a stand-alone access object.
25616 (Find_Type_Of_Object): An object declaration may be given with an access
25617 definition.
25618 (Complete_Subprograms_Derivation): New subprogram used to complete
25619 type derivation of private tagged types implementing interfaces.
25620 In this case some interface primitives may have been overriden
25621 with the partial-view and, instead of re-calculating them, they
25622 are included in the list of primitive operations of the full-view.
25623 (Build_Derived_Record_Type): Modified to give support to private
25624 types implemening interfaces.
25625 (Access_Definition): Reject ALL on anonymous access types.
25626 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25627 type derivation to occur at a deeper accessibility level than the
25628 parent type.
25629 For the case of derivation within a generic body however, disallow the
25630 derivation if the derived type has an ancestor that is a formal type
25631 declared in the formal part of an enclosing generic.
25632 (Analyze_Object_Declaration): For protected objects, remove the check
25633 that they cannot contain interrupt handlers if not declared at library
25634 level.
25635 (Add_Interface_Tag_Components): New subprogram to add the tag components
25636 corresponding to all the abstract interface types implemented by a
25637 record type or a derived record type.
25638 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25639 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25640 Process_Full_View, Record_Type_Declaration): Modified to give
25641 support to abstract interface types
25642 (Collect_Interfaces): New subprogram that collects the list of
25643 interfaces that are not already implemented by the ancestors
25644 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25645 when partial view has no discriminants and full view has defaults.
25646 (Constrain_Access): Reject a constraint on a general access type
25647 if the discriminants of the designated type have defaults.
25648 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25649 full-type declaration or subprogram spec. This is required to handle
25650 nested anonymous declarations.
25651 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25652 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25653 Process_Full_View, Record_Type_Declaration): Modified to give
25654 support to abstract interface types
25655 (Derive_Subprograms): Addition of a new formal to indicate if
25656 we are in the case of an abstact-interface derivation
25657 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25658 to the specification because it is requied to analyze all the
25659 identifiers found in a list of interfaces
25660
25661 * debug.adb: Complete documentation of flag "-gnatdZ"
25662
25663 * exp_ch3.adb: Implement config version of persistent_bss pragma
25664 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25665 testing for TSS presence to properly enforce visibility rules.
25666 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25667 Make_Abstract_Interfaces_DT to generate the secondary tables
25668 associated with abstract interfaces.
25669 (Build_Init_Procedure): Modified to initialize all the tags
25670 corresponding.
25671 (Component_Needs_Simple_Initialization): Similar to other tags,
25672 interface tags do not need initialization.
25673 (Freeze_Record_Type): Modified to give support to abstract interface
25674 types.
25675 (Expand_N_Object_Declaration): Do not generate an initialization for
25676 a scalar temporary marked as internal.
25677
25678 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25679 in-out parameter that is a component in an initialization procedure,
25680 whose constraint might depend on discriminants, and that may be
25681 misaligned because of packing or representation clauses.
25682 (Is_Legal_Copy): New predicate to determine whether a possibly
25683 misaligned in-out actual can actually be passed by copy/return. This
25684 is an error in case the type is by_reference, and a warning if this is
25685 the consequence of a DEC import pragma on the subprogram.
25686 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25687 interface types
25688 (Expand_Inlined_Call): Mark temporary generated for the return value as
25689 internal, so that no useless scalar normalization is generated for it.
25690 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25691 null procedure can always be inlined.
25692 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25693 procedure, generate an explicit empty body for it.
25694
25695 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25696 Given a type implementing an interface, returns the corresponding
25697 access_disp_table value.
25698 (Find_Interface_Tag): New subprogram. Given a type implementing an
25699 interface, returns the record component containing the tag of the
25700 interface.
25701 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25702 previous ones that return the corresponding tag and access_disp_table
25703 entities.
25704 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25705 is a predefined primitive operation.
25706 (Expand_Subtype_From_Expr): If the expression is a selected component
25707 within an initialization procedure, compute its actual subtype, because
25708 the component may depend on the discriminants of the enclosing record.
25709
25710 * i-cpp.ads, i-cpp.adb:
25711 This package has been left available for compatibility with previous
25712 versions of the frontend. As part of the new layout this is now a
25713 dummy package that uses declarations available at a-tags.ads
25714
25715 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25716 "constant access" and "aliased [constant] access" when not compiling
25717 with -gnat05.
25718 Suppress Ada 2005 keyword warning if -gnatwY used
25719 (P_Identifier_Declarations): Add support for object declarations with
25720 access definitions.
25721 (Private_Extension_Declaration): Complete the documentation
25722 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25723 attribute in case of private extension declaration
25724 (P_Type_Declaration): Mark as "abstract" the type declarations
25725 corresponding with protected, synchronized and task interfaces
25726 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25727 for a subprogram or instance declaration.
25728
25729 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25730 instantiation that is a dispatching operation has controlling access
25731 parameters that are null excluding.
25732 Save and restore Ada_Version_Explicit, for implementation of AI-362
25733 (Validate_Derived_Type_Instance): Add check for abstract interface
25734 types.
25735 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25736 the generic that is created to represent the formal package.
25737 (Analyze_Package_Instantiation): Instantiate body immediately if the
25738 package is a predefined unit that contains inlined subprograms, and
25739 we are compiling for a Configurable_Run_Time.
25740 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25741 If the program has a null default, generate an empty body for it.
25742
25743 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25744 error message condition, null procedures are correctly detected now.
25745 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25746 for subprograms in the context of protected types. Instead, the
25747 indicator is examined in Sem_Ch9 while analysing the subprogram
25748 declaration.
25749 (Check_Overriding_Indicator): Check consistency of overriding indicator
25750 on subprogram stubs as well.
25751 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25752 the library level.
25753 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25754 the type of the first formal is a concurrent type, replace this type
25755 by the corresponding record type.
25756 (Analyze_Subprogram_Body): Undo the previous work.
25757 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25758 analysis of the prefix ends up analyzing the call itself, after which
25759 we are done.
25760 (Has_Interface_Formals): New subprogram subsidiary to analyze
25761 subprogram_specification that returns true if some non
25762 class-wide interface subprogram is found
25763 (New_Overloaded_Entity): Modified to give support to abstract
25764 interface types
25765 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25766 access to subprograms must be recursive.
25767 (Is_Unchecked_Conversion): Improve the test that recognizes
25768 instantiations of Unchecked_Conversion, and allows them in bodies that
25769 are to be inlined by the front-end. When the body comes from an
25770 instantiation, a reference to Unchecked_Conversion will be an
25771 Expanded_Name, even though the body has not been analyzed yet.
25772 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25773 Must_Override and Must_Not_Override, to better express intent of AI.
25774 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25775 that it is consistent with the overrinding status of the subprogram
25776 at this point.
25777 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25778 always inlined.
25779 If the subprogram is a null procedure, indicate that it does not need
25780 a completion.
25781
25782 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25783 available through limited-with clauses.
25784 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25785 allowed as the last primitive of a tagged type if it has no previous
25786 spec.
25787 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25788 to give support to abstract interface types
25789
25790 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25791 in the case where the target type is an anonymous access type of an
25792 object or component (that is, when Is_Local_Anonymous_Access is true).
25793 Prevent the special checks for conversions of access discriminants in
25794 the case where the discriminant belongs to a nonlimited type, since
25795 such discriminants have their accessibility level defined in the same
25796 way as a normal component of an anonymous access type.
25797 (Resolve_Allocator): When an allocator's designated type is a class-wide
25798 type, check that the accessibility level of type given in the
25799 allocator's expression or subtype indication is not statically deeper
25800 than the level of the allocator's access type.
25801 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25802 name in a discriminant constraint of a record component.
25803 (Resolve_Explicit_Dereference): Do not check whether the type is
25804 incomplete when the dereference is a use of an access discriminant in
25805 an initialization procedure.
25806 (Resolve_Type_Conversion): Handle conversions to abstract interface
25807 types.
25808 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25809 abstract interface type is always valid.
25810 (Valid_Conversion): Modified to give support to abstract interface types
25811 (Resolve_Actuals): Enable full error reporting on view conversions
25812 between unrelated by_reference array types.
25813 The rule for view conversions of arrays with aliased components is
25814 weakened in Ada 2005.
25815 Call to obsolescent subprogram is now considered to be a violation of
25816 pragma Restrictions (No_Obsolescent_Features).
25817 (Check_Direct_Boolean_Operator): If the boolean operation has been
25818 constant-folded, there is nothing to check.
25819 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25820 check on possible violation of restriction No_Direct_Boolean_Operators
25821 until after expansion of operands, to prevent spurious errors when
25822 operation is constant-folded.
25823
25824 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25825 Has_Compatible_Type): Modified to give support to abstract interface
25826 types.
25827 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25828 of a given type implements a given interface
25829
25830 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25831 prefix is a parameterless function that returns an access_to_procedure.
25832 (Transform_Object_Operation): Handle properly function calls of the
25833 form Obj.Op (X), which prior to analysis appear as indexed components.
25834 (Analyze_One_Call): Complete the error notification to help new Ada
25835 2005 users.
25836 (Analyze_Allocator): For an allocator without an initial value, where
25837 the designated type has a constrained partial view, a discriminant
25838 constraint is illegal.
25839
25840 2005-06-14 Robert Dewar <dewar@adacore.com>
25841
25842 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25843 do with treatment of Set_Col when positioned at end of line character.
25844
25845 2005-06-14 Robert Dewar <dewar@adacore.com>
25846
25847 * atree.adb: (Elist*): Protect against uninitialized field
25848
25849 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25850
25851 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25852 for an attribute reference that returns an access type.
25853 (Apply_Discriminant_Check): No need for check if (designated) type has
25854 constrained partial view.
25855
25856 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25857 both bound checks, rather than a conjunction.
25858 (Insert_Valid_Check): If the expression is an actual that is an indexed
25859 component of a bit-packed array, force expansion of the packed element
25860 reference, because it is specifically inhibited elsewhere.
25861
25862 2005-06-14 Vincent Celier <celier@adacore.com>
25863
25864 * clean.adb (Clean_Project): Correctly delete executable specified as
25865 absolute path names.
25866
25867 * make.adb (Gnatmake): Allow relative executable path names with
25868 directory information even when project files are used.
25869 (Change_To_Object_Directory): Fail gracefully when unable to change
25870 current working directory to object directory of a project.
25871 (Gnatmake): Remove exception handler that could no longer be exercized
25872 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25873 may be deallocated by Normalize_Arguments.
25874 (Collect_Arguments): Eliminate empty arguments
25875
25876 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25877 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25878 (Check_Project): Return False when Project is No_Project. Return True
25879 when All_Projects is True.
25880 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25881 All_Projects to True.
25882 Minor reformatting
25883
25884 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25885 Javier Miranda <miranda@adacore.com>
25886 Thomas Quinot <quinot@adacore.com>
25887 Robert Dewar <dewar@adacore.com>
25888 Hristian Kirtchev <kirtchev@adacore.com>
25889 Gary Dismukes <dismukes@adacore.com>
25890
25891 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25892 anonymous access types, to indicate that the accessibility level of
25893 the type is determined by that of the enclosing declaration.
25894 (Has_Persistent_BSS): New flag
25895 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25896 of this attribute with functions.
25897 (Is_Primitive_Wrapper): Remove the barrier.
25898 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25899 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25900 New subprograms.
25901 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25902 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25903 New subprograms.
25904 (Is_Pure_Unit_Access_Type): New flag
25905 (Abstract_Interfaces): Complete the assertion to cover all usages.
25906 (Set_Is_Interface): Complete the assertion to cover all usages.
25907 (Is_Primitive_Wrapper): New attribute.
25908 (Is_Obsolescent): Now applies to all entities (though it is only set
25909 for subprograms currently)
25910 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25911 which solves various problems concerning access subtypes.
25912 (Has_Persistent_BSS): New flag
25913 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25914 Remove these subprograms because this attribute is currently
25915 not used.
25916 New entity flags:
25917 Has_Specified_Stream_Input (Flag190)
25918 Has_Specified_Stream_Output (Flag191)
25919 Has_Specified_Stream_Read (Flag192)
25920 Has_Specified_Stream_Write (Flag193)
25921 Present in all type and subtype entities. Set for a given view if the
25922 corresponding stream-oriented attribute has been defined by an
25923 attribute definition clause. When such a clause occurs, a TSS is set
25924 on the underlying full view; the flags are used to track visibility of
25925 the attribute definition clause for partial or incomplete views.
25926 (Is_Pure_Unit_Access_Type): New flag
25927 Clarify use of Is_Internal.
25928 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25929 internally generated to wrap the invocation of tasks and protected
25930 types that implement interfaces.
25931 (Implementation_Base_Type): Documentation correction
25932 (Is_Obsolescent): Now applies to all entities (though it is only set
25933 for subprograms currently)
25934 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25935 which solves various problems concerning access subtypes.
25936
25937 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25938 for examined parameters. Identify unequal parameter list lengths as
25939 non-conformant parameters.
25940 (Overriding_Possible): Do not check for "All" qualifier in declaration
25941 of controlling access parameter, following prescription of AI-404.
25942 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25943 that build the procedure body that wraps an entry invocation
25944 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25945 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25946 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25947 give support to abstract interface types
25948
25949 * freeze.adb (Freeze_Entity): Issue error message if
25950 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25951 type has no storage pool (Ada 2005) AI-366.
25952 Also modified to give support to abstract interface types
25953 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25954 Inline_Always pragma.
25955
25956 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25957 now begin an entry declaration.
25958 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25959 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25960 a subprogram declaration preceded by an overriding indicator.
25961 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25962 declarations or subprogram declarations preceded by reserved words
25963 "not" or "overriding".
25964 (P_Entry_Declaration): Update comment. Parse and check overriding
25965 indicator, set semantic flags of entry declarations.
25966 (P_Task): New error message in case of private applied
25967 to a task type declaration.
25968 (P_Protected): New error message in case of private applied
25969 to a task type declaration.
25970
25971 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25972 in which the full view of a type implementing an interface is a
25973 concurrent type.
25974 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25975 Declare_Inherited_Private_Subprograms): If an explicit operation
25976 overrides an operation that is inherited in the private part, mark the
25977 explicit one as overriding, to enable overriding indicator checks.
25978 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25979 full view to partial view, to simplify handling in back-end.
25980
25981 * sprint.adb: Print interface lists where needed: derived types,
25982 protected types, task types.
25983 output "is null" for null procedures. Part of implementation of
25984
25985 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25986 relaxation of rules for access types in pure, shared passive partitions.
25987
25988 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25989 first read discriminants into temporary objects, performing checks on
25990 the read values, then possibly performing discriminant checks on the
25991 actual (if it is constrained), and only finally reading the components
25992 into a constrained temporary object.
25993 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25994 case of reading discriminants of a mutable record type to recognize
25995 the new form of the code generated by
25996 Build_Mutable_Record_Read_Procedure.
25997
25998 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25999 of a simple call to Make_TSS_Name.
26000 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
26001 buffer, in order for Is_TSS to work correctly on local TSS names.
26002
26003 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
26004 Is_Local_Anonymous_Access to check legaliy of attributes in the
26005 context of access components and stand-alone access objects.
26006 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
26007 treated as available for a limited private type if there is an
26008 attribute_definition_clause that applies to its full view, but not in
26009 other cases where the attribute is available for the full view
26010 (specifically, the sole fact that the full view is non-limited does not
26011 make the attribute available for the partial view).
26012 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
26013 non-overloaded intrinsic subprogram.
26014 (Check_Stream_Attribute): Reject an attribute reference for an
26015 unavailable stream attribute even if the prefix is not a limited type
26016 (case of a 'Input attribute reference for an abstract, non-classwide
26017 type)
26018 (Stream_Attribute_Available): New function to determine whether a stream
26019 attribute is available at a place.
26020 (Check_Attribute): Use Stream_Attribute_Available instead of just
26021 testing for TSS presence on the implementation base type.
26022 (Analyze_Attribute): Modified to give support to task interfaces.
26023 (Analyze_Access_Attribute): Add error check for use of an Access (or
26024 Unrestricted_Access) attribute with a subprogram marked as
26025 Inline_Always.
26026 (Analyze_Attribute, case Attribute_Address): Add error check for use of
26027 an Address attribute with a subprogram marked as Inline_Always.
26028 Update Eval_Attribute to handle new value of Width from AI-395
26029
26030 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
26031 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
26032 Factor common code across the stream-oriented attribute circcuits into
26033 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
26034 processing is functionally identical to the previous duplicated one,
26035 except that an expression that denotes an abstract subprogram will now
26036 be rejected, as mandated by AI-195 item 5.
26037
26038 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
26039 Is_Local_Anonymous_Access to apply accessibility checks to access
26040 components and stand-alone access objects.
26041 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26042 elsewhere.
26043 (Is_Potentially_Persistent_Type): New function
26044 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26045 a heap-object whose type has a constrained partial view, the object is
26046 unconstrained and the component may depend on a discriminant, making its
26047 renaming illegal.
26048
26049 * sinfo.ads, sinfo.adb
26050 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26051 (Must_Override): Flag applicable to N_Entry_Declaration.
26052 Indicate that interface_list can appear in single task and single
26053 protected declarations.
26054 Replace Is_Overriding and Not_Overriding with Must_Override and
26055 Must_Not_Override, to better express intent of AI.
26056 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26057 of an overriding indicator in a subprogram or instance.
26058 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26059 Add the overriding indicator [[not] overriding] construct to the
26060 following grammar productions:
26061 ENTRY_DECLARATION
26062 GENERIC_INSTANTIATION
26063 SUBPROGRAM_SPECIFICATION
26064
26065 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26066 can start with an overriding indicator.
26067
26068 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26069 flags accordingly on subrogram specifications or instances.
26070
26071 * sem_ch8.adb:
26072 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26073 overriding_indicator, if present, is consistent with status of spec.
26074 Improve error message for null-excluding checks on controlling access
26075 parameters.
26076 (Check_In_Previous_With_Clause): Protect the frontend against
26077 previously reported critical errors in the context clauses.
26078 Save and restore Ada_Version_Explicit, for implementation of AI-362
26079 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26080 operation verify that controlling formals of the renamed entity that
26081 are access parameters are explicitly non-null.
26082 (Find_Expanded_Name): Improve error message when prefix is an illegal
26083 reference to a private child unit.
26084
26085 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26086 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26087 Rewrite to correspond to new wide character names in AI-395
26088
26089 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26090 default procedures.
26091
26092 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26093 Robert Dewar <dewar@adacore.com>
26094
26095 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26096 code, not on the bodies of predefined operations, to cut down on
26097 spurious noise.
26098
26099 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26100
26101 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26102 be expanded in place. The size computation does not require a
26103 subtraction, which would raise an exception on a compiler built with
26104 assertions when the upper bound is Integer'first.
26105 (Flatten): For an array of composite components, take into account the
26106 size of the components to determine whether it is safe to expand the
26107 array into a purely positional representation.
26108
26109 2005-06-14 Thomas Quinot <quinot@adacore.com>
26110
26111 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26112 denoting a formal parameter into account.
26113
26114 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26115
26116 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26117 the entry_call alternative of a conditional entry call, wrap the
26118 conditional entry call itself.
26119
26120 2005-06-14 Nicolas Setton <setton@adacore.com>
26121 Ed Schonberg <schonberg@adacore.com>
26122
26123 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26124 the "simple_choice" member in a variant record, in accordance with the
26125 description in the package spec: the information output for a constant
26126 should be "S number", not "SS number".
26127 (Get_Encoded_Name): Return at once if not generating code. Avoids name
26128 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26129
26130 2005-06-14 Thomas Quinot <quinot@adacore.com>
26131
26132 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26133 RACW without any primitives, do not generate the if statement for
26134 dispatching by name in the PolyORB/DSA case, as it would be malformed
26135 (it would have an Elsif_Parts list that is not No_List, but with a
26136 length of 0).
26137
26138 2005-06-14 Robert Dewar <dewar@adacore.com>
26139
26140 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26141
26142 2005-06-14 Jose Ruiz <ruiz@adacore.com>
26143
26144 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26145 can determine whether pragma Suppress_Exception_Locations is in effect.
26146
26147 * utils2.c (build_call_raise): Do not pass the file name to the
26148 exception handler if pragma Suppress_Exception_Locations is in effect.
26149 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26150
26151 2005-06-14 Emmanuel Briot <briot@adacore.com>
26152
26153 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26154
26155 2005-06-14 Nicolas Roche <roche@adacore.com>
26156
26157 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26158 to ""
26159 (Next_Level): Fix minor bug in handling of ../dir case
26160 (Read): Add dir separator to Directory name so that "" is understood as
26161 "/"
26162
26163 2005-06-14 Pascal Obry <obry@adacore.com>
26164
26165 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26166 releasing the items.
26167
26168 2005-06-14 Vincent Celier <celier@adacore.com>
26169 Cyrille Comar <comar@adacore.com>
26170
26171 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26172 with output file descriptor and with output file name.
26173 (Dup, Dup2): Now global procedures as they are used by two subprograms
26174 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26175
26176 2005-06-14 Thomas Quinot <quinot@adacore.com>
26177
26178 PR ada/6717
26179 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26180 broadcast address.
26181 (Create_Selector): Bind listening socket used to create the signalling
26182 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26183 Set listen backlog to 1 to ensure that we detect socket theft by a
26184 failure of our own connect(2) call.
26185 (Check_Selector): Improve documentation of the selector mechanism.
26186 (Broadcast_Inet_Addr): New constant.
26187
26188 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26189
26190 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26191 type which turns out to be an incomplete and incorrect fix.
26192 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26193 of the type is declared in a record (for determination of insertion
26194 type).
26195 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26196 a private type and ensure that the primary entity is used for the type
26197 of the newly created function's V formal by taking the Etype of the
26198 view.
26199
26200 2005-06-14 Javier Miranda <miranda@adacore.com>
26201 Jose Ruiz <ruiz@adacore.com>
26202 Robert Dewar <dewar@adacore.com>
26203 Ed Schonberg <schonberg@adacore.com>
26204
26205 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26206 that indicates if we are parsing a compilation unit found in a
26207 limited-with clause.
26208 It is use to avoid the circularity check.
26209
26210 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26211 we are parsing a compilation unit found in a limited-with clause. This
26212 is use to avoid the circularity check.
26213
26214 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26215 unit as a consequence of parsing a limited-with clause. This is used
26216 to avoid the circularity check.
26217
26218 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26219 (Analyze_Context): Limited-with clauses are now allowed
26220 in more compilation units.
26221 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26222 againts previously reported critical errors in context clauses
26223 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26224 of two further errors: renamed subprograms and renamed packages
26225 are not allowed in limited with clauses.
26226 (Install_Siblings): Do not install private_with_clauses on the package
26227 declaration for a non-private child unit.
26228 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26229 reset visibility of child units properly.
26230 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26231 parent, it is immediately visible.
26232
26233 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26234 Emmanuel Briot <briot@adacore.com>
26235
26236 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26237 declared within an inlined body as referenced, to prevent spurious
26238 warnings.
26239 (Output_One_Ref): If an entity renames an array component, indicate in
26240 the ALI file that this aliases (renames) the array. Capture as well
26241 function renamings that rename predefined operations.
26242 Add information about generic parent for package and subprogram
26243 instances.
26244 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26245 an instantiation, use the first_subtype to ensure that we don't generate
26246 cross-reference information for internal types.
26247 For objects and parameters of a generic private type, retain the '*'
26248 indicator to distinguish such an entity from its type.
26249
26250 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26251 to store information about instantiated entities.
26252
26253 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26254 generic parent
26255
26256 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26257 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26258 information.
26259
26260 2005-06-10 Doug Rupp <rupp@adacore.com>
26261 Arnaud Charlet <charlet@adacore.com>
26262 Olivier Hainque <hainque@adacore.com>
26263 Jose Ruiz <ruiz@adacore.com>
26264
26265 * Make-lang.in: Add initialize.o when needed.
26266 Remove obsolete references to RT_FLAGS.
26267 Add missing dependencies for sdefault.o
26268
26269 * initialize.c: New file.
26270
26271 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26272 [VMS] cond_signal_table: Fix problem in declaration.
26273 [VMS] __gnat_error_handler: rewrite.
26274 Move all __gnat_initialize() routines to initialize.c
26275 Specialize the former "hpux" section to "hppa hpux", as this is what the
26276 section really is here for and we now have other hpux ports that need
26277 different contents.
26278 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26279 function for this target. Adjust PC by one in the machine context. This
26280 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26281 it is more reliable to do that in the signal handler itself.
26282 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26283 flags, so that the handler is passed the context structure to adjust
26284 prior to the raise.
26285 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26286 SA_SIGINFO sigaction should look like. Call
26287 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26288 Machine_State_Operations stuff.
26289 Add conditional code so that the x86_64 is also supported.
26290
26291 2005-06-14 Pascal Obry <obry@adacore.com>
26292
26293 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26294 the library name.
26295
26296 2005-06-14 Robert Dewar <dewar@adacore.com>
26297
26298 * opt.ads, opt.adb: New flags for persistent_bss mode
26299 Add Ada_Version_Explicit, for implementation of AI-362
26300 Add Assertions_Enabled_Config and associated handling
26301 Needed since setting can be changed with Assertion_Policy pragma
26302 Add new flag Warn_On_Ada_2005_Compatibility
26303
26304 * switch-c.adb: Recognize -gnatwy/Y
26305 Set Ada_Version_Explicit, for implementation of AI-362
26306 The -gnatg switch now includes -gnatyu
26307
26308 * usage.adb: Add -gnatwy/Y
26309 Remove wrong asterisk on -gnatwX line
26310 Add line for -gnatyu switch
26311
26312 2005-06-14 Vincent Celier <celier@adacore.com>
26313
26314 * osint.adb (Add_Default_Search_Dirs): Put source and object
26315 directories of project files before directories coming from
26316 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26317
26318 2005-06-14 Robert Dewar <dewar@adacore.com>
26319
26320 PR ada/15613
26321 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26322 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26323
26324 2005-06-14 Vincent Celier <celier@adacore.com>
26325
26326 * prep.adb (Preprocess): Ignore error when scanning the first token of
26327 a line.
26328
26329 2005-06-14 Vincent Celier <celier@adacore.com>
26330
26331 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26332 (Check_Stand_Alone_Library): If the specified reference symbol file does
26333 not exist, only issue a warning when the symbol policy is not
26334 Controlled. And, when symbol policy is Compliant, set the symbol
26335 policy to Autonomous.
26336
26337 2005-06-14 Vincent Celier <celier@adacore.com>
26338
26339 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26340 when the project file in a with clause is not the last one, that is the
26341 project file name is followed by a comma.
26342 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26343 (Print): Issue list of project files separated by commas in with clauses
26344 according to the values returned by Is_Not_Last_In_List.
26345 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26346 (Set_Is_Not_Last_In_List): New procedure
26347
26348 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26349
26350 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26351
26352 2005-06-14 Robert Dewar <dewar@adacore.com>
26353
26354 * scng.adb: Add call to new Check_EOF routine
26355 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26356 Add some comments regarding wide character handling
26357
26358 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26359
26360 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26361
26362 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26363 characters are now considered graphic characters and hence yield false
26364 in this call.
26365
26366 * nmake.adt: Modify header so that xnmake does not generate output
26367 files with multiple blank lines.
26368
26369 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26370 not have an extra blank line
26371
26372 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26373
26374 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26375 expression when the component type is an anonymous access type to
26376 ensure that appropriate accessibility checks are done.
26377
26378 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26379 expression of an assignment when the target object is of an anonymous
26380 access type. This ensures that required accessibility checks are done.
26381 (One_Bound): Move the check for type Universal_Integer to
26382 Process_Bounds.
26383 (Process_Bounds): Check whether the type of the preanalyzed range is
26384 Universal_Integer, and in that case set Typ to Integer_Type prior
26385 to setting the type of the original range and the calls to One_Bound.
26386
26387 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26388
26389 * sem_case.adb (Expand_Others_Choice): Improve warning.
26390
26391 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26392
26393 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26394 constraint of full view if present, when other type is discriminated.
26395 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26396 when the pointer is known to be non-null, and emit appropriate warning.
26397
26398 2005-06-14 Robert Dewar <dewar@adacore.com>
26399 Ed Schonberg <schonberg@adacore.com>
26400
26401 PR ada/10671
26402 * sem_prag.adb: Implement pragma Persistent_BSS
26403 Remove obsolete pragma Persistent_Data, Persistent_Object
26404 Set Ada_Version_Explicit, for implementation of AI-362
26405 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26406 Add processing for pragma Pure_05 and Preelaborate_05
26407 Add processing for Assertion_Policy pragma
26408 Add pragma identifiers for Assert
26409 (Analyze_Pragma, case Assert): Check number of arguments
26410 (Process_Inline): Additional guard against an illegal program, where the
26411 argument of the pragma is undefined, and warnings on redundant
26412 constructs are enabled.
26413 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26414 Ada_05 to this pragma, specifying that the pragma is only active in
26415 Ada_05 mode.
26416 (Check_Arg_Order): New procedure
26417 Add appropriate calls to this procedure throughout
26418 Also throughout, check entity name before doing any other checks
26419
26420 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26421 Remove obsolete pragma Persistent_Data, Persistent_Object
26422 Add entries for pragma Pure_05 and Preelaborate_05
26423 Add entries for Assertion_Policy pragma and associated names
26424 Add some names for pragma argument processing
26425
26426 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26427
26428 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26429
26430 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26431 appears within a negation (either from source or as a rewriting of
26432 inequality) adjust text of warning accordingly.
26433
26434 2005-06-14 Thomas Quinot <quinot@adacore.com>
26435
26436 * s-strxdr.adb: Follow AI95-00132
26437
26438 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26439
26440 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26441
26442 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26443 Jose Ruiz <ruiz@adacore.com>
26444
26445 * s-tposen.adb, s-tpobop.adb
26446 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26447 the exception id.
26448 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26449 there is no violation of the Max_Entry_Queue_Length restriction (if it
26450 has been set); Program_Error is raised otherwise.
26451 (Requeue_Call): Before requeuing the task on the target entry queue we
26452 check that there is no violation of the Max_Entry_Queue_Length
26453 restriction (if it has been set); Program_Error is raised otherwise.
26454
26455 2005-06-14 Robert Dewar <dewar@adacore.com>
26456
26457 * styleg.adb: Fix several remaining problems in -gnatyu switch
26458 Blank line count not reset at start
26459 Scanning outside source buffer in some cases
26460 Confusing message for blanks at end of file
26461 Non-empty blank lines not recognized
26462
26463 * nmake.adt: Modify header so that xnmake does not generate output
26464 files with multiple blank lines.
26465
26466 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26467 not have an extra blank line
26468
26469 2005-06-14 Sergey Rybin <rybin@adacore.com>
26470
26471 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26472
26473 2005-06-14 Doug Rupp <rupp@adacore.com>
26474 Vincent Celier <celier@adacore.com>
26475
26476 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26477 Update copyright.
26478
26479 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26480 Remove "Library" command.
26481 Change keyword for style check -gnatyd from NOCRLF to
26482 DOS_LINE_ENDINGS.
26483 Remove useless second style check keyword NONE
26484 Remove help documentation for inexistent style check keyword
26485 RM_COLUMN_LAYOUT.
26486 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26487 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26488 Add UNNECESSARY_BLANK_LINES for -gnatyu
26489 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26490
26491 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26492
26493 2005-06-14 Vincent Celier <celier@adacore.com>
26494
26495 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26496 gprmake was invoked with -d.
26497 (Compile_Sources): If -d was used, output the "completed ..." message
26498 for each compilation.
26499 (Scan_Arg): Recognize new switch -d
26500 When -c and at least one main is specified, set
26501 Unique_Compile to True to guarantee that no other sources will be
26502 compiled.
26503
26504 2005-06-14 Matthew Heaney <heaney@adacore.com>
26505
26506 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26507 * a-swuwha.ads, a-swuwha.adb: New files
26508
26509 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26510 * a-szuzha.ads, a-szuzha.adb: New files.
26511
26512 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26513 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26514 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26515 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26516 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26517 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26518 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26519 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26520 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26521 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26522 Ada 2005 RM.
26523
26524 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26525 Olivier Hainque <hainque@adacore.com>
26526 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26527 Pascal Obry <obry@adacore.com>
26528
26529 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26530
26531 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26532 making a temporary around a procedure call because of non-addressable
26533 actual parameter.
26534 (process_freeze_entity): If entity is a private type, capture size
26535 information that may have been computed for the full view.
26536 (tree_transform, case N_Allocator): If have initializing expression,
26537 check type for Has_Constrained_Partial_View and pass that to
26538 build_allocator.
26539 (tree_transform, case N_Return_Statement): Pass extra arg to
26540 build_allocator.
26541
26542 * decl.c (annotate_value): Remove early return if -gnatR is not
26543 specified.
26544 (gnat_to_gnu_field): Don't make a packable type for a component clause
26545 if the position is byte aligned, the field is aliased, and the clause
26546 size isn't a multiple of the packable alignment. It serves no useful
26547 purpose packing-wise and would be rejected later on.
26548 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26549
26550 PR ada/20515
26551 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26552 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26553 instead.
26554 (create_concat_name): Idem.
26555
26556 2005-06-10 Robert Dewar <dewar@adacore.com>
26557 Eric Botcazou <ebotcazou@adacore.com>
26558 Ben Brosgol <brosgol@adacore.com>
26559 Cyrille Comar <comar@adacore.com>
26560 Sergey Rybin <rybin@adacore.com>
26561 Pascal Obry <obry@adacore.com>
26562
26563 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26564 Document second argument (Ada_05) of pragma Obsolescent
26565 Add note that call to subprogram marked with pragma Obsolescent
26566 is now considered to be a violation of program Restrictions
26567 (No_Obsolescent_Features).
26568 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26569 that only machine-dependent attributes are supported.
26570
26571 * gnat_ugn.texi:
26572 Commented out menu lines and empty section for gnatclean examples
26573 Document -gnatwy/Y
26574 Fix some over long lines
26575 Clarify and enhance documentation of ADA_PROJECT_PATH.
26576 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26577 Mention new switch -fcallgraph-info.
26578 Mention new switch -fstack-usage.
26579 For gnatpp, replace '-notab' with '-N' and add this option to Index
26580 Corrected VMS example.
26581 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26582 Minor reformatting
26583 Add documentation for -gnatyu switch (unnecessary blank lines)
26584 Document new switch -U for GNAT PRETTY and GNAT METRIC
26585 Add note about Stdcall being handled as C convention on non Windows OS.
26586 Remove some junk typo in description of gnatbind -S switch
26587 Remove reference to Extensions_Allowed pragma
26588 Document the new order of the directories to be searched (source and
26589 object directories of project files before directories in ADA_*_PATH
26590 environment variables.
26591
26592 * g-trasym.ads: Document that IRIX is supported
26593
26594 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26595
26596 * Makefile.in: Add initialize.o when needed.
26597 Adapt to new VMS package body Symbols and subunits
26598 No specialized version of a-sytaco is needed for VxWorks.
26599
26600 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26601 * a-zchara.ads, a-widcha.ads: New files.
26602
26603 * system-hpux-ia64.ads: New file.
26604
26605 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26606 is imported from the VxWorks kernel.
26607
26608 2005-06-14 Robert Dewar <dewar@adacore.com>
26609
26610 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26611 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26612 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26613 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26614 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26615 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26616 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26617 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26618 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26619 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26620 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26621 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26622
26623 2005-06-14 Thomas Quinot <quinot@adacore.com>
26624
26625 * xeinfo.adb: Fix typo in comment
26626
26627 2005-06-14 Javier Miranda <miranda@adacore.com>
26628
26629 * repinfo.ads: Fix typo in comment
26630
26631 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26632
26633 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26634 Parent_Tag is now in the visible part of Ada.Tags).
26635 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26636 using imported function.
26637
26638 2005-06-14 Bernard Banner <banner@adacore.com>
26639
26640 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26641 also apply for handling support for VxSim 653.
26642
26643 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26644
26645 * xsnames.adb: Add automatic generation of snames.h.
26646
26647 2005-06-14 Thomas Quinot <quinot@adacore.com>
26648
26649 * gen-soccon.c: Add IP_MULTICAST_IF constant
26650 Minor reformatting and adjustments to prevent warnings.
26651
26652 2005-06-14 Pascal Obry <obry@adacore.com>
26653
26654 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26655
26656 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26657
26658 * trans.c (gnat_gimplify_expr): Call
26659 recompute_tree_invarant_for_addr_expr when we change
26660 the operand of the ADDR_EXPR.
26661
26662 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26663
26664 * misc.c: Don't include errors.h.
26665
26666 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26667
26668 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26669
26670 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26671
26672 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26673 comment typos.
26674 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26675
26676 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26677
26678 PR ada/20270
26679 * Makefile.in: Make TGT_LIB behave correctly.
26680
26681 2005-04-23 DJ Delorie <dj@redhat.com>
26682
26683 * misc.c: Adjust warning() callers.
26684
26685 2005-04-16 Laurent Guerby <laurent@guerby.net>
26686
26687 PR ada/18847
26688 * a-nudira.adb (Value): Check for valid string.
26689 * a-nuflra.adb (Value): Likewise.
26690
26691 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26692
26693 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26694
26695 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26696
26697 * adaint.c, init.c, tracebak.c: Fix comment typos.
26698 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26699
26700 2005-04-07 Laurent Guerby <laurent@guerby.net>
26701 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26702
26703 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26704 * system-hpux.ads: Define Signed_Zeros to be True.
26705 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26706
26707 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26708
26709 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26710 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26711 typos.
26712
26713 2005-03-30 Tom Tromey <tromey@redhat.com>
26714
26715 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26716
26717 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26718
26719 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26720
26721 2005-03-29 Robert Dewar <dewar@adacore.com>
26722
26723 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26724 fixed-point expression has value that is not a multiple of the Small
26725 value.
26726
26727 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26728
26729 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26730 nanoseconds.
26731
26732 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26733
26734 2005-03-29 Vincent Celier <celier@adacore.com>
26735
26736 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26737 (Build_Dynamic_Library.Version_String): Return the empty string when
26738 Lib_Version is empty or when the symbol policy is not Autonomous.
26739
26740 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26741 a symbol is not in the reference symbol file, increase the Major ID
26742 and set the Minor ID to 0.
26743 Use gsmatch=lequal instead of gsmatch=equal
26744
26745 2005-03-29 Doug Rupp <rupp@adacore.com>
26746
26747 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26748 name and translate.
26749
26750 2005-03-29 Javier Miranda <miranda@adacore.com>
26751
26752 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26753 (Inherit_DT): The first formal has been redefined as a Tag.
26754 This allows us the removal of the subprogram Get_TSD.
26755 (TSD): Replace the call to Get_TSD by the actual code.
26756
26757 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26758 (Make_DT): Upgrade the call to Inherit_TSD according to the
26759 new interface: the first formal is now a Tag.
26760
26761 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26762 redefined as a Tag.
26763 This change allows us to remove the subprogram Get_TSD.
26764 (CPP_Get_TSD): Subprogram removed.
26765 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26766
26767 * rtsfind.ads: Remove support to call the run-time
26768 subprogram Get_TSD
26769
26770 2005-03-29 Robert Dewar <dewar@adacore.com>
26771
26772 * errutil.adb, errout.adb:
26773 Minor comment updates on Line_Terminator references
26774
26775 * par-ch10.adb: Add ??? comment about line terminator
26776
26777 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26778 (check dos line terminator).
26779 (Check_Line_Max_Length): New procedure, split off from the existing
26780 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26781 be properly recognized.
26782
26783 * styleg.adb: Add ??? comment for line terminator reference
26784
26785 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26786 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26787
26788 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26789 (check dos line terminator).
26790 (Check_Line_Max_Length): New procedure, split off from the existing
26791 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26792 be properly recognized.
26793
26794 * stylesw.ads, stylesw.adb:
26795 Add handling for new -gnatyd switch (check dos line terminator)
26796
26797 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26798 Recognize -gnatwb/-gnatwB switches
26799 Include Warn_On_Bad_Fixed_Value for -gnatg
26800
26801 * usage.adb:
26802 Add line for new -gnatyd switch (check dos line terminator)
26803
26804 * usage.adb: Add lines for -gnatwb/-gnatwB
26805
26806 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26807
26808 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26809
26810 * gnat_ugn.texi: Fix overlong lines
26811 Document new -gnatyd switch
26812 Document new -gnatwb/-gnatwB switches
26813
26814 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26815
26816 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26817 order to retrieve the component list of the type, before examining
26818 individual components.
26819
26820 * sem_type.adb (Covers): Types are compatible if one is the base type
26821 of the other, even though their base types might differ when private
26822 views are involved.
26823
26824 2005-03-29 Thomas Quinot <quinot@adacore.com>
26825
26826 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26827 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26828 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26829 analyzed if expansion is disabled (which could otherwise cause spurious
26830 error messages if expansion has been disabled due to previous
26831 (unrelated) errors).
26832
26833 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26834 is disabled, the entity denoted by the argument is the access type
26835 itself, not an underlying record type, so there is no need to go back
26836 to the Corresponding_Remote_Type.
26837
26838 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26839 Robert Dewar <dewar@adacore.com>
26840
26841 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26842 expand a call to an instance of
26843 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26844 Constructor actual of the instance. A class-wide membership
26845 check is also generated, to ensure that the tag passed to the instance
26846 denotes a type in the class.
26847 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26848 of Name_Generic_Dispatching_Constructor.
26849
26850 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26851 05 unit for AI-260-02).
26852
26853 * a-tgdico.ads: New file.
26854
26855 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26856 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26857
26858 * snames.ads, snames.adb (Preset_Names): Add entry for
26859 Generic_Dispatching_Constructor.
26860
26861 PR ada/20300
26862 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26863 character type cases.
26864 (Analyze_Subprogram_Renaming): Add special handling for
26865 the case of renaming of stream attributes when the renaming denotes a
26866 generic formal subprogram association for an abstract formal subprogram.
26867 Check that the attribute is a primitive stream attribute (and not
26868 a class-wide stream attribute) and then rewrite the attribute name
26869 as the name of the appropriate compiler-generated stream primitive.
26870
26871 2005-03-29 Robert Dewar <dewar@adacore.com>
26872
26873 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26874 recursive calls.
26875 (Is_Possibly_Unaligned_Object): Correct typo that
26876 resulted in inaccurate result for unaligned scalars within records.
26877
26878 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26879
26880 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26881 itype whose parent is controlled and not yet frozen, do not create a
26882 freeze node for the itype if expansion is disabled.
26883
26884 2005-03-29 Vincent Celier <celier@adacore.com>
26885
26886 * make.adb (Gnatmake): Don't fail if the main project file is declared
26887 as having no Ada sources. Do not display message "no sources to
26888 compile" in quiet output.
26889
26890 2005-03-29 Doug Rupp <rupp@adacore.com>
26891
26892 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26893 extra tools.
26894
26895 2005-03-29 Robert Dewar <dewar@adacore.com>
26896
26897 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26898 child.
26899
26900 2005-03-29 Robert Dewar <dewar@adacore.com>
26901
26902 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26903 missing TYPE Improve the error message generated when compiling a
26904 limited interface in Ada83 or Ada95 mode.
26905
26906 2005-03-29 Robert Dewar <dewar@adacore.com>
26907
26908 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26909 rather than proceed ahead using a junk attribute name.
26910
26911 2005-03-29 Vincent Celier <celier@adacore.com>
26912
26913 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26914
26915 * prj-part.adb (Parse_Single_Project): Set the location of a project
26916 on its defining identifier, rather than on the reserved word "project".
26917
26918 * prj-proc.adb (Expression): Adapt to the fact that default of external
26919 references may be string expressions, not always literal strings.
26920 (Recursive_Process): Set Display_Name equal to Name
26921 when Location is No_Location, that is when there is no actual file.
26922 Get the Display_Name of the project from the source, when it is not a
26923 virtual project.
26924 (Process): Use the Display_Name in error messages
26925
26926 * prj-strt.adb (External_Reference): Allow default to be string
26927 expressions, not only literal strings.
26928
26929 2005-03-29 Vincent Celier <celier@adacore.com>
26930
26931 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26932 file and the reference symbol file to be the same file.
26933
26934 2005-03-29 Thomas Quinot <quinot@adacore.com>
26935
26936 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26937 forbid conversion of a local access-to-subprogram type to a remote one.
26938
26939 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26940 equivalent type for a remote access-to-subprogram type, go back to the
26941 original RAS entity when displaying an error message, so the casing is
26942 the original source casing.
26943
26944 2005-03-29 Robert Dewar <dewar@adacore.com>
26945
26946 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26947 on param update.
26948
26949 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26950
26951 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26952 subtype if code is being pre-analyzed, to prevent un-expanded
26953 references to protected formals, among others.
26954 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26955 interpretation that can be a call, include the result of the call as a
26956 possible interpretation of the dereference.
26957
26958 * sem_ch5.adb (Process_Bounds): Determine type of range by
26959 pre-analyzing a copy of the original range, and then analyze the range
26960 with the expected type.
26961
26962 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26963 with an overloaded prefix where not all interpretations yield an
26964 access to subprogram, do not rewrite node as a call.
26965 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26966 the node as a call once the context identifies the interpretation of
26967 the prefix whose call yields the context type.
26968 (Valid_Conversion): For the case of a conversion between
26969 local access-to-subprogram types, check subtype conformance using
26970 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26971 detailed error message.
26972
26973 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26974
26975 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26976 indicator, indicate that the formal can never be null.
26977 (Process_Formals): If a formal has a non_null indicator, insert the
26978 resulting subtype immediately before the enclosing subprogram decl,
26979 and not at the beginning of the corresponding declarative part, to
26980 prevent access before elaboration (Ada2005).
26981
26982 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26983
26984 PR ada/19956
26985 * utils.c (finish_record_type): Use variable_size when setting sizes.
26986
26987 2005-03-29 Robert Dewar <dewar@adacore.com>
26988
26989 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26990 guarantee Unix style line terminators for the output files, even when
26991 running on windows.
26992
26993 2005-03-29 Robert Dewar <dewar@adacore.com>
26994
26995 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26996 buffer if an exception is raised.
26997
26998 2005-03-29 Ed Falis <falis@adacore.com>
26999
27000 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
27001 VxWorks 653 1.4
27002
27003 2005-03-29 Robert Dewar <dewar@adacore.com>
27004
27005 * sem_util.ads: Minor reformatting
27006 * gnat_rm.texi: Minor editing.
27007
27008 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
27009
27010 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
27011 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
27012
27013 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27014
27015 * adaint.c (__gnat_portable_spawn): Adjust cast.
27016
27017 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27018
27019 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27020
27021 2005-03-17 Pascal Obry <obry@adacore.com>
27022
27023 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
27024 used.
27025
27026 * expect.c (__gnat_waitpid): Moved here from adaint.c.
27027 Reimplement under Win32 using Win32 API.
27028
27029 (__gnat_kill) [Win32]: Properly close the process handle before leaving
27030 this routine.
27031
27032 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
27033
27034 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
27035 (DECL_RENAMED_OBJECT): New accessor macro.
27036 (SET_DECL_RENAMED_OBJECT): New setter macro.
27037
27038 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27039 object in all cases. Attach the renamed object to the VAR_DECL.
27040 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27041 field is not prescribed.
27042
27043 * misc.c (gnat_handle_option): Handle -gnatO separately.
27044 (gnat_print_decl) <VAR_DECL>: New case.
27045 Print the DECL_RENAMED_OBJECT node.
27046
27047 * lang.opt: Declare separate -gnatO option.
27048
27049 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27050 pointer, replace it with the renamed object.
27051 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27052 pointer type if the source is not a fat pointer type whose underlying
27053 array has the same non-zero alias set as that of the destination array.
27054
27055 2005-03-17 Javier Miranda <miranda@adacore.com>
27056
27057 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27058 (Get_Inheritance_Depth): Removed.
27059 (Set_Inheritance_Depth): Removed.
27060
27061 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27062 subprogram Get_Expanded_Name because it is not referenced by the
27063 frontend.
27064
27065 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27066 (CPP_Get_Inheritance_Depth): Removed.
27067 (CPP_Set_Inheritance_Depth): Removed.
27068
27069 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27070
27071 2005-03-17 Robert Dewar <dewar@adacore.com>
27072
27073 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27074 3, since we now expect GCC 3 to do all the work.
27075
27076 2005-03-17 Javier Miranda <miranda@adacore.com>
27077
27078 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27079 of one barrier to avoid wrong usage of this attribute.
27080
27081 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27082 First_Private_Entity.
27083
27084 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27085 the subprogram against wrong usage.
27086 Adapt the code to traverse the entities in the
27087 scope of a record_type because in addition to its usage regarding
27088 packages, this subprogram is also called by Expand_N_Freeze_Entity
27089 to install the visible declarations of the enclosing scope of a
27090 record_type_with_private to establish the proper visibility before
27091 freezing the entity and related subprograms.
27092
27093 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27094
27095 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27096 entry formals.
27097
27098 2005-03-17 Thomas Quinot <quinot@adacore.com>
27099
27100 * exp_ch3.adb (Check_Attr): New subprogram.
27101 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27102 into a new Check_Attr subprogram, in order to provide a more
27103 explanatory error message (including the name of the missing attribute).
27104 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27105 subprogram determines whether a default implementation exists for a
27106 given stream attribute.
27107 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27108 Determine whether to generate a default implementation for each stream
27109 attribute separately, as this depends on the specific attribute.
27110
27111 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27112 limited extension where a stream attribute is missing for a limited
27113 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27114 generate a bogus reference to the missing attribute to prevent
27115 cascaded errors. Instead, generate a null statement.
27116
27117 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27118 available for a limited type if it has been specified for an ancestor
27119 of the type.
27120
27121 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27122
27123 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27124 entity is an operator.
27125
27126 2005-03-17 Thomas Quinot <quinot@adacore.com>
27127
27128 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27129 spec, to make this predicate available to other units.
27130
27131 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27132 reimplementing it.
27133
27134 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27135 when no distribution runtime library is available.
27136
27137 * sem_res.adb, sem_dist.adb: Disable expansion of remote
27138 access-to-subprogram types when no distribution runtime library is
27139 available.
27140 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27141 predicate available to other units.
27142
27143 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27144 spec, to make this predicate available to other units.
27145
27146 2005-03-17 Vincent Celier <celier@adacore.com>
27147
27148 * make.adb (Insert_Project_Sources): Make sure the Q is always
27149 initialized.
27150
27151 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27152 the default for the tree, not the global default naming.
27153
27154 * prj-proc.adb (Recursive_Process): No need to put the default naming
27155 in the project data, it's already there.
27156
27157 2005-03-17 Doug Rupp <rupp@adacore.com>
27158
27159 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27160
27161 * 5xcrtl.ads: Renamed to...
27162 * s-crtl-vms64.ads: ...this new file
27163
27164 2005-03-17 Robert Dewar <dewar@adacore.com>
27165
27166 PR ada/19519
27167 * namet.adb (Copy_One_Character): Set proper wide character encoding
27168 for upper half character if we have upper half encoding.
27169
27170 2005-03-17 Robert Dewar <dewar@adacore.com>
27171
27172 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27173
27174 2005-03-17 Thomas Quinot <quinot@adacore.com>
27175
27176 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27177 tagged limited type, the TSS is a newly built renaming declaration:
27178 insert it using Set_TSS, not Copy_TSS.
27179
27180 2005-03-17 Javier Miranda <miranda@adacore.com>
27181
27182 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27183 Try_Object_Operation): Analyze the object that is accessible
27184 through the prefix of the subprogram call before we apply
27185 the transformation of the object-operation notation.
27186
27187 2005-03-17 Jose Ruiz <ruiz@adacore.com>
27188
27189 * s-taprob.adb (Initialize_Protection): Initialize the protected
27190 object's owner to Null_Task.
27191 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27192 procedure is already the protected object's owner then Program_Error
27193 is raised. In addition the protected object's owner is updated.
27194 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27195 of this procedure is already the protected object's owner then
27196 Program_Error is raised.
27197 In addition the protected object's owner is updated.
27198 (Unlock): Remove the ownership of the protected object.
27199
27200 * s-taprob.ads (Protection): Add the field Owner, used to store the
27201 protected object's owner.
27202 This component is needed for detecting one type of potentially blocking
27203 operations (external calls on a protected subprogram with the same
27204 target object as that of the protected action). Document the rest of
27205 the components.
27206
27207 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27208 Initialize the protected object's owner to Null_Task.
27209 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27210 caller of this procedure is already the protected object's owner then
27211 Program_Error is raised.
27212 Do not raise Program_Error when this procedure is called from a
27213 protected action.
27214 (Unlock_Entries): Remove the ownership of the protected object.
27215 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27216 of this procedure is already the protected object's owner then
27217 Program_Error is raised.
27218 Do not raise Program_Error when this procedure is called from
27219 a protected action.
27220
27221 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27222 used to store the protected object's owner.
27223
27224 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27225 effect and this procedure (a potentially blocking operation) is called
27226 from whithin a protected action, Program_Error is raised.
27227 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27228 and this procedure (a potentially blocking operation) is called from
27229 whithin a protected action, Program_Error is raised.
27230
27231 2005-03-17 Vincent Celier <celier@adacore.com>
27232 Nicolas Setton <setton@adacore.com>
27233
27234 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27235 switch, not supported by the linker on Darwin. Add '_' before
27236 <library>init, as this character is added unconditionally by the
27237 compiler.
27238 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27239 correct one ".dylib". This fixes detection of the archive files when
27240 building library projects.
27241
27242 2005-03-17 Vincent Celier <celier@adacore.com>
27243
27244 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27245 -gnat83, -gnat95 and -gnat05.
27246
27247 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27248
27249 * gnat_ugn.texi: Document gnatmem restriction
27250
27251 2005-03-17 Thomas Quinot <quinot@adacore.com>
27252
27253 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27254 cleanup
27255
27256 2005-03-17 Robert Dewar <dewar@adacore.com>
27257
27258 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27259 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27260 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27261
27262 * casing.adb: Comment improvements
27263
27264 2005-03-17 Pascal Obry <obry@adacore.com>
27265
27266 * g-expect.adb: Minor reformatting.
27267
27268 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27269
27270 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27271 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27272 to dependencies.
27273
27274 2005-03-15 Vincent Celier <celier@adacore.com>
27275
27276 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27277 Add new parameter In_Tree to specify the project tree: needed
27278 by the project manager. Adapt to changes in project manager
27279 using new parameter In_Tree.
27280
27281 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27282
27283 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27284 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27285 ada/bldtools to avoid make -jN failures.
27286
27287 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27288
27289 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27290 to NULL_TREE on entry.
27291
27292 2005-03-15 Robert Dewar <dewar@adacore.com>
27293
27294 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27295 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27296 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27297 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27298 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27299 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27300 system-interix.ads, system-solaris-sparc.ads,
27301 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27302 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27303 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27304 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27305 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27306 Compiler_System_Version to be False.
27307
27308 * opt.ads: Add new flag Opt.Address_Is_Private
27309
27310 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27311 Add new parameter Compiler_System_Version to avoid checking for
27312 completeness of parameters when compiler is compiling itself.
27313 Allows old versions of GNAT to be compiled with new compiler.
27314
27315 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27316
27317 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27318 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27319 calling thread.
27320 (Stack_Base_Available): New flag.
27321 (Get_Page_Size): New overloaded functions imported from C.
27322 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27323 PROT_ON, PROT_OFF): New constants.
27324 (mprotect): New function imported from C.
27325 (pthread_teb_t): New record type.
27326
27327 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27328 (Create_Task): Account for the Yellow Zone and the guard page.
27329
27330 2005-03-15 Vincent Celier <celier@adacore.com>
27331
27332 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27333 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27334 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27335 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27336 Library_File_Name_For): Add new parameter In_Tree
27337 to specify the project tree: needed by the project manager.
27338 Adapt to changes in project manager using new parameter In_Tree.
27339 Remove local imports, use functions in System.CRTL.
27340
27341 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27342 to use the project manager.
27343
27344 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27345 In_Tree to designate the project tree. Adapt to changes in the project
27346 manager, using In_Tree.
27347
27348 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27349 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27350 project tree: needed by the project manager.
27351 (Build_Library): Check that Arg'Length >= 6 before checking if it
27352 contains "--RTS=...".
27353
27354 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27355 Library_File_Name_For): Add new parameter In_Tree to specify the
27356 project tree: needed by the project manager.
27357
27358 * prj.ads, prj.adb: Major modifications to allow several project trees
27359 in memory at the same time.
27360 Change tables to dynamic tables and hash tables to dynamic hash
27361 tables. Move tables and hash tables from Prj.Com (in the visible part)
27362 and Prj.Env (in the private part). Move some constants from the visible
27363 part to the private part. Make other constants deferred.
27364 (Project_Empty): Make it a variable, not a function
27365 (Empty_Project): Add parameter Tree. Returns the data with the default
27366 naming data of the project tree Tree.
27367 (Initialize): After updating Std_Naming_Data, copy its value to the
27368 component Naming of Project Empty.
27369 (Register_Default_Naming_Scheme): Use and update the default naming
27370 component of the project tree, instead of the global variable
27371 Std_Naming_Data.
27372 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27373 Tree is not defaulted, return the default naming data of the Tree.
27374 (Initial_Buffer_Size): Constant moved from private part
27375 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27376 variables initialized in procedure Initialize.
27377 (Add_To_Buffer): Add two in out parameters to replace global variables
27378 Buffer and Buffer_Last.
27379 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27380 functions.
27381 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27382 hash tables.
27383 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27384 for the project tree.
27385 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27386 constant at the beginning of the package spec, so that they cane be used
27387 in subprograms before their full declarations.
27388 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27389 (Empty_Project): Add parameter of type Project_Node_Ref
27390 (Private_Project_Tree_Data): Add component Default_Naming of type
27391 Naming_Data.
27392 (Buffer, Buffer_Last): remove global variables
27393 (Add_To_Buffer): Add two in out parameters to replace global variables
27394 Buffer and Buffer_Last.
27395 (Current_Packages_To_Check): Remove global variable
27396 (Empty_Name): Move to private part
27397 (No-Symbols): Make it a constant
27398 (Private_Project_Tree_Data): New type for the private part of the
27399 project tree data.
27400 (Project_Tree_Data): New type for the data of a project tree
27401 (Project_Tree_Ref): New type to designate a project tree
27402 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27403 for the project tree.
27404
27405 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27406 imports package Table.
27407
27408 * prj-com.adb: Remove empty, no longer needed body
27409
27410 * prj-com.ads: Move most of the content of this package to package Prj.
27411
27412 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27413 designate the project node tree and Packages_To_Check to replace
27414 global variable Current_Packages_To_Check.
27415 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27416 when needed. Adapt to changes in project manager with project node tree
27417 In_Tree.
27418
27419 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27420 project tree to most subprograms. Move tables and hash tables to
27421 private part of package Prj.
27422 Adapt to changes in project manager using project tree In_Tree.
27423
27424 * prj-makr.adb (Tree): New constant to designate the project node tree
27425 Adapt to change in project manager using project node tree Tree
27426
27427 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27428 display the Library_Src_Dir and the Library_Dir.
27429 Add new parameter In_Tree to designate the project node tree to most
27430 subprograms. Adapt to changes in the project manager, using project tree
27431 In_Tree.
27432 (Check_Naming_Scheme): Do not alter the casing on platforms where
27433 the casing of file names is not significant.
27434 (Check): Add new parameter In_Tree to designate the
27435
27436 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27437 designate the project tree.
27438 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27439
27440 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27441 to replace those that were in the private part of package Prj.
27442 Add new parameter In__Tree to designate the project node tree to most
27443 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27444 (Post_Parse_Context_Clause): When specifying the project node of a with
27445 clause, indicate that it is a limited with only if there is "limited"
27446 in the with clause, not necessarily when In_Limited is True.
27447 (Parse): Add new parameter In_Tree to designate the project node tree
27448
27449 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27450 designate the project node tree. Adapt to change in Prj.Tree with
27451 project node tree In_Tree.
27452
27453 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27454 tree In_Tree in the call to function Empty_Process to give its initial
27455 value to the project data Processed_Data.
27456 Add new parameters In_Tree to designate the project tree and
27457 From_Project_Node_Tree to designate the project node tree to several
27458 subprograms. Adapt to change in project manager with project tree
27459 In_Tree and project node tree From_Project_Node_Tree.
27460
27461 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27462 to replace those that were in the private part of package Prj.
27463 Add new parameter In_Tree to designate the project node tree to most
27464 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27465
27466 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27467 Project_Node_Tree_Ref to most subprograms.
27468 Use this new parameter to store project nodes in the designated project
27469 node tree.
27470 (Project_Node_Tree_Ref): New type to designate a project node tree
27471 (Tree_Private_Part): Change table to dynamic table and hash tables to
27472 dynamic hash tables.
27473
27474 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27475 the project tree to most subprograms. Adapt to changes in project
27476 manager using project tree In_Tree.
27477
27478 * makegpr.adb (Project_Tree): New constant needed to use project
27479 manager.
27480
27481 2005-03-15 Olivier Hainque <hainque@adacore.com>
27482
27483 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27484 for sigactions with SA_SIGINFO set. Call
27485 __gnat_adjust_context_for_raise before raising, to perform the
27486 potentially required adjustments to the machine context for the GCC
27487 unwinder.
27488
27489 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27490
27491 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27492 Adjust PC by one in the provided machine context.
27493 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27494 so that the handler is passed the context structure to adjust prior to
27495 the raise.
27496 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27497 SA_SIGINFO sigaction should look like. Call
27498 __gnat_adjust_context_for_raise before actually raising.
27499 (__gnat_adjust_context_for_raise): Default noop to help PC
27500 adjustments before raise from signal handlers.
27501 (__gnat_error_handler): Indirectly call a predicate function to
27502 determine if a condition should be resignaled or not.
27503 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27504 (__gnat_default_resignal_p): Default GNAT predicate.
27505
27506 2005-03-15 Doug Rupp <rupp@adacore.com>
27507
27508 * adaint.c: Prefix #include of VMS system header files with vms/
27509 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27510 Do not define a dummy function "convert_addresses" under Darwin,
27511 not needed.
27512
27513 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27514 with vms/
27515
27516 2005-03-15 Nicolas Setton <setton@adacore.com>
27517
27518 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27519 PPC/AIX.
27520
27521 2005-03-15 Robert Dewar <dewar@adacore.com>
27522
27523 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27524 AI-386.
27525
27526 * a-retide.ads: Minor comment changes
27527
27528 2005-03-15 Robert Dewar <dewar@adacore.com>
27529
27530 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27531 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27532 Realloc_For_Chunk to private part of package.
27533 New subprograms for AI-301
27534
27535 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27536 Get_Line procedure.
27537 Avoid unnecessary use of Get/Set_Wide_String
27538
27539 2005-03-15 Robert Dewar <dewar@adacore.com>
27540
27541 PR ada/13470
27542 * a-stunau.ads, a-stunau.adb:
27543 Change interface to allow efficient (and correct) implementation
27544 The previous changes to allow extra space in unbounded strings had
27545 left this interface a bit broken.
27546
27547 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27548
27549 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27550 Minor reformatting (function specs)
27551
27552 * g-spitbo.adb: New interface for Get_String
27553
27554 * g-spitbo.ads: Minor reformatting
27555
27556 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27557
27558 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27559
27560 2005-03-15 Javier Miranda <miranda@adacore.com>
27561 Robert Dewar <dewar@adacore.com>
27562 Thomas Quinot <quinot@adacore.com>
27563 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27564
27565 * atree.ads, atree.adb: Add support for Elist24 field
27566
27567 * atree.h: Fix wrong definition of Field27
27568 Add support for Elist16 field
27569 Add support for Elist24 field
27570
27571 * einfo.ads, einfo.adb (Abstract_Interfaces,
27572 Set_Abstract_Interfaces): New subprograms.
27573 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27574 subprograms.
27575 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27576 entities rather than a single node.
27577 (Is_Interface, Set_Is_Interface): New subprogram
27578 (First_Tag_Component): New syntesized attribute
27579 (Next_Tag_Component): New synthesized attribute
27580 (Write_Entity_Flags): Upgraded to write Is_Interface
27581 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27582 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27583 (Task_Body_Procedure): New subprogram to read this attribute.
27584 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27585 (Has_Controlled_Component): Now applies to all entities.
27586 This is only a documentation change, since it always worked to apply
27587 this to other than composite types (yielding false), but now this is
27588 official.
27589 Update documentation on Must_Be_Byte_Aligned for new spec
27590
27591 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27592 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27593 uses of the Access_Disp_Table attribute to reference the first dispatch
27594 table associated with a tagged type. As
27595 part of the implementation of abstract interface types,
27596 Access_Disp_Table has been redefined to contain a list of dispatch
27597 tables (rather than a single dispatch table).
27598 Similarly, upgrade all the references to Tag_Component by the
27599 new attribute First_Tag_Component.
27600 (Find_Inherited_TSS): Moved to exp_tss.
27601 Clean up test in Expand_N_Object_Declaration for cases
27602 where we need to do a separate assignment of the initial value.
27603 (Expand_N_Object_Declaration): If the expression in the
27604 declaration of a tagged type is an aggregate, no need to generate an
27605 additional tag assignment.
27606 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27607 is to be deleted.
27608 Bit packed array ops are only called if operands are known to be
27609 aligned.
27610 (Component_Equality): When returning an N_Raise_Program_Error statement,
27611 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27612 expects that only expressions have a bona fide type).
27613 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27614 determine the amount of data to be copied.
27615
27616 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27617 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27618 INTERFACE_TYPE_DEFINITION ::=
27619 [limited | task | protected | synchronized] interface
27620 [AND interface_list]
27621
27622 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27623 interfaces.
27624 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27625 interfaces.
27626 (P_Interface_Type_Definition): New subprogram that parses the new
27627 syntax rule of Ada 2005 interfaces
27628 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27629 messages by the correct RENAMES (quotes removed).
27630
27631 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27632 attribute First_Tag_Component.
27633
27634 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27635 (Interface_List, Set_Interface_List): New subprograms.
27636 (Interface_Present, Set_Interface_Present): New subprograms.
27637 (Limited_Present, Set_Limited_Present): Available also in derived
27638 type definition nodes.
27639 (Protected_Present, Set_Protected_Present): Available also in
27640 record type definition and
27641 derived type definition nodes.
27642 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27643 (Task_Present, Set_Task_Present): New subprogram.
27644 (Task_Body_Procedure): Removed.
27645 (Set_Task_Body_Procedure): Removed.
27646 These subprogram have been removed because the attribute
27647 Task_Body_Procedure has been moved to the corresponding task type
27648 or task subtype entity to leave a field free to store the list
27649 of interfaces implemented by a task (for AI-345)
27650 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27651 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27652 expression flag Do_Range_Check
27653 (Exception_Junk): Change to Flag7 to accomodate above change
27654 (Box_Present, Default_Name, Specification, Set_Box_Present,
27655 Set_Default_Name, Set_Specification): Expand the expression
27656 "X in N_Formal_Subprogram_Declaration" into the corresponding
27657 two comparisons. Required to use the csinfo tool.
27658
27659 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27660 "with string" given.
27661
27662 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27663 expression given.
27664
27665 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27666 in 2005 mode
27667
27668 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27669 attribute Task_Body_Procedure rather than the old semantic field that
27670 was available in the task_type_declaration node.
27671
27672 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27673 interface type definitions.
27674 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27675 interfaces.
27676
27677 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27678 task type declaration.
27679 (P_Protected): Modified to handle the list of interfaces in a
27680 protected type declaration.
27681
27682 2005-03-15 Doug Rupp <rupp@adacore.com>
27683 Vincent Celier <celier@adacore.com>
27684
27685 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27686 (Gen_Output_File_C): Likewise.
27687 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27688
27689 2005-03-15 Thomas Quinot <quinot@adacore.com>
27690
27691 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27692 is an N_Raise_Constraint_Error node, create a new copy of it without
27693 going through a call to Duplicate_Subexpr.
27694
27695 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27696 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27697 Nicolas Setton <setton@adacore.com>
27698 Ed Schonberg <schonberg@adacore.com>
27699
27700 PR ada/19900
27701 PR ada/19408
27702 PR ada/19140
27703 PR ada/20255
27704 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27705 representation clause that prescribes a size not equal to the rounded
27706 size of their types.
27707 (gnat_to_gnu_entity, case E_Component): Always look at
27708 Original_Record_Component if Present and not the entity.
27709 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27710 of tagged extension types by not making field for components that are
27711 inside the parent.
27712 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27713 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27714 expression to the type of the object when the object is constant.
27715 Reverse defer_debug_incomplete_list before traversing it, so that trees
27716 are processed in the order at which they were added to the list. This
27717 order is important when using the stabs debug format.
27718 If we are deferring the output of debug information, also defer this
27719 output for a function return type.
27720 When adding fields to a record, prevent emitting debug information
27721 for incomplete records, emit the information only when the record is
27722 complete.
27723 (components_to_record): New parameter defer_debug.
27724 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27725 (gnat_to_gnu_field_decl): New function.
27726 (substitution_list, annotate_rep): Call it.
27727 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27728 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27729 No longer update discriminants to not be a COMPONENT_REF.
27730 (copy_alias_set): Strip padding from input type; also handle
27731 unconstrained arrays properly.
27732
27733 * gigi.h (write_record_type_debug_info): New function.
27734 Convert to use ANSI-style prototypes. Remove unused
27735 declarations for emit_stack_check, elab_all_gnat and
27736 set_second_error_entity.
27737 (gnat_to_gnu_field_decl): New decl.
27738
27739 * utils.c (write_record_type_debug_info): New function.
27740 (finish_record_type): Delegate generation of debug information to
27741 write_record_type_debug_info.
27742 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27743 (update_pointer_to): Fix pasto.
27744 (convert) <UNION_TYPE>: Accept slight type variations when
27745 converting to an unchecked union type.
27746
27747 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27748 replace the N_Freeze_Entity with a null statement.
27749
27750 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27751 within a constrained subcomponent of an enclosing record, place the
27752 freeze nodes in the scope stack entry for the enclosing record.
27753 (Undelay_Type): New Subprogram.
27754 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27755 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27756 within records; allow them to have freeze nodes if their base types
27757 aren't frozen yet.
27758
27759 * exp_util.adb (Remove_Side_Effects): Properly test for
27760 Expansion_Delayed and handle case when it's inside an
27761 N_Qualified_Expression.
27762
27763 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27764 Comes_From_Generic, to recognize accurately that the parent type in a
27765 derived type declaration can be traced back to a formal type, because
27766 it is one or is derived from one, or because its completion is derived
27767 from one.
27768 (Constrain_Component_Type): If component comes from source and has no
27769 explicit constraint, no need to constrain in in a subtype of the
27770 enclosing record.
27771 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27772 Minor change to propagate Is_Ada_2005 flag
27773
27774 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27775 Expansion_Delayed is False.
27776 (assoc_to_constructor): Ignore fields that have a
27777 Corresponding_Discriminant.
27778 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27779 function returns "by target", dereference the target pointer using the
27780 type of the actual return value.
27781 <all>: Be prepared for a null gnu_result.
27782 (processed_inline_subprograms): Check flag_really_no_inline
27783 instead of flag_no_inline.
27784 (set_second_error_entity): Remove unused function.
27785 (gnat_to_gnu, case N_Selected_Component): Call
27786 gnat_to_gnu_field_decl.
27787 (assoc_to_constructor): Likewise.
27788
27789 2005-03-15 Robert Dewar <dewar@adacore.com>
27790 Ed Schonberg <schonberg@adacore.com>
27791 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27792
27793 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27794 Must_Be_Byte_Aligned for cases where we do not need to use a
27795 System.Pack_nn unit.
27796
27797 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27798 as procedures.
27799 Needed now that we do some processing for IN parameters as well. This
27800 may well fix some unrelated errors.
27801 (Expand_Call): Handle case of unaligned objects (in particular those
27802 that come from packed arrays).
27803 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27804 renamed entity is an inherited operation, re-expand the call using the
27805 original operation, which is the one to call.
27806 Detect attempt to inline parameterless recursive subprogram.
27807 (Represented_As_Scalar): Fix to work properly with private types
27808 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27809 accurate estimate. Yields True in far fewer cases than before,
27810 improving the quality of code that depends on this test.
27811
27812 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27813 over both visible and private declarations to remove them from tree,
27814 and mark subprograms declared in package as eliminated, to prevent
27815 spurious use in subsequent compilation of generic units in the context.
27816
27817 * exp_util.ads: Minor cleanup in variable names
27818
27819 * sem_eval.ads, sem_eval.adb: Minor reformatting
27820 (Compile_Time_Known_Bounds): New function
27821
27822 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27823
27824 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27825 determining whether an unchecked conversion is needed for the argument
27826 of an initialization call.
27827
27828 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27829
27830 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27831 that appears in the instantiation rather than the internal subtype
27832 generated in the wrapper package, to avoid anomalies in gigi when the
27833 target is derived from a private type whose full view is an access type.
27834
27835 2005-03-15 Robert Dewar <dewar@adacore.com>
27836
27837 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27838 not needed.
27839 Add documentation to replace the use of this flag
27840 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27841 the x86_64.
27842
27843 2005-03-15 Thomas Quinot <quinot@adacore.com>
27844
27845 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27846 here from exp_attr so it can be shared between exp_attr and exp_dist.
27847 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27848 all TSS names, not a subset thereof, and the previous name introduced
27849 an unnecessarily confusion that a distinction might exist between
27850 "OK" TSS names and some "not OK" TSS names.
27851
27852 2005-03-15 Doug Rupp <rupp@adacore.com>
27853
27854 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27855 Command_Name.
27856
27857 2005-03-15 Pascal Obry <obry@adacore.com>
27858 Eric Botcazou <ebotcazou@adacore.com>
27859
27860 PR ada/20226
27861 PR ada/20344
27862 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27863 when IN_RTS. This is to work around a bootstrap path problem.
27864
27865 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27866 table and pass it to __gnat_install_SEH_handler().
27867 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27868
27869 * lang.opt: Fix specification of -fRTS=.
27870
27871 2005-03-15 Doug Rupp <rupp@adacore.com>
27872 Bernard Banner <banner@adacore.com>
27873 Vincent Celier <celier@adacore.com>
27874 Arnaud Charlet <charlet@adacore.com>
27875
27876 PR ada/6852
27877 This change works fine when gnatlib is built from the gcc directory,
27878 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27879 is not passed to ada/Makefile.in, so more work is needed by a
27880 Makefile/configure expert.
27881
27882 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27883 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27884 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27885 for Linux x86.
27886 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27887 Run ranlib on libgccprefix.a
27888 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27889 (ADA_INCLUDE_SRCS): Split Ada packages.
27890
27891 2005-03-15 Robert Dewar <dewar@adacore.com>
27892
27893 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27894
27895 * impunit.adb: Add GNAT.UTF_32
27896
27897 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27898
27899 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27900 now uses GNAT.UTF_32).
27901
27902 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27903 capabilities for categorizing characters using Unicode categories
27904
27905 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27906
27907 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27908 instantiation that has been rewritten as a package body, retrieve spec
27909 to generate proper name for implicit_with_clause.
27910 (Install_Parents): Recognize a parent that is an instantiation but has
27911 been rewritten as a package declaration during analysis.
27912
27913 2005-03-15 Javier Miranda <miranda@adacore.com>
27914 Ed Schonberg <schonberg@adacore.com>
27915
27916 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27917 parameter reported some error we immediately return. This improves the
27918 behaviour of the frontend in case of errors.
27919 (Install_Parent, Remove_Parent): Introduce new flag
27920 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27921 ancestor of a generic child unit, when the child is being instantiated.
27922 (Inline_Instance_Body): If we are compiling the private
27923 part or the body of a child unit, restore the proper visibility of the
27924 parents after compiling the instance body.
27925
27926 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27927 Javier Miranda <miranda@adacore.com>
27928
27929 PR ada/15608
27930 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27931 of a private type, in which case it is underlying_type that denotes
27932 the proper task. Also modified to use the new entity attribute
27933 that is directly available in the task type and task subtype entities
27934 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27935 arrays when other dimensions than the first are constrained by
27936 discriminants of an enclosing record.
27937 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27938 a combination of indexed and selected components, find ultimate entity
27939 and generate the appropriate reference for it, to suppress spurious
27940 warnings.
27941 (Note_Possible_Modification): If an entity name has no entity, return.
27942 (Is_Variable): A function call never denotes a variable.
27943 (Requires_Transient_Scope): For record types, recurse only on
27944 components, not on internal subtypes that may have been generated for
27945 constrained components.
27946
27947 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27948
27949 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27950 Eliminated as candidates for resolution. Both efficient, and avoids
27951 anomalies with operators declared in deleted code.
27952 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27953 expansion is disabled (as when compiling a generic) to prevent spurious
27954 warnings on prefixes of selected components.
27955
27956 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27957
27958 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27959 attached to a list before checking whether it appears in the private
27960 declarations of the current package.
27961 (Make_Inequality_Operator): Insert declaration in proper declarative
27962 list rather than just setting the Parent field, so that
27963 Is_Private_Declaration can handle it properly.
27964
27965 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27966
27967 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27968 a renaming a body, check that the renamed subprogram in not intrinsic.
27969 (Find_Direct_Name): If several use_visible entities hide
27970 each other, and the context is a predefined file compiled through
27971 rtsfind, keep only the entity that comes from a predefined file.
27972
27973 2005-03-15 Geert Bosch <bosch@adacore.com>
27974
27975 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27976 long float padding to also cover AMD64 and IA64.
27977
27978 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27979
27980 * s-imgwch.adb: Add with and use of Interfaces.
27981 (Img_Wide_Character): Change type of Val to Unsigned_16.
27982 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27983
27984 2005-03-15 Matthew Gingell <gingell@adacore.com>
27985
27986 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27987
27988 2005-03-15 Robert Dewar <dewar@adacore.com>
27989
27990 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27991
27992 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27993
27994 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27995
27996 2005-03-15 Robert Dewar <dewar@adacore.com>
27997
27998 * s-bitops.adb, s-bitops.ads,
27999 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
28000 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
28001 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
28002 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
28003 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
28004 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
28005 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
28006 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
28007 reformatting.
28008
28009 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28010
28011 * utils2.c (build_binary_op): Fix typo.
28012
28013 2005-03-15 Doug Rupp <rupp@adacore.com>
28014
28015 * s-crtl.ads (popen,pclose): New imports.
28016
28017 2005-03-15 Cyrille Comar <comar@adacore.com>
28018
28019 * comperr.adb (Compiler_Abort): remove references to obsolete
28020 procedures in the bug boxes for various GNAT builds.
28021
28022 2005-03-15 Vincent Celier <celier@adacore.com>
28023
28024 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
28025
28026 2005-03-15 Geert Bosch <bosch@adacore.com>
28027 Arnaud Charlet <charlet@adacore.com>
28028 Robert Dewar <dewar@adacore.com>
28029 Cyrille Comar <comar@adacore.com>
28030 Sergey Rybin <rybin@adacore.com>
28031
28032 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
28033 too specific and long-winded to be appropriate for the GNAT User's
28034 Guide.
28035 Warn about use of GCC switches not documented in the GNAT User's Guide,
28036 as these may cause generated code to not conform to Ada semantics.
28037 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
28038 Add documentation for -gnat95 and -gnat05 switches
28039 Remove paragraph documenting obsolete way to refer to third party
28040 libraries.
28041 Add a few references to Ada_05 that were missing.
28042 Update documentation on -gnatZ/-gnatL.
28043 Document limitation when using -m64 under Solaris.
28044 Change the "Name Casing" subsection of the pretty-printer section
28045 according to the changes in the dictionary processing.
28046
28047 * gnat_rm.texi: Document the Ada_05 pragma.
28048 Section on record representation clauses describes the new more
28049 relaxed rules about placement of large packed bit array components.
28050 Add documentation of GNAT.UTF_32
28051
28052 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
28053
28054 * misc.c (gnat_post_options): Turn off structural
28055 aliasing for now.
28056
28057 2005-03-08 Laurent Guerby <laurent@guerby.net>
28058
28059 * system-linux-sparc.ads: Fix typo in previous commit.
28060
28061 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
28062 Laurent Guerby <laurent@guerby.net>
28063
28064 PR ada/20035
28065 * system-linux-sparc.ads: New.
28066 * Makefile.in: Add sparc linux entry.
28067
28068 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
28069
28070 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
28071 parameters as unused.
28072
28073 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
28074 Partial merge from libada-gnattools-branch:
28075
28076 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28077 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28078 into code in gnattools/Makefile.in. Remove direct dependencies on
28079 stamp-tools by tools clauses.
28080 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28081 * config-lang.in: Add gnattools to $lang_dirs.
28082
28083 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
28084
28085 PR ada/19942
28086 * utils.c (gnat_type_for_mode): Return null instead of ICE because
28087 we asked for an unknown mode.
28088
28089 2005-02-12 Richard Henderson <rth@redhat.com>
28090
28091 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28092 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28093
28094 2005-02-10 Andreas Jaeger <aj@suse.de>
28095
28096 * init.c (__gnat_initialize): Mark parameter as unused.
28097
28098 2005-02-09 Doug Rupp <rupp@adacore.com>
28099
28100 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28101 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28102
28103 2005-02-09 Doug Rupp <rupp@adacore.com>
28104
28105 * gnatchop.adb (dup, dup2),
28106 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28107
28108 * gnatlbr.adb (mkdir),
28109 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
28110
28111 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28112
28113 2005-02-09 Doug Rupp <rupp@adacore.com>
28114
28115 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28116
28117 2005-02-09 Robert Dewar <dewar@adacore.com>
28118 Thomas Quinot <quinot@adacore.com>
28119 Javier Miranda <miranda@adacore.com>
28120 Pascal Obry <obry@adacore.com>
28121 Ed Schonberg <schonberg@adacore.com>
28122 Doug Rupp <rupp@adacore.com>
28123 Gary Dismukes <dismukes@adacore.com>
28124 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28125
28126 * g-zstspl.ads: New file.
28127
28128 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28129
28130 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28131 Ada 95 mode
28132 Add definition of Wide_Wide_Space for AI-285
28133
28134 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28135 interface (to support Ada 95 and Ada 2005 units).
28136 Add Unbounded_IO files
28137 Add entries for Wide_Wide packages for AI-285
28138 Add list of containers packages to Ada 2005 unit list
28139
28140 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28141 support new Unbounded_IO package cleanly.
28142
28143 * g-utf_32.ads, g-utf_32.adb: New files.
28144
28145 * Makefile.rtl: Add entry for g-utf_32
28146 Add new files for Unbounded_IO
28147 Adjust make file for new AI-285 wide wide packages
28148 Add AI-302 containers to the run time.
28149
28150 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28151 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28152 subprograms for AI-301.
28153
28154 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28155
28156 * a-stunau.ads: Minor comment correction
28157
28158 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28159 etc.
28160 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28161 (Check_RPC): Update to match changes in expanded code.
28162 Clean up unused entity.
28163
28164 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28165 was not taken into account.
28166 This includes proper initialization with Normalize_Scalars.
28167 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28168 normalize scalars cases (particularly the latter) to do a better job
28169 of finding invalid representations.
28170
28171 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28172
28173 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28174 used
28175
28176 * exp_dist.adb: Add support for wide wide character type
28177 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28178 private part, generate stub bodies at the end of the private part,
28179 not the visible part.
28180 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28181 PolyORB support.
28182 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28183 generic wrapper to execute final processing after completing the
28184 expansion of the RPC receiver for an RACW.
28185
28186 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28187 packages and attributes.
28188 (Preset_Names): Addition of the new reserved words of Ada 2005,
28189 that is interface, overriding and synchronized.
28190 (Get_Pragma_Id): Give support to the use of the new reserved word
28191 "interface" as a pragma name.
28192 (Is_Pragma_Name): Give support to the use of the new reserved word
28193 "interface" as a pragma name.
28194 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28195 attribute implementation.
28196
28197 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28198 checks to entities that are output parameters of Asm operations.
28199 Handle the Stream_Size attribute.
28200 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28201
28202 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28203
28204 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28205 for second parameter being 0.0.
28206 Add support for wide wide character type.
28207 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28208
28209 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28210 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28211 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28212 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28213 for wide wide character cases.
28214
28215 * cstand.adb: Create entities for Wide_Wide_Character and
28216 Wide_Wide_String.
28217
28218 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28219 accordance with AI-258.
28220 Add new declarations for 16/32 bit C character types (Part of AI285)
28221
28222 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28223 (Obsolescent_Warning): New field
28224 (Rep_Clause): New local subprogram used to share code. Returns the rep
28225 clause for which the name is given in parameter.
28226 (Has_Stream_Size_Clause): New routine.
28227 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28228 (Address_Clause): Implementation is now using Rep_Clause.
28229 (Alignment_Clause): Idem.
28230 (Size_Clause): Idem.
28231
28232 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28233 entity in non-Ada 2005 mode and generate warning.
28234
28235 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28236 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28237
28238 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28239 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28240 on the named unit if the pragma is not in the current compilation unit,
28241 so that elaboration calls in the current unit can set up an elaboration
28242 dependency on the named unit, as needed.
28243 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28244 subprogram as well as for subprograms declared within a package.
28245 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28246 pragma overriding.
28247
28248 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28249 to z) to avoid some instances of duplication for Wide_Wide packages.
28250
28251 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28252 characters.
28253
28254 * scn.adb: Char_Literal_Value field is now a Uint
28255
28256 * scng.adb: Significant rewrite to handle new Ada 2005 features
28257 allowing wide and wide wide characters in program text, e.g. for
28258 identifiers, as described in AI-285.
28259 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28260 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28261 (Scan): Give support to the new reserved words.
28262
28263 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28264 warning notifying that interface, overriding, and synchronized are
28265 new reserved words.
28266 (P_Pragma): Allow the use of the new reserved word "interface" as
28267 a pragma name.
28268
28269 * gnatls.adb, gnatbind.adb,
28270 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28271 identifiers named "interface" to "SAL_Interface".
28272
28273 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28274 (Structured Exception handling).
28275 (Gen_Main_C): Idem.
28276
28277 * bindgen.adb:
28278 (Gen_Main_Ada): Set the default exit code if specified.
28279 (Gen_Main_C): Likewise.
28280 Part of *DC20-006.
28281 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28282 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28283
28284 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28285 new -Xnnn switch.
28286
28287 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28288 has a collision with the new Ada 2005 "interface" reserved word.
28289
28290 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28291 generate a warning notifying that interface, overriding, and
28292 synchronized are new reserved words.
28293
28294 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28295 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28296 and Tok_Synchronized.
28297
28298 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28299 "dispatching" rather than "primitive" operations, since dispatching
28300 calls are now allowed to abstract formal subprograms (which are not
28301 primitive).
28302 Char_Literal_Value field is now a Uint
28303 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28304 compute the actual subtype of the designated object to impose the proper
28305 index constraints.
28306 (Resolve_Selected_Component): Do not insert an access check if the
28307 prefix is an access type: such a node is expanded into an explicit
28308 dereference, on which the access check is performed anyway. Removes
28309 expensive duplicate checks.
28310 (Resolve_Call): Use new flag Is_Obsolescent and field
28311 Obsolescent_Warning so that pragma Obsolescent works on library
28312 subprograms.
28313 Add support for wide wide character type
28314 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28315 value by a warning message.
28316 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28317 as fixed-point, and one of the operands is non-static and universal, it
28318 can only be an illegal exponentiation operation, in which case there is
28319 no real value to retrieve.
28320
28321 * exp_strm.adb: Add support for wide wide character type
28322 (Build_Elementary_Input_Call): Compute the size of the stream element by
28323 querying the rep chain to find the Stream_Attribute attribute value.
28324 (Build_Elementary_Write_Call): Ditto.
28325
28326 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28327 Add support for wide wide character type
28328 Replace the error messages on wrong null-exclusion value by warnings
28329 as described in Ada 2005.
28330 (Resolve_Extension_Aggregate): Document the fact that the error
28331 message on class-wide expressions in extensions aggregates.
28332
28333 * sem_case.adb: Add support for wide wide character type
28334
28335 * sem_ch13.adb: Add support for wide wide character type
28336 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28337
28338 * sem_ch3.adb: Add support for wide wide character type
28339 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28340 now-useless Itype, to prevent cascaded errors on a compiler built
28341 without -gnatp.
28342
28343 * sem_ch8.adb: Add with and use of Sem_Disp.
28344 (Analyze_Subprogram_Renaming): Replace unclean uses of
28345 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28346 of Corresponding_Spec to Empty).
28347 (Attribute_Renaming): Replace use of Corresponding_Spec with
28348 Corresponding_ Formal_Spec and simplify condition.
28349 (Use_One_Package): Check that scope of homonym of identifier is defined,
28350 before checking whether it is a wrapper package.
28351 Add support for wide wide character type
28352
28353 * sem_eval.adb: Add support for wide wide character type.
28354 (Eval_Arithmetic_Op): Check for compile time known signed integer
28355 overflow in the non-static case.
28356 (Subtypes_Statically_Match): A formal scalar type and its base type do
28357 not statically match.
28358
28359 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28360 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28361 subtype).
28362 (Unit_Declaration_Node): Ditto.
28363 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28364 has a packed array type, the prefix has been rewritten into a type
28365 conversion. Determine variable-ness from the converted expression.
28366 Handle wide wide character cases.
28367
28368 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28369
28370 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28371 Remove ["0A"] from comment, since it can look like a line terminator.
28372 Currently we don't permit this, but this is under discussion by the
28373 ARG, and it is easy enough to use a different example.
28374
28375 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28376 handling UTF-32 encoding for wide wide character.
28377 Implement new brackets coding ["hhhhhhhh"]
28378 Add UTF-8 encodings for full UTF-32 range
28379
28380 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28381
28382 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28383 bit range Add full UTF-32 support.
28384 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28385 notify that constraint error will be raised at run-time
28386 because a null value is assigned to a null-excluding object.
28387 Remove some obsolete declarations and make Char_Code
28388 unsigned.
28389
28390 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28391 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28392 Rcheck subprograms.
28393
28394 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28395 wrong null-exclusion value by a warning message.
28396 (Enable_Range_Check): Do range check if the prefix is an
28397 explicit dereference whose designated object is an unconstrained array.
28398 Current algorithm for removing duplicate checks is over-eager in this
28399 case.
28400
28401 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28402 null-exclusion value by a warning message
28403
28404 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28405 completely. Add support for Uint2 field
28406
28407 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28408 exp_prag.adb: Char_Literal_Value field is now a Uint.
28409
28410 * exp_util.adb (Insert_Actions): Replace
28411 N_Formal_Subprogram_Declaration by
28412 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28413 Char_Literal_Value field is now a Uint.
28414
28415 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28416 defined for subprogram renaming declarations. When set, the field
28417 indicates the defining entity of a corresponding formal subprogram
28418 when the renaming corresponds to a formal subprogram association in an
28419 instantiation.
28420 (Set_Corresponding_Formal_Spec): New procedure to return
28421 Corresponding_Formal_Spec field.
28422 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28423 (which is now a subtype).
28424 Char_Literal_Value field is now a Uint
28425
28426 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28427 pointer to the base of the dispatch table.
28428 Minor changes to comments.
28429 (Controlling_Type): New function for determining the tagged type
28430 associated with a tagged primitive subprogram.
28431 (Expand_Dispatching_Call): Add support for a controlling actual that is
28432 directly a value of type Ada.Tag rather than a tagged object.
28433
28434 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28435 describing the new layout.
28436 (Dispatch_Table): The expander computes the actual array size, allocates
28437 the Dispatch_Table record accordingly, and generates code that displaces
28438 the base of the record after the Typeinfo_Ptr component. The access to
28439 these components is done by means of local functions.
28440 (Offset_To_Top): New function.
28441 (Typeinfo_Ptr): New function.
28442 (Get_TSD): Modified to access the new position of the TSD.
28443 (Set_TSD): Modified to save the TSD in its new position.
28444
28445 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28446 case of formal abstract subprograms. Add check and message for -gnat05.
28447 Update comments.
28448
28449 * sem_ch12.adb: Add with and use for Sem_Disp.
28450 (Analyze_Associations): Minor change from "=" to "in" for use of
28451 N_Formal_Subtype_Declaration (which is now a subtype).
28452 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28453 N_Formal_Subtype_Declaration (which is now a subtype).
28454 (Analyze_Formal_Subprogram): Add handling for
28455 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28456 dispatching, setting the controlling status of the formal parameters
28457 and result, and issuing an error if there is no controlling type for
28458 the formal subprogram.
28459 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28460 which is an unclean use of that field, we set the new field
28461 Corresponding_Formal_Spec to make the formal subprogram available to
28462 processing in Analyze_Subprogram_Declaration.
28463 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28464 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28465 Constrained, so that it is is does not statically match its anonymous
28466 base type.
28467
28468 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28469 abstract formal subprograms in error check for functions returning
28470 abstract types. Set scope of new designator for
28471 a parameterless subprogram, so that it is available when checking the
28472 body for nested subprograms, before full analysis of said body.
28473 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28474 subprogram only if inner one comes from source.
28475 (Analyze_Function_Call): If the call is given in object notation, the
28476 analysis of the name rewrites the node and analyzes it with the proper
28477 argument list. After analyzing the name, if the call has been rewritten
28478 and the result type is set, no further analysis is needed.
28479 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28480 mark in function specification, in a context where the formals are
28481 visible and hide outer homographs.
28482
28483 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28484 as the tagged type for the cases of abstract formal subprograms and
28485 renamings of those. Clean up spec comments.
28486 (Check_Dispatching_Context): Add error message to indicate "abstract
28487 procedure", covering the case of a call to a formal abstract procedure
28488 that has statically tagged operands.
28489 (Check_Dispatching_Call): Check for the case of an actual given by
28490 a tag-indeterminate function call whose type is an ancestor of the
28491 containing call's associated tagged type. This situation can occur
28492 for inherited primitives with function defaults. In this case we
28493 use the tagged type's tag directly as the controlling argument for
28494 the calls.
28495 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28496
28497 * sprint.adb (Sprint_Node_Actual): Split
28498 N_Formal_Subprogram_Declaration into two alternatives for the new
28499 cases N_Formal_Abstract_Subprogram_Declaration and
28500 N_Formal_Concrete_Subprogram_Declaration.
28501 Char_Literal_Value field is now a Uint.
28502
28503 * trans.c: Get rid of junk Uint2 reference.
28504 Char_Literal_Value field is now a Uint.
28505 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28506 (gigi): Correct third arg to gimplify_body.
28507
28508 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28509 (TYPE_LANG_FLAG_0): Check for record or union.
28510
28511 * treepr.adb: Char_Literal_Value field is now a Uint
28512
28513 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28514 UI_From_CC.
28515
28516 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28517 Add full UTF-32 support
28518 Char_Code is now 32 bits
28519
28520 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28521 wide character UTF_32 line terminators.
28522 Initialize Main_Source_File to avoid error when no main
28523 source is loaded.
28524
28525 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28526 (Main_Source_File) when no main source has been loaded, to avoid
28527 potential crash.
28528
28529 2005-02-09 Robert Dewar <dewar@adacore.com>
28530
28531 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28532 Fix name of Set routine
28533
28534 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28535 fixed packages.
28536
28537 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28538 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28539 fixed packages
28540
28541 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28542 forms of Get_Line subprograms for AI-301.
28543
28544 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28545 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28546 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28547 a-stwima.ads: Minor reformatting.
28548
28549 2005-02-09 Doug Rupp <rupp@adacore.com>
28550 Thomas Quinot <quinot@adacore.com>
28551
28552 * adaint.c, adaint.h
28553 [VMS] (to_ptr32): New function.
28554 (MAYBE_TO_PTR32): New macro.
28555 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28556 for pointer size.
28557 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28558 [VMS] (#define fork()): Remove since unneccessary.
28559 (__gnat_set_close_on_exec): New routine to support
28560 GNAT.OS_Lib.Set_Close_On_Exec.
28561
28562 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28563 the parent side as close-on-exec so that they are not inherited by the
28564 child.
28565
28566 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28567 set or clear the FD_CLOEXEC flag on a file descriptor.
28568
28569 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28570 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28571
28572 PR ada/19386
28573 * decl.c:
28574 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28575 on the field if Pragma Component_Alignment (Storage_Unit).
28576 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28577 side-effects as if it were a constant; also make SAVE_EXPR to protect
28578 side-effects.
28579 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28580 UNION_TYPE.
28581 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28582 (components_to_record): Test it.
28583 Fix improper usage of REFERENCE_CLASS_P.
28584
28585 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28586 RECORD_TYPE.
28587
28588 * utils2.c: Minor reformatting.
28589
28590 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28591 handle other cases like RECORD_TYPE.
28592
28593 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28594
28595 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28596
28597 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28598 component of an array of arrays in an assignment context, and the
28599 aggregate has component associations that require sliding on
28600 assignment, force reanalysis of the aggregate to generate a temporary
28601 before the assignment.
28602 (Must_Slide): Make global to the package, for use in Gen_Assign.
28603
28604 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28605
28606 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28607 unchecked union with no inferable discriminants, return a
28608 Raise_Program_Error node, rather than inserting it at the point the
28609 type is frozen.
28610 (Expand_Record_Equality, Component_Equality): Handle properly the case
28611 where some subcomponent is an unchecked union whose generated equality
28612 code raises program error.
28613
28614 2005-02-09 Doug Rupp <rupp@adacore.com>
28615
28616 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28617 [VMS] (#define exit hack): Remove.
28618
28619 2005-02-09 Pascal Obry <obry@adacore.com>
28620 Arnaud Charlet <charlet@adacore.com>
28621
28622 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28623 address of the exception registration. The Win32 version of this
28624 routine calls __gnat_install_SEH_handler() to initialize the SEH
28625 (Structured Exception Handling) handler.
28626 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28627 SEH (Structured Exception Handling) now.
28628 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28629 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28630 preprocessor condition protecting the call to the extra eh setup
28631 subprogram, which is only available for the ppc target.
28632 (__gnat_clear_exception_count): replaced reference to
28633 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28634
28635 * seh_init.c: New file.
28636
28637 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28638 (GNATBIND_OBJS): Idem.
28639
28640 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28641 routine takes a new parameter (a pointer to the exception registration
28642 for the SEH (Structured Exception Handling) support.
28643
28644 * raise.h: (__gnat_install_SEH_handler): New prototype.
28645 Update copyright notice.
28646
28647 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28648 record and initialize it by calling __gnat_install_SEH_handler.
28649
28650 2005-02-09 Vincent Celier <celier@adacore.com>
28651
28652 * make.adb (Gnatmake): Do not fail when the main project has no object
28653 directory.
28654
28655 2005-02-09 Doug Rupp <rupp@adacore.com>
28656
28657 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28658 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28659 [VMS]: Add translations for g-enblsp.adb.
28660
28661 * s-asthan-vms.adb: Removed.
28662 * s-asthan-vms-alpha.adb: Added.
28663
28664 2005-02-09 Pascal Obry <obry@adacore.com>
28665
28666 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28667 (LIBGNAT_OBJS): Add seh_init.o.
28668
28669 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28670
28671 PR ada/16592
28672 * Makefile.in: Link all gnat tools with -static-libgcc, since
28673 -shared-libgcc is now used by default on some systems (e.g. linux with
28674 recent binutils).
28675 Remove references to Makefile.prolog/generic, no longer used.
28676
28677 2005-02-09 Vincent Celier <celier@adacore.com>
28678
28679 * prj-makr.adb (Process_Directory): Put file name in canonical case
28680 before matching against the patterns.
28681 If gnatname has been invoked as <prefix>-gnatname
28682 then invoke the compiler as <prefix>-gcc, not just "gcc".
28683
28684 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28685
28686 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28687 with expansion disabled. The actual subtype is needed among other
28688 places when the selected component appears in the context of a loop
28689 bound, and denotes a packed array.
28690 (Operator_Check): Always use the first subtype in the
28691 error message, to avoid the appearance of internal base types.
28692 (Transform_Object_Operation): Copy each actual in full
28693 to the parameter associations of the constructed call, rather than
28694 using the shallow copy mechanism of New_Copy_List. This ensures that
28695 the chaining of named associations is done properly.
28696 (Complete_Object_Operation): Rewrite node, rather than
28697 replacing it, so that we can trace back to the original selected
28698 component.
28699
28700 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28701 and calls that use object notation, if the called function is not
28702 declared in a withed unit, place the elaboration constraint on the
28703 unit in the context that makes the function accessible.
28704 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28705 imposes an elaboration constraint between two packages.
28706
28707 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28708
28709 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28710 views of a private type after handling its private dependents, to
28711 maintain proper stack discipline between entry and exit from the
28712 package.
28713
28714 2005-02-09 Cyrille Comar <comar@adacore.com>
28715
28716 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28717 Minor reformatting.
28718
28719 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28720
28721 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28722 fields for foreign threads.
28723
28724 2005-02-09 Doug Rupp <rupp@adacore.com>
28725
28726 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28727 recursion warnings when compiled with -gnatdm.
28728
28729 2005-02-09 Robert Dewar <dewar@adacore.com>
28730
28731 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28732 Slight fix to documentation of -gnaty with no parameters
28733
28734 * xr_tabls.ads: Add ??? comment for missing overall comment
28735
28736 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28737 we now use by default.
28738
28739 * xsnames.adb: Adjust end of file test to look for five space followed
28740 by '#' instead of six spaces. The format of xsnames.adb was modified
28741 in the last update.
28742
28743 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28744 identifier.
28745
28746 * clean.adb: Minor reformatting.
28747
28748 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28749 gnatname.adb: Minor reformatting
28750 Add 2005 to copyright output when utility is run
28751
28752 * csets.adb: Eliminate obsolete comment
28753
28754 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28755 Update comments.
28756
28757 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28758
28759 2005-02-09 Sergey Rybin <rybin@adacore.com>
28760
28761 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28762 the difference between compact and incompact layout and add the record
28763 representation clause to the example illustrating different layouts.
28764 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28765 component clauses").
28766
28767 2005-02-09 Florian Villoing <villoing@adacore.com>
28768
28769 * gnat_ugn.texi: Fix typos.
28770 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28771 @file.
28772 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28773 in the generated documentation.
28774
28775 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28776
28777 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28778 longer supported.
28779 Update linker wrapper when linking with non GNU C++.
28780
28781 2005-02-09 Pascal Obry <obry@adacore.com>
28782
28783 * gnat_ugn.texi:
28784 Document the procedure to debug the DllMain routine on Windows.
28785 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28786 ZCX mode.
28787 Document new BIND qualifer /RETURN_CODES=VMS.
28788
28789 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28790
28791 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28792 Edited gnatmetric chapter
28793
28794 2005-02-09 Robert Dewar <dewar@adacore.com>
28795
28796 * gnat_rm.texi:
28797 Changes to document new wide wide character support
28798 For AI-285
28799 Update documentation on Normalize_Scalars and Initialize_Scalars
28800
28801 2005-02-09 Pascal Obry <obry@adacore.com>
28802
28803 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28804
28805 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28806
28807 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28808 from the VxWorks kernel) that is needed for getting the active
28809 priority of the different tasks.
28810
28811 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28812 Use a pragma Elaborate_Body in the spec file instead.
28813 Noticed by code reading.
28814
28815 2005-02-09 Thomas Quinot <quinot@adacore.com>
28816
28817 * exp_util.ads: Minor correction in comment.
28818
28819 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28820
28821 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28822 since this procedure is now too complex to be worth inlining.
28823
28824 2005-02-09 Richard Henderson <rth@redhat.com>
28825
28826 * utils.c (gnat_define_builtin): Remove.
28827 (gnat_install_builtins): Use build_common_builtin_nodes.
28828
28829 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28830
28831 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28832 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28833 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28834 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28835 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28836 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28837 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28838 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28839 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28840 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28841 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28842 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28843 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28844 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28845 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28846 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28847 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28848 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28849 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28850 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28851 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28852 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28853 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28854 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28855 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28856 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28857 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28858 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28859 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28860 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28861 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28862 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28863 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28864 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28865 library.
28866
28867 2005-01-27 Laurent Guerby <laurent@guerby.net>
28868
28869 * Makefile.in: Fix a-intnam.ads from previous commit,
28870 add 2005 to copyright.
28871 * a-intman-rtems.ads: Renamed to...
28872 * a-intnam-rtems.ads:
28873
28874 2005-01-27 Laurent Guerby <laurent@guerby.net>
28875
28876 * Makefile.in: Rename GNAT RTEMS specific files.
28877 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28878 5rosinte.ads, 5rparame.adb: Replaced by files below.
28879 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28880 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28881
28882 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28883 Laurent Guerby <laurent@guerby.net>
28884
28885 PR ada/19488
28886 * 5rosinte.ads: Add No_Key constant.
28887 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28888 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28889
28890 2005-01-26 Laurent Guerby <laurent@guerby.net>
28891
28892 PR ada/19414
28893 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28894
28895 2005-01-20 Richard Henderson <rth@redhat.com>
28896
28897 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28898 a-intnam-linux.ads and system-linux-alpha.ads.
28899 * a-intnam-linux-alpha.ads: Remove file.
28900 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28901 * system-linux-alpha.ads: New file.
28902
28903 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28904
28905 PR ada/13470
28906 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28907 set to the new string.
28908
28909 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28910
28911 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28912 to True.
28913
28914 2005-01-18 Richard Henderson <rth@redhat.com>
28915
28916 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28917 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28918 for alpha-linux.
28919 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28920
28921 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28922
28923 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28924 (GCC_ZCX_Support): Likewise.
28925
28926 2005-01-11 Bastian Blank <waldi@debian.org>
28927
28928 * system-linux-s390.ads: Define Preallocated_Stacks.
28929 * system-linux-s390x.ads: Likewise.
28930
28931 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28932
28933 * gnat_ugn.texi: Fix texi errors with null variables.
28934
28935 2005-01-03 Thomas Quinot <quinot@adacore.com>
28936
28937 * gen-soccon.c: New utility program to generate g-soccon.ads
28938 automatically.
28939
28940 * socket.c, gsocket.h: Split inclusion of system header files into a
28941 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28942
28943 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28944 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28945 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28946 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28947 should not be edited by hand anymore, but should be regenerated using
28948 gen-soccon.
28949
28950 2005-01-03 Robert Dewar <dewar@adacore.com>
28951 Ed Schonberg <schonberg@adacore.com>
28952 Vincent Celier <celier@adacore.com>
28953
28954 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28955 on/off, since this is an obsolescent feature, for which we now generate
28956 a warning.
28957
28958 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28959 warning mode is set and obsolescent usage of this attribute occurs.
28960 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28961 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28962 predates, and partly motivates, the adoption of the AI.
28963 Implement new Ada 2005 attribute Mod
28964
28965 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28966 attribute Mod.
28967
28968 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28969
28970 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28971 pragma restrictions.
28972 New entry for Ada 2005 attribute Mod.
28973
28974 * par-prag.adb:
28975 Add recognition of new pragma Restrictions No_Dependence
28976 Recognize restriction No_Obsolescent_Features at parse time
28977
28978 * bcheck.adb: Add circuitry for checking for consistency of
28979 No_Dependence restrictions.
28980
28981 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28982 restrictions.
28983
28984 * restrict.ads, restrict.adb: Add subprograms to deal with
28985 No_Dependence restrictions.
28986
28987 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28988 restrictions.
28989
28990 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28991 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28992
28993 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28994 dummy parameter to scng instantiation.
28995 Needed for new restriction No_Obsolescent_Features
28996
28997 * scn.adb: (Obsolescent_Check): New procedure
28998 Needed for new restriction No_Obsolescent_Features
28999
29000 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
29001 specified by AI-285, needed for implementation of AI-388 (adding greek
29002 pi to Ada.Numerics).
29003 Add new generic formal to scng, needed for new restriction
29004 No_Obsolescent_Features.
29005
29006 * s-rident.ads: Add new restriction No_Obsolescent_Features.
29007
29008 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
29009 restrictions lines.
29010 (Scan_ALI): When finding an unexpected character on an R line, raise
29011 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
29012 Ignore_Errors is True, default restrictions are set and scanning of the
29013 ALI file continues with the next line. Also, when Bad_R_Line is raised
29014 and Ignore_Errors is True, skip to the end of le line.
29015
29016 * sem_ch10.adb: Check that explicit with's do not violate
29017 No_Dependence restrictions.
29018 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
29019 illegal context clauses containing child units of instance.
29020
29021 * sem_prag.adb: Processing and checking for new No_Dependence
29022 restrictions.
29023 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
29024 analyze and check the External argument.
29025
29026 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
29027
29028 2005-01-03 Robert Dewar <dewar@adacore.com>
29029
29030 * atree.adb: Add a fifth component to entities
29031 This allows us to add 32 flags and four new fields
29032
29033 * atree.ads: Add a fifth component to entities
29034 This allows us to add 32 flags and four new fields
29035
29036 * einfo.ads, einfo.adb: Document new fields and new flags now available
29037 Add routines for printing new fields
29038
29039 * treepr.adb: Call routines to print out additional fields if present
29040
29041 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29042
29043 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29044 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29045
29046 * Makefile.in: Add support to build shared Ada libraries on solaris x86
29047 Remove gpr2make, replaced by gprmake.
29048 Remove references to gnatmem and libaddr2line.
29049 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29050 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29051 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29052 a-numaux-darwin.ads and a-numaux-darwin.adb
29053 Enable mlib-tgt-lynxos.adb on lynxos.
29054
29055 * Make-lang.in: Remove rules for gpr2make.
29056 When generating sdefault.adb, do not call Relocate_Path
29057 on S3 for function Target_Name, as it is not a path.
29058 Remove references to gnatmem and libaddr2line.
29059
29060 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29061 files.
29062
29063 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
29064
29065 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29066 address is incompatible with its base type alignment constraints when
29067 this can be decided statically.
29068
29069 2005-01-03 Olivier Hainque <hainque@adacore.com>
29070
29071 * decl.c (compatible_signatures_p): New function. The intended purpose
29072 is to check if two function signatures for a call-site and a callee are
29073 compatible enough for the call to be valid. The underlying purpose is
29074 to check if a call to a mapped builtin is using the right interface.
29075 The current code actually does not check antyhing - this a placeholder
29076 for future refinements.
29077 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29078 builtin calls for convention Intrinsic.
29079
29080 * gigi.h (builtin_decl_for): Declare (new function).
29081
29082 * utils.c (gnat_install_builtins): Install the target specific builtins.
29083 (builtin_decl_for): New function, provide a dummy body for now.
29084
29085 2005-01-03 Geert Bosch <bosch@adacore.com>
29086
29087 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29088 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29089 (Pred): Implement in terms of Succ.
29090
29091 * trans.c (convert_with_check): Reimplement conversion of float to
29092 integer.
29093
29094 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29095 Vincent Celier <celier@adacore.com>
29096
29097 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29098 bounds can be negative, and must be declared Int, not Nat.
29099
29100 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29101 array is checked after using the index in the array.
29102
29103 * makegpr.adb (Add_Switches): Check if there is a package for the
29104 processor. If there is no package, do not look for switches.
29105
29106 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29107
29108 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29109 generation of predefined stream operations (specs and bodies) should
29110 proceed. Under various restrictions these subprograms must not be
29111 generated.
29112
29113 2005-01-03 Thomas Quinot <quinot@adacore.com>
29114
29115 * exp_dist.adb:
29116 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29117 amount of PCS-specific code in RACW stubs generation.
29118 (Copy_Specification): Set Etype on copied formal parameter entities, as
29119 this information is needed for PolyORB stubs generation.
29120 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29121 variable Dynamic_Async.
29122 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29123 (Build_RPC_Receiver_Specification): Make generic again, as recent
29124 changes have allowed RPC receivers to have the same profile for both
29125 variants of the PCS.
29126 Reorganise RPC receiver generation to reduce differences between the
29127 structure of GARLIC and PolyORB RPC receivers.
29128 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29129 PCS-specific.
29130 Simplify elaboration code for RCI packages.
29131
29132 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29133 generation to reduce differences between the structure of GARLIC and
29134 PolyORB RPC receivers.
29135
29136 * s-stratt.adb: Fix typo in comment.
29137
29138 2005-01-03 Thomas Quinot <quinot@adacore.com>
29139
29140 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29141 copied from Make_Init_Call).
29142
29143 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29144 reads and assignments on a temporary variable declared with appropriate
29145 discriminants.
29146
29147 2005-01-03 Robert Dewar <dewar@adacore.com>
29148
29149 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29150
29151 2005-01-03 Robert Dewar <dewar@adacore.com>
29152
29153 * i-cstrin.adb (Update): Do not append a null in form called with a
29154 String. This avoids unintended behavior.
29155
29156 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29157
29158 PR ada/17527
29159 * init.c: Fix warnings on Free BSD section.
29160
29161 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29162
29163 PR ada/16949
29164 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29165 xsinfo.adb).
29166
29167 2005-01-03 Vincent Celier <celier@adacore.com>
29168
29169 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29170 libraries when Unique_Compile is True (-u switch).
29171 (Gnatmake): ditto.
29172
29173 2005-01-03 Robert Dewar <dewar@adacore.com>
29174
29175 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29176 upper case letter or underscore after W, as allowed by spec.
29177
29178 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29179
29180 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29181 darwin port by using proper type definitions from header files.
29182 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29183
29184 2005-01-03 Robert Dewar <dewar@adacore.com>
29185
29186 * par.adb: Enhance error message handling for configuration file
29187 pragmas.
29188
29189 2005-01-03 Robert Dewar <dewar@adacore.com>
29190
29191 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29192 removed during the previous update (test properly for case of dividing
29193 largest negative number by -1, which generates overflow).
29194
29195 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29196 Sergey Rybin <rybin@adacore.com>
29197
29198 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29199 to use as the defining identifier for a formal package.
29200 (Remove_Parent): If the instance takes place within (an instance of)
29201 a sibling, preserve private declarations of common parent.
29202
29203 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29204
29205 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29206 to determine whether one of the operands is a fixed-point type for
29207 which a user-defined multiplication or division operation might be
29208 defined.
29209
29210 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29211 of access types are symmetric in Ada 2005: either designated type can
29212 be unconstrained.
29213
29214 2005-01-03 Vincent Celier <celier@adacore.com>
29215
29216 * s-fileio.adb (Temp_File_Record): Change length of string component
29217 Name from L_tmpnam + 1 to max_path_len + 1.
29218
29219 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29220
29221 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29222 Self_Id.Deferral_Level = 0.
29223 (Do_Pending_Action): Move this function to the spec.
29224
29225 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29226 Do_Pending_Action explicitely when needed, in case we're using
29227 No_Abort restrictions.
29228
29229 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29230 deferral level since it will not get changed by the generated code.
29231 Keeping a default value of 1 would prevent some operations (e.g.
29232 select or delay) to proceed successfully.
29233
29234 2005-01-03 Ben Brosgol <brosgol@adacore.com>
29235 Robert Dewar <dewar@adacore.com>
29236 Cyrille Comar <comar@adacore.com>
29237
29238 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29239 porting guide chapter (vms version).
29240 Revised doc title (removed "for native platforms") and subtitle.
29241 Add discussion on warning flag for obsolescent features. First we
29242 note that it applies to obsolete GNAT features, which was previously
29243 omitted. Second we contrast the behavior with that of the new
29244 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29245 Preliminary rewriting of GNAT & libraries chapter in order to take
29246 into account default project locations & new project manager
29247 capabilities.
29248
29249 2005-01-03 Robert Dewar <dewar@adacore.com>
29250
29251 * cstand.adb (Create_Operators): Clean up format and documentation of
29252 unary and binary operator result tables. No change in code, just
29253 reformatting and addition of comments.
29254
29255 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29256 sem_ch2.adb: Minor reformatting
29257
29258 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29259 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29260 comments for Tree_Read and Tree_Write.
29261
29262 2005-01-03 Pascal Obry <obry@adacore.com>
29263
29264 * exp_attr.ads: Minor reformatting.
29265
29266 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29267
29268 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29269 versions.
29270
29271 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29272
29273 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29274 whether the ancestor type is private, as may be the case with nested
29275 instantiations.
29276
29277 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29278
29279 PR ada/19128
29280 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29281
29282 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29283
29284 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29285 * utils2.c (build_unary_op): Likewise.
29286
29287 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29288
29289 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29290
29291 2004-12-19 Richard Henderson <rth@redhat.com>
29292
29293 * trans.c (gigi): Update gimplify_body call.
29294
29295 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29296
29297 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29298
29299 2004-12-07 Ed Falis <falis@adacore.com>
29300
29301 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29302 current task being suspended.
29303
29304 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29305 count.
29306 (__gnat_map_signal): removed test for current task being suspended.
29307
29308 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29309
29310 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29311 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29312 targets (such as AAMP).
29313
29314 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29315
29316 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29317 because the back-end may otherwise treat it as a redefinition of the
29318 old symbol.
29319
29320 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29321
29322 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29323
29324 * lang-specs.h: Accept --param.
29325
29326 2004-12-07 Vincent Celier <celier@adacore.com>
29327
29328 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29329 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29330 Current_Body_Suffix => Ada_Body_Suffix).
29331 Take into account Externally_Built attribute.
29332
29333 * clean.adb (In_Extension_Chain): Always return False when one of the
29334 parameter is No_Project.
29335 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29336 Ada_Language_Index).
29337 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29338 Process_Languages for procedure Parse).
29339
29340 * gnatcmd.adb (Carg_Switches): New table.
29341 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29342 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29343 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29344
29345 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29346 Header_Num and function Hash are now declared in package Prj,
29347 not Prj.Com.
29348
29349 * prj.adb (Suffix_Of): New function.
29350 (Set (Suffix)): New procedure.
29351 (Hash): One function moved from Prj.Com
29352 (Is_Present, Language_Processing_Data_Of): New functions
29353 (Set): Two new procedures
29354 (Add_Language_Name, Display_Language_Name): New procedures
29355
29356 * prj.ads: (Suffix_Of): New function
29357 (Set (Suffix)): New procedure
29358 Add several types and tables for multi-language support.
29359 (Header_Num): Type moved from Prj.Com
29360 (Hash): Two functions moved from Prj.Com
29361 (Is_Present, Language_Processing_Data_Of): New functions
29362 (Set): Two new procedures
29363 (Add_Language_Name, Display_Language_Name): New procedures
29364 (Naming): Component name changes:
29365 Current_Spec_Suffix => Ada_Spec_Suffix,
29366 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29367 Impl_Suffixes, Supp_Suffixes.
29368 (Project_Data): New components: Externally_Built, Supp_Languages,
29369 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29370 Default_Linker_Path.
29371
29372 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29373 new package Language_Processing with its attributes (Compiler_Driver,
29374 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29375 Binder_Driver, Default_Linker).
29376
29377 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29378 (Header_Num): Type moved to package Prj
29379
29380 * prj-env.adb: Adapt to name changes in package Prj
29381 (Current_Spec_Suffix => Ada_Spec_Suffix,
29382 Current_Body_Suffix => Ada_Body_Suffix).
29383
29384 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29385 default to the project path, except the "-" is one of the directories
29386 in env var ADA_PROJECT_PATH.
29387 (Current_Project_Path): Global variable, replacing Project_Path
29388 that was in the body of Prj.Part.
29389 (Project_Path): New function
29390 (Set_Project_Path): New procedure
29391 Initialize Current_Project_Path during elaboration of the package
29392 Remove dependency on Prj.Com, no longer needed
29393
29394 * prj-ext.ads (Project_Path): New function
29395 (Set_Project_Path): New procedure
29396
29397 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29398 suffix is defined for language <lang>.
29399 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29400 accessing directly the components of Naming.
29401 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29402 Reorganise of this package.
29403 Break procedure Check in several procedures.
29404
29405 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29406 Other_Languages_Check and Language_Independent_Check) with a single
29407 procedure Check.
29408
29409 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29410 Process_Languages, no longer needed.
29411
29412 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29413 Current_Project_Path.
29414 Remove elaboration code, moved to the body of Prj.Ext
29415 Use new function Prj.Ext.Project_Path instead of old variable
29416 Project_Path.
29417 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29418 When comparing with project paths on the stack, first put the resolved
29419 path in canonical case.
29420 (Parse_Single_Project): Set the path name of the project file in the
29421 tree to the normalized path.
29422
29423 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29424 parameter Process_Languages, no longer needed.
29425 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29426 Other_Languages_Check.
29427
29428 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29429 to store the resolved canonical path of the project file.
29430 Remove dependency to Prj.Com, no longer needed
29431
29432 * prj-util.adb: Adapt to name changes in package Prj
29433 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29434 Ada_Body_Suffix).
29435
29436 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29437 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29438 Externally_Built, Include_Option, Language_Processing.
29439
29440 * makegpr.adb: Numerous changes due to changes in packages
29441 Prj and Prj.Nmsc.
29442
29443 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29444 default to the project path, except whe "-" is one of the directories
29445 in env var ADA_PROJECT_PATH.
29446 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29447
29448 2004-12-07 Robert Dewar <dewar@adacore.com>
29449
29450 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29451
29452 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29453 set -gnatR3m mode.
29454
29455 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29456 flag. No longer needed now that we handle this in gnat1drv.adb.
29457
29458 * repinfo.ads: Minor reformatting
29459
29460 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29461 Olivier Hainque <hainque@adacore.com>
29462 Eric Botcazou <ebotcazou@adacore.com>
29463
29464 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29465 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29466 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29467 of a bitfield, which we know is useless and causes trouble because of
29468 alignment implications.
29469
29470 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29471 BSS sections.
29472 (process_attributes): Clear DECL_COMMON again when a section attribute
29473 is present.
29474 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29475 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29476 (create_field_decl): Special case ADDRESSABLE negative to mean
29477 "no bitfield creation", to be used by make_aligning_type. Don't
29478 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29479 fields claimed addressable still have to be bitfields. Use
29480 value_factor_p instead of a raw binop construction to check for the
29481 position's alignment.
29482
29483 2004-12-07 Geert Bosch <bosch@adacore.com>
29484
29485 * eval_fat.adb: Revert previous change.
29486
29487 2004-12-07 Thomas Quinot <quinot@adacore.com>
29488 Ed Schonberg <schonberg@adacore.com>
29489
29490 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29491 with an implicit dereference as its prefix, use
29492 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29493 an explicit dereference. This ensures that a reference to the original
29494 prefix is generated, if appropriate.
29495
29496 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29497 dereference is rewritten to an explicit one, generate a reference to
29498 the entity denoted by its prefix using the original prefix node, so
29499 the dereference can be properly recorded as a read of the denoted
29500 access value, if appropriate.
29501
29502 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29503 emitting 'assigned but never read' warning on a variable on the basis
29504 that it has an access type.
29505 (Check_References): Emit unreferenced warning when the scope is a
29506 subprogram body.
29507
29508 2004-12-07 Robert Dewar <dewar@adacore.com>
29509 Ed Schonberg <schonberg@adacore.com>
29510
29511 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29512 intrinsic
29513
29514 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29515 leaving call unchanged.
29516 This deals with the case where the pragma Import specified
29517 an external name, to be handled by the back end.
29518
29519 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29520 subprogram which is Imported with convention Intrinsic if an
29521 External_Name argument is specified.
29522 (Process_Import_Or_Interface): Properly diagnose link name argument.
29523 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29524 with Sem_Ch6.Cannot_Inline.
29525 (Process_Inline): Provide separate warning for inapplicable inline
29526 pragma.
29527 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29528 treatment is uniform on different targets.
29529
29530 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29531
29532 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29533 construct is rewritten, preserve end label to permit source navigation.
29534
29535 2004-12-07 Thomas Quinot <quinot@adacore.com>
29536
29537 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29538 Specific_Build_Stub_Target): New subprograms.
29539 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29540 the PCS implementation used, using the above PCS-customized subprograms.
29541 Minor reformatting.
29542 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29543 for generation of DSA code targeted to the PolyORB PCS.
29544 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29545 implementation of the partition communication subsystem in ancillary
29546 subprograms.
29547 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29548 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29549 PCS-specific part of Add_Stub_Type.
29550 (Insert_Partition_Check): Use runtime library function to perform
29551 E.4(19) check.
29552
29553 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29554 (RE_Same_Partition): New entity, from s-parint.
29555
29556 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29557
29558 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29559
29560 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29561 Output the copyright message on a separate line from the version
29562 message.
29563
29564 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29565
29566 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29567 compile-time warning.
29568
29569 2004-12-07 Robert Dewar <dewar@adacore.com>
29570
29571 * g-regpat.adb: (Match): Change a misuse of or to or else
29572
29573 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29574
29575 * lib-xref.adb:
29576 (Generate_Reference): Handle properly a reference to an entry formal,
29577 when an accept statement has a pragma Unreferenced for it.
29578
29579 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29580 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29581 the body, to ensure that warnings are properly emitted for each accept
29582 statement of a given task entry.
29583
29584 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29585
29586 * Makefile.in: Add support for foreign threads on VMS.
29587
29588 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29589
29590 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29591 Remove.
29592 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29593
29594 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29595
29596 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29597 exception.
29598 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29599
29600 2004-12-07 Robert Dewar <dewar@adacore.com>
29601
29602 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29603 Prepend.
29604 (Remove_Next_Debug): Same fix
29605
29606 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29607 maintain back pointers now, though we did not used to, and comments
29608 were out of date).
29609 (Prepend): Remove pragma Inline.
29610 (Remove_Next): Same cleanup
29611
29612 2004-12-07 Thomas Quinot <quinot@adacore.com>
29613
29614 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29615 used to record an implicit dereference as a read operation on its
29616 prefix when operating under -gnatc. Necessary to avoid spurious
29617 'variable assigned but never read' warnings in that mode.
29618 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29619 is a non-overloaded implicit dereference, call the above subprogram to
29620 ensure proper recording of references.
29621
29622 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29623
29624 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29625 to be resolved later as part of Analyze_Iteration_Scheme's call to
29626 Make_Index.
29627
29628 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29629
29630 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29631 prefix is not a scalar type, place error message on prefix, not on
29632 type entity.
29633
29634 2004-12-07 Bernard Banner <banner@adacore.com>
29635
29636 * vxaddr2line.adb: Add support for x86 vxworks
29637
29638 2004-12-07 Thomas Quinot <quinot@adacore.com>
29639
29640 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29641 documentation of the behaviour of these functions when passed an IP
29642 address that has no record in the system hosts database and no reverse
29643 record in the DNS.
29644
29645 * cstand.adb, a-tags.ads: Fix typos in comment.
29646
29647 2004-12-07 Robert Dewar <dewar@adacore.com>
29648
29649 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29650 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29651 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29652 s-poosiz.ads: Minor reformatting
29653
29654 * make.adb: Minor reformatting
29655 Add some ??? comments asking for more comments
29656
29657 * s-poosiz.adb: Minor reformatting
29658 Add comments on alignment requirement
29659
29660 * sinfo.ads: Remove obsolete comment and fix typo.
29661
29662 2004-12-07 Vincent Celier <celier@adacore.com>
29663 Sergey Rybin <rybin@adacore.com>
29664
29665 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29666 Files" with the new tool and package names.
29667 Reformatting to suppress most of the warnings for line too long
29668 Document the new section "Project Search Path:" in the output of
29669 gnatls -v.
29670 Add gnatmetric section
29671
29672 2004-12-07 Vincent Celier <celier@adacore.com>
29673
29674 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29675 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29676 and -eit to -ept. Added qualifier
29677 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29678
29679 2004-11-27 Andreas Schwab <schwab@suse.de>
29680
29681 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29682
29683 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29684
29685 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29686 internal implementation unit GNAT.Sockets.Thin,
29687 as their usage for sockets is non-portable (using the read and write
29688 functions from the system runtime library is fine on UNIX but won't
29689 work under Windows).
29690
29691 * mingw32.h: Update copyright notice.
29692
29693 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29694
29695 * ada-tree.h: Minor reformatting of previous change to avoid lines
29696 longer than 79 characters.
29697
29698 2004-11-25 Olivier Hainque <hainque@adacore.com>
29699
29700 * tb-gcc.c: GCC infrastructure based implementation of
29701 __gnat_backtrace.
29702
29703 2004-11-24 Steven Bosscher <stevenb@suse.de>
29704
29705 * misc.c (gnat_post_options): Don't clear
29706 flag_inline_functions.
29707
29708 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29709
29710 PR ada/17986
29711 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29712 tree.
29713
29714 2004-11-21 Andreas Jaeger <aj@suse.de>
29715
29716 * stylesw.adb: Change Style_Check_Subprogram_Order to
29717 Style_Check_Order_Subprograms.
29718
29719 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29720
29721 * adaint.h, adaint.c
29722 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29723 to avoid warnings.
29724 Add also a cast to kill another warning.
29725 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29726 parameter with the priority class of the parent process instead of
29727 always using the NORMAL_PRIORITY_CLASS.
29728 (__gnat_dup): New function.
29729 (__gnat_dup2): New function.
29730 (__gnat_is_symbolic_link): Enable the effective body of this
29731 function when __APPLE__ is defined.
29732
29733 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29734 Update comments.
29735
29736 2004-11-18 Olivier Hainque <hainque@adacore.com>
29737
29738 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29739 address of which may be used to represent "others" and "all others"
29740 choices in exception tables, instead of the current harcoded
29741 (void *)0 and (void *)1.
29742 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29743
29744 * gigi.h (others_decl, all_others_decl): New decls representing the
29745 new Others_Value and All_Others_Value objects.
29746 (struct attrib): Rename "arg" component as "args", since GCC expects a
29747 list of arguments in there.
29748
29749 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29750 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29751 addresses.
29752
29753 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29754 others_decl and all_others_decl instead of hardcoded dummy addresses
29755 to represent "others" and "all others" choices, which is cleaner and
29756 more flexible with respect to the possible eh pointer encoding policies.
29757
29758 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29759 (process_attributes): Account for the naming change of the "args"
29760 attribute list entry component.
29761
29762 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29763 cumulating attributes for different entities into a single list.
29764 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29765 attributes for the current entity and propagate first subtype
29766 attributes to other subtypes.
29767 <E_Procedure>: Attribute arguments are attr->args and not
29768 attr->arg any more.
29769 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29770 argument provided, as this is what GCC expects. Use NULL_TREE instead
29771 of 0 for trees.
29772
29773 2004-11-18 Robert Dewar <dewar@adacore.com>
29774
29775 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29776 Minor reformatting througout (including new function specs)
29777 Add ??? comments asking for clarification.
29778
29779 2004-11-18 Thomas Quinot <quinot@adacore.com>
29780
29781 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29782 incomplete duplicate implementation of this subprogram from butil.
29783
29784 2004-11-18 Thomas Quinot <quinot@adacore.com>
29785
29786 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29787 procedures factors the common processing for building an RPC receiver
29788 for an RCI package or an RACW type.
29789 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29790 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29791 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29792 in use.
29793 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29794 Add_RACW_Features.
29795 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29796 Add_RAST_Features.
29797 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29798 distribution subprogram identifiers that are either subprogram numbers
29799 or strings.
29800 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29801 string distribution identifiers assigned to a given subprogram.
29802 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29803 (Add_RAS_Dereference_TSS): Add comments.
29804 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29805 is not referenced yet because it will be used by the PolyORB DSA
29806 implementation.
29807 (Insert_Partition_Check): Remove fossile code.
29808 (First_RCI_Subprogram_Id): Document this constant.
29809 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29810 RAS_Access TSS.
29811 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29812 replaced with calls to Get_Library_Unit_Name_String. Previously there
29813 were several instances of the same code in different locations in the
29814 compiler; this checkin completes the replacement of all of these
29815 instances with calls to a common subprogram.
29816 Minor reformatting.
29817
29818 * sem_dist.adb: Remove comment noting that RPC receiver generation
29819 should be disabled for RACWs that implement RASs.
29820 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29821
29822 * sem_util.ads, sem_util.adb (Has_Stream): New function
29823 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29824 qualified name of a library unit into the name buffer.
29825 (Note_Possible_Modification): Generate a reference only
29826 if the context comes from source.
29827
29828 * snames.ads (PCS_Names): New subtype corresponding to names of
29829 supported implementations of the Partition Communication Subsystem
29830 (PCS) (i.e. the runtime library support modules for the distributed
29831 systems annex).
29832
29833 2004-11-18 Robert Dewar <dewar@adacore.com>
29834 Ed Schonberg <schonberg@adacore.com>
29835
29836 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29837 (Has_Rep_Pragma): New function
29838 (Has_Attribute_Definition_Clause): New function
29839 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29840 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29841
29842 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29843
29844 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29845 (Expand_Pragma_Psect_Object): New procedure
29846 These procedures contain the revised and cleaned up processing for
29847 these two pragmas. This processing was formerly in Sem_Prag, but
29848 is more appropriately moved here. The cleanup involves making sure
29849 that the pragmas are properly attached to the tree, and that no
29850 nodes are improperly shared.
29851
29852 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29853 pragmas to Exp_Prag, which is more appropriate.
29854 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29855 check for duplicates Remove use of Is_Psected flag, no longer needed.
29856 Use new Make_String_Literal function with string.
29857
29858 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29859 that are functions return universal values, that have to be converted
29860 to the context type.
29861 Use new Make_String_Literal function with string.
29862 (Get_Stream_Convert_Pragma): New function, replaces the use of
29863 Get_Rep_Pragma, which had to be kludged to work in this case.
29864
29865 * freeze.adb: Use new Has_Rep_Pragma function
29866
29867 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29868 function with string.
29869 Use new Has_Rep_Pragma function.
29870
29871 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29872 string argument.
29873
29874 2004-11-18 Robert Dewar <dewar@adacore.com>
29875
29876 * errout.ads, errout.adb: (First_Sloc): New function
29877
29878 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29879 check (-gnatyx) instead of being included as a redundant construct
29880 warning.
29881
29882 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29883 Style_Check_Order_Subprograms.
29884
29885 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29886 stylesw.adb: Add Style_Check_Xtra_Parens
29887
29888 * usage.adb: Add line for -gnatyx (check extra parens)
29889
29890 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29891
29892 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29893 Robert Dewar <dewar@adacore.com>
29894
29895 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29896 discriminant of a constrained subtype, analyze the copy of the
29897 corresponding constraint, because in some cases it may be only
29898 partially analyzed.
29899 Removes long-lived ??? comments.
29900
29901 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29902 handled controlled or secondary-stack expressions within the
29903 iteration_scheme of a loop.
29904
29905 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29906 bounds that may contain functions calls, to prevent memory leaks when
29907 the bound contains a call to a function that uses the secondary stack.
29908 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29909 generate temporaries for loop bounds that might contain function calls
29910 that require secondary stack and/or finalization actions.
29911
29912 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29913 selected component and the selector is overloadable (not just a
29914 function) treat as function call, Analyze_Call will disambiguate if
29915 necessary.
29916 (Analyze_Selected_Component): Do not generate an actual subtype for the
29917 selected component if expansion is disabled. The actual subtype is only
29918 needed for constraint checks.
29919 (Analyze_Allocator): If restriction No_Streams is set, then do
29920 not permit objects to be declared of a stream type, or of a
29921 composite type containing a stream.
29922
29923 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29924 No_Streams no longer prohibits with'ing this package.
29925
29926 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29927 discriminants, but the parent base has unknown discriminants, there is
29928 no discriminant constraint to inherit. Such a discrepancy can arise
29929 when the actual for a formal type with unknown discriminants is a
29930 similar private type whose full view has discriminants.
29931 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29932 do not permit objects to be declared of a stream type, or of a
29933 composite type containing a stream.
29934
29935 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29936
29937 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29938 protected operations.
29939
29940 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29941 generated name, it complicates decoding in gdb and hinders debugging
29942 of protected operations.
29943 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29944 flag for the protected entry barrier function.
29945 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29946 flag for the protected entry function.
29947
29948 2004-11-18 Nicolas Setton <setton@adacore.com>
29949
29950 * expect.c: Define __unix__ when __APPLE__ is defined.
29951
29952 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29953 Darwin-specific section.
29954
29955 * lang-specs.h: Change the placement of the %1 marker.
29956 Works around the fact that gcc adds -fPIC by default under Darwin.
29957
29958 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29959
29960 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29961 type of the object with the packed array type, set the Analyzed flag
29962 on the object if it is an entity or simple indexed component, to avoid
29963 spurious type errors.
29964
29965 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29966
29967 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29968 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29969 separate line from the version message.
29970
29971 2004-11-18 Ed Falis <falis@adacore.com>
29972
29973 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29974 vthreads.
29975 (init_float): Eliminate initialization of floating point status for
29976 AE653. The instructions have no effect for vThreads.
29977
29978 2004-11-18 Vincent Celier <celier@adacore.com>
29979
29980 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29981 gnatbind is invoked with -shared.
29982
29983 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29984
29985 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29986 for Detect_Blocking which is redundant with the check done within the
29987 procedure Protected_Single_Entry_Call.
29988 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29989 Detect_Blocking which is redundant with the check done within the
29990 procedure Protected_Single_Entry_Call.
29991
29992 2004-11-18 Vincent Celier <celier@adacore.com>
29993
29994 * makegpr.adb (Compile): Put the compiling switches (in package
29995 Compiler and on the command line) immediately after "-c", instead of
29996 at the end of the command line invocation of the compiler, when
29997 compiling a non-Ada file.
29998 (Build_Global_Archive): When there is no need to rebuild the archive,
29999 set Global_Archive_Exists, so that the archive is passed to the linker
30000 if one is needed.
30001
30002 2004-11-18 Robert Dewar <dewar@adacore.com>
30003 Sergey Rybin <rybin@adacore.com>
30004
30005 * gnat_ugn.texi:
30006 Remove extra paren check from list of checks for redundant constructs
30007 Add documentation of new -gnatyx style check (check extra parens)
30008 Remove paragraph about gnatelim debug options.
30009
30010 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
30011 objects rather than forbidding dependencies on the package Ada.Streams.
30012
30013 * sinfo.ads: Add ??? note that we should document pragmas passed to
30014 back end.
30015
30016 * g-expect.ads: Fix a few typos in the comments.
30017
30018 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
30019
30020 * misc.c (gnat_handle_option): Use %< and %> for quoting in
30021 warning message.
30022
30023 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30024
30025 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
30026
30027 2004-11-07 Andreas Schwab <schwab@suse.de>
30028
30029 * Makefile.in (install-gnatlib): Remove spurious hyphen.
30030
30031 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
30032
30033 PR ada/18228
30034 * Makefile.in (darwin): Set soext to .dylib.
30035
30036 2004-10-26 Vincent Celier <celier@gnat.com>
30037 Thomas Quinot <quinot@act-europe.fr>
30038
30039 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30040 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30041 there is no use of GNAT.Sockets.Constants.
30042 Remove remaining pragma Import for C_Write
30043 Remove C_Read and C_Write from internal implementation unit
30044 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30045 the read and write functions from the system runtime library is fine
30046 on UNIX but won't work under Windows).
30047
30048 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30049 (Check_Selector): Use C_Recv instead of C_Read.
30050 Selectors are the GNAT.Sockets abstraction to perform a select()
30051 call on a set of descriptors. To allow abortion of an ongoing
30052 select operation, some data is written to a dedicated socket that
30053 is always monitored.
30054 Under Windows, the write and read library functions cannot operate
30055 on sockets, so we need to use send and recv instead, which is portable
30056 across all supported platforms.
30057
30058 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30059 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30060 (using the read and write functions from the system runtime library is
30061 fine on UNIX but won't work under Windows).
30062
30063 2004-10-26 Nicolas Setton <setton@act-europe.fr>
30064
30065 * mlib-tgt-darwin.adb: New file.
30066
30067 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30068 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30069 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30070 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30071 subprogram body.
30072
30073 * Makefile.in: Add support for building shared libraries under Darwin.
30074 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30075 the low level EH init subprogram to be called from __gnat_initialize.
30076
30077 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30078 indicates which options to pass to the archive indexer.
30079
30080 * mlib-utl.adb: Add support for calling ranlib with additional
30081 options. This is needed for instance under Mac OS X.
30082 (Ranlib_Options): New global variable, used to store the potential
30083 options to pass to ranlib.
30084 (Ar): Use Ranlib_Options when spawning ranlib.
30085 (Initialize): Set the value of ranlib option.
30086
30087 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30088
30089 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30090 instead of 8K, to reflect the real potential needs for stack-checking
30091 in the ZCX case.
30092
30093 2004-10-26 Pascal Obry <obry@gnat.com>
30094
30095 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30096
30097 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30098 Windows only the initial thread stack size can be set so it is good to
30099 start we a low stack size.
30100 The OS will adjust the size as needed.
30101
30102 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30103 Nicolas Setton <setton@act-europe.fr>
30104
30105 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30106 "__unix__" instead of "unix".
30107 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30108 sections were just mistakenly ignored. The former is
30109 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30110 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30111 of hpux. This prevents an unwanted definition of the symbol
30112 convert_addresses in adaint.o.
30113
30114 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30115
30116 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30117 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30118
30119 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30120
30121 * a-filico.ads, a-filico.adb: fix incorrect header.
30122
30123 2004-10-26 Javier Miranda <miranda@gnat.com>
30124
30125 * a-ststio.ads: Fix typo in identifier
30126
30127 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30128
30129 * sem_ch4.adb: Minor reformatting.
30130
30131 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30132
30133 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30134 enabled, check the result of unary and binary operations when the
30135 expression is the right-hand side of an assignment.
30136
30137 2004-10-26 Vincent Celier <celier@gnat.com>
30138
30139 * clean.adb (Delete): Do not output warnings when in quiet output and
30140 not in verbose mode.
30141 (Force_Deletions): New Boolean flag, defaulted to False
30142 (Delete): Only delete a file if it is writable, and when
30143 Force_Deletions is True.
30144 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30145 (Usage): Line for new switch -f
30146 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30147 own.
30148
30149 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30150
30151 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30152 JM type only if its size matches that of the wrapper. When a size is
30153 prescribed and the field is not aliased, remove the wrapper of a JM
30154 type only if the size is not greater than that of the packed array.
30155 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30156 from LJM to JM.
30157
30158 2004-10-26 Geert Bosch <bosch@gnat.com>
30159
30160 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30161 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30162 (Pred): Implement in terms of Succ.
30163
30164 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30165
30166 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30167 unchecked conversion is safe for in-place use if the expression of the
30168 conversion is safe.
30169 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30170 be expandable in place even if the aggregate does not come from source.
30171 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30172 designated object of an allocator in place, rather than building it
30173 first on the stack. The previous scheme forces a full copy of the array,
30174 and may be altogether unsusable if the size of the array is too large
30175 for stack allocation.
30176
30177 2004-10-26 Robert Dewar <dewar@gnat.com>
30178
30179 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30180 compares if the component is atomic.
30181
30182 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30183 array assignment if the component type is atomic.
30184
30185 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30186 Eric Botcazou <ebotcazou@act-europe.fr>
30187
30188 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30189 is aliased and is a by_reference type, do not pass by copy.
30190 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30191 detect whether the call is in the right side of an assignment or
30192 the expression of an object declaration. Recurse on component
30193 association within aggregates.
30194 Call it in the condition that determines whether the temporary is
30195 necessary for correct stack-checking.
30196
30197 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30198
30199 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30200 RACW_Type, used in the PolyORB version.
30201 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30202 version and the GARLIC version.
30203
30204 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30205 Rename RCI_Info to RCI_Locator for better consistency between the
30206 GARLIC and PolyORB versions of the distributed systems annex.
30207 (DSA_Implementation_Name): This enumeration lists the possible
30208 implementations of the Partition Communication Subsystem for the
30209 Distributed Systems Annex (DSA). The three available implementations
30210 are the dummy stub implementation (No_DSA), and two versions based on
30211 two different distribution runtime libraries: GARLIC and PolyORB. Both
30212 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30213 technology.
30214 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30215 that organization.
30216
30217 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30218 between the GARLIC and PolyORB versions of the distributed systems
30219 annex.
30220 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30221
30222 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30223
30224 * gnat1drv.adb: Suppress calling the back end when
30225 Frontend_Layout_On_Target is true.
30226
30227 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30228
30229 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30230 Set_Read_Only): New subprograms.
30231 These new routines allow the user to set or unset the Owner execute
30232 and Owner write permission flags on a file.
30233
30234 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30235 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30236
30237 2004-10-26 Matthew Gingell <gingell@gnat.com>
30238
30239 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30240
30241 2004-10-26 Pascal Obry <obry@gnat.com>
30242
30243 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30244 memory before the faulting page we properly test the process read
30245 access for this address using appropriate Win32 routine.
30246 (HPUX sections): guard with "__hpux__" instead of "hpux".
30247
30248 2004-10-26 Robert Dewar <dewar@gnat.com>
30249
30250 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30251 entry parameter if pragma Unreferenced set, since we do not properly
30252 handle the case of multiple parameters.
30253
30254 2004-10-26 Vincent Celier <celier@gnat.com>
30255
30256 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30257 (Ada_Objects_Path.Add): For a library project, add to the object path
30258 the library directory only if there is no object directory or if the
30259 library directory contains ALI files.
30260 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30261
30262 2004-10-26 Vincent Celier <celier@gnat.com>
30263
30264 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30265 extension of library projects.
30266
30267 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30268 path defaults to ".:<prefix>/lib/gnat".
30269 (Parse): For an extending all project, allow direct import of a project
30270 that is virtually extended.
30271
30272 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30273 the specified name is directly imported, return its ID. Otherwise, if
30274 an extension of this project is imported, return the ID of the
30275 extension.
30276
30277 2004-10-26 Robert Dewar <dewar@gnat.com>
30278
30279 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30280 (Sub3): New procedure, used by Scaled_Divide
30281 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30282 correct more than one instance of failure to propagate carries
30283 correctly.
30284 (Double_Divide): Handle overflow case of largest negative number
30285 divided by minus one.
30286
30287 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30288 the case of a quotient value out of range.
30289 Fix comments.
30290
30291 2004-10-26 Robert Dewar <dewar@gnat.com>
30292
30293 * s-bitops.adb (Bit_Eq): Remove redundant check.
30294
30295 * s-bitops.ads: Minor comment updates
30296 Change some occurrences of Address to System.Address
30297
30298 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30299
30300 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30301
30302 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30303 accessibility check to prefix that is a protected operation.
30304
30305 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30306
30307 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30308 empty, post message on stub.
30309
30310 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30311 Javier Miranda <miranda@gnat.com>
30312
30313 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30314 current instance appears within a unit that is directly in the context
30315 of the main unit.
30316 Used to determine whether the body of the instance should be analyzed
30317 immediately after its spec, to make its subprogram bodies available
30318 for front-end inlining.
30319 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30320 constraint is not allowed on the component type (AARM 12.5.3(3))
30321
30322 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30323
30324 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30325 'Storage_Pool): enhance, document & limit detection of non-sharable
30326 internal pools.
30327
30328 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30329
30330 * s-pooglo.ads: Add more documentation now that this pool is properly
30331 documented.
30332
30333 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30334
30335 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30336 or protected type with discriminants, do not constrain the
30337 corresponding record type if the subtype declaration has no
30338 discriminant constraints. This can be the case in source code, or in
30339 the subtype declaration created to rename an actual type within an
30340 instantiation.
30341
30342 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30343
30344 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30345 different kind of stub (possibly wrong name for file), do not check
30346 for conformance.
30347 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30348 includes call to some function that returns an unconstrained type, do
30349 not inline.
30350
30351 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30352
30353 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30354 appear in the code for the main unit. Dependencies among units in the
30355 context of the main unit are established when those other units are
30356 compiled. Otherwise spurious elaboration constraints can generate
30357 incorrect elaboration circularities.
30358
30359 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30360 Ed Schonberg <schonberg@gnat.com>
30361
30362 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30363 subprogram is called with a parameter that is not an object name. This
30364 situation arises for some cases of illegal code, which is diagnosed
30365 later, and in this case it is wrong to call Is_Aliased, as that might
30366 cause a compiler crash.
30367 (Explain_Limited_Type): Refine previous fix to include
30368 inherited components of derived types, to provide complete information.
30369
30370 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30371 is the prival for a protected object.
30372 It is necessary to mark this entity as a variable, in addition to
30373 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30374 modified to avoid checking the Aliased flag on entities that are not
30375 objects. (Checking that flag for non-objects is erroneous and could
30376 lead to a compiler crash).
30377
30378 2004-10-26 Robert Dewar <dewar@gnat.com>
30379
30380 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30381 X_Frac = 0.5, then we know that the number X must be positive.
30382 (Succ): Remove the same redundant test, and also fix the primary test
30383 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30384 Minor reformatting
30385 (Decompose): Add fuller comments to spec
30386
30387 2004-10-26 Pascal Obry <obry@gnat.com>
30388
30389 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30390 validity (process must have read access). Set to 0 in all other cases.
30391 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30392 violation on Win32.
30393 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30394 segmentation violation.
30395
30396 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30397
30398 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30399 whose type is a constructed subtype of an aliased object with an
30400 unconstrained nominal subtype, convert the actual to the constructed
30401 subtype before taking its address.
30402
30403 2004-10-26 Vincent Celier <celier@gnat.com>
30404
30405 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30406 (Is_Path_Name_Case_Sensitive): New function
30407
30408 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30409 (Base_Name, Simple_Name, Current_Directory, Compose,
30410 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30411 the result.
30412
30413 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30414 Vasiliy Fofanov <fofanov@act-europe.fr>
30415 Vincent Celier <celier@gnat.com>
30416
30417 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30418 "memory management issues" section and document some of the useful
30419 memory pools provided as part of the GNAT library.
30420 Remove "virtual" from declaration of A::method2 in
30421 the simple example of Ada/C++ mixed system.
30422 Library Projects may be virtually extended: their virtual extensions
30423 are not Library Projects.
30424 Added section on extending project hierarchies.
30425
30426 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30427
30428 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30429 to LPBYTE.
30430 (__gnat_portable_spawn): Remove const.
30431
30432 * mingw32.h (MAXPATHLEN): Check for previous definition.
30433
30434 2004-10-17 Matthias Klose <doko@debian.org>
30435
30436 * gnatvsn.ads: Set gnat library version to 4.0.
30437
30438 2004-10-05 Vincent Celier <celier@gnat.com>
30439
30440 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30441
30442 2004-10-04 Laurent Guerby <laurent@guerby.net>
30443
30444 PR ada/15156
30445 * Makefile.in: Define and use RANLIB_FLAGS.
30446
30447 2004-10-04 Pascal Obry <obry@gnat.com>
30448
30449 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30450 other x86 platforms).
30451
30452 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30453
30454 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30455 in general and triggers stack alignment adjustment for thread entry
30456 points on targets where this is necessary.
30457
30458 2004-10-04 Bernard Banner <banner@gnat.com>
30459
30460 PR ada/13897
30461 * Makefile.in: Add section for powerpc linux
30462 Add variant i-vxwork-x86.ads
30463
30464 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30465
30466 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30467
30468 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30469 table registration calls when need be. Ensures no reference to the crt
30470 ctors symbol are issued in the SJLJ case, which avoids possible
30471 undefined symbol errors in the case of modules to be statically linked
30472 with the kernel.
30473
30474 2004-10-04 Javier Miranda <miranda@gnat.com>
30475
30476 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30477 in-line the code corresponding to subprogram Analyze_Actuals. In
30478 addition, analyze the actuals only in case of subprogram call.
30479
30480 2004-10-04 Ed Falis <falis@gnat.com>
30481
30482 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30483
30484 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30485
30486 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30487 in the documentation.
30488
30489 2004-10-04 Robert Dewar <dewar@gnat.com>
30490
30491 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30492 IF and CASE.
30493 (Analyze_Block_Statement): Add circuitry to detect following dead code
30494 (Check_Unreachable_Code): Handle case of block exit
30495
30496 2004-10-04 Robert Dewar <dewar@gnat.com>
30497
30498 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30499 (XMatchD): Avoid warning for Logic_Error call
30500
30501 2004-10-04 Robert Dewar <dewar@gnat.com>
30502
30503 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30504 consider expressions buried within a procedure actual to be an actual.
30505 This caused some blowups with uses of packed slices within a procedure
30506 actual.
30507
30508 2004-10-04 Robert Dewar <dewar@gnat.com>
30509
30510 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30511 longer need to be initialized to zero.
30512 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30513 initialized to zero.
30514
30515 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30516 considered valid, even if the representation is modular. That's correct
30517 now that we no longer initialize packed modular arrays to zero.
30518
30519 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30520 suffixes. These are now documented as the only cases in which the
30521 debugger ignores outer records.
30522 Previously, the spec allowed arbitrary suffixes for this purpose.
30523 Change name of LJM to JM for packed array pad records
30524 Create separate section on packed array handling, and add a whole new
30525 set of comments to this section describing the situation with packed
30526 modular types and justification requirements depending on endianness.
30527
30528 2004-10-04 Robert Dewar <dewar@gnat.com>
30529
30530 * a-except.adb: Add a comment for last change
30531
30532 * einfo.ads: Minor spelling correction in comment
30533
30534 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30535
30536 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30537 messages.
30538
30539 * sem_util.ads: Minor comment update
30540
30541 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30542
30543 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30544 Inline_Always when in Configurable_Run_Time mode.
30545
30546 * sem_prag.adb (Process_Convention): If entity is an inherited
30547 subprogram, apply convention to parent subprogram if in same scope.
30548 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30549 when in Configurable_Run_Time mode.
30550
30551 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30552
30553 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30554 class_wide type after component list has been inherited.
30555
30556 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30557
30558 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30559 Denotes_Previous_Actual, to handle properly the case of a private
30560 actual that is also the component type of a subsequent array actual.
30561 The visibility status of the first actual is not affected when the
30562 second is installed.
30563 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30564 make fully recursive the treatment of formals of packages declared
30565 with a box.
30566 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30567 the above on exit from an instantiation.
30568 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30569 current instantiation which is now complete.
30570 (Analyze_Package_Instantiation): No instantiated body is needed if the
30571 main unit is generic. Efficient, and avoid anomalies when a instance
30572 appears in a package accessed through rtsfind.
30573
30574 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30575
30576 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30577 do not generate a declaration for a temporary if the call is part of a
30578 library-level instantiation.
30579
30580 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30581
30582 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30583 searching for a limited component to flag.
30584
30585 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30586 expansion of Input, to account for the fact that the implicit call
30587 generated by the attribute reference must freeze the user-defined
30588 stream subprogram. This is only relevant to 'Input, because it can
30589 appear in an object declaration, prior to the body of the subprogram.
30590
30591 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30592 expansion can proceed and further errors uncovered.
30593 (Minor clean up): Fix cases of using | instead of \ for continuation
30594 messages.
30595
30596 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30597
30598 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30599
30600 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30601 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30602 Use gcc_assert and gcc_unreachable.
30603
30604 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30605 specified alignment before validating size.
30606 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30607 stripped-down declaration for the type of the inner field when making
30608 a JM type.
30609
30610 * utils.c (finish_record_type): Do not compute the size in units
30611 incrementally. Instead compute it once for the rep clause case.
30612 Use gcc_assert and gcc_unreachable.
30613
30614 2004-10-04 Vincent Celier <celier@gnat.com>
30615
30616 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30617 in file name.
30618 (Is_Valid_Path_Name): Take '/' as a directory separator.
30619
30620 2004-10-04 Vincent Celier <celier@gnat.com>
30621
30622 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30623 (Extended_Project) only if Extended_Project is defined, to avoid
30624 assertion error.
30625 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30626 resolved path.
30627 (Parse_Single_Project): Ditto.
30628
30629 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30630 Add_To_Project_Path for virtual projects.
30631
30632 2004-10-04 Vincent Celier <celier@gnat.com>
30633
30634 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30635 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30636 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30637 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30638 parameter Options_2.
30639
30640 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30641 Build_Dynamic_Library with an empty Options_2.
30642
30643 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30644 default anymore.
30645
30646 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30647 directory separator, if any.
30648 (Gprmake): Do not allow mains on the command line for library projects.
30649 Do not attempt to link when the project is a library project.
30650 (Library_Opts): New table to store Library_Options.
30651 (Build_Library): If Library_Options is specified, pass these options
30652 when building a shared library.
30653
30654 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30655
30656 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30657 the end of this procedure now that the unlock operation was inserted
30658 by the expander.
30659
30660 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30661
30662 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30663 corresponding to the Preallocated_Stacks flags in System.
30664 (Get_Target_Parameters): Including the processing for
30665 Preallocated_Stacks.
30666
30667 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30668 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30669 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30670 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30671 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30672 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30673 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30674 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30675 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30676 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30677 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30678 used to signal whether the compiler creates the required stacks and
30679 descriptors for the different tasks (when True) or it is done by the
30680 underlying operating system at run time (when False).
30681 It is initially set to False in all targets.
30682
30683 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30684 if it is supported by the target.
30685 (Make_Task_Create_Call): Pass the stack address if it has been
30686 previously created. Otherwise pass a Null_Address.
30687
30688 * snames.adb: Add _stack.
30689
30690 * snames.ads: Add Name_uStack. Required to allow the expander to
30691 statically allocated task stacks.
30692
30693 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30694 Stack_Address argument.
30695 Check that its value is equal to Null_Address because this target does
30696 not support the static stack allocation.
30697
30698 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30699
30700 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30701 and error messages
30702
30703 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30704
30705 * exp_dist.adb: Split declaration of asynchronous flag out of
30706 Add_RACW_Read_Attribute.
30707 Minor reformatting for better alignment with PolyORB version.
30708 Store the entity for the asynchronous flag of an RACW, rather than the
30709 expression, in the asynchronous flags table. This will allow this flag
30710 to be used in other subprograms beside Add_RACW_Read_Attribute.
30711
30712 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30713
30714 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30715 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30716 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30717 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30718 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30719 sockets constant MSG_NOSIGNAL (Linux-specific).
30720 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30721 all Send operations.
30722 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30723 from trigerring SIGPIPE.
30724 Rename components to avoid clash with Ada 2005 possible reserved
30725 word 'interface'.
30726 (Check_Selector): When the select system call returns with an error
30727 condition, propagate Socket_Error to the caller.
30728
30729 2004-10-01 Jan Hubicka <jh@suse.cz>
30730
30731 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30732
30733 2004-09-23 Robert Dewar <dewar@gnat.com>
30734
30735 PR ada/17540
30736 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30737 instead do this at freeze time (we won't do it if there is an address
30738 clause).
30739 Change "pragma inline" to "pragma Inline" in information and error
30740 messages.
30741 Minor reformatting.
30742
30743 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30744 right way of doing things after all.
30745 (Freeze_Entity): For object, set Is_Public for imported entities
30746 unless there is an address clause present.
30747
30748 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30749
30750 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30751 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30752 ensures proper handling of types with rep clauses, which might have
30753 their TYPE_SIZE set already.
30754
30755 2004-09-21 Robert Dewar <dewar@gnat.com>
30756
30757 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30758 packed array types in both little- and big-endian cases. This change
30759 ensures that we no longer count on the unused bits being initialized
30760 for such types (and in particular ensures that equality testing will
30761 only read the relevant bits).
30762 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30763 These changes mean that we no longer need to initialize small packed
30764 arrays.
30765 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30766 optimization to an LJM field as to its parent field.
30767
30768 * ada-tree.h, trans.c, utils.c, utils2.c:
30769 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30770
30771 2004-09-20 Jan Hubicka <jh@suse.cz>
30772
30773 * utils.c (gnat_finalize): Remove.
30774 (end_subprog_body): Directly call cgraph_finalize_function;
30775 do not lower the nested functions.
30776
30777 2004-09-20 Robert Dewar <dewar@gnat.com>
30778
30779 PR ada/17540
30780 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30781 if an address clause is present, since that means that the Import
30782 should be ignored.
30783
30784 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30785
30786 * 5tsystem.ads: Removed, no longer used.
30787
30788 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30789 Zack Weinberg <zack@codesourcery.com>
30790
30791 * ada-tree.def: Use tree_code_class enumeration constants
30792 instead of code letters.
30793 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30794 Update for new tree-class enumeration constants.
30795
30796 2004-09-17 Vincent Celier <celier@gnat.com>
30797
30798 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30799 capabilities of the general project manager.
30800
30801 2004-09-09 Vincent Celier <celier@gnat.com>
30802
30803 * a-direct.ads: Add pragma Ada_05
30804 (Directory_Entry_Type): Give default value to component Kind to avoid
30805 not initialized warnings.
30806
30807 * a-direct.adb (Current_Directory): Remove directory separator at the
30808 end.
30809 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30810 an existing directory.
30811 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30812 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30813 Convert the result to File_Size.
30814
30815 * prj.ads: (Project_Error): New exception
30816
30817 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30818 Prj.Com, not from Osint.
30819 (Attrs, Package_Attributes): Tables moved to private part of spec
30820 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30821 Prj.Attr.PM.
30822 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30823 Prj.Project_Error after call to Fail.
30824 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30825 Fail. Check that package name is not already in use.
30826
30827 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30828 used by tools, not only by the project manager, and to indicate that
30829 exception Prj.Prj_Error may be raised in case of problem.
30830 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30831 Prj.Attr.PM.
30832 (Attrs, Package_Attributes): Table instantiations moved from the body to
30833 the private part to be accessible from Prj.Attr.PM body.
30834
30835 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30836 from new package Prj.Attr.PM.
30837 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30838 Prj.Attr.PM.
30839
30840 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30841
30842 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30843 instead of Elaboration_Checks).
30844
30845 * a-calend.adb: Minor reformatting
30846
30847 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30848
30849 * gigi.h (maybe_pad_type): New declaration.
30850 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30851
30852 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30853
30854 * cuintp.c: Convert to use buildN.
30855
30856 * decl.c (maybe_pad_type): No longer static.
30857 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30858 target pointer.
30859 Convert to use buildN.
30860
30861 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30862 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30863 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30864 RHS.
30865 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30866 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30867 Convert to use buildN.
30868
30869 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30870 TREE_READONLY for const.
30871 Convert to use buildN.
30872
30873 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30874 (create_var_decl): Refine when TREE_STATIC is set.
30875 Convert to use buildN.
30876
30877 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30878
30879 * gnat_ugn.texi: Delete text relating to checking of ali and object
30880 consistency.
30881
30882 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30883 routines.
30884
30885 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30886
30887 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30888 pragmas recognized by GNAT.
30889
30890 * gnat_rm.texi: Document pragma Detect_Blocking.
30891
30892 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30893 raise Program_Error if called from a protected operation.
30894
30895 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30896 the protected action nesting level.
30897 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30898 protected action nesting level.
30899 (Unlock): When pragma Detect_Blocking is active decrease the protected
30900 action nesting level.
30901
30902 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30903 Protected_Action_Nesting.
30904
30905 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30906 Common_ATCB record. It contains the dynamic level of protected action
30907 nesting for each task. It is needed for checking whether potentially
30908 blocking operations are called from protected operations.
30909 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30910 Detect_Blocking is active or not in the partition.
30911
30912 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30913 raise Program_Error if called from a protected operation.
30914 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30915 Program_Error if called from a protected operation.
30916 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30917 Program_Error if called from a protected operation.
30918
30919 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30920 raise Program_Error if called from a protected operation.
30921
30922 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30923 raise Program_Error if called from a protected operation, and increase
30924 the protected action nesting level.
30925 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30926 Program_Error if called from a protected operation, and increase the
30927 protected action nesting level.
30928 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30929 protected action nesting level.
30930
30931 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30932 raise Program_Error if called from a protected operation, and increase
30933 the protected action nesting level.
30934 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30935 Program_Error if called from a protected operation, and increase the
30936 protected action nesting level.
30937 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30938 raise Program_Error if called from a protected operation.
30939 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30940 active, raise Program_Error if called from a protected operation.
30941 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30942 protected action nesting level.
30943
30944 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30945 insertion of the statement raising Program_Error. The run time
30946 contains the required machinery for handling that.
30947
30948 * sem_util.ads: Change comment associated to procedure
30949 Check_Potentially_Blocking_Operation.
30950 This procedure does not insert a call for raising the exception because
30951 that is currently done by the run time.
30952
30953 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30954
30955 * init.c: Add the global variable __gl_detect_blocking that indicates
30956 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30957 making the pragma available at run time.
30958 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30959
30960 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30961 pragma Detect_Blocking is active.
30962
30963 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30964
30965 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30966 DB is found in the ali file. Any unit compiled with pragma
30967 Detect_Blocking active forces its effect in the whole partition.
30968
30969 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30970 Detect_Blocking is active and delay is called from a protected
30971 operation.
30972
30973 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30974 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30975 Detect_Blocking is active (0 otherwise).
30976 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30977 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30978 otherwise).
30979
30980 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30981
30982 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30983 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30984 package.
30985
30986 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30987 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30988 Update API in placeholder implemetation of s-parint to reflect changes
30989 in distribution runtime library.
30990
30991 * sem_ch3.adb (Expand_Derived_Record): Rename to
30992 Expand_Record_Extension.
30993
30994 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30995 primitive operations of potentially distributed object types that have
30996 non-controlling anonymous access formals.
30997
30998 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30999 subprogram.
31000 New implementation of expansion for remote access-to-subprogram types,
31001 based on the RACW infrastructure.
31002 This version of sem_dist is compatible with PolyORB/DSA as well as
31003 GLADE.
31004
31005 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
31006 Asynchrronous that applies to a remote access-to-subprogram type, mark
31007 the underlying RACW type as asynchronous.
31008
31009 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
31010 __gnat_using_gnu_linker to 1.
31011
31012 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
31013 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
31014 GNAT.Perfect_Hash_Generators, and remove the empty
31015 GNAT.Perfect_Hash package.
31016
31017 * atree.adb: Minor reformatting
31018
31019 * exp_ch3.adb (Expand_Derived_Record): Rename to
31020 Expand_Record_Extension.
31021 (Build_Record_Init_Proc.Build_Assignment): The default expression in
31022 a component declaration must remain attached at that point in the
31023 tree so New_Copy_Tree copies it if the enclosing record type is derived.
31024 It is therefore necessary to take a copy of the expression when building
31025 the corresponding assignment statement in the init proc.
31026 As a side effect, in the case of a derived record type, we now see the
31027 original expression, without any rewriting that could have occurred
31028 during expansion of the ancestor type's init proc, and we do not need
31029 to go back to Original_Node.
31030
31031 * exp_ch3.ads (Expand_Derived_Record): Rename to
31032 Expand_Record_Extension.
31033
31034 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
31035 Returns the RACW type used to implement a remote access-to-subprogram
31036 type.
31037 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
31038 New subprograms. Used to create a proxy tagged object for a remote
31039 subprogram. The proxy object is used as the designated object
31040 for RAS values on the same partition (unless All_Calls_Remote applies).
31041 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31042 System.Partition_Interface.Get_Unique_Remote_Pointer.
31043 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31044 Renamed from Add_RAS_*_Attribute.
31045 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31046 subprograms.
31047 New implementation of expansion for remote access-to-subprogram types,
31048 based on the RACW infrastructure.
31049
31050 * exp_dist.ads (Copy_Specification): Update comment to note that this
31051 function can copy the specification from either a subprogram
31052 specification or an access-to-subprogram type definition.
31053
31054 2004-09-09 Ed Schonberg <schonberg@gnat.com>
31055
31056 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31057 in an instance, between an explicit subprogram an one inherited from a
31058 type derived from an actual.
31059
31060 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31061 add a polling call if the subprogram is to be inlined by the back-end,
31062 to avoid repeated calls with multiple inlinings.
31063
31064 * checks.adb (Apply_Alignment_Check): If the expression in the address
31065 clause is a call whose name is not a static entity (e.g. a dispatching
31066 call), treat as dynamic.
31067
31068 2004-09-09 Robert Dewar <dewar@gnat.com>
31069
31070 * g-trasym.ads: Minor reformatting
31071
31072 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31073 packed arrays, since unused bits are expected to be zero for a
31074 comparison.
31075
31076 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
31077
31078 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31079 comment.
31080
31081 2004-09-09 Pascal Obry <obry@gnat.com>
31082
31083 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31084 enable map file generation. Add the right option to generate the map
31085 file if Map_File is set to True.
31086
31087 * gnatdll.adb (Gen_Map_File): New variable.
31088 (Syntax): Add info about new -m (Map_File) option.
31089 (Parse_Command_Line): Add support for -m option.
31090 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31091 Minor reformatting.
31092
31093 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
31094
31095 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31096 new gnatdist implementation.
31097 Define a subpackage isolating the output routines specific to this
31098 verbose mode.
31099
31100 2004-09-09 Joel Brobecker <brobecker@gnat.com>
31101
31102 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31103
31104 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31105
31106 2004-09-09 Cyrille Comar <comar@act-europe.fr>
31107
31108 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31109 internal unit.
31110
31111 * opt.ads: Add Ada_Version_Runtime constant used to decide which
31112 version of the language is used to compile the run time.
31113
31114 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
31115
31116 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31117 of variable length temporaries for function return now that the
31118 back-end and gigi support it.
31119
31120 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31121
31122 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31123
31124 * trans.c (struct stmt_group): Delete field GLOBAL.
31125 (gnat_init_stmt_group): Do not initialize it.
31126 (call_to_gnu): Use save_expr, not protect_multiple_eval.
31127 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31128 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31129 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31130 (start_stmt_group): Likewise.
31131 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31132
31133 * utils2.c (ggc.h): Include.
31134 (build_call_raise): Call build_int_cst, not build_int_2.
31135
31136 * utils.c (gnat_init_decl_processing): Fix arg to
31137 build_common_tree_nodes.
31138 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31139 (gnat_define_builtin): Set built_in_decls.
31140 (init_gigi_decls): Call build_int_cst, not build_int_2.
31141
31142 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31143 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31144 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31145 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31146 SET_TYPE_MODULE): Use them.
31147 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31148 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31149 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31150 SET_TYPE_ADA_SIZE): Likewise.
31151 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31152 (DECL_CONST_CORRESPONDING_VAR,
31153 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31154 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31155 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31156 (TYPE_RM_SIZE_NUM): New macro.
31157 (TYPE_RM_SIZE): Modified to use above.
31158
31159 * cuintp.c: (build_cst_from_int): New function.
31160 (UI_To_gnu): Use it.
31161
31162 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31163 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31164 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31165 MIN_EXPR for the size, copy it into new.
31166
31167 2004-09-01 Robert Dewar <dewar@gnat.com>
31168
31169 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31170 packed indexed component where array is an IN OUT formal. This
31171 generated garbage code previously.
31172
31173 * gnat_ugn.texi: Document -fverbose-asm
31174
31175 * gnat-style.texi: Minor updates (note that boolean constants and
31176 variables are joined with AND/OR rather than short circuit forms).
31177
31178 2004-09-01 Ed Schonberg <schonberg@gnat.com>
31179
31180 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31181 it is an upward conversion of an untagged type with no representation
31182 change.
31183
31184 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
31185
31186 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31187 System.Partition_Interface.
31188
31189 * checks.adb (Apply_Access_Checks): Do not generate checks when
31190 expander is not active (but check for unset reference to prefix of
31191 dereference).
31192
31193 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31194 pragma Debug as an if statement with a constant condition, for
31195 consistent treatment of entity references contained within the
31196 enclosed procedure call.
31197
31198 2004-09-01 Vincent Celier <celier@gnat.com>
31199
31200 * bindgen.adb: (Set_EA_Last): New procedure
31201 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31202 Set_EA_Last.
31203 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31204 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31205 linked without errors.
31206 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31207 ST and EA.
31208 (Gen_Exception_Table_C): Correct same bugs
31209
31210 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31211
31212 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31213 on Windows, make sure that the drive letter is in upper case.
31214
31215 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31216 Windows, when the drive letter is added and Case_Sensitive is True, the
31217 drive letter is forced to upper case.
31218
31219 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31220 to Options_2 for the call to MLib.Utl.Gcc.
31221
31222 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31223 directory separator when defining BASE_DIR.
31224
31225 2004-09-01 Pascal Obry <obry@gnat.com>
31226
31227 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31228 is not needed and it confuses Windows GNU/make which does not report
31229 directory terminated by a slash as a directory.
31230 (gprcmd): Idem for "pwd" internal command.
31231
31232 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31233 target names rewrite to fix regressions with recent version of
31234 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31235 handled properly anymore.
31236
31237 2004-09-01 Andreas Schwab <schwab@suse.de>
31238
31239 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31240 * raise.c [!IN_RTS]: Undef abort.
31241
31242 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31243
31244 * utils2.c (build_allocator): Use ssize_int.
31245
31246 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31247
31248 2004-08-27 Andreas Schwab <schwab@suse.de>
31249
31250 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31251
31252 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31253 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31254
31255 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31256
31257 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31258
31259 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31260 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31261 * utils.c (init_gigi_decls): Likewise.
31262 * utils2.c (build_call_raise, build_allocator): Likewise.
31263
31264 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31265
31266 * utils.c (gnat_init_decl_processing): Adjust
31267 build_common_tree_nodes call.
31268
31269 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31270
31271 * utils2.c (build_allocator): Use build_int_cst for negative
31272 size types.
31273
31274 2004-08-18 Richard Henderson <rth@redhat.com>
31275
31276 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31277
31278 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31279
31280 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31281 call.s
31282 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31283 (gnat_to_gnu): Likewise.
31284
31285 2004-08-16 Pascal Obry <obry@gnat.com>
31286
31287 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31288 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31289 option and not mdll anymore. Update comment.
31290
31291 2004-08-16 Pascal Obry <obry@gnat.com>
31292
31293 * bld.adb (Put_Include_Project): Properly handle directory separators
31294 on Windows.
31295
31296 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31297
31298 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31299 decreasing the number of allocated junk nodes while searching for the
31300 appropriate subprogram.
31301
31302 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31303
31304 * cuintp.c (UI_To_gnu): Use build_int_cst..
31305 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31306 * utils.c (init_gigi_decls): Likewise.
31307 * utils2.c (build_call_raise): Likewise.
31308
31309 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31310
31311 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31312 for a global aliased object with a variable size and an unconstrained
31313 nominal subtype, pretend there is no initializer if the one we have is
31314 incomplete, and avoid referencing an inexistant component in there. The
31315 part we have will be rebuilt anyway and the reference may confuse
31316 further operations.
31317
31318 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31319
31320 * einfo.ads: Minor reformatting
31321
31322 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31323 restrictions in the ALI if we only want to warn about violations.
31324
31325 2004-08-13 Vincent Celier <celier@gnat.com>
31326
31327 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31328 when creating a new Unit_Record in table Units.
31329
31330 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31331 that are violated, if any.
31332
31333 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31334 add directory separator if path already ends with a directory separator.
31335
31336 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31337
31338 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31339 unit, this is an attempt to inline a construct that is not available in
31340 the current restricted mode, so abort rather than trying to continue.
31341
31342 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31343 discriminants that rename those of the parent, recover names of
31344 original discriminants for the constraint on the full view of the
31345 parent.
31346 (Complete_Private_Subtype): Do not create a subtype declaration if the
31347 subtype is an itype.
31348
31349 * gnat_rm.texi: Added section on implementation of discriminated
31350 records with default values for discriminants.
31351
31352 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31353
31354 PR ada/15601
31355 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31356 the second operand is overloaded.
31357
31358 2004-08-10 Richard Henderson <rth@redhat.com>
31359
31360 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31361 add __builtin_alloca.
31362
31363 2004-08-10 Richard Henderson <rth@redhat.com>
31364
31365 * config-lang.in (boot_language): Yes.
31366
31367 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31368
31369 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31370 from complaining on potential uninitialized reference.
31371 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31372 new specification and test explicitly for non-zero return value.
31373
31374 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31375 returning C.int, to avoid using a derived boolean type.
31376
31377 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31378 Duplicate_Subexpr_No_Checks in preference to direct use of
31379 Remove_Side_Effects and New_Copy_Tree.
31380 Clear Comes_From_Source on prefix of 'Size attribute reference.
31381
31382 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31383 g-socthi-vxworks.adb: Change calls to
31384 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31385 and test explicitly for non-zero return value.
31386
31387 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31388 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31389 avoid using a derived boolean type.
31390
31391 2004-08-09 Albert Lee <lee@gnat.com>
31392
31393 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31394
31395 2004-08-09 Pascal Obry <obry@gnat.com>
31396
31397 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31398 GCC's -shared option.
31399
31400 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31401 Options_2 parameter (options put after object files).
31402
31403 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31404
31405 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31406 ignore overflows on low and high bounds of an index to also account for
31407 differences in signedness between sizetype and gnu_index_subtype.
31408 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31409 on sizetype.
31410
31411 2004-08-09 Robert Dewar <dewar@gnat.com>
31412
31413 * s-solita.ads, s-solita.adb: Minor reformatting
31414
31415 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31416 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31417 obsolescent section
31418 Add note that No_Implicit_Conditionals does not suppress
31419 run time constraint checks.
31420
31421 * vms_conv.ads: Minor reformatting
31422
31423 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31424 and necessary for following change).
31425 (Mark): Return new format Mark_Id containing sec stack address
31426 (Release): Use sec stack address from Mark_Id avoiding Self call
31427
31428 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31429 pointer (cleanup and necessary for following change).
31430 Define Mark_Id as record containing address of secondary stack, that way
31431 Release does not need to find the stack again, decreasing the number of
31432 calls to Self and improving efficiency.
31433
31434 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31435
31436 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31437 case variable into the individual case branches when possible.
31438
31439 * sem_ch11.adb: Minor reformatting
31440
31441 * prj.ads: Correct spelling of suffixs
31442
31443 * prj-nmsc.adb: Minor reformatting
31444 Correct spelling suffixs throughout (also in identifiers)
31445
31446 * freeze.adb: Minor spelling correction
31447
31448 * exp_ch2.adb: Cleanups to handling of Current_Value
31449 (no functional effect).
31450
31451 * bld.adb: Correct spelling of suffixs
31452
31453 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31454
31455 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31456
31457 PR ada/15408
31458 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31459 package or of a child, private entities are both immediately_visible
31460 and not hidden.
31461
31462 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31463
31464 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31465 there are no range checks on the value of the literal.
31466
31467 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31468 wrapped is the triggering alternative of an asynchronous select, action
31469 statements mustbe inserted before the select itself.
31470
31471 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31472 case where the prefix is a protected function call.
31473 (Resolve_Attribute, case 'Access): The attribute reference on a
31474 subprogram is legal in a generic body if the subprogram is declared
31475 elsewhere.
31476
31477 2004-08-09 Vincent Celier <celier@gnat.com>
31478
31479 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31480 languages, otherwise building the library may fail with unresolved
31481 symbols.
31482 (Compile_Sources): Do not build libraries if -c switch is used
31483
31484 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31485 (Write_Usage): If map file creation is supported, output new switches
31486 -M and -Mmap.
31487 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31488 gcc call, when supported.
31489
31490 * Makefile.in: Added indepsw.o to the object list for gnatlink
31491 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31492
31493 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31494 indepsw.adb, indepsw.ads: New files.
31495
31496 2004-08-09 Bernard Banner <banner@gnat.com>
31497
31498 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31499
31500 * Makefile.in: add section for vxworks x86
31501
31502 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31503
31504 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31505 per-object constrained components where the discriminant is of an
31506 Access type.
31507 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31508 the parent initialization procedure for derived Unchecked_Unions.
31509 Instead, derived Unchecked_Unions build their own initialization
31510 procedure.
31511 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31512 Check the body of the subprogram for details.
31513 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31514 functions for derived Unchecked_Union types by introducing a condition.
31515 Allow the creation of TSS equality functions for Unchecked_Unions.
31516 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31517 Add formal parameter Discr to function signature. Discr is used to
31518 control the generated case statement for Unchecked_Union types.
31519 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31520
31521 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31522 Unchecked_Unions.
31523 Check the body of the subprogram for details.
31524 (Expand_Composite_Equality): Augment composite type equality to include
31525 correct handling of Unchecked_Union components.
31526 (Expand_N_In): Add condition to detect illegal membership tests when the
31527 subtype mark is a constrained Unchecked_Union and the expression lacks
31528 inferable discriminants, and build a Raise_Program_Error node.
31529 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31530 to detect types that contain components of unconstrained Unchecked_Union
31531 subtype. Add condition to detect equality between types that have an
31532 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31533 node. Add condition to detect equality between Unchecked_Union types
31534 that lack inferable discriminants, and build a Raise_Program_Error node.
31535 Otherwise build a TSS equality function call.
31536 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31537 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31538 with the operand lacking inferable discriminants, and build a Raise_
31539 Program_Error node.
31540 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31541 composite equality.
31542 (Has_Inferable_Discriminants): Implement new predicate for objects and
31543 expressions of Unchecked_Union type. Check the body of subprogram for
31544 details.
31545 (Has_Unconstrained_UU_Components): Add function
31546 Component_Is_Unconstrained_UU. It is used to detect whether a single
31547 component is of an unconstrained Unchecked_Union subtype. Add function
31548 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31549 component inside a variant is of an unconstrained Unchecked_Union type.
31550
31551 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31552 inferred discriminant values. Add condition to generate a case
31553 statement with an inferred discriminant as the switch.
31554 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31555 the behaviour of the subprogram in the presence of an Unchecked_Union.
31556 Add condition to trigger the usage of the inferred discriminant value
31557 as the generated case statement switch.
31558 (Make_Field_Assign): Introduce a Boolean flag that determines the
31559 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31560 condition to trigger the usage of the inferred discriminant value as
31561 the right-hand side of the generated assignment.
31562
31563 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31564 parameter generation when dealing with Unchecked_Unions.
31565
31566 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31567 checks for Unchecked_Unions.
31568
31569 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31570
31571 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31572 Raise_Program_Error nodes for the execution of Read and Write
31573 attributes of Unchecked_Union types and the execution of Input and
31574 Output attributes of Unchecked_Union types that lack default
31575 discriminant values.
31576
31577 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31578 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31579 per-object constrained components of Unchecked_Unions for being
31580 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31581 check individual components withing a variant.
31582
31583 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31584 comparison of Unchecked_Unions.
31585 (Resolve_Equality_OP): Remove guard that prevents equality between
31586 Unchecked_Unions.
31587
31588 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31589 of component subtypes for Unchecked_Union components.
31590 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31591 since it is the actual subtype.
31592
31593 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31594 pass of Unchecked_Union subtypes as generic actuals to formal types
31595 that lack known_discriminant_parts or that are derived Unchecked_Union
31596 types, and do nothing. In any other case, produce an error message.
31597
31598 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31599 Contains_POC. It determines whether a constraint uses the discriminant
31600 of an enclosing record type.
31601 Add condition to detect per-object constrained component and set the
31602 appropriate flag.
31603 (Derived_Type_Declaration): Remove guard that prevents derivation from
31604 Unchecked_Union types.
31605 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31606 Union subtypes.
31607
31608 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31609 references to Unchecked_Union discriminants.
31610
31611 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31612 formal generation when dealing with Unchecked_Unions.
31613 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31614 subtypes for Unchecked_Unions.
31615
31616 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31617 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31618 completions of discriminated partial views by Unchecked_Unions and
31619 produce an error message.
31620
31621 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31622
31623 * trans.c (struct stmt_group): New field, GLOBAL.
31624 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31625 (struct elab_info): New struct.
31626 (elab_info_list, gnu_elab_proc_stack): New variables.
31627 (Compilation_Unit_to_gnu): New procedure.
31628 (gigi): Call it and also handle elaboration procs we've saved.
31629 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31630 global field from parent.
31631 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31632 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31633 (start_stmt_group): Initialize global field from parent.
31634 (add_decl_expr): Set to global for current statement group.
31635 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31636 post.
31637
31638 * utils.c (global_bindings_p): True when no current_function_decl; no
31639 longer check current_binding_level.
31640
31641 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31642
31643 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31644 choice.
31645
31646 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31647
31648 2004-08-06 Andreas Schwab <schwab@suse.de>
31649
31650 * utils.c (gnat_define_builtin): Remove second parameter of
31651 make_decl_rtl.
31652 (begin_subprog_body): Likewise.
31653
31654 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31655
31656 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31657 optimization, not supported by the tree-ssa back-end.
31658
31659 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31660
31661 * s-mastop-irix.adb: Update comments.
31662
31663 * a-except.adb (Exception_Information): Raise Constraint_Error if
31664 exception Id is Null_Id.
31665 This is required behavior, which is more reliably and clearly checked
31666 at the top level interface level.
31667
31668 2004-07-26 Javier Miranda <miranda@gnat.com>
31669
31670 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31671 call if a component has no default_expression and the box is used.
31672
31673 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31674 default_expression and you use box, it behaves as if you had declared a
31675 stand-alone object.
31676 (Resolve_Record_Aggregate): If a component has no default_expression and
31677 you use box, it behaves as if you had declared a stand-alone object.
31678
31679 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31680 entities of private-with siblings.
31681
31682 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31683
31684 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31685 for a component of an itype, set the parent pointer for analysis,
31686 there is no list in which to insert it.
31687
31688 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31689 bona-fide renamings, not for inherited operations.
31690
31691 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31692 actual for a formal that is an access parameter, create local
31693 finalization list even if the expression is not an aggregate.
31694
31695 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31696
31697 PR ada/16213
31698 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31699 Diagnose properly illegal subprogram renamings that are library units.
31700
31701 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31702
31703 PR ada/15588
31704 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31705 conversion rewritten as an unchecked conversion, check that original
31706 expression is a variable.
31707
31708 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31709 unchecked_conversion, create new node rather than rewriting in place,
31710 to preserve original construct.
31711
31712 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31713
31714 * gigi.h (gnat_expand_body): Deleted.
31715
31716 * Make-lang.in: (trans.o): Depends on function.h.
31717
31718 * misc.c: (gnat_expand_body): Moved to here.
31719
31720 * trans.c (gnat_expand_body_1): Deleted.
31721 (gnat_expand_body): Moved from here.
31722 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31723 (add_stmt): Check for marked visited with global_bindings_p.
31724 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31725 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31726
31727 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31728 VIEW_CONVERT_EXPR if not operation type.
31729
31730 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31731 fat pointer.
31732
31733 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31734 changes: reformatting of negation operators, removing unneeded
31735 inequality comparison with zero, converting equality comparisons with
31736 zero to negations, changing int/0/1 to bool/false/true, replace calls
31737 to gigi_abort with abort, and various other similar changes.
31738
31739 2004-07-26 Vincent Celier <celier@gnat.com>
31740
31741 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31742 "setup".
31743
31744 * make.adb (Gnatmake): Fail when a library is not present and there is
31745 no object directory.
31746
31747 * mlib-prj.adb (Check_Library): No need to check if the library needs
31748 to be rebuilt if there is no object directory, hence no object files
31749 to build the library.
31750
31751 * opt.ads (Setup_Projects): New Boolean flag.
31752
31753 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31754 Location.
31755 Create directory when Kind /= "" and in "gnat setup". Report error if
31756 directory cannot be created.
31757 (Ada_Check): Create library interface copy dir if it does not exist
31758 and we are in "gnat setup".
31759 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31760 found.
31761 (Language_Independent_Check): Create object directory, exec directory
31762 and/or library directory if they do not exist and we are in
31763 "gnat setup".
31764
31765 * vms_conv.ads: (Command_Type): New command Setup.
31766
31767 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31768
31769 * vms_data.ads: Add qualifiers/switches for new built-in command
31770 "setup".
31771
31772 2004-07-25 Richard Henderson <rth@redhat.com>
31773
31774 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31775 DECL_IGNORED_P on RESULT_DECL.
31776
31777 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31778
31779 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31780 allocation and potentially overflowing update with
31781 Tailored_Exception_Information. Use the sec-stack free procedural
31782 interface to output Exception_Information instead.
31783
31784 * a-except.adb (To_Stderr): New subprogram for character, and string
31785 version moved from a-exextr to be visible from other separate units.
31786 (Tailored_Exception_Information): Remove the procedural version,
31787 previously used by the default Last_Chance_Handler and not any more.
31788 Adjust various comments.
31789
31790 * a-exexda.adb: Generalize the exception information procedural
31791 interface, to minimize the use of secondary stack and the need for
31792 local buffers when the info is to be output to stderr:
31793 (Address_Image): Removed.
31794 (Append_Info_Character): New subprogram, checking for overflows and
31795 outputing to stderr if buffer to fill is of length 0.
31796 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31797 (Append_Info_Address, Append_Info_Exception_Name,
31798 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31799 Append_Info_Basic_Exception_Traceback,
31800 Append_Info_Exception_Information): New subprograms.
31801 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31802 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31803 Exception_Info_Maxlength, Exception_Name_Length,
31804 Exception_Message_Length): New subprograms.
31805 (Exception_Information): Use Append_Info_Exception_Information.
31806 (Tailored_Exception_Information): Use
31807 Append_Info_Basic_Exception_Information.
31808 Export services for the default Last_Chance_Handler.
31809
31810 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31811 other separate units.
31812
31813 2004-07-20 Vincent Celier <celier@gnat.com>
31814
31815 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31816
31817 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31818
31819 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31820 emit itype references for the designated types of component types that
31821 are declared outside of the full record declaration, and that may
31822 denote a partial view of that record type.
31823
31824 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31825
31826 PR ada/15607
31827 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31828 which is the designated type in an access component declaration, to the
31829 list of incomplete dependents of the parent type, to avoid elaboration
31830 issues with out-of-scope subtypes.
31831 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31832 full view of the parent.
31833
31834 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31835
31836 PR ada/15610
31837 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31838 entities that are hidden, such as references to generic actuals
31839 outside an instance.
31840
31841 2004-07-20 Javier Miranda <miranda@gnat.com>
31842
31843 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31844 support to the new notation.
31845 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31846
31847 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31848
31849 * s-taprob.adb: Adding the elaboration code required for initializing
31850 the tasking soft links that are common to the full and the restricted
31851 run times.
31852
31853 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31854 restricted run time has been moved to the package
31855 System.Soft_Links.Tasking.
31856
31857 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31858 restricted run time has been moved to the package
31859 System.Soft_Links.Tasking.
31860
31861 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31862
31863 * s-solita.ads, s-solita.adb: New files.
31864
31865 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31866
31867 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31868 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31869 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31870 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31871 Exception_Handler_to_gnu_zcx): Likewise.
31872
31873 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31874
31875 * gigi.h (builtin_function): Declare.
31876
31877 2004-07-15 Robert Dewar <dewar@gnat.com>
31878
31879 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31880 reformatting
31881
31882 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31883 access values as an example of a warning.
31884
31885 * gnat_rm.texi: Document new attribute Has_Access_Values
31886
31887 * gnat-style.texi: Document that box comments belong on nested
31888 subprograms
31889
31890 * sem_util.ads (Has_Access_Values): Improved documentation
31891
31892 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31893
31894 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31895 (Process_Interface_Name): Call to this new procedure
31896 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31897
31898 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31899
31900 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31901
31902 * einfo.ads: Minor comment typo fixed
31903
31904 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31905
31906 * snames.adb: Add _atcb.
31907
31908 * snames.ads: Add Name_uATCB.
31909
31910 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31911 (in the expanded code) when using the restricted run time.
31912
31913 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31914 a in parameter in order to allow ATCBs to be preallocated (in the
31915 expanded code).
31916
31917 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31918 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31919 deallocated in System.Tasking.Stages.
31920
31921 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31922 order to allow ATCBs to be preallocated.
31923
31924 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31925 here. It was previously done in Initialize_ATCB.
31926
31927 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31928
31929 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31930 Restricted run time.
31931
31932 * exp_ch3.adb: When using the Restricted run time, pass the
31933 preallocated Ada_Task_Control_Block when creating a task.
31934
31935 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31936
31937 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31938 function call that is itself an actual in an enclosing call, diagnose
31939 problem here rather than assuming that resolution will catch it.
31940
31941 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31942 the local copy of a generic unit for a formal package, and the generic
31943 is a child unit, install private part of ancestors before compiling
31944 private part of spec.
31945
31946 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31947 use scope entities rather than tree structures, to handle properly
31948 parent units that are instances rewritten as bodies for inlining
31949 purposes.
31950
31951 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31952 Remove_Parents): Handle properly a parent unit that is an
31953 instantiation, when the unit has been rewritten as a body for inlining
31954 purposes.
31955
31956 * par.adb (Goto_List): Global variable to collect goto statements in a
31957 given unit, for use in detecting natural loops.
31958
31959 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31960 use in detecting natural loops.
31961
31962 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31963 backwards goto's, and rewrite as a infinite loop, to improve locality
31964 of temporaries.
31965
31966 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31967 subcomponent that includes an indexed reference, to prevent the
31968 generation of copies that would miscompile the desired assignment
31969 statement.
31970 (Build_Task_Image_Decls): Add a numeric suffix to
31971 generated name for string variable, to avoid spurious conflicts with
31972 the name of the type of a single protected object.
31973
31974 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31975 loop with an explicit exit statement, to avoid generating an
31976 out-of-range value with 'Succ leading to spurious constraint_errors
31977 when compiling with -gnatVo.
31978
31979 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31980
31981 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31982 might not be analyzed yet, even if its Etype is already set (case of an
31983 unchecked conversion built using Unchecked_Convert_To, for example).
31984 If the prefix has already been analyzed, this will be a nop anyway.
31985
31986 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31987 controller type, or an assignment of a record type with controlled
31988 components, copy only user data, and leave the finalization chain
31989 pointers untouched.
31990
31991 2004-07-15 Vincent Celier <celier@gnat.com>
31992
31993 * make.adb (Collect_Arguments): Improve error message when attempting
31994 to compile a source not part of any project, when -x is not used.
31995
31996 * prj.ads: (Defined_Variable_Kind): New subtype
31997
31998 * prj-attr.adb (Register_New_Package): Two new procedures to register
31999 a package with or without its attributes.
32000 (Register_New_Attribute): Mew procedure to register a new attribute in a
32001 package.
32002 New attribute oriented subprograms: Attribute_Node_Id_Of,
32003 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32004 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32005 Next_Attribute.
32006 New package oriented subprograms: Package_Node_Id_Of,
32007 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32008
32009 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
32010 type.
32011 (Package_Node_Id): Now a private, self initialized type
32012 (Register_New_Package): New procedure to register a package with its
32013 attributes.
32014 New attribute oriented subprograms: Attribute_Node_Id_Of,
32015 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32016 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32017 Next_Attribute.
32018 New package oriented subprograms: Package_Node_Id_Of,
32019 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32020
32021 * prj-dect.adb (Parse_Attribute_Declaration,
32022 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
32023
32024 * prj-makr.adb (Make): Parse existing project file before creating
32025 other files. Fail if there was an error during parsing.
32026
32027 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
32028 new spec of Prj.Attr.
32029
32030 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
32031 to new spec of Prj.Attr.
32032
32033 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32034
32035 * utils2.c: Fix typo in comment.
32036
32037 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32038
32039 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32040 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32041
32042 2004-07-14 Andreas Schwab <schwab@suse.de>
32043
32044 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32045
32046 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32047
32048 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32049 object type.
32050 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32051 TYPE_STUB_DECL.
32052
32053 * misc.c (gnat_types_compatible_p): New function.
32054 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32055 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32056
32057 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32058 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32059 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32060 (mark_visited): Don't mark dummy type.
32061 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
32062 parameter, we must remove any LJM building from GNU_NAME.
32063 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32064 (pos_to_constructor): Use int_const_binop.
32065 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32066 PARM_DECL.
32067
32068 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32069 (gnat_pushlevel): Set TREE_USE on BLOCK node.
32070 (gnat_install_builtins): Add __builtin_memset.
32071
32072 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
32073
32074 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32075 for a renaming, stabilize the initialization expression if we are at a
32076 local level. At the local level, uses of the renaming may be performed
32077 by a direct dereference of the initializing expression, and we don't
32078 want possible variables there to be evaluated for every use.
32079
32080 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32081 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32082 them on the way. Account for the fact that we may introduce side
32083 effects in the process.
32084
32085 2004-07-13 Richard Henderson <rth@redhat.com>
32086
32087 * misc.c (default_pass_by_ref): Use pass_by_reference.
32088
32089 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
32090
32091 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32092 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32093
32094 2004-07-08 Richard Henderson <rth@redhat.com>
32095
32096 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32097 commentary.
32098
32099 2004-07-06 Vincent Celier <celier@gnat.com>
32100
32101 * vms_conv.ads: Minor reformatting.
32102 Alphabetical order for enumerated values of type Command_Type, to have
32103 the command in alphabetical order for the usage.
32104
32105 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32106 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32107
32108 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32109
32110 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32111 (Add_Archive_Path): Only add the global archive if there is one.
32112 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32113 or not any object file to put in the global archive, and don't build
32114 a global archive if there is none.
32115 (X_Switches): New table
32116 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32117 in the X_Switches table, if any.
32118 (Initialize): Make sure the X_Switches table is empty
32119 (Scan_Arg): Record -X switches in table X_Switches
32120
32121 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32122
32123 * make.adb: Minor comment fix
32124
32125 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32126 invoked with directory information, add the directory in front of the
32127 path.
32128
32129 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32130 invoked with directory information, add the directory in front of the
32131 path.
32132
32133 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32134 when Keep_Temporary_Files is False.
32135 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32136 directory information, add the directory in front of the path.
32137 When not on VMS, handle new switch -dn before the command to set
32138 Keep_Temporary_Files to True.
32139 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32140 everywhere.
32141
32142 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32143 invoked with directory information, add the directory in front of the
32144 path.
32145
32146 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
32147
32148 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32149 systems annex.
32150
32151 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32152 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32153
32154 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32155 Selector_Duration to Timeval for the case of 0.0.
32156
32157 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32158 documentation from Evolve_And_Then.
32159
32160 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32161
32162 * s-taprop-tru64.adb, s-taprop-os2.adb,
32163 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32164
32165 2004-07-06 Robert Dewar <dewar@gnat.com>
32166
32167 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32168 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32169 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32170 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32171 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32172 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32173 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32174 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32175 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32176 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32177 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32178 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32179 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32180 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32181 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32182 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32183 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32184 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32185 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32186 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32187 vms_data.ads: Minor reformatting,
32188 Fix bad box comment format.
32189
32190 * gnat_rm.texi: Fix minor grammatical error
32191
32192 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32193
32194 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32195 more cases of discriminated records to be recognized as not needing a
32196 secondary stack.
32197 (Has_Access_Values): New function.
32198
32199 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32200
32201 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32202 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32203 with LRM terminology).
32204 Change terminology in comments primitive type => elementary type.
32205
32206 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32207
32208 PR ada/15602
32209 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32210 parameters do not impose any requirements on the presence of a body.
32211
32212 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32213
32214 PR ada/15593
32215 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32216 compilation unit and is in an open scope at the point of instantiation,
32217 assume that a body may be present later.
32218
32219 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32220
32221 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32222 Improve error message when specified size is not supported.
32223
32224 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32225 is never a primitive operation.
32226
32227 2004-07-05 Andreas Schwab <schwab@suse.de>
32228
32229 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32230 RECORD_OR_UNION_CHECK.
32231 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32232
32233 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32234
32235 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32236 dependency on xgnatugn, instead build it via a submake.
32237 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32238
32239 2004-07-04 Richard Henderson <rth@redhat.com>
32240
32241 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32242
32243 2004-07-01 Richard Henderson <rth@redhat.com>
32244
32245 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32246 * utils.c (max_size): Likewise.
32247
32248 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32249
32250 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32251 and rest_of_type_compilation; add arg to create_*_decl.
32252 (annotate_decl_with_node): Deleted.
32253 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32254 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32255 (get_current_block_context, gnat_pushdecl): New declarations.
32256 (gnat_init_stmt_group): Likewise.
32257 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32258 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32259 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32260 (gnat_init): Call gnat_init_stmt_group.
32261 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32262 (gnu_pending_elaboration_list): Deleted.
32263 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32264 (gigi): Rearrange initialization calls and move some to last above.
32265 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32266 Delete calls to add_decl_expr; add arg to create_*_decl.
32267 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32268 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32269 begin_subprog_body and call it.
32270 Don't push and pop ggc context.
32271 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32272 (add_stmt): Remove handling of DECL_EXPR from here.
32273 If not in function, mark visited.
32274 (add_decl_expr): Put global at top level.
32275 Check for cases of DECL_INITIAL we have to handle here.
32276 (process_type): Add extra arg to create_type_decl.
32277 (build_unit_elab): Rework to just gimplify.
32278 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32279 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32280 (get_pending_elaborations, pending_elaborations_p): Likewise.
32281 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32282 (get_elaboration_location, insert_elaboration_list): Likewise.
32283 (gnat_binding_level): Renamed from ada_binding_level.
32284 (init_gnat_to_gnu): Don't clear pending_elaborations.
32285 (global_bindings_p): Treat as global if no current_binding_level.
32286 (set_current_block_context): New function.
32287 (gnat_pushdecl): Renamed from pushdecl; major rework.
32288 All callers changed.
32289 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32290 (finish_record_type): Call call pushdecl for stub decl.
32291 (function_nesting_depth): Deleted.
32292 (begin_subprog_body): Delete obsolete code.
32293 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32294
32295 2004-06-28 Robert Dewar <dewar@gnat.com>
32296
32297 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32298 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32299 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32300 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32301 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32302
32303 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32304 deal with problem of inefficient slices on machines with strict
32305 alignment, when the slice is a component of a composite.
32306
32307 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32308 machines, we need the check there as well.
32309
32310 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32311
32312 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32313 determine safe copying direction for overlapping slice assignments
32314 when component is controlled.
32315
32316 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32317 formal derived type in the actual for a formal package are visible in
32318 the enclosing instance.
32319
32320 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32321
32322 PR ada/15600
32323 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32324 circularity involving a private type whose completion includes a
32325 self-referential component.
32326 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32327 renaming or an instantiation from an implicit derived operation.
32328
32329 2004-06-28 Pascal Obry <obry@gnat.com>
32330
32331 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32332 DLL.
32333 (Library_File_Name_For): Idem.
32334
32335 2004-06-28 Matthew Gingell <gingell@gnat.com>
32336
32337 * g-traceb.ads: Add explanatory note on the format of addresses
32338 expected by addr2line.
32339
32340 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32341
32342 * Makefile.in: Force debugging information on s-tasdeb.adb,
32343 a-except.adb and s-assert.adb needed by the debugger.
32344
32345 2004-06-28 Vincent Celier <celier@gnat.com>
32346
32347 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32348 Need_To_Build_Lib.
32349 (Gnatmake): Ditto.
32350
32351 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32352
32353 * prj.adb: Minor reformatting
32354 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32355
32356 * prj.ads: Comment updates
32357 Minor reformatting
32358 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32359 Remove Flag2: not used.
32360
32361 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32362 declaration.
32363
32364 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32365
32366 * gnat_rm.texi: Document Empty declarations "null;".
32367
32368 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32369 front of the linker options.
32370 (Link_Foreign): Put the global archives and the libraries in front of
32371 the linker options.
32372
32373 2004-06-28 Javier Miranda <miranda@gnat.com>
32374
32375 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32376 (RTU_Loaded): Code cleanup
32377 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32378 withed predefined units.
32379
32380 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32381 explicitly withed predefined units.
32382 Fix typo in comment
32383
32384 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32385 explicitly withed predefined units.
32386
32387 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32388
32389 * ada-tree.def (DECL_STMT): Deleted.
32390 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32391 (DECL_STMT_VAR): Deleted.
32392 * decl.c: add_decl_stmt now add_decl_expr.
32393 * gigi.h: Likewise.
32394 * trans.c: Likewise.
32395 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32396 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32397 (add_stmt): Only handle padded type here.
32398 (add_stmt_with_node): Allow gnat_node to not be present.
32399 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32400 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32401 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32402 make a SAVE_EXPR for the entire fat pointer.
32403 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32404 (create_index_type): Make a DECL_EXPR.
32405 (end_subprog_body): Don't call allocate_struct_function here but
32406 do clear cfun.
32407
32408 2004-06-25 Pascal Obry <obry@gnat.com>
32409
32410 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32411 Relocatable from Build_Dynamic_Library call.
32412
32413 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32414 Relocatable are now synonym.
32415
32416 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32417
32418 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32419 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32420 call.
32421
32422 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32423 Lib_Address and Relocatable.
32424 (Default_DLL_Address): Removed.
32425
32426 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32427 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32428 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32429 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32430 (Default_DLL_Address): Removed.
32431
32432 * mlib-tgt-mingw.adb: Ditto.
32433 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32434
32435 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32436 the initial thread stack size.
32437
32438 * a-strmap.ads: Move package L to private part as it is not used in
32439 the spec. Found while reading code.
32440
32441 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32442
32443 * tracebak.c: Introduce support for a GCC infrastructure based
32444 implementation of __gnat_backtrace.
32445
32446 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32447 any more. Use accessors instead. This eases maintenance and relaxes
32448 some alignment constraints.
32449 (_GNAT_Exception structure): Remove the Ada specific fields
32450 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32451 a-exexpr.adb.
32452 (is_handled_by, __gnat_eh_personality): Replace component references to
32453 exception structure by use of the new accessors.
32454
32455 * init.c (__gnat_initialize): Adjust comments to match the just
32456 reverted meaning of the -static link-time option.
32457
32458 * adaint.c (convert_addresses): Arrange not to define a stub for
32459 mips-irix any more, as we now want to rely on a real version from a
32460 recent libaddr2line.
32461
32462 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32463 the personality routine can use them and not have to rely on a C
32464 counterpart of the record anymore. This simplifies maintenance and
32465 relaxes the constraint of having Standard'Maximum_Alignment match
32466 BIGGEST_ALIGNMENT.
32467 Update comments, and add a section on the common header alignment issue.
32468
32469 2004-06-25 Geert Bosch <bosch@gnat.com>
32470
32471 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32472 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32473
32474 2004-06-25 Robert Dewar <dewar@gnat.com>
32475
32476 * gnat_rm.texi: Fix section on component clauses to indicate that the
32477 restriction on byte boundary placement still applies for bit packed
32478 arrays.
32479 Add comment on stack usage from Initialize_Scalars
32480
32481 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32482
32483 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32484 limiting nesting level.
32485
32486 * usage.adb: Add line for -gnatyLnnn switch
32487
32488 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32489 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32490
32491 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32492 type as well as on the subtype. This corrects a problem in freeze in
32493 setting alignments of atomic types.
32494
32495 * sem_eval.ads: Minor comment typo fixed
32496
32497 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32498 level. Minor reformatting.
32499
32500 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32501 minus sign. This means that file names like a--b.adb will not be
32502 considered predefined.
32503
32504 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32505 record Test new flag and give diagnostic for bad component clause.
32506 (Freeze_Entity): Set alignment of array from component alignment in
32507 cases where this is safe to do.
32508
32509 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32510 arrays.
32511
32512 * cstand.adb: (Create_Standard): Set alignment of String to 1
32513
32514 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32515
32516 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32517 code in the common constrained array cases.
32518
32519 * a-storio.adb: Change implementation to avoid possible alignment
32520 problems on machines requiring strict alignment (data should be moved
32521 as type Buffer, not type Elmt).
32522
32523 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32524 killing the overflow checks which we really do not need (64-bits is
32525 enough).
32526
32527 2004-06-25 Vincent Celier <celier@gnat.com>
32528
32529 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32530 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32531 inconditionally for the main project.
32532 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32533 (Link_Executables.Check_Time_Stamps): New procedure
32534 (Link_Executables.Link_Foreign): New procedure
32535 Changes made to reduce nesting level of this package
32536 (Check): New procedure
32537 (Add_Switches): When not in quiet output, check that a switch is not
32538 the concatenation of several valid switches. If it is, issue a warning.
32539 (Build_Global_Archive): If the global archive is rebuilt, linking need
32540 to be done.
32541 (Compile_Sources): Rebuilding a library archive does not imply
32542 rebuilding the global archive.
32543 (Build_Global_Archive): New procedure
32544 (Build_Library): New name for Build_Archive, now only for library
32545 project
32546 (Check_Archive_Builder): New procedure
32547 (Create_Global_Archive_Dependency_File): New procedure
32548 (Gprmake): Call Build_Global_Archive before linking
32549 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32550 throughout.
32551 (Scan_Arg): Display the Copyright notice when -v is used
32552
32553 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32554 for gnatls.
32555
32556 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32557 COMPILE.
32558 Add new GNAT LIST qualifier /FILES=
32559 Added qualifier /DIRECTORY= to GNAT METRIC
32560 Added qualifier /FILES= to GNAT METRIC
32561 Added qualifier /FILES to GNAT PRETTY
32562
32563 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32564 to take into account both versions of the switch.
32565
32566 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32567 always be the last switch to the gcc driver. Disable switch storing so
32568 that switches automatically added by the gcc driver are not put in the
32569 ALI file.
32570
32571 * prj.adb (Project_Empty): Take into account changes in components of
32572 Project_Data.
32573
32574 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32575
32576 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32577 used. Split Boolean component Ada_Sources_Present in two Boolean
32578 components Ada_Sources_Present and Other_Sources_Present.
32579 Minor reformatting
32580
32581 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32582 instead of Sources_Present.
32583 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32584
32585 * prj-nmsc.adb: Minor reformatting
32586 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32587 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32588 Check_Ada_Naming_Scheme.
32589 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32590 throughout.
32591
32592 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32593 In_Limited.
32594 Make sure that all cycles where there is at least one "limited with"
32595 are detected.
32596 (Parse_Single_Project): New Boolean parameter In_Limited
32597
32598 * prj-proc.adb (Recursive_Check): When Process_Languages is
32599 All_Languages, call first Prj.Nmsc.Ada_Check, then
32600 Prj.Nmsc.Other_Languages_Check.
32601
32602 * prj-proc.adb (Process): Use Ada_Sources_Present or
32603 Other_Sources_Present (instead of Sources_Present) depending on
32604 Process_Languages.
32605
32606 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32607 last switches.
32608
32609 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32610 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32611 False.
32612 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32613 False.
32614
32615 * lib.ads (Disable_Switch_Storing): New procedure.
32616
32617 * make.adb: Modifications to reduce nesting level of this package.
32618 (Check_Standard_Library): New procedure
32619 (Gnatmake.Check_Mains): New procedure
32620 (Gnatmake.Create_Binder_Mapping_File): New procedure
32621 (Compile_Sources.Compile): Add switch -gnatez as the last option
32622 (Display): Never display -gnatez
32623
32624 * Makefile.generic:
32625 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32626
32627 * gnatcmd.adb (Check_Project): New function
32628 (Process_Link): New procedure to reduce nesting depth
32629 (Check_Files): New procedure to reduce the nesting depth.
32630 For GNAT METRIC, include the inherited sources in extending projects.
32631 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32632 add the list of files from the sources of the project file. If this list
32633 is too long, put it in a temp text files and use switch -files=
32634 (Delete_Temp_Config_Files): Delete the temp text file that contains
32635 a list of source for gnatpp or gnatmetric, if one has been created.
32636 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32637 in the project file is too large, create a temporary text file that
32638 list them and pass it to the tool with "-files=<temp text file>".
32639 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32640
32641 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32642 generated file is in not in Ada.
32643
32644 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32645 (Scan_Ls_Arg): Add processing for -files=
32646 (Usage): Add line for -files=
32647
32648 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32649 (Normalize_Pathname): When on Windows and the path starts with a
32650 directory separator, make sure that the resulting path will start with
32651 a drive letter.
32652
32653 * clean.adb (Clean_Archive): New procedure
32654 (Clean_Project): When there is non-Ada code, delete the global archive,
32655 the archive dependency files, the object files and their dependency
32656 files, if they exist.
32657 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32658
32659 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32660
32661 * sinfo.ads: Fix typo in comment.
32662
32663 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32664 the TSS for remote access-to-subprogram types, since these TSS are
32665 always present once the type has been analyzed.
32666 (RAS_E_Dereference): Same.
32667
32668 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32669 reference raises Bad_Attribute, mark the reference as analyzed so the
32670 node (and any children resulting from rewrites that could have occurred
32671 during the analysis that ultimately failed) is not analyzed again.
32672
32673 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32674
32675 * exp_dist.adb: Minor comment fix.
32676
32677 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32678 type is an anonymous access type, no unchecked deallocation of the
32679 allocated object can occur. If the object is controlled, attach it with
32680 a count of 1. This allows attachment to the Global_Final_List, if
32681 no other relevant list is available.
32682 (Get_Allocator_Final_List): For an anonymous access type that is
32683 the type of a discriminant or record component, the corresponding
32684 finalisation list is the one of the scope of the type.
32685
32686 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32687
32688 * sem_ch3.adb (Replace_Type): When computing the signature of an
32689 inherited subprogram, use the first subtype if the derived type
32690 declaration has no constraint.
32691
32692 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32693 before applying previous optimization. Minor code cleanup.
32694
32695 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32696 placed at the beginning of an unpacked record without explicit
32697 alignment, a slice of it will be aligned and does not need a copy when
32698 used as an actual.
32699
32700 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32701
32702 PR ada/15591
32703 PR ada/15592
32704 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32705 reference is written with expressions mimicking parameters.
32706
32707 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32708
32709 PR ada/15589
32710 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32711 STEP 2a. The constraints of a full type declaration of a derived record
32712 type are checked for conformance with those declared in the
32713 corresponding private extension declaration. The message
32714 "not conformant with previous declaration" is emitted if an error is
32715 detected.
32716
32717 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32718
32719 * g-traceb.ads: Document the need for -E binder switch in the spec.
32720
32721 * g-trasym.ads: Document the need for -E binder switch in the spec.
32722
32723 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32724
32725 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32726
32727 * snames.h, snames.ads, snames.adb: Add entry for pragma
32728 Detect_Blocking.
32729
32730 * s-rident.ads: Change reference to pragma Detect_Blocking.
32731
32732 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32733 system.ads.
32734
32735 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32736 to indicate whether pragma Detect_Blocking is active.
32737
32738 * par-prag.adb: Add entry for pragma Detect_Blocking.
32739
32740 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32741 of not handling WITH.
32742 Note that this replaces the previous update which was incorrect.
32743
32744 2004-06-25 Javier Miranda <miranda@gnat.com>
32745
32746 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32747 use-clauses to have a clean environment.
32748
32749 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32750 the installation of the use-clauses to stablish a clean environment in
32751 case of compilation of a separate unit; otherwise the call to
32752 use_one_package is protected by the barrier Applicable_Use.
32753
32754 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32755 the installation of the use-clauses to stablish a clean environment in
32756 case of compilation of a separate unit.
32757 (End_Use_Clauses): Minor comment cleanup.
32758
32759 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32760
32761 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32762
32763 2004-06-23 Richard Henderson <rth@redhat.com>
32764
32765 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32766
32767 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32768
32769 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32770 now bool instead of int.
32771 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32772 * trans.c (gnu_switch_label_stack): New function.
32773 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32774 elaboration of renamed entity returns.
32775 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32776 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32777 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32778 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32779 DECL_SIZE_UNIT and simplify variable-sized case.
32780 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32781 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32782 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32783 (build_unit_elab): Disable for now.
32784 * utils.c (mark_visited): New function.
32785 (pushdecl): Walk tree to call it for global decl.
32786 (update_pointer_to): Update all variants of pointer and ref types.
32787 Add arg to COMPONENT_REF.
32788 (convert): Likewise.
32789 Move check for converting between variants lower down.
32790 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32791 (build_allocator): Don't force type of MODIFY_EXPR.
32792 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32793 put_var_into_stack.
32794
32795 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32796
32797 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32798 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32799 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32800 subprograms.
32801 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32802 all callers changed.
32803 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32804 the way that EXIT_STMT finds the loop label.
32805 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32806 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32807 (add_stmt): Use annotate_with_locus insted of setting directly.
32808 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32809 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32810 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32811 (build_vms_descriptor): Add extra args to ARRAY_REF.
32812 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32813 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32814 New cases.
32815 (build_binary_op): Don't make explicit CONVERT_EXPR.
32816 Add extra rgs to ARRAY_REF.
32817
32818 2004-06-14 Pascal Obry <obry@gnat.com>
32819
32820 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32821 Windows. Fix minor typo.
32822
32823 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32824 which is now supported on Windows. With this implementation using the
32825 Library Project feature is no different on Windows than on UNIX.
32826
32827 2004-06-14 Vincent Celier <celier@gnat.com>
32828
32829 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32830 non-Ada sources.
32831
32832 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32833
32834 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32835 found, show the project name and the path of the previously parsed
32836 project file.
32837
32838 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32839
32840 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32841 array, avoid copying the actual before the call.
32842
32843 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32844
32845 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32846 Instead, allocate memory on worst-case alignment assumptions, and then
32847 return an aligned address within the allocated zone.
32848
32849 2004-06-14 Robert Dewar <dewar@gnat.com>
32850
32851 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32852 elab entities in predefined units in No_Run_Time_Mode.
32853 (Gen_Adainit_C): Same fix
32854 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32855 units in No_Run_Time_Mode
32856 (Gen_Elab_Calls_C): Same fix
32857
32858 * symbols-vms-alpha.adb: Minor reformatting
32859
32860 * g-debpoo.ads: Minor reformatting
32861
32862 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32863
32864 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32865
32866 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32867 working on nodes.
32868
32869 * make.adb: Minor reformatting
32870
32871 * par-ch12.adb: Minor reformatting
32872
32873 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32874
32875 * prj-strt.adb: Minor reformatting
32876
32877 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32878 be more general.
32879
32880 * sem_attr.adb: Minor reformatting
32881
32882 * sem_ch7.adb: Minor reformatting
32883
32884 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32885 for type in the same unit as the object declaration.
32886
32887 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32888 static string expressions and not just string literals.
32889 Minor reformatting
32890 (Set_Warning): Reset restriction warning flag for restriction pragma
32891 Implement pragma Profile_Warnings
32892 Implement pragma Profile (Restricted)
32893 Give obolescent messages for old restrictions and pragmas
32894
32895 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32896 Profile_Warnings.
32897
32898 * s-rident.ads: Add declarations for restrictions required by profile
32899 Restricted and profile Ravenscar.
32900
32901 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32902
32903 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32904 configuration pragmas.
32905
32906 2004-06-11 Vincent Celier <celier@gnat.com>
32907
32908 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32909 gnatsym, when symbol policy is Restricted.
32910
32911 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32912 gnatsym, when symbol policy is Restricted.
32913
32914 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32915 read the symbol file.
32916 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32917 symbol file is not in the object files. Do not create a new symbol file
32918 when symbol policy is Restricted.
32919
32920 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32921 in Scng.
32922
32923 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32924 Restricted.
32925 (Usage): Line for new switch -R
32926
32927 * make.adb (Initialize): When the platform is not VMS, add the
32928 directory where gnatmake is invoked in the front of the path, if
32929 gnatmake is invoked with directory information. Change the Scan_Args
32930 while loop to a for loop.
32931 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32932 if Depth is equal or greater than the proposed depth, there is nothing
32933 to do.
32934 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32935 instead of 0.
32936
32937 * prj.ads: Add new symbol policy Restricted.
32938
32939 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32940 with the new parameters Check_All_Labels and Case_Location.
32941
32942 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32943 (Library_Symbol_File needs to be defined).
32944
32945 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32946 and Case_Location If Check_All_Labels is True, check that all values of
32947 the string type are used, and output warning(s) if they are not.
32948
32949 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32950 and Case_Location.
32951
32952 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32953
32954 * gnat_ugn.texi: Update documentation about the library directory in
32955 Library Projects.
32956
32957 * makegpr.adb (Display_Command): In verbose mode, also display the
32958 value of the CPATH env var, when the compiler is gcc.
32959 (Initialize): Change the Scan_Args while loop to a for loop
32960 (Compile_Individual_Sources): Change directory to object directory
32961 before compilations.
32962
32963 * symbols.ads: New symbol policy Restricted.
32964
32965 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32966
32967 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32968 is now taken care of internally in the Exception_Propagation package
32969 and does not require clients assistance any more.
32970
32971 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32972 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32973 functions. Helpers to maintain a predicate required in the handling of
32974 occurrence transfer between tasks.
32975 This is now handled internally and does not require clients assistance
32976 for the setup/propagate separation anymore.
32977 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32978 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32979 document.
32980
32981 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32982 raise_after_setup, now that everything is handled internally within the
32983 setup/propagation engine.
32984
32985 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32986
32987 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32988 Add additional conditions for the case of an actual being a simple
32989 name or literal. Improve inlining by preventing the generation
32990 of temporaries with a short lifetime (one use).
32991
32992 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32993
32994 PR ada/15587
32995 * einfo.ads: Minor comment updates for Has_Completion and
32996 E_Constant list of flags.
32997
32998 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32999 and constant redeclarations now set the Has_Completion flag of their
33000 defining identifiers.
33001
33002 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
33003 Inspect_Deferred_Constant_Completion.
33004 Used to detect private deferred constants that have not been completed
33005 either by a constant redeclaration or pragma Import. Emits error message
33006 "constant declaration requires initialization expression".
33007
33008 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
33009 completes a deferred constant.
33010
33011 2004-06-11 Geert Bosch <bosch@gnat.com>
33012
33013 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
33014
33015 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
33016 calculating exponent for scaling denormal numbers.
33017 (Leading_Part): Properly raise Constraint_Error for zero or negative
33018 Adjustment.
33019 (Remainder): Properly raise Constraint_Error for zero divisor.
33020
33021 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
33022
33023 * sem_util.adb: Minor reformatting.
33024
33025 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
33026 dereference when accessing the entry parameter record.
33027 (Check_Array_Type): Always check for possible implicit dereference.
33028 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33029 Abort if a pointer is still present (denoting that an implicit
33030 dereference was left in the tree by the front-end).
33031
33032 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
33033 dereference when accessing the entry parameter record.
33034 (Check_Array_Type): Always check for possible implicit dereference.
33035 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33036 Abort if a pointer is still present (denoting that an implicit
33037 dereference was left in the tree by the front-end).
33038
33039 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
33040
33041 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33042 message, like the compiler itself does. Easier to parse the output.
33043
33044 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33045
33046 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33047 be base names, and not includes directories.
33048
33049 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33050
33051 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33052 so that dependencies are properly taken into account by make.
33053
33054 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33055
33056 PR ada/15622
33057 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33058 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33059
33060 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
33061
33062 * Makefile.in (install-gnatlib): install target-specific run-time files.
33063
33064 * Make-lang.in: Remove obsolete targets.
33065
33066 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33067
33068 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33069 specification, to catch misuses of program unit names.
33070
33071 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33072 superfluous conversions in an instance.
33073
33074 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33075
33076 PR ada/15403
33077 * sem_ch12.adb (Save_References): If operator node has been folded to
33078 enumeration literal, associated_node must be discarded.
33079
33080 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
33081
33082 * s-stchop-vxworks.adb: Add required pragma Convention to
33083 Task_Descriptor because it is updated by a C function.
33084
33085 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
33086
33087 PR ada/15568
33088 * Makefile.in: Remove target specific SO_OPT on IRIX
33089
33090 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33091
33092 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33093 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33094 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33095 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33096 (STMT_STMT, USE_STMT): New statement codes.
33097 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33098 * ada-tree.h: Reflect above changes.
33099 (struct tree_loop_id): Deleted.
33100 (union lang_tree_node, struct lang_decl, struct lang_type):
33101 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33102 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33103 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33104 (IS_ADA_STMT): New macro.
33105 * decl.c (annotate_decl_with_node): New function.
33106 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33107 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33108 Call add_stmt_with_node to do needed assignments.
33109 Add call to update setjmp buffer directly, not via EXPR_STMT.
33110 (maybe_variable): Argment GNAT_NODE deleted.
33111 * gigi.h (maybe_variable): Likewise.
33112 (make_transform, add_stmt_with_node, set_block_for_group): New.
33113 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33114 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33115 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33116 (set_lineno, set_lineno_from_sloc): Likewise.
33117 (record_code_position, insert_code_for): Likewise.
33118 (gnat_poplevel): Now returns void.
33119 (end_subprog_body): Now takes argument.
33120 * misc.c (cgraph.h, tree-inline.h): New includes.
33121 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33122 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33123 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33124 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33125 (gnat_parse_file): Don't set immediate_size_expand.
33126 Call cgraph functions.
33127 (gnat_expand_expr): Remove most cases.
33128 (record_code_position, insert_code_for): Remove from here.
33129 * trans.c (toplev.h, tree-gimple.h): Now included.
33130 (discard_file_names): Deleted.
33131 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33132 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33133 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33134 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33135 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33136 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33137 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33138 (set_block_for_group, add_stmt_list): Likewise.
33139 (start_stmt_group): Renamed from start_block_stmt.
33140 (end_stmt_group): Likewise, from end_block_stmt.
33141 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33142 (gigi): Don't set discard_file_names or call set_lineno.
33143 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33144 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33145 Numerous changes throughout to reflect new names and complete
33146 function-at-a-time implementation.
33147 (gnat_expand_stmt): Delete or comment out all cases.
33148 (process_inlined_subprograms): Use add_stmt.
33149 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33150 call set_lineno; also remove unneeded block handling.
33151 (process_type): Remove unneeded block handling.
33152 (build_unit_elab): Remove calls to deleted functions.
33153 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33154 (tree-dump.h): Likewise.
33155 (struct ada_binding_level): Add field jmpbuf_decl.
33156 (gnat_define_builtin, gnat_install_builtins): New.
33157 (gnat_gimplify_function, gnat_finalize): Likewise.
33158 (gnat_poplevel): No longer return BLOCK, set it instead.
33159 Remove code dealing with nested functions.
33160 (gnat_init_decl_processing): Also set size_type_node.
33161 Call gnat_install_builtins.
33162 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33163 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33164 Remove special-case for "main".
33165 (end_subprog_body): Add arg and rework for tree-ssa.
33166 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33167 Add case for BOOLEAN_TYPE.
33168 * utils2.c (rtl.h): Now include.
33169 (build_call_raise): Test Debug_Flag_NN directly.
33170 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33171 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33172 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33173
33174 2004-06-07 Robert Dewar <dewar@gnat.com>
33175
33176 * a-direct.ads, einfo.ads: Minor comment updates
33177
33178 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33179 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33180 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33181 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33182 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33183
33184 * s-interr-sigaction.adb: Remove unreferenced variable
33185 (Attached_Interrupts). Minor reformatting.
33186 Avoid use of variable I (replace by J).
33187
33188 * par-ch10.adb: Fix text of one error message
33189
33190 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33191 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33192 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33193 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33194 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33195 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33196 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33197 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33198 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33199 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33200 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33201 2005 support.
33202
33203 2004-06-07 Doug Rupp <rupp@gnat.com>
33204
33205 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33206
33207 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33208
33209 * mlib-tgt-vms-ia64.adb: New file.
33210
33211 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33212 Add mlib-tgt-vms-ia64.adb
33213 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33214 Move to alpha specific ifeq section.
33215 Add VMS specific versions of symbols.adb
33216 Renaming of 5q vms files.
33217
33218 * 5qsystem.ads renamed to system-vms_64.ads.
33219
33220 2004-06-07 Vincent Celier <celier@gnat.com>
33221
33222 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33223 explain that when a time of day corresponding to the non existing hour
33224 on the day switching to DST is specified, Split may return a different
33225 value for Seconds.
33226
33227 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33228 to GNAT PRETTY.
33229
33230 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33231 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33232
33233 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33234 to False.
33235 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33236 the linking options.
33237 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33238 g-trasym.ads, set Gtrasymobj_Needed to True.
33239
33240 * prj-attr.adb: Add new package Metrics for gnatmetric
33241
33242 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33243 canonical case to take into account files with upper case characters on
33244 Windows.
33245 (Ada_Check): Load the reference symbol file name in the name buffer to
33246 check it, not the symbol file name.
33247
33248 * snames.ads, snames.adb: Add standard name Metrics (name of project
33249 file package for gnatmetric).
33250
33251 * vms_conv.ads: Add Metric to Comment_Type
33252
33253 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33254
33255 * vms_data.ads: Add qualifiers for GNAT METRIC
33256
33257 * makegpr.adb (Link_Executables): Take into account the switches
33258 specified in package Linker of the main project.
33259
33260 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33261
33262 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33263 the index of the last element is Units.Last, not Units.Table'Last
33264 (which is usually not a valid index within the actually allocated
33265 storage for the table).
33266
33267 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33268 determines whether to generate a call to a checked storage pool
33269 Dereference action.
33270 Generate such a call only for a dereference that either comes from
33271 source, or is the result of rewriting a dereference that comes from
33272 source.
33273
33274 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33275
33276 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33277
33278 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33279
33280 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33281 file level, elaborate the stride for inner dimensions in alignment
33282 units, not bytes.
33283
33284 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33285 in a comment.
33286
33287 2004-06-07 Javier Miranda <miranda@gnat.com>
33288
33289 * exp_ch6.adb: Correct wrong modification in previous patch
33290
33291 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33292
33293 * g-trasym.ads: Corrected comment to properly reflect level of support
33294 on VMS.
33295
33296 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33297
33298 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33299 includes case of a variable referenced on the left hand side of an
33300 assignment, therefore remove redundant code. Variables and prefixes of
33301 indexed or selected components are now marked as referenced on left
33302 hand side. Warnings are now properly emitted when variables or prefixes
33303 are assigned but not read.
33304
33305 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33306 left hand side referenced variables. Private access types do not
33307 produce the warning "variable ... is assigned but never read".
33308 Add also additional checks to left hand side referenced variables.
33309 Aliased, renamed objects and access types do not produce the warning
33310 "variable ... is assigned but never read" since other entities may read
33311 the memory location.
33312
33313 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33314
33315 * Makefile.in: In the powerpc/vxworks-specific section, restore
33316 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33317 by mistake).
33318
33319 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33320
33321 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33322 predefined operators.
33323 Removes spurious type errors from g-trasym-vms.adb.
33324
33325 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33326 distinct from the operator appearing in the source, call appropriate
33327 routine to insert conversions when needed, and complete resolution of
33328 node.
33329 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33330 interpretations for rewritten right operand.
33331 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33332 the other operand is overloaded and the context is a type conversion.
33333
33334 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33335
33336 * ada-tree.def (BLOCK_STMT): Now has two operands.
33337 (BREAK_STMT): New.
33338
33339 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33340
33341 * gigi.h: (gnat_poplevel): Now returns a tree.
33342
33343 * trans.c (end_block_stmt): Add arg; all callers changed.
33344 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33345 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33346 (add_stmt): Set TREE_TYPE.
33347 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33348 (gnat_expand_stmt, case BREAK_STMT): New case.
33349
33350 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33351
33352 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33353
33354 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33355 procedure Set_Stack_Size that is not needed.
33356
33357 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33358
33359 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33360 used for gnatpp input file and for the files upon which it depends
33361
33362 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33363
33364 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33365
33366 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33367
33368 * gnatvsn.ads: Bump version numbers appropriately.
33369 Add new build type.
33370
33371 2004-06-07 Pascal Obry <obry@gnat.com>
33372
33373 * gnat_ugn.texi: Improve comments about imported names and link names
33374 on Windows. Add a note about the requirement to use -k gnatdll's option
33375 when working with a DLL which has stripped stdcall symbols (no @nn
33376 suffix).
33377
33378 2004-05-27 Vincent Celier <celier@gnat.com>
33379
33380 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33381 COMMENTS_LAYOUT=UNTOUCHED
33382
33383 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33384 symbols-vms-alpha.adb
33385
33386 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33387
33388 * sem.ads: Clarify documentation on checks suppression.
33389
33390 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33391
33392 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33393
33394 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33395 the case of multiple derivations.
33396 (Is_Object_Reference): For a selected component, verify that the prefix
33397 is itself an object and not a value.
33398
33399 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33400 Same_Instantiated_Entity.
33401 (Same_Instantiated_Variable): Subsidiary to
33402 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33403 formals that are obtained from a previous formal package.
33404 (Instantiate_Subprogram_Body): Emit proper error when
33405 generating code and the proper body of a stub is missing.
33406
33407 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33408 has a universal interpretation, do the disambiguation here.
33409
33410 * exp_ch4.adb (Expand_N_Type_Conversion,
33411 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33412 is Address, to avoid typing anomalies when Address is a visible integer
33413 type.
33414
33415 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33416 to determine whether a subprogram should not be marked Pure, even when
33417 declared in a pure package.
33418
33419 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33420
33421 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33422
33423 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33424 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33425 Update the documentation about the Ravenscar profile, following the
33426 definition found in AI-249.
33427
33428 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33429 setting the Profile (Ravenscar). This must be done in addition to
33430 setting the required restrictions.
33431
33432 * rtsfind.ads: Add the set of operations defined in package
33433 Ada.Interrupts.
33434
33435 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33436 restriction.
33437
33438 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33439
33440 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33441 if -gnatc or -gnats is passed.
33442
33443 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33444
33445 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33446 a significant reference. Warnings are now properly emitted when a
33447 discriminated type is not referenced.
33448
33449 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33450 record representation clause or record type discriminant does not
33451 produce a reference to its corresponding entity. Warnings are now
33452 properly emitted when deferred constants and record types are not
33453 referenced.
33454
33455 2004-05-27 Geert Bosch <bosch@gnat.com>
33456
33457 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33458 Fixes ACATS Annex G tests.
33459
33460 2004-05-27 Robert Dewar <dewar@gnat.com>
33461
33462 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33463 handling WITH
33464
33465 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33466
33467 * s-interr.adb (Server_Task): Take into account case of early return
33468 from sigwait under e.g. linux.
33469
33470 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33471
33472 * gnat_ugn.texi: Add description for the new gnatpp options:
33473 -rnb - replace the original source without creating its backup copy
33474 -c0 - do not format comments
33475
33476 2004-05-24 Geert Bosch <bosch@gnat.com>
33477
33478 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33479 with 192 bits of precision, sufficient to reduce a double-extended
33480 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33481 in -2.0**32 .. 2.0**32.
33482 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33483 reduction by the processor, which only uses a 68-bit approximation of
33484 Pi.
33485 (Tan): Always reduce arguments and compute function either using
33486 the processor's fptan instruction, or by dividing sin and cos as needed.
33487
33488 2004-05-24 Doug Rupp <rupp@gnat.com>
33489
33490 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33491 gcc error on 32/64 bit VMS.
33492
33493 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33494
33495 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33496 since this is what we get for stack overflows although not documented
33497 as such.
33498 Document the issues which may require adjustments to our signal
33499 handlers.
33500
33501 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33502
33503 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33504 enclosing dynamic scope if the instantiation is within a generic unit.
33505
33506 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33507
33508 * exp_dbug.ads: Fix typo.
33509
33510 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33511 Rename it to its proper name: system-linux-ia64.ads
33512 (stamp-gnatlib1): Remove extra target specific run time files when
33513 setting up the rts directory.
33514
33515 2004-05-24 Javier Miranda <miranda@gnat.com>
33516
33517 * einfo.ads, einfo.adb (Limited_Views): Removed.
33518 (Limited_View): New attribute that replaces the previous one. It is
33519 now a bona fide package with the limited-view list through the
33520 first_entity and first_private attributes.
33521
33522 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33523 limited-private-with clause.
33524 (Install_Limited_Withed_Unit): Install the private declarations of a
33525 limited-private-withed package. Update the installation of the shadow
33526 entities according to the new structure (see Build_Limited_Views)
33527 (Build_Limited_Views): Replace the previous implementation of the
33528 limited view by a package entity that references the first shadow
33529 entity plus the first shadow private entity (required for limited-
33530 private-with clause)
33531 (New_Internal_Shadow_Entity): Code cleanup.
33532 (Remove_Limited_With_Clause): Update the implementation to undo the
33533 new work carried out by Build_Limited_Views.
33534 (Build_Chain): Complete documentation.
33535 Replace Ada0Y by Ada 0Y in comments
33536 Minor reformating
33537
33538 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33539 types the level of accessibility depends on the enclosing type
33540 declaration.
33541
33542 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33543 entities. Complete documentation of previous change.
33544
33545 2004-05-24 Robert Dewar <dewar@gnat.com>
33546
33547 * namet.adb: Minor reformatting
33548 Avoid use of name I (replace by J)
33549 Minor code restructuring
33550
33551 * sem_ch6.adb: Minor reformatting
33552
33553 * lib-writ.adb: Do not set restriction as active if this is a
33554 Restriction_Warning case.
33555
33556 * sem_prag.adb: Reset restriction warning flag if real pragma
33557 restriction encountered.
33558
33559 * s-htable.adb: Minor reformatting
33560 Change rotate count to 3 in Hash (improves hash for small strings)
33561
33562 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33563
33564 * gnat_ugn.texi: Add new section of documentation "Code Generation
33565 Control", which describes the use of -m switches.
33566
33567 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33568
33569 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33570 through the DECL_INITIAL for renamed variables.
33571
33572 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33573
33574 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33575
33576 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33577
33578 * exp_dbug.ads: Correct comments concerning handling of overloading,
33579 since we no longer use $ anymore.
33580
33581 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33582
33583 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33584 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33585 with illegal subunits.
33586
33587 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33588
33589 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33590 body with front-end inlining enabled, check whether an inline pragma
33591 appears immediately after the body and applies to it.
33592
33593 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33594 enabled and the pragma appears after the body of the subprogram.
33595
33596 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33597
33598 Part of function-at-a-time conversion
33599
33600 * misc.c (adjust_decl_rtl): Deleted.
33601 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33602 Define.
33603
33604 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33605 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33606 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33607
33608 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33609 when making a decl.
33610 (gnat_to_gnu_entity): Likewise.
33611 Use add_stmt to update setjmp buffer.
33612 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33613 flush_addressof.
33614 No longer call adjust_decl_rtl.
33615 (DECL_INIT_BY_ASSIGN_P): New macro.
33616 (DECL_STMT_VAR): Likewise.
33617
33618 * trans.c (gigi): Call start_block_stmt to make the outermost
33619 BLOCK_STMT.
33620 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33621 Call start_block_stmt and end_block_stmt temporarily.
33622 Use gnat_expand_stmt instead of expand_expr_stmt.
33623 (add_decl_stmt): New function.
33624 (tree_transform): Call it.
33625 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33626 (end_block_stmt): Set type and NULL_STMT.
33627 (gnat_expand_stmt): Make recursize call instead of calling
33628 expand_expr_stmt.
33629 (gnat_expand_stmt, case DECL_STMT): New case.
33630 (set_lineno_from_sloc): Do nothing if global.
33631 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33632 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33633 (build_block_stmt): Call them.
33634 (gnat_to_code): Don't expand NULL_STMT.
33635 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33636 args.
33637 (tree_transform): Likewise.
33638 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33639 (gnat_expand_stmt, case NULL_STMT): New case.
33640 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33641 IF_STMT_TRUE.
33642
33643 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33644 TREE_ADDRESSABLE.
33645
33646 * utils.c (create_var_decl): Do not call expand_decl or
33647 expand_decl_init.
33648 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33649 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33650 here.
33651 (struct e_stack): Add chain_next to GTY.
33652 (struct binding_level): Deleted.
33653 (struct ada_binding_level): New struct.
33654 (free_block_chain): New.
33655 (global_binding_level, clear_binding_level): Deleted.
33656 (global_bindings_p): Rework to see if no chain.
33657 (kept_level_p, set_block): Deleted.
33658 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33659 new data structure and work directly on BLOCK node.
33660 (gnat_poplevel): Similarly.
33661 (get_decls): Look at BLOCK_VARS.
33662 (insert_block): Work directly on BLOCK node.
33663 (block_has_var): New function.
33664 (pushdecl): Rework for new binding structures.
33665 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33666 poplevel.
33667 (build_subprog_body): Likewise.
33668 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33669
33670 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33671
33672 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33673 (DECL_STMT_VAR): Likewise.
33674
33675 2004-05-17 Robert Dewar <dewar@gnat.com>
33676
33677 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33678 procedure
33679
33680 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33681 of restriction synonyums by using
33682 Restrict.Process_Restriction_Synonyms.
33683
33684 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33685
33686 * s-restri.ads (Tasking_Allowed): Correct missing comment
33687
33688 * s-rident.ads: Add entries for restriction synonyms
33689
33690 * ali.adb: Fix some problems with badly formatted ALI files that can
33691 result in infinite loops.
33692
33693 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33694 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33695 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33696 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33697 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33698 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33699 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33700 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33701 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33702 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33703 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33704 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33705 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33706 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33707 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33708 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33709 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33710 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33711 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33712 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33713 to Task_Id (minor cleanup).
33714
33715 2004-05-17 Vincent Celier <celier@gnat.com>
33716
33717 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33718 directory separator.
33719
33720 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33721 project being extended, if Languages is not declared in extending
33722 project.
33723
33724 2004-05-17 Javier Miranda <miranda@gnat.com>
33725
33726 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33727 limited view of a visible sibling.
33728
33729 2004-05-14 Robert Dewar <dewar@gnat.com>
33730
33731 * gnat_ugn.texi: Minor change to -gnatS documentation
33732
33733 * sprint.adb: Remove some instances of Assert (False) and for this
33734 purpose replace them by output of a ??? string.
33735
33736 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33737 Assert (False).
33738
33739 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33740 flag processing. This was suppressing required dependencies in
33741 No_Run_Time mode and is not needed since the binder does not generate
33742 references for things in libgnat anyway.
33743
33744 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33745 warning.
33746
33747 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33748
33749 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33750 resolver library.
33751
33752 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33753 action for the case of an actual parameter in an init proc call.
33754
33755 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33756
33757 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33758 subtype, check visible entities in base type.
33759
33760 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33761 actions if the object is a renaming.
33762
33763 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33764 Check_Formal_Package_Instance, to determine more precisely when the
33765 formal and the actual denote the same entity.
33766
33767 2004-05-14 Javier Miranda <miranda@gnat.com>
33768
33769 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33770
33771 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33772 corresponding to a private_with must be removed from visibility; it
33773 will be made visible later, just before we analyze the private part of
33774 the package.
33775 (Check_Private_Child_Unit): Allow private_with clauses in public
33776 siblings.
33777 (Install_Siblings): Make visible the private entities of private-withed
33778 siblings.
33779 (Install_Withed_Unit): Do not install the private withed unit if we
33780 are compiling a package declaration and the Private_With_OK flag was
33781 not set by the caller. These declarations will be installed later,
33782 just before we analyze the private part of the package.
33783
33784 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33785 during the evaluation of the expression that initializes the object,
33786 decorate it with the expected type to avoid cascade errors.
33787 Code cleanup.
33788
33789 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33790 subprogram we have to install the private_with clauses after its
33791 specification has been analyzed (as documented in AI-262.TXT).
33792
33793 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33794 current compilation unit has a private with on a given entity.
33795 (Find_Direct_Name): Detect the Beaujolais problem described in
33796 AI-262.TXT
33797
33798 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33799 provides the functionality of the function Is_Ancestor that was
33800 previously available in sem_ch10. It has been renamed to avoid
33801 overloading.
33802
33803 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33804
33805 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33806
33807 * utils.c (build_vms_descriptor): Use SImode pointers.
33808
33809 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33810
33811 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33812
33813 2004-05-14 GNAT Script <nobody@gnat.com>
33814
33815 * Make-lang.in: Makefile automatically updated
33816
33817 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33818
33819 Renaming of target specific files for clarity
33820
33821 * Makefile.in: Rename GNAT target specific files.
33822
33823 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33824 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33825 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33826 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33827 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33828 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33829 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33830 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33831 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33832 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33833 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33834 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33835 51osinte.adb, 51osinte.ads, 51system.ads,
33836 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33837 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33838 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33839 56tpopsp.adb, 57system.ads, 58system.ads,
33840 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33841 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33842 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33843 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33844 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33845 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33846 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33847 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33848 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33849 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33850 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33851 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33852 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33853 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33854 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33855 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33856 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33857 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33858 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33859 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33860 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33861 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33862 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33863 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33864 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33865 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33866 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33867 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33868 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33869 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33870 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33871 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33872 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33873 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33874 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33875 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33876 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33877 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33878 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33879 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33880
33881 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33882 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33883 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33884 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33885 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33886 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33887 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33888 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33889 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33890 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33891 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33892 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33893 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33894 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33895 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33896 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33897 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33898 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33899 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33900 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33901 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33902 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33903 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33904 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33905 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33906 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33907 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33908 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33909 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33910 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33911 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33912 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33913 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33914 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33915 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33916 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33917 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33918 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33919 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33920 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33921 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33922 s-osinte-vms.ads, s-osinte-vxworks.adb,
33923 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33924 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33925 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33926 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33927 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33928 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33929 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33930 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33931 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33932 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33933 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33934 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33935 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33936 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33937 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33938 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33939 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33940 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33941 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33942 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33943 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33944 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33945 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33946 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33947 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33948 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33949 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33950 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33951 system-irix-o32.ads, system-linux-x86_64.ads,
33952 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33953 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33954 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33955 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33956 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33957 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33958 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33959 above.
33960
33961 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33962
33963 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33964
33965 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33966
33967 Merge from tree-ssa-20020619-branch.
33968
33969 * config-lang.in (boot_language, build_by_default): Set
33970 to no.
33971 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33972 (max_size): Add static chain op for call_expr.
33973
33974 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33975
33976 PR target/15331
33977 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33978
33979 2004-05-11 Roger Sayle <roger@eyesopen.com>
33980
33981 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33982 COND_EXPR.
33983
33984 2004-05-10 Doug Rupp <rupp@gnat.com>
33985
33986 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33987 system.aux_dec.
33988
33989 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33990
33991 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33992
33993 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33994 Fixes undefined symbols in IA64 gnatlib.
33995
33996 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33997
33998 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33999 Short_Address). This will be moved to system.auxdec.
34000
34001 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
34002
34003 * sem_util.adb: Replace test for presence of a node that is always
34004 present with a call to Discard_Node.
34005
34006 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
34007 Analyze on the library unit node after generation of distribution stub
34008 constructs. The call was a no-op because Unit_Node has already been
34009 Analyzed, and the tree fragments for the distribution stubs are
34010 analyzed as they are inserted in Exp_Dist.
34011 Update comment regarding to distribution stubs to reflect that we
34012 do not generate stub in separate files anymore.
34013
34014 * einfo.ads: Clarify the fact that a tagged private type has the
34015 E_Record_Type_With_Private Ekind.
34016
34017 * erroutc.adb: Minor reformatting
34018
34019 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
34020 values if line length is increased using -gnatyM (noticed during code
34021 reading).
34022
34023 * eval_fat.adb: Minor reformatting
34024 Put spaces around exponentiation operator
34025
34026 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34027
34028 PR ada/15005
34029 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
34030 has been rewritten as an explicit dereference, retrieve type of
34031 original node to check for possibly unconstrained record type.
34032
34033 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34034
34035 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
34036 overriding, use the operation of the parent unconditionally.
34037
34038 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
34039 operation when either operand is a literal, to avoid further
34040 ambiguities.
34041
34042 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34043 overridden by a previous explicit declaration, mark the previous entity
34044 as overriding.
34045
34046 * sem_disp.adb (Check_Dispatching_Operation): New predicate
34047 Is_Visibly_Controlled, to determine whether a declaration of a
34048 primitive control operation for a derived type overrides an inherited
34049 one. Add warning if the explicit declaration does not override.
34050
34051 2004-05-10 Vincent Celier <celier@gnat.com>
34052
34053 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34054 some cases when the sources are no longer present.
34055
34056 * make.adb (Collect_Arguments): Fail if an external source, not part
34057 of any project need to be compiled, when switch -x has not been
34058 specified.
34059
34060 * makeusg.adb: Document new switch -x
34061
34062 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34063 defaulted to False.
34064
34065 * switch-m.adb (Scan_Make_Switches): New switch -x
34066
34067 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34068 gnatmake switch -x.
34069
34070 * gnat_ugn.texi: Document new gnatmake switch -x
34071
34072 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
34073
34074 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34075
34076 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34077 (process_attributes): Likewise.
34078
34079 2004-05-10 Joel Brobecker <brobecker@gnat.com>
34080
34081 * s-inmaop.ads: Fix spelling mistake in one of the comments.
34082
34083 2004-05-10 Robert Dewar <dewar@gnat.com>
34084
34085 * gnat_ugn.texi: Document that for config pragma files, the maximum
34086 line length is always 32767.
34087
34088 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34089 literals is now allowed.
34090
34091 * gnat-style.texi: Remove statement about splitting long lines before
34092 an operator rather than after, since we do not follow this rule at all.
34093 Clarify rule (really lack of rule) for spaces around exponentiation
34094
34095 * sem_elim.adb: Allow concatenation of string literals as well as a
34096 single string literal for pragma arguments.
34097
34098 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34099
34100 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34101 written for append case.
34102
34103 * frontend.adb: Changes to avoid checking max line length in config
34104 pragma files.
34105
34106 * g-os_lib.ads: Minor reformatting
34107
34108 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34109 wrong in any case. Instead use standard value. Noticed during code
34110 reading.
34111
34112 * opt.ads (Max_Line_Length): New field, used to implement removal of
34113 limitation on length of lines when scanning config pragma files.
34114
34115 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34116 makeutl.ads, makeutl.adb: Minor reformatting
34117
34118 * scn.adb: Do not check line length while scanning config pragma files
34119 Do not check line length while scanning out license information
34120
34121 * scng.adb: Changes to avoid line length checks while parsing config
34122 pragma files.
34123
34124 2004-05-10 GNAT Script <nobody@gnat.com>
34125
34126 * Make-lang.in: Makefile automatically updated
34127
34128 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
34129
34130 * osint.adb (Find_Program_Name): Fix handling of VMS version
34131 number.
34132
34133 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
34134
34135 * g-os_lib.ads (Invalid_Time): New constant
34136
34137 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34138 return OS_Time instead of time_t to match what is imported by Ada.
34139 Now return -1 if the file doesn't exist, instead of a random value
34140
34141 2004-05-05 Robert Dewar <dewar@gnat.com>
34142
34143 * usage.adb: Add line for -gnatR?s switch
34144
34145 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34146
34147 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34148 and for Match (Data_First, Data_last)
34149
34150 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34151 written when we are dealing with multi-unit files.
34152
34153 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
34154
34155 * Makefile.in: Remove unused targets and variables.
34156
34157 2004-05-05 Vincent Celier <celier@gnat.com>
34158
34159 * switch-m.adb: New gnatmake switch -eI
34160
34161 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34162 of new gnatmake switch -eInnn.
34163
34164 * makegpr.adb: Take into account new parameters Index and Src_Index in
34165 Prj.Util.
34166
34167 * clean.adb: Implement support for multi-unit sources, including new
34168 switch -i.
34169
34170 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34171 Src_Index.
34172
34173 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34174 (Extract_From_Q): New out parameter Index
34175 (Mark, Is_Marked): Subprograms moved to Makeutl
34176 (Switches_Of): New parameter Source_Index
34177 (Add_Switch): New parameter Index
34178 (Check): New parameter Source_Index
34179 (Collect_Arguments): New parameter Source_Index
34180 (Collect_Arguments_And_Compile): New parameter Source_Index
34181 (Compile): New parameter Source_Index
34182 Put subprograms in alphabetical order
34183 Add support for multi-source sources, including in project files.
34184
34185 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34186 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34187 Make.
34188
34189 * makeusg.adb: New gnatmake switch -eInnn
34190
34191 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34192 Prj.Util.Value_Of.
34193
34194 * opt.ads (Main_Index): New variable, defaulted to 0.
34195
34196 * osint.ads, osinte.adb (Add_File): New parameter Index
34197 (Current_Source_Index): New function
34198
34199 * prj.adb: Take into account new components Index and Src_Index
34200
34201 * prj.ads (String_Element): New component Index
34202 (Variable_Value): New component Index
34203 (Array_Element): New component Src_Index
34204
34205 * prj-attr.adb: Indicate that optional index may be specified for
34206 attributes Main, Executable, Spec, Body and some of Switches.
34207
34208 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34209 (Attribute_Record): New component Optional_Index
34210
34211 * prj-com.ads (File_Name_Data): New component Index
34212
34213 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34214
34215 * prj-env.adb (Put): Output optional index
34216
34217 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34218 attributes Spec and Body.
34219
34220 * prj-nmsc.adb: Process optional indexes
34221
34222 * prj-pp.adb: Ouput "at" for optional indexes
34223
34224 * prj-proc.adb: Take into account optional indexes
34225
34226 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34227 Optional_Index. For string literal,
34228 process optional index when Optional_Index is True.
34229 (Parse_Expresion): New Boolean parameter Optional_Index
34230
34231 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34232 (Set_Source_Index_Of): New procedure
34233
34234 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34235 index.
34236
34237 * prj-util.ads (Executable_Of): New parameter Index
34238 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34239 New parameter Src_Index, defaulted to 0.
34240
34241 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34242
34243 PR ada/15257
34244 * sem_ch3.adb (Access_Definition): If this is an access parameter
34245 whose designated type is imported through a limited_with clause, do
34246 not add the enclosing subprogram to the list of private dependents of
34247 the type.
34248
34249 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34250
34251 PR ada/15258
34252 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34253 a limited_with clause, and the other is its non-limited view.
34254
34255 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34256
34257 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34258
34259 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34260 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34261 Stand.Boolean_Literals to produce references to entities
34262 Standard_False and Standard_True from compile-time computed boolean
34263 values.
34264
34265 * stand.ads (Boolean_Literals): New variable, provides the entity
34266 values for False and True, for use by the expander.
34267
34268 2004-05-05 Doug Rupp <rupp@gnat.com>
34269
34270 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34271 5vinmaop.adb: Unchecked convert Short_Address vice Address
34272
34273 * adaint.c, raise.c: Caste CRTL function return value
34274 to avoid gcc error on 32/64 bit IVMS.
34275
34276 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34277 target = IA64/VMS.
34278
34279 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34280
34281 * 5qsystem.ads (Address): Declare as Long_Integer
34282 (Short_Address): Declare as 32 bit subtype of Address
34283 Declare abstract address operations to avoid gratuitous ambiguities.
34284
34285 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34286
34287 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34288 instead of the old Boolean_Entry_Barriers.
34289 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34290
34291 2004-05-05 GNAT Script <nobody@gnat.com>
34292
34293 * Make-lang.in: Makefile automatically updated
34294
34295 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34296
34297 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34298
34299 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34300
34301 PR ada/15152
34302 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34303 alone. Replacing object references by literals is inappropriate in a
34304 so low level context.
34305
34306 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34307
34308 * a-exexpr.adb: Add comments
34309
34310 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34311
34312 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34313 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34314 without risking a bounds check error when accessing one of its
34315 components.
34316 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34317 This prevents us from hitting a limitation during the debug info
34318 generation when using stabs.
34319
34320 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34321 small array.
34322 This prevents us from hitting a limitation during the debug info
34323 generation when using stabs.
34324
34325 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34326
34327 lang-specs.h: Remove -gnatz* from specs.
34328
34329 2004-05-03 Vincent Celier <celier@gnat.com>
34330
34331 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34332
34333 * Make-lang.in, Makefile.in: Add gprmake
34334
34335 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34336
34337 * sem_aggr.adb: Fix typo in comment.
34338
34339 2004-05-03 Robert Dewar <dewar@gnat.com>
34340
34341 * make.adb: Minor reformatting
34342
34343 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34344
34345 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34346 so that it works when address is not a private type.
34347
34348 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34349 properly with rewritten unchecked conversions. This prevents
34350 order-of-elaboration issues that can otherwise arise.
34351 (Minimum_Size): Don't check size of access types under VMS
34352
34353 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34354 interpretations of integer literals as type System.Address.
34355
34356 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34357 (Is_Descendent_Of): New function
34358
34359 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34360
34361 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34362 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34363 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34364
34365 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34366 of the old Max_Entry_Queue_Depth.
34367
34368 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34369 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34370 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34371
34372 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34373 New entry for proper handling of Max_Entry_Queue_Depth.
34374 New entry for proper handling of No_Dynamic_Interrupts.
34375
34376 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34377 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34378 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34379 the GNAT specific restriction Max_Entry_Queue_Depth.
34380 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34381 the GNAT specific restriction No_Dynamic_Interrupts.
34382
34383 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34384 instead of the old Boolean_Entry_Barriers.
34385 Use the new restriction No_Dynamic_Attachment instead of the old
34386 No_Dynamic_Interrupts.
34387
34388 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34389 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34390
34391 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34392 of the old Max_Entry_Queue_Depth.
34393
34394 2004-05-03 GNAT Script <nobody@gnat.com>
34395
34396 * Make-lang.in: Makefile automatically updated
34397
34398 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34399
34400 * checks.adb (Enable_Range_Check): If the prefix of an index component
34401 is an access to an unconstrained array, perform check unconditionally.
34402
34403 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34404
34405 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34406 Component_Clause.
34407
34408 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34409
34410 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34411 alternate stack setting. There was no support for the tasking cases
34412 and the changes eventually caused a number of side-effect failures in
34413 the non-tasking case too.
34414
34415 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34416
34417 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34418 -gnats is passed.
34419
34420 2004-04-29 Vincent Celier <celier@gnat.com>
34421
34422 * make.adb (Gnatmake): Increase max size of argument array for
34423 gnatbind for the potential addition of -F.
34424 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34425 be sure that elaboration flags will be checked.
34426
34427 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34428
34429 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34430
34431 * sem_warn.adb (Check_References): Move '<access-variable> may be
34432 null' warning out of under Warn_On_No_Value_Assigned.
34433
34434 2004-04-29 Ed Falis <falis@gnat.com>
34435
34436 * gnat_ugn.texi: Fixed texi error
34437
34438 2004-04-29 Robert Dewar <dewar@gnat.com>
34439
34440 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34441 abstract operations if they come from predefined files.
34442
34443 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34444 Dynamic, not RM).
34445
34446 * s-addope.adb: Correct obvious error in mod function
34447
34448 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34449
34450 * Makefile.in: Add target pairs for powerpc darwin*
34451 tasking support.
34452
34453 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34454 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34455
34456 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34457
34458 * Makefile.in: Add target macro definitions for s390*-linux*.
34459 * system-linux-s390.ads: New file.
34460 * system-linux-s390x.ads: New file.
34461
34462 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34463
34464 * gnat_ugn.texi: Correct argument to @setfilename.
34465
34466 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34467
34468 * a-exexpr.adb (Unwind_Word): New data type.
34469 (Unwind_Exception): Use it as type of Private1 and Private2.
34470
34471 * raise.c (db_action_for): Fix debug printf.
34472
34473 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34474
34475 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34476 integer type.
34477
34478 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34479
34480 * decl.c (gnat_to_gnu_entity, case object): Call
34481 __builtin_update_setjmp_buf.
34482
34483 * gigi.h (update_setjmp_buf): Deleted.
34484 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34485
34486 * misc.c: (update_setjmp_buf): Deleted.
34487
34488 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34489 around block of RTL.
34490
34491 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34492
34493 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34494
34495 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34496 subprogram for which no pragma All_Calls_Remote applies, store the
34497 address of the real subprogram in the underlying record type, so local
34498 dereferences do not go through the PCS.
34499
34500 2004-04-26 Robert Dewar <dewar@gnat.com>
34501
34502 * i-c.ads: Add some type qualifications to avoid ambiguities when
34503 compiling with s-auxdec.ads and a non-private address type.
34504
34505 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34506
34507 * Makefile.rtl: Fix error in previous check-in:
34508 Add s-addope.o to non tasking object list (rather than tasking object
34509 list).
34510
34511 2004-04-26 Javier Miranda <miranda@gnat.com>
34512
34513 * sem_aggr.adb: Fix typo in comments
34514 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34515 Required to check the null-exclusion attribute.
34516
34517 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34518 case of anonymous access types in record and array components. For a
34519 component definition the level is the same of the enclosing composite
34520 type.
34521
34522 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34523 that are anonymous access types the level of accessibility depends on
34524 the enclosing type declaration. In order to have this information, set
34525 the scope of the anonymous access type to the enclosing record type
34526 declaration.
34527 (Array_Type_Declaration): In case of components that are anonymous
34528 access types the level of accessibility depends on the enclosing type
34529 declaration. In order to have this information, set the scope of the
34530 anonymous access type to the enclosing array type declaration.
34531
34532 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34533 access type.
34534
34535 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34536 renaming of anonymous access-to-constant types allowed if and only if
34537 the renamed object is access-to-constant.
34538
34539 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34540 that are component_definition or discriminants of a nonlimited type,
34541 the level is the same as that of the enclosing component type.
34542
34543 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34544
34545 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34546 misprint in the function name (File_Name_Match).
34547
34548 2004-04-23 Laurent Guerby <laurent@guerby.net>
34549
34550 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34551 install.
34552
34553 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34554
34555 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34556
34557 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34558
34559 * adaint.c (__gnat_try_lock): No longer requires that the parent
34560 directory be writable, the directory itself is enough.
34561 (gnat_is_absolute_path): Change profile, so that the call from
34562 GNAT.OS_Lib can be made more efficient.
34563
34564 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34565 from GNAT.OS_Lib can be made more efficient.
34566
34567 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34568 one copy of the file name. Found by code reading.
34569
34570 2004-04-23 Vincent Celier <celier@gnat.com>
34571
34572 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34573 Correct documentation on gnatmake switches transmitted to the compiler
34574
34575 * ali.ads: Minor comment fix
34576
34577 2004-04-23 Javier Miranda <miranda@gnat.com>
34578
34579 * sem_ch6.adb: (Confirming Types): Code cleanup
34580
34581 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34582 subprogram types: E_Anonymous_Access_Subprogram_Type and
34583 E_Anonymous_Access_Protected_Subprogram_Type.
34584
34585 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34586
34587 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34588 whether a pragma All_Calls_Remote applies to the subprogram on which
34589 'Access is taken.
34590 No functional change is introduced by this revision; the new parameter
34591 will be used to allow calls to local RCI subprograms to be optimized
34592 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34593 as is already done in the PolyORB implementation of the DSA.
34594
34595 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34596 whether a pragma All_Calls_Remote applies to the subprogram on which
34597 'Access is taken.
34598 No functional change is introduced by this revision; the new parameter
34599 will be used to allow calls to local RCI subprograms to be optimized
34600 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34601 as is already done in the PolyORB implementation of the DSA.
34602
34603 2004-04-23 Robert Dewar <dewar@gnat.com>
34604
34605 * Makefile.rtl: Add entry for s-addope.o in run time library list
34606 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34607 * s-addope.ads, s-addope.adb: New files.
34608
34609 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34610 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34611 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34612 System.Address to be non-private and signed.
34613
34614 * sem_elim.adb: Minor reformatting (fairly extensive)
34615 Some minor code reorganization from code reading
34616 Add a couple of ??? comments
34617
34618 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34619
34620 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34621 (tree_transform, case N_If_Statement): Remove non-determinism.
34622
34623 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34624
34625 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34626
34627 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34628 Eliminate' section.
34629
34630 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34631 no longer used as a parameter name for Eliminate pragma).
34632
34633 2004-04-22 Laurent Guerby <laurent@guerby.net>
34634
34635 PR optimization/14984
34636 PR optimization/14985
34637 * trans.c (gigi): Fix non determinism leading to bootstrap
34638 comparison failures.
34639
34640 2004-04-21 Pascal Obry <obry@gnat.com>
34641
34642 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34643 passed to spawnvp() to properly handle program pathname with spaces on
34644 Win32.
34645
34646 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34647
34648 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34649 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34650 unlocked in case of exceptions.
34651
34652 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34653
34654 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34655 This function does not exist anymore.
34656
34657 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34658
34659 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34660
34661 * link.c: Move variables to the __gnat name space.
34662
34663 * Makefile.in: list link.o explicitly when needed.
34664
34665 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34666
34667 2004-04-21 Javier Miranda <miranda@gnat.com>
34668
34669 * einfo.adb (Original_Access_Type): New subprogram
34670 (Set_Original_Access_Type): New subprogram
34671 (Write_Field21_Name): Write the name of the new field
34672
34673 * einfo.ads (Original_Access_Type): New field present in access to
34674 subprogram types.
34675 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34676 E_Anonymous_Access_Protected_Subprogram_Type.
34677
34678 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34679 subprogram types.
34680
34681 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34682 to anonymous access to subprogram types.
34683
34684 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34685 to subprogram types.
34686
34687 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34688 corresponding to anonymous access to subprogram types.
34689 (Analyze_Component_Declaration): Add new actual to the call to
34690 subprogram replace_anonymous_access_to_protected_subprogram.
34691 (Array_Type_Declaration): Add new actual to the call to subprogram
34692 replace_anonymous_access_to_protected_subprogram.
34693 (Process_Discriminants): Add new actual to the call to subprogram
34694 replace_anonymous_access_to_protected_subprogram.
34695 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34696
34697 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34698 formal.
34699
34700 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34701 access to subprogram types.
34702
34703 * sem_util.adb (Has_Declarations): Addition of package_specification
34704 nodes.
34705
34706 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34707
34708 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34709 inlined flags to renamed entity only if in current unit.
34710
34711 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34712
34713 * s-parint.ads: Add DSA implementation marker.
34714
34715 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34716 value of System.Partition_Interface.DSA_Implementation to determine
34717 what version of the distributed systems annex is available (no
34718 implementation, GLADE, or PolyORB).
34719
34720 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34721
34722 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34723
34724 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34725
34726 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34727 with new type if alias sets differ.
34728 Fixes ACATS c41103b.
34729
34730 2004-04-21 Vincent Celier <celier@gnat.com>
34731
34732 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34733 Add array Lang_Args for the language specific compiling argument
34734 switches.
34735
34736 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34737
34738 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34739
34740 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34741 according to the recent changes in the format of the parameters of the
34742 pragma (replacing Homonym_Number with Source_Location).
34743
34744 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34745
34746 * 5isystem.ads: Removed, unused.
34747
34748 * gnat_rm.texi: Redo 1.13 change.
34749
34750 2004-04-19 Robert Dewar <dewar@gnat.com>
34751
34752 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34753 definition is cleaner, avoids the kludge of explicit Standard operator
34754 references, and also is consistent with a visible System.Address with
34755 no visible operations.
34756
34757 * s-geveop.adb: Add declarations to avoid assumption of visible
34758 operations on type System.Address (since these might not be available
34759 if Address is a non-private type for which the operations
34760 are made abstract).
34761
34762 * sem_eval.adb: Minor reformatting
34763
34764 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34765 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34766 reformatting (new function spec format).
34767
34768 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34769 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34770 s-caun64.adb: Add declarations to avoid assumption of visible
34771 operations on type System.Address (since these might not be available
34772 if Address is a non-private type for which the operations are made
34773 abstract).
34774
34775 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34776
34777 * exp_intr.adb: Minor comment update
34778
34779 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34780
34781 * 5omastop.adb: Add declarations to avoid assumption of visible
34782 operations on type System.Address (since these might not be available
34783 if Address is a non-private type for which the operations
34784 are made abstract).
34785
34786 2004-04-19 Vincent Celier <celier@gnat.com>
34787
34788 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34789
34790 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34791 defaulted to Ada.
34792
34793 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34794 defaulted to Ada.
34795 Call Check with Process_Languages.
34796 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34797 with Process_Languages.
34798 (Recursive_Check): New Boolean parameter Process_Languages. Call
34799 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34800 Process_Languages.
34801
34802 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34803
34804 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34805 parameter Ada_Main, defaulted to True.
34806 Check for Ada specific characteristics only when Ada_Main is True.
34807
34808 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34809
34810 * prj.adb: (Project_Empty): Add new Project_Data components.
34811
34812 * prj.ads: New types and tables for non Ada languages.
34813 (Project_Data): New components Languages, Impl_Suffixes,
34814 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34815 Include_Path, Include_Data_Set.
34816
34817 * prj-env.ads, prj-env.adb: Minor reformatting
34818
34819 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34820 Put subprograms in alphabetical order
34821
34822 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34823 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34824 Opt.Follow_Links.
34825
34826 * mlib-prj.adb: Back out modification in last version, as they are
34827 incorrect.
34828 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34829
34830 * make.adb: (Mains): Moved to package Makeutl
34831 (Linker_Opts): Moved to package Makeutl
34832 (Is_External_Assignment): Moved to package Makeutl
34833 (Test_If_Relative_Path): Moved to package Makeutl
34834 (Gnatmake): Move sorting of linker options to function
34835 Makeutl.Linker_Options_Switches.
34836
34837 * makeutl.ads, makeutl.adb: New files.
34838
34839 * Makefile.in: Add makeutl.o to the object files for gnatmake
34840
34841 * makeusg.adb: Add line for new switch -eL.
34842
34843 * gnatls.adb (Image): New function.
34844 (Output_Unit): If in verbose mode, output the list of restrictions
34845 specified by pragmas Restrictions.
34846
34847 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34848 Text_IO.
34849
34850 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34851 needed, to put it in the range 1970 (included) - 2026 (excluded).
34852 (Time_Of): Do not shift Unix_Min_Year (1970).
34853 Shift the date by multiple of 56 years, if needed, to put it in the
34854 range 1970 (included) - 2026 (excluded).
34855
34856 * adaint.h, adaint.c (__gnat_set_executable): New function.
34857
34858 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34859
34860 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34861 and pop GC context.
34862 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34863 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34864 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34865 (tree_transform, case N_Code_Statement): Likewise.
34866 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34867 LABEL_STMT_FIRST_IN_EH.
34868 (gnat_expand_stmt, case ASM_STMT): New case.
34869
34870 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34871 UNCONSTRAINED_ARRAY_REF.
34872
34873 * utils.c (poplevel): Temporarily push/pop GC context around inline
34874 function expansion.
34875
34876 * decl.c (maybe_variable): Properly set TREE_READONLY of
34877 UNCONSTRAINED_ARRAY_REF.
34878 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34879
34880 * ada-tree.def: (ASM_STMT): New.
34881
34882 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34883 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34884 ASM_STMT_INPUT): New.
34885 (ASM_STMT_CLOBBER): Likewise.
34886
34887 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34888
34889 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34890 general rcheck mechanism to raise Program_Error for E.4(18), instead
34891 of a custom raiser in System.Partition_Interface.
34892 Part of general cleanup work before PolyORB integration.
34893
34894 * snames.ads, snames.adb: Add new runtime library entities and names
34895 for PolyORB DSA.
34896
34897 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34898 exp_dist.
34899 (Build_Subprogram_Id): New subprogram provided by exp_dist
34900 Code reorganisation in preparation for PolyORB integration.
34901
34902 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34903 exp_dist.
34904 (Build_Subprogram_Id): New subprogram provided by exp_dist
34905
34906 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34907 actual parameter types for call to dereference of an
34908 access-to-subprogram type.
34909
34910 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34911 DSA.
34912
34913 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34914 instead, which has the same behaviour here since we never pass it a
34915 NULL pointer.
34916
34917 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34918 platforms.
34919
34920 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34921 to account for new dependency upon Interfaces.C.Strings + link.o
34922 For x86 FreeBSD, use 86numaux.
34923
34924 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34925 from Mlib.Tgt to Mlib.
34926
34927 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34928 target-independent.
34929
34930 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34931 target-specific versions of this subprogram, now implemented as a
34932 target-independent function in Mlib.
34933
34934 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34935 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34936 (Linker_Library_Path_Option): Remove target-specific versions of this
34937 subprogram, now implemented as a target-independent function in Mlib.
34938
34939 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34940 Factors out node table slots allocation.
34941 (Fix_Parents): New subprogram.
34942 Encapsulate the pattern of fixing up parent pointers for syntactic
34943 children of a rewritten node.
34944 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34945 (Rewrite): Use New_Copy when creating saved copy of original node.
34946 (Replace): Use Copy_Node to copy nodes.
34947
34948 2004-04-19 Javier Miranda <miranda@gnat.com>
34949
34950 * sprint.adb (Sprint_Node_Actual): Give support to the new
34951 Access_To_Subprogram node available in Access_Definition nodes. In
34952 addition, give support to the AI-231 node fields: null-exclusion,
34953 all-present, constant-present.
34954
34955 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34956
34957 * sinfo.ads, sinfo.adb:
34958 New field Access_To_Subprogram_Definition in Access_Definition nodes
34959
34960 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34961 decorates internal subtype declaration corresponding to the
34962 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34963 In addition, carry out some code cleanup on this code. In case of
34964 access to protected subprogram call
34965 Replace_Anonymous_Access_To_Protected_Subprogram.
34966 (Set_Actual_Subtypes): Code cleanup.
34967
34968 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34969 Find_Type in case of anonymous access renamings. Add warning in case of
34970 null-excluding attribute used in anonymous access renaming.
34971
34972 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34973 subprogram
34974
34975 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34976 subprogram.
34977 (Access_Definition): In case of anonymous access to subprograms call
34978 the corresponding semantic routine to decorate the node.
34979 (Access_Subprogram_Declaration): Addition of some comments indicating
34980 some code that probably should be added here. Detected by comparison
34981 with the access_definition subprogram.
34982 (Analyze_Component_Declaration): In case of access to protected
34983 subprogram call Replace_Anonymous_Access_To_Protected.
34984 (Array_Type_Declaration): In case of access to protected subprogram call
34985 Replace_Anonymous_Access_To_Protected_Subprogram.
34986 (Process_Discriminants): In case of access to protected subprogram call
34987 Replace_Anonymous_Access_To_Protected_Subprogram.
34988
34989 * par.adb (P_Access_Definition): New formal that indicates if the
34990 null-exclusion part was present.
34991 (P_Access_Type_Definition): New formal that indicates if the caller has
34992 already parsed the null-excluding part.
34993
34994 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34995 (P_Identifier_Declarations): Code cleanup and give support to renamings
34996 of anonymous access to subprogram types.
34997 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34998 (P_Array_Type_Definition): Give support to AI-254.
34999 (P_Component_Items): Give support to AI-254.
35000 (P_Access_Definition): New formal that indicates if the header was
35001 already parsed by the caller.
35002 (P_Access_Type_Definition): New formal that indicates if the caller has
35003 already parsed the null-excluding part.
35004
35005 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
35006 call to P_Access_Definition.
35007
35008 2004-04-19 Geert Bosch <bosch@gnat.com>
35009
35010 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
35011 the delicate semantics of floating-point to integer conversion.
35012 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
35013
35014 * eval_fat.adb (Machine_Mantissa): Moved to spec.
35015 (Machine_Radix): New function.
35016
35017 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
35018 conversion checks.
35019 (Machine_Radix): New function also for use in conversion checks.
35020
35021 2004-04-19 Ed Schonberg <schonberg@gnat.com>
35022
35023 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
35024
35025 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
35026 to decorate the access-to-protected subprogram and the equivalent type.
35027
35028 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
35029 to anonymous access to subprogram types.
35030
35031 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
35032 constant-folding, for legality checks in contexts that require an RM
35033 static expression.
35034
35035 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
35036 temporary but stack checking is not enabled, increment serial number
35037 to so that symbol generation is consistent with and without stack
35038 checking.
35039
35040 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35041 independent on whether stack checking is enabled, caller must check
35042 the corresponding flag.
35043
35044 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35045 range checks.
35046 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35047 parent if it has discriminants.
35048 (Build_Derived_Private_Type): Constructed full view does
35049 not come from source.
35050 (Process_Discriminants): Default discriminants on a tagged type are
35051 legal if this is the internal completion of a private untagged
35052 derivation.
35053
35054 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35055 no constraint checks, because it corresponds to an existing object.
35056
35057 * sem_prag.adb (Process_Convention): Pragma applies
35058 only to subprograms in the same declarative part, i.e. the same unit,
35059 not the same scope.
35060
35061 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35062 ignore type mismatch on a numeric conversion if expression comes from
35063 expansion.
35064
35065 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
35066
35067 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35068 Homonym_Number parameter, add processing for Source_Location parameter
35069 corresponding.
35070 (Check_Eliminated): Remove the check for homonym numbers, add the check
35071 for source location traces.
35072
35073 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35074 with Arg_Source_Location corresponding to the changes in the format of
35075 the pragma.
35076
35077 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35078 Eliminate pragma corresponding to the changes in the format of the
35079 pragma: Homonym_Number is replaced with Source_Location, two ways of
35080 distinguishing homonyms are mutially-exclusive.
35081
35082 2004-04-19 Joel Brobecker <brobecker@gnat.com>
35083
35084 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35085
35086 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35087 No_Dollar_In_Label, no longer necessary, as it is always True.
35088 (Strip_Suffixes): Likewise.
35089
35090 2004-04-19 Gary Dismukes <dismukes@gnat.com>
35091
35092 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35093 modulus for compatibility with size clause on targets with 16-bit
35094 Integer.
35095
35096 * layout.adb (Discrimify): In the case of private types, set Vtyp to
35097 full type to fix type mismatches on calls to size functions for
35098 discriminant-dependent array components.
35099
35100 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
35101
35102 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35103 lib.
35104
35105 2004-04-19 Pascal Obry <obry@gnat.com>
35106
35107 * mdll-utl.adb (Locate): New version is idempotent.
35108
35109 2004-04-17 Laurent Guerby <laurent@guerby.net>
35110
35111 PR ada/14988 (partial)
35112 * impunit.adb: Fix typo.
35113
35114 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
35115
35116 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35117 and install-rts-cert targets. Remove all gnatlib and gnattools
35118 targets and all other rts-* targets (moved to libada). Remove (now)
35119 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35120 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35121
35122 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35123
35124 * trans.c (tree_transform): Shortcut returning error_mark_node for
35125 statements in annotate_only_mode.
35126 (tree_transform, case N_Label, case N_Return_Statement,
35127 N_Goto_Statement): Make statement tree instead of generating code.
35128 (tree_transform, case N_Assignment_Statement): No longer check
35129 type_annotate_only.
35130 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35131 RETURN_STMT): New.
35132 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35133 New fcns.
35134 (gnat_to_gnu): Collect any RTL generated and deal with it.
35135 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35136 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35137 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35138
35139 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35140
35141 * ada-tree.def (EXPR_STMT): Fix typo in name.
35142 (BLOCK_STMT, IF_STMT): New nodes.
35143
35144 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35145 LABEL_STMT_FIRST_IN_EH): New macros.
35146 (RETURN_STMT_EXPR): Likewise.
35147
35148 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35149 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35150
35151 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35152
35153 * atree.ads: Correct documentation on extended nodes.
35154
35155 * link.c: Set run_path_option for FreeBSD.
35156
35157 2004-04-08 Vincent Celier <celier@gnat.com>
35158
35159 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35160 one of the ALI file, do not link with DEC lib.
35161
35162 * par.adb Remove the last two characters ("%s" or "%b") when checking
35163 if a language defined unit may be recompiled.
35164
35165 2004-04-08 Ed Schonberg <schonberg@gnat.com>
35166
35167 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35168 removal of abstract operation leaves no possible interpretation for
35169 expression.
35170
35171 * sem_eval.adb (Eval_Qualified_Expression): Use
35172 Set_Raises_Constraint_Error on node when needed, so that it does not
35173 get optimized away by subsequent optimizations.
35174
35175 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35176 operands even when they are not wrapped in a type conversion.
35177
35178 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
35179
35180 * sem_prag.adb (Set_Exported): Warn about making static as result of
35181 export only when the export is coming from source. This may be not
35182 be true e.g. on VMS where we expand export pragmas for exception codes
35183 together with imported or exported exceptions, and we don't want the
35184 user to be warned about something he didn't write.
35185
35186 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35187
35188 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35189 duplication between normal entities and those declared as renamings.
35190 No functional change.
35191
35192 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35193 inline functions returning an unconstrained result.
35194
35195 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35196
35197 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35198 conform to what other front-ends do.
35199
35200 2004-04-08 Doug Rupp <rupp@gnat.com>
35201
35202 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35203 libraries.
35204
35205 2004-04-06 Pascal Obry <obry@gnat.com>
35206
35207 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35208
35209 * osint.adb (Program_Name): Do not look past a directory separator.
35210
35211 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
35212
35213 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35214
35215 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35216 requirement for preserving a copy of the original assignment node.
35217
35218 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35219
35220 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
35221
35222 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35223 when supported.
35224
35225 2004-04-06 Ed Schonberg <schonberg@gnat.com>
35226
35227 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35228 operator calls in functional notation, and apply
35229 Universal_Interpretation to operands, not to their type.
35230
35231 2004-04-06 Robert Dewar <dewar@gnat.com>
35232
35233 * 5wdirval.adb: Minor reformatting
35234
35235 2004-04-06 Ed Falis <falis@gnat.com>
35236
35237 * gnat_rm.texi: Improve a reference to the GCC manual
35238
35239 2004-04-05 Vincent Celier <celier@gnat.com>
35240
35241 * adaint.h, adaint.c: Add function __gnat_named_file_length
35242
35243 * impunit.adb: Add Ada.Directories to the list
35244
35245 * Makefile.in: Add VMS and Windows versions of
35246 Ada.Directories.Validity package body.
35247
35248 * Makefile.rtl: Add a-direct and a-dirval
35249
35250 * mlib-tgt.ads: Minor comment update.
35251
35252 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35253 a-direct.ads, a-direct.adb: New files.
35254
35255 2004-04-05 Vincent Celier <celier@gnat.com>
35256
35257 PR ada/13620
35258 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35259 just to the compiler.
35260
35261 2004-04-05 Robert Dewar <dewar@gnat.com>
35262
35263 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35264 returned string is 1.
35265
35266 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35267
35268 * eval_fat.ads: Minor reformatting
35269
35270 * g-curexc.ads: Document that lower bound of returned string values
35271 is always one.
35272
35273 * gnatlink.adb: Add ??? comment for previous change
35274 (need to document why this is VMS specific)
35275
35276 * s-stoele.ads: Minor reformatting
35277
35278 * tbuild.ads: Minor reformatting throughout (new function specs)
35279
35280 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35281 after WITH.
35282
35283 * scng.adb: Minor reformatting
35284
35285 2004-04-05 Geert Bosch <bosch@gnat.com>
35286
35287 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35288 (Leading_Part): Still perform truncation to machine number if the
35289 specified radix_digits is greater or equal to machine_mantissa.
35290
35291 2004-04-05 Javier Miranda <miranda@gnat.com>
35292
35293 * par-ch3.adb: Complete documentation of previous change
35294 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35295 (aliased must appear before constant).
35296
35297 * par-ch4.adb: Complete documentation of previous change.
35298
35299 * par-ch6.adb: Complete documentation of previous change.
35300
35301 * sinfo.ads: Fix typo in commment.
35302
35303 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35304
35305 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35306 stored discriminants, use its discriminants to constrain parent type,
35307 as is done for non-private derived record types.
35308
35309 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35310 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35311 candidate interpretation in an overloaded call.
35312
35313 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35314 expression is Null and target type is not an access type (e.g. a
35315 non-private address type).
35316
35317 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35318
35319 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35320 statement whose right-hand side is an inlined call, save a copy of the
35321 original assignment subtree to preserve enough consistency for
35322 Analyze_Assignment to proceed.
35323
35324 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35325 complete assignment subtree which is now unnecessary, as the expansion
35326 of inlined call has been improved to preserve a consistent assignment
35327 tree. Note_Possible_Modification must be called only
35328 after checks have been applied, or else unnecessary checks will
35329 be generated.
35330
35331 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35332 of explicit dereferences that do not Come_From_Source:
35333 - be selective on cases where we must go back to the dereferenced
35334 pointer (an assignment to an implicit dereference must not be
35335 recorded as modifying the pointer);
35336 - do not rely on Original_Node being present (Analyze_Assignment
35337 calls Note_Possible_Modification on a copied tree).
35338
35339 * sem_warn.adb (Check_References): When an unset reference to a pointer
35340 that is never assigned is encountered, prefer '<pointer> may be null'
35341 warning over '<pointer> is never assigned a value'.
35342
35343 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35344
35345 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35346 the ABI.
35347
35348 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35349
35350 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35351 libexc. We currently don't reference anything in this library and
35352 linking it in triggers linker warnings we don't want to see.
35353
35354 * init.c: Update comments.
35355
35356 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35357
35358 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35359 * utils.c (create_field_decl): Likewise.
35360 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35361
35362 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35363
35364 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35365 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35366 Add info directory entry and category.
35367
35368 2004-04-02 Jan Hubicka <jh@suse.cz>
35369
35370 * utils.c: Include function.h
35371 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35372
35373 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35374
35375 PR ada/14150
35376 * Make-lang.in: Clean up generation of documentation
35377
35378 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35379
35380 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35381
35382 * xgnatugn.adb: Replaces xgnatug.adb
35383
35384 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35385
35386 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35387
35388 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35389 gnat_ug_wnt.texi: Removed.
35390
35391 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35392
35393 * utils2.c: Update copyright notice.
35394
35395 2004-04-01 Robert Dewar <dewar@gnat.com>
35396
35397 * checks.adb: Minor reformatting throughout
35398 Note that prev checkin added RM reference to alignment warning
35399
35400 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35401
35402 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35403 non-static when building aggregate for bit-packed array.
35404
35405 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35406 function call that is itself the actual in a procedure call, build
35407 temporary for it.
35408
35409 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35410 a string literal, create a temporary for it, constant folding only
35411 handles scalars here.
35412
35413 2004-04-01 Vincent Celier <celier@gnat.com>
35414
35415 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35416 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35417 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35418 tokens.
35419 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35420 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35421 and get the checksum.
35422
35423 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35424 already in the Q.
35425 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35426 instead of at the beginning.
35427
35428 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35429 directly.
35430 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35431 on VMS.
35432
35433 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35434
35435 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35436 not '~' directly.
35437
35438 * par.adb: Remove test on file name to detect language defined units.
35439 Add test on unit name, after parsing, to detect language defined units
35440 that are not compiled with -gnatg (except System.RPC and its children)
35441
35442 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35443 following units without style checking.
35444
35445 * switch-c.adb: Change -gnatC to -gnateI
35446
35447 * usage.adb: Document new switch -gnateInnn
35448
35449 * scng.adb (Accumulate_Token_Checksum): New procedure
35450 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35451 word or literal number.
35452 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35453 numbers.
35454
35455 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35456
35457 * a-tasatt.adb,
35458 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35459 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35460 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35461 5vtpopde.adb: Add missing 'constant' keywords.
35462
35463 2004-04-01 Javier Miranda <miranda@gnat.com>
35464
35465 * par-ch4.adb: (P_Allocator): Code cleanup
35466
35467 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35468 attribute.
35469
35470 * sinfo.ads: Complete documentation of previous change
35471
35472 2004-04-01 Pascal Obry <obry@gnat.com>
35473
35474 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35475 only on VMS. This special handling was done because an old GNU/ld bug
35476 on Windows which has been fixed.
35477
35478 2004-04-01 GNAT Script <nobody@gnat.com>
35479
35480 * Make-lang.in: Makefile automatically updated
35481
35482 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35483
35484 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35485 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35486 * trans.c (tree_transform, convert_with_check): Likewise.
35487 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35488 (build_vms_descriptor, unchecked_convert): Likewise.
35489 * utils2.c (nonbinary_modular_operation): Likewise.
35490
35491 2004-03-29 Javier Miranda <miranda@gnat.com>
35492
35493 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35494 (Install_Null_Excluding_Check): Local subprogram that determines whether
35495 an access node requires a runtime access check and if so inserts the
35496 appropriate run-time check.
35497 (Apply_Access_Check): Call Install_Null_Excluding check if required
35498 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35499
35500 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35501
35502 * einfo.ads: Fix typo in comment
35503
35504 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35505 null-excluding type to force the corresponding run-time check.
35506 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35507 type to force the corresponding run-time check.
35508
35509 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35510 the null-excluding type to force the corresponding run-time check.
35511
35512 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35513 case of access types unless they have the null-excluding attribute.
35514
35515 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35516 part.
35517
35518 * exp_util.ads: Fix typo in comment
35519
35520 * par.adb (P_Null_Exclusion): New subprogram
35521 (P_Subtype_Indication): New formal that indicates if the null-excluding
35522 part has been scanned-out and it was present
35523
35524 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35525
35526 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35527 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35528 type to force the corresponding run-time check
35529 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35530 components
35531 (Resolve_Array_Aggregate): Carry out some static checks
35532 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35533
35534 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35535 attribute must be set only if specified by means of the null-excluding
35536 part. In addition, we must also propagate the access-constant attribute
35537 if present.
35538 (Access_Subprogram_Declaration, Access_Type_Declaration,
35539 Analyze_Component_Declaration, Analyze_Object_Declaration,
35540 Array_Type_Declaration, Process_Discriminants,
35541 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35542 and carry out some static checks.
35543 (Build_Derived_Access_Type): Set the null-excluding attribute
35544 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35545 checks.
35546
35547 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35548
35549 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35550
35551 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35552 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35553 null-excluding part was present; it is not required to be done here in
35554 case of anonymous access types.
35555 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35556 value.
35557
35558 * sem_res.adb (Resolve_Actuals): Carry out some static check
35559 (Resolve_Null): Allow null in anonymous access
35560
35561 * sinfo.adb: New subprogram Null_Exclusion_Present
35562 All_Present and Constant_Present available on access_definition nodes
35563
35564 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35565 object_declaration, derived_type_definition, component_definition,
35566 discriminant_specification, access_to_object_definition,
35567 access_function_definition, allocator, access_procedure_definition,
35568 access_definition, parameter_specification, All_Present and
35569 Constant_Present flags available on access_definition nodes.
35570
35571 2004-03-29 Robert Dewar <dewar@gnat.com>
35572
35573 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35574 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35575 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35576 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35577 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35578 sem_prag.adb: Updates to handle multiple units/file
35579
35580 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35581
35582 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35583 sem_util.adb: Minor reformatting
35584
35585 * sem_ch12.adb: Add comment for previous change
35586
35587 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35588
35589 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35590 executable name when not initialized. Otherwise, use its current value.
35591
35592 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35593 initialize it to another executable name than the current one. This
35594 allows to configure paths for an executable name (gnatmake) different
35595 from the current one (gnatdist).
35596
35597 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35598
35599 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35600 current unit cannot be inlined if it appears in the body of a withed
35601 unit, to avoid order of elaboration problems in gigi.
35602
35603 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35604 information for protected (wrapper) operation as well, to simplify gdb
35605 use.
35606
35607 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35608 protected body, indicate that the entity for the generated spec comes
35609 from source, to ensure that references are properly generated for it.
35610 (Build_Body_To_Inline): Do not inline a function that returns a
35611 controlled type.
35612
35613 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35614 apply convention to homonyms that are declared explicitly.
35615
35616 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35617 that renames an equality operator and the operands are overloaded,
35618 resolve them with the declared formal types, before rewriting as an
35619 operator.
35620
35621 2004-03-29 GNAT Script <nobody@gnat.com>
35622
35623 * Make-lang.in: Makefile automatically updated
35624
35625 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35626
35627 * memtrack.adb: Log realloc calls, which are treated as free followed
35628 by alloc.
35629
35630 2004-03-25 Vincent Celier <celier@gnat.com>
35631
35632 * prj-makr.adb (Process_Directories): Detect when a file contains
35633 several units. Do not include such files in the config pragmas or
35634 in the naming scheme.
35635
35636 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35637 Resolve links only when not in Trusted_Mode.
35638 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35639 Do not resolve links for the display names.
35640
35641 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35642 resolve links when computing the display names.
35643
35644 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35645
35646 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35647 attribute reference does not denote a subtype, it can be any
35648 expression that has a classwide type, potentially after an implicit
35649 dereference. In particular, the prefix can be a view conversion for
35650 a classwide type (for which Is_Object_Reference holds), but it can
35651 also be a value conversion for an access-to-classwide type. In the
35652 latter case, there is an implicit dereference, and the original node
35653 for the prefix does not verify Is_Object_Reference.
35654
35655 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35656 conversion of a discriminant-dependent component of a mutable object
35657 is one itself.
35658
35659 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35660
35661 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35662 inherited, has convention C, and has unconstrained array parameters,
35663 place the corresponding warning on the derived type declaration rather
35664 than the original subprogram.
35665
35666 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35667 indication on renaming declaration, if formal has a box and actual
35668 is absent.
35669
35670 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35671 determine whether to generate an implicit or explicit reference to
35672 the renamed entity.
35673
35674 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35675 subprogram renaming comes from a defaulted formal subprogram in an
35676 instance.
35677
35678 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35679
35680 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35681 value expressions to ensure that calls within a component definition
35682 will be checked (since those are evaluated during the record type's
35683 elaboration).
35684
35685 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35686
35687 * s-tpobop.adb: Code clean up:
35688 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35689 code.
35690 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35691
35692 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35693
35694 * Makefile.in: Clean up in the ravenscar run time.
35695
35696 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35697
35698 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35699 of No_Strict_Aliasing to build_pointer_type_for_mode.
35700 * utils.c (update_pointer_to): Walk pointer and ref chains.
35701
35702 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35703
35704 * ali.ads: Fix Comment about Dynamic_Elab.
35705
35706 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35707 Has_RACW, Is_Generic, etc.)
35708 (Output_Object, Gnatls): Take into account ALI files not attached to
35709 an object.
35710
35711 2004-03-22 Vincent Celier <celier@gnat.com>
35712
35713 * gprep.adb: Change all String_Access to Name_Id
35714 (Is_ASCII_Letter): new function
35715 (Double_File_Name_Buffer): New procedure
35716 (Preprocess_Infile_Name): New procedure
35717 (Process_Files): New procedure
35718 (Gnatprep): Check if output and input are existing directories.
35719 Call Process_Files to do the real job.
35720
35721 2004-03-22 Robert Dewar <dewar@gnat.com>
35722
35723 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35724 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35725
35726 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35727
35728 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35729 case when the source contains only comments.
35730
35731 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35732
35733 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35734 declaration for a child subprogram body that acts as a spec, indicate
35735 that the entity in the declaration needs debugging information.
35736
35737 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35738 full view if the subtype is created for a constrained record component;
35739 gigi has enough information to construct the record, and there is no
35740 place in the tree for the declaration.
35741
35742 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35743 serial number for the dummy body that is built for analysis, to avoid
35744 inconsistencies in the generation of internal names when compiling
35745 with -gnatN.
35746
35747 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35748
35749 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35750 object.
35751
35752 2004-03-22 GNAT Script <nobody@gnat.com>
35753
35754 * Make-lang.in: Makefile automatically updated
35755
35756 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35757
35758 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35759 * trans.c (tree_transform, emit_index_check): Likewise.
35760 * utils.c (build_template): Likewise.
35761 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35762 (maybe_unconstrained_array, unchecked_convert): Likewise.
35763 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35764 (build_unary_op): Likewise.
35765 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35766 (fill_vms_descriptor): Likewise.
35767 (build_call_alloc_dealloc): Likewise.
35768 ALIGN is unsigned.
35769 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35770
35771 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35772
35773 PR other/14630
35774 * gnat_ug.texi: Add info directory category and entry.
35775 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35776 gnat_ug_wnt.texi: Regenerate.
35777
35778 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35779
35780 * ada-tree.h: Update copyright notice.
35781 Minor reformatting.
35782
35783 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35784
35785 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35786 as regular exception objects and not as mere integers representing the
35787 condition code. The latter approach required some dynamics to mask off
35788 severity bits, which did not fit well into the GCC table based model.
35789 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35790 exception data objects. We don't it and it would conflict with the other
35791 external symbol we have to generate for such exceptions.
35792
35793 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35794 the special code for VMS exceptions, since these are now represented
35795 as regular exceptions objects.
35796
35797 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35798
35799 * decl.c (debug_no_type_hash): Remove.
35800 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35801 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35802
35803 2004-03-19 Laurent Guerby <laurent@guerby.net>
35804
35805 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35806 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35807
35808 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35809
35810 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35811 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35812 (TYPE_RM_SIZE_INT): Directly use type.values.
35813 (TREE_LOOP_ID): Clean up check.
35814 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35815 TYPE_VALUES, not TYPE_FIELDS.
35816 * trans.c (convert_with_check): Delay access of bounds of basetype
35817 until sure is numeric.
35818
35819 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35820
35821 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35822
35823 Code clean up:
35824 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35825 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35826 Specific.Set instead of direct call to e.g pthread_setspecific.
35827
35828 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35829
35830 * adaint.c: Update comments.
35831
35832 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35833 GNATLIB_SHARED for FreeBSD.
35834
35835 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35836
35837 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35838 When needed (stack checking) the stack size is retrieved
35839 from the VxWorks kernel.
35840
35841 * Makefile.in: Flag -nostdinc is required when building the run time
35842 for avoiding looking for files in the base compiler.
35843 Add the VxWorks specific version of the package body for
35844 System.Stack_checking.Operations (5zstchop.adb).
35845
35846 * Make-lang.in: Add the object file for
35847 System.Stack_Checking.Operations.
35848
35849 * Makefile.rtl: Add object file for the package
35850 System.Stack_Checking.Operations.
35851
35852 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35853
35854 * s-stache.ads, s-stache.adb: Move the operations related to stack
35855 checking from this package to package System.Stack_Checking.Operations.
35856 This way, stack checking operations are only linked in the final
35857 executable when using the -fstack-check flag.
35858
35859 2004-03-18 Doug Rupp <rupp@gnat.com>
35860
35861 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35862 Reorganize ifeq's.
35863
35864 * 5qsystem.ads, 5xcrtl.ads: New files.
35865
35866 2004-03-18 Vincent Celier <celier@gnat.com>
35867
35868 * prj.adb (Reset): Reset hash table Files_Htable
35869
35870 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35871 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35872 the procedures Add_To_Path_File.
35873 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35874 making sure that each directory is present only once and, for object
35875 dirs, when a directory already present is added, the duplicate is
35876 removed and the directory is always put as the last in the table.
35877 Write the path files at the end of these accumulations.
35878
35879 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35880 Files_Htable for all sources.
35881
35882 * prj-proc.adb (Process): Remove restrictions between not directly
35883 related extending projects.
35884
35885 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35886
35887 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35888 (Find_Sources): Minor speed optimization.
35889
35890 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35891 parameter Trusted_Mode.
35892
35893 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35894
35895 * scn.adb (Determine_License): Take into account a degenerated case
35896 when the source contains only comments.
35897
35898 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35899
35900 * sem_warn.adb (Check_References): For a warning on a selected
35901 component that does not come from source, locate an uninitialized
35902 component of the record type to produce a more precise error message.
35903
35904 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35905
35906 * 3zsoccon.ads: Fix multicast options.
35907
35908 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35909 in the spec.
35910
35911 2004-03-15 Robert Dewar <dewar@gnat.com>
35912
35913 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35914 pragma used for a private type.
35915
35916 * lib-xref.adb (Generate_Reference): Do not generate warning if
35917 reference is in a different unit from the pragma Unreferenced.
35918
35919 * 5vtpopde.adb: Minor reformatting
35920 Fix casing of To_Task_ID
35921
35922 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35923 flag if we have an unchecked conversion to an access type in the same
35924 unit.
35925
35926 2004-03-15 Geert Bosch <bosch@gnat.com>
35927
35928 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35929 imaginary parts, use Double precision throughout.
35930
35931 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35932 we want to be able to compile run-time with -gnata for testing, but
35933 this may also be instantiated in user code that is compiled with -gnata.
35934
35935 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35936
35937 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35938 codes. Having a separate type for this is useful to enforce consistency
35939 throughout the various run-time units.
35940 (Exception_Data): Use Exception_Code for Import_Code.
35941
35942 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35943 Natural and Integer in various places.
35944 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35945 with the severity bits masked off.
35946 (Register_VMS_Exception): Handle the additional exception data pointer
35947 argument.
35948
35949 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35950 component, now reflected by an exported accessor.
35951 (is_handled_by): New routine to compute whether the propagated
35952 occurrence matches some handler choice specification. Extracted out of
35953 get_action_description_for, and expanded to take care of the VMS
35954 specifities.
35955 (get_action_description_for): Use is_handled_by instead of an explicit
35956 complex condition to decide if the current choice at hand catches the
35957 propagated occurrence.
35958
35959 * raise.h (Exception_Code): New type for C.
35960
35961 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35962 System.Standard_Library.Exception_Code, to allow references from the
35963 pragma import/export expander.
35964
35965 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35966 New accessors to allow easy access to GNAT exception data
35967 characteristics.
35968 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35969 redundant Handled_By_Others component, helper for the personality
35970 routine which will now be able to call the appropriate exception data
35971 accessor instead.
35972
35973 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35974 component of Standard_Exception_Type to be the closest possible to
35975 Exception_Code in System.Standard_Library, that we cannot get at this
35976 point. Expand a ??? comment to notify that this type node should
35977 probably be rewritten later on.
35978
35979 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35980 registration call to include a pointer to the exception object in the
35981 arguments.
35982
35983 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35984 instead of int and explicit bitmasks.
35985
35986 2004-03-15 Vincent Celier <celier@gnat.com>
35987
35988 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35989 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35990
35991 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35992 longer needed now that it is in the spec of
35993 System.Tasking.Task_Attributes.
35994
35995 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35996
35997 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35998
35999 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
36000
36001 * make.adb (Gnatmake): Do not check the executable suffix; it is being
36002 taken care of in Scan_Make_Arg.
36003 (Scan_Make_Arg): Add the executable suffix only if the argument
36004 following -o, in canonical case, does not end with the executable
36005 suffix. When in verbose mode and executable file name does not end
36006 with executable suffix, output the executable name, in canonical case.
36007
36008 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
36009 to avoid warnings when instantiating Ada.Task_Attributes.
36010 Minor reformating.
36011
36012 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
36013 in the correct order.
36014
36015 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
36016 redirect standard output and error to a file for the invocation of the
36017 compiler, then read the file.
36018
36019 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
36020 directory, instead of the Value.
36021 (Find_Source_Dirs): Remove useless code & comments.
36022
36023 2004-03-15 Ed Schonberg <schonberg@gnat.com>
36024
36025 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
36026 tagged type is inherited, and the parent operation is not frozen yet,
36027 force generation of a freeze node for the inherited operation, so the
36028 corresponding dispatch entry is properly initialized.
36029 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
36030 when looking for user-defined equality operation.
36031
36032 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
36033 boolean when locating primitive equality of tagged component.
36034
36035 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
36036 bit-aligned field and the right-hand side a string literal, introduce
36037 a temporary before expanding assignment into a loop.
36038
36039 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36040 priority in full, to ensure that any expanded subepxressions of it are
36041 elaborated in the scope of the init_proc.
36042
36043 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36044 after object declaration, skipping over code that may have been
36045 generated for validity checks.
36046
36047 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36048 discriminants, ignore the known discriminants of its full view, if
36049 any, to check legality.
36050
36051 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36052 component if type has unknown discriminants.
36053 (Analyze_Private_Extension_Declaration): Discriminant constraint is
36054 null if type has unknown discriminants.
36055
36056 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36057 for end label when present.
36058
36059 * s-fileio.adb (Open): When called with a C_Stream, use given name for
36060 temporary file, rather than an empty string.
36061
36062 2004-03-15 Ed Falis <falis@gnat.com>
36063
36064 * s-thread.adb: Removed, no longer used.
36065
36066 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36067
36068 * decl.c (target.h): Now include.
36069 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36070 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36071 (validate_size): For POINTER_TYPE, get smallest size permitted on
36072 machine.
36073
36074 * fe.h: Sort Einfo decls and add Set_Mechanism.
36075
36076 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36077 (ada/decl.o): Depends on target.h.
36078
36079 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36080 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36081
36082 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
36083
36084 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36085
36086 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36087 Insert_Dereference_Action when rewriting an implicit dereference into
36088 an explicit one, this will be taken care of during expansion of the
36089 explicit dereference.
36090 (Expand_N_Slice): Same. Always do the rewriting, even for the case
36091 of non-packed slices, since the dereference action generated by
36092 expansion of the explicit dereference is needed in any case.
36093 (Expand_N_Selected_Component): When rewriting an implicit dereference,
36094 analyze and resolve the rewritten explicit dereference so it is seen
36095 by the expander.
36096 (Insert_Dereference_Action): This procedure is now called only for the
36097 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36098 dereferences that do not come from source (including explicit
36099 dereferences resulting from rewriting implicit ones), but do not
36100 recursively insert a check for the dereference nodes contained within
36101 the check.
36102 (Insert_Dereference_Action): Clarify and correct comment.
36103
36104 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
36105
36106 PR ada/14131
36107 Move language detection to the top level.
36108 * config-lang.in: Build by default.
36109
36110 2004-03-05 Robert Dewar <dewar@gnat.com>
36111
36112 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36113
36114 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36115 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36116 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36117 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36118 unchecked conversion to spec to avoid warnings.
36119
36120 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36121 to Task_ID
36122
36123 * 7stpopsp.adb: Correct casing in To_Task_ID call
36124
36125 * a-strsea.ads, a-strsea.adb: Minor reformatting
36126
36127 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36128
36129 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36130 Adjust Max_Msg_Length to be clearly large enough.
36131
36132 * fe.h: Define In_Same_Source_Unit
36133
36134 * osint.adb: Add pragma Warnings Off to suppress warnings
36135 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36136 aliasing warnings.
36137
36138 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36139
36140 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36141
36142 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36143
36144 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36145
36146 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36147
36148 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36149 node. We now do generate them for gcc back end.
36150
36151 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36152 warning.
36153
36154 * sinput-c.adb: Fix bad name in header.
36155 Add pragma Warnings Off to suppress aliasing warning.
36156
36157 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36158
36159 * snames.h, snames.ads, snames.adb: Add entry for pragma
36160 No_Strict_Aliasing.
36161
36162 2004-03-05 Vincent Celier <celier@gnat.com>
36163
36164 * prj-com.ads: Add hash table Files_Htable to check when a file name
36165 is already a source of another project.
36166
36167 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36168 if its file name is not already a source of another project. Report an
36169 error if it is.
36170
36171 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36172 source file name, call gnatpp with all the sources of the main project.
36173
36174 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36175 of file names.
36176
36177 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36178 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36179 /RUNTIME_SYSTEM=, converted to --RTS=
36180 /NOTABS, converted to -notabs
36181
36182 2004-03-05 Pascal Obry <obry@gnat.com>
36183
36184 * make.adb: Minor reformatting.
36185
36186 2004-03-05 Ed Schonberg <schonberg@gnat.com>
36187
36188 Part of implemention of AI-262.
36189 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36190
36191 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36192 procedure.
36193
36194 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36195 when component type is a partially constrained class-wide subtype.
36196 (Constrain_Discriminated_Type): If parent type has unknown
36197 discriminants, a constraint is illegal, even if full view has
36198 discriminants.
36199 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36200 with unknown discriminants whose full view is a discriminated record.
36201
36202 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36203 flag, to handle properly derivations of tagged types with unknown
36204 discriminants.
36205 (Analyze_Package_Spec, Analyze_Package_Body): Install
36206 Private_With_Clauses before analyzing private part or body.
36207
36208 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36209 Has_Discriminants can be true for a given type (documentation).
36210
36211 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36212
36213 * s-restri.ads: Fix license (GPL->GMGPL).
36214
36215 * s-tassta.adb: Minor reformatting.
36216
36217 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36218 by calls to Exit_One_ATC_Level, since additional clean up is performed
36219 by this function.
36220
36221 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36222 by calls to Exit_One_ATC_Level, since additional clean up is performed
36223 by this function.
36224
36225 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36226
36227 * trans.c: Reflect GCC changes to fix bootstrap problem.
36228 Add warning for suspicious aliasing unchecked conversion.
36229
36230 2004-03-05 GNAT Script <nobody@gnat.com>
36231
36232 * Make-lang.in: Makefile automatically updated
36233
36234 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
36235
36236 * ali.adb (Read_Instantiation_Instance): Do not modify the
36237 current_file_num when reading information about instantiations, since
36238 this corrupts files in later references.
36239
36240 2004-03-02 Vincent Celier <celier@gnat.com>
36241
36242 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36243 before checking if it is read-only.
36244
36245 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36246 of SRC_DIRS and eliminate duplicates.
36247
36248 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36249 the path separator.
36250 (Usage): Document path_sep
36251
36252 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36253 C++ compiler. No need for a script.
36254 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36255 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36256 subst.
36257
36258 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36259 where there are Ada sources.
36260 (Set_Ada_Paths): Only add to the include path the source dirs of project
36261 with Ada sources.
36262 (Add_To_Path): Add the Display_Values of the directories, not their
36263 Values.
36264
36265 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36266 data.
36267
36268 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36269 is not No_Name.
36270 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36271 Value is canonicalized.
36272 (Language_Independent_Check): Do not copy Value to Display_Value when
36273 canonicalizing Value.
36274
36275 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36276 path to find limited with cycles.
36277 (Parse_Single_Project): Use canonical cased path to find the end of a
36278 with cycle.
36279
36280 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36281
36282 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36283 and not a child unit.
36284
36285 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36286 appear in a with_clause.
36287
36288 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36289 only happen in type_annotate mode, do not try to elaborate it.
36290
36291 * exp_util.adb (Force_Evaluation): If expression is a selected
36292 component on the left of an assignment, use a renaming rather than a
36293 temporary to remove side effects.
36294
36295 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36296 inlined instance body, which is analyzed before the end of the
36297 enclosing scope.
36298
36299 2004-03-02 Robert Dewar <dewar@gnat.com>
36300
36301 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36302 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36303
36304 * errout.ads, errout.adb: Implement new circuit for substitution of
36305 keywords in VMS.
36306
36307 * sem_case.adb (Analyze_Choices): Place message properly when case is
36308 a subtype reference rather than an explicit range.
36309
36310 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36311
36312 2004-03-02 Doug Rupp <rupp@gnat.com>
36313
36314 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36315
36316 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36317
36318 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36319
36320 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36321
36322 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36323 BLKmode bitfield.
36324
36325 2004-02-25 Robert Dewar <dewar@gnat.com>
36326
36327 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36328 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36329 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36330 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36331 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36332 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36333 the defining instance of the type to avoid aliasing problems.
36334 Fix copyright header. Fix bad comments in package header.
36335
36336 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36337
36338 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36339
36340 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36341 rewritten as references when aliased through an address clause.
36342
36343 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36344 whether call can be interpreted as an indirect call to the result of a
36345 parameterless function call returning an access subprogram.
36346
36347 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36348
36349 Code clean up:
36350 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36351 Unlock[_Entries], since this is now done by Service_Entries directly.
36352
36353 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36354
36355 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36356 Requeue_Call for better code readability. Change spec and update calls:
36357 PO_Service_Entries now unlock the PO on exit.
36358 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36359 PO_Service_Entries.
36360
36361 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36362
36363 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36364
36365 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36366
36367 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36368 protected subprogram call and analyzing the result of such expanding
36369 in case when the called protected subprogram is eliminated.
36370
36371 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36372 names.
36373
36374 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36375
36376 * Makefile.in: Clean ups.
36377
36378 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36379
36380 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36381 protected operations if original subprogram is flagged as eliminated.
36382 (Expand_N_Subprogram_Body): For a protected operation, create
36383 discriminals for next operation before checking whether the operation
36384 is eliminated.
36385
36386 * exp_ch9.adb (Expand_N_Protected_Body,
36387 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36388 for internal protected operations if the original subprogram is
36389 eliminated.
36390
36391 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36392 declared in a single protected object.
36393
36394 2004-02-23 Vincent Celier <celier@gnat.com>
36395
36396 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36397 case insensitive if file names are case insensitive, instead of a
36398 standard associative array.
36399
36400 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36401 them as case insensitive on platforms where the file names are case
36402 sensitive.
36403
36404 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36405 project file has already been parsed that canonical path are compared.
36406
36407 2004-02-23 Robert Dewar <dewar@gnat.com>
36408
36409 * sinput-c.ads: Correct bad unit title in header
36410
36411 * freeze.adb: Minor reformatting
36412
36413 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36414
36415 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36416 nonaddressable COMPONENT_REF that is removing padding that we are
36417 taking the address of, take the address of the padded record instead
36418 if item is variable size.
36419
36420 2004-02-20 Robert Dewar <dewar@gnat.com>
36421
36422 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36423
36424 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36425
36426 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36427 itype references for the constrained designated type of a component
36428 whose base type is already frozen.
36429
36430 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36431
36432 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36433 avoid GCC warnings.
36434
36435 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36436
36437 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36438 identifier for a phantom package that rewrites the formal package
36439 declaration with a box. The Add semantic decorations for the defining
36440 identifier from the original node (that represents the formal package).
36441
36442 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36443
36444 * Make-lang.in (ada/stamp-sdefault): Use the top level
36445 move-if-change.
36446
36447 2004-02-19 Richard Henderson <rth@redhat.com>
36448
36449 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36450
36451 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36452
36453 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36454 Scan_ALI can be used for multiple ALI files without reinitializing
36455 between calls.
36456
36457 2004-02-18 Robert Dewar <dewar@gnat.com>
36458
36459 * debug.adb: Minor reformatting.
36460
36461 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36462
36463 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36464 to zero if there is an address clause.
36465
36466 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36467
36468 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36469
36470 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36471
36472 * layout.adb (Layout_Component_List): Revise generation of call to
36473 discriminant-checking function to pass selections of all of the type's
36474 discriminants rather than just the variant-controlling discriminant.
36475
36476 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36477
36478 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36479 fail in the current setup and triggers spurious system error messages.
36480 Pretend it occurred and failed instead.
36481
36482 2004-02-18 Vincent Celier <celier@gnat.com>
36483
36484 * bld.adb: Mark FLDFLAGS as saved
36485 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36486 it is not the root project. Put each directory to be
36487 extended between double quotes to prevent it to be expanded on Windows.
36488 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36489 the project file. Set them back to their initial values if they have not
36490 been set in the project file.
36491
36492 * gprcmd.adb: (Gprdebug, Debug): New global variables
36493 (Display_Command): New procedure
36494 (Usage): Document new command "linkopts"
36495 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36496 Implement new command "linkopts"
36497 Remove quotes that may be around arguments for "extend"
36498 Always call Normalize_Pathname with arguments formatted for the platform
36499
36500 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36501 Change @echo to @$(display) in target clean to be able to clean silently
36502
36503 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36504
36505 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36506 canonical case.
36507
36508 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36509 = Extending_All when current project is an extending all project.
36510
36511 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36512 set to True only for LINK command, after Unix switch -o.
36513 (Process_Arguments): Set Output_File_Expected to True for LINK command
36514 after Unix switch -o. When Output_File_Expected is True, never add an
36515 extension to a file name.
36516
36517 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36518 option file name, only to the --for-linker= switch.
36519 (Option_File_Name): If option file name do not end with ".opt", append
36520 "/OPTIONS".
36521
36522 2004-02-18 GNAT Script <nobody@gnat.com>
36523
36524 * Make-lang.in: Makefile automatically updated
36525
36526 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36527
36528 * Make-lang.in (stamp-sdefault): Do not depend on
36529 move-if-change.
36530
36531 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36532
36533 * config-lang.in: Disable Ada by default until probe logic for
36534 a bootstrap Ada compiler can be moved to the top level configure
36535 script.
36536
36537 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36538
36539 * decl.c (components_to_record): Don't claim that the internal fields
36540 we make to hold the variant parts are semantically addressable, because
36541 they are not.
36542
36543 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36544 adjust the comment describing the modular type form when we can use it.
36545 (Install_PAT): Account for the Esiz renaming.
36546
36547 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36548 sc_onstack context indication before raising the exception to which
36549 the signal is mapped. Allows better handling of later signals possibly
36550 triggered by the resumed user code if the exception is handled.
36551
36552 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36553
36554 * 5zinit.adb: Removed, no longer used.
36555
36556 2004-02-12 Robert Dewar <dewar@gnat.com>
36557
36558 * ali.adb: Remove separating space between parameters on R line. Makes
36559 format consistent with format used by the binder for Set_Globals call.
36560
36561 * atree.ads, atree.adb: Minor reformatting (new function header format)
36562
36563 * bindgen.adb: Add Run-Time Globals documentation section containing
36564 detailed documentation of the globals passed from the binder file to
36565 the run time.
36566
36567 * gnatls.adb: Minor reformatting
36568
36569 * init.c (__gnat_set_globals): Add note pointing to documentation in
36570 bindgen.
36571
36572 * lib-writ.ads, lib-writ.adb: Remove separating space between
36573 parameters on R line.
36574 Makes format consistent with format used by the binder for Set_Globals
36575 call.
36576
36577 * osint.ads: Add 2004 to copyright notice
36578 Minor reformatting
36579
36580 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36581 Noticed during code reading, documentation issue only
36582
36583 * usage.adb: Remove junk line for obsolete C switch
36584 Noticed during code reading
36585
36586 2004-02-12 Vincent Celier <celier@gnat.com>
36587
36588 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36589 extend for each directory, so that multiple /** directories are
36590 extended individually.
36591 (Recursive_Process): Set the default for LANGUAGES to ada
36592
36593 * gprcmd.adb: Define new command "ignore", to do nothing.
36594 Implement new comment "path".
36595
36596 * Makefile.generic: Suppress output when SILENT is set
36597 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36598 used, so that the correct compiler is invoked.
36599 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36600 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36601
36602 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36603
36604 * Makefile.in: Clean ups and remove obsolete targets.
36605
36606 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36607
36608 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36609 predicate declared in exp_util.
36610
36611 * exp_util.adb: Add comments.
36612
36613 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36614 visibility before compiling context of the subunit.
36615
36616 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36617 value but the name is a procedure, do not attempt to analyze as a call,
36618 in order to obtain more telling diagnostics.
36619
36620 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36621 'Access on parameterless function calls.
36622 (Normalize_Actuals): For a parameterless function call with missing
36623 actuals, defer diagnostic until resolution of enclosing call.
36624
36625 * sem_util.adb (Wrong_Type): If the context type is an access to
36626 subprogram and the expression is a procedure name, suggest a missing
36627 'attribute.
36628
36629 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36630 Nathanael Nerode <neroden@gcc.gnu.org>
36631
36632 PR ada/6637
36633 PR ada/5911
36634 Merge with libada-branch:
36635 * config-lang.in: Build libada only when ada is built.
36636
36637 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36638
36639 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36640 for a tagged type, verify that both formals have the same type.
36641
36642 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36643 temporary when the formal is an in-parameter and the actual a possibly
36644 unaligned slice.
36645
36646 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36647 when expansion is disabled, to ensure proper name capture with
36648 overloaded literals. Condition can be of any boolean type, resolve
36649 accordingly.
36650
36651 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36652 renaming is for a formal subprogram with a default operator name, and
36653 there is a usable operator that is visible at the point of
36654 instantiation.
36655
36656 2004-02-09 Robert Dewar <dewar@gnat.com>
36657
36658 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36659 rewrite to ignore errors in ali files, intended to allow tools downward
36660 compatibility with new versions of ali files.
36661
36662 * ali.ads: Add new parameter Ignore_Errors
36663
36664 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36665 duplicating the error message giving the file with restrictions.
36666
36667 * debug.adb: Add debug flag I for gnatbind
36668
36669 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36670 operators for the case where the operator is a defining operator.
36671
36672 * exp_ch3.adb: Minor reformatting (new function spec format).
36673
36674 * exp_ch4.adb: Add comment for previous change, and make minor
36675 adjustment to loop to always check for improper loop termination.
36676 Minor reformatting throughout (new function spec format).
36677
36678 * gnatbind.adb: Implement -di debug flag for gnatbind
36679
36680 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36681
36682 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36683
36684 * lib-load.adb: Fix bad assertion.
36685 Found by testing and code reading.
36686 Minor reformatting.
36687
36688 * lib-load.ads: Minor reformatting.
36689
36690 * lib-writ.adb: There is only one R line now.
36691
36692 * lib-writ.ads: Add documentation on making downward compatible changes
36693 to ali files so old tools work with new ali files.
36694 There is only one R line now.
36695 Add documentation on format incompatibilities (with special GPS note)
36696
36697 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36698
36699 * par-load.adb: Minor reformatting
36700
36701 * sem_ch8.adb: Fix to error message from last update
36702 Minor reformatting and restructuring of code from last update
36703
36704 * par-prag.adb, snames.adb, snames.ads, snames.h,
36705 sem_prag.adb: Implement pragma Profile.
36706
36707 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36708 options.
36709
36710 * usage.adb: Add line for -gnatyN switch
36711
36712 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36713
36714 2004-02-09 Albert Lee <lee@gnat.com>
36715
36716 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36717
36718 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36719
36720 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36721 slices.
36722
36723 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36724 is nested in an instance that is not frozen yet, to avoid
36725 order-of-elaboration problems in gigi.
36726
36727 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36728 body the attribute is legal.
36729
36730 2004-02-09 Robert Dewar <dewar@gnat.com>
36731
36732 * s-rident.ads: Minor comment correction
36733
36734 * targparm.adb: Remove dependence on uintp completely. There was
36735 always a bug in Make in that it called Targparm before initializing
36736 the Uint package. The old code appeared to get away with this, but
36737 the new code did not! This caused an assertion error in gnatmake.
36738
36739 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36740 are indeed fully supported.
36741
36742 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36743
36744 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36745
36746 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36747
36748 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36749 with targetm.calls.promote_prototypes.
36750
36751 2004-02-04 Robert Dewar <dewar@gnat.com>
36752
36753 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36754 ali.ads, gprcmd.adb: Minor reformatting
36755
36756 * bindgen.adb: Output restrictions string for new style restrictions
36757 handling
36758
36759 * impunit.adb: Add s-rident.ads (System.Rident) and
36760 s-restri (System.Restrictions)
36761
36762 * lib-writ.adb: Fix bug in writing restrictions string (last few
36763 entries wrong)
36764
36765 * s-restri.ads, s-restri.adb: Change name Restrictions to
36766 Run_Time_Restrictions to avoid conflict with package name.
36767 Add circuit to read and acquire run time restrictions.
36768
36769 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36770
36771 * restrict.ads, restrict.adb: Use the new restriction
36772 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36773
36774 * sem_prag.adb: No_Task_Attributes is a synonym of
36775 No_Task_Attributes_Package.
36776
36777 * snames.ads, snames.adb: New entry for proper handling of
36778 No_Task_Attributes.
36779
36780 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36781 (AI-00249) that supersedes the GNAT specific restriction
36782 No_Task_Attributes.
36783
36784 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36785
36786 * sem_prag.adb:
36787 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36788 body, an identifier may be wrapped in an unchecked conversion.
36789
36790 2004-02-04 Vincent Celier <celier@gnat.com>
36791
36792 * lib-writ.ads: Comment update for the W lines
36793
36794 * bld.adb: (Expression): An empty string list is static
36795
36796 * fname-uf.adb: Minor comment update
36797
36798 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36799
36800 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36801 restrictions on the target.
36802
36803 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36804
36805 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36806 gen_rtx.
36807
36808 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36809
36810 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36811
36812 2004-02-02 Vincent Celier <celier@gnat.com>
36813
36814 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36815 comment before the usage.
36816 Gprcmd: Fail when command is not recognized.
36817 (Usage): Document command "prefix"
36818
36819 * g-md5.adb (Digest): Process last block.
36820 (Update): Do not process last block. Store remaining characters and
36821 length in Context.
36822
36823 * g-md5.ads (Update): Document that several call to update are
36824 equivalent to one call with the concatenated string.
36825 (Context): Add fields to allow new Update behaviour.
36826
36827 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36828 defaulted to False.
36829 When May_Fail is True and no existing file can be found, return No_File.
36830
36831 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36832 functions.
36833
36834 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36835 spec file name instead on the W line.
36836
36837 2004-02-02 Robert Dewar <dewar@gnat.com>
36838
36839 * ali.adb: Read and acquire info from new format restrictions lines
36840
36841 * bcheck.adb: Add circuits for checking restrictions with parameters
36842
36843 * bindgen.adb: Output dummy restrictions data
36844 To be changed later
36845
36846 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36847 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36848 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36849 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36850 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36851
36852 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36853 the warning message on access to possibly uninitialized variable S)
36854 Minor changes for new restrictions handling.
36855
36856 * gnatbind.adb: Minor reformatting
36857 Minor changes for new restrictions handling
36858 Move circuit for -r processing here from bcheck (cleaner)
36859
36860 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36861
36862 * lib-writ.adb: Output new format restrictions lines
36863
36864 * lib-writ.ads: Document new R format lines for new restrictions
36865 handling.
36866
36867 * s-restri.ads/adb: New files
36868
36869 * Makefile.rtl: Add entry for s-restri.ads/adb
36870
36871 * par-ch3.adb: Fix bad error messages starting with upper case letter
36872 Minor reformatting
36873
36874 * restrict.adb: Major rewrite throughout for new restrictions handling
36875 Major point is to handle restrictions with parameters
36876
36877 * restrict.ads: Major changes in interface to handle restrictions with
36878 parameters. Also generally simplifies setting of restrictions.
36879
36880 * snames.ads/adb: New entry for proper handling of No_Requeue
36881
36882 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36883 restriction counting.
36884 Other minor changes for new restrictions handling
36885
36886 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36887 Restriction_Warnings now allows full parameter notation
36888 Major rewrite of Restrictions for new restrictions handling
36889
36890 2004-02-02 Javier Miranda <miranda@gnat.com>
36891
36892 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36893 syntax rule for object renaming declarations.
36894 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36895 component definitions.
36896
36897 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36898 components.
36899 (Array_Type_Declaration): Give support to access components. In addition
36900 it was also modified to reflect the name of the object in anonymous
36901 array types. The old code did not take into account that it is possible
36902 to have an unconstrained anonymous array with an initial value.
36903 (Check_Or_Process_Discriminants): Allow access discriminant in
36904 non-limited types.
36905 (Process_Discriminants): Allow access discriminant in non-limited types
36906 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36907 node. Change Ada0Y to Ada 0Y in comments
36908
36909 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36910 equality operators.
36911 Change Ada0Y to Ada 0Y in comments
36912
36913 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36914 renamings Change Ada0Y to Ada 0Y in comments
36915
36916 * sem_type.adb (Find_Unique_Type): Give support to the equality
36917 operators for universal access types
36918 Change Ada0Y to Ada 0Y in comments
36919
36920 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36921
36922 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36923 field.
36924 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36925 Change Ada0Y to Ada 0Y in comments
36926
36927 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36928 component definition and object renaming nodes
36929 Change Ada0Y to Ada 0Y in comments
36930
36931 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36932
36933 * restrict.adb: Use the new restriction identifier
36934 No_Requeue_Statements instead of the old No_Requeue for defining the
36935 restricted profile.
36936
36937 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36938 No_Requeue_Statements.
36939
36940 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36941 that supersedes the GNAT specific restriction No_Requeue. The later is
36942 kept for backward compatibility.
36943
36944 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36945
36946 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36947 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36948 pragma and fix incorrect ones.
36949
36950 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36951 warning if the pragma is redundant.
36952
36953 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36954
36955 * 5staprop.adb: Add missing 'constant' keywords.
36956
36957 * Makefile.in: use consistent value for SYMLIB on
36958 platforms where libaddr2line is supported.
36959
36960 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36961
36962 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36963 annotating types.
36964
36965 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36966
36967 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36968 handlers in the environment thread. This allows proper propagation of
36969 an exception on stack overflows in this thread even when the builtin
36970 ABI stack-checking scheme is used without support for a stack reserve
36971 region.
36972
36973 * utils.c (create_field_decl): Augment the head comment about bitfield
36974 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36975 here, because the former is not accurate enough at this point.
36976 Let finish_record_type decide instead.
36977 Don't make a bitfield if the field is to be addressable.
36978 Always set a size for the field if the record is packed, to ensure the
36979 checks for bitfield creation are triggered.
36980 (finish_record_type): During last pass over the fields, clear
36981 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36982 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36983 from DECL_BIT_FIELD.
36984
36985 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36986
36987 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36988 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36989 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36990
36991 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36992
36993 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36994
36995 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36996 (ZCX_By_Default): Likewise.
36997 (Front_End_ZCX_Support): Likewise.
36998
36999 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
37000 (Initialize_Lock): Mark Level unreferenced.
37001 (Sleep): Mark Reason unreferenced.
37002 (Timed_Sleep): Likewise.
37003 (Wakeup): Likewise.
37004 (Exit_Task): Use Result.
37005 (Check_No_Locks): Mark Self_ID unreferenced.
37006
37007 * 5gtasinf.adb (New_Sproc): Make Attr constant.
37008 (Bound_Thread_Attributes): Make Sproc constant.
37009 (New_Bound_Thread_Attributes): Likewise.
37010
37011 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37012
37013 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
37014 one-dimensional array an slice assignments, when component type is
37015 controlled.
37016
37017 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
37018 component type is controlled, and control_actions are in effect, use
37019 TSS procedure rather than generating inline code.
37020
37021 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
37022 arrays with controlled components.
37023
37024 2004-01-26 Vincent Celier <celier@gnat.com>
37025
37026 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
37027 command line for the non VMS case.
37028
37029 * gnatlink.adb (Process_Binder_File): When building object file, if
37030 GNU linker is used, put all object paths between quotes, to prevent ld
37031 error when there are unusual characters (such as '!') in the paths.
37032
37033 * Makefile.generic: When there are sources in Ada and the main is in
37034 C/C++, invoke gnatmake with -B, instead of -z.
37035
37036 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
37037 from VMS_Conversion.
37038 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
37039 specification of argument file on the command line.
37040
37041 2004-01-26 Bernard Banner <banner@gnat.com>
37042
37043 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37044
37045 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37046
37047 * snames.adb: Update copyright notice.
37048 Add info on slice assignment for controlled arrays.
37049
37050 2004-01-23 Robert Dewar <dewar@gnat.com>
37051
37052 * exp_aggr.adb: Minor reformatting
37053
37054 * exp_ch9.adb: Minor code clean up
37055 Minor reformatting
37056 Fix bad character in comment
37057
37058 PR ada/13471
37059 * targparm.adb (Get_Target_Parameters): Give clean abort error on
37060 unexpected end of file, along with more detailed message.
37061
37062 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37063
37064 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37065 PAT.
37066
37067 * decl.c (copy_alias_set): New function.
37068 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37069
37070 2004-01-23 Doug Rupp <rupp@gnat.com>
37071
37072 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37073 lib$${file} in case subsequent character is not a separator.
37074
37075 2004-01-23 Vincent Celier <celier@gnat.com>
37076
37077 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37078 when the GCC version is at least 3.
37079
37080 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37081 Remove all "Opt.", to prepare for opt split
37082
37083 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37084 Extends_All. Set to True when the project parsed is an extending all
37085 project. Fails for importing an extending all project only when the
37086 imported project is an extending all project.
37087 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37088 depending on the value of Extends_All returned.
37089
37090 * prj-proc.adb (Process): Check that no project shares its object
37091 directory with a project that extends it, directly or indirectly,
37092 including a virtual project.
37093 Check that no project extended by another project shares its object
37094 directory with another also extended project.
37095
37096 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37097 Kind = N_With_Clause
37098
37099 * prj-tree.ads: Minor reformatting
37100 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37101
37102 2004-01-23 Ed Schonberg <schonberg@gnat.com>
37103
37104 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37105 applies to a type with an incomplete view, use full view in Name of
37106 clause, for consistency with uses of Get_Attribute_Definition_Clause.
37107
37108 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
37109
37110 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37111 SCHED_RR, since other values are not supported by this policy.
37112 (Initialize): Move initialization of mutex attribute to package
37113 elaboration, to prevent early access to this variable.
37114
37115 * Makefile.in: Remove mention of Makefile.adalib, unused.
37116
37117 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37118 1ssecsta.ads: Removed, unused.
37119
37120 2004-01-21 Javier Miranda <miranda@gnat.com>
37121
37122 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37123 entity if already built in the current scope.
37124
37125 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37126 reminder in internal scopes. Required for nested limited aggregates.
37127
37128 2004-01-21 Doug Rupp <rupp@gnat.com>
37129
37130 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37131 VMS. Replace all occurences of libgnat- and libgnarl- with
37132 libgnat$(hyphen) and libgnarl$(hyphen).
37133 Fixed shared library build problem on VMS.
37134
37135 2004-01-21 Robert Dewar <dewar@gnat.com>
37136
37137 * mlib-prj.adb: Minor reformatting
37138
37139 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
37140
37141 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37142 'constant' keywords for declaration of pointers that are not modified.
37143
37144 * exp_pakd.adb: Fix English in comment.
37145
37146 2004-01-21 Ed Schonberg <schonberg@gnat.com>
37147
37148 PR ada/10889
37149 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37150 copy all attributes of the parent, including the foreign language
37151 convention.
37152
37153 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
37154
37155 PR ada/10565
37156 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37157 for 'delay until' statement.
37158
37159 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37160
37161 * Make-lang.in: Replace $(docdir) with doc.
37162 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37163 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37164 to use consistent MAKEINFO rule.
37165 (ada.man, ada.srcman): Dummy entry.
37166 (ADA_INFOFILES): Define.
37167 (ada.info, ada.srcinfo): New rules.
37168
37169 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37170
37171 * utils.c: Update copyright notice, missed in previous change.
37172
37173 2004-01-19 Vincent Celier <celier@gnat.com>
37174
37175 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37176 args if Bind is True. Set First_ALI, if not already done.
37177 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37178 an eventual --RTS switch, for gnatbind, and all backend switches +
37179 --RTS, for linking.
37180
37181 2004-01-19 Robert Dewar <dewar@gnat.com>
37182
37183 * sem_attr.adb, memtrack.adb: Minor reformatting
37184
37185 2004-01-19 Ed Schonberg <schonberg@gnat.com>
37186
37187 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37188 that rename enumeration literals. This is properly done in sem_eval.
37189
37190 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37191 to functions that rename enumeration literals.
37192
37193 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37194 functions that rename enumeration literals.
37195
37196 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37197
37198 * Make-lang.in (utils.o): Depend on target.h.
37199 * utils.c: Include target.h.
37200 (process_attributes): Use targetm.have_named_sections instead
37201 of ASM_OUTPUT_SECTION_NAME.
37202
37203 2004-01-16 Andreas Jaeger <aj@suse.de>
37204
37205 * Makefile.in: Add $(DESTDIR).
37206
37207 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
37208
37209 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37210 also when not defining if a Size clause applies. That information is
37211 not to be ignored.
37212
37213 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37214
37215 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37216 symbolic links for the shared gnat run time when needed.
37217
37218 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37219
37220 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37221 for writing, and terminate with an error message if not.
37222
37223 2004-01-15 Ed Schonberg <schonberg@gnat.com>
37224
37225 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37226 warning on an access to subprogram in an instance, when the target
37227 type is declared in the same generic unit.
37228 (Eval_Attribute): If 'access is known to fail accessibility check,
37229 rewrite as a raise statement.
37230
37231 2004-01-15 GNAT Script <nobody@gnat.com>
37232
37233 * Make-lang.in: Makefile automatically updated
37234
37235 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37236
37237 * Make-lang.in (ada.srcextra): Dummy entry.
37238
37239 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37240
37241 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37242
37243 2004-01-13 Ed Schonberg <schonberg@gnat.com>
37244
37245 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37246 components that are initialized with aggregates.
37247
37248 2004-01-13 Vincent Celier <celier@gnat.com>
37249
37250 * gnatlink.adb (Process_Binder_File): To find directory of shared
37251 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37252 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37253
37254 * make.adb (Gnatmake): If GCC version is at least 3, link with
37255 -shared-libgcc, when there is at least one shared library project.
37256
37257 * opt.ads (GCC_Version): New integer constant.
37258
37259 * adaint.c (get_gcc_version): New function.
37260
37261 2004-01-13 Robert Dewar <dewar@gnat.com>
37262
37263 * sem_dist.adb, sem_res.adb, sem_util.adb,
37264 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37265 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37266
37267 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37268
37269 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37270 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37271 declarations.
37272
37273 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37274
37275 * misc.c: Remove trailing spaces.
37276 Update copyright notice missed in previous change.
37277
37278 PR ada/13572
37279 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37280 prefix/share/make
37281
37282 * Makefile.generic: Update copyright.
37283 Add license notice.
37284
37285 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37286 of prefix/share/make.
37287
37288 * Makefile.prolog: Update copyright.
37289 Add license notice.
37290
37291 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37292
37293 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37294 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37295 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37296 instead of String.
37297
37298 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37299 signature.
37300
37301 2004-01-12 Javier Miranda <miranda@gnat.com>
37302
37303 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37304 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37305 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37306 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37307 Component_Definition node.
37308
37309 2004-01-12 Ed Falis <falis@gnat.com>
37310
37311 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37312
37313 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37314
37315 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37316
37317 2004-01-12 Bernard Banner <banner@gnat.com>
37318
37319 * Makefile.in: map 86numaux to a-numaux for x86_64
37320
37321 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37322
37323 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37324 generated to rename a generic actual, go to the actual itself, the
37325 subtype is not a user-visible entity.
37326
37327 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37328 part is a private subtype, reset the visibility of its full view, if
37329 any, to be consistent.
37330
37331 PR ada/13417
37332 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37333 to use a generic package G as a formal package for another generic
37334 declared within G.
37335
37336 2004-01-12 Robert Dewar <dewar@gnat.com>
37337
37338 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37339
37340 * usage.adb: Remove mention of obsolete -gnatwb switch
37341 Noticed during code reading
37342
37343 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37344
37345 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37346
37347 2004-01-12 GNAT Script <nobody@gnat.com>
37348
37349 * Make-lang.in: Makefile automatically updated
37350
37351 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37352
37353 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37354
37355 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37356
37357 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37358
37359 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37360
37361 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37362 Update comment and copyright date.
37363 * stamp-xgnatug: Delete.
37364
37365 2004-01-05 Robert Dewar <dewar@gnat.com>
37366
37367 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37368 be modified by the binder generated main program if the -D switch is
37369 used.
37370
37371 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37372 imported functions (since now we expect this to be done for imported
37373 functions)
37374
37375 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37376 Minor reformatting throughout
37377
37378 * 5zinit.adb: Minor reformatting
37379 Add 2004 to copyright date
37380 Minor changes to avoid -gnatwa warnings
37381 Correct some instances of using OR instead of OR ELSE (noted while
37382 doing reformatting)
37383
37384 * sprint.adb: Minor updates to avoid -gnatwa warnings
37385
37386 * s-secsta.ads, s-secsta.adb:
37387 (SS_Get_Max): New function to obtain high water mark for ss stack
37388 Default_Secondary_Stack is not a constant since it may be modified by
37389 the binder generated main program if the -D switch is used.
37390
37391 * switch-b.adb: New -Dnnn switch for binder
37392
37393 * switch-c.adb:
37394 Make -gnatg imply all warnings currently in -gnatwa
37395
37396 * vms_conv.adb: Minor reformatting
37397 Add 2004 to copyright notice
37398 Add 2004 to printed copyright notice
37399
37400 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37401 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37402 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37403 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37404 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37405 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37406 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37407 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37408 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37409 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37410 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37411 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37412 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37413 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37414 checks.adb, clean.adb, cstand.adb, einfo.ads,
37415 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37416 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37417 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37418 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37419 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37420 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37421 Minor reformatting and code clean ups.
37422 Minor changes to prevent -gnatwa warnings
37423
37424 * ali.adb: Minor reformatting and cleanup of code
37425 Acquire new SS indication of secondary stack use from ali files
37426
37427 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37428 (since now we expect this to be done for imported functions)
37429
37430 * bindgen.adb: Generate call to modify default secondary stack size if
37431 -Dnnn switch given
37432
37433 * bindusg.adb: Add line for new -D switch
37434
37435 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37436 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37437 Add circuitry for both records and arrays to avoid gigi
37438 processing if the type involved has non-bit-aligned components
37439
37440 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37441 N_String_Literal node always references an E_String_Literal_Subtype
37442 entity. This may not be true in the future.
37443 (Possible_Bit_Aligned_Component): Move processing of
37444 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37445
37446 * exp_ch6.adb (Expand_Thread_Body): Pick up
37447 Default_Secondary_Stack_Size as variable so that we get value modified
37448 by possible -Dnnn binder parameter.
37449
37450 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37451 (Type_May_Have_Bit_Aligned_Components): New function.
37452
37453 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37454 (Type_May_Have_Bit_Aligned_Components): New function.
37455
37456 * fe.h: (Set_Identifier_Casing): Fix prototype.
37457 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37458 Minor reformatting.
37459
37460 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37461 importing constant atomic/volatile objects.
37462 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37463 unless explicit Pure_Function pragma given, to avoid insidious bug of
37464 call to non-pure imported function getting eliminated.
37465
37466 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37467 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37468 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37469 Add 2004 to printed copyright notice
37470
37471 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37472 stack used.
37473
37474 * Makefile.rtl: Add entry for g-sestin.o
37475 g-sestin.ads: New file.
37476
37477 * mdll.adb: Minor changes to avoid -gnatwa warnings
37478
37479 * mlib-tgt.adb: Minor reformatting
37480
37481 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37482 New switch Sec_Stack_Used (GNAT, GNATBIND)
37483 Make Default_Secondary_Stack_Size a variable instead of a constant,
37484 so that it can be modified by the new -Dnnn bind switch.
37485
37486 * rtsfind.adb (Load_Fail): Give full error message in configurable
37487 run-time mode if all_errors mode is set. This was not done in the case
37488 of a file not found, which was an oversight.
37489 Note if secondary stack unit is used by compiler.
37490
37491 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37492 ineffective elaborate all pragmas on non-visible packages (this
37493 happened when a renamed subprogram was called). Now the elaborate all
37494 always goes on the package containing the renaming rather than the one
37495 containing the renamed subprogram.
37496
37497 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37498 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37499
37500 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37501 has an Etype that references an E_String_Literal.
37502 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37503 always references an E_String_Literal_Subtype entity. This may not
37504 be true in the future.
37505
37506 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37507 pragma location.
37508
37509 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37510 call.
37511
37512 2004-01-05 Ed Falis <falis@gnat.com>
37513
37514 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37515 form.
37516
37517 2004-01-05 Vincent Celier <celier@gnat.com>
37518
37519 * bld.adb: Minor comment updates
37520 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37521 of Item_Name).
37522
37523 * make.adb (Gnatmake): Special process for files to compile/check when
37524 -B is specified. Fail when there are only foreign mains in attribute
37525 Main of the project file and -B is not specified. Do not skip bind/link
37526 steps when -B is specified.
37527
37528 * makeusg.adb: Document new switch -B
37529
37530 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37531
37532 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37533
37534 * vms_data.ads: Add new GNAT PRETTY qualifier
37535 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37536
37537 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37538
37539 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37540 case.
37541
37542 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37543 Set_Identifier_Casing.
37544
37545 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37546 has size that overflows.
37547
37548 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37549
37550 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37551 -gnatwa warning on static condition.
37552
37553 2004-01-05 Doug Rupp <rupp@gnat.com>
37554
37555 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37556
37557 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37558
37559 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37560 all attributes, including read-only attribute.
37561
37562 2004-01-05 Pascal Obry <obry@gnat.com>
37563
37564 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37565 library naming scheme.
37566
37567 * mlib-prj.adb (Build_Library): Generate different names for the static
37568 or dynamic version of the GNAT runtime. This is needed to support the
37569 new shared library naming scheme.
37570 (Process_Binder_File): Add detection of shared library in binder file
37571 based on the new naming scheme.
37572
37573 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37574 scheme for the shared runtime libraries.
37575
37576 * Makefile.in:
37577 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37578 scheme.
37579 (install-gnatlib): Do not create symlinks for shared libraries.
37580 (gnatlib-shared-default): Idem.
37581 (gnatlib-shared-dual-win32): New target. Not used for now as the
37582 auto-import feature does not support arrays/records.
37583 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37584 (gnatlib-shared-vms): Fix shared runtime libraries names.
37585
37586 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37587 dependent runtime shared library name.
37588
37589 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37590
37591 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37592 than the object.
37593
37594 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37595
37596 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37597 protected objects when allocator has a subtype indication, not a
37598 qualified expression. Note that qualified expressions may have to be
37599 checked when limited aggregates are implemented.
37600
37601 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37602 pure, emit warning.
37603 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37604 subprogram is imported, remove warning.
37605
37606 2004-01-05 Geert Bosch <bosch@gnat.com>
37607
37608 * s-poosiz.adb: Update copyright notice.
37609 (Allocate): Use Task_Lock to protect against concurrent access.
37610 (Deallocate): Likewise.
37611
37612 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37613
37614 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37615 comment.
37616
37617 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37618
37619 * gnat_ug.texi: Force a CVS commit by updating copyright.
37620 * gnat_ug_vxw.texi: Regenerate.
37621 * gnat_ug_wnt.texi: Regenerate.
37622 * gnat_ug_vms.texi: Regenerate.
37623 * gnat_ug_unx.texi: Regenerate.
37624
37625 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37626
37627 * trans.c: Remove uses of "register" specifier in
37628 declarations of local variables.
37629
37630 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37631
37632 * stamp-xgnatug: New stamp file.
37633 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37634 (ada/doctools/xgnatug): Add $(build_exeext).
37635 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37636 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37637
37638 2003-12-17 Ed Falis <falis@gnat.com>
37639
37640 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37641 eliminate warning.
37642
37643 * a-exextr.adb: Add context clause for
37644 Ada.Exceptions.Last_Chance_Handler.
37645
37646 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37647
37648 * cstand.adb (Create_Standard): Change the way how the declaration of
37649 the Duration type is created (making it the same way as it is for all
37650 the other standard types).
37651
37652 2003-12-17 Robert Dewar <dewar@gnat.com>
37653
37654 * s-crtl.ads: Fix header format
37655 Change Pure to Preelaborate
37656
37657 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37658
37659 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37660 the expression type only if it is declared in the current unit.
37661
37662 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37663 are universal and already analyzed, as can occur in constrained
37664 subcomponents that depend on discriminants, when one constraint is a
37665 subtype mark.
37666
37667 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37668 type Any_Fixed is legal as the argument of a conversion, if only one
37669 fixed-point type is in context.
37670
37671 2003-12-17 GNAT Script <nobody@gnat.com>
37672
37673 * Make-lang.in: Makefile automatically updated
37674
37675 2003-12-15 Robert Dewar <dewar@gnat.com>
37676
37677 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37678 sec stack size.
37679
37680 2003-12-15 Vincent Celier <celier@gnat.com>
37681
37682 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37683 (Gnatchop): Do not set failure status when reporting the number of
37684 warnings.
37685
37686 2003-12-15 Doug Rupp <rupp@gnat.com>
37687
37688 * s-ctrl.ads: New file.
37689
37690 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37691
37692 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37693 (GNATBIND_OBJS): Add ada/s-crtl.o.
37694
37695 * Makefile.in [VMS]: Clean up ifeq rules.
37696
37697 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37698 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37699 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37700 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37701 s-tasdeb.adb: Update copyright.
37702 Import System.CRTL.
37703 Make minor modifications to use System.CRTL declared functions instead
37704 of importing locally.
37705
37706 2003-12-15 GNAT Script <nobody@gnat.com>
37707
37708 * Make-lang.in: Makefile automatically updated
37709
37710 2003-12-11 Ed Falis <falis@gnat.com>
37711
37712 * 5zinit.adb: Clean up.
37713
37714 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37715 to __gnat_map_signal, imported from init.c to support
37716 signal -> exception mappings that depend on the vxWorks version.
37717
37718 * init.c:
37719 Created and exported __gnat_map_signal to support signal -> exception
37720 mapping that is dependent on the VxWorks version.
37721 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37722
37723 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37724
37725 * 5wosinte.ads: Link with -mthreads switch.
37726
37727 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37728
37729 * init.c (__gnat_install_handler [NetBSD]): Set
37730 __gnat_handler_installed, as done on all other platforms.
37731 Remove duplicated code.
37732
37733 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37734
37735 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37736
37737 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37738
37739 * sinfo.ads: Fix inconsistent example code in comment.
37740
37741 2003-12-11 Robert Dewar <dewar@gnat.com>
37742
37743 * a-tiinau.adb: Add a couple of comments
37744
37745 * sem_ch3.adb: Minor reformatting
37746
37747 * sem_prag.adb:
37748 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37749 Minor reformatting throughout
37750
37751 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37752
37753 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37754 bounds of a loop, create a separate block in order to generate proper
37755 cleanup actions to prevent memory leaks.
37756
37757 * sem_res.adb (Resolve_Call): After a call to
37758 Establish_Transient_Scope, the call may be rewritten and relocated, in
37759 which case no further processing is needed.
37760
37761 * sem_util.adb: (Wrong_Type): Refine previous fix.
37762 Fixes ACATS regressions.
37763
37764 PR ada/13353
37765 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37766 be inlined.
37767
37768 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37769
37770 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37771 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37772 obsolete files.
37773
37774 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37775 (rts-zfp): Ditto.
37776
37777 2003-12-08 Robert Dewar <dewar@gnat.com>
37778
37779 * 7sintman.adb: Minor reformatting
37780
37781 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37782 standard linker options to get standard libraries linked. We now plan
37783 to provide dummy versions of these libraries to match the appropriate
37784 configurable run-time (e.g. if a library is not needed at all, provide
37785 a dummy empty library).
37786
37787 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37788 options (-L parameters and standard libraries). What we plan to do is
37789 to provide dummy libraries where the libraries are not required.
37790
37791 * gnatbind.adb: Minor comment improvement
37792
37793 2003-12-08 Javier Miranda <miranda@gnat.com>
37794
37795 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37796 aggregate in the parent. Otherwise constants with limited aggregates
37797 are not supported. Add new formal to pass the component type (Ctype).
37798 It is required to call the corresponding IP subprogram in case of
37799 default initialized components.
37800 (Gen_Assign): In case of default-initialized component, generate a
37801 call to the IP subprogram associated with the component.
37802 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37803 of aggregate with default initialized components.
37804 (Has_Default_Init_Comps): Improve implementation to recursively check
37805 all the present expressions.
37806
37807 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37808 to indicate that the initialization call corresponds to a
37809 default-initialized component of an aggregate.
37810 In case of default initialized aggregate with tasks this parameter is
37811 used to generate a null string (this is just a workaround that must be
37812 improved later). In case of discriminants, this parameter is used to
37813 generate a selected component node that gives access to the discriminant
37814 value.
37815
37816 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37817 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37818 allocated aggregates with default-initialized components.
37819
37820 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37821 the box notation is used in positional aggregates.
37822
37823 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37824
37825 * lib.ads: Fix typo in comment
37826
37827 2003-12-08 Vincent Celier <celier@gnat.com>
37828
37829 * prj.adb (Project_Empty): New component Unkept_Comments
37830 (Scan): Remove procedure; moved to Prj.Err.
37831
37832 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37833 (Scan): Remove procedure; moved to Prj.Err.
37834
37835 * prj-dect.adb: Manage comments for the different declarations.
37836
37837 * prj-part.adb (With_Record): New component Node
37838 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37839 Set the scanner to return ends of line and comments as tokens, if
37840 Store_Comments is True.
37841 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37842 comments are associated with these nodes. Store the node IDs in the
37843 With_Records.
37844 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37845 With_Records.
37846 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37847 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37848 current project. Call Tree.Restore afterwards. Set the various nodes
37849 for comment storage (Next_End, End_Of_Line, Previous_Line,
37850 Previous_End).
37851
37852 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37853 defaulted to False.
37854
37855 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37856 to False. When Truncated is True, truncate the string, never go to the
37857 next line.
37858 (Write_End_Of_Line_Comment): New procedure
37859 (Print): Process comments for nodes N_With_Clause,
37860 N_Package_Declaration, N_String_Type_Declaration,
37861 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37862 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37863 Process nodes N_Comment.
37864
37865 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37866 without comments and there are some comments, set the flag
37867 Unkept_Comments to True.
37868 (Scan): If there are comments, set the flag Unkept_Comments to True and
37869 clear the comments.
37870 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37871 (Next_End_Nodes: New table
37872 (Comment_Zones_Of): New function
37873 (Scan): New procedure; moved from Prj. Accumulate comments in the
37874 Comments table and set end of line comments, comments after, after end
37875 and before end.
37876 (Add_Comments): New procedure
37877 (Save, Restore, Seset_State): New procedures
37878 (There_Are_Unkept_Comments): New function
37879 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37880 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37881 procedures.
37882 (First_Comment_After, First_Comment_After_End): New functions
37883 (First_Comment_Before, First_Comment_Before_End): New functions
37884 (Next_Comment): New function
37885 (End_Of_Line_Comment, Follows_Empty_Line,
37886 Is_Followed_By_Empty_Line): New functions
37887 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37888 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37889 (Set_Next_Comment): New procedure
37890 (Default_Project_Node): Associate comment before if the node can store
37891 comments.
37892
37893 * scans.ads (Token_Type): New enumeration value Tok_Comment
37894 (Comment_Id): New global variable
37895
37896 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37897 defaulted to False.
37898 (Scan): Store position of start of comment. If comments are tokens, set
37899 Comment_Id and set Token to Tok_Comment when scanning a comment.
37900 (Set_Comment_As_Token): New procedure
37901
37902 * sinput-p.adb: Update Copyright notice
37903 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37904 that no longer exists.
37905
37906 2003-12-08 Javier Miranda <miranda@gnat.com>
37907
37908 * sem_aggr.adb: Add dependence on Exp_Tss package
37909 Correct typo in comment
37910 (Resolve_Aggregate): In case of array aggregates set the estimated
37911 type of the aggregate before calling resolve. This is needed to know
37912 the name of the corresponding IP in case of limited array aggregates.
37913 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37914 in case of default initialized array components.
37915
37916 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37917 types. Required to give support to limited aggregates in generic
37918 formals.
37919
37920 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37921
37922 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37923 inlined body functions like an instantiation.
37924 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37925 until bounds are analyzed, to diagnose premature use of type.
37926
37927 * sem_util.adb (Wrong_Type): Improve error message when the type of
37928 the expression is used prematurely.
37929
37930 2003-12-08 GNAT Script <nobody@gnat.com>
37931
37932 * Make-lang.in: Makefile automatically updated
37933
37934 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37935
37936 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37937 they are automatically generated by Make-lang.in and cause nothing but
37938 maintenance troubles.
37939
37940 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37941
37942 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37943 version of this unit).
37944
37945 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37946
37947 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37948 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37949 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37950 the body of System.Interrupt_Management common to several targets.
37951 Update copyright notice when appropriate.
37952
37953 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37954 constant.
37955
37956 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37957 to ensure that the kernel fills in the interrupted context structure
37958 before calling a signal handler, which is necessary to be able to
37959 unwind past it. Update the copyright notice.
37960
37961 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37962
37963 * a-elchha.ads: New file.
37964
37965 * a-elchha.adb: New default last chance handler. Contents taken from
37966 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37967
37968 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37969 is moved to a-elchha.adb to provide a target-independent default last
37970 chance handler.
37971
37972 * Makefile.rtl: Add a-elchha.o
37973
37974 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37975
37976 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37977
37978 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37979 declared in an instance, do not inline the call if the instance is not
37980 frozen yet, to prevent order of elaboration problems.
37981
37982 * sem_prag.adb: Add comments for previous fix.
37983
37984 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37985
37986 * g-table.adb: Use the right variable in Set_Item.
37987 Update copyright notice.
37988
37989 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37990
37991 * Makefile.in: Remove unused rules.
37992
37993 2003-12-05 Vincent Celier <celier@gnat.com>
37994
37995 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37996 -nostdlib. Not needed here after all.
37997
37998 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37999
38000 PR ada/11724
38001 * adaint.h, adaint.c, g-os_lib.ads:
38002 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
38003 on some platforms (including FreeBSD), it is a 64 bit value.
38004 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
38005
38006 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
38007
38008 * gnatvsn.ads (Library_Version): Now contain only the relevant
38009 version info.
38010 (Verbose_Library_Version): New constant.
38011
38012 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
38013 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
38014 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
38015
38016 * gnatlbr.adb: Clean up: replace Library_Version by
38017 Verbose_Library_Version.
38018
38019 * make.adb, lib-writ.adb, exp_attr.adb:
38020 Clean up: replace Library_Version by Verbose_Library_Version.
38021
38022 * 5lintman.adb: Removed.
38023
38024 * Makefile.in:
38025 Update and simplify computation of LIBRARY_VERSION.
38026 Fix computation of GSMATCH_VERSION.
38027 5lintman.adb is no longer used: replaced by 7sintman.adb.
38028
38029 2003-12-03 Robert Dewar <dewar@gnat.com>
38030
38031 * exp_ch5.adb:
38032 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
38033 name. Modified to consider small non-bit-packed arrays as troublesome
38034 and in need of component-by-component assigment expansion.
38035
38036 2003-12-03 Vincent Celier <celier@gnat.com>
38037
38038 * lang-specs.h: Process nostdlib as nostdinc
38039
38040 * back_end.adb: Update Copyright notice
38041 (Scan_Compiler_Arguments): Process -nostdlib directly.
38042
38043 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
38044
38045 * Makefile.in:
38046 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38047 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38048 included in HIE_NONE_TARGET_PAIRS.
38049
38050 2003-12-03 Ed Schonberg <schonberg@gnat.com>
38051
38052 * sem_attr.adb:
38053 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38054 is legal in an instance, because legality is cheched in the template.
38055
38056 * sem_prag.adb:
38057 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38058 appplied to an unchecked conversion of a formal parameter.
38059
38060 * sem_warn.adb:
38061 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38062 variables.
38063
38064 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
38065
38066 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38067 routines. The second one is new functionality to deal with backtracing
38068 through signal handlers.
38069 (unwind): Split into the two separate subroutines above.
38070 Update the documentation, and deal properly with sizeof (REG) different
38071 from sizeof (void*).
38072
38073 2003-12-01 Nicolas Setton <setton@act-europe.fr>
38074
38075 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38076 so that the debugger can reliably access the value of the parameter,
38077 and therefore is able to display the exception name when an exception
38078 breakpoint is reached.
38079
38080 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
38081
38082 * fmap.adb: Fix typo in warning message.
38083
38084 * g-socket.ads, g-socket.adb: Make Free a visible instance of
38085 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38086
38087 2003-12-01 Vincent Celier <celier@gnat.com>
38088
38089 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38090 ther is no Afile.
38091 (Build_Library): Get the switches only if Default_Switches is declared
38092 in package Binder.
38093
38094 2003-12-01 Ed Schonberg <schonberg@gnat.com>
38095
38096 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38097 actuals that are indexed components, reanalyze actual to ensure that
38098 packed array references are properly expanded.
38099
38100 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38101 attempted assignment to a discriminant.
38102
38103 2003-12-01 Robert Dewar <dewar@gnat.com>
38104
38105 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38106 reformatting.
38107
38108 * switch-c.adb: Minor reformatting of comments
38109
38110 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38111
38112 * Makefile.in: Clean ups.
38113
38114 2003-12-01 GNAT Script <nobody@gnat.com>
38115
38116 * Make-lang.in: Makefile automatically updated
38117
38118 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38119
38120 * 5wsystem.ads: Disable zero cost exception, not ready yet.
38121
38122 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
38123
38124 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38125 to force serialization.
38126
38127 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
38128
38129 * g-socket.ads, g-socket.adb:
38130 Clarify documentation of function Stream. Introduce a Free procedure
38131 to release the returned Stream once it becomes unused.
38132
38133 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38134
38135 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
38136
38137 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38138 since NT 4 cannot handle timeout values that are too large,
38139 e.g. DWORD'Last - 1.
38140
38141 2003-11-26 Ed Schonberg <schonberg@gnat.com>
38142
38143 * exp_ch4.adb:
38144 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38145 in procedure calls and whose expansion must be deferred.
38146
38147 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38148 is in exp_ch4.
38149
38150 * sem_ch3.adb:
38151 (Build_Derived_Array_Type): Create operator for unconstrained type
38152 if ancestor is unconstrained.
38153
38154 2003-11-26 Vincent Celier <celier@gnat.com>
38155
38156 * make.adb (Project_Object_Directory): New global variable
38157 (Change_To_Object_Directory): New procedure
38158 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38159 of Change_Dir directly. Do not change working directory to object
38160 directory of main project after each compilation.
38161 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38162 directly.
38163 Change to object directory of main project before binding step.
38164 (Initialize): Initialize Project_Object_Directory to No_Project
38165
38166 * mlib-prj.adb:
38167 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38168 binding a Stand-Alone Library.
38169
38170 * output.adb: Update Copyright notice
38171 (Write_Char): Output buffer when full
38172
38173 2003-11-26 Robert Dewar <dewar@gnat.com>
38174
38175 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38176
38177 * sem_ch13.ads:
38178 (Check_Size): Fix documentation to include bit-packed array case
38179
38180 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38181
38182 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38183
38184 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38185
38186 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
38187
38188 PR ada/13142
38189 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38190 __builtin_setjmp, since this is apparently needed by recent
38191 non Ada changes.
38192
38193 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38194
38195 * adadecode.c: Only include ctype.h if not IN_GCC.
38196 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38197
38198 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38199
38200 * Makefile.in:
38201 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38202 signals and interrupts.
38203
38204 * 5zintman.ads: New File.
38205
38206 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38207 add exception signals to the set of unmasked signals.
38208
38209 * 5ztaprop.adb:
38210 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38211 between signals and interrupts.
38212 Add to Unblocked_Signal_Mask the set of signals that are in
38213 Keep_Unmasked.
38214
38215 * 7sinmaop.adb:
38216 Adding a check to see whether the Interrupt_ID we want to unmask is in
38217 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38218 reason is that the index type of the Keep_Unmasked array is not always
38219 Interrupt_ID; it may be a subtype of Interrupt_ID.
38220
38221 2003-11-24 Gary Dismukes <dismukes@gnat.com>
38222
38223 * exp_util.adb:
38224 (Remove_Side_Effects): Condition constantness of object created for a
38225 an unchecked type conversion on the constantness of the expression
38226 to ensure the correct value for 'Constrained when passing components
38227 of view-converted class-wide objects.
38228
38229 2003-11-24 Robert Dewar <dewar@gnat.com>
38230
38231 * par-load.adb (Load): Improve handling of misspelled and missing units
38232 Removes several cases of compilation abandoned messages
38233
38234 * lib.adb: (Remove_Unit): New procedure
38235
38236 * lib.ads: (Remove_Unit): New procedure
38237
38238 * lib-load.adb: Minor reformatting
38239
38240 2003-11-24 Vincent Celier <celier@gnat.com>
38241
38242 * make.adb:
38243 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38244 (Marking_Label): Label to mark processed source files. Incremented for
38245 each executable.
38246 (Gnatmake): Increase Marking_Labet for each executable
38247 (Is_Marked): Compare against marking label
38248 (Mark): Mark with marking label
38249
38250 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38251
38252 * s-thread.ads:
38253 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38254 Add some comments.
38255
38256 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38257 (rts-cert): build a single relocatable object for the run-time lib.
38258 Fix perms.
38259
38260 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38261
38262 * Make-lang.in:
38263 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38264 crosstools build.
38265
38266 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38267
38268 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38269 can not use it as before (that is, as a variable) when dumping it into
38270 the tree file. Add a local variable to store the result of this
38271 function and to be used as the string to be written into the tree.
38272
38273 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38274 changes.
38275
38276 * sinput.adb (Source_First, Source_Last): In case of
38277 Internal_Source_File, replace returning attributes of
38278 Internal_Source_Ptr (which is wrong) with returning attributes of
38279 Internal_Source.
38280
38281 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38282
38283 * sem_ch3.adb:
38284 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38285 used for implicit concatenation operators.
38286 Code cleanup.
38287
38288 * sem_elab.adb:
38289 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38290 task bodies that are in the scope of a Suppress pragma.
38291 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38292
38293 * sinfo.ads, sinfo.adb:
38294 New flag No_Elaboration_Check on function/procedure calls, to properly
38295 suppress checks on calls in task bodies that are within a local suppress
38296 pragma.
38297
38298 * exp_ch4.adb:
38299 (Expand_Concatenate_Other): Use the proper integer type for the
38300 expression for the upper bound, to avoid universal_integer computations
38301 when possible.
38302
38303 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38304
38305 * .cvsignore: Delete.
38306
38307 2003-11-21 Andreas Schwab <schwab@suse.de>
38308
38309 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38310
38311 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38312
38313 * 5wsystem.ads: Enable zero cost exception.
38314
38315 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38316
38317 * 5ztiitho.adb: Remove an unreferenced variable.
38318
38319 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38320
38321 * adaint.c: For FreeBSD, use mkstemp.
38322
38323 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38324
38325 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38326
38327 2003-11-21 Robert Dewar <dewar@gnat.com>
38328
38329 * bld.adb: Remove useless USE of gnatvsn
38330
38331 * gnatchop.adb: Minor reformatting
38332 Clean up version handling to be more consistent
38333
38334 * gnatxref.adb: Minor reformatting
38335
38336 * gprcmd.adb: Minor reformatting
38337 Fix output of copyright to be more consistent with other tools
38338
38339 2003-11-21 Vincent Celier <celier@gnat.com>
38340
38341 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38342
38343 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38344
38345 * atree.adb (Initialize): Add initializations for global variables
38346 used in New_Copy_Tree.
38347
38348 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38349 Internal_Source_File as the actual).
38350 Put the set of statements creating Any_Character before the set of
38351 statements creating Any_Array to have Any_Character fully initialized
38352 when it is used in creating Any_Array.
38353
38354 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38355 not call Scan in case if the actual is Internal_Source_File
38356 Add 2003 to copyright note.
38357
38358 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38359 processing Internal_Source_File.
38360
38361 * types.ads: Add the constant Internal_Source_File representing the
38362 source buffer for artificial source-code-like strings created within
38363 the compiler (the definition of Source_File_Index is changed).
38364
38365 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38366
38367 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38368 56system.ads: New file, FreeBSD version.
38369
38370 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38371
38372 * Make-lang.in (ada.extraclean): Delete.
38373
38374 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38375
38376 * gnatmem.adb: Clean up verbose output.
38377
38378 * gprcmd.adb: Change copyright to FSF.
38379
38380 2003-11-19 Vincent Celier <celier@gnat.com>
38381
38382 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38383 and Version (ignored).
38384
38385 * symbols.ads: (Policy): New type
38386 (Initialize): New parameter Reference, Symbol_Policy and
38387 Library_Version.
38388 Remove parameter Force.
38389 Minor reformatting.
38390
38391 * snames.ads, snames.adbadb: New standard names
38392 Library_Reference_Symbol_File and Library_Symbol_Policy
38393
38394 * mlib-prj.adb:
38395 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38396 project.
38397
38398 * mlib-tgt.adb:
38399 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38400
38401 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38402
38403 * prj.adb: (Project_Empty): New component Symbol_Data
38404
38405 * prj.ads: (Policy, Symbol_Record): New types
38406 (Project_Data): New component Symbol_Data
38407
38408 * prj-attr.adb:
38409 New attributes Library_Symbol_File, Library_Symbol_Policy and
38410 Library_Reference_Symbol_File.
38411
38412 * prj-nmsc.adb:
38413 (Ada_Check): When project is a Stand-Alone library project, process
38414 attribute Library_Symbol_File, Library_Symbol_Policy and
38415 Library_Reference_Symbol_File.
38416
38417 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38418 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38419 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38420 Symbol_Data (ignored).
38421
38422 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38423 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38424 functions Option_File_Name and Version_String. Set new options of
38425 gnatsym related to symbol file, symbol policy and reference symbol
38426 file.
38427
38428 * 5vsymbol.adb:
38429 Extensive modifications to take into account the reference symbol file,
38430 the symbol policy, the library version and to put in the symbol file the
38431 minor and major IDs.
38432
38433 * bld.adb (Process_Declarative_Items): Put second argument of
38434 gprcmd to_absolute between single quotes, to avoid problems with
38435 Windows.
38436
38437 * bld-io.adb: Update Copyright notice.
38438 (Flush): Remove last character of a line, if it is a back slash, to
38439 avoid make problems.
38440
38441 * gnatsym.adb:
38442 Implement new scheme with reference symbol file and symbol policy.
38443
38444 * g-os_lib.ads: (Is_Directory): Clarify comment
38445
38446 2003-11-19 Robert Dewar <dewar@gnat.com>
38447
38448 * atree.adb: Move New_Copy_Tree global variables to head of package
38449
38450 * errout.adb: Minor reformatting
38451
38452 2003-11-19 Javier Miranda <miranda@gnat.com>
38453
38454 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38455 Add reference to Ada0Y (AI-50217)
38456
38457 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38458 sem_util.adb: Add reference to AI-50217
38459
38460 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38461
38462 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38463
38464 * sem_aggr.adb: Complete documentation of AI-287 changes
38465
38466 * par-ch4.adb: Document previous changes.
38467
38468 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38469 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38470 Ada0Y (AI-50217)
38471
38472 * exp_aggr.adb: Add references to AI-287 in previous changes
38473
38474 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38475
38476 * exp_ch6.adb:
38477 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38478 in the rewriting is the result of an inlined call.
38479
38480 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38481 parameter is a type conversion, use original node to construct the
38482 post-call assignment, because expression may have been rewritten, e.g.
38483 if it is a packed array.
38484
38485 * sem_attr.adb:
38486 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38487 body, just as it is in an instance.
38488 Categorization routines
38489
38490 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38491 Instantiate_Object): Set proper sloc reference for message on missing
38492 actual.
38493
38494 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38495
38496 * Makefile.in: Add FreeBSD libgnat pairs.
38497
38498 * usage.adb: Fix typo in usage message.
38499
38500 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38501
38502 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38503 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38504 pragma Thread_Body.
38505 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38506
38507 * s-thread.adb: This file is now a dummy implementation of
38508 System.Thread.
38509
38510 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38511
38512 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38513
38514 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38515
38516 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38517 instanciation references in the parent type description.
38518
38519 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38520
38521 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38522
38523 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38524 TYPE_PRECISION directly from esize.
38525
38526 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38527
38528 * cstreams.c:
38529 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38530
38531 * init.c: Initialization routines for FreeBSD
38532
38533 * link.c: Link info for FreeBSD
38534
38535 * sysdep.c: Add the case of FreeBSD
38536
38537 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38538
38539 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38540 already called in System.Threads.
38541
38542 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38543 environment task, as it has been moved to System.Threads.Initialization.
38544
38545 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38546
38547 * adaint.c (__gnatlib_install_locks): Only reference
38548 __gnat_install_locks on VMS, since other platforms can avoid using
38549 --enable-threads=gnat
38550
38551 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38552
38553 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38554
38555 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38556 TYPE_PACKED_ARRAY_TYPE_P.
38557 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38558
38559 Part of PR ada/12806
38560 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38561 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38562
38563 2003-11-17 Vincent Celier <celier@gnat.com>
38564
38565 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38566 to False.
38567 Do not set exit status to Failure when Warning is True.
38568 (Gnatchop): Make errors "no compilation units found" and
38569 "no source files written" warnings only.
38570
38571 * make.adb (Gnatmake): When using a project file, set
38572 Look_In_Primary_Dir to False.
38573 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38574 and Local_Configuration_Pragmas in the project where they are declared
38575 not an extending project which might have inherited them.
38576
38577 * osint.adb (Locate_File): If Name is already an absolute path, do not
38578 look for a directory.
38579
38580 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38581 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38582
38583 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38584 in objects of type Variable_Value.
38585
38586 * prj.ads: (Variable_Value): New component Project
38587
38588 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38589 is in a project extended by Project.
38590
38591 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38592 Project of Variable_Values to this new parameter value.
38593 (Expression): Set component Project of Variable_Values.
38594 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38595 Set the component Project in array elements.
38596
38597 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38598
38599 * errout.adb: (Initialize): Add initialization for error nodes.
38600
38601 * sem_ch12.adb (Initialize): Add missing initializations for
38602 Exchanged_Views and Hidden_Entities.
38603
38604 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38605
38606 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38607 already instantiated tree for use in subsequent inlining.
38608 (Analyze_Associations, Instantiate_Formal_Subprogram,
38609 Instantiate_Object): improve error message for mismatch in
38610 instantiations.
38611
38612 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38613 instantiations of subprograms declared in instances.
38614
38615 2003-11-17 Javier Miranda <miranda@gnat.com>
38616
38617 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38618 executed only under the Extensions_Allowed flag.
38619
38620 2003-11-17 Robert Dewar <dewar@gnat.com>
38621
38622 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38623 zeroes suppressed.
38624 (Address_Image): Fix bug of returning 0x instead of 0x0
38625 Minor reformatting (function specs).
38626
38627 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38628 (missed case of 33-63)
38629
38630 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38631
38632 * s-thread.adb: Add comments for pragma Restriction
38633
38634 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38635 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38636
38637 2003-11-17 Ed Falis <falis@gnat.com>
38638
38639 * s-thread.adb: Added No_Tasking restriction for this implementation.
38640
38641 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38642
38643 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38644 instanciation references in the parent type description.
38645
38646 2003-11-17 GNAT Script <nobody@gnat.com>
38647
38648 * Make-lang.in: Makefile automatically updated
38649
38650 2003-11-16 Jason Merrill <jason@redhat.com>
38651
38652 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38653 and TAGS files that include them for each front end.
38654
38655 2003-11-14 Andreas Jaeger <aj@suse.de>
38656
38657 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38658 is the canonical version.
38659 * misc.c (gnat_handle_option): Likewise.
38660
38661 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38662
38663 * 5nsystem.ads: New file for x86_64-linux-gnu.
38664
38665 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38666
38667 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38668
38669 * comperr.adb: Fix logic in previous change.
38670
38671 2003-11-13 Vincent Celier <celier@gnat.com>
38672
38673 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38674 Osint.Include_Dir_Default_Prefix instead of
38675 Sdefault.Include_Dir_Default_Name.
38676
38677 * gnatlbr.adb: Update Copyright notice
38678 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38679 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38680 instead of Sdefault.Object_Dir_Default_Name
38681
38682 * gnatlink.adb:
38683 (Process_Binder_File): Never suppress the option following -Xlinker
38684
38685 * mdll-utl.adb:
38686 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38687 Sdefault.Object_Dir_Default_Name.
38688
38689 * osint.ads, osint.adb:
38690 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38691 Minor reformatting.
38692
38693 * vms_conv.ads: Minor reformating
38694 Remove GNAT STANDARD and GNAT PSTA
38695
38696 * vms_conv.adb:
38697 Allow GNAT MAKE to have several files on the command line.
38698 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38699 Sdefault.Object_Dir_Default_Name.
38700 Minor Reformating
38701 Remove data for GNAT STANDARD
38702
38703 * vms_data.ads:
38704 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38705 Remove data for GNAT STANDARD
38706 Remove options and documentation for -gnatwb/-gnatwB: these warning
38707 options no longer exist.
38708
38709 2003-11-13 Ed Falis <falis@gnat.com>
38710
38711 * 5zthrini.adb: (Init_RTS): Made visible
38712
38713 * 5zthrini.adb:
38714 (Register): Removed unnecessary call to taskVarGet that checked whether
38715 an ATSD was already set as a task var for the argument thread.
38716
38717 * s-thread.adb:
38718 Updated comment to reflect that this is a VxWorks version
38719 Added context clause for System.Threads.Initialization
38720 Added call to System.Threads.Initialization.Init_RTS
38721
38722 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38723
38724 * 5zthrini.adb:
38725 (Init_RTS): New procedure, for the initialization of the run-time lib.
38726
38727 * s-thread.adb:
38728 Remove dependancy on System.Init, so that this file can be used in the
38729 AE653 sequential run-time lib.
38730
38731 2003-11-13 Robert Dewar <dewar@gnat.com>
38732
38733 * bindgen.adb: Minor reformatting
38734
38735 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38736
38737 * checks.adb:
38738 (Apply_Discriminant_Check): Do no apply check if target type is derived
38739 from source type with no applicable constraint.
38740
38741 * lib-writ.adb:
38742 (Ensure_System_Dependency): Do not apply the style checks that may have
38743 been specified for the main unit.
38744
38745 * sem_ch8.adb:
38746 (Find_Selected_Component): Further improvement in error message, with
38747 RM reference.
38748
38749 * sem_res.adb:
38750 (Resolve): Handle properly the case of an illegal overloaded protected
38751 procedure.
38752
38753 2003-11-13 Javier Miranda <miranda@gnat.com>
38754
38755 * exp_aggr.adb:
38756 (Has_Default_Init_Comps): New function to check the presence of
38757 default initialization in an aggregate.
38758 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38759 extension aggregate of a limited record. In addition, a new formal
38760 was added to do not initialize the record controller (if any) during
38761 this recursive expansion of ancestors.
38762 (Init_Controller): Add support for limited record components.
38763 (Expand_Record_Aggregate): In case of default initialized components
38764 convert the aggregate into a set of assignments.
38765
38766 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38767 describing the new syntax.
38768 Nothing else needed to be done because this subprogram delegates part of
38769 its work to P_Precord_Or_Array_Component_Association.
38770 (P_Record_Or_Array_Component_Association): Give support to the new
38771 syntax for default initialization of components.
38772
38773 * sem_aggr.adb:
38774 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38775 limited aggregates.
38776 (Resolve_Record_Aggregate): Give support to default initialized
38777 components.
38778 (Get_Value): In case of default initialized components, duplicate
38779 the corresponding default expression (from the record type
38780 declaration). In case of default initialization in the *others*
38781 choice, do not check that all components have the same type.
38782 (Resolve_Extension_Aggregate): Give support to limited extension
38783 aggregates.
38784
38785 * sem_ch3.adb:
38786 (Check_Initialization): Relax the strictness of the front-end in case
38787 of aggregate and extension aggregates. This test is now done in
38788 Get_Value in a per-component manner.
38789
38790 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38791 expression corresponds to a limited aggregate. This test is now done
38792 in Get_Value.
38793
38794 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38795 Box_Present flag.
38796
38797 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38798 present in an N_Component_Association node
38799
38800 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38801
38802 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38803 type-conformant entry only if they are homographs.
38804
38805 2003-11-13 GNAT Script <nobody@gnat.com>
38806
38807 * Make-lang.in: Makefile automatically updated
38808
38809 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38810
38811 * adadecode.c: Use <> form of include for ctype.h.
38812 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38813
38814 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38815
38816 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38817 Works around PR middle-end/6552.
38818
38819 2003-11-10 Ed Falis <falis@gnat.com>
38820
38821 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38822
38823 * 5zinit.adb: (Install_Handler): Moved back to spec
38824 (Install_Signal_Handlers): Deleted
38825
38826 * 5zthrini.adb: Added context clause for System.Storage_Elements
38827 (Register): Only handles creation of taskVar; initialization moved to
38828 Thread_Body_Enter.
38829 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38830 Added declaration of environment task secondary stack and
38831 initialization.
38832
38833 * s-thread.adb: Implement bodies for thread body processing
38834
38835 * s-thread.ads:
38836 Added comment identifying supported targets for pragma Thread_Body.
38837
38838 2003-11-10 Pascal Obry <obry@gnat.com>
38839
38840 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38841 GNAT_MAX_PATH_LEN.
38842
38843 * s-fileio.adb:
38844 (Open): Properly check for string length before copying into the buffer.
38845 Raises Name_Error if buffer is too small. Note that this was a potential
38846 buffer overflow.
38847
38848 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38849
38850 * bindgen.adb, comperr.adb: Code clean ups.
38851 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38852
38853 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38854
38855 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38856
38857 2003-11-10 Vincent Celier <celier@gnat.com>
38858
38859 * gprcmd.adb:
38860 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38861 installation.
38862
38863 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38864
38865 * prj.adb: (Project_Empty): Add new boolean component Virtual
38866
38867 * prj.ads: (Virtual_Prefix): New constant string
38868 (Project_Data): New boolean component Virtual
38869
38870 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38871 a library project is extended by a virtual extending project.
38872
38873 * prj-part.adb:
38874 Modifications throughout to implement extending-all project, including:
38875 (Virtual_Hash, Processed_Hash): New hash tables
38876 (Create_Virtual_Extending_Project): New procedure
38877 (Look_For_Virtual_Projects_For): New procedure
38878
38879 * prj-proc.adb:
38880 (Process): After checking the projects, if main project is an
38881 extending-all project, set the object directory of all virtual extending
38882 project to the object directory of the main project.
38883 Adjust error message when a virtual extending project has the same
38884 object directory as an project being extended.
38885 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38886 to True in the project data.
38887
38888 * prj-tree.adb:
38889 (Default_Project_Node): Add new boolean component Extending_All
38890 (Is_Extending_All): New function
38891 (Set_Is_Extending_All): New procedure
38892
38893 * prj-tree.ads: (Is_Extending_All): New function
38894 (Set_Is_Extending_All): New procedure
38895 (Project_Node_Record): New boolean component Extending_All
38896
38897 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38898
38899 * vms_data.ads:
38900 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38901
38902 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38903 "gprcmd prefix" to define it.
38904
38905 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38906
38907 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38908
38909 * lib-load.adb:
38910 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38911 created dummy package to Standard_Standard, not to itself, to
38912 defend other parts of the front-end against encoutering a cycle in
38913 the scope chain.
38914
38915 * sem_ch10.adb:
38916 (Analyze_With_Clause): When setting the entities for the successive
38917 N_Expanded_Names that constitute the name of a child unit, do not
38918 attempt to go further than Standard_Standard in the chain of scopes.
38919 This case arises from the placeholder units created by
38920 Create_Dummy_Package_Unit in the case of a with_clause for a
38921 nonexistent child unit.
38922
38923 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38924
38925 * exp_ch6.adb:
38926 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38927 declarations are given the proper scope.
38928
38929 * sem_ch13.adb:
38930 (Check_Expr_Constants): Reject an expression that contains a constant
38931 created during expansion, and that appears after the object to which
38932 the address clause applies.
38933
38934 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38935 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38936 that uses 'Range of a function call with controlled components, so
38937 that the function result can be finalized before starting the loop.
38938
38939 * sem_ch8.adb:
38940 (Find_Selected_Component): Improve error message when prefix is
38941 an implicit dereference of an incomplete type.
38942
38943 2003-11-10 Robert Dewar <dewar@gnat.com>
38944
38945 * opt.ads: New Print_Standard flag for -gnatS switch
38946
38947 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38948
38949 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38950 switch set
38951
38952 * debug.adb: Update doc for -gnatds to discuss relationship with new
38953 -gnatS flag
38954
38955 * sinfo.adb: Add new field Entity_Or_Associated_Node
38956
38957 * sinfo.ads: Add new field Entity_Or_Associated_Node
38958 Update documentation for Associated_Node and Entity fields to clarify
38959 relationship and usage.
38960
38961 * sprint.adb:
38962 (Write_Id): Properly process Associated_Node field in generic template
38963
38964 * switch-c.adb:
38965 Recognize new -gnatS switch for printing package Standard
38966 This replaces gnatpsta
38967
38968 * usage.adb:
38969 Add line for new -gnatS switch for printing package Standard
38970 This replaces gnatpsta
38971
38972 2003-11-10 Andreas Jaeger <aj@suse.de>
38973
38974 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38975 integer.
38976
38977 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38978
38979 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38980 by gnat1.
38981
38982 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38983
38984 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38985 no longer needed.
38986
38987 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38988
38989 * sysdep.c: Add handling of cygwin.
38990
38991 2003-11-10 GNAT Script <nobody@gnat.com>
38992
38993 * Make-lang.in: Makefile automatically updated
38994
38995 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38996
38997 PR 12950
38998 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38999 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
39000 Replace GNAT_ROOT by GCC_ROOT.
39001
39002 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
39003
39004 2003-11-06 Zack Weinberg <zack@codesourcery.com>
39005
39006 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
39007 and update for changed meaning of GET_MODE_BITSIZE.
39008
39009 2003-11-04 Doug Rupp <rupp@gnat.com>
39010
39011 * sysdep.c: Problem discovered during IA64 VMS port.
39012 [VMS] #include <unixio.h> to get proper prototypes.
39013
39014 * adaint.c:
39015 Issues discovered/problems fixed during IA64 VMS port.
39016 [VMS] #define _POSIX_EXIT for proper semantics.
39017 [VMS] #include <unixio.h> for proper prototypes.
39018 [VMS] (fork): #define IA64 version.
39019 (__gnat_os_exit): Remove unnecessary VMS specific code.
39020
39021 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39022
39023 Part of PR ada/12806
39024 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
39025 tree, not integer.
39026
39027 * decl.c:
39028 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
39029 not integer.
39030
39031 * targtyps.c, decl.c, misc.c,
39032 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
39033 routines to work around change in FP sizing semantics in GCC.
39034
39035 * utils.c:
39036 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
39037
39038 * gigi.h: (enumerate_modes): New function.
39039
39040 * Make-lang.in: (ada/misc.o): Add real.h.
39041
39042 * misc.c: (enumerate_modes): New function.
39043
39044 2003-11-04 Robert Dewar <dewar@gnat.com>
39045
39046 * 3vtrasym.adb: Minor reformatting
39047 Use terminology encoded/decoded name, rather than C++ specific notion
39048 of mangling (this is the terminology used throughout GNAT).
39049
39050 * einfo.h: Regenerated
39051
39052 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39053
39054 * exp_ch6.adb:
39055 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39056
39057 * par-prag.adb: Add dummy entry for Thread_Body pragma
39058
39059 * rtsfind.ads:
39060 Add entries for System.Threads entities for thread body processing
39061
39062 * sem_attr.adb:
39063 (Analyze_Pragma, Access attributes): Check these are not applied to a
39064 thread body, since this is not permitted
39065
39066 * sem_prag.adb: Add processing for Thread_Body pragma.
39067 Minor comment fix.
39068
39069 * sem_res.adb:
39070 (Resolve_Call): Check for incorrect attempt to call a thread body
39071 procedure with a direct call.
39072
39073 * snames.ads, snames.adb: Add entry for Thread_Body pragma
39074 Add names associated with thread body expansion
39075
39076 * snames.h: Add entry for Thread_Body pragma
39077
39078 * s-thread.adb: Add entries for thread body processing
39079 These are dummy bodies so far
39080
39081 * s-thread.ads: Add documentation on thread body handling.
39082 Add entries for thread body processing.
39083
39084 2003-11-04 Javier Miranda <miranda@gnat.com>
39085
39086 * sem_ch10.adb:
39087 (Build_Limited_Views): Return after posting an error in case of limited
39088 with_clause on subprograms, generics, instances or generic renamings
39089 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39090 on subprograms, generics, instances or generic renamings
39091
39092 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
39093
39094 * raise.c (setup_to_install): Correct mistake in last revision; two
39095 arguments out of order.
39096
39097 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39098 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39099 notice, missed in previous change.
39100 Remove trailing blanks and other style errors introduced in previous
39101 change.
39102
39103 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
39104
39105 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39106 rid of the wrapper for a LJM type, ensuring we don't do that if the
39107 field is addressable. This avoids potential low level type view
39108 mismatches later on, for instance in a by-reference argument passing
39109 process.
39110
39111 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39112
39113 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39114 aligned at byte boundary.
39115
39116 2003-11-04 Joel Brobecker <brobecker@gnat.com>
39117
39118 * decl.c (components_to_record): Do not delete the empty variants from
39119 the end of the union type.
39120
39121 2003-11-04 Ed Schonberg <schonberg@gnat.com>
39122
39123 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39124 operation for a derived type, an explicit declaration may use a local
39125 subtype of Boolean.
39126
39127 2003-11-04 Vincent Celier <celier@gnat.com>
39128
39129 * make.adb (Gnatmake): Allow main sources on the command line with a
39130 library project when it is only for compilation (no binding or
39131 linking).
39132
39133 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39134
39135 * Makefile.in: Remove many duplicate variables.
39136
39137 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
39138
39139 * Make-lang.in (dvi): Move targets to $(docobjdir).
39140 (gnat_ug_vms.dvi): Simplify rule and adjust target.
39141 (gnat_ug_wnt.dvi): Likewise.
39142 (gnat_ug_unx.dvi): Likewise.
39143 (gnat_ug_vxw.dvi): Likewise.
39144 (gnat_rm.dvi): Likewise.
39145 (gnat-style.dvi): Likewise.
39146
39147 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39148
39149 * gigi.h: Missed commit from update for C90.
39150
39151 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39152
39153 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39154
39155 2003-10-31 Andreas Schwab <schwab@suse.de>
39156
39157 * raise.c (get_action_description_for): Fix typo in last change.
39158
39159 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39160
39161 PR ada/12761
39162 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39163 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39164
39165 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39166
39167 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39168 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39169 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39170 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39171 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39172
39173 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39174
39175 * 3vtrasym.adb:
39176 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39177 numbers when symbol name is too long.
39178
39179 2003-10-30 Ed Falis <falis@gnat.com>
39180
39181 * g-signal.ads, g-signal.adb: New files
39182
39183 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39184
39185 * Makefile.rtl: Introduce GNAT.Signals
39186
39187 2003-10-30 Robert Dewar <dewar@gnat.com>
39188
39189 * freeze.adb: Minor reformatting
39190
39191 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39192
39193 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39194 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39195 New handling of Id_Check parameter to improve recognition of keywords
39196 used as identifiers.
39197 Update copyright notice to include 2003
39198
39199 2003-10-29 Robert Dewar <dewar@gnat.com>
39200
39201 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39202 sem_ch10.adb: Minor reformatting
39203
39204 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39205 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39206
39207 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39208
39209 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39210 Support for TBK$SYMBOLIZE-based symbolic traceback.
39211
39212 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39213
39214 * exp_disp.adb:
39215 Revert previous change, that did not work well when pragma No_Run_Time
39216 was used in conjunction with a run-time other than ZFP.
39217
39218 2003-10-29 Vincent Celier <celier@gnat.com>
39219
39220 * make.adb:
39221 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39222 bind and link steps only is switch -z is not used.
39223
39224 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39225
39226 * Makefile.generic: Remove duplicated setting of CC.
39227
39228 * Makefile.prolog: Set CC to gcc by default, to override make's
39229 default (cc).
39230
39231 * einfo.h: Regenerated.
39232
39233 2003-10-29 Ed Schonberg <schonberg@gnat.com>
39234
39235 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39236 current body, after compiling subunit.
39237
39238 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39239 when in deleted code, because gigi needs properly ordered freeze
39240 actions to annotate types.
39241
39242 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39243 prevent the premature freezing of record type that contains
39244 subcomponents with a private type that does not yet have a completion.
39245
39246 2003-10-29 Javier Miranda <miranda@gnat.com>
39247
39248 * sem_ch12.adb:
39249 (Analyze_Package_Instantiation): Check that instances can not be used in
39250 limited with_clauses.
39251
39252 * sem_ch8.adb:
39253 (Analyze_Package_Renaming): Check that limited withed packages cannot
39254 be renamed. Improve text on error messages related to limited
39255 with_clauses.
39256
39257 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39258
39259 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39260 Update copyright notice.
39261
39262 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39263 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39264 checks required for limited context_clauses and installs the limited
39265 view.
39266 (Install_Limited_Withed_Unit): Complete its documentation.
39267 (Analyze_Context): Check that limited with_clauses are only allowed in
39268 package specs.
39269 (Install_Context): Call Install_Limited_Context_Clauses after the
39270 parents have been installed.
39271 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39272 package as 'From_With_Type'; this mark indicates that the limited view
39273 is installed. Used to check bad usages of limited with_clauses.
39274 (Build_Limited_Views): Do not add shadow entities to the scope's list
39275 of entities. Do not add real entities to the Non_Limited_Views chain.
39276 Improve error notification.
39277 (Remove_Context_Clauses): Remove context clauses in two phases:
39278 limited views first and regular views later (to maintain the
39279 stack model).
39280 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39281 its visible entities.
39282
39283 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39284
39285 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39286 with any type that Is_Fixed_Point_Type.
39287
39288 * sinfo.ads: Fix documentation for Associated_Node attribute.
39289
39290 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39291
39292 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39293 both '-gnatc' and '-gnatt' are specified.
39294
39295 * atree.adb (Initialize): Add initialization for Node_Count (set to
39296 zero).
39297
39298 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39299
39300 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39301 do not consider as Pure.
39302
39303 Part of implementation of function-at-a-time:
39304
39305 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39306 (tree_transform): Add new argument to build_component_ref.
39307 (tree_transform, case N_Assignment_Statement): Make and return an
39308 EXPR_STMT.
39309 (tree_transform): If result IS_STMT, set flags and return it.
39310 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39311
39312 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39313 arg, NO_FOLD_P.
39314 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39315 (build_allocator): Likewise.
39316
39317 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39318 Add new arg to build_component_ref.
39319 (maybe_unconstrained_array, unchecked_convert): Likewise.
39320
39321 * ada-tree.def (EXPR_STMT): New code.
39322
39323 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39324
39325 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39326 build_component_ref calls.
39327
39328 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39329
39330 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39331 (build_component_ref): Add new argument, NO_FOLD_P.
39332
39333 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39334
39335 * Makefile.generic: Add missing substitution on object_deps handling.
39336
39337 PR ada/5909
39338 * Make-lang.in (check-ada): Enable ACATS test suite.
39339
39340 2003-10-27 Robert Dewar <dewar@gnat.com>
39341
39342 * exp_ch3.adb:
39343 (Freeze_Array_Type): We do not need an initialization routine for types
39344 derived from String or Wide_String. They should be treated the same
39345 as String and Wide_String themselves. This caused problems with the
39346 use of Initialize_Scalars.
39347
39348 * exp_ch5.adb:
39349 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39350 composites. This allows use of component clauses that are not byte
39351 aligned.
39352
39353 * sem_prag.adb:
39354 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39355 is an attempt to pack an array of atomic objects.
39356
39357 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39358
39359 2003-10-27 Pascal Obry <obry@gnat.com>
39360
39361 * g-dirope.adb:
39362 (Basename): Check for drive letters in a pathname only on DOS based OS.
39363
39364 2003-10-27 Vincent Celier <celier@gnat.com>
39365
39366 * make.adb:
39367 (Gnatmake): When unable to change dir to the object dir, display the
39368 content of the parent dir of the obj dir, to try to understand why this
39369 happens.
39370
39371 2003-10-27 GNAT Script <nobody@gnat.com>
39372
39373 * Make-lang.in: Makefile automatically updated
39374
39375 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39376
39377 * sem_ch12.adb:
39378 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39379 should not be done in Save/Restore_Scope_Stack, because it is performed
39380 locally.
39381
39382 * sem_ch8.adb:
39383 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39384 whether use clauses should be removed/restored.
39385
39386 * sem_ch8.ads:
39387 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39388 whether use clauses should be removed/restored.
39389
39390 2003-10-26 Andreas Jaeger <aj@suse.de>
39391
39392 * Makefile.in: Remove duplicated lines.
39393
39394 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39395
39396 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39397 minimize the differences with ACT tree.
39398
39399 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39400 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39401 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39402 ACT and FSF trees.
39403
39404 2003-10-24 Pascal Obry <obry@gnat.com>
39405
39406 PR ada/12014
39407 * adadecode.c (ostrcpy): New function.
39408 (__gnat_decode): Use ostrcpy of strcpy.
39409 (has_prefix): Set first parameter a const.
39410 (has_suffix): Set first parameter a const.
39411 Update copyright notice. Fix source name in header.
39412 Removes a trailing space.
39413
39414 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39415
39416 * exp_disp.adb:
39417 Remove the test against being in No_Run_Time_Mode before generating a
39418 call to Register_Tag. It is redundant with the test against the
39419 availability of the function Register_Tag.
39420
39421 2003-10-24 Vincent Celier <celier@gnat.com>
39422
39423 * g-catiio.adb: (Month_Name): Correct spelling of February
39424
39425 * make.adb: (Mains): New package
39426 (Initialize): Call Mains.Delete
39427 (Gnatmake): Check that each main on the command line is a source of a
39428 project file and, if there are several mains, each of them is a source
39429 of the same project file.
39430 (Gnatmake): When a foreign language is specified in attribute Languages,
39431 no main is specified on the command line and attribute Mains is not
39432 empty, only build the Ada main. If there is no Ada main, just compile
39433 the Ada sources and their closure.
39434 (Gnatmake): If a main is specified on the command line with directory
39435 information, check that the source exists and, if it does, that the path
39436 is the actual path of a source of a project.
39437
39438 * prj-env.adb:
39439 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39440 Full_Path is True, return the full path instead of the simple file name.
39441 (Project_Of): New function
39442
39443 * prj-env.ads:
39444 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39445 defaulted to False.
39446 (Project_Of): New function
39447
39448 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39449
39450 * Makefile.generic:
39451 Ensure objects of main project are always checked and rebuilt if needed.
39452 Set CC to gcc by default.
39453 Prepare new handling of link by creating a global archive (not activated
39454 yet).
39455
39456 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39457 stringt.h: Update copyright notice. Remove trailing blanks.
39458 Fix source name in header.
39459
39460 2003-10-24 Robert Dewar <dewar@gnat.com>
39461
39462 * sem_ch12.adb: Minor reformatting
39463
39464 * sem_ch3.adb:
39465 Minor reformatting (including new function return style throughout)
39466
39467 * sem_ch3.ads:
39468 Minor reformatting (including new function return style throughout)
39469
39470 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39471
39472 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39473 stringt.h: Update copyright notice. Remove trailing blanks.
39474 Fix source name in header.
39475
39476 2003-10-24 GNAT Script <nobody@gnat.com>
39477
39478 * Make-lang.in: Makefile automatically updated
39479
39480 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39481
39482 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39483 stringt.h: Convert to ISO C90 declarations and definitions.
39484
39485 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39486
39487 PR ada/11978
39488 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39489 External_Tag attribute definition clauses.
39490
39491 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39492
39493 PR ada/7613
39494 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39495 child unit, generate a fully qualified name to avoid spurious errors
39496 when the context contains renamings of different child units with
39497 the same simple name.
39498
39499 * exp_dbug.ads: Add documentation on name qualification for renamings
39500 of child units.
39501
39502 2003-10-23 Robert Dewar <dewar@gnat.com>
39503
39504 * g-regpat.ads, g-regpat.adb: Minor reformatting
39505
39506 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39507
39508 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39509
39510 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39511
39512 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39513 Machine call.
39514
39515 * urealp.h: (Machine): Update to proper definition.
39516
39517 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39518
39519 * init.c, adaint.c: Minor reformatting.
39520
39521 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39522
39523 * adaint.c (w32_epoch_offset): Define static const at file level.
39524 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39525 rather than t_create, t_access in call to GetFileTime. Use union
39526 to convert between FILETIME and unsigned long long.
39527 (__gnat_file_time_name): Test for invalid file handle.
39528 (__gnat_set_filetime_name): Support win32 targets using
39529 w32api SetFileTime.
39530
39531 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39532
39533 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39534
39535 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39536
39537 * decl.c (creat_concat_name): Const-ify prefix.
39538
39539 * adaint.c: Include ctype.h if __MINGW32__.
39540 (__gnat_readlink): Mark arguments as possibly unused.
39541 (__gnat_symlink): Likewise.
39542 (__gnat_is_symbolic_link): Likewise.
39543 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39544 declaration
39545 (__gnat_file_time_name): Don't declare struct stat statbuf when
39546 not needed.
39547 (__gnat_is_absolute_path): Add parenthesis around condition of
39548 'if' statement to avoid warning.
39549 (__gnat_plist_init): Specify void as parameter.
39550 (plist_enter): Likewise.
39551 (plist_leave): Likewise.
39552 (remove_handle): Make static. Initialize prev.
39553
39554 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39555
39556 PR ada/10110
39557 * Makefile.in: Disable build of gnatpsta.
39558 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39559 of previous change.
39560
39561 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39562
39563 * tracebak.c (MAX): Avoid redefinition warning.
39564
39565 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39566 Change msg to const char *.
39567 (__gnat_install_handler): Remove ss, unused.
39568 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39569 to const char *.
39570 * cstreams.c (__gnat_full_name): Declare p only when used.
39571 (__gnat_full_name) [sgi] Return buffer.
39572
39573 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39574
39575 * mingw32.h: New file.
39576 * gnat_wrapper.adb: New file.
39577
39578 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39579
39580 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39581 string match a pre compiled regular expression (the corresponding
39582 version of the function working on a raw regular expression)
39583 Fix typos in various comments
39584 Update copyright notice in spec
39585
39586 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39587
39588 * exp_ch3.adb:
39589 (Component_Needs_Simple_Initialization): Return False when the type is a
39590 packed bit array. Revise spec comments to document this case.
39591
39592 * exp_prag.adb:
39593 (Expand_Pragma_Import): Set any expression on the imported object to
39594 empty to avoid initializing imported objects (in particular this
39595 covers the case of zero-initialization of bit arrays).
39596 Update copyright notice.
39597
39598 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39599
39600 * sem_ch12.adb:
39601 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39602 a subunit is missing.
39603 (Instantiate_Subprogram_Body): If body of function is missing, set type
39604 of return expression explicitly in dummy body, to prevent cascaded
39605 errors when a subunit is missing.
39606 Fixes PR 5677.
39607
39608 * sem_ch3.adb:
39609 (Access_Subprogram_Declaration): Verify that return type is valid.
39610 Fixes PR 8693.
39611
39612 * sem_elab.adb:
39613 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39614 generic.
39615 Fixes PR 12318.
39616
39617 * sem_util.adb:
39618 (Corresponding_Discriminant): If the scope of the discriminant is a
39619 private type without discriminant, use its full view.
39620 Fixes PR 8247.
39621
39622 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39623
39624 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39625 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39626 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39627 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39628 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39629 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39630 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39631 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39632 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39633 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39634 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39635 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39636 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39637 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39638 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39639 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39640 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39641 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39642 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39643 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39644 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39645 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39646 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39647 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39648 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39649 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39650 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39651 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39652 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39653 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39654 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39655 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39656 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39657 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39658 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39659 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39660 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39661 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39662 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39663 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39664 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39665 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39666 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39667 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39668 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39669 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39670 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39671 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39672 vms_conv.ads, vms_conv.adb, vms_data.ads,
39673 vxaddr2line.adb: Files added. Merge with ACT tree.
39674
39675 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39676 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39677 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39678 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39679 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39680 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39681 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39682 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39683 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39684 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39685
39686 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39687 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39688 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39689 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39690 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39691 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39692 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39693 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39694 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39695 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39696 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39697 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39698 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39699 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39700 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39701 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39702 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39703 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39704 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39705 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39706 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39707 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39708 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39709 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39710 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39711 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39712 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39713 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39714 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39715 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39716 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39717 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39718 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39719 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39720 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39721 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39722 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39723 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39724 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39725 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39726 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39727 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39728 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39729 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39730 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39731 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39732 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39733 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39734 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39735 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39736 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39737 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39738 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39739 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39740 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39741 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39742 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39743 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39744 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39745 checks.adb, checks.ads, cio.c, comperr.adb,
39746 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39747 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39748 einfo.adb, einfo.ads, errout.adb, errout.ads,
39749 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39750 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39751 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39752 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39753 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39754 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39755 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39756 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39757 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39758 fe.h, fmap.adb, fmap.ads, fname.adb,
39759 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39760 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39761 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39762 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39763 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39764 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39765 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39766 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39767 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39768 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39769 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39770 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39771 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39772 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39773 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39774 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39775 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39776 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39777 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39778 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39779 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39780 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39781 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39782 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39783 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39784 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39785 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39786 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39787 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39788 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39789 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39790 layout.adb, lib.adb, lib.ads, lib-list.adb,
39791 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39792 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39793 link.c, live.adb, make.adb, make.ads,
39794 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39795 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39796 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39797 misc.c, mkdir.c, mlib.adb, mlib.ads,
39798 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39799 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39800 namet.adb, namet.ads, namet.h, nlists.ads,
39801 nlists.h, nmake.adt, opt.adb, opt.ads,
39802 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39803 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39804 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39805 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39806 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39807 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39808 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39809 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39810 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39811 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39812 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39813 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39814 prj-util.adb, prj-util.ads, raise.c, raise.h,
39815 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39816 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39817 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39818 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39819 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39820 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39821 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39822 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39823 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39824 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39825 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39826 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39827 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39828 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39829 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39830 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39831 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39832 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39833 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39834 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39835 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39836 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39837 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39838 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39839 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39840 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39841 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39842 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39843 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39844 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39845 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39846 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39847 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39848 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39849 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39850 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39851 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39852 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39853 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39854 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39855 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39856 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39857 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39858 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39859 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39860 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39861 stringt.adb, stringt.ads, stringt.h, style.ads,
39862 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39863 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39864 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39865 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39866 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39867 table.adb, table.ads, targparm.adb, targparm.ads,
39868 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39869 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39870 ttypes.ads, types.ads, types.h, uintp.adb,
39871 uintp.ads, uintp.h, uname.adb, urealp.adb,
39872 urealp.ads, urealp.h, usage.adb, utils2.c,
39873 utils.c, validsw.adb, validsw.ads, widechar.adb,
39874 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39875 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39876 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39877 gnatvsn.ads: Merge with ACT tree.
39878
39879 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39880
39881 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39882
39883 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39884 (gnat_ug_vmx.info): Likewise.
39885 (gnat_ug_vxw.info): Likewise.
39886 (gnat_ug_wnt.info): Likewise.
39887 (gnat_rm.info): Likewise.
39888 (gnat-style.info): Likewise.
39889
39890 * Make-lang.in (ada.install-info): Remove target.
39891 (info): New target.
39892 (install-info): Likewise.
39893 (gnat_ug_unx.info): Simplify rule.
39894 (gnat_ug_vmx.info): Likewise.
39895 (gnat_ug_vxw.info): Likewise.
39896 (gnat_ug_wnt.info): Likewise.
39897 (gnat_rm.info): Likewise.
39898 (gnat-style.info): Likewise.
39899
39900 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39901
39902 * Make-lang.in: Replace uses of $(target_alias) with
39903 $(target_noncanonical).
39904 * ada/Makefile.in: Remove unused mention of $(target_alias).
39905
39906 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39907
39908 * Make-lang.in (ada.info): Replace with ...
39909 (info): ... this.
39910 (ada.dvi): Replace with ...
39911 (dvi): ... this.
39912
39913 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39914
39915 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39916 initialize dconstp5 and dconstmp5.
39917
39918 2003-09-28 Richard Henderson <rth@redhat.com>
39919
39920 * trans.c (tree_transform): Update call to expand_asm_operands.
39921
39922 2003-09-21 Richard Henderson <rth@redhat.com>
39923
39924 * trans.c, utils.c: Revert.
39925
39926 2003-09-21 Richard Henderson <rth@redhat.com>
39927
39928 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39929 change to const.
39930
39931 2003-09-04 Michael Matz <matz@suse.de>
39932
39933 * misc.c: Include "target.h".
39934 * Make-lang.in (misc.o): Add dependency on target.h.
39935
39936 2003-09-03 DJ Delorie <dj@redhat.com>
39937
39938 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39939 hook.
39940
39941 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39942
39943 * Makefile.in: Update substitutions to match changes to
39944 configure. Use include directives instead of @-insertions
39945 to read in host and target fragments. Add a rule to
39946 regenerate ada/Makefile.
39947
39948 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39949
39950 * lang-options.h: Remove.
39951 * lang.opt: Add help text.
39952
39953 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39954
39955 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39956 calls.
39957
39958 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39959
39960 * misc.c (gnat_handle_option): Don't handle filenames.
39961
39962 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39963
39964 * Make-lang.in: Replace PWD with PWD_COMMAND.
39965 * Makefile.adalib: Likewise.
39966 * Makefile.in: Likewise.
39967
39968 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39969
39970 * misc.c (gnat_argv): Revert last change.
39971 (gnat_handle_option, gnat_init_options): Copy arguments.
39972
39973 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39974
39975 * misc.c (gnat_argv): Make const.
39976
39977 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39978
39979 * misc.c (save_argc, save_argv): Keep non-static!
39980
39981 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39982
39983 * misc.c (save_argc, save_argv): Make static.
39984 (gnat_init_options): New prototype.
39985 (gnat_init_options): Update.
39986
39987 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39988
39989 * gnat_ug.texi: Remove unlikely characters from @vars.
39990 * gnat_ug_vms.texi: Regenerate.
39991
39992 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39993
39994 * misc.c (record_code_position): Adjust emit_note call.
39995
39996 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39997
39998 * misc.c (gnat_handle_option): Don't check for missing arguments.
39999
40000 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
40001
40002 * utils.c (end_subprog_body): Adjust expand_function_end call.
40003
40004 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
40005
40006 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
40007 Bind_Main_Program.
40008
40009 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
40010
40011 * lang.opt: Declare Ada.
40012 * misc.c (gnat_init_options): Update.
40013
40014 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
40015
40016 * utils.c (begin_subprog_body): Adjust init_function_start call.
40017
40018 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40019
40020 * Make-lang.in: Update to use options.c and options.h.
40021 * misc.c: Include options.h not aoptions.h.
40022 (gnat_handle_option): Abort on unrecognized switch.
40023 (gnat_init_options): Request Ada switches.
40024
40025 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40026
40027 * lang.opt: Add -Wall.
40028 * misc.c (gnat_handle_option): Handle it.
40029
40030 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
40031
40032 * misc.c (gnat_handle_option): Fix warnings.
40033
40034 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
40035
40036 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
40037
40038 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
40039
40040 * Make-lang.in: Update to handle command-line options.
40041 * lang.opt: New file.
40042 * misc.c: Include aoptions.h.
40043 (cl_options_count, cl_options): Remove.
40044 (gnat_handle_option): New.
40045 (gnat_decode_option): Remove.
40046 (LANG_HOOKS_DECODE_OPTION): Remove.
40047 (LANG_HOOKS_HANDLE_OPTION): Override.
40048
40049 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
40050
40051 * init.c, misc.c, trans.c, utils.c: Remove dead code.
40052
40053 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
40054
40055 * Makefile.in: Replace "host_canonical" with "host" for autoconf
40056 substitution.
40057
40058 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
40059
40060 * Make-lang.in: Update.
40061 * misc.c: Include opts.h. Define cl_options_count and cl_options.
40062
40063 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
40064
40065 * misc.c (gnat_init_options): Update.
40066
40067 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40068
40069 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40070 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40071 __attribute__ ((__unused__)).
40072
40073 2003-06-05 Jan Hubicka <jh@suse.cz>
40074
40075 * Make-lang.in: Add support for stageprofile and stagefeedback
40076
40077 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40078
40079 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40080 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40081
40082 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
40083
40084 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40085 Remove non-VMS directive.
40086 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40087 alternatives.
40088 (Examples of gnatls Usage): Remove VMS alternative.
40089
40090 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
40091
40092 PR ada/9953
40093 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40094 and turn ZCX_By_Default back to False since the underlying support
40095 is not quite there yet.
40096
40097 2003-06-01 Andreas Jaeger <aj@suse.de>
40098
40099 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40100 and ROUND_TYPE_SIZE_UNIT.
40101
40102 2003-05-22 Geert Bosch <bosch@gnat.com>
40103
40104 * gnat_rm.texi : Remove reference to Ada Core Technologies.
40105
40106 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
40107
40108 * trans.c (tree_transform): Use location_t and input_location
40109 directly.
40110 (build_unit_elab): Likewise.
40111 * utils.c (create_label_decl): Likewise.
40112
40113 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
40114
40115 * trans.c (tree_transform, build_unit_elab,
40116 set_lineno): Rename lineno to input_line.
40117 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40118 end_subprog_body): Likewise.
40119 * utils2.c (build_call_raise): Likewise.
40120
40121 2003-05-01 Laurent Guerby <guerby@acm.org>
40122
40123 PR ada/10546
40124 * 5iosinte.ads: Increase pthread_cond_t size to match recent
40125 LinuxThread and NPTL version, merge from ACT.
40126
40127 2003-04-28 Zack Weinberg <zack@codesourcery.com>
40128
40129 * utils.c (convert): No need to clear TREE_CST_RTL.
40130
40131 2003-04-23 Geert Bosch <bosch@gnat.com>
40132
40133 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40134 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40135 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40136 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40137 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40138 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40139 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40140 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40141 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40142 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40143 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40144 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40145 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40146 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40147 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40148 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40149 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40150 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40151 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40152 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40153 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40154 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40155 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40156 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40157 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40158 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40159 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40160 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40161 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40162 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40163 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40164 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40165 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40166 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40167 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40168 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40169 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40170 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40171 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40172 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40173 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40174 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40175 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40176 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40177 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40178 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40179 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40180 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40181 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40182 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40183 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40184 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40185 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40186 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40187 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40188 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40189 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40190 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40191 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40192 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40193 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40194 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40195 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40196 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40197 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40198 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40199 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40200 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40201 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40202 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40203 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40204 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40205 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40206 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40207 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40208 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40209 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40210 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40211 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40212 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40213 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40214 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40215 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40216 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40217 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40218 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40219 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40220 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40221 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40222 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40223 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40224 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40225 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40226 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40227 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40228 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40229 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40230 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40231 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40232 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40233 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40234 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40235 ali.adb, ali.ads, alloc.ads, argv.c,
40236 atree.adb, atree.ads, atree.h, aux-io.c,
40237 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40238 binde.adb, binde.ads, binderr.adb, binderr.ads,
40239 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40240 butil.adb, butil.ads, cal.c, calendar.ads,
40241 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40242 checks.ads, cio.c, comperr.adb, comperr.ads,
40243 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40244 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40245 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40246 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40247 einfo.adb, einfo.ads, elists.adb, elists.ads,
40248 elists.h, errno.c, errout.adb, errout.ads,
40249 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40250 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40251 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40252 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40253 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40254 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40255 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40256 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40257 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40258 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40259 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40260 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40261 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40262 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40263 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40264 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40265 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40266 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40267 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40268 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40269 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40270 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40271 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40272 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40273 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40274 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40275 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40276 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40277 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40278 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40279 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40280 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40281 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40282 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40283 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40284 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40285 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40286 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40287 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40288 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40289 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40290 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40291 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40292 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40293 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40294 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40295 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40296 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40297 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40298 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40299 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40300 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40301 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40302 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40303 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40304 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40305 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40306 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40307 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40308 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40309 lib.adb, lib.ads, live.adb, live.ads,
40310 machcode.ads, make.adb, make.ads, makeusg.adb,
40311 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40312 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40313 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40314 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40315 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40316 mlib.ads, namet.adb, namet.ads, nlists.adb,
40317 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40318 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40319 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40320 osint.ads, output.adb, output.ads, par-ch10.adb,
40321 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40322 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40323 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40324 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40325 par-tchk.adb, par-util.adb, par.adb, par.ads,
40326 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40327 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40328 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40329 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40330 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40331 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40332 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40333 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40334 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40335 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40336 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40337 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40338 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40339 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40340 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40341 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40342 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40343 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40344 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40345 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40346 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40347 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40348 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40349 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40350 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40351 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40352 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40353 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40354 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40355 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40356 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40357 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40358 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40359 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40360 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40361 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40362 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40363 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40364 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40365 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40366 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40367 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40368 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40369 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40370 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40371 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40372 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40373 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40374 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40375 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40376 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40377 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40378 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40379 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40380 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40381 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40382 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40383 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40384 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40385 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40386 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40387 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40388 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40389 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40390 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40391 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40392 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40393 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40394 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40395 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40396 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40397 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40398 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40399 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40400 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40401 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40402 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40403 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40404 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40405 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40406 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40407 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40408 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40409 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40410 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40411 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40412 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40413 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40414 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40415 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40416 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40417 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40418 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40419 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40420 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40421 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40422 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40423 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40424 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40425 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40426 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40427 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40428 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40429 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40430 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40431 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40432 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40433 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40434 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40435 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40436 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40437 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40438 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40439 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40440 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40441 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40442 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40443 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40444 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40445 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40446 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40447 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40448 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40449 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40450 snames.ads, sprint.adb, sprint.ads, stand.adb,
40451 stand.ads, stringt.adb, stringt.ads, style.adb,
40452 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40453 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40454 switch-m.ads, switch.adb, switch.ads, system.ads,
40455 table.adb, table.ads, targparm.adb, targparm.ads,
40456 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40457 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40458 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40459 ttypef.ads, ttypes.ads, types.adb, types.ads,
40460 uintp.adb, uintp.ads, uname.adb, uname.ads,
40461 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40462 usage.adb, usage.ads, validsw.adb, validsw.ads,
40463 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40464 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40465 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40466 formatting and other trivial changes from ACT.
40467
40468 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40469
40470 * gigi.h, utils2.c (build_constructor):
40471 Rename gnat_build_constructor. Use build_constructor.
40472 * decl.c (gnat_to_gnu_entity)
40473 * trans.c (tree_transform, pos_to_constructor, extract_values)
40474 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40475 (unchecked_convert)
40476 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40477 (fill_vms_descriptor):
40478 Update to match.
40479
40480 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40481
40482 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40483 * misc.c (gnat_tree_size): New function.
40484 (LANG_HOOKS_TREE_SIZE): Override.
40485
40486 2003-04-03 Jason Merrill <jason@redhat.com>
40487
40488 * misc.c (gnat_adjust_rli): #if 0.
40489
40490 2003-03-31 Geert Bosch <bosch@gnat.com>
40491
40492 PR ada/10020
40493 * link.c : Fix misspelled "const" keyword
40494
40495 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40496
40497 PR c++/7086
40498 * utils2.c: Adjust calls to put_var_into_stack.
40499
40500 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40501
40502 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40503
40504 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40505
40506 * misc.c (gnat_init): Update for new prototype.
40507
40508 2003-03-05 Olivier Hainque <hainque@gnat.com>
40509
40510 ada/9961
40511 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40512 warning, and fix return type for the IN_RTS && !SJLJ case.
40513
40514 2003-03-04 Tom Tromey <tromey@redhat.com>
40515
40516 * Make-lang.in (ada.tags): New target.
40517
40518 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40519
40520 ada/9911
40521 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40522 wrapper, which name remains constant whatever underlying GCC
40523 scheme.
40524
40525 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40526 the stable interface needed for a-except.
40527
40528 2003-03-02 Andreas Jaeger <aj@suse.de>
40529
40530 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40531 gnat_ug_wnt.texi: Regenerate.
40532
40533 2003-03-02 Laurent Guerby <guerby@acm.org>
40534
40535 * Makefile.in (install-gnatlib): Match previous change there
40536 so it works.
40537
40538 2003-02-28 Andreas Schwab <schwab@suse.de>
40539
40540 * Make-lang.in (install-gnatlib): Change to ada directory before
40541 running make instead of using ada/Makefile directly.
40542
40543 2003-02-18 Ben Elliston <bje@redhat.com>
40544
40545 Part of PR ada/9406
40546 * gnat_ug.texi (Binder output file): Grammar fix.
40547
40548 2003-02-18 Ben Elliston <bje@redhat.com>
40549
40550 PR other/7350
40551 * 5qtaprop.adb (Sleep): Fix typo in comment.
40552
40553 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40554
40555 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40556 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40557 gnat_ug_wnt.texi: Regenerate.
40558
40559 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40560
40561 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40562 be created if necessary.
40563 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40564 if necessary. Remove erroneous and redundant gnatchop
40565 installation commands. Test for gnatdll before attempting
40566 to install it.
40567 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40568 and gnatdll from all plausible locations.
40569
40570 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40571
40572 * utils2.c (build_unary_op): Don't check flag_volatile.
40573 * gnat_ug.texi: Remove -fvolatile from example.
40574 * gnat_ug_vxw.texi: Likewise.
40575
40576 2003-01-29 Laurent Guerby <guerby@acm.org>
40577
40578 PR ada/8344
40579 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40580 * Makefile.in: match previous change.
40581 * Make-lang.in: match previous change.
40582
40583 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40584
40585 * 5rosinte.ads: Add SIGXCPU.
40586 * 5rtpopsp.adb: New file.
40587 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40588 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40589 specific file 5rtpopsp.adb.
40590 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40591 is likely needed for all newlib targets.
40592 * init.c: Add RTEMS specific version of __gnat_initialize().
40593
40594 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40595
40596 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40597
40598 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40599
40600 * init.c (__gnat_error_handler): Make msg const.
40601
40602 * gmem.c (convert_addresses): Move declaration ...
40603 * adaint.h: ... here.
40604 * adaint.c (convert_addresses): Adapt addrs type to match
40605 prototype.
40606
40607 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40608
40609 2003-01-24 Andreas Schwab <schwab@suse.de>
40610
40611 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40612 size_t to avoid warning.
40613
40614 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40615
40616 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40617
40618 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40619
40620 * gnat_rm.texi: Remove RCS version number.
40621
40622 * ada-tree.h (union lang_tree_node): Add chain_next option.
40623
40624 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40625
40626 * Make-lang.in (ada.install-info, ada.install-common,
40627 ada.uninstall): Prepend $(DESTDIR) to the destination
40628 directory in all (un)installation commands.
40629 * Makefile.in (install-gnatlib, install-rts): Ditto.
40630
40631 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40632
40633 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40634 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40635 gnat_ug_wnt.texi: Regenerate.
40636
40637 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40638
40639 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40640 only.
40641 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40642 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40643 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40644 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40645 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40646 $(srcdir)/doc/include/gcc-common.texi.
40647
40648 2002-12-15 Geert Bosch <bosch@gnat.com>
40649
40650 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40651
40652 2002-12-14 Geert Bosch <bosch@gnat.com>
40653
40654 PR ada/5690
40655 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40656 case of a body created for a Renaming_As_Body, on which
40657 conformance checks are not performed.
40658
40659 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40660
40661 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40662 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40663 not already included.
40664 * Make-lang.in: Update dependencies.
40665
40666 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40667 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40668 solution to buffer overflow bug on GNU/Linux.
40669
40670 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40671
40672 PR ada/5856
40673 PR ada/6919
40674 * bindgen.adb: Remove all references to Public_Version.
40675 * comperr.adb: Remove all references to Public_Version and
40676 GNATPRO_Version; correct bug reporting instructions.
40677 * comperr.ads: Change to match bug box.
40678 * gnatvsn.ads: Remove all references to Public version and
40679 GNATPRO version.
40680
40681 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40682
40683 PR ada/6919
40684 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40685 GNU/Linux.
40686
40687 PR ada/6558
40688 * config-lang.in: Remove diff_excludes.
40689
40690 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40691
40692 PR ada/8358
40693 * trans.c (gnu_pending_elaboration_lists): New GC root.
40694 (build_unit_elab): Use..
40695
40696 2002-10-30 Geert Bosch <bosch@gnat.com>
40697
40698 PR ada/6558
40699 * misc.c : Include optabs.h
40700
40701 * Make-lang.in (misc.o): Add dependency on optabs.h
40702
40703 2002-10-29 Geert Bosch <bosch@gnat.com>
40704
40705 PR ada/6558
40706 * Make-lang.in (gnatbind): Depend on CONFIG_H
40707
40708 2002-10-29 Geert bosch <bosch@gnat.com>
40709
40710 PR ada/6558
40711 * misc.c: Unrevert misc.c (1.13)
40712
40713 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40714
40715 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40716 maintainership comments.
40717
40718 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40719
40720 PR ada/5904
40721 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40722 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40723 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40724 7staprop.adb: Correct statements in comments about
40725 maintainership of GNAT.
40726
40727 PR ada/5904
40728 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40729 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40730 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40731 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40732 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40733 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40734 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40735 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40736 comments about maintainership of GNAT.
40737
40738 PR ada/6919 (forward port of patch for PR ada/5904)
40739 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40740 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40741 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40742 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40743 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40744 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40745 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40746 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40747 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40748 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40749 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40750 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40751 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40752 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40753 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40754 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40755 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40756 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40757 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40758 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40759 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40760 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40761 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40762 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40763 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40764 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40765 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40766 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40767 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40768 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40769 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40770 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40771 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40772 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40773 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40774 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40775 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40776 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40777 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40778 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40779 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40780 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40781 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40782 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40783 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40784 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40785 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40786 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40787 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40788 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40789 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40790 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40791 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40792 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40793 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40794 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40795 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40796 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40797 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40798 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40799 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40800 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40801 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40802 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40803 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40804 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40805 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40806 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40807 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40808 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40809 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40810 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40811 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40812 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40813 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40814 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40815 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40816 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40817 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40818 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40819 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40820 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40821 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40822 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40823 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40824 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40825 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40826 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40827 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40828 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40829 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40830 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40831 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40832 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40833 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40834 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40835 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40836 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40837 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40838 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40839 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40840 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40841 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40842 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40843 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40844 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40845 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40846 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40847 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40848 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40849 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40850 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40851 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40852 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40853 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40854 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40855 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40856 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40857 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40858 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40859 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40860 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40861 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40862 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40863 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40864 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40865 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40866 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40867 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40868 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40869 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40870 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40871 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40872 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40873 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40874 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40875 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40876 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40877 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40878 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40879 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40880 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40881 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40882 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40883 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40884 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40885 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40886 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40887 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40888 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40889 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40890 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40891 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40892 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40893 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40894 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40895 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40896 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40897 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40898 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40899 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40900 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40901 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40902 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40903 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40904 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40905 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40906 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40907 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40908 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40909 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40910 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40911 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40912 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40913 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40914 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40915 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40916 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40917 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40918 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40919 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40920 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40921 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40922 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40923 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40924 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40925 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40926 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40927 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40928 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40929 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40930 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40931 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40932 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40933 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40934 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40935 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40936 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40937 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40938 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40939 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40940 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40941 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40942 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40943 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40944 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40945 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40946 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40947 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40948 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40949 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40950 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40951 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40952 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40953 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40954 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40955 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40956 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40957 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40958 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40959 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40960 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40961 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40962 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40963 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40964 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40965 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40966 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40967 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40968 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40969 stringt.ads stringt.h style.adb style.ads stylesw.adb
40970 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40971 table.adb table.ads targparm.adb targparm.ads targtyps.c
40972 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40973 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40974 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40975 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40976 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40977 usage.ads utils.c utils2.c validsw.adb validsw.ads
40978 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40979 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40980 xtreeprs.adb: Correct statements in comments about maintainership
40981 of GNAT.
40982
40983 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40984
40985 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40986 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40987 * gnatvsn.ads: Gnat_Version_String is now a function.
40988 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40989 copy the C version_string into a String and return it.
40990 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40991 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40992 Remove pragma Ident (Gnat_Version_String). If this was the
40993 sole use of package Gnatvsn, remove the with statement too.
40994 * gnat1drv.adb: Tweak -gnatv output.
40995
40996 2002-09-17 Richard Henderson <rth@redhat.com>
40997
40998 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40999 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
41000 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
41001 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
41002 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
41003 and real_2expN instead of a loop.
41004 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
41005 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
41006
41007 2002-08-25 Andre Leis <a.leis@gmx.net>
41008 David Billinghurst <David.Billinghurst@riotinto.com>
41009
41010 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
41011
41012 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41013
41014 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
41015 Remove $(CONFIG_H) dependency.
41016
41017 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
41018
41019 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
41020
41021 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41022
41023 * adadecode.c (ada_demangle): Use xstrdup in lieu of
41024 xmalloc/strcpy.
41025 * misc.c (gnat_decode_option): Likewise.
41026
41027 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
41028
41029 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41030 function approach did not work well because of a side effect (the
41031 function call could reallocate the table which was being indexed
41032 using its result). Fixes ada/4851. [RESURRECTED]
41033
41034 2002-07-01 Roger Sayle <roger@eyesopen.com>
41035
41036 * ada/utils.c (builtin_function): Accept an additional parameter.
41037
41038 2002-06-28 Andreas Jaeger <aj@suse.de>
41039
41040 PR ada/7144
41041 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41042 <adi@thur.de>.
41043
41044 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41045
41046 * Makefile.in (SHELL): Set to @SHELL@.
41047
41048 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41049
41050 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41051 array size calculation.
41052
41053 2002-06-04 Andreas Jaeger <aj@suse.de>
41054
41055 * Make-lang.in (gnatbind): Readd rule that has been lost in last
41056 patch.
41057
41058 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
41059
41060 Merge from pch-branch:
41061
41062 * config-lang.in (gtfiles): Add ada-tree.h.
41063 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41064 (SET_TYPE_MODULUS): New.
41065 (SET_TYPE_INDEX): New.
41066 (SET_TYPE_DIGITS_VALUE): New.
41067 (SET_TYPE_RM_SIZE): New.
41068 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41069 (SET_TYPE_ADA_SIZE): New.
41070 (SET_TYPE_ACTUAL_BOUNDS): New.
41071 (SET_DECL_CONST_CORRESPONDING_VAR): New.
41072 (SET_DECL_ORIGINAL_FIELD): New.
41073 (TREE_LOOP_ID): Correct typo.
41074 * decl.c: Use new macros.
41075 * utils.c: Include debug.h, use new macros.
41076 * utils2.c: Use new macros.
41077
41078 * ada-tree.h: Update all macros for new tree description.
41079 (struct tree_loop_id): New.
41080 (union lang_tree_node): New.
41081 (struct lang_decl): New.
41082 (struct lang_type): New.
41083 * misc.c (gnat_mark_tree): Delete.
41084 (LANG_HOOKS_MARK_TREE): Delete.
41085 * trans.c (tree_transform): No longer any need to cast
41086 for TREE_LOOP_ID.
41087
41088 * utils.c (struct language_function): New dummy structure.
41089
41090 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41091 (misc.o): Likewise.
41092 (utils.o): Likewise; also gtype-ada.h.
41093 * Make-lang.in (gnat1): Add dependency on s-gtype.
41094 (gnatbind): Add dependency on $(CONFIG_H).
41095 * utils.c: Correct last #include.
41096 (stuct e_stack): Remove unnecessary 'static'.
41097 (mark_e_stack): Remove unused prototype.
41098
41099 * scn-nlit.adb: Remove whitespace after version number to
41100 keep lines under 80 chars.
41101 * snames.adb: Likewise.
41102 * treepr.ads: Likewise.
41103
41104 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41105 (misc.o): Likewise.
41106 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41107 * config-lang.in (gtfiles): New.
41108 * decl.c: Use gengtype for roots.
41109 * gigi.h: Use gengtype for roots.
41110 * trans.c: Use gengtype for roots.
41111 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
41112
41113 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
41114
41115 * misc.c (gnat_init): Adjust setting of internal_error_function.
41116
41117 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
41118
41119 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41120 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41121 gnat_ug_wnt.texi: Regenerate.
41122
41123 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
41124
41125 * 5ntaprop.adb (with System.OS_Primitives): Remove.
41126
41127 * cstreams.c (max_path_len): Move from here ...
41128 * adaint.c (__gnat_max_path_len): ... to here.
41129 * adaint.c (__gnat_max_path_len): Declare.
41130 * g-dirope.adb (Max_Path): Adjust.
41131 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41132 * i-cstrea.ads (max_path_len): Adjust.
41133 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41134 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41135
41136 * Makefile.in, Make-lang.in: Documentation is now built in
41137 Make-lang.in. Store Info and generated Texinfo files in the
41138 source directory.
41139 * gnat_ug.texi: Remove CVS keywords, correct version number.
41140 Set file name correctly.
41141
41142 * gnat_ug_*.texi: Add.
41143 * .cvsignore: Ignore generated Texinfo files.
41144
41145 2002-05-30 Zack Weinberg <zack@codesourcery.com>
41146
41147 * ada.h: Add MI guard macro.
41148 (SUBTYPE): Define constants with an anonymous enum, not static
41149 const variables.
41150 (IN): Cast constants to appropriate type before use.
41151
41152 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41153
41154 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41155 (experimental)".
41156
41157 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41158
41159 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41160 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41161 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41162 (ALL_ADA_CFLAGS): Likewise.
41163 (ADA_INCLUDES): Likewise.
41164 Adapt for new working dir.
41165 (GNATBIND): Use Makefile.in version.
41166 (.SUFFIXES): Copy from Makefile.in.
41167 (ada-warn): Define.
41168 (.adb.o, .ads.o): Copy from Makefile.in.
41169 Added $(OUTPUT_OPTION).
41170 (GNAT1_C_OBJS): Moved from Makefile.in.
41171 Prefix with ada subdir.
41172 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41173 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41174 Adapt for new working dir.
41175 (EXTRA_GNATBIND_OBJS): Likewise.
41176 (ADA_BACKEND): Moved from Makefile.in.
41177 Renamed to avoid conflict with global BACKEND.
41178 Use that one.
41179 (TARGET_ADA_SRCS): Moved from Makefile.in.
41180 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41181 Use ADA_BACKEND.
41182 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41183 (ada_extra_files): Moved from Makefile.in.
41184 Prefix with ada subdir.
41185 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41186 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41187 (ada/nmake.ads): Likewise.
41188 (update-sources): Moved from Makefile.in.
41189 Prefix with ada subdir.
41190 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41191 (ADA_TREE_H): Likewise.
41192 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41193 (ada/memtrack.o): Likewise.
41194 (ada/adadecode.o): Likewise.
41195 Update dependencies.
41196 (ada/adaint.o): New.
41197 (ada/argv.o): Moved from Makefile.in.
41198 Prefix with ada subdir.
41199 Update dependencies.
41200 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41201 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41202 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41203 Prefix with ada subdir.
41204 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41205 (GNAT DEPENDENCIES): Regenerate.
41206 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41207 toplevel Makefile.in.
41208 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41209 (TARGET_ADA_SRCS): Removed.
41210 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41211 (GNATBIND_OBJS): Likewise.
41212 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41213 (BACKEND): Removed.
41214 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41215 (TREE_H): Likewise.
41216 (ada_extra_files): Likewise.
41217 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41218 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41219 (update-sources): Likewise.
41220 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41221 (ADA_TREE_H): Likewise.
41222 (adadecoce.o): Likewise.
41223 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41224 (GNAT DEPENDENCIES): Likewise.
41225
41226 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41227
41228 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41229 * Makefile.in: Likewise.
41230
41231 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41232
41233 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41234 Restore $(CONFIG_H) and prefix.o dependencies.
41235 (ada.stage[1-4]): Depend on stage?-start.
41236
41237 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41238
41239 2002-05-02 Jim Wilson <wilson@redhat.com>
41240
41241 * utils.c (finish_record_type): Change record_size to record_type.
41242
41243 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41244
41245 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41246 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41247 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41248
41249 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41250
41251 * misc.c (gnat_parse_file): Update.
41252
41253 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41254
41255 * misc.c (gnat_init): Don't set lang_attribute_common.
41256
41257 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41258
41259 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41260
41261 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41262
41263 * gnat_ug.texi: New file.
41264
41265 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41266 instead of gfdl.texi
41267
41268 * xgnatug.adb, ug_words: New files.
41269
41270 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41271 gnat_rm and gnat-style manuals.
41272
41273 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41274
41275 * gigi.h (incomplete_type_error): Remove.
41276 * utils.c (incomplete_type_error): Remove.
41277
41278 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41279
41280 * trans.c (tree_transform): Add has_scope argument to
41281 expand_start_stmt_expr.
41282
41283 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41284
41285 * gigi.h (truthvalue_conversion): Rename.
41286 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41287 * trans.c (tree_transform): Update.
41288 * utils2.c (truthvalue_conversion): Rename, update.
41289 (build_binary_op, build_unary_op): Update.
41290
41291 2002-04-04 Laurent Guerby <guerby@acm.org>
41292
41293 * make.adb: Implement -margs, remove restriction about file name placement.
41294 * makeusg.adb: Documentation update.
41295 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41296 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41297
41298 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41299
41300 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41301 (builtin_function): Similarly.
41302
41303 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41304
41305 * decl.c (gnat_to_gnu_entity): Update.
41306 * gigi.h (mark_addressable): Rename.
41307 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41308 * trans.c (tree_transform): Update.
41309 * utils.c (create_var_decl): Update.
41310 * util2.c (build_binary_op, build_unary_op,
41311 fill_vms_descriptor): Update.
41312 (mark_addressable): Rename, update.
41313
41314 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41315
41316 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41317 Rename.
41318 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41319 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41320 * trans.c (tree_transform, convert_with_check): Update.
41321 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41322 Rename.
41323
41324 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41325
41326 * gigi.h (finish_incomplete_decl): Rename.
41327 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41328 * utils.c (gnat_init_decl_processing): Don't set hook.
41329 (finish_incomplete_decl): Rename.
41330
41331 2002-03-29 Andreas Schwab <schwab@suse.de>
41332
41333 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41334 directory.
41335
41336 2001-03-28 Robert Dewar <dewar@gnat.com>
41337
41338 * checks.ads:
41339 (Remove_Checks): New procedure
41340
41341 * checks.adb:
41342 (Remove_Checks): New procedure
41343
41344 * exp_util.adb:
41345 Use new Duplicate_Subexpr functions
41346 (Duplicate_Subexpr_No_Checks): New procedure
41347 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41348 (Duplicate_Subexpr): Restore original form (checks duplicated)
41349 (Duplicate_Subexpr): Call Remove_Checks
41350
41351 * exp_util.ads:
41352 (Duplicate_Subexpr_No_Checks): New procedure
41353 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41354 Add 2002 to copyright notice
41355
41356 * sem_util.adb: Use new Duplicate_Subexpr functions
41357
41358 * sem_eval.adb:
41359 (Eval_Indexed_Component): This is the place to call
41360 Constant_Array_Ref and to replace the value. We simply merge
41361 the code of this function in here, since it is now no longer
41362 used elsewhere. This fixes the problem of the back end not
41363 realizing we were clever enough to see that this was
41364 constant.
41365 (Expr_Val): Remove call to Constant_Array_Ref
41366 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41367 Minor reformatting
41368 (Constant_Array_Ref): Deal with string literals (patch
41369 suggested by Zack Weinberg on the gcc list)
41370
41371 2001-03-28 Ed Schonberg <schonber@gnat.com>
41372
41373 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41374 Duplicate_Subexpr_Move_Checks.
41375
41376 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41377 Duplicate_Subexpr_Move_Checks.
41378
41379 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41380 value of array exists before retrieving it (it may a private
41381 protected component in a function).
41382
41383 2002-03-28 Geert Bosch <bosch@gnat.com>
41384
41385 * prj-pp.adb : New file.
41386
41387 * prj-pp.ads : New file.
41388
41389 2002-03-28 Andreas Jaeger <aj@suse.de>
41390
41391 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41392
41393 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41394
41395 * misc.c (gnat_expand_expr): Move prototype.
41396
41397 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41398
41399 * misc.c (insert_default_attributes): Remove.
41400
41401 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41402
41403 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41404 (gnat_init): Don't set hook.
41405 (gnat_expand_expr): Fix prototype.
41406
41407 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41408
41409 * misc.c (ggc_p): Remove.
41410
41411 2002-03-27 Geert Bosch <bosch@gnat.com>
41412
41413 * prj-makr.ads, prj-makr.adb : New files.
41414
41415 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41416
41417 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41418 (lang_mark_tree): Make static, rename.
41419
41420 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41421
41422 * misc.c (maybe_build_cleanup): Remove.
41423
41424 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41425
41426 * gigi.h (yyparse): Remove.
41427
41428 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41429
41430 From Ben Brosgol <brosgol@gnat.com>
41431 * gnat_rm.texi: Sync with ACT version.
41432
41433 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41434
41435 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41436 (gnat_init): Remove old hook.
41437
41438 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41439
41440 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41441 (yyparse): Rename gnat_parse_file.
41442
41443 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41444
41445 Delete all lines containing "$Revision:".
41446 * xeinfo.adb: Don't look for revision numbers.
41447 * xnmake.adb: Likewise.
41448 * xsinfo.adb: Likewise.
41449 * xsnames.adb: Likewise.
41450 * xtreeprs.adb: Likewise.
41451
41452 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41453
41454 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41455 gnat_tree_code_name): Delete.
41456 (tree_code_type, tree_code_length, tree_code_name): Define.
41457 (gnat_init): Don't try to copy into the various tree_code
41458 arrays.
41459
41460 2002-03-11 Richard Henderson <rth@redhat.com>
41461
41462 * Makefile.in (.NOTPARALLEL): Add fake tag.
41463
41464 2002-03-07 Geert Bosch <bosch@gnat.com>
41465
41466 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41467 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41468 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41469 switch-m.adb, switch-m.ads : New files.
41470
41471 2002-03-07 Geert Bosch <bosch@gnat.com>
41472
41473 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41474 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41475 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41476 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41477 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41478 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41479 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41480 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41481 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41482 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41483 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41484 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41485 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41486 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41487 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41488 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41489 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41490 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41491 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41492 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41493 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41494 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41495 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41496 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41497 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41498 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41499 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41500 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41501 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41502 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41503 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41504 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41505 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41506 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41507 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41508 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41509 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41510 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41511 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41512 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41513 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41514 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41515 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41516 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41517 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41518 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41519 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41520 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41521 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41522 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41523 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41524 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41525 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41526 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41527 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41528 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41529 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41530 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41531 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41532 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41533 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41534 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41535 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41536 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41537 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41538 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41539 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41540 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41541 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41542 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41543 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41544 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41545 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41546 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41547 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41548 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41549 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41550 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41551 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41552 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41553 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41554 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41555 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41556 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41557 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41558 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41559 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41560 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41561 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41562 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41563 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41564 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41565 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41566 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41567 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41568 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41569 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41570
41571 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41572 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41573 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41574 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41575
41576 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41577 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41578
41579 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41580 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41581
41582 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41583 from mdllfile.ad[bs] and mdlltool.ad[bs]
41584
41585 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41586
41587 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41588 lieu of explicit sizeof/sizeof.
41589
41590 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41591
41592 * misc.c (copy_lang_decl): Remove.
41593
41594 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41595
41596 * misc.c: Delete traditional-mode-related code copied from the
41597 C front end but not used, or used only to permit the compiler
41598 to link.
41599
41600 2002-02-07 Richard Henderson <rth@redhat.com>
41601
41602 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41603 * adaint.h (__gnat_to_gm_time): Update prototype.
41604
41605 2002-01-30 Richard Henderson <rth@redhat.com>
41606
41607 * trans.c (tree_transform) [N_Loop_Statement]: Use
41608 expand_exit_loop_top_cond.
41609
41610 2001-12-23 Richard Henderson <rth@redhat.com>
41611
41612 * utils.c (end_subprog_body): Push GC context around
41613 rest_of_compilation for nested functions.
41614
41615 2001-12-23 Richard Henderson <rth@redhat.com>
41616
41617 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41618
41619 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41620
41621 * gnat-style.texi (Declarations and Types): Remove ancient style
41622 rule which was mandated by code generation issues.
41623
41624 * gnat-style.texi (header): Add @dircategory, @direntry.
41625 (title page): Remove date.
41626 (general) Add @./@: where approriate, and two spaces after the
41627 full stop at the end of a sentence. Use @samp markup when
41628 referring concrete lexical entities (keywords, attribute names
41629 etc.), and @syntax for ARM grammar elements. Use @r for English
41630 text in comments. Use @emph for emphasis. Change "if-statements"
41631 etc. to "if statements" (without @samp). Break long lines. Make
41632 casing of section names consistent.
41633 (Identifiers): Use @samp markup for variable names.
41634 (Comments): Use @samp markup for comment characters. Line-end
41635 comments may follow any Ada code, not just statements. Fix
41636 misspelling of "Integer" as "integer".
41637 (Loop statements): Do not use variable name "I", use "J".
41638 (Subprogram Declarations): Document alignment.
41639 (Subprogram Bodies, Block statements): Document empty line before
41640 "begin".
41641
41642 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41643
41644 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41645 function approach did not work well because of a side effect (the
41646 function call could reallocate the table which was being indexed
41647 using its result). Fixes ada/4851.
41648
41649 2001-12-19 Robert Dewar <dewar@gnat.com>
41650
41651 * bindgen.adb: Minor reformatting
41652
41653 * cstand.adb: Minor reformatting
41654
41655 * fmap.adb: Minor reformatting
41656 Change name from Add for Add_To_File_Map (Add is much too generic)
41657 Change Path_Name_Of to Mapped_Path_Name
41658 Change File_Name_Of to Mapped_File_Name
41659 Fix copyright dates in header
41660
41661 * fmap.ads:
41662 Change name from Add for Add_To_File_Map (Add is much too generic)
41663 Change Path_Name_Of to Mapped_Path_Name
41664 Change File_Name_Of to Mapped_File_Name
41665 Fix copyright dates in header
41666
41667 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41668 Add use clause for Fmap.
41669
41670 * make.adb: Minor reformatting
41671
41672 * osint.adb: Minor reformatting. Change of names in Fmap.
41673 Add use clause for Fmap.
41674
41675 * prj-env.adb: Minor reformatting
41676
41677 * prj-env.ads: Minor reformatting
41678
41679 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41680 error found (there were odd exceptions to this general rule in
41681 -gnatec/-gnatem processing)
41682
41683 2001-12-19 Olivier Hainque <hainque@gnat.com>
41684
41685 * raise.c (__gnat_eh_personality): Exception handling personality
41686 routine for Ada. Still in rough state, inspired from the C++ version
41687 and still containing a bunch of debugging artifacts.
41688 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41689 inspired from the C++ library.
41690
41691 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41692 exception handling integration.
41693
41694 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41695
41696 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41697 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41698 (HIE_OBJS): Add s-fat*.o
41699 (RAVEN_SOURCES): Remove files that are no longer required. Add
41700 interrupt handling files.
41701 (RAVEN_MOD): Removed, no longer needed.
41702
41703 2001-12-19 Robert Dewar <dewar@gnat.com>
41704
41705 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41706 Add 2001 to copyright date
41707
41708 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41709 need to force universal inlining for these cases.
41710
41711 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41712
41713 * s-taprob.adb: Minor clean ups so that this unit can be used in
41714 Ravenscar HI.
41715
41716 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41717 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41718
41719 2001-12-19 Vincent Celier <celier@gnat.com>
41720
41721 * prj-tree.ads (Project_Node_Record): Add comments for components
41722 Pkg_Id and Case_Insensitive.
41723
41724 2001-12-19 Pascal Obry <obry@gnat.com>
41725
41726 * g-socket.adb: Minor reformatting. Found while reading code.
41727
41728 2001-12-19 Robert Dewar <dewar@gnat.com>
41729
41730 * prj-tree.ads: Minor reformatting
41731
41732 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41733
41734 * config-lang.in (diff_excludes): Remove.
41735
41736 2001-12-17 Ed Schonberg <schonber@gnat.com>
41737
41738 * sem_res.adb (Resolve_Selected_Component): do not generate a
41739 discriminant check if the selected component is a component of
41740 the argument of an initialization procedure.
41741
41742 * trans.c (tree_transform, case of arithmetic operators): If result
41743 type is private, the gnu_type is the base type of the full view,
41744 given that the full view itself may be a subtype.
41745
41746 2001-12-17 Robert Dewar <dewar@gnat.com>
41747
41748 * sem_res.adb: Minor reformatting
41749
41750 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41751 parameter in call to Machine (unknown horrible effects from this
41752 omission).
41753
41754 * urealp.h: Add definition of Round_Even for call to Machine
41755 Add third parameter for Machine
41756
41757 2001-12-17 Ed Schonberg <schonber@gnat.com>
41758
41759 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41760 predefined units in No_Run_Time mode.
41761
41762 2001-12-17 Richard Kenner <kenner@gnat.com>
41763
41764 * misc.c (insn-codes.h): Now include.
41765
41766 2001-12-17 Olivier Hainque <hainque@gnat.com>
41767
41768 * a-except.adb: Preparation work for future integration of the GCC 3
41769 exception handling mechanism
41770 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41771 to factorize previous code sequences and make them externally callable,
41772 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41773 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41774 Use the new notification routines.
41775
41776 2001-12-17 Emmanuel Briot <briot@gnat.com>
41777
41778 * prj-tree.ads (First_Choice_Of): Document the when others case
41779
41780 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41781
41782 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41783 HI-E mode, in order to support Ravenscar profile properly.
41784
41785 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41786 mode on 32 bits targets.
41787
41788 2001-12-17 Vincent Celier <celier@gnat.com>
41789
41790 * fmap.adb: Initial version.
41791
41792 * fmap.ads: Initial version.
41793
41794 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41795 If search is successfully done, add to mapping.
41796
41797 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41798
41799 * make.adb:
41800 (Gnatmake): Add new local variable Mapping_File_Name.
41801 Create mapping file when using project file(s).
41802 Delete mapping file before exiting.
41803
41804 * opt.ads (Mapping_File_Name): New variable
41805
41806 * osint.adb (Find_File): Use path name found in mapping, if any.
41807
41808 * prj-env.adb (Create_Mapping_File): New procedure
41809
41810 * prj-env.ads (Create_Mapping_File): New procedure.
41811
41812 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41813 (Mapping_File)
41814
41815 * usage.adb: Add entry for new switch -gnatem.
41816
41817 * Makefile.in: Add dependencies for fmap.o.
41818
41819 2001-12-17 Ed Schonberg <schonber@gnat.com>
41820
41821 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41822 is a package instantiation rewritten as a package body.
41823 (Install_Withed_Unit): Undo previous change, now redundant.
41824
41825 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41826
41827 * layout.adb:
41828 (Compute_Length): Move conversion to Unsigned to callers.
41829 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41830 Compute_Length and Determine_Range.
41831 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41832 Compute_Length and Determine_Range.
41833 Above changes fix problem with length computation for supernull arrays
41834 where Max (Len, 0) wasn't getting applied due to the Unsigned
41835 conversion used by Compute_Length.
41836
41837 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41838
41839 * rtsfind.ads:
41840 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41841 System.Secondary_Stack.
41842 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41843 in HI-E mode.
41844 Remove unused entity RE_Exception_Data.
41845
41846 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41847
41848 * rident.ads (No_Secondary_Stack): New restriction.
41849
41850 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41851
41852 * gnat_rm.texi: Fix minor typos. Found while reading the section
41853 regarding "Bit_Order Clauses" that was sent to a customer.
41854 Very interesting documentation!
41855
41856 2001-12-17 Robert Dewar <dewar@gnat.com>
41857
41858 * sem_case.adb (Choice_Image): Avoid creating improper character
41859 literal names by using the routine Set_Character_Literal_Name. This
41860 fixes bombs in certain error message cases.
41861
41862 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41863
41864 * a-reatim.adb: Minor reformatting.
41865
41866 2001-12-17 Ed Schonberg <schonber@gnat.com>
41867
41868 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41869 case where the formal is an extension of another formal in the current
41870 unit or in a parent generic unit.
41871
41872 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41873
41874 * s-tposen.adb: Update comments. Minor reformatting.
41875 Minor code clean up.
41876
41877 * s-tarest.adb: Update comments. Minor code reorganization.
41878
41879 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41880
41881 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41882 when Java_VM.
41883
41884 2001-12-17 Robert Dewa <dewar@gnat.com>
41885
41886 * exp_attr.adb: Minor reformatting
41887
41888 2001-12-17 Ed Schonberg <schonber@gnat.com>
41889
41890 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41891 derivations nested within a child unit: verify that the parent
41892 type is declared in an outer scope.
41893
41894 2001-12-17 Robert Dewar <dewar@gnat.com>
41895
41896 * sem_ch12.adb: Minor reformatting
41897
41898 2001-12-17 Ed Schonberg <schonber@gnat.com>
41899
41900 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41901 warning if current unit is a predefined one, from which bodies may
41902 have been deleted.
41903
41904 2001-12-17 Robert Dewar <dewar@gnat.com>
41905
41906 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41907 Fix header format. Add 2001 to copyright date.
41908
41909 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41910 which caused CE during compilation if checks were enabled.
41911
41912 2001-12-17 Vincent Celier <celier@gnat.com>
41913
41914 * make.adb:
41915 (Switches_Of): New function
41916 (Test_If_Relative_Path): New procedure
41917 (Add_Switches): Use new function Switches_Of
41918 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41919 When using a project file, test if there are any relative
41920 search path. Fail if there are any.
41921 (Gnatmake): Only add switches for the primary directory when not using
41922 a project file. When using a project file, change directory to the
41923 object directory of the main project file. When using a project file,
41924 test if there are any relative search path. Fail if there are any.
41925 When using a project file, fail if specified executable is relative
41926 path with directory information, and prepend executable, if not
41927 specified as an absolute path, with the exec directory. Make sure
41928 that only one -o switch is transmitted to the linker.
41929
41930 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41931
41932 * prj-nmsc.adb:
41933 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41934 when using a non standard naming scheme.
41935 (Check_Ada_Naming_Scheme): Make sure that error messages
41936 do not raise exceptions.
41937 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41938 (Language_Independent_Check): Check the exec directory.
41939
41940 * prj.adb (Project_Empty): Add new component Exec_Directory
41941
41942 * prj.ads:
41943 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41944 (Project_Data): Add component Exec_Directory
41945
41946 * snames.adb: Updated to match snames.ads revision 1.215
41947
41948 * snames.ads: Added Exec_Dir
41949
41950 2001-12-17 Robert Dewar <dewar@gnat.com>
41951
41952 * make.adb: Minor reformatting
41953
41954 * prj-nmsc.adb: Minor reformatting
41955
41956 * snames.adb: Updated to match snames.ads
41957
41958 * snames.ads: Alphebetize entries for project file
41959
41960 2001-12-17 Ed Schonberg <schonber@gnat.com>
41961
41962 * trans.c (process_freeze_entity): Do nothing if the entity is a
41963 subprogram that was already elaborated.
41964
41965 2001-12-17 Richard Kenner <kenner@gnat.com>
41966
41967 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41968 and Esize if object is referenced via pointer.
41969
41970 2001-12-17 Ed Schonberg <schonber@gnat.com>
41971
41972 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41973 is discrete before analyzing choices.
41974
41975 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41976
41977 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41978 containing the name of the Ada Main Program. This string is mainly
41979 intended for the debugger.
41980 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41981
41982 2001-12-17 Robert Dewar <dewar@gnat.com>
41983
41984 * ali.adb: Set new Dummy_Entry field in dependency entry
41985
41986 * ali.ads: Add Dummy_Entry field to source dependency table
41987
41988 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41989
41990 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41991
41992 * lib-writ.ads: Document dummy D lines for missing files.
41993
41994 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41995
41996 2001-12-17 Robert Dewar <dewar@gnat.com>
41997
41998 * ali.adb: Type reference does not reset current file.
41999
42000 * ali.adb: Recognize and scan renaming reference
42001
42002 * ali.ads: Add spec for storing renaming references.
42003
42004 * lib-xref.ads: Add documentation for handling of renaming references
42005
42006 * lib-xref.adb: Implement output of renaming reference.
42007
42008 * checks.adb:
42009 (Determine_Range): Document local variables
42010 (Determine_Range): Make sure Hbound is initialized. It looks as though
42011 there could be a real problem here with an uninitialized reference
42012 to Hbound, but no actual example of failure has been found.
42013
42014 2001-12-17 Laurent Pautet <pautet@gnat.com>
42015
42016 * g-socket.ads:
42017 Fix comment of Shutdown_Socket and Close_Socket. These functions
42018 should not fail silently because if they are called twice, this
42019 probably means that there is a race condition in the user program.
42020 Anyway, this behaviour is consistent with the rest of this unit.
42021 When an error occurs, an exception is raised with the error message
42022 as exception message.
42023
42024 2001-12-17 Robert Dewar <dewar@gnat.com>
42025
42026 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
42027 that it happens before modification of Sloc values for -gnatD.
42028
42029 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
42030 so that it happens before modification of Sloc values for -gnatD.
42031
42032 * switch.adb: Minor reformatting
42033
42034 2001-12-15 Richard Henderson <rth@redhat.com>
42035
42036 * sem_ch7.adb: Wrap comment.
42037
42038 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42039
42040 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42041 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42042 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42043 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42044 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42045 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42046 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42047 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42048 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42049 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42050 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42051 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42052 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42053 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42054 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42055 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42056 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42057 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42058 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42059 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42060 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42061 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42062 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42063 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42064 spelling errors.
42065
42066 2001-12-14 Vincent Celier <celier@gnat.com>
42067
42068 * osint.adb(Create_Debug_File): When an object file is specified,
42069 put the .dg file in the same directory as the object file.
42070
42071 2001-12-14 Robert Dewar <dewar@gnat.com>
42072
42073 * osint.adb: Minor reformatting
42074
42075 * lib-xref.adb (Output_Instantiation): New procedure to generate
42076 instantiation references.
42077
42078 * lib-xref.ads: Add documentation of handling of generic references.
42079
42080 * ali.adb (Read_Instantiation_Ref): New procedure to read
42081 instantiation references
42082
42083 * ali.ads: Add spec for storing instantiation references
42084
42085 * bindusg.adb: Minor reformatting
42086
42087 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42088
42089 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42090
42091 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42092
42093 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42094
42095 * csets.ads:
42096 Fix header format
42097 Add 2001 to copyright date
42098 Add entry for Latin-5 (Cyrillic ISO-8859-5)
42099
42100 2001-12-14 Matt Gingell <gingell@gnat.com>
42101
42102 * adaint.c: mktemp is a macro on Lynx and can not be used as an
42103 expression.
42104
42105 2001-12-14 Richard Kenner <kenner@gnat.com>
42106
42107 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42108 if operand is CONSTRUCTOR.
42109
42110 2001-12-14 Ed Schonberg <schonber@gnat.com>
42111
42112 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42113 before emiting check on right-hand side, so that exception information
42114 is correct.
42115
42116 2001-12-14 Richard Kenner <kenner@gnat.com>
42117
42118 * utils.c (create_var_decl): Throw away initializing expression
42119 if just annotating types and non-constant.
42120
42121 2001-12-14 Vincent Celier <celier@gnat.com>
42122
42123 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42124 Default_Ada_...
42125
42126 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42127 Remove functions.
42128 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42129
42130 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42131 Remove functions.
42132 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42133
42134 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42135
42136 * ChangeLog: Remove piece of diff output.
42137
42138 2001-12-14 Geert Bosch <bosch@gnat.com>
42139
42140 * config-lang.in: Update copyright notice
42141
42142 * layout.adb: Remove commented out code.
42143
42144 * mdllfile.ads: Update copyright notice. Fix header format.
42145
42146 * sem_case.ads: Likewise.
42147
42148 * sem_ch3.adb: Minor reformatting.
42149
42150 2001-12-12 Geert Bosch <bosch@gnat.com>
42151
42152 * freeze.ads: Update copyright date.
42153
42154 * g-comlin.ads: Minor reformatting.
42155
42156 * gnat-style.texi: Fix typo.
42157
42158 2001-12-12 Geert Bosch <bosch@gnat.com>
42159
42160 * einfo.h: Regenerate.
42161
42162 2001-12-12 Ed Schonberg <schonber@gnat.com>
42163
42164 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42165 on known node types, rather than untyped fields. Further cleanups.
42166
42167 2001-12-12 Robert Dewar <dewar@gnat.com>
42168
42169 * sem_ch12.adb:
42170 (Save_Entity_Descendant): Minor comment update.
42171 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42172 of an N_Attribute_Reference node. As per note below, this does not
42173 eliminate need for Associated_Node in attribute ref nodes.
42174 (Associated_Node): Documentation explicitly mentions attribute
42175 reference nodes, since this field is used in such nodes.
42176
42177 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42178
42179 2001-12-12 Robert Dewar <dewar@gnat.com>
42180
42181 * s-stalib.adb: Add more comments on with statements being needed
42182
42183 * par-ch12.adb: Minor reformatting
42184
42185 * prj-dect.ads: Fix copyright header
42186
42187 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42188 inputs fit in 32 bits, but the result still overflows.
42189
42190 * s-fatgen.ads: Minor comment improvement
42191
42192 2001-12-12 Ed Schonberg <schonber@gnat.com>
42193
42194 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42195 formal derived type, look for an inherited component from the full
42196 view of the parent, if any.
42197
42198 2001-12-12 Robert Dewar <dewar@gnat.com>
42199
42200 * checks.ads (Apply_Alignment_Check): New procedure.
42201
42202 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42203 ensure that the alignment of objects with address clauses is
42204 appropriate, and raise PE if not.
42205
42206 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42207 Exp_Pakd.Known_Aligned_Enough
42208
42209 * mdllfile.ads: Minor reformatting
42210
42211 * mlib-fil.ads: Minor reformatting
42212
42213 2001-12-12 Ed Schonberg <schonber@gnat.com>
42214
42215 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42216 fix to any component reference if enclosing record has non-standard
42217 representation.
42218
42219 2001-12-12 Vincent Celier <celier@gnat.com>
42220
42221 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42222 Iteration
42223
42224 2001-12-12 Ed Schonberg <schonber@gnat.com>
42225
42226 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42227 sem_attr.
42228
42229 2001-12-12 Robert Dewar <dewar@gnat.com>
42230
42231 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42232
42233 2001-12-12 Emmanuel Briot <briot@gnat.com>
42234
42235 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42236 and it adds dependencies to system.io.
42237
42238 2001-12-12 Pascal Obry <obry@gnat.com>
42239
42240 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42241 variable name.
42242
42243 2001-12-11 Ed Schonberg <schonber@gnat.com>
42244
42245 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42246 that is the parent of other generics, the instance body replaces the
42247 instance node. Retrieve the instance of the spec, which is the one
42248 that is visible in clients and within the body.
42249
42250 2001-12-11 Vincent Celier <celier@gnat.com>
42251
42252 * gnatmain.adb: Initial version.
42253
42254 * gnatmain.ads: Initial version.
42255
42256 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42257
42258 * snames.adb: Updated to match snames.ads.
42259
42260 * snames.ads: Added Gnatstub.
42261
42262 2001-12-11 Vincent Celier <celier@gnat.com>
42263
42264 * prj-attr.adb (Initialization_Data): Change name from
42265 Initialisation_Data.
42266
42267 2001-12-11 Emmanuel Briot <briot@gnat.com>
42268
42269 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42270 + and * applied to backslashed expressions like \r.
42271
42272 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42273
42274 * g-os_lib.ads: String_List type added, Argument_List type is now
42275 subtype of String_List.
42276
42277 2001-12-11 Robert Dewar <dewar@gnat.com>
42278
42279 * g-os_lib.ads: Change copyright to FSF
42280 Add comments for String_List type
42281
42282 2001-12-11 Vincent Celier <celier@gnat.com>
42283
42284 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42285 string to the buffer).
42286
42287 2001-12-11 Ed Schonberg <schonber@gnat.com>
42288
42289 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42290 sem_attr.
42291
42292 * sem_attr.adb: Simplify previous fix for Address.
42293 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42294 to avoid anomalies where the bound of the type appears to raise
42295 constraint error.
42296
42297 2001-12-11 Robert Dewar <dewar@gnat.com>
42298
42299 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42300 handled.
42301
42302 2001-12-11 Ed Schonber <schonber@gnat.com>
42303
42304 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42305 renamed unit before checking for recursive instantiations.
42306
42307 2001-12-11 Emmanuel Briot <briot@gnat.com>
42308
42309 * prj.ads: Add comments for some of the fields.
42310
42311 2001-12-11 Robert Dewar <dewar@gnat.com>
42312
42313 * lib-xref.adb (Output_Refs): Don't output type references outside
42314 the main unit if they are not otherwise referenced.
42315
42316 2001-12-11 Ed Schonberg <schonber@gnat.com>
42317
42318 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42319 code and diagnose additional illegal uses
42320
42321 * sem_util.adb (Is_Object_Reference): An indexed component is an
42322 object only if the prefix is.
42323
42324 2001-12-11 Vincent Celier <celier@gnat.com>
42325
42326 * g-diopit.adb: Initial version.
42327
42328 * g-diopit.ads: Initial version.
42329
42330 * g-dirope.adb:
42331 (Expand_Path): Avoid use of Unbounded_String
42332 (Find, Wildcard_Iterator): Moved to child package Iteration
42333
42334 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42335
42336 2001-12-11 Robert Dewar <dewar@gnat.com>
42337
42338 * sem_attr.adb: Minor reformatting
42339
42340 2001-12-11 Ed Schonberg <schonber@gnat.com>
42341
42342 * sem_ch3.adb: Clarify some ???.
42343
42344 2001-12-11 Robert Dewar <dewar@gnat.com>
42345
42346 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42347 Exp_Pakd.Known_Aligned_Enough
42348
42349 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42350 version is moved to Exp_Ch13.
42351
42352 2001-12-11 Robert Dewar <dewar@gnat.com>
42353
42354 * einfo.ads: Minor reformatting
42355
42356 * exp_ch5.adb: Add comment for previous.change
42357
42358 * ali.adb: New interface for extended typeref stuff.
42359
42360 * ali.ads: New interface for typeref stuff.
42361
42362 * checks.adb (Apply_Alignment_Check): New procedure.
42363
42364 * debug.adb: Add -gnatdM for modified ALI output
42365
42366 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42367
42368 * lib-xref.adb: Extend generation of <..> notation to cover
42369 subtype/object types. Note that this is a complete rewrite,
42370 getting rid of the very nasty quadratic algorithm previously
42371 used for derived type output.
42372
42373 * lib-xref.ads: Extend description of <..> notation to cover
42374 subtype/object types. Uses {..} for these other cases.
42375 Also use (..) for pointer types.
42376
42377 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42378
42379 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42380 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42381
42382 2001-12-11 Vincent Celier <celier@gnat.com>
42383
42384 * gnatcmd.adb:
42385 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42386 Changed /BIND_ONLY to /ACTIONS=BIND
42387 Changed /LINK_ONLY to /ACTIONS=LINK
42388
42389 2001-12-11 Ed Schonberg <schonber@gnat.com>
42390
42391 * sem_ch8.adb (Find_Selected_Component): improved search for a
42392 candidate package in case of error.
42393
42394 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42395 chain back on scope stack before reinstalling use clauses.
42396
42397 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42398 is enabled, do not kill the code for the condition, to preserve
42399 warning.
42400
42401 2001-12-11 Robert Dewar <dewar@gnat.com>
42402
42403 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42404 of conversion, not to result of conversion.
42405
42406 2001-12-11 Ed Schonberg <schonber@gnat.com>
42407
42408 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42409 before freezing parent. If the declarations are mutually recursive,
42410 an access to the current record type may be frozen before the
42411 derivation is complete.
42412
42413 2001-12-05 Vincent Celier <celier@gnat.com>
42414
42415 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42416 -c /COMPILE_ONLY, -l /LINK_ONLY
42417
42418 * opt.ads:
42419 (Bind_Only): New Flag
42420 (Link_Only): New flag
42421
42422 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42423 and -l (Link_Only)
42424
42425 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42426
42427 * make.adb:
42428 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42429 (Gnatmake): Set the step flags. Only perform a step if the
42430 corresponding step flag is True.
42431 (Scan_Make_Arg): Reset the bind and link step flags when -u
42432 or -gnatc has been specified.
42433
42434 2001-12-05 Ed Schonberg <schonber@gnat.com>
42435
42436 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42437 get bounds from right operand.
42438
42439 * sem_eval.adb: Minor reformatting
42440
42441 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42442 than Index'First, its lower bound may be different from 1.
42443
42444 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42445 and C48009J
42446
42447 2001-12-05 Vincent Celier <celier@gnat.com>
42448
42449 * prj-nmsc.adb Minor reformatting
42450
42451 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42452 set and libraries are not supported.
42453
42454 2001-12-05 Ed Schonberg <schonber@gnat.com>
42455
42456 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42457 private view explicitly, so the back-end can treat as a global
42458 when appropriate.
42459
42460 2001-12-05 Ed Schonberg <schonber@gnat.com>
42461
42462 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42463 unit, always replace instance node with new body, for ASIS use.
42464
42465 2001-12-05 Vincent Celier <celier@gnat.com>
42466
42467 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42468 libraries are not supported and both attributes Library_Name and
42469 Library_Dir are specified.
42470
42471 * prj-proc.adb (Expression): Set location of Result to location of
42472 first term.
42473
42474 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42475 (prj-nmsc is now importing MLib.Tgt)
42476
42477 * prj-proc.adb: Put the change indicated above that was forgotten.
42478
42479 2001-12-05 Robert Dewar <dewar@gnat.com>
42480
42481 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42482
42483 2001-12-05 Ed Schonberg <schonber@gnat.com>
42484
42485 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42486 constraint, introduce explicit subtype declaration and derive from it.
42487
42488 * sem_ch3.adb: Minor reformatting
42489
42490 2001-12-05 Robert Dewar <dewar@gnat.com>
42491
42492 * checks.adb (Determine_Range): Increase cache size for checks.
42493 Minor reformatting
42494
42495 * exp_ch6.adb: Minor reformatting
42496 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42497 a parameter whose root type is System.Address, since treating such
42498 subprograms as pure in the code generator is almost surely a mistake
42499 that will lead to unexpected results.
42500
42501 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42502 change handling of conversions.
42503
42504 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42505
42506 2001-12-05 Ed Schonberg <schonber@gnat.com>
42507
42508 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42509 aggregate with static wrong size, attach generated Raise node to
42510 declaration.
42511
42512 2001-12-05 Robert Dewar <dewar@gnat.com>
42513
42514 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42515 Fixes compilation abandoned bomb in B24009B.
42516
42517 2001-12-05 Ed Schonberg <schonber@gnat.com>
42518
42519 * sem_ch12.adb:
42520 Document use of Associated_Node on Selected_Components.
42521 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42522 to clarify use of untyped descendant fields.
42523
42524 2001-12-05 Robert Dewar <dewar@gnat.com>
42525
42526 * prj-dect.ads: Add ??? comment
42527 Add 2001 to copyright notice (was not done in after all)
42528
42529 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42530
42531 * prj.ads: Minor reformatting throughout, and add some ??? comments
42532
42533 * snames.ads: Minor reformatting
42534
42535 2001-12-05 Geert Bosch <bosch@gnat.com>
42536
42537 * snames.adb: Autoupdate
42538
42539 2001-12-05 Vincent Celier <celier@gnat.com>
42540
42541 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42542
42543 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42544
42545 * prj-env.adb: Minor comment changes (modifying -> extends).
42546
42547 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42548
42549 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42550 Tok_Extends.
42551
42552 * prj.adb (Initialize): Change Modifying to Extends.
42553
42554 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42555
42556 * prj.ads: Minor comment change (Modifying -> extending).
42557
42558 * snames.ads: Change modifying to extends.
42559
42560 2001-12-05 Robert Dewar <dewar@gnat.com>
42561
42562 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42563 do this after all.
42564
42565 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42566 do this after all. Add 2001 to copyright notice
42567
42568 2001-12-04 Geert Bosch <bosch@gnat.com>
42569
42570 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42571
42572 2001-12-04 Robert Dewar <dewar@gnat.com>
42573
42574 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42575 location if we already have errors. Stops some cases of cascaded
42576 errors.
42577
42578 * errout.adb: Improve comment.
42579
42580 2001-12-04 Robert Dewar <dewar@gnat.com>
42581
42582 * sem_ch12.adb:
42583 (Analyze_Formal_Type_Definition): Defend against Error.
42584 (Analyze_Formal_Subprogram): Defend against Error.
42585
42586 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42587 remove following semicolon if present. Removes cascaded error.
42588
42589 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42590
42591 * bindgen.adb:
42592 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42593 exceptions equals 0.
42594 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42595 Fixes PIWG E tests (which have to be run with -gnatL).
42596
42597 2001-12-04 Robert Dewar <dewar@gnat.com>
42598
42599 * einfo.ads: Minor reformatting
42600
42601 2001-12-04 Ed Schonberg <schonber@gnat.com>
42602
42603 * einfo.ads: Block_Node points to the identifier of the block, not to
42604 the block node itself, to preserve the link when the block is
42605 rewritten, e.g. within an if-statement with a static condition.
42606
42607 * inline.adb (Cleanup_Scopes): recover block statement from block
42608 entity using new meaning of Block_Node.
42609
42610 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42611 identifier of block node, rather than to node itself.
42612
42613 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42614
42615 * layout.adb:
42616 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42617 (Discrimify): Go back to setting the Etypes of the selected component
42618 because the Vname component does not exist at this point and will
42619 fail name resolution. Also set Analyzed.
42620 Remove with and use of Sem_Res.
42621
42622 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42623
42624 * Makefile.in: (HIE_SOURCES): add s-fat*.
42625
42626 2001-12-04 Robert Dewar <dewar@gnat.com>
42627
42628 * sem_attr.adb:
42629 (Compile_Time_Known_Attribute): New procedure.
42630 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42631 proper range check.
42632
42633 2001-12-04 Ed Schonberg <schonber@gnat.com>
42634
42635 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42636 processing discriminants to diagnose illegal default values.
42637
42638 2001-12-04 Ed Schonberg <schonber@gnat.com>
42639
42640 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42641 access discriminant within a type extension that constrains its
42642 parent discriminants.
42643
42644 2001-12-04 Ed Schonberg <schonber@gnat.com>
42645
42646 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42647 is malformed, use instance of Any_Id to allow analysis to proceed.
42648
42649 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42650 type definition is illegal.
42651 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42652 misplaced.
42653
42654 2001-12-04 Ed Schonberg <schonber@gnat.com>
42655
42656 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42657 constants.
42658
42659 2001-12-04 Robert Dewar <dewar@gnat.com>
42660
42661 * errout.adb: Minor reformatting
42662
42663 2001-12-04 Robert Dewar <dewar@gnat.com>
42664
42665 * exp_util.adb: Minor reformatting from last change
42666
42667 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42668 which is a rewriting of an expression, traverse the original
42669 expression to remove warnings that may have been posted on it.
42670
42671 2001-12-04 Ed Schonberg <schonber@gnat.com>
42672
42673 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42674 record that has other packed components.
42675
42676 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42677
42678 * adaint.c: Minor cleanups.
42679
42680 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42681
42682 * adaint.c: Do not use utime.h on vxworks.
42683
42684 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42685
42686 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42687 more confusion than it solves.
42688
42689 2001-12-04 Geert bosch <bosch@gnat.com>
42690
42691 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42692
42693 2001-12-04 Geert Bosch <bosch@gnat.com>
42694
42695 * Makefile.in (update-sources): New target.
42696 For use by gcc_release script.
42697
42698 2001-12-04 Ed Schonberg <schonber@gnat.com>
42699
42700 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42701 a configuration pragma, it is now legal wherever a pragma can appear.
42702
42703 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42704
42705 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42706 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42707 is now @CROSS@ -DIN_GCC; update comment.
42708
42709 2001-12-04 Robert Dewar <dewar@gnat.com>
42710
42711 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42712 Fix problem that stopped ceinfo from working
42713
42714 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42715
42716 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42717
42718 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42719
42720 * gnatchop.adb:
42721 (File_Time_Stamp): New procedure.
42722 (Preserve_Mode): New boolean.
42723 (Write_Unit): Pass time stamp.
42724 Implement -p switch (preserve time stamps).
42725
42726 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42727
42728 * gnatchop.adb: Do usage info for -p switch
42729
42730 * adaint.h (__gnat_set_file_time_name): New function
42731
42732 * adaint.c (__gnat_set_file_time_name): Implement
42733
42734 * adaint.h: Fix typo
42735
42736 2001-12-03 Robert Dewar <dewar@gnat.com>
42737
42738 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42739 have Associated_Node.
42740
42741 2001-12-03 Robert Dewar <dewar@gnat.com>
42742
42743 * prj-proc.adb: Minor reformatting
42744
42745 * make.adb: Minor reformatting
42746
42747 2001-12-03 Geert Bosch <bosch@gnat.com>
42748
42749 * make.adb: Minor reformatting.
42750
42751 2001-12-03 Robert Dewar <dewar@gnat.com>
42752
42753 * sem_ch12.adb: Minor reformatting
42754
42755 2001-12-03 Ed Schonberg <schonber@gnat.com>
42756
42757 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42758 push Standard on the stack before analyzing the instance body,
42759 in order to have a clean visibility environment.
42760
42761 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42762
42763 2001-12-03 Ed Schonberg <schonber@gnat.com>
42764
42765 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42766 instantiation of a body that contains an inlined body.
42767
42768 2001-12-03 Ed Schonberg <schonber@gnat.com>
42769
42770 * sem_ch12.adb:
42771 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42772 to prevent freezing within formal packages.
42773 (Freeze_Subprogram_Body): If body comes from another instance that
42774 appeared before its own body, place freeze node at end of current
42775 declarative part, to prevent a back-end crash.
42776 (Inline_Instance_Body): Handle properly a package instance within
42777 a subprogram instance that is a child unit.
42778
42779 2001-12-01 Graham Stott <grahams@redhat.com>
42780
42781 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42782 and add optabs.h dependency.
42783
42784 * misc.c: Include optabs.h
42785 (gnat_tree_code_type): Make static and const.
42786 (gnat_tree_code_length): Likewise.
42787 (gnat_tree_code_name): Likewise.
42788 (update_setjmp_buf): Obtain operands mode from insn_data.
42789
42790 2001-11-29 Richard Henderson <rth@redhat.com>
42791
42792 * init.c: Remove obsolete dwarf2 frame.h section.
42793
42794 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42795
42796 * Make-lang.in (ada.generated-manpages): New dummy target.
42797
42798 2001-11-29 Ed Schonberg <schonber@gnat.com>
42799
42800 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42801 into Command, an array conversion is illegal here. Uncovered by
42802 ACATS B460005.
42803
42804 2001-11-28 Geert Bosch <bosch@gnat.com>
42805
42806 * init.c: Minor whitespace changes.
42807
42808 2001-11-28 Doug Rupp <rupp@gnat.com>
42809
42810 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42811 signal stack.
42812
42813 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42814
42815 * misc.c (gnat_expand_constant): Move declaration above
42816 definition of lang_hooks.
42817 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42818 (gnat_init): lang_expand_constant no longer exists.
42819
42820 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42821 always have vprintf.
42822 (gnat_init): Always call set_internal_error_function.
42823
42824 2001-11-27 Andreas Jaeger <aj@suse.de>
42825
42826 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42827
42828 2001-11-27 Laurent Guerby <guerby@acm.org>
42829
42830 * Makefile.in: Regenerate Ada dependencies.
42831
42832 2001-11-26 Richard Henderson <rth@redhat.com>
42833
42834 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42835 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42836 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42837
42838 2001-11-25 Laurent Guerby <guerby@acm.org>
42839
42840 * sysdep.c (rts_get_*): Fix style.
42841
42842 2001-11-19 Laurent Guerby <guerby@acm.org>
42843
42844 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42845 since it is of no apparent use and cause warnings.
42846
42847 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42848
42849 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42850 static too.
42851 (gnat_init): Don't return NULL.
42852 (finish_parse): Remove.
42853
42854 2001-11-17 Laurent Guerby <guerby@acm.org>
42855
42856 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42857 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42858 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42859 * lang-spec.h: Add missing struct field to silence warnings.
42860 * sysdep.c (rts_get_*): Provide K&R prototype.
42861 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42862 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42863 * tracebak.c (__gnat_backtrace): Remove unused variable.
42864 * utils.c (end_subprog_body): Move to K&R style.
42865
42866 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42867
42868 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42869
42870 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42871
42872 * misc.c (gnat_init): Change prototype. Include the
42873 functionality of the old init_parse and init_decl_processing.
42874 (gnat_init_decl_processing): New prototype.
42875 (init_parse): Remove.
42876 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42877
42878 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42879
42880 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42881 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42882 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42883 set_yydebug): Remove.
42884
42885 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42886
42887 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42888 (struct lang_hooks): Constify.
42889 (language_string, lang_identify): Remove.
42890 * utils.c (init_decl_processing): Update.
42891
42892 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42893
42894 * misc.c: Include langhooks-def.h.
42895 * Makefile.in: Update.
42896
42897 2001-10-30 Robert Dewar <dewar@gnat.com>
42898
42899 * style.adb:
42900 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42901 in the upper half of ASCII.
42902 (Check_Identifier): Minor reformatting
42903
42904 2001-10-30 Geert Bosch <bosch@gnat.com>
42905
42906 * (Associated_Node, Set_Associated_Node): Do not check for
42907 Freeze_Entity.
42908
42909 2001-10-30 Robert Dewar <dewar@gnat.com>
42910
42911 * a-reatim.ads: Minor reformatting
42912
42913 2001-10-30 Robert Dewar <dewar@gnat.com>
42914
42915 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42916 undocumented declarations.
42917
42918 2001-10-30 Pascal Obry <obry@gnat.com>
42919
42920 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42921 to the binder and linker.
42922 Minor style fix.
42923
42924 * mdll.ads: Fix layout. Update copyright notice.
42925
42926 * mdll.adb: Fix layout. Update copyright notice.
42927
42928 2001-10-30 Robert Dewar <dewar@gnat.com>
42929
42930 * usage.adb: Minor fix to output for -gnaty.
42931
42932 2001-10-30 Ed Schonberg <schonber@gnat.com>
42933
42934 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42935 to accommodate all its possible values.
42936
42937 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42938 and of small absolute values of T.
42939
42940 2001-10-30 Richard Kenner <kenner@gnat.com>
42941
42942 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42943 set_mem_attributes since not needed and wrong if RESULT if a REG;
42944 fixes ACATS failures.
42945
42946 2001-10-30 Geert Bosch <bosch@gnat.com>
42947
42948 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42949 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42950
42951 2001-10-30 Robert Dewar <dewar@gnat.com>
42952
42953 * bindusg.adb: Undocument -f switch.
42954
42955 * gnatcmd.adb: Remove /FULL_ELABORATION.
42956
42957 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42958 obsolescent.
42959
42960 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42961
42962 * gnatbind.adb: Minor update of warning msg.
42963
42964 2001-10-30 Vincent Celier <celier@gnat.com>
42965
42966 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42967 for project file switches (-P (/PROJECT_FILE=),
42968 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42969 or MEDIUM or HIGH)
42970
42971 2001-10-30 Geert Bosch <bosch@gnat.com>
42972
42973 * decl.c: Minor whitespace fixes.
42974
42975 2001-10-30 Richard Kenner <kenner@gnat.com>
42976
42977 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42978
42979 2001-10-30 Geert Bosch <bosch@gnat.com>
42980
42981 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42982 Found due to GCC 3.0 warning of using uninitialized value.
42983
42984 * layout.adb:
42985 (Get_Max_Size): Use variant record for tracking value/expression.
42986 Makes logic clearer and prevents warnings for uninitialized variables.
42987 (Layout_Array_Type): Use variant record for tracking value/expression.
42988 Makes logic clearer and prevents warnings for uninitialized variables.
42989
42990 2001-10-30 Robert Dewar <dewar@gnat.com>
42991
42992 * lib.adb: Minor reformatting
42993
42994 * s-taprop.ads: Minor reformatting
42995
42996 2001-10-29 Laurent Guerby <guerby@acm.org>
42997
42998 * init.c:
42999 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
43000 const.
43001 (_gnat_error_handler): Make MSG const.
43002
43003 2001-10-29 Richard Kenner <kenner@gnat.com>
43004
43005 * sysdep.c: Fix localtime_r problem on LynxOS.
43006 Also remove #elif to avoid warnings.
43007
43008 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
43009 used by this.
43010
43011 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
43012
43013 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
43014
43015 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
43016 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
43017 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
43018 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
43019 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
43020 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
43021 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
43022 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
43023 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
43024 types.ads, urealp.adb: Fix spelling errors.
43025
43026 2001-10-27 Laurent Guerby <guerby@acm.org>
43027
43028 * trans.c (gigi): Fix non determinism leading to bootstrap
43029 comparison failures for debugging information.
43030
43031 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
43032
43033 * gnat_rm.texi: Use @./@: where appropriate.
43034
43035 2001-10-26 Robert Dewar <dewar@gnat.com>
43036
43037 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
43038
43039 2001-10-26 Richard Kenner <kenner@gnat.com>
43040
43041 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43042
43043 2001-10-26 Richard Kenner <kenner@gnat.com>
43044
43045 * decl.c (validate_size): Modify message for bad size to avoid
43046 implication that compiler is modifying the size.
43047
43048 2001-10-26 Robert Dewar <dewar@gnat.com>
43049
43050 * prj-util.adb: Minor reformatting. Fix bad header format.
43051
43052 2001-10-26 Robert Dewar <dewar@gnat.com>
43053
43054 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
43055
43056 * sinfo.ads: Clarify use of Associated_Node (documentation only).
43057
43058 * sem_ch12.adb: Change Node4 to Associated_Node. Change
43059 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
43060 much more narrowly in places where needed. These are cleanups.
43061
43062 2001-10-26 Joel Brobecker <brobecke@gnat.com>
43063
43064 * 5zosinte.ads (null_pthread): new constant.
43065
43066 * 5ztaprop.adb:
43067 (Initialize_TCB): Initialize thread ID to null, to be able to verify
43068 later that this field has been set.
43069 (Finalize_TCB): ditto.
43070 (Suspend_Task): Verify that the thread ID is not null before using it.
43071 (Resume_Task): ditto.
43072
43073 * s-tasdeb.adb:
43074 (Resume_All_Tasks): Lock the tasks list before using it.
43075 (Suspend_All_Tasks): ditto.
43076
43077 2001-10-26 Richard Kenner <kenner@gnat.com>
43078
43079 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43080 Make constant variant of designated type for Is_Access_Constant.
43081 Call update_pointer_to with main variant.
43082
43083 * trans.c (process_freeze_entity, process_type):
43084 Call update_pointer_to on main variant.
43085
43086 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43087 If main variant, update all other variants.
43088
43089 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43090 TREE_STATIC.
43091
43092 2001-10-26 Robert Dewar <dewar@gnat.com>
43093
43094 * prj-util.adb: Minor reformatting
43095
43096 2001-10-26 Robert Dewar <dewar@gnat.com>
43097
43098 * prj-util.adb: Minor reformatting
43099
43100 2001-10-26 Robert Dewar <dewar@gnat.com>
43101
43102 * prj-attr.adb: Minor reformatting throughout
43103
43104 2001-10-26 Robert Dewar <dewar@gnat.com>
43105
43106 * prj-attr.ads: Minor reformatting
43107 Add ??? comment (this whole spec has almost no comments)
43108
43109 2001-10-26 Vincent Celier <celier@gnat.com>
43110
43111 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43112 ("//") that precede the drive letter on Interix.
43113
43114 2001-10-26 Geert Bosch <bosch@gnat.com>
43115
43116 * gnat_rm.texi: Add GNAT Reference Manual.
43117
43118 2001-10-25 Robert Dewar <dewar@gnat.com>
43119
43120 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43121 is Error. Similar change for other renaming cases.
43122
43123 2001-10-25 Robert Dewar <dewar@gnat.com>
43124
43125 * s-atacco.ads: Add pragma Inline_Always for functions.
43126 Fix header format. Add copyright 2001
43127
43128 2001-10-25 Ed Schonberg <schonber@gnat.com>
43129
43130 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43131 return Error rather than Empty so that analysis can proceed.
43132
43133 2001-10-25 Ed Schonberg <schonber@gnat.com>
43134
43135 * sem_util.adb (Enter_Name): better handling of cascaded error
43136 messages when a unit appears in its own context.
43137
43138 2001-10-25 Ed Schonberg <schonber@gnat.com>
43139
43140 * sem_util.adb (Defining_Entity): in case of error, attach created
43141 entity to specification, so that semantic analysis can proceed.
43142
43143 2001-10-25 Robert Dewar <dewar@gnat.com>
43144
43145 * sem_util.adb
43146 (Defining_Entity): Deal with Error.
43147 (Process_End_Label): Deal with bad end label for.
43148
43149 2001-10-25 Ed Schonberg <schonber@gnat.com>
43150
43151 * sem_elab.adb (Check_A_Call): refine message when call is in an
43152 instance but callee is not declared in the generic unit.
43153
43154 2001-10-25 Ed Schonberg <schonber@gnat.com>
43155
43156 * sem_elab.adb (Check_A_Call): check for renaming before finding the
43157 enclosing unit, which may already be different from the calling unit.
43158
43159 2001-10-25 Geert Bosch <bosch@gnat.com>
43160
43161 * 4gintnam.ads: fix header format.
43162
43163 2001-10-25 Ed Schonberg <schonber@gnat.com>
43164
43165 * sem_res.adb (Resolve_Call): if the call is actually an indexing
43166 operation on the result of a parameterless call, perform elaboration
43167 check after the node has been properly rewritten.
43168
43169 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43170 inlined within the generic tree, the defining identifier is not a
43171 compilation_unit.
43172
43173 2001-10-25 Ed Schonberg <schonber@gnat.com>
43174
43175 * sem_res.adb (Resolve): special-case resolution of Null in an
43176 instance or an inlined body to avoid view conflicts.
43177
43178 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43179 compatibility by retrieving the access type of the generic copy.
43180
43181 2001-10-25 Robert Dewar <dewar@gnat.com>
43182
43183 * sem_ch3.adb:
43184 (Analyze_Number_Declaration): Handle error expression.
43185 (Signed_Integer_Type_Declaration): Handle error bound.
43186 (Analyze_Subtype_Indication): Handle error range.
43187
43188 * sem_util.adb (Get_Index_Bounds): Check for Error.
43189
43190 2001-10-25 Robert Dewar <dewar@gnat.com>
43191
43192 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43193 in no run time mode.
43194
43195 2001-10-25 Pascal Obry <obry@gnat.com>
43196
43197 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43198 mode case for ALLOC case.
43199
43200 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43201 all platforms. Improvement of last change.
43202
43203 2001-10-25 Robert Dewar <dewar@gnat.com>
43204
43205 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43206
43207 2001-10-25 Geert Bosch <bosch@gnat.com>
43208
43209 * osint.adb (Is_Relative): Remove duplicate.
43210
43211 2001-10-25 Pascal Obry <obry@gnat.com>
43212
43213 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43214 pathnames in UNIX and DOS style with drive letter.
43215 (Is_Relative): new routine.
43216
43217 * osint.adb: Minor reformatting
43218
43219 * osint.adb (Is_Relative): implementation using
43220 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43221
43222 2001-10-25 Pascal Obry <obry@gnat.com>
43223
43224 * g-dirope.adb (Basename): correctly compute offset between the
43225 original Path and the translated one.
43226
43227 * g-dirope.adb: (Base_Name): add some comments.
43228
43229 2001-10-25 Robert Dewar <dewar@gnat.com>
43230
43231 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43232 in HIE mode, avoids compilation abandoned message
43233
43234 * exp_imgv.adb: Correct typo in previous change
43235
43236 * exp_imgv.adb: Correct typo in previous change (not my day!)
43237
43238 2001-10-25 Robert Dewar <dewar@gnat.com>
43239
43240 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43241
43242 2001-10-25 Pascal Obry <obry@gnat.com>
43243
43244 * g-awk.ads: Move all pragma inlines next to the routine
43245 declarations. This is more uniform with other GNAT spec.
43246
43247 2001-10-22 Geert Bosch <bosch@gnat.com>
43248
43249 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43250
43251 2001-10-19 Geert Bosch <bosch@gnat.com>
43252
43253 * Makefile.in (tools, gnattools): Remove gnatmem.
43254
43255 2001-10-17 Richard Henderson <rth@redhat.com>
43256
43257 * Makefile.in (misc.o): Depend on langhooks.h.
43258 * misc.c: Include it.
43259 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43260 (LANG_HOOKS_DECODE_OPTION): New.
43261 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43262
43263 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43264
43265 * trans.c (tree_transform): Adjust to recent change in
43266 expand_asm_operands to implement named asm operands.
43267
43268 2001-10-11 Ed Schonberg <schonber@gnat.com>
43269
43270 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43271 renaming of discriminant for mutable record type.
43272
43273 2001-10-11 Robert Dewar <dewar@gnat.com>
43274
43275 * validsw.adb: Properly save -gnatVn status.
43276
43277 2001-10-11 Robert Dewar <dewar@gnat.com>
43278
43279 * usage.adb: Add lines for V switch.
43280
43281 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43282 (/VALIDITY_CHECKING).
43283
43284 2001-10-11 Ed Schonberg <schonber@gnat.com>
43285
43286 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43287 an extension of System is known to be visible.
43288
43289 2001-10-11 Ed Schonberg <schonber@gnat.com>
43290
43291 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43292 properly. Fixes regression on ACATS C34005G.
43293
43294 2001-10-11 Robert Dewar <dewar@gnat.com>
43295
43296 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43297 loop in generic instance, since this is likely not very useful.
43298
43299 2001-10-11 Robert Dewar <dewar@gnat.com>
43300
43301 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43302 the error message for high integrity mode.
43303
43304 * rtsfind.adb (RTE): Give message if we try to find an entity that
43305 is not available in high integrity mode.
43306
43307 * rtsfind.ads:
43308 (OK_To_Use_In_HIE_Mode): New array.
43309 (RTE): May return Empty in high integrity mode.
43310
43311 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43312 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43313
43314 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43315 unit if not inlined always and in no runtime mode. Fixes problem
43316 caused by new Rtsfind changes.
43317
43318 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43319 body is deleted.
43320
43321 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43322 giving message for entity not available in high integrity mode.
43323
43324 2001-10-11 Pascal Obry <obry@gnat.com>
43325
43326 * impunit.adb: Add GNAT.CRC32.
43327
43328 2001-10-11 Ed Schonberg <schonber@gnat.com>
43329
43330 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43331 properly the case where one universal operand in a non-static
43332 exponentiation of a real literal.
43333
43334 2001-10-11 Ed Schonberg <schonber@gnat.com>
43335
43336 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43337 clause, return the gobal finalization list, for lack of anthing else.
43338
43339 2001-10-11 Ed Schonberg <schonber@gnat.com>
43340
43341 * exp_ch7.adb (Make_Transient_Block): if statement is within
43342 exception handler, always use new transient scope to place Clean
43343 procedure.
43344
43345 2001-10-11 Pascal Obry <obry@gnat.com>
43346
43347 * Makefile.in:
43348 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43349 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43350 (GNATLS_RTL_OBJS): add g-crc32.o
43351 (GNATMAKE_RTL_OBJS): add g-crc32.o
43352
43353 * ali-util.adb:
43354 (CRC_Match): new function.
43355 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43356 instead of the previous simple checksum algorithm.
43357 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43358 (Set_Source_Table): idem.
43359
43360 * ali-util.ads:
43361 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43362 instead of simple checksum.
43363 (CRC_Match): new function.
43364 (CRC_Error): new constant.
43365
43366 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43367 a CRC now and not a simple checksum. A CRC uses lower-case hex
43368 letters, fixes ambiguity in parsing.
43369
43370 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43371 is what this variable will store.
43372
43373 * bcheck.adb: Change reference to chechsum in comments by CRC.
43374 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43375 rename All_Checksum_Match to All_CRC_Match. Change due to API
43376 renaming since now GNAT does not use a simple checksum but a
43377 CRC using GNAT.CRC32.
43378
43379 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43380 now and not anymore a simple checksum.
43381
43382 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43383 places.
43384
43385 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43386
43387 * scans.adb:
43388 (Restore_Scan_State): rename Checksum to CRC.
43389 (Save_Scan_State): idem.
43390
43391 * scans.ads:
43392 With GNAT.CRC32.
43393 (Checksum): rename to CRC.
43394 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43395
43396 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43397 GNAT.CRC32). Update copyright notice.
43398
43399 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43400 GNAT.CRC32). Update copyright notice.
43401
43402 * scn.adb:
43403 (Accumulate_Checksum): removed.
43404 (Update): new procedure. Add a wide-character into the CRC.
43405
43406 * sinput-l.adb:
43407 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43408 (Load_File): fix initialization of S (change Source_Checksum to
43409 Source_CRC)
43410
43411 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43412 Source_CRC in S initialization.
43413
43414 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43415
43416 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43417 Update comments for the CRC.
43418
43419 * types.adb (Hex): Use lowercase for the letter part.
43420
43421 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43422 for a word. This is currently used only for CRC. In previous version,
43423 the checksum was using a representation with all letter being
43424 upper-case. With the new implementation (using CRC) we do not remove
43425 the 32th bit of the CRC, so we can have an upper-case starting letter
43426 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43427 It is ambigous since the CRC was optional and could be followed by
43428 options like EB, EE. So now this routines uses lower-case letter for
43429 the hexadecimal representation. Strange enough only lower case letters
43430 where checked in Scan_ALI (even if this was not a possible case).
43431
43432 * gnatvsn.ads (Library_Version): changed to 3.15a.
43433
43434 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43435 for the compiler.
43436
43437 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43438 for the compiler.
43439
43440 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43441 Add 2001 to copyright notice
43442 (Accumulate_Checksum): Modify to use System.CRC32.
43443
43444 * ali-util.ads: Redo changes of previous revision to continue to use
43445 the word Checksum. Add 2001 to copyright notice.
43446
43447 * ali.adb: Undo some of previous changes, not needed.
43448 Keep the change for lower case letters in the checksum.
43449
43450 * ali.ads: Undo previous change not needed.
43451
43452 * bcheck.adb: Undo most of previous change, not needed.
43453 But do use Checksums_Match for checksum comparison.
43454
43455 * gnatls.adb: Undo most of previous change, not needed.
43456 But do use Checksums_Match for comparing checksums.
43457
43458 * lib-load.adb: Undo previous change, not needed.
43459
43460 * lib-writ.adb: Undo previous change, not needed.
43461
43462 * lib-writ.ads: Document that checksums use lower case,
43463 not upper case letters.
43464
43465 * scans.adb: Undo previous change, not needed
43466
43467 * scans.ads: Undo previous change, not needed.
43468
43469 * scn-nlit.adb: Undo previous changes, not needed.
43470
43471 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43472
43473 * scn.adb:
43474 (Accumulate_Checksum): Use System.CRC32.
43475 (Initialize_Checksum): New procedure.
43476 Remove other changes of previous revision.
43477
43478 * sinput-p.adb: Undo previous change, not needed.
43479
43480 * sinput.adb: Undo previous change, not needed.
43481
43482 * sinput-l.adb: Undo previous change, not needed.
43483
43484 * sinput.ads: Undo previous change, not needed. Keep only comment
43485 on new checksum algorithm
43486
43487 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43488 Also remove a-tags and a-stream from GNAT sources.
43489
43490 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43491
43492 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43493
43494 2001-10-11 Geert Bosch <bosch@gnat.com>
43495
43496 * einfo.h: Regenerate.
43497
43498 * nmake.ads: Regenerate.
43499
43500 * nmake.adb: Regenerate.
43501
43502 * sinfo.h: Regenerate.
43503
43504 * treeprs.adb: Regenerate.
43505
43506 2001-10-10 Geert Bosch <bosch@gnat.com>
43507
43508 * gnat-style.texi: New file describing coding guidelines for Ada.
43509
43510 2001-10-10 Ed Schonberg <schonber@gnat.com>
43511
43512 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43513 is Flag174.
43514
43515 2001-10-10 Geert Bosch <bosch@gnat.com>
43516
43517 * snames.ads: Add new names for project facility.
43518
43519 * snames.adb: Update to reflect snames.ads changes.
43520
43521 * snames.h: Update to reflect snames.ads changes.
43522
43523 2001-10-10 Vincent Celier <celier@gnat.com>
43524
43525 * make.adb:
43526 (Add_Switches): reflect the changes for the switches attributes
43527 Default_Switches indexed by the programming language,
43528 Switches indexed by the file name.
43529 (Collect_Arguments_And_Compile): Idem.
43530 Reflect the attribute name changes.
43531
43532 * prj-attr.adb:
43533 (Initialisation_Data): Change the names of some packages and
43534 attributes.
43535 (Initialize): process case insensitive associative arrays.
43536
43537 * prj-attr.ads:
43538 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43539
43540 * prj-dect.adb:
43541 (Parse_Attribute_Declaration): For case insensitive associative
43542 arrays, set the index string to lower case.
43543
43544 * prj-env.adb:
43545 Reflect the changes of the project attributes.
43546
43547 * prj-nmsc.adb:
43548 Replace Check_Naming_Scheme by Ada_Check and
43549 Language_Independent_Check.
43550
43551 * prj-nmsc.ads:
43552 Replaced Check_Naming_Scheme by 2 procedures:
43553 Ada_Check and Language_Independent_Check.
43554
43555 * prj-proc.adb:
43556 (Process_Declarative_Items): For case-insensitive associative
43557 arrays, set the index string to lower case.
43558 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43559 Prj.Nmsc.Check_Naming_Scheme.
43560
43561 * prj-tree.adb:
43562 (Case_Insensitive): New function
43563 (Set_Case_Insensitive): New procedure
43564
43565 * prj-tree.ads:
43566 (Case_Insensitive): New function
43567 (Set_Case_Insensitive): New procedure
43568 (Project_Node_Record): New flag Case_Insensitive.
43569
43570 * prj-util.adb:
43571 (Value_Of): new function to get the string value of a single
43572 string variable or attribute.
43573
43574 * prj-util.ads:
43575 (Value_Of): new function to get the string value of a single
43576 string variable or attribute.
43577
43578 * prj.adb:
43579 (Ada_Default_Spec_Suffix): New function
43580 (Ada_Default_Impl_Suffix): New function
43581 Change definitions of several constants to reflect
43582 new components of record types.
43583
43584 * prj.ads:
43585 (Naming_Data): Change several components to reflect new
43586 elements of naming schemes.
43587 (Project_Data): New flags Sources_Present and
43588 Language_Independent_Checked.
43589 (Ada_Default_Spec_Suffix): New function.
43590 (Ada_Default_Impl_Suffix): New function.
43591
43592 * snames.ads:
43593 Modification of predefined names for project manager: added
43594 Implementation, Specification_Exceptions, Implementation_Exceptions,
43595 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43596 Default_Switches, _Languages, Builder, Cross_Reference,
43597 Finder. Removed Body_Part, Specification_Append, Body_Append,
43598 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43599 Gnatlink.
43600
43601 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43602 Add comments.
43603
43604 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43605 not that it is Nil_Variable_Value.
43606
43607 * prj.ads: Add ??? for uncommented declarations
43608
43609 2001-10-10 Ed Schonberg <schonber@gnat.com>
43610
43611 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43612 constant, do not indicate possible modification, so that gigi can
43613 treat it as a bona fide constant.
43614
43615 2001-10-10 Robert Dewar <dewar@gnat.com>
43616
43617 * sem_prag.adb: Add processing for pragma External.
43618
43619 * snames.ads: Add entry for pragma External.
43620
43621 * par-prag.adb: Add pragma External.
43622
43623 * snames.adb: Updated to match snames.ads.
43624
43625 2001-10-10 Ed Schonberg <schonber@gnat.com>
43626
43627 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43628 a dynamic task if the allocator appears in an indexed assignment
43629 or selected component assignment.
43630
43631 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43632 For a dynamic task in an assignment statement, use target of
43633 assignment to generate meaningful name.
43634
43635 2001-10-10 Ed Schonberg <schonber@gnat.com>
43636
43637 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43638 a generic package.
43639
43640 * einfo.ads: Body_Entity is also defined for generic package.
43641 Documentation change only
43642
43643 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43644 others_choice for a discriminated component initialization,
43645 convert discriminant references into the corresponding discriminals.
43646
43647 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43648 only if original type is private and expression has to be wrapped
43649 in a conversion.
43650
43651 * checks.adb:
43652 (Apply_Constraint_Check): Do not perform length check
43653 if expression is an aggregate with only an others_choice.
43654 (Length_N_Cond): two references to the same in_parameter
43655 (typically the discriminal in an init_proc) denote the same value.
43656 Two useful optimization uncovered by bugfixes above.
43657
43658 2001-10-10 Robert Dewar <dewar@gnat.com>
43659
43660 * xeinfo.adb: Change int to char in translation of enumeration types.
43661 This fixes a problem in the C representation of component alignment.
43662 Add 2001 to copyright notice
43663
43664 2001-10-10 Richard Kenner <kenner@gnat.com>
43665
43666 * decl.c: (validate_size): Do check size of object of integral type
43667 if it is a packed array type.
43668
43669 2001-10-10 Richard Kenner <kenner@gnat.com>
43670
43671 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43672 VAR_DECL for constant if not Is_Public but -O0.
43673
43674 2001-10-10 Richard Kenner <kenner@gnat.com>
43675
43676 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43677
43678 2001-10-10 Geert Bosch <bosch@gnat.com>
43679
43680 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43681 use '/' as switch character, allowing for absolute file names.
43682
43683 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43684
43685 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43686 FSF address.
43687
43688 2001-10-08 Geert Bosch <bosch@gnat.com>
43689
43690 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43691 Automatically build utilities when files need to be regenerated.
43692
43693 2001-10-08 Geert Bosch <bosch@gnat.com>
43694
43695 * xsnames.adb: New utility for updating snames.ads and snames.adb
43696
43697 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43698
43699 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43700 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43701 (gnat1): Also depend on attribs.o.
43702 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43703 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43704 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43705 (ADAFLAGS): Add -W -Wall.
43706 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43707 take out CFLAGS.
43708
43709 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43710 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43711 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43712 Use $(ADAC), not $(CC), as compilation command.
43713
43714 (gnattools): Depend directly on tools to build, don't use
43715 recursive make.
43716 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43717
43718 * einfo.h, sinfo.h: New files (autogenerated).
43719
43720 2001-10-08 Richard Henderson <rth@redhat.com>
43721
43722 * comperr.adb (Abort_In_Progress): New.
43723 (Compiler_Abort): Use it to prevent recursion.
43724
43725 2001-10-08 Robert Dewar <dewar@gnat.com>
43726
43727 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43728
43729 * par-endh.adb (Output_End_Expected): We should also not test
43730 Error_Posted on the Error node, since now it is always set.
43731
43732 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43733 to help error recovery. Part of general work on 9407-004.
43734
43735 * par.adb: Add ??? for misuse of error
43736
43737 * sem_res.adb:
43738 (Resolve): Defend against Error, fixes 9407-003.
43739 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43740
43741 * sinfo.ads (N_Error): Now has Etype field (which will be set
43742 to Any_Type to help error recovery).
43743
43744 2001-10-08 Richard Kenner <kenner@gnat.com>
43745
43746 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43747 Consistently set MEM attributes from expression; fixes
43748 bootstrap failure on x86.
43749
43750 2001-10-08 Geert Bosch <bosch@gnat.com>
43751
43752 * 5oosinte.adb: Add 2001 to copyright notice.
43753
43754 2001-10-08 Geert Bosch <bosch@gnat.com>
43755
43756 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43757
43758 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43759
43760 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43761
43762 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43763
43764 2001-10-05 Geert Bosch <bosch@gnat.com>
43765
43766 * adaint.h: Small formatting fix.
43767
43768 2001-10-04 Geert Bosch <bosch@gnat.com>
43769
43770 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43771 Arg is int, not FILE *, in dummy version of functions.
43772
43773 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43774 Arg is int, not FILE *.
43775
43776 2001-10-04 Geert Bosch <bosch@gnat.com>
43777
43778 * 3lsoccon.ads: Added file, missed with initial check ins.
43779
43780 * 4lintnam.ads: Fix header format.
43781 Change Linux to GNU/Linux.
43782
43783 * 5iosinte.adb: Change Linux to GNU/Linux.
43784
43785 * 5iosinte.ads: Change Linux to GNU/Linux.
43786
43787 * 5itaprop.adb: Change Linux to GNU/Linux.
43788
43789 * 5itaspri.ads: Change Linux to GNU/Linux.
43790 Update copyright notice.
43791
43792 * 5lintman.adb: Change Linux to GNU/Linux.
43793
43794 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43795
43796 * 5losinte.ads: Change Linux to GNU/Linux.
43797
43798 * 5lsystem.ads: Change Linux to GNU/Linux.
43799
43800 * 5qosinte.adb: Change Linux to GNU/Linux.
43801
43802 * 5qosinte.ads: Change Linux to GNU/Linux.
43803
43804 * 5qparame.ads: Change Linux to GNU/Linux.
43805
43806 * 5qtaprop.adb: Change Linux to GNU/Linux.
43807
43808 * 5qtaspri.ads: Change Linux to GNU/Linux.
43809 Add 2001 to copyright notice.
43810
43811 * 5vintman.ads: Change Linux to GNU/Linux.
43812 Fix header format. Add 2001 to copyright notice.
43813
43814 * g-soccon.ads: Change Linux to GNU/Linux.
43815
43816 * g-trasym.ads: Change Linux to GNU/Linux.
43817 Add 2001 to copyright notice.
43818
43819 * memtrack.adb: Change Linux to GNU/Linux.
43820
43821 * s-intman.ads: Change Linux to GNU/Linux.
43822 Add 2001 to copyright notice. Fix header format.
43823
43824 * s-stache.adb: Change Linux to GNU/Linux.
43825
43826 * adaint.c: Change Linux to GNU/Linux.
43827
43828 * cio.c: Change Linux to GNU/Linux.
43829
43830 * cstreams.c: Change Linux to GNU/Linux.
43831
43832 * init.c: Change Linux to GNU/Linux.
43833
43834 * gmem.c: Change Linux to GNU/Linux.
43835
43836 * tracebak.c: Change Linux to GNU/Linux.
43837
43838
43839 2001-10-02 Geert Bosch <bosch@gnat.com>
43840
43841 * misc.c (insert_default_attributes): Add dummy version.