OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-03-11  Olivier Hainque  <hainque@adacore.com>
2
3         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
4         checks processing, remove unintended TREE_TYPE walk on index type.
5
6 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
7
8         PR ada/39264
9         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10         call make_packable_type on fat pointer types.
11         <E_Array_Subtype>: Likewise.
12         <E_Record_Subtype>: Call make_packable_type on all record types
13         except for fat pointer types.
14         (make_packable_type): Likewise.
15         (gnat_to_gnu_field): Likewise.
16
17 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
18
19         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
20         EH_MECHANISM change made on 2007-12-06.
21
22 2009-02-26  Andreas Schwab  <schwab@suse.de>
23
24         PR ada/39172
25         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
26         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
27         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
28         (AWK): Substitute.
29         (target_cpu_default): Substitute.
30
31 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
32
33         PR ada/39221
34         * a-teioed.adb (Expand): Fix Result overflow.
35
36 2009-02-25  Laurent GUERBY <laurent@guerby.net>
37
38         * gcc-interface/Makefile.in: Fix multilib handling for
39         sparc64-linux.
40
41 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
42
43         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
44
45 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
46
47         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
48
49 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
50
51         * gcc-interface/deftarg.c: Remove.
52
53 2009-02-10  Olivier Hainque  <hainque@adacore.com>
54             Eric Botcazou  <ebotcazou@adacore.com>
55
56         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
57         (copy_alias_set): Rename into...
58         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
59         underlying array of unconstrained arrays for the new type as well.
60         If the old and new alias sets don't conflict, make one a subset of
61         the other as per the OP parameter.
62         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
63         <E_Record_Type>: Do not copy the alias set for derived types.
64         For all types, make the alias set of derived types a superset of
65         that of their parent type.
66         (make_aligning_type): Adjust calls to copy_alias_set.
67         (make_packable_type): Likewise.
68         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
69         Check for alias set conflict instead of strict equality to issue the
70         warning.
71
72 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
73
74         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
75         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
76         (copy_alias_set): Assert that arrays have the same aliasing settings.
77         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
78
79 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
80
81         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
82         Set TYPE_NONALIASED_COMPONENT on the array type.
83
84 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
85
86         * gcc-interface/Makefile.in: Fix mipsel linux handling.
87
88 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
89
90         * gcc-interface/Makefile.in: Fix multilib handling for
91         powerpc64-linux.
92
93 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
94
95         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
96         only useless conversions around renamed objects.
97
98 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
99
100         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
101         the _Tag field before any discriminants in the field list.
102         (components_to_record): Remove obsolete comment.
103
104 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
105
106         PR ada/38450
107         * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
108         * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
109         Likewise.
110
111 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
112
113         PR bootstrap/38262
114         * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
115
116 2008-11-29  Eric Botcazou  <ebotcazou@adacore.com>
117
118         PR ada/30827
119         * g-comver.adb (Ver_Len_Max): Fix inconsistency.
120
121 2008-11-27  Eric Botcazou  <ebotcazou@adacore.com>
122
123         * gcc-interface/decl.c: Fix various nits.
124
125 2008-11-20  Eric Botcazou  <ebotcazou@adacore.com>
126
127         * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
128
129 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
130
131         PR ada/38127
132         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
133         special-case boolean types.  Propagate  the name.
134         * gcc-interface/targtyps.c: Tweak comment.
135
136 2008-11-15  Geert Bosch  <bosch@adacore.com>
137
138         * gcc-interface/trans.c (emit_check): Put back a final save_expr
139         to prevent exponential expansion during gimplification.
140
141 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
142
143         * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
144
145 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
146
147         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
148         initialized to a static constant to be statically allocated even if
149         they are of a padding type, provided the original type also has
150         constant size.
151
152 2008-11-15  Laurent Guerby  <laurent@guerby.net>
153
154         PR ada/37993
155         * gcc-interface/Makefile.in: Add multilib handling for x86_64
156         on darwin.
157         * system-darwin-x86_64.ads: New file.
158
159 2008-11-13  Olivier Hainque  <hainque@adacore.com>
160
161         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
162         Turn Ada Pure on subprograms back into GCC CONST when eh constructs
163         are explicit to the middle-end.  Tidy.
164
165 2008-11-09  Eric Botcazou  <ebotcazou@adacore.com>
166
167         * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
168         (MINUS_NOMOD_EXPR): Likewise.
169         * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
170         unreachable.
171         <PLUS_NOMOD_EXPR>: New case.
172         <MINUS_NOMOD_EXPR>: Likewise.
173         * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
174         assignment statement instead of using an increment operator.
175
176 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
177
178         * system-irix-n64.ads: New file.
179         * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
180         multilibs.
181
182 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
183
184         PR ada/37681
185         * system-solaris-x86_64.ads: New file.
186         * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
187
188 2008-11-07  Bechir Zalila  <bechir.zalila@gmail.com>
189             Eric Botcazou  <ebotcazou@adacore.com>
190
191         PR ada/34289
192         * lib.ads: (Enable_Switch_Storing): Declare.
193         * lib.adb: (Enable_Switch_Storing): New procedure.
194         * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
195         * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
196         (Display): Never display -gnatea
197         * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
198
199 2008-11-07  Thomas Quinot  <quinot@adacore.com>
200
201         * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
202         for empty range in original base type, not converted result type.
203
204 2008-11-07  Geert Bosch  <bosch@adacore.com>
205
206         * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
207         and result for call to __gnat_mulv64.
208
209 2008-11-07  Eric Botcazou  <ebotcazou@adacore.com>
210
211         * gcc-interface/trans.c: Fix formatting nits.
212
213 2008-11-07  Geert Bosch  <bosch@adacore.com>
214
215         * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
216         overflow check for constant result.
217
218 2008-11-07  Geert Bosch  <bosch@adacore.com>
219
220         * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
221         overflow check for addition/subtraction if neither operand is constant.
222
223 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
224
225         * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
226         files for the target-dependent part of the runtime.
227         (SPARC/Linux): Likewise.
228
229 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
230
231         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
232         optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
233         purposes.
234
235 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
236
237         * gcc-interface/misc.c (gnat_printable_name): Always return a copy
238         in GC memory.
239
240 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
241
242         PR ada/19419
243         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
244         Generate a call to memmove for an assignment between overlapping
245         array slices.
246
247 2008-11-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
248
249         PR target/37977
250         * gcc-interface/Makefile.in: Add multilib handling for
251         s390-linux and s390x-linux.
252
253 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
254
255         * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
256         check-acats-subtargets and check-gnat-subtargets.
257         (check_acats_targets): New variable.
258         (check-acats-subtargets, check-acats%): New targets.
259         (check-acats): If -j is used and CHAPTERS is empty, run the testing
260         in multiple make goals, possibly parallel, and afterwards run
261         dg-extract-results.sh to merge the sum and log files.
262
263 2008-10-17  Geert Bosch  <bosch@adacore.com>
264
265         * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
266         to use only a single check instead of three, and avoid unnecessary
267         COMPOUND_EXPR.
268         (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
269         creating more opportunities for optimizations.
270
271 2008-10-13  Jakub Jelinek  <jakub@redhat.com>
272
273         PR middle-end/37601
274         * gcc-interface/utils.c (gnat_types_compatible_p): Handle
275         NULL TYPE_DOMAIN.
276
277 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
278
279         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
280         dealing with volatileness to after code dealing with renaming.
281
282 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
283
284         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
285         * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
286
287 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
288
289         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
290         (unchecked_convert): Use it to disable problematic folding with
291         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
292         special VIEW_CONVERT_EXPR built for integral types and cope with
293         its addressability issues by preserving the first conversion.
294
295 2008-10-01  Andreas Schwab  <schwab@suse.de>
296
297         * system-linux-ppc64.ads: New file.
298         * gcc-interface/Makefile.in: Add multilib handling for
299         powerpc-linux.
300
301 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
302
303         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
304         to that of ptr_mode instead of word_mode.
305
306 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
307
308         PR ada/5911
309         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
310
311 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
312
313         PR ada/37641
314         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
315         instead of deprecated FILE_WRITE_PROPERTIES.
316
317 2008-09-22  Olivier Hainque  <hainque@adacore.com>
318
319         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
320         are never assigned, volatile entities are not constant for code
321         generation purposes.
322
323 2008-09-21  Laurent Guerby  <laurent@guerby.net>
324
325         PR ada/5911
326         * gcc-interface/Makefile.in: Add multilib handling for x86_64
327         and sparc.
328         * system-linux-sparcv9.ads: New file.
329
330 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
331
332         * exp_dbug.ads: Document new convention for the XVZ variable.
333         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
334         debug info if necessary for the type padding the component type.
335         <E_Array_Subtype>: Likewise.
336         (maybe_pad_type): Emit the XVZ variable in units.
337         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
338         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
339         on statements generated to initialize the parameter attributes cache.
340         Set the source line of the end label of the body on the special return
341         statement built for a procedure with copy-in copy-out parameters.
342
343 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
344
345         PR ada/37585
346         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
347         inlined external functions if they contain a nested function not
348         declared inline.
349
350 2008-09-18  Jan Hubicka  <jh@suse.cz>
351
352         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
353         (end_subprog_body): Do not set DECL_INLINE.
354
355 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
356
357         PR ada/21327
358         * gnat_ugn.texi: Use proper format in direntry.
359
360 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
361
362         * gcc-interface/trans.c (gigi): Declare the name of the compilation
363         unit as the first global name.
364
365 2008-09-14  Jan Hubicka  <jh@suse.cz>
366
367         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
368
369 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
370
371         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
372         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
373         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
374         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
375         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
376         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
377         gcc-interface/gigi.h, gcc-interface/trans.c,
378         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
379         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
380         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
381         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
382         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
383         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
384         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
385         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
386         comments.
387         * gnathtml.pl: Fix typos.
388
389 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
390
391         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
392         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
393         layer. RTEMS binds to OS provided adapter routines so there are
394         no modifications to s-osinte-rtems.adb.
395
396 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
397             Joel Sherrill  <joel.sherrill@oarcorp.com>
398
399        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
400
401        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
402
403        * s-interr-hwint.adb: New file.
404
405         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
406         needed by s-interr-hwint.adb.
407
408         * s-osinte-vxworks-kernel.adb: New file.
409
410 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
411
412         * s-stchop-rtems.adb: Add file missed in early commit.  Already
413         referenced in gcc-interface/Makefile.in.
414
415 2008-08-30  Thomas Quinot  <quinot@adacore.com>
416
417         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
418         be built even without a separate libada directory.
419
420 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
421
422         * lib-xref.ads: Fix typo in subprogram reference definition.
423
424 2008-08-22  Robert Dewar  <dewar@adacore.com>
425
426         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
427         to avoid warning.
428
429         * g-trasym.adb: Ditto
430
431         * s-utf_32.adb (Get_Category): Fix obvious typo
432
433         * s-wwdcha.adb: Minor code reorganization
434         Remove dead code
435
436 2008-08-22  Robert Dewar  <dewar@adacore.com>
437
438         * checks.adb (Determine_Range): Deal with values that might be invalid
439
440         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
441         configuration switches.
442
443         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
444
445         * sem_prag.adb: Implement pragma Assume_No_Default_Values
446
447         * snames.adb, snames.ads, snames.h:
448         Add entries for pragma Assume_No_Invalid_Values
449
450         * switch-c.adb: Add processing for -gnatB switch
451
452         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
453
454 2008-08-22  Javier Miranda  <miranda@adacore.com>
455
456         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
457         init procedure all the expanded code associated with the spec of
458         task types and protected types.
459
460 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
461
462         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
463         component expression copies rather than directly setting Etype and
464         Is_Static_Expression.
465
466 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
467
468         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
469         private types to allow for types derived from a private type with
470         preelaborable initialization, but return False for a private extension
471         (unless it has the pragma).
472
473 2008-08-22  Robert Dewar  <dewar@adacore.com>
474
475         * opt.ads: Minor code reorganization (put entries in alpha order)
476
477 2008-08-22  Pascal Obry  <obry@adacore.com>
478
479         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
480         spawn.
481
482 2008-08-22  Geert Bosch  <bosch@adacore.com>
483
484         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
485         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
486
487 2008-08-22  Doug Rupp  <rupp@adacore.com>
488
489         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
490         __gnat_set_features.
491
492         * init.c
493         (__gnat_set_features): New function.
494         (__gnat_features_set): New tracking variable.
495         (__gl_no_malloc_64): New feature global variable
496
497 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
498
499         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
500         use_type_clause in an instance.
501
502 2008-08-22  Bob Duff  <duff@adacore.com>
503
504         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
505
506 2008-08-22  Robert Dewar  <dewar@adacore.com>
507
508         * exp_ch6.adb: Minor reformatting
509
510         * exp_ch7.adb: Minor reformatting
511
512         * exp_ch7.ads: Put routines in proper alpha order
513
514         * exp_dist.adb: Minor reformatting
515
516 2008-08-22  Vincent Celier  <celier@adacore.com>
517
518         * prj.ads: Minor comment update
519
520 2008-08-22  Robert Dewar  <dewar@adacore.com>
521
522         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
523
524 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
525
526         * exp_tss.adb:
527         (Base_Init_Proc): For a protected subtype, use the base type of the
528         corresponding record to locate the propoer initialization procedure.
529
530 2008-08-22  Robert Dewar  <dewar@adacore.com>
531
532         * checks.adb:
533         (In_Subrange_Of): New calling sequence
534         (Determine_Range): Prepare for new processing using base type
535
536         * exp_ch4.adb:
537         (Compile_Time_Compare): Use new calling sequence
538
539         * exp_ch5.adb:
540         (Compile_Time_Compare): Use new calling sequence
541
542         * sem_eval.adb:
543         (Compile_Time_Compare): New calling sequence allows dealing with
544         invalid values.
545         (In_Subrange_Of): Ditto
546
547         * sem_eval.ads:
548         (Compile_Time_Compare): New calling sequence allows dealing with
549         invalid values.
550         (In_Subrange_Of): Ditto
551
552 2008-08-22  Pascal Obry  <obry@adacore.com>
553
554         * adaint.c: Fix possible race condition on win32_wait().
555
556 2008-08-22  Bob Duff  <duff@adacore.com>
557
558         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
559         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
560         exp_intr.adb, exp_ch3.adb: Rename:
561         Exp_Ch7.Controlled_Type => Needs_Finalization
562         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
563         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
564          Has_Controlled_Parts
565         (Has_Some_Controlled_Component): Fix bug in array case.
566
567 2008-08-22  Robert Dewar  <dewar@adacore.com>
568
569         * sem_ch8.adb: Minor reformatting
570
571 2008-08-22  Kevin Pouget  <pouget@adacore.com>
572
573         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
574         Shared_Var_Close procedure specifications from package spec to package body.
575
576         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
577         RE_Shared_Var_WOpen entries.
578
579         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
580         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
581
582 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
583
584         * init.c: adjust EH support code on Alpha/Tru64 as well.
585
586         * raise-gcc.c: Add back a couple of comments.
587
588 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
589
590         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
591         involved and the return type is class-wide, use the type of the expression
592         for the generated access type. Suppress useless discriminant checks on the
593         allocator.
594
595 2008-08-22  Bob Duff  <duff@adacore.com>
596
597         * exp_ch7.adb: Minor comment fix
598
599         * exp_ch6.ads: Minor comment fix
600
601 2008-08-22  Thomas Quinot  <quinot@adacore.com>
602
603         * sem_ch8.adb: Minor reformatting
604         Minor code reorganization (introduce subprogram to factor duplicated
605         code).
606
607 2008-08-22  Sergey Rybin  <rybin@adacore.com>
608
609         * gnat_ugn.texi: Change the description of gnatcheck default rule
610         settings.
611
612 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
613
614         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
615         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
616         do not adjust the PC anymore.
617         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
618         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
619
620         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
621         instead of _Unwind_GetIP.
622
623 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
624
625         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
626         with a range is transformed into a positional aggregate, any copied
627         component literals should be marked Is_Static_Expression.
628
629         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
630         not being known at at compile time when Configurable_Run_Time_Mode is
631         true.
632
633 2008-08-22  Robert Dewar  <dewar@adacore.com>
634
635         * exp_attr.adb:
636         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
637         Read or Input attribute.
638
639 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
640
641         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
642         clauses in related units is redundant, if one of the units is a package
643         instantiation, use its instance_spec to determine which unit is the
644         ancestor of the other.
645
646 2008-08-22  Javier Miranda  <miranda@adacore.com>
647
648         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
649         attributes add missing support to handle designated types that come
650         from the limited view.
651
652         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
653
654 2008-08-22  Sergey Rybin  <rybin@adacore.com>
655
656         * vms_data.ads: Add entry for new gnatcheck -mNNN option
657
658         * gnat_ugn.texi: Add description for gnatcheck option '-m'
659
660 2008-08-22  Sergey Rybin  <rybin@adacore.com>
661
662         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
663         acoording to the latest changes in the metric rule interface
664
665 2008-08-22  Vincent Celier  <celier@adacore.com>
666
667         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
668         (Check): Check if the file names registered in the ALI file for the
669         spec, the body and each of the subunits are the ones expected.
670
671 2008-08-22  Robert Dewar  <dewar@adacore.com>
672
673         * g-catiio.adb: Code cleanup.
674
675 2008-08-20  Vincent Celier  <celier@adacore.com>
676
677         * make.adb (Gnatmake): Remove extra space in version line
678
679         * ali.adb:
680         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
681         as the name may already have been entered in the table by the Project
682         Manager.
683
684 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
685
686         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
687         weak symbols so we use the version provided by MaRTE when available.
688
689 2008-08-20  Emmanuel Briot  <briot@adacore.com>
690
691         * g-catiio.ads, g-catiio.adb:
692         (Value): Avoid an unnecessary system call to Clock in most cases.
693         This call is only needed when only the time is provided in the string,
694         and ignored in all other cases. This is more efficient.
695
696 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
697
698         * raise-gcc.c: Fix formatting nits.
699
700 2008-08-20  Robert Dewar  <dewar@adacore.com>
701
702         * sem_ch13.adb:
703         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
704         non-existing component clause.
705
706         * exp_ch5.adb: Minor reformatting
707
708         * g-comlin.adb: Minor reformatting
709
710         * make.adb: Minor reformatting
711
712         * prj-proc.adb: Minor reformatting
713
714         * stylesw.ads: Minor reformatting
715
716 2008-08-20  Vincent Celier  <celier@adacore.com>
717
718         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
719         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
720         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
721          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
722         and a switch is not recognized by gnatmake.
723         (Gnatmake): Implement new scheme for gnatmake switches and global
724         compilation switches.
725         (Switches_Of): Try successively Switches (<file name>),
726         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
727
728 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
729
730         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
731         implement style check that overriding operations are explicitly marked
732         at such.
733
734         * style.ads (Missing_Overriding): new procedure that provides interface
735         to previous one.
736
737         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
738         that the declaration or body of overriding operations carries an
739         explicit overriding indicator.
740
741         * sem_ch8.adb
742         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
743         explicit indicator should be present.
744
745         * sem_ch6.adb (Verify_Overriding_Indicator,
746         Check_Overriding_Indicator): If operation is overriding, check whether
747         declaration and/or body of subprogram should be present
748
749 2008-08-20  Vincent Celier  <celier@adacore.com>
750
751         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
752         gprbuild when casing is MixedCase, whatever the casing of the letters
753         in the file name.
754
755 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
756
757         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
758         creating dummy init proc.
759         (Requires_Init_Proc): Return False in the case No_Default_Initialization
760         is in force and the type does not have associated default
761         initialization. Move test of Is_Public (with tests of restrictions
762         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
763         for default initialization.
764
765 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
766
767         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
768         of any alias or prefix but having attached parameters (as \"-O2\").
769
770 2008-08-20  Robert Dewar  <dewar@adacore.com>
771
772         * s-fileio.adb: Minor reformatting
773
774 2008-08-20  Thomas Quinot  <quinot@adacore.com>
775
776         * exp_strm.adb (Build_Elementary_Input_Call,
777         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
778         selects the stream attribute routines for long float types.
779
780 2008-08-20  Vincent Celier  <celier@adacore.com>
781
782         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
783
784         * prj.ads (Array_Data): Add a component Location
785
786 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
787
788         * sem_prag.adb:
789         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
790         argument for ASIS and navigation use.
791
792 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
793
794         * einfo.ads: Add comment.
795
796 2008-08-20  Bob Duff  <duff@adacore.com>
797
798         * sem_eval.ads: Minor comment fix.
799
800 2008-08-20  Bob Duff  <duff@adacore.com>
801
802         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
803         folding. We were folding things like "False and then ...", but not
804         "X and then ..." where X is a constant whose value is known at compile
805         time.
806
807 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
808
809         * exp_ch5.adb (Controlled_Type): New routine.
810         (Expand_N_Extended_Return_Statement): When generating a move of the
811         final list in extended return statements, check the type of the
812         function and in the case of double expanded return statements, the type
813         of the returned object.
814         (Expand_Simple_Function_Return): Perform an interface conversion when
815         the type of the returned object is an interface and the context is an
816         extended return statement.
817
818 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
819
820         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
821         and the full view is visible, set flag on full view as well.
822
823 2008-08-20  Thomas Quinot  <quinot@adacore.com>
824
825         * g-comlin.adb: Minor reformatting
826         Minor code reorganization.
827
828         * freeze.adb: Minor reformatting
829
830 2008-08-20  Vincent Celier  <celier@adacore.com>
831
832         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
833         source of another project.
834
835 2008-08-20  Pascal Obry  <obry@adacore.com>
836
837         * s-os_lib.ads: Minor reformatting.
838
839 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
840
841         * gnatvsn.ads: Minor reformatting.
842
843 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
844
845         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
846         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
847         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
848         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
849         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
850         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
851         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
852         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
853         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
854         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
855         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
856         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
857         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
858         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
859         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
860         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
861         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
862         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
863         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
864         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
865         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
866         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
867         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
868         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
869         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
870         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
871         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
872         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
873         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
874         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
875         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
876         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
877         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
878         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
879         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
880         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
881         s-poosiz.adb, link.c: Fix copyright notice.
882
883 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
884
885         * g-comlin.ads: Update comments.
886
887 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
888
889         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
890
891 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
892
893         * exp_ch11.adb:
894         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
895         Make_Implicit_Exception_Handler when rewriting an exception handler with
896         a choice parameter, and pass the handler's Sloc instead of that of the
897         handled sequence of statements. Make_Implicit_Exception_Handler sets the
898         Sloc to No_Location (unless debugging generated code), which we don't
899         want for the case of a user handler.
900
901 2008-08-20  Robert Dewar  <dewar@adacore.com>
902
903         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
904
905         * sem_ch13.adb:
906         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
907         now labeled as info msgs, not warnings.
908
909         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
910
911         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
912
913         * a-textio.adb: Remove redundant test.
914
915         * a-witeio.adb: Minor code reorganization
916         Remove redundant test found working on another issue
917
918         * a-ztexio.adb: Minor code reorganization
919         Remove redundant test found working on another issue
920
921 2008-08-20  Thomas Quinot  <quinot@adacore.com>
922
923         * s-fileio.adb (Open) Use C helper function to determine whether a
924         given errno value corresponds to a "file not found" error.
925
926         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
927
928 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
929
930         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
931         to get access to the per-task errno variable.
932         (__set_errno for MaRTE): Do not redefine this function here since it is
933         already defined in MaRTE.
934
935 2008-08-20  Tristan Gingold  <gingold@adacore.com>
936
937         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
938
939 2008-08-20  Robert Dewar  <dewar@adacore.com>
940
941         * freeze.adb: Minor reformatting
942
943         * g-comlin.adb: Minor reformatting
944
945         * g-socket.adb: Minor reformatting
946
947         * g-socthi-mingw.adb: Minor reformatting
948
949         * g-stheme.adb: Minor reformatting
950
951 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
952
953         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
954         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
955         confusion between partial and full views of an ancestor of the context
956         type when the parent is a private extension declared in a parent unit,
957         and full views are available for the context type.
958
959 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
960             Robert Dewar  <dewar@adacore.com>
961
962         PR ada/30827
963         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
964         version string.
965         Move comment in the right place.
966         * g-comver.adb (Version): Look for a zero-termination in
967         addition to a closing parenthesis.
968
969 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
970
971         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
972         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
973         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
974         Is_Package_Or_Generic_Package instead of hand-crafted tests.
975
976 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
977
978         PR ada/15808
979         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
980         as well.
981
982 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
983
984         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
985
986 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
987
988         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
989         for back-copy statements in lieu of that of the actual.
990
991 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
992
993         PR ada/20548
994         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
995         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
996         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
997         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
998
999 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
1000
1001         PR ada/36777
1002         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1003         * sem_attr.adb (Check_Type): The current instance of a protected
1004         object is not a type name.
1005         (Analyze_Access_Attribute): Accept instances of protected objects.
1006         (Analyze_Attribute, Attribute_Address clause): Ditto.
1007         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1008         the prefix as being the current instance if needed.
1009
1010 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
1011
1012         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1013         Remove duplicate s-win32.o. Add s-winext.o.
1014
1015 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
1016
1017         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1018         with SOSC.SOCK__STREAM.
1019         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1020         SOSC.MSG_OOB.
1021
1022 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
1023
1024         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1025         * gsocket.h, socket.c: Update to support RTEMS.
1026         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1027
1028 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
1029             Robert Dewar <dewar@adacore.com>
1030
1031         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1032         left argument even when right argument is 0.
1033         (Expand_N_Op_Mod): Ditto when right argument is 1.
1034         (Expand_N_Op_Multiply): Ditto when any argument is 0.
1035         (Expand_N_Op_Rem): Ditto when right argument is 1.
1036
1037 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1038
1039         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1040         by warn_unused.
1041
1042 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
1043
1044         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1045         from Freeze_Entity. Used to generate cross-reference information for
1046         types declared in generic packages.
1047
1048 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1049
1050         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1051         compatibility shim.
1052
1053 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1054
1055         * gsocket.h:
1056         On Windows, include <errno.h> and redefine only selected errno values
1057         from their <winsock2.h> definitions.
1058
1059         * s-osinte-freebsd.ads: Minor reformatting
1060
1061         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1062
1063         * g-soccon.ads: New file.
1064
1065         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1066         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1067         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1068         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1069         unit, to allow building software that depends on this internal unit
1070         with both older and newer compilers.
1071
1072 2008-08-08  Robert Dewar  <dewar@adacore.com>
1073
1074         * s-strxdr.adb: Minor reformatting
1075
1076 2008-08-08  Bob Duff  <duff@adacore.com>
1077
1078         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1079         checking for integer operations (including division by zero)", which
1080         is wrong -- divide by zero is not part of overflow checking.
1081         Also added misc clarification about what check-suppression means.
1082
1083         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1084
1085 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
1086
1087         * g-comlin.adb (Add_Switch): Handle addition of switches at the
1088         begining of the command line.
1089         (Append, Add): Renaming of Append to Add as this now allows addition
1090         at the begining of the list.
1091
1092         * g-comlin.ads (Add_Switch): Handle addition of switches at the
1093         begining of the command line.
1094
1095 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1096
1097         * g-sercom.ads:
1098         (Name): Document application scope (only legacy PC serial ports on
1099         Linux and Windows).
1100
1101 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1102
1103         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1104         previous change, not needed after all.
1105
1106 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
1107
1108         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1109         exclusion indicator is present
1110
1111 2008-08-08  Robert Dewar  <dewar@adacore.com>
1112
1113         * g-comlin.adb: Minor code reorganization
1114         Minor reformatting
1115
1116         * g-comlin.ads: Minor reformatting
1117
1118         * s-fileio.adb: Minor reformatting
1119
1120         * sem_attr.adb: Minor code reorganization (use Nkind_In)
1121         Minor reformatting
1122
1123 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
1124
1125         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1126         with s-oscons-tmplt.i.
1127
1128 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
1129
1130         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1131
1132 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1133
1134         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1135         of incomplete type.
1136
1137         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1138         of a formal parameter of an incomplete type. Improve error message for
1139         other improper uses of incomplete types.
1140
1141 2008-08-06  Robert Dewar  <dewar@adacore.com>
1142
1143         * gnat_ugn.texi: Clarify -gnato documentation
1144
1145 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1146
1147         * gcc-interface/Makefile.in,
1148         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1149         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1150         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1151         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1152         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1153         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1154         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1155         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1156         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1157         Remove GNAT.Sockets.Constants. This internal package is replaced by
1158         System.OS_Constants.
1159
1160 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1161
1162         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1163         Remove obsolete targets referencing gen-soccon
1164         When generating s-oscons.ads, use a file name that includes the
1165         THREAD_KIND, to ensure that the (potentially different) version from a
1166         previous build with a different threads flavour does not get reused.
1167
1168 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1169
1170         * sem_res.adb: Minor reformatting
1171
1172         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1173         only when the operating system reports a non-existing file or directory
1174         (ENOENT), otherwise raise Name_Error.
1175
1176         * exp_ch11.adb: Minor reformatting
1177
1178 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1179
1180         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1181         incomplete, add the access_to_subprogram type to the list of private
1182         dependents only if the incomplete type will be completed in the current
1183         scope.
1184         (Build_Discriminant_Constraints): If the type of the discriminant is
1185         access_to_variable, reject a constraint that is access_to_constant.
1186
1187 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1188
1189         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1190         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1191         g-sttsne-dummy.ads: New files.
1192
1193         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1194         with pragma Unimplemented_Unit for sockets packages on Nucleus.
1195
1196 2008-08-06  Pascal Obry  <obry@adacore.com>
1197
1198         * adaint.c: Another fix for ACL support on Windows.
1199
1200 2008-08-06  Javier Miranda  <miranda@adacore.com>
1201
1202         * exp_disp (Expand_Interface_Actuals): Adds missing support for
1203         expansion of calls to subprograms using selected components.
1204
1205 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1206
1207         * sem_res.adb (Resolve_Call): Use base type to determine whether a
1208         dereference is needed because a subtype of an access_to_subprogram is
1209         simply an access-subtype
1210
1211 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1212
1213         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1214         parameters, always specify the expected separator.
1215
1216 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1217
1218         * xnmake.adb: Use new XUtil package for platform independent text
1219         output.
1220
1221 2008-08-06  Vincent Celier  <celier@adacore.com>
1222
1223         * gnat_ugn.texi: Document compiler switch -gnateG
1224
1225 2008-08-06  Quentin Ochem  <ochem@adacore.com>
1226
1227         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1228         in the case of an empty pattern size.
1229         (Compute_Result): Do not do any computation in the case of an empty
1230         pattern size.
1231         (Report_Result): Fixed computation of the overflow guard.
1232
1233 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1234
1235         * g-awk.adb (Finalize): Do not use directly objects of the type in the
1236         finalization routine to prevent elaboration order anomalies in new
1237         finalization scheme.
1238
1239 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1240
1241         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1242         declaration for the same type.
1243
1244 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1245
1246         * sem.adb: Minor rewording (comment)
1247
1248 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1249
1250         * g-comlin.adb (Define_Switch, Get_Switches): New.
1251         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1252         ungrouping switches.
1253         (For_Each_Simple_Switch): Allow more control over parameters handling.
1254         This generic method now allows ungrouping of switches with parameters
1255         and switches with more than one letter after the prefix.
1256         (Set_Command_Line): Take care of switches that are prefixed with a
1257         switch handling parameters without delimiter (-gnatya and -gnaty3 for
1258         example).
1259         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1260         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1261         the operation.
1262         (Start, Alias_Switches, Group_Switches): Take care of parameters
1263         possibly present inside a group.
1264
1265         * g-comlin.ads (Define_Switch): New method used to define a list of
1266         expected switches, that are necessary for correctly ungrouping switches
1267         with more that one character after the prefix.
1268         (Get_Switches): Method that builds a getopt string from the list of
1269         switches as set previously by Define_Switch.
1270         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1271         status of the operation. Also allow the removal of switches with
1272         parameters only.
1273         (Command_Line_Configuration_Record): Maintain a list of expected
1274         switches.
1275
1276 2008-08-06  Doug Rupp  <rupp@adacore.com>
1277
1278         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1279         TARGET_MALLOC64 clear.
1280
1281         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1282         if TARGET_MALLOC64 clear.
1283
1284         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1285         (TARGET_MALLC64): New macro. Default to clear.
1286
1287 2008-08-06  Doug Rupp  <rupp@adacore.com>
1288
1289         * gcc-interface/utils2.c (snames.h) Include
1290         (TARGET_ABI_OPEN_VMS): Initialize.
1291         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1292         for Convention C.
1293
1294 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1295
1296         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1297         null exclusion in a discriminant declaration
1298
1299         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1300         indicators when type is not an access type.
1301
1302         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1303         indicators when type is not an access type.
1304
1305 2008-08-06  Javier Miranda  <miranda@adacore.com>
1306
1307         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1308         with the target interface before expanding the code of the interface
1309         conversion.
1310
1311 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1312
1313         * freeze.adb:
1314         (Freeze_Entity): A deferred constant does not violate the restriction
1315         No_Default_Initialization,
1316
1317         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1318         can carry a null exclusion indicator, and on which an error may be
1319         posted if the indicator is redundant.
1320
1321         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1322         does not apply to a subtype mark that already excludes null.
1323
1324         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1325         exclusion does not apply to a subtype mark that already excludes null.
1326
1327 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1328
1329         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1330
1331 2008-08-05  Doug Rupp  <rupp@adacore.com>
1332
1333         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1334
1335 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1336
1337         * gsocket.h: Make this file includable in a Nucleus environment, which
1338         does not support sockets.
1339
1340         * socket.c: Remove Nucleus-specific hack.
1341
1342 2008-08-05  Pascal Obry  <obry@adacore.com>
1343
1344         * adaint.c: Remove support for readable attribute on vxworks and nucleus
1345
1346 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1347
1348         * sem_attr.adb:
1349         (Analyze_Attribute, case 'Result): handle properly the case where some
1350         operand of the expression in a post-condition generates a transient
1351         block.
1352
1353         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1354         right-hand side when it is an anonymous access_to_subprogram, to force
1355         static accessibility check when needed.
1356
1357 2008-08-05  Sergey Rybin  <rybin@adacore.com>
1358
1359         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1360         rule according to the change in the rule option.
1361         Add documentation for -gnatw.b/-gnatw.B
1362
1363 2008-08-05  Robert Dewar  <dewar@adacore.com>
1364
1365         * ug_words: Add entries for -gnatw.b/-gnatw.B
1366
1367         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1368
1369 2008-08-05  Vincent Celier  <celier@adacore.com>
1370
1371         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1372         (File).
1373
1374         * a-ztdeio.adb: Ditto.
1375
1376 2008-08-05  Pascal Obry  <obry@adacore.com>
1377
1378         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1379         readable attribute.
1380
1381 2008-08-05  Vincent Celier  <celier@adacore.com>
1382
1383         * s-wchwts.adb:
1384         (Wide_String_To_String): Returns a String with the same 'First as its
1385         parameter S.
1386         (Wide_Wide_String_To_String): Ditto
1387
1388         * s-wchwts.ads:
1389         (Wide_String_To_String): Document that the lowest index of the returned
1390         String is equal to S'First.
1391
1392 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1393
1394         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1395
1396         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1397         s-oscons.ads
1398
1399 2008-08-05  Robert Dewar  <dewar@adacore.com>
1400
1401         * opt.ads (Warn_On_Biased_Representation): New flag
1402
1403         * sem_ch13.adb:
1404         (Analyze_Attribute_Definition_Clause): Issue warning when biased
1405         representation is required.
1406         (Minimum_Size): Don't allow biasing if enum rep clause case
1407
1408         * sem_warn.adb:
1409         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1410         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1411
1412         * usage.adb: Add lines for -gnatw.b/B switches
1413
1414 2008-08-05  Pascal Obry  <obry@adacore.com>
1415
1416         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1417
1418         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1419
1420 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1421
1422         * socket.c: Minor reformatting.
1423
1424 2008-08-05  Robert Dewar  <dewar@adacore.com>
1425
1426         * sem_ch3.adb: Minor reformatting
1427
1428         * prj-nmsc.adb: Minor reformatting
1429
1430 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1431
1432         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1433         visibility check on the component type if the simple test fails.
1434
1435 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1436
1437         * init.c (__gnat_install_handler for linux): If we are building the
1438         Xenomai run time then we need to do two additional things: avoid
1439         memory swapping and transform the Linux environment task into a native
1440         Xenomai task.
1441
1442         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1443         time): Use interface to Xenomai native skin and avoid linux-specific
1444         way of setting CPU affinity.
1445         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1446
1447 2008-08-05  Bob Duff  <duff@adacore.com>
1448
1449         * checks.ads: Minor comment fix
1450
1451 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1452
1453         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1454         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1455         CS8.
1456
1457 2008-08-05  Robert Dewar  <dewar@adacore.com>
1458
1459         * mlib.adb: Minor code reorganization
1460         Minor reformatting
1461
1462         * make.adb: Minor reformatting
1463
1464         * prj-attr.ads: Minor reformatting
1465
1466         * s-os_lib.adb: Minor reformatting
1467
1468         * s-fileio.adb: Minor code reorganization
1469         Minor reformatting
1470
1471         * prj.ads: Minor reformatting
1472
1473 2008-08-05  Bob Duff  <duff@adacore.com>
1474
1475         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1476         unresolved initial value of "null", because it causes implicitly
1477         generated "=" operators to be ambiguous, and because this type should
1478         not be passed to gigi.
1479
1480 2008-08-05  Vincent Celier  <celier@adacore.com>
1481
1482         * mlib.adb: Update comments.
1483
1484         * make.adb (Switches_Of): Check for Switches (others), before checking
1485         for Default_Switches ("Ada").
1486         (Gnatmake): Use Builder'Switches (others) in preference to
1487         Builder'Default_Switches ("Ada") if there are several mains.
1488
1489         * prj-attr-pm.adb:
1490         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1491         aggregate.
1492
1493         * prj-attr.adb:
1494         Add markers to indicates that attributes Switches allow others as index
1495         (Others_Allowed_For): New Boolean function, returning True for
1496         attributes with the mark.
1497         (Initialize): Recognize optional letter 'O' as the marker for
1498         associative array attributes where others is allowed as the index.
1499
1500         * prj-attr.ads:
1501         (Others_Allowed_For): New Boolean function
1502         (Attribute_Record): New Boolean component Others_Allowed
1503
1504         * prj-dect.adb:
1505         (Parse_Attribute_Declaration): For associative array attribute where
1506         others is allowed as the index, allow others as an index.
1507
1508         * prj-nmsc.adb:
1509         (Process_Binder): Skip associative array attributes with index others
1510         (Process_Compiler): Ditto
1511
1512         * prj-util.adb:
1513         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1514         index is All_Other_Names.
1515
1516         * prj.ads:
1517         (All_Other_Names): New constant
1518
1519         * prj-proc.adb:
1520         (Process_Declarative_Items): Skip associative array attribute when index
1521         is reserved word "others".
1522
1523 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1524
1525         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1526
1527 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1528
1529         * a-rttiev.adb: Minor reformatting (comments)
1530
1531         * gen-soccon.c: Rename to gen-oscons.c
1532
1533         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1534         GNAT.Sockets.Constants.
1535         Add new constants for GNAT.Serial_Communications and System.File_IO.
1536
1537 2008-08-05  Javier Miranda  <miranda@adacore.com>
1538
1539         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1540         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1541         implementation of this routine has been simplified.
1542
1543 2008-08-05  Pascal Obry  <obry@adacore.com>
1544
1545         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1546         Set_Read_Only Win32 implementation.
1547
1548 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1549
1550         * exp_strm.adb: Minor reformatting (comments)
1551
1552         * sem_ch12.adb: Minor reformatting.
1553
1554 2008-08-05  Robert Dewar  <dewar@adacore.com>
1555
1556         * sem_ch3.adb: Minor reformatting
1557
1558         * checks.adb: Minor reformatting
1559
1560 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1561
1562         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1563         restriction on Prefix.
1564
1565 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1566
1567         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1568         methods needed to handle switch sections when building a command line.
1569         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1570         Current_Section): New public methods or methods modified to handle
1571         building command lines with sections.
1572         (Set_Command_Line): Take into account sections when analysing a switch
1573         string.
1574         (Start): Sort the switches by sections before iterating the command line
1575         elements.
1576
1577         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1578         Is_New_Section, Current_Section): New methods or methods modified to
1579         handle building command lines with sections.
1580
1581 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1582
1583         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1584         discriminants, indicate that the corresponding object declaration has
1585         no initialization, to prevent spurious warnings when the access type is
1586         null-excluding.
1587
1588 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1589
1590         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1591         Abort_Task, warn if the call appears within a protected operation.
1592
1593 2008-08-04  Robert Dewar  <dewar@adacore.com>
1594
1595         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1596
1597 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1598
1599         * sem_ch3.adb:
1600         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1601         anonymous access to protected subprogram that is the return type of the
1602         specification of a subprogram body.
1603
1604         * sem_ch6.adb:
1605         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1606         subprogram, freeze it now to prevent access anomalies in the back-end.
1607
1608         * exp_ch9.adb: Minor code cleanup.
1609         Make sure that new declarations are inserted into the tree before
1610         analysis (from code reading).
1611
1612 2008-08-04  Robert Dewar  <dewar@adacore.com>
1613
1614         * exp_ch5.adb:
1615         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1616         at point of return.
1617
1618 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1619
1620         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1621
1622 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1623
1624         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1625
1626 2008-08-04  Javier Miranda  <miranda@adacore.com>
1627
1628         * sem_prag.adb (Process_Convention): Add missing support for
1629          N_Private_Extension_Declaration nodes.
1630
1631 2008-08-04  Robert Dewar  <dewar@adacore.com>
1632
1633         * exp_ch4.adb: Minor reformatting
1634
1635 2008-08-04  Pascal Obry  <obry@adacore.com>
1636
1637         * adaint.h: Add missing prototype.
1638
1639         * adaint.c: Refine support for Windows file attributes.
1640
1641 2008-08-04  Robert Dewar  <dewar@adacore.com>
1642
1643         * sem_res.adb:
1644         (Valid_Conversion): Catch case of designated types having different
1645         sizes, even though they statically match.
1646
1647 2008-08-04  Javier Miranda  <miranda@adacore.com>
1648
1649         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1650         added in previous patch to handle access to subprograms.
1651
1652 2008-08-04  Robert Dewar  <dewar@adacore.com>
1653
1654         * freeze.adb:
1655         (Freeze_Entity): Only check No_Default_Initialization restriction for
1656         constructs that come from source
1657
1658 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1659
1660         * exp_ch6.adb: Minor comment fix.
1661
1662         * sem_ch4.adb: Minor reformatting.
1663
1664 2008-08-04  Robert Dewar  <dewar@adacore.com>
1665
1666         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1667
1668 2008-08-04  Pascal Obry  <obry@adacore.com>
1669
1670         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1671         file attributes.
1672
1673 2008-08-04  Javier Miranda  <miranda@adacore.com>
1674
1675         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1676         for N_Formal_Object_Declaration nodes. Adding kludge required by
1677         First_Formal to provide its functionality with access to functions.
1678         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1679         for anonymous access types returned by functions.
1680
1681         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1682         conversion of null-excluding access types (required only once to force
1683         the generation of the required runtime check).
1684
1685         * sem_type.adb (Covers): minor reformating
1686
1687         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1688         with internally generated nodes. Avoid generating the error inside init
1689         procs.
1690
1691         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1692         (Resolve_Null): Generate the null-excluding check in case of assignment
1693         to a null-excluding object.
1694         (Valid_Conversion): Add missing support for anonymous access to
1695         subprograms.
1696
1697         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1698         anonymous access types whose designated type is an itype. This case
1699         occurs with anonymous access to protected subprograms types.
1700         (Analyze_Return_Type):  Add missing support for anonymous access to
1701         protected subprogram.
1702
1703         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1704         subprograms addition of missing check on matching convention. Required
1705         to properly handle access to protected subprogram types.
1706
1707         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1708         null excluding access types.
1709
1710 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1711
1712         * sem_ch12.adb: Add comments
1713
1714         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1715         access type and the allocator is not initialized, warn rather than
1716         reporting an error.
1717
1718 2008-08-04  Robert Dewar  <dewar@adacore.com>
1719
1720         * exp_ch4.adb: Minor reformatting
1721
1722         * exp_dist.adb: Minor reformatting
1723
1724         * g-comlin.adb: Minor reformatting
1725
1726 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1727
1728         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1729         target to the type of the aggregate in the case where the target object
1730         is class-wide.
1731
1732         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1733         result type is class-wide and inherently limited, and the expression
1734         has a specific type, create a return object of the specific type, for
1735         more efficient handling of returns of build-in-place aggregates (avoids
1736         conversions of the class-wide return object to the specific type on
1737         component assignments).
1738
1739         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1740         about a type mismatch for a class-wide function with a return object
1741         having a specific type when the object declaration doesn't come from
1742         source. Such an object can result from the expansion of a simple return.
1743
1744 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1745
1746         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1747
1748         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1749         compiling for 64bit windows.
1750
1751 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1752
1753         * g-comlin.adb (Group_Switches): Preserve the switch order when
1754         grouping and allow switch grouping of switches with more than one
1755         character extension (e.g. gnatw.x).
1756         (Args_From_Expanded): Remove this now obsolete method.
1757
1758 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1759
1760         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1761         chain at once, to ensure that type is properly decorated for back-end,
1762         when allocator appears within a loop.
1763
1764 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1765
1766         * snames.h, snames.adb, snames.ads:
1767         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1768
1769         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1770         Build_To_Any_Call and Build_TypeCode_Call procedures.
1771
1772         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1773
1774         * rtsfind.ads: Add corresponding names.
1775
1776         * tbuild.adb: Update prefix restrictions to allow '_' character.
1777
1778 2008-08-04  Doug Rupp  <rupp@adacore.com>
1779
1780         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1781         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1782         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1783         use it.  Calculate pointer range overflow using 64bit types.
1784
1785 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1786
1787         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1788         legal context for an anonymous access to subprogram.
1789
1790         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1791         indirect call, report success to the caller to include possible
1792         interpretation.
1793
1794         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1795         check when the type
1796         of the extended return is an anonymous access_to_subprogram type.
1797
1798         * sem_res.adb:
1799         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1800         access_to_subprogram and the context requires its return type, and a
1801         dereference has not been introduced previously.
1802
1803 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1804
1805         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1806         gnatcheck support in GPS.
1807
1808 2008-08-04  Vincent Celier  <celier@adacore.com>
1809
1810         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1811         requested
1812
1813 2008-08-04  Vincent Celier  <celier@adacore.com>
1814
1815         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1816         variable, but don't check the resulting value as it has no impact on
1817         the processing.
1818
1819         * opt.ads:
1820         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1821         when switch -gnateG is used.
1822
1823         * prep.adb:
1824         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1825         when the source is modified by the preprocessor and there is no
1826         preprocessing errors.
1827
1828         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1829
1830         * sinput-l.adb:
1831         (Load_File): Output the result of preprocessing if the source text was
1832         modified.
1833
1834         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1835
1836         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1837
1838         * ug_words: Add VMS equivalent for -gnateG
1839
1840         * vms_data.ads:
1841         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1842
1843 2008-08-04  Doug Rupp  <rupp@adacore.com>
1844
1845         * gcc-interface/utils2.c:
1846         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1847         in 32bit descriptor.
1848
1849 2008-08-04  Robert Dewar  <dewar@adacore.com>
1850
1851         * par-ch10.adb: Minor reformatting
1852
1853         * i-cobol.adb: Minor reformatting.
1854
1855 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1856
1857         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1858         anonymous access return type of a regular function that is not a
1859         compilation unit.
1860
1861 2008-08-04  Vincent Celier  <celier@adacore.com>
1862
1863         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1864
1865         * snames.adb: New standard name Global_Compilation_Switches
1866
1867         * snames.ads: New standard name Global_Compilation_Switches
1868
1869         * make.adb: Correct spelling error in comment
1870
1871 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1872
1873         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1874         target.
1875
1876 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1877
1878         * sem_ch10.adb: Minor comment fix.
1879
1880 2008-08-04  Robert Dewar  <dewar@adacore.com>
1881
1882         * restrict.adb: Improved messages for restriction warnings
1883
1884         * restrict.ads: Improved messages for restriction messages
1885
1886         * s-rident.ads (Profile_Name): Add No_Profile
1887
1888 2008-08-04  Robert Dewar  <dewar@adacore.com>
1889
1890         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1891
1892 2008-08-04  Robert Dewar  <dewar@adacore.com>
1893
1894         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1895
1896 2008-08-04  Vincent Celier  <celier@adacore.com>
1897
1898         * prj-proc.adb:
1899         (Copy_Package_Declarations): When inheriting package Naming from a
1900         project being extended, do not inherit source exception names.
1901
1902 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1903
1904         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1905         list of declaration to find previous subprogram, do not go to the
1906         original node of a generic unit.
1907
1908 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1909
1910         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1911         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1912
1913 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1914
1915         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1916         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1917         and adjust for above renaming.
1918         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1919         gnu_expr_alt_type parameter.  Convert the expression to it instead
1920         of changing its type in place.
1921         (build_function_stub): Adjust call to above function.
1922
1923 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1924
1925         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1926         code.  Do not get full definition of deferred constants with address
1927         clause for a use.  Do not ignore deferred constant definitions with
1928         address clause.  Ignore constant definitions already marked with the
1929         error node.
1930         <object>: Remove obsolete comment.  For a deferred constant with
1931         address clause, get the initializer from the full view.
1932         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1933         Rework and remove obsolete comment.
1934         <N_Object_Declaration>: For a deferred constant with address clause,
1935         mark the full view with the error node.
1936         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1937         formatting nits.
1938
1939 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1940
1941         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1942
1943         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1944         sem_prag.adb, snames.adb, snames.ads, snames.h,
1945         par-prag.adb: Undo previous stream related changes.
1946
1947         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1948
1949         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1950         Define enumeration type to designate different IO mechanisms.
1951         Enchance generic package Stream_Ops_Internal to include an
1952         implementation of Input and Output.
1953
1954         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1955         No_Stream_Optimization is active, choose the default byte IO
1956         implementations of stream attributes for Strings.
1957         Otherwise use the corresponding block IO version.
1958
1959 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1960
1961         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1962         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1963
1964 2008-08-01  Robert Dewar  <dewar@adacore.com>
1965
1966         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1967         convert plain identifier into defining identifier.
1968
1969 2008-08-01  Robert Dewar  <dewar@adacore.com>
1970
1971         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1972         warnings
1973
1974         * lib-xref.adb: Add error defense.
1975
1976 2008-08-01  Bob Duff  <duff@adacore.com>
1977
1978         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1979
1980 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1981
1982         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1983         correct accessibility levels. In the "when others" case, retrieve the
1984         access level of the Etype of Prev rather than Prev_Orig, because the
1985         original exression has not always been analyzed.
1986
1987 2008-08-01  Robert Dewar  <dewar@adacore.com>
1988
1989         * prj-nmsc.adb: Minor reformatting
1990
1991         * sem_ch4.adb: Minor reformatting
1992         Minor code reorganization
1993
1994         * prj.ads: Minor reformatting
1995
1996         * s-os_lib.adb: Minor reformatting
1997
1998         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1999         half encodings
2000
2001         * scans.ads: Minor reformatting.
2002
2003         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2004         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2005
2006         * sem_res.adb:
2007         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2008
2009         * sem_ch12.adb: Minor comment reformatting
2010
2011         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2012         keyword
2013
2014 2008-08-01  Robert Dewar  <dewar@adacore.com>
2015
2016         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2017         generating code
2018
2019 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2020
2021         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2022         converted is a real literal and the target type has static bounds,
2023         perform the conversion exactly to prevent floating-point anomalies on
2024         some targets.
2025
2026 2008-08-01  Vincent Celier  <celier@adacore.com>
2027
2028         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2029
2030         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
2031
2032         * prj.adb (Object_Exist_For): Use Object_Generated, not
2033         Objects_Generated that is removed and was never modified anyway.
2034
2035         * prj.ads:
2036         (Path_Syntax_Kind): New enumeration type
2037         (Language_Config): New component Path_Syntax, defaulted to Host.
2038         Components PIC_Option and Objects_Generated removed, as they are not
2039         used.
2040
2041         * snames.adb: New standard name Path_Syntax
2042
2043         * snames.ads: New standard name Path_Syntax
2044
2045 2008-08-01  Vincent Celier  <celier@adacore.com>
2046
2047         * mlib-utl.adb:
2048         (Adalib_Path): New variable to store the path of the adalib directory
2049         when procedure Specify_Adalib_Dir is called.
2050         (Lib_Directory): If Adalib_Path is not null, return its value
2051         (Specify_Adalib_Dir): New procedure
2052
2053         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2054
2055 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2056
2057         * sem_prag.adb:
2058         (Check_Precondition_Postcondition): If not generating code, analyze the
2059         expression in a postcondition that appears in a subprogram body, so that
2060         it is properly decorated for ASIS use.
2061
2062 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
2063
2064         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2065         Orig_Prev to Prev in the case where the actual is N_Function_Call or
2066         N_Identifier. This was interfering with other cases that are rewritten
2067         as N_Identifier, such as allocators, resulting in passing of the wrong
2068         accessibility level, and based on testing this code is apparently no
2069         longer needed at all.
2070
2071 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2072
2073         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2074         procedure call whose prefix
2075         is a parameterless function call that returns an access_to_procedure.
2076
2077 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2078
2079         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2080         for RTX. Adding a suffix that is incremented at each iteration.
2081
2082 2008-08-01  Robert Dewar  <dewar@adacore.com>
2083
2084         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2085         Raise_Exception
2086
2087 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
2088
2089         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2090         paths, which are authorized by Windows but can lead to errors when used
2091         elsewhere.
2092
2093 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2094
2095         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2096         a pending instantiation for the body of a subprogram that is to be
2097         inlined.
2098
2099         * sem_ch12.adb:
2100         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2101
2102         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2103         create a pending instance for its body, so that calls to the subprogram
2104         can be inlined by the back-end.
2105
2106 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2107
2108         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2109         rts-rtx-w32).
2110
2111 2008-08-01  Robert Dewar  <dewar@adacore.com>
2112
2113         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2114
2115 2008-08-01  Doug Rupp  <rupp@adacore.com>
2116
2117         * gnat_rm.texi: Document new mechanism Short_Descriptor.
2118
2119         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2120         mechanism values.
2121
2122         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2123         mechanism and Short_Descriptor mechanism values.
2124
2125         * snames.adb (preset_names): Add short_descriptor entry.
2126
2127         * snames.ads: Add Name_Short_Descriptor.
2128
2129         * types.h: Add new By_Short_Descriptor mechanism values.
2130
2131         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2132         mechanism and Short_Descriptor mechanism values.
2133
2134         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2135         values.
2136         (Descriptor_Codes): Modify range for new mechanism values.
2137
2138         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2139         mechanism values.
2140
2141         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2142         (gnat_to_gnu_param): Handle By_Short_Descriptor.
2143
2144         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2145         (build_vms_descriptor32): New prototype.
2146         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2147
2148         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2149         argument in call fill_vms_descriptor.
2150
2151         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2152         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2153         (build_vms_descriptor): Renamed from build_vms_descriptor64.
2154         (convert_vms_descriptor32): New function.
2155         (convert_vms_descriptor64): New function.
2156         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2157         descriptors.
2158
2159         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2160         no longer needed.
2161
2162 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2163
2164         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2165         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2166         name.
2167
2168 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2169
2170         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2171         current directory so only fully qualified names are allowed.
2172
2173 2008-08-01  Robert Dewar  <dewar@adacore.com>
2174
2175         * gnat_ugn.texi:
2176         Minor editing, remove uncomfortable use of semicolon
2177
2178         * s-ststop.adb: Add some ??? comments
2179
2180         * sem_ch10.adb: Minor reformatting
2181
2182         * snames.ads:
2183         Minor comment fixes, some pragmas were not properly
2184         categorized in the comments, documentation change only
2185
2186         * xref_lib.adb: Minor reformatting
2187
2188         * sinput.adb: Minor reformatting
2189
2190         * gnatchop.adb: Minor reformatting
2191
2192         * sem_util.ads: Minor reformatting.
2193
2194         * opt.ads: Minor documentation fix
2195
2196         * scng.adb: Minor reformatting
2197
2198         * prj-part.adb: Update comments
2199
2200 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2201
2202         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2203         tagged synchronized type, use corresponding record type.
2204
2205 2008-08-01  Doug Rupp  <rupp@adacore.com>
2206
2207         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2208         dummy transfer address for debugging.
2209
2210         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2211
2212         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2213
2214 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2215
2216         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2217         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2218
2219 2008-07-31  Pascal Obry  <obry@adacore.com>
2220
2221         * prj-nmsc.adb: Keep Object and Exec directory casing.
2222
2223 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
2224
2225         * system-rtx-rtss.ads
2226         Change the default stack size. It is important to set the commit part.
2227
2228         * s-taprop-rtx.adb
2229         (Initialize): Get the clock resolution.
2230         (RT_Resolution): Return the clock resolution that is indicated by the
2231         system.
2232
2233         * s-parame-vxworks.adb
2234         Document that this body is used for RTX in RTSS (kernel) mode.
2235
2236         * gcc-interface/Makefile.in
2237         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2238         s-parame-vxworks.adb body in order to have reasonable stack sizes in
2239         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2240         cannot ask for too big values.
2241
2242 2008-07-31  Robert Dewar  <dewar@adacore.com>
2243
2244         * exp_aggr.adb: Minor reformatting
2245
2246         * makeutl.adb: Minor reformatting
2247
2248         * prj-env.adb: Minor reformatting
2249
2250 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2251
2252         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2253         tagged type is completed by a concurrent type.
2254
2255 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2256
2257         * sem_aggr.adb:
2258         (Resolve_Record_Aggregate): Bypass error that a type without
2259         components must have a "null record" aggregate when compiling for Ada
2260         2005, since it's legal to give an aggregate of form (others => <>)
2261         for such a type.
2262
2263 2008-07-31  Javier Miranda  <miranda@adacore.com>
2264
2265         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2266         handle synchronized types. Required to handle well the object.operation
2267         notation applied to synchronized types.
2268
2269 2008-07-31  Quentin Ochem  <ochem@adacore.com>
2270
2271         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2272         anymore - just used internally.
2273         Added handling of very small tasks - when the theoretical size is
2274         already full at the point of the call.
2275         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2276         not need to be added to the result.
2277
2278 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2279
2280         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2281         corresponding spec is a primitive wrapper. Update comment.
2282
2283 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2284
2285         * bindgen.adb Comment reformatting. Update the list of run-time globals.
2286         (Gen_Adainit_Ada): Add the declaration, import and value set for
2287         configuration flag Canonical_Streams.
2288         (Gen_Adainit_C): Add the declaration and initial value of external
2289         symbol __gl_canonical_streams.
2290
2291         * init.c: Update the list of global values computed by the binder.
2292
2293         * opt.ads: Add flag Canonical_Streams.
2294
2295         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2296         semantically handled pragmas.
2297
2298         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2299         (Analyze_Pragma): Add case for pragma Canonical_Streams.
2300
2301         * snames.adb: Add character value for name Canonical_Streams.
2302
2303         * snames.ads:
2304         Add Name_Canonical_Streams to the list of configuration pragmas.
2305         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2306
2307         * snames.h: Add a definition for Pragma_Canonical_Streams.
2308
2309         * s-ststop.adb:
2310         Add a flag and import to seize the value of external symbol
2311         __gl_canonical_streams. Update comment and initial value of constant
2312         Use_Block_IO.
2313
2314         * gnat_rm.texi: Add section of pragma Canonical_Streams.
2315
2316         * gnat_ugn.texi:
2317         Add pragma Canonical_Streams to the list of configuration pragmas.
2318
2319 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2320
2321         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2322         has the form A.B.C and B is a unit renaming, analyze its compilation
2323         unit and add a with_clause on A.b to the context.
2324
2325 2008-07-31  Vincent Celier  <celier@adacore.com>
2326
2327         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2328         return the empty string, instead of raising Constraint_Error.
2329
2330 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2331
2332         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2333
2334         * checks.adb (Apply_Accessibility_Check): Insert the check on
2335         Insert_Node.
2336
2337         * exp_attr.adb:
2338         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2339         to new parameter Insert_Node on call to Apply_Accessibility_Check.
2340         Necessary to distinguish the insertion node because the dereferenced
2341         formal may come from a rename, but the check must be inserted in
2342         front of the attribute.
2343
2344         * exp_ch4.adb:
2345         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2346         call to Apply_Accessibility_Check.
2347         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2348         on call to Apply_Accessibility_Check.
2349         Minor reformatting
2350
2351 2008-07-31  Javier Miranda  <miranda@adacore.com>
2352
2353         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2354         types when the candidate type is a synchronized type.
2355
2356         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2357         types, and complete management of synchronized types adding missing
2358         code to handle formal that is a synchronized type.
2359
2360         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2361         are not available and cause the compiler to blowup. Found compiling
2362         test with switch -gnatc
2363
2364         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2365         Has_Correct_Formal_Mode plus code cleanup.
2366
2367 2008-07-31  Bob Duff  <duff@adacore.com>
2368
2369         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2370         recognized as two end-of-lines, but it should be just one.
2371
2372 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2373
2374         * exp_ch9.adb: Minor reformatting
2375
2376         * tbuild.ads: Fix several occurrences of incorrectly referring to
2377         Name_Find as Find_Name.
2378
2379 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2380
2381         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2382         and the context is an object declaration with non-static bounds, treat
2383         the aggregate as non-static.
2384
2385 2008-07-31  Vincent Celier  <celier@adacore.com>
2386
2387         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2388         Move back spec of Parse_Single_Project to body, as it is not called
2389         outside of package Prj.Part.
2390         (Project_Data): Remove components Linker_Name, Linker_Path and
2391         Minimum_Linker_Options as they are no longer set.
2392         Remove function There_Are_Ada_Sources from package Prj and move code
2393         in the only place it was used, in Prj.Env.Set_Ada_Paths.
2394
2395 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2396
2397         * mlib-utl.ads: Fix typo.
2398
2399 2008-07-31  Robert Dewar  <dewar@adacore.com>
2400
2401         * sem_ch12.adb: Minor reformatting
2402
2403 2008-07-31  Sergey Rybin  <rybin@adacore.com>
2404
2405         * gnat_ugn.texi: Change the description of the
2406         Overly_Nested_Control_Structures: now the rule always requires a
2407         positive parameter for '+R' option
2408
2409 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2410
2411         * g-pehage.adb: Minor reformatting
2412
2413 2008-07-31  Pascal Obry  <obry@adacore.com>
2414
2415         * s-finimp.ads: Minor reformatting.
2416
2417 2008-07-31  Vincent Celier  <celier@adacore.com>
2418
2419         * s-regexp.ads: Minor comment fix
2420
2421 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2422
2423         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2424         so that we can compile this file successfully with -gnatc.
2425
2426 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2427
2428         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2429         of the type when looking for stream subprograms for type String,
2430         Wide_String and Wide_Wide_String.
2431
2432         * s-ststop.adb: Change the initialization expression of constant
2433         Use_Block_IO.
2434
2435 2008-07-31  Geert Bosch  <bosch@adacore.com>
2436
2437         * arit64.c:
2438         New file implementing __gnat_mulv64 signed integer multiplication with
2439         overflow checking
2440
2441         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2442
2443         * gcc-interface/gigi.h:
2444         (standard_types): Add ADT_mulv64_decl
2445         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2446
2447         * gcc-interface/utils.c:
2448         (init_gigi_decls): Add initialization of mulv64_decl
2449
2450         * gcc-interface/trans.c:
2451         (build_unary_op_trapv): New function
2452         (build_binary_op_trapv): New function
2453         (gnat_to_gnu): Use the above functions instead of
2454         build_{unary,binary}_op
2455
2456         * gcc-interface/Makefile.in
2457         (LIBGNAT_SRCS): Add arit64.c
2458         (LIBGNAT_OBJS): Add arit64.o
2459
2460 2008-07-31  Vincent Celier  <celier@adacore.com>
2461
2462         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2463         Linker'Default_Switches are declared. Warn if they are declared.
2464
2465 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2466
2467         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2468         Insert_Actions to place the pointer declaration in the code, rather
2469         than Insert_Before_And_Analyze, so that insertions of temporaries are
2470         kept in the proper order when transient scopes are present.
2471
2472
2473 2008-07-31  Robert Dewar  <dewar@adacore.com>
2474
2475         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2476
2477         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2478
2479         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2480         subprogram case
2481
2482 2008-07-31  Vincent Celier  <celier@adacore.com>
2483
2484         * s-os_lib.adb: Minor comment fix
2485
2486 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2487
2488         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2489         transfer pre/postconditions from generic copy to original tree, so that
2490         they will appear in each instance.
2491         (Process_PPCs): Do not transform postconditions into a procedure in a
2492         generic context, to prevent double expansion of check pragmas.
2493
2494         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2495         can be the renaming of the
2496         current instance, so check validity of the name accordingly.
2497
2498 2008-07-31  Robert Dewar  <dewar@adacore.com>
2499
2500         * mlib-utl.ads: Minor reformatting
2501
2502 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2503
2504         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2505         from context. This attribute must be usable in Ada95 mode.
2506         The attribute can appear in the body of a function marked
2507         Inline_Always, but in this case the postocondition is not enforced.
2508
2509         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2510         of an inlined call pre- and postconditions are legal
2511
2512 2008-07-31  Vincent Celier  <celier@adacore.com>
2513
2514         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2515         were for gprmake only
2516
2517 2008-07-31  Robert Dewar  <dewar@adacore.com>
2518
2519         * gnat_ugn.texi: Update -gnatN documentation.
2520
2521         * gnat_rm.texi: Add note about pre/postcondition
2522         pragmas not checked in conjunction with front-end inlining.
2523
2524 2008-07-31  Robert Dewar  <dewar@adacore.com>
2525
2526         * g-pehage.adb, g-pehage.ads: Minor reformatting
2527
2528 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2529
2530         * mlib-utl.ads, prj-makr.ads: Add comments.
2531
2532 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2533
2534         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2535         [WINDOWS]: Add s-winext.o.
2536
2537 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2538
2539         PR ada/36554
2540         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2541         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2542         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2543         Set precision to 1 for subtype of BOOLEAN_TYPE.
2544         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2545         (make_type_from_size): Deal with BOOLEAN_TYPE.
2546         * gcc-interface/misc.c (gnat_print_type): Likewise.
2547         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2548         Set boolean_type_node as its translation in the table, as well
2549         as boolean_false_node for False and boolean_true_node for True.
2550         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2551         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2552         (create_param_decl): Deal with BOOLEAN_TYPE.
2553         (build_vms_descriptor): Likewise.
2554         (build_vms_descriptor64): Likewise.
2555         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2556
2557 2008-07-30  Robert Dewar  <dewar@adacore.com>
2558
2559         * exp_ch9.adb: Minor reformatting
2560
2561         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2562         if no primitive operation is found.
2563
2564         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2565
2566         * sem_ch8.adb: Minor reformatting
2567
2568 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2569
2570         * g-pehage.adb:
2571         Remove a limitation on the length of the words handled by the minimal
2572         perfect hash function generator.
2573
2574         * g-pehage.ads:
2575         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2576         Fix some typos.
2577
2578 2008-07-30  Robert Dewar  <dewar@adacore.com>
2579
2580         * gnatlink.adb: Minor reformatting
2581
2582 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2583
2584         * rtsfind.adb (Check_RPC): Check version consistency even when not
2585         generating RCI stubs. Provide more detailed error message in case of
2586         mismatch.
2587
2588 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2589
2590         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2591         as a actual in an instance, check for a missing attribute to prevent
2592         program_error on an illegal program.
2593
2594         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2595         error if primitive is not found, so that exception can be handled
2596         elsewhere on illegal programs.
2597
2598 2008-07-30  Robert Dewar  <dewar@adacore.com>
2599
2600         * uintp.adb (UI_GCD): Fix potential overflow
2601
2602 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2603
2604         * einfo.adb: Flag245 is now used.
2605         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2606         check to include functions.
2607         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2608         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2609         include functions.
2610         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2611         to the list of displayed flags.
2612
2613         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2614         Wrapped_Entity. These two flags are now present in functions.
2615         New flag Is_Private_Primitive.
2616         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2617
2618         * exp_ch9.adb:
2619         (Build_Wrapper_Bodies): New subprogram.
2620         (Build_Wrapper_Body): The spec and body have been moved to in
2621         Build_Wrapper_ Bodies. Code cleanup.
2622         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2623         Wrappers are now generated for primitives declared between the private
2624         and full view of a concurrent type that implements an interface.
2625         (Build_Wrapper_Specs): New subprogram.
2626         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2627         creation mechanism with a call to Build_Wrapper_Bodies.
2628         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2629         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2630         (Expand_N_Task_Body): Replace the wrapper body creation
2631         mechanism with a call to Build_Wrapper_Bodies.
2632         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2633         creation mechanism with a call to Build_Wrapper_Specs.
2634         (Is_Private_Primitive_Subprogram): New subprogram.
2635         (Overriding_Possible): Code cleanup.
2636         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2637
2638         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2639
2640         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2641         (Process_Full_View): Build wrapper specs for all primitives
2642         that belong to a private view completed by a concurrent type
2643         implementing an interface.
2644
2645         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2646         is a primitive of a
2647         concurrent type with a private view that implements an interface, try to
2648         find the proper spec.
2649         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2650         primitive if the type of its first parameter is a non-generic tagged
2651         private type.
2652         (Analyze_Subprogram_Specification): Code reformatting.
2653         (Disambiguate_Spec): New routine.
2654         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2655         (Is_Private_Concurrent_Primitive): New routine.
2656
2657         * sem_ch6.ads:
2658         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2659
2660 2008-07-30  Doug Rupp  <rupp@adacore.com>
2661
2662         * gigi.h (build_vms_descriptor64): New function prototype.
2663         (fill_vms_descriptor): Modified function prototype.
2664
2665         * utils.c (build_vms_descriptor64): New function.
2666
2667         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2668
2669         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2670         argument.
2671
2672         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2673         64bit and 32bit descriptor and save the 64bit version as an alternate
2674         TREE_TYPE in the parameter.
2675         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2676         thin pointer.
2677
2678         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2679
2680 2008-07-30  Robert Dewar  <dewar@adacore.com>
2681
2682         * make.adb: Minor reformatting
2683
2684         * mlib-utl.adb: Minor reformatting
2685
2686         * osint.ads: Minor reformatting
2687
2688 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2689
2690         * adaint.c
2691         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2692         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2693         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2694
2695         * cio.c
2696         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2697         the function RtPrintf for console output.
2698
2699         * argv.c Do not use the environ variable for RTX.
2700
2701         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2702         been moved before the call to Osint.Add_Default_Search_Dirs in order
2703         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2704         from the appropriate run time.
2705
2706         * targparm.ads
2707         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2708         target is a RTSS module for RTX.
2709
2710         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2711         RTX_RTSS_Kernel_Module
2712         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2713
2714         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2715         exception handling mechanism for Windows and RTX in Win32 mode, but
2716         not for RTX in kernel mode (RTSS).
2717         (LIBGNAT_SRCS): Remove ada.h
2718
2719 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2720
2721         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2722         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2723         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2724         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2725         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2726         ALL_ADA_CFLAGS): Remove.
2727         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2728         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2729         (GCC_CFLAGS): Remove X_CFLAGS.
2730         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2731         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2732         (ADA_CFLAGS): Substitute.
2733
2734 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2735
2736         PR ada/5911
2737         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2738         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2739         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2740         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2741         by stamp-gnatlib2-rts.
2742
2743 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2744
2745         PR documentation/15479
2746         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2747         statement for GNAT.  Add @copying stanza, use it.  Update to
2748         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2749         title as Front-Cover Text.
2750         * gnat_rm.texi: Likewise.
2751         * gnat_ugn.texi: Likewise.
2752
2753 2008-07-29  Jan Hubicka  <jh@suse.cz>
2754
2755         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2756         check.
2757
2758 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2759
2760         * gcc-interface: New directory.
2761
2762         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2763         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2764         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2765         to gcc-interface subdirectory.
2766
2767 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2768
2769         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2770
2771 2008-07-28  Jan Hubicka  <jh@suse.cz>
2772
2773         * misc.c (gnat_post_options): Do not set flag_no_inline.
2774
2775 2008-07-28  Richard Guenther  <rguenther@suse.de>
2776
2777         Merge from gimple-tuples-branch.
2778
2779         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2780
2781         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2782         this is called for an elab proc to be discarded if empty.
2783         * utils.c (end_subprog_body): Honor ELAB_P.
2784         (build_function_stub): Adjust call to end_subprog_body.
2785         * trans.c (Subprogram_Body_to_gnu): Likewise.
2786         (gigi): Reorganize processing of elab procs to prevent
2787         gimplifying twice, using the new end_subprog_body argument.
2788
2789         2008-07-19  Richard Guenther  <rguenther@suse.de>
2790
2791         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2792         (utils.o): Likewise.
2793         * trans.c: Include tree-iterator.h.
2794         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2795         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2796         (set_expr_location_from_node): Likewise.
2797         (gigi): Tuplify.
2798         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2799         of GENERIC_NEXT.
2800         * utils.c: Include tree-iterator.h.
2801         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2802
2803         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2804
2805         * trans.c: Include gimple.h instead of tree-gimple.h.
2806         * utils.c: Same.
2807
2808         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2809
2810         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2811
2812 2008-07-25  Jan Hubicka  <jh@suse.cz>
2813
2814         * utils.c (end_subprog_body): Remove inline trees check.
2815         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2816
2817 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2818
2819         * raise-gcc.c: Move tsystem.h before tm.h.
2820
2821 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2822
2823         * gnathtml.pl: New file.
2824
2825 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2826
2827         * targtyps.c (get_target_default_allocator_alignment): Use
2828         MALLOC_ABI_ALIGNMENT.
2829
2830 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2831
2832         * adaint.c (__MINGW32__ section): Include ctype.h and define
2833         a fallback ISALPHA if IN_RTS.
2834         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2835
2836 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2837
2838         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2839         argument, to apply to references in addition to definitions.  Prevent
2840         setting TREE_STATIC on externals.
2841         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2842
2843 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2844
2845         PR documentation/15479
2846         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2847         Replace backets around optional parameters with @ovar
2848         where possible, use @r{[}, @r{]} otherwise.
2849         Replace some @r, @i, and @emph with @var where appropriate.
2850
2851 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2852
2853         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2854
2855 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2856
2857         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2858         -Wc++-compat warnings.
2859         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2860         __gnat_locate_exec_on_path): Likewise.
2861         * decl.c (annotate_value): Likewise.
2862         * misc.c (gnat_handle_option): Likewise.
2863         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2864         post_error_ne_tree): Likewise.
2865
2866 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2867
2868         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2869         version of its type, attempt to first convert its elements.
2870
2871 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2872
2873         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2874
2875 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2876
2877         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2878
2879 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2880
2881         * utils2.c (known_alignment): Derive the alignment from pointed-to
2882         types only if it is otherwise unknown.
2883         <INTEGER_CST>: Tidy.
2884         <MULT_EXPR>: Likewise.
2885         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2886         that of the base.
2887
2888 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2889
2890         PR ada/36573
2891         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2892
2893 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2894
2895         * gnat_rm.texi (Implementation Defined Characteristics)
2896         (Standard Library Routines): Use @smallexample for indented
2897         text.  Drop Indentation outside examples.
2898         * gnat_ugn.texi: Likewise.
2899
2900 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2901
2902         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2903         if undefined.
2904         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2905         realignment with force_align_arg_pointer attribute on foreign
2906         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2907
2908 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2909
2910         * utils.c (rest_of_record_type_compilation): When computing
2911         encodings for the components of a variable size type, early
2912         strip conversions on the current position expression to make
2913         sure it's shape is visible.  Use remove_conversions for this
2914         purpose.
2915
2916 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2917
2918         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2919         constrained subtype of a discriminated type, discard the fields that
2920         are beyond its limits according to its size.
2921
2922 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2923
2924         * utils.c (create_subprog_decl): If this is for the 'main' entry
2925         point according to the asm name, redirect main_identifier_node.
2926
2927 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2928
2929         * decl.c (components_to_record): Adjust the packedness for the
2930         qualified union as well.
2931
2932 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2933
2934         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2935         checks non fatal.
2936
2937 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2938
2939         * sem_res.adb (Large_Storage_Type): A type is large if it
2940         requires as many bits as Positive to store its values and its
2941         bounds are known at compile time.
2942         * sem_ch13.adb (Minimum_Size): Note that this function returns
2943         0 if the size is not known at compile time.
2944
2945 2008-06-06  Nicolas Setton  <setton@adacore.com>
2946             Olivier Hainque  <hainque@adacore.com>
2947
2948         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2949         attribute, parallel descriptive type attached to another
2950         type for debug info generation purposes.
2951         * utils.c (add_parallel_type): New function, register
2952         parallel type to be attached to a type.
2953         (get_parallel_type): New function, fetch a registered
2954         parallel type, if any.
2955         (rest_of_record_type_compilation): Register the parallel
2956         type we make for variable size records.
2957         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2958         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2959         parallel debug types we make.
2960         * trans.c (extract_encoding, decode_name): New functions.
2961         (gigi): If the DWARF attribute extensions are available, setup
2962         to use them.
2963         * lang.opt: Register language specific processing request
2964         for -gdwarf+.
2965         * misc.c (gnat_dwarf_extensions): New global variable. How much
2966         do we want of our DWARF extensions. 0 by default.
2967         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2968         (gnat_post_options): Map gnat_dwarf_extensions to the
2969         commonuse_gnu_debug_info_extensions for later processing.
2970
2971 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2972
2973         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2974
2975 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2976
2977         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2978         * gnat_ugn.texi (Style Checking)
2979         (Adding the Results of Compiler Checks to gnatcheck Output)
2980         (Example of Binder Output File): Fix typos.
2981         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2982         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2983         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2984         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2985         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2986         sinfo.ads, utils.c: Fix typos in comments.
2987         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2988
2989 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2990
2991         * sem_eval.adb: Minor reformatting
2992
2993 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2994
2995         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2996         is abstract, do not apply abstractness check on subprogram if this is
2997         a renaming declaration.
2998
2999 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
3000
3001         PR ada/864
3002         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3003         allow recognition of program suffix in addition to prefix.
3004
3005         * gnatchop.adb (Locate_Executable): Add support for prefix.
3006
3007         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3008         mlib-utl.adb: Adjust calls to Program_Name.
3009
3010 2008-05-29  Robert Dewar  <dewar@adacore.com>
3011
3012         * sem_ch3.adb: Minor reformatting
3013         * sem_prag.adb: Minor reformatting
3014         * sem_res.adb: Minor reformatting
3015         * sinput-p.ads: Minor reformatting
3016
3017 2008-05-29  Javier Miranda  <miranda@adacore.com>
3018
3019         * sem_util.adb:
3020         (Abstract_Interface_List): Add missing support for full type-declaration
3021         associated with synchronized types.
3022
3023 2008-05-29  Robert Dewar  <dewar@adacore.com>
3024
3025         * sem_eval.adb (Is_Same_Value): Take care of several more cases
3026
3027 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3028
3029         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3030         access type, wrap the expression in a conversion to force an
3031         accessibility check.
3032
3033         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3034         accessibility checks even when expansion is disabled in order to
3035         generate messages in the presence of previous errors or in
3036         semantics-only mode.
3037
3038 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3039
3040         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3041         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3042
3043 2008-05-28  Vincent Celier  <celier@adacore.com>
3044
3045         PR ada/34446
3046         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3047         preprocessing expressions
3048
3049 2008-05-28  Vincent Celier  <celier@adacore.com>
3050
3051         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3052         for preprocessing
3053
3054         * sinput-p.ads: Minor comment update and reformatting
3055
3056 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3057
3058         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3059         type has a deeper level than any master only when it is the type of an
3060         access parameter.
3061
3062 2008-05-28  Javier Miranda  <miranda@adacore.com>
3063
3064         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3065
3066 2008-05-28  Javier Miranda  <miranda@adacore.com>
3067
3068         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3069         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3070         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3071         Add code that was previously located in
3072         Find_Overridden_Synchronized_Primitive because it is only used here.
3073
3074 2008-05-28  Sergey Rybin  <rybin@adacore.com>
3075
3076         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3077         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3078
3079 2008-05-28  Robert Dewar  <dewar@adacore.com>
3080
3081         * restrict.ads:
3082         Add missing restrictions, and properly label all GNAT defined ones
3083
3084         * rtsfind.ads:
3085         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3086         Add entry for Ada.Task_Termination.Set_Specific_Handler
3087         Add entry for Ada.Task_Termination.Specific_Handler
3088
3089         * s-rident.ads:
3090         Add missing restrictions and properly mark all gnat defined ones
3091
3092         * sem_ch3.adb:
3093         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3094
3095         * sem_res.adb:
3096         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3097
3098         * gnat_rm.texi: Add missing restrictions, and properly label all
3099         GNAT defined ones
3100
3101 2008-05-28  Robert Dewar  <dewar@adacore.com>
3102
3103         * restrict.adb:
3104         (Check_Restriction): violation of restriction No_Finalization is
3105         treated as a serious error to stop expansion
3106
3107 2008-05-28  Robert Dewar  <dewar@adacore.com>
3108
3109         * exp_util.adb: Minor reformatting
3110         * exp_util.ads: Minor reformatting.
3111
3112 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
3113
3114         * Make-lang.in: Remove gprmake.
3115
3116         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3117
3118 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3119
3120         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3121         improper progenitor names, and avoid cascaded errors.
3122
3123 2008-05-28  Robert Dewar  <dewar@adacore.com>
3124
3125         * gnat_rm.texi: Add note on Old giving warning when applied to constant
3126
3127         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3128         a constant
3129
3130 2008-05-28  Robert Dewar  <dewar@adacore.com>
3131
3132         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3133         size
3134
3135 2008-05-28  Robert Dewar  <dewar@adacore.com>
3136
3137         * exp_ch5.adb:
3138         (Expand_Simple_Function_Return): Copy unaligned result into temporary
3139
3140 2008-05-28  Javier Miranda  <miranda@adacore.com>
3141
3142         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3143         for user-defined predefined primitives.
3144
3145         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3146         (Find_Overridden_Synchronized_Primitive): Ditto.
3147
3148         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3149
3150 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3151
3152         * a-ststio.adb, s-direio.adb:
3153         Further code clean up of previous change.
3154         Update comments.
3155
3156 2008-05-27  Vincent Celier  <celier@adacore.com>
3157
3158         * prj-nmsc.adb: Minor reformatting
3159
3160 2008-05-27  Bob Duff  <duff@adacore.com>
3161
3162         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3163         untagged private type with a tagged full type, where the full type has
3164         a self reference, create the corresponding class-wide type early, in
3165         case the self reference is "access T'Class".
3166
3167 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3168
3169         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3170         tasks and context is an object declaration. create master entity before
3171         expansion.
3172
3173 2008-05-27  Robert Dewar  <dewar@adacore.com>
3174
3175         * mlib-prj.adb: Minor reformatting
3176
3177         * prj-part.adb: Minor reformatting
3178
3179         * prj.ads: Minor reformatting
3180
3181         * exp_ch3.adb: Minor reformatting.
3182
3183         * sem_ch3.ads: Minor reformatting
3184
3185         * sem_eval.adb: Minor reformatting
3186
3187 2008-05-27  Vincent Celier  <celier@adacore.com>
3188
3189         * gnatcmd.adb:
3190         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3191
3192 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3193
3194         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3195         tasks, create an activation chain now, before the expansion into
3196         assignments and build-in-place calls that require the presence of an
3197         activation chain.
3198         (Backend_Processing_Possible): If the component type is inherently
3199         limited, the aggregate must be expanded into individual built-in-place
3200         assignments.
3201
3202         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3203         determine whether an allocation extra parameter must be built, to
3204         handle case of a private type whose full type is a discriminated type
3205         with defaults.
3206
3207 2008-05-27  Bob Duff  <duff@adacore.com>
3208
3209         * gnat_rm.texi:
3210         Document the new behavior regarding trampolines.
3211
3212 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3213
3214         * a-direio.adb, a-sequio.adb: Replace address clause by
3215         unrestricted_access, simpler and compatible with .NET.
3216
3217 2008-05-27  Vincent Celier  <celier@adacore.com>
3218
3219         * prj-part.adb:
3220         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3221         a project file, so that symbolic links are not resolved.
3222
3223 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3224
3225         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3226         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3227         portable across GNAT targets, since this kind of address clause is not
3228         supported by VM back-ends (.NET/JGNAT).
3229
3230 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3231
3232         * bindgen.adb: Update comments.
3233
3234         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3235
3236 2008-05-27  Vincent Celier  <celier@adacore.com>
3237
3238         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3239         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3240         mlib-tgt.adb, prj-env.adb, prj-env.ads:
3241         (Path_Information): New record type
3242         Use component of type Path_Information when there are two paths, one in
3243         canonical format and one in display format.
3244         Update the project manager to these new components.
3245
3246 2008-05-27  Robert Dewar  <dewar@adacore.com>
3247
3248         * makeutl.adb: Minor reformatting
3249         * prj-nmsc.adb: Minor reformatting
3250         * s-stausa.adb: Minor reformatting
3251         * s-stausa.ads: Minor reformatting
3252         * sem_ch6.adb: Minor reformatting
3253
3254 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3255
3256         * sem_res.adb: Minor comment fixes
3257
3258 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3259
3260         * makeutl.adb: Minor code reorganization
3261
3262         * exp_aggr.adb: Add ??? comment
3263         Fix typo
3264
3265         * exp_ch6.adb: Minor reformatting
3266
3267 2008-05-27  Quentin Ochem  <ochem@adacore.com>
3268
3269         * s-stausa.adb (Initialize): Updated result initialization, and
3270         initialization of environment stack.
3271         (Fill_Stack): Improved computation of the pattern zone, taking into
3272         account already filled at the calling point.
3273         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3274         Measure and Overflow_Guard.
3275         (Report_Result): Fixed computation of the result using new fields of
3276         Stack_Analyzer.
3277
3278         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3279         params by more explicit Stack_Size / Max_Pattern_Size params.
3280         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3281         Added Stack_Used_When_Filling field.
3282         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3283         Min_Measure and Max_Measure fields.
3284
3285         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3286
3287 2008-05-27  Vincent Celier  <celier@adacore.com>
3288
3289         * prj-nmsc.adb:
3290         (Check_File): Make sure that a unit that replaces the same unit in a
3291          project being extended is properly processed.
3292
3293 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3294
3295         * sem_ch3.adb:
3296         (Get_Discr_Value): Remove obsolete code that failed to find the value
3297         of a discriminant for an inherited task component appearing in a type
3298         extension.
3299
3300 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3301
3302         (System.File_IO.{Close, Delete, Reset}):
3303         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3304
3305         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3306         Pass File parameter by reference.
3307
3308 2008-05-27  Vincent Celier  <celier@adacore.com>
3309
3310         * prj-nmsc.adb:
3311         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3312         sources of the same project that have the same object file name.
3313         (Find_Explicit_Sources): Always remove a source exception that was not
3314         found.
3315
3316 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3317
3318         * sem_ch3.adb: Minor reformatting
3319
3320 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3321
3322         * sem_ch6.adb:
3323         (Is_Interface_Conformant): Handle properly a primitive operation that
3324         overrides an interface function with a controlling access result.
3325         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3326         inherited and overriding operations, omit as well the conformance check
3327         on result types, to prevent spurious errors.
3328
3329 2008-05-27  Vincent Celier  <celier@adacore.com>
3330
3331         * makeutl.ads, makeutl.adb:
3332         (Set_Location): New procedure
3333         (Get_Location): New function
3334         (Update_Main): New procedure
3335
3336 2008-05-27  Vincent Celier  <celier@adacore.com>
3337
3338         * prj-nmsc.adb:
3339         (Check_Library): Allow standard project to be extended as a static
3340         library project.
3341         (Get_Mains): Do not inherit attribute Main in an extending library
3342         project.
3343
3344 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3345
3346         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3347         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3348         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3349         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3350         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3351         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3352         * system-mingw.ads (Always_Compatible_Rep): Likewise.
3353         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3354         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3355         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3356
3357 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3358
3359         * sem_attr.adb: add guard to previous patch.
3360
3361 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3362
3363         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3364         a synchronized tagged type, do not attempt to build dispatch table for
3365         full view. The table is built for the corresponding record type, which
3366         has its own declaration.
3367
3368 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
3369
3370         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3371         to the known type entity E, rather than setting it to Any_Type. Fixes
3372         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3373         for objects whose type had an illegal constraint.
3374
3375 2008-05-27  Vincent Celier  <celier@adacore.com>
3376
3377         * gnat_ugn.texi:
3378         Add succinct documentation for attribute Excluded_Source_List_File
3379
3380 2008-05-27  Vincent Celier  <celier@adacore.com>
3381
3382         * prj-attr.adb: Add new project level attribute Map_File_Option
3383
3384         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3385
3386         * prj.ads: Minor reformatting and comment update
3387         (Project_Configuration): New component Map_File_Option
3388
3389         * snames.adb: New standard name Map_File_Option
3390
3391         * snames.ads: New standard name Map_File_Option
3392
3393 2008-05-27  Vincent Celier  <celier@adacore.com>
3394
3395         * xsnames.adb: Remove unused variable Oname
3396
3397 2008-05-27  Doug Rupp  <rupp@adacore.com>
3398
3399         * exp_ch6.adb:
3400         (Expand_N_Function_Call): Fix comments. Minor reformatting.
3401
3402         * exp_vfpt.ads:
3403         (Expand_Vax_Foreign_Return): Fix comments.
3404
3405 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3406
3407         * exp_dist.adb: Minor reformating
3408
3409 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3410
3411         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3412         No_Default_Initialization, which is now delayed until the freeze point
3413         of the object. Add a comment about deferral of the check.
3414
3415         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3416         on objects is moved here.
3417
3418 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3419
3420         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3421         (Compare_Array_S16): Adjust for above change.
3422         * s-casi32.adb (Uword): Likewise.
3423         (Compare_Array_S32): Likewise.
3424         * s-casi64.adb (Uword): Likewise.
3425         (Compare_Array_S64): Likewise.
3426         * s-caun16.adb (Uhalf): Likewise.
3427         (Compare_Array_U16): Likewise.
3428         * s-caun32.adb (Uword): Likewise.
3429         (Compare_Array_U32): Likewise.
3430         * s-caun64.adb (Uword): Likewise.
3431         (Compare_Array_U64): Likewise.
3432
3433 2008-05-26  Robert Dewar  <dewar@adacore.com>
3434
3435         * exp_ch6.adb: Add ??? comment for previous change
3436
3437         * exp_vfpt.adb: Minor reformatting
3438
3439         * exp_vfpt.ads: Add ??? comment for last change
3440
3441         * sem_attr.adb: Add some ??? comments for previous change
3442
3443         * s-vaflop.ads: Add comments for previous change
3444
3445 2008-05-26  Doug Rupp  <rupp@adacore.com>
3446
3447         * s-vaflop-vms-alpha.adb:
3448         Remove System.IO use clause, to prevent spurious ambiguities when
3449         package is access through rtsfind.
3450
3451 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3452
3453         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3454         made in front-end
3455
3456 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3457
3458         * sem_attr.adb:
3459         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3460         converted to S (A)'address only if A .. B is known to be a non-null
3461         range.
3462
3463 2008-05-26  Doug Rupp  <rupp@adacore.com>
3464
3465         * s-vaflop.adb:
3466         (Return_D, Return_F, Return_G): New functions.
3467
3468         * s-vaflop.ads:
3469         (Return_D, Return_F, Return_G): New functions.
3470
3471         * exp_vfpt.adb:
3472         (Expand_Vax_Foreign_Return): New procedure
3473
3474         * exp_vfpt.ads:
3475         (Expand_Vax_Foreign_Return): New procedure
3476
3477         * rtsfind.ads:
3478         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3479         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3480
3481         * exp_ch6.adb:
3482         Import Exp_Vfpt
3483         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3484
3485         * s-vaflop-vms-alpha.adb:
3486         (Return_D, Return_F, Return_G): New functions.
3487
3488 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3489
3490         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3491         init proc entity when there is actual default initialization associated
3492         with the component type, to avoid spurious errors on objects of scalar
3493         array types that are marked Is_Public when No_Default_Initialization
3494         applies.
3495
3496 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3497
3498         * rtsfind.ads, rtsfind.adb:
3499         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3500         (Check_RPC): Support per-PCS-kind API versioning.
3501
3502         exp_dist.ads, exp_dist.adb:
3503         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3504         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3505          library function Get_RACW.
3506         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3507         library function Get_Reference.
3508         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3509         through an intermediate Any.
3510         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3511         going through an intermediate Any.
3512
3513         * sem_dist.adb: Minor reformatting.
3514
3515 2008-05-26  Javier Miranda  <miranda@adacore.com>
3516
3517         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3518         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3519         (Is_Internal): Adding documentation on internal entities that have
3520         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3521
3522         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3523         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3524         Added assertion to force entities with this attribute to have
3525         attribute Is_Internal set to True.
3526         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3527
3528         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3529         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3530         a new implementation.
3531         (Add_Interface_Tag_Components): Remove special management of
3532         synchronized interfaces.
3533         (Analyze_Interface_Declaration): Minor reformating
3534         (Build_Derived_Record_Type): Minor reformating
3535         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3536         predefined primitive inherited from interface type because the body of
3537         internally generated predefined primitives of tagged types are generated
3538         later by Freeze_Type
3539         (Derive_Subprogram): Avoid generating an internal name if the parent
3540         subprogram overrides an interface primitive.
3541         (Derive_Subprograms): New implementation that keeps separate the
3542         management of tagged types not implementing interfaces, from tagged
3543         types that implement interfaces.
3544         (Is_Progenitor): New implementation.
3545         (Process_Full_View): Add documentation
3546         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3547         by call to Derive_Progenitor_Subprograms.
3548
3549         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3550         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3551         Skip_Controlling_Formals.
3552
3553         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3554         (Check_Conventions): New implementation. Remove local subprogram
3555         Skip_Check. Remove formal Search_From of routine Check_Convention.
3556         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3557         Skip_Controlling_Formals.
3558         (New_Overloaded_Entity): Enable addition of predefined dispatching
3559         operations.
3560
3561         * sem_disp.ads
3562         (Find_Primitive_Covering_Interface): New subprogram.
3563
3564         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3565         the task body procedure as a primitive of the corresponding tagged
3566         type.
3567         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3568         to the list of primitives.
3569         (Find_Primitive_Covering_Interface): New subprogram.
3570         (Override_Dispatching_Operation): Add documentation.
3571
3572         * sem_type.adb (Covers): Minor reformatings
3573
3574         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3575         Collect_Interfaces.
3576         Rename formal.
3577         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3578         (Implements_Interface): New subprogram.
3579         (Is_Parent): Removed.
3580         (Primitive_Names_Match): New subprogram.
3581         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3582         (Ultimate_Alias): New subprogram.
3583
3584         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3585         Collect_Interfaces.
3586         Remove special management for synchronized types. Rename formal. Remove
3587         internal subprograms Interface_Present_In_Parent and Add_Interface.
3588         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3589         on non-record types by code to return false in such case.
3590         (Implements_Interface): New subprogram.
3591         (Is_Parent): Removed. No special management is now required for
3592         synchronized types covering interfaces.
3593         (Primitive_Names_Match): New subprogram.
3594         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3595         (Ultimate_Alias): New subprogram.
3596
3597         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3598         Add internal entities associated with secondary dispatch tables to
3599         the list of tagged type primitives that are not interfaces.
3600         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3601         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3602         the management of predefined equality operator. In addition, if
3603         the type has an equality function corresponding with a primitive
3604         defined in an interface type, the inherited equality is abstract
3605         as well, and no body can be created for it.
3606
3607         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3608         exp_util to exp_disp.
3609         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3610         an entity corresponds with one of the predefined primitives required
3611         to implement interfaces.
3612         Update copyright notice.
3613
3614         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3615         final check on abstract subprograms all the primitives associated with
3616         interface primitives because they must be visible in the public and
3617         private part.
3618         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3619         interface type. This allows the use of this routine, for debugging
3620         purposes, when the tagged type is not fully decorated.
3621         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3622         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3623         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3624         entity corresponds with one of the predefined primitives required to
3625         implement interfaces.
3626
3627         * exp_util.adb (Find_Interface_ADT): New implementation
3628         (Find_Interface): Removed.
3629
3630         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3631         list of interfaces associated with nodes
3632         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3633
3634 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3635
3636         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3637         condition for assignment to temporary.
3638
3639 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3640
3641         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3642         checks on the upper bound if the index type is a modular type, to
3643         prevent wrap-around computations when size is close to upper bound of
3644         type.
3645
3646 2008-05-26  Robert Dewar  <dewar@adacore.com>
3647
3648         * sem_ch3.adb: Minor reformatting
3649
3650 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3651
3652         * sem_ch12.adb (Remove_Parent): Use specification of instance
3653         to retrieve generic parent,
3654         to handle properly the case where the instance is a child unit.
3655         Add guard to handle properly wrapper packages.
3656         Minor reformatting
3657
3658 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3659
3660         * sinfo.ads: Minor reformatting
3661
3662 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3663
3664         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3665         Generate a tag check when the result subtype of a function, defined by
3666         an access definition, designates a specific tagged type.
3667         (Make_Tag_Check): New routine.
3668
3669 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3670
3671         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3672
3673 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3674
3675         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3676         (builtin_decl_for): Likewise.
3677         * trans.c (gigi): Likewise.
3678         * utils.c (def_builtin_1): Fix formatting.
3679
3680 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3681
3682         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3683         Create the statements which map a string name to protected or task
3684         entry indix.
3685
3686         * exp_ch9.adb: Add with and use clause for Stringt.
3687         Minor code reformatting.
3688         (Build_Entry_Names): New routine.
3689         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3690         for flag Build_Entry_Names which controls the allocation of the data
3691         structure for the string names of entries.
3692
3693         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3694
3695         * exp_util.adb (Entry_Names_OK): New function.
3696
3697         * exp_util.ads (Entry_Names_OK): New function.
3698
3699         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3700         enumerations RE_Id and RE_Unit_Table.
3701
3702         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3703         (Free_Entry_Names_Array): New routine.
3704
3705         * s-taskin.ads: Comment reformatting.
3706         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3707         Add component Entry_Names to record Ada_Task_Control_Block.
3708         (Free_Entry_Names_Array): New routine.
3709
3710         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3711         dynamically allocate an array
3712         of string pointers. This structure holds string entry names.
3713         (Free_Entry_Names): New routine.
3714         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3715         (Set_Entry_Names): New routine.
3716
3717         * s-tassta.ads:
3718         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3719         control the allocation of the data structure which stores entry names.
3720         (Set_Entry_Name): New routine.
3721
3722         * s-tpoben.adb:
3723         Add with and use clause for Ada.Unchecked_Conversion.
3724         (Finalize): Deallocate the entry names array.
3725         (Free_Entry_Names): New routine.
3726         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3727         create an array of string pointers to hold the entry names.
3728         (Set_Entry_Name): New routine.
3729
3730         * s-tpoben.ads:
3731         Add field Entry_Names to record Protection_Entries.
3732         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3733         (Set_Entry_Name): New routine.
3734
3735 2008-05-26  Vincent Celier  <celier@adacore.com>
3736
3737         * prj-nmsc.adb:
3738         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3739
3740         * prj.ads:
3741         (Project_Configuration): New component Shared_Lib_Driver
3742
3743 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3744
3745         * inline.adb:
3746         (Cleanup_Scopes): For a protected operation, transfer finalization list
3747         to protected body subprogram, to force cleanup actions when needed.
3748
3749 2008-05-26  Robert Dewar  <dewar@adacore.com>
3750
3751         * sem_cat.adb: Minor reformatting
3752
3753         * gnatname.adb: Minor reformatting
3754
3755         * osint.ads: Minor reformatting
3756
3757         * s-carun8.ads: Minor reformatting
3758
3759         * g-heasor.ads: Minor comment fix (unit is now pure)
3760
3761 2008-05-26  Robert Dewar  <dewar@adacore.com>
3762
3763         * exp_ch2.adb:
3764         (Expand_Current_Value): Properly type generated integer literal
3765
3766 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3767
3768         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3769         Separate_Numeric_Error_Handlers.
3770
3771 2008-05-26  Pascal Obry  <obry@adacore.com>
3772
3773         * sem_aggr.adb: Minor reformatting.
3774
3775 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3776
3777         * s-osinte-aix.adb:
3778         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3779         the scheduling policy to FIFO within priorities or round-robin
3780         respectively.
3781         Hence, the priority must be set in this case to the one selected by the
3782         user.
3783
3784 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3785
3786         * sem_ch12.adb:
3787         (Remove_Parent): If the enclosing scope is an instance whose generic
3788         parent is declared within some parent scope of the just completed
3789         instance, make full views of the entities in that parent visible, when
3790         applicable.
3791
3792 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3793
3794         * mingw32.h (STD_MINGW): Set to true for target w64.
3795
3796 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3797
3798         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3799         instead of TREE_STATIC on the ADDR_EXPR.
3800
3801 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3802
3803         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3804         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3805         GNAT standard locations.
3806
3807 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3808
3809         * gigi.h (mark_visited): Declare.
3810         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3811         only the topmost node of expressions.
3812         (elaborate_expression_1): Look deeper for read-only variables.
3813         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3814         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3815         (mark_visited_r): New function.
3816
3817 2008-05-23  Vincent Celier  <celier@adacore.com>
3818
3819         * snames.adb: New standard name Excluded_Source_List_File.
3820
3821         * snames.ads: New standard name Excluded_Source_List_File.
3822
3823         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3824
3825         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3826         Get excluded sources from
3827         file indicated by attribute Excluded_Source_List_File, when present and
3828         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3829
3830 2008-05-23  Robert Dewar  <dewar@adacore.com>
3831
3832         * exp_dist.adb: Minor reformatting
3833
3834 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3835
3836         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3837         slice, convert it to an indexed component, which is equivalent, more
3838         efficient, and usable even if the slice itself is not addressable.
3839
3840 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3841
3842         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3843         convention also allows access to named compiler built-in subprograms
3844         such as the GCC __builtin family.
3845
3846 2008-05-23  Vincent Celier  <celier@adacore.com>
3847
3848         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3849         sep. If there are several possibilities, choose the one with the
3850         longer prefix.
3851
3852 2008-05-23  Vincent Celier  <celier@adacore.com>
3853
3854         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3855         back end switches when executable specified with --GCC= is same as
3856         default, even if there are additional options.
3857
3858         * gnat_ugn.texi:
3859         Document when the back end switches from the ALI file are taken into
3860         account when gnatlink is invoked with --GCC=
3861
3862 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3863
3864         * s-os_lib.adb:
3865         (copy_File): Do not open destination file if source file is unreadable.
3866
3867 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3868
3869         * utils.c (handle_type_generic_attribute): Adjust to accept
3870         fixed arguments before an elipsis.
3871
3872 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3873
3874         * g-sothco.ads, g-sothco.adb: New files.
3875
3876 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3877
3878         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3879
3880         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3881         Add missing "with" of Ada.Unchecked_Conversion
3882
3883         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3884         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3885         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3886         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3887         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3888         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3889         Move common code out of GNAT.Sockets.Thin implementations and into
3890         Thin_Common.
3891         New constant SIZEOF_fd_set
3892         New flag Has_Sockaddr_Len
3893         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3894
3895         * g-stsifd-sockets.adb
3896         (Create): Remove call to Set_Length; use Set_Family to set the family
3897         and (on appropriate platforms) length fields in struct sockaddr.
3898
3899         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3900         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3901         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3902         Move common code out of GNAT.Sockets.Thin implementations and into
3903         Thin_Common.
3904
3905         * g-socket.ads, g-socket.adb:
3906         Move common code out of GNAT.Sockets.Thin implementations and into
3907         Thin_Common.
3908         (Connect_Socket, Accept_Socket): Provide new versions of these two
3909         routines that operate with a user specified timeout.
3910         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3911         this is now handled automatically by Set_Family on platforms that
3912         require it.
3913
3914         * gen-soccon.c:
3915         Move common code out of GNAT.Sockets.Thin implementations and into
3916         Thin_Common.
3917         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3918         this constant to 0 (not -1) because we use it to initialize an
3919         unsigned_char value.
3920         Align values for numeric constants only.
3921         Handle the case of systems that do not support AF_INET6.
3922         New constant SIZEOF_fd_set
3923         New flag Has_Sockaddr_Len
3924         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3925
3926         * gsocket.h: New flag Has_Sockaddr_Len
3927         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3928
3929 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3930
3931         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3932
3933 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3934
3935         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3936         the underlying issue with malloc/free has been fixed. Remove associated
3937         comments.
3938         Minor reformatting.
3939         Related to PR ada/24533
3940
3941 2008-05-20  Robert Dewar  <dewar@adacore.com>
3942
3943         * ali.adb: Correct casing of ASCII.NUL
3944
3945         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3946         properly.
3947
3948 2008-05-20  Robert Dewar  <dewar@adacore.com>
3949             Gary Dismukes  <dismukes@adacore.com>
3950
3951         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3952         overflow if result converted to wider integer type.
3953         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3954         discriminated types when discriminant checks are suppressed.
3955
3956 2008-05-20  Vincent Celier  <celier@adacore.com>
3957
3958         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3959         Wide_Wide_Character.
3960
3961 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3962
3963         * decl.c: Do not emit a variable for a object that has an address
3964         representation clause whose value is known at compile time.
3965         When a variable has an address clause whose value is known at compile
3966         time, refer to this variable by using directly the address instead of
3967         dereferencing a pointer.
3968
3969 2008-05-20  Robert Dewar  <dewar@adacore.com>
3970
3971         PR ada/30740
3972         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3973         subtypes, always False for non-modular types.
3974         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3975         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3976         for Shared_Storage package.
3977         (Is_RACW_Stub_Type): New entity flag.
3978
3979         * exp_ch4.adb
3980         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3981         case where we have a modular type with a non-binary modules.
3982         Comments reformattings.
3983
3984         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3985         all types.
3986
3987 2008-05-20  Javier Miranda  <miranda@adacore.com>
3988
3989         * exp_aggr.adb
3990         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3991         tests did not covered the case in which the type of the aggregate has
3992         no progenitors but some its parents has progenitors.
3993
3994 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3995             Hristian Kirtchev  <kirtchev@adacore.com>
3996
3997         * exp_ch3.adb
3998         (Expand_N_Object_Declaration): Correct the condition which triggers the
3999         generation of a call to Displace when initializing a class-wide object.
4000         (Build_Dcheck_Functions): Build discriminant-checking for null variants
4001         when Frontend_Layout_On_Target is true to ensure that they're available
4002         for calling when a record variant size function is built in Layout.
4003
4004 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4005
4006         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4007         procedure for a derived type retrieve the discriminant values from the
4008         parent using the corresponding discriminant.
4009         (Expand_N_Assignment_Statement): Skip generation of implicit
4010         if-statement associated with controlled types if we are
4011         compiling with restriction No_Finalization.
4012
4013 2008-05-20  Vincent Celier  <celier@adacore.com>
4014
4015         * prj.adb (Hash (Project_Id)): New function
4016         (Project_Empty): Add new component Interfaces_Defined
4017
4018         * prj.ads (Source_Data): New component Object_Linked
4019         (Language_Config): New components Object_Generated and Objects_Linked
4020         (Hash (Project_Id)): New function
4021         (Source_Data): New Boolean components In_Interfaces and
4022         Declared_In_Interfaces.
4023         (Project_Data): New Boolean component Interfaces_Defined
4024
4025         * prj-attr.adb:
4026         New project level attribute Object_Generated and Objects_Linked
4027         Add new project level attribute Interfaces
4028
4029         * prj-dect.adb: Use functions Present and No throughout
4030         (Parse_Variable_Declaration): If a string type is specified as a simple
4031         name and is not found in the current project, look for it also in the
4032         ancestors of the project.
4033
4034         * prj-makr.adb:
4035         Replace procedure Make with procedures Initialize, Process and Finalize
4036         to implement H414-023: process different directories with different
4037         patterns.
4038         Use functions Present and No throughout
4039
4040         * prj-makr.ads:
4041         Replace procedure Make with procedures Initialize, Process and Finalize
4042
4043         * prj-nmsc.adb
4044         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4045         the language configuration.
4046         (Process_Project_Level_Array_Attributes): Process new attributes
4047         Object_Generated and Object_Linked.
4048         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4049         False, to indicate that the erreor/warning is a continuation.
4050         (Check): Call Report_No_Sources with Contnuation = True after the first
4051         call.
4052         (Error_Msg): Process successively contnuation character and warning
4053         character.
4054         (Find_Explicit_Sources): Check that all declared sources have been found
4055         (Check_File): Indicate in hash table Source_Names when a declared source
4056         is found.
4057         (Check_File): Set Other_Part when found
4058         (Find_Explicit_Sources): In multi language mode, check if all exceptions
4059         to the naming scheme have been found. For Ada, report an error if an
4060         exception has not been found. Otherwise, disregard the exception.
4061         (Check_Interfaces): New procedure
4062         (Add_Source): When Other_Part is defined, set mutual pointers in spec
4063         and body.
4064         (Check): In multi-language mode, call Check_Interfaces
4065         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4066         for an excluded source.
4067         (Remove_Source): A source replacing a source in the interfaces is also
4068         in the interfaces.
4069
4070         * prj-pars.adb: Use function Present
4071
4072         * prj-part.adb: Use functions Present and No throughout
4073         (Parse_Single_Project): Set the parent project for child projects
4074         (Create_Virtual_Extending_Project): Register project with no qualifier
4075         (Parse_Single_Project): Allow an abstract project to be extend several
4076         times. Do not allow an abstract project to extend a non abstract
4077         project.
4078
4079         * prj-pp.adb: Use functions Present and No throughout
4080         (Print): Take into account the full associative array attribute
4081         declarations.
4082
4083         * prj-proc.adb: Use functions Present and No throughout
4084         (Expression): Call itself with the same From_Project_Node for the
4085         default value of an external reference.
4086
4087         * prj-strt.adb: Use functions Present and No throughout
4088         (Parse_Variable_Reference): If a variable is specified as a simple name
4089         and is not found in the current project, look for it also in the
4090         ancestors of the project.
4091
4092         * prj-tree.ads, prj-tree.adb (Present): New function
4093         (No): New function
4094         Use functions Present and No throughout
4095         (Parent_Project_Of): New function
4096         (Set_Parent_Project_Of): New procedure
4097
4098         * snames.ads, snames.adb:
4099         Add new standard names Object_Generated and Objects_Linked
4100
4101 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4102
4103         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4104         and the derived type are of the same kind.
4105         (Expand_Call): Generate type conversions for actuals of
4106         record or array types when the parent and the derived types differ in
4107         size and/or packed status.
4108
4109 2008-05-20  Javier Miranda  <miranda@adacore.com>
4110             Ed Schonberg  <schonberg@adacore.com>
4111
4112         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4113         generating dispatch tables of locally defined tagged types statically.
4114         Remove implicit if-statement that is no longer required.
4115         (Expand_Dispatching_Call): If this is a call to an instance of the
4116         generic dispatching constructor, the type of the first argument may be
4117         a subtype of Tag, so always use the base type to recognize this case.
4118
4119 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4120
4121         * exp_dist.adb
4122         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4123         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4124         assigning NULL into the result, to avoid a spurious warning.
4125         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4126         is not frozen.
4127         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4128         type.
4129         (Build_From_Any_Function, Build_To_Any_Function,
4130         Build_TypeCode_Function): For a type that has user-specified stream
4131         attributes, use an opaque sequence of octets as the representation.
4132
4133 2008-05-20  Kevin Pouget  <pouget@adacore.com>
4134
4135         * exp_smem.ads, exp_smem.adb: Construction of access and assign
4136         routines has been replaced by an instantiation of
4137         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4138         shared variable declaration.
4139         Calls to access and assign routines have been replaced by calls to
4140         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4141         instantiated package.
4142
4143         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4144         It identifies the new generic package added in s-shasto.
4145
4146         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4147         is instantiated for each shared passive variable. It provides
4148         supporting procedures called upon each read or write access by the
4149         expanded code.
4150
4151         * sem_attr.adb:
4152         For this runtime unit (always compiled in GNAT mode), we allow
4153         stream attributes references for limited types for the case where
4154         shared passive objects are implemented using stream attributes,
4155         which is the default in GNAT's persistent storage implementation.
4156
4157 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4158
4159         * freeze.adb
4160         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4161         convention from its base type, do not set the type to that of integer,
4162         because it may inherit a size clause.
4163         Warn on a size clause with a size different
4164         from that of Integer, if the type has convention C.
4165
4166 2008-05-20  Vincent Celier  <celier@adacore.com>
4167
4168         * gnatname.adb
4169         (Scan_Args): Rewrite to take into account new switch --and to separate
4170         arguments into sections.
4171         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4172         section, then Finalize.
4173
4174 2008-05-20  Tristan Gingold  <gingold@adacore.com>
4175
4176         * init.c: Enable stack probing on ppc-linux.
4177
4178         * tracebak.c: Add symbolic traceback for ppc-linux.
4179
4180         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4181
4182 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4183
4184         * Makefile.in
4185         (common-tools): New rule, to avoid parallel build failure on gnat tools.
4186         Reenable parallel builds on this Makefile.
4187
4188         * Make-lang.in: Update dependencies.
4189
4190 2008-05-20  Robert Dewar  <dewar@adacore.com>
4191
4192         * opt.ads (Treat_Restrictions_As_Warnings): New switch
4193
4194         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4195         Treat_Restrictions_As_Warnings.
4196
4197         * switch-c.adb: Recognize new switch -gnatr
4198
4199         * usage.adb: Add line for -gnatr
4200
4201 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4202
4203         * par-ch3.adb
4204         (P_Access_Definition): Change the error message when parsing "access
4205         all" in Ada 95 mode. The message no longer forces the user to recompile
4206         in 05 mode only to discover that anonymous access types are not allowed
4207         to have "all".
4208
4209 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4210
4211         * par-ch9.adb
4212         (P_Protected): Update the error message on missing "-gnat05" switch when
4213         using interfaces in conjunction with protected types. Remove the
4214         incorrect error message associated with the presence of "private" after
4215         a "with".
4216
4217 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4218
4219         * sem_aggr.adb: Update comments.
4220         Improve previous change for PR ada/17985
4221
4222 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4223
4224         * sem_cat.adb
4225         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4226         the visible part of the spec of a remote types unit.
4227         (Validate_Remote_Access_Object_Type_Declaration):
4228         New local subprogram Is_Valid_Remote_Object_Type, replaces
4229         Is_Recursively_Limited_Private.
4230         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4231         non-controlling formals (and the return type, even though this is not
4232         explicit in the standard) must support external streaming.
4233         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4234         as above for of RAS types and RCI subprograms. (The return type is not
4235         checked yet).
4236         Update comments related to RACWs designating limited interfaces per
4237         ARG ruling on AI05-060.
4238
4239         * sem_util.ads, sem_util.adb
4240         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4241         Is_Remote_Call_Interface to identify RACW types in a stable and
4242         consistent way. We used to rely in this predicate on the privateness of
4243         the designated type and its ancestors, but depending on the currently
4244         visible private parts, this caused false negatives. We now uniformly
4245         rely on checks made at the point where the RACW type is declared.
4246         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4247
4248 2008-05-20  Javier Miranda  <miranda@adacore.com>
4249             Ed Schonberg  <schonberg@adacore.com>
4250             Hristian Kirtchev  <kirtchev@adacore.com>
4251
4252         * sem_ch3.adb
4253         (Analyze_Object_Declaration): Fix over-conservative condition
4254         restricting use of predefined assignment with tagged types that have
4255         convention CPP.
4256         (Analyze_Object_Declaration): Relax the check regarding deferred
4257         constants declared in scopes other than packages since they can be
4258         completed with pragma Import.
4259         Add missing escaping of all-caps word 'CPP' in error messages.
4260         (Build_Discriminated_Subtype): Do not inherit representation clauses
4261         from parent type if subtype already carries them, because they are
4262         inherited earlier during derivation and already include those that may
4263         come from a partial view.
4264
4265         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4266         Check the declarations of a subprogram body for proper deferred
4267         constant completion.
4268
4269         * sem_ch7.ads, sem_ch7.adb
4270         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4271
4272 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4273             Thomas Quinot  <quinot@adacore.com>
4274
4275         * sem_ch4.adb
4276         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4277         F is a parameterless function that returns an array, and S is a subtype
4278         mark.
4279         (Analyze_Call): Insert dereference when the prefix is a parameterless
4280         function that returns an access to subprogram and the call has
4281         parameters.
4282         Reject a non-overloaded call whose name resolves to denote
4283         a primitive operation of the stub type generated to support a remote
4284         access-to-class-wide type.
4285
4286 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4287
4288         * sem_ch8.adb
4289         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4290         when there is a use clause for the same entity in the context.
4291         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4292         created for a stream attribute of an abstract type or interface type.
4293
4294 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4295
4296         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4297         subprogram.
4298
4299         * sem_type.adb
4300         (Add_One_Interp): Ignore any interpretation that is a primitive
4301         operation of an RACW stub type (these primitives are only executed
4302         through dispatching, never through static calls).
4303         (Collect_Interps): When only one interpretation has been found, set N's
4304         Entity and Etype to that interpretation, otherwise Entity and Etype may
4305         still refer to an interpretation that was ignored by Add_One_Interp,
4306         in which case would end up with being marked as not overloaded but with
4307         an Entity attribute not pointing to its (unique) correct interpretation.
4308
4309 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4310
4311         * sem_eval.adb
4312         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4313         denotes the whole array of its prefix.
4314
4315 2008-05-20  Robert Dewar  <dewar@adacore.com>
4316
4317         * sem_res.adb (Resolve_Op_Not): Warn on double negation
4318
4319 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4320
4321         * sprint.adb
4322         (Print_Itype): Do not modify the sloc of the component type of a
4323         (packed) array itype, because it is an unrelated type whose source
4324         location is independent of the point of creation of the itype itself.
4325
4326 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4327
4328         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4329         Append.
4330
4331 2008-05-20  Robert Dewar  <dewar@adacore.com>
4332             Vincent Celier  <celier@adacore.com>
4333
4334         * vms_data.ads: Add entry for -gnatr
4335         Put GNAT SYNC section in proper alpha order
4336         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4337
4338         * gnat_ugn.texi: Add documentation for new gnatname switch --and
4339         Update the style checks section
4340         Add documentation of -gnatr
4341         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4342         subsection the explanation how compiler checks should be disabled for
4343         gnatcheck.
4344         Update the list of Ada 95 reserved words used by in the project language
4345         Add documentation for project qualifiers.
4346         Document that abstract projects may be extended by different projects in
4347         the same project tree.
4348         Add documentation for gnatmake switch -d
4349
4350         * ug_words: Add -gnatyy VMS equivalence string.
4351         Add entry for -gnatr
4352
4353 2008-05-20  Bob Duff  <duff@adacore.com>
4354
4355         * a-rttiev.adb
4356         (Set_Handler): Remove code from both of these that implements
4357         RM-D.15(15/2), because it causes a race condition and potential
4358         deadlock.
4359         (Process_Queued_Events): Add comment explaining "exception when others
4360         => null". Add clarifying ".all", even though implicit .all is legal
4361         here.
4362
4363 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4364
4365         * s-winext.ads: Replace representation clause by pragma Pack. Gives
4366         equivalent representation, but has the advantage of allowing
4367         compilation of this file under 64 bits platforms.
4368
4369         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4370
4371         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4372
4373         * adaint.c:
4374         Don't define dummy implementation of convert_addresses on ppc-linux.
4375
4376 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4377
4378         * exp_ch7.adb
4379         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4380         if expression is aggregate component.
4381
4382 2008-05-20  Robert Dewar  <dewar@adacore.com>
4383
4384         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4385         sem_ch12.adb: Update comments. Minor reformatting.
4386
4387         * exp_ch2.adb: Typo
4388
4389         * s-unstyp.ads: Fixed some typos in comments.
4390
4391 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4392
4393         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4394         type/constant.
4395
4396         * g-socthi-vxworks.ads: Update to latest socket changes.
4397
4398         * a-caldel-vms.adb: Resync with a-caldel spec.
4399
4400         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4401         Update comments.
4402
4403 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4404
4405         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4406         for dummy types pointed to by the converted pointer types.
4407
4408 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4409
4410         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4411         of records and unions.
4412         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4413
4414 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
4415             Robert Dewar <dewar@adacore.com>
4416
4417         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4418         restrictions to the prefix of 'Old.
4419         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4420         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4421         variables.
4422
4423 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4424
4425         PR ada/24880
4426         PR ada/26635
4427         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4428         expression to an integral type with lower precision, use NOP_EXPR
4429         directly in a couple of special cases.
4430
4431 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4432             Ed Schonberg <schonberg@adacore.com>
4433
4434         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4435         constraint expressions.
4436
4437 2008-05-12  Tomas Bily  <tbily@suse.cz>
4438
4439         * utils2.c (known_alignment, contains_save_expr_p)
4440         (gnat_mark_addressable): Use CASE_CONVERT.
4441         * decl.c (annotate_value): Likewise.
4442         * trans.c (maybe_stabilize_reference): Likewise.
4443         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4444         * utils.c (rest_of_record_type_compilation): Likewise.
4445         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4446         (protect_multiple_eval): Likewise.
4447
4448 2008-05-08  Andreas Schwab  <schwab@suse.de>
4449
4450         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4451         DECL_IS_PURE to DECL_PURE_P.
4452
4453 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4454
4455         * decl.c (maybe_pad_type): Add ??? comment.
4456
4457 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4458
4459         * decl.c (components_to_record): Zero the alignment of the qualified
4460         union built for the variant part upon creating it.
4461
4462 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4463
4464         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4465         mode even if the alignment is not a factor of the original size.  But
4466         make sure to create the inner field with the original size.  Reorder.
4467         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4468         record as always addressable.
4469         * utils.c (convert): Deal specially with conversions between original
4470         and packable versions of a record type.
4471         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4472         recognizing an assignment between padded objects.
4473
4474 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4475
4476         * decl.c (make_packable_type): Resize the last component to its RM size
4477         only if it is of an aggregate type.
4478         * trans.c (call_to_gnu): Fix nit in comment.
4479         (gnat_to_gnu): Likewise.
4480
4481 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4482
4483         * Makefile.in: Adapt sh4-linux target.
4484
4485 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4486
4487         PR ada/35792
4488         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4489         tagged type by an untagged protected or task type.
4490
4491 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4492             Tristan Gingold  <gingold@adacore.com>
4493
4494         PR ada/36007
4495         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4496         of aliased objects with an unconstrained nominal subtype.
4497         Cap the promotion to the effective alignment of the word mode.
4498
4499 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4500
4501         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4502         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4503         Use '&&' instead of ';'.
4504
4505 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4506
4507         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4508         doesn't require signed arithmetic anymore.
4509
4510 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4511
4512         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4513         (call_to_gnu): Don't set TREE_INVARIANT.
4514         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4515
4516 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4517
4518         * s-osinte-rtems.adb: Add sigalstack function.
4519         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4520         function. Add Alternate_Stack and Alternate_Stack_Size.
4521         Add missing process_shared field to pthread_condattr_t
4522         and change ss_low_priority to int from timespec.
4523
4524 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4525
4526         * i-forbla.adb: Link against -llapack and -lblas by default
4527         instead of the private -lgnalasup.
4528
4529 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4530
4531         Access to most C builtins from Ada
4532         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4533         (handle_pure_attribute, handle_novops_attribute,
4534         handle_nonnull_attribute, handle_sentinel_attribute,
4535         handle_noreturn_attribute, handle_malloc_attribute,
4536         handle_type_generic_attribute): New attribute handlers, from C fe.
4537         (gnat_internal_attribute_table): Map the new handlers.
4538         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4539         (init_gigi_decls): ... here.
4540         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4541         Move to a section dedicated to builtins processing.
4542         (build_void_list_node, builtin_type_for_size): New functions.
4543         (def_fn_type, get_nonnull_operand): Likewise.
4544         (install_builtin_elementary_type, install_builtin_function_types,
4545         install_builtin_attributes): Likewise.
4546         (fake_attribute_handler): Fake handler for attributes we don't
4547         support in Ada.
4548         (def_builtin_1): New function, worker for DEF_BUILTIN.
4549         (install_builtin_functions): New function.
4550         (gnat_install_builtins): Move to the builtins processing section.
4551         Now calling the newly introduced installers.
4552
4553 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4554
4555         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4556         constant objects, but not exceptions.
4557         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4558         compatibility test.
4559         * utils.c (create_var_decl_1): Likewise.
4560         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4561         the type when copying to padded object and the source is a constructor.
4562
4563 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4564
4565         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4566         alignment, reset it to zero if it would end up not being greater
4567         than that of the type.
4568
4569 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4570
4571         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4572         the padded type has a variable size.
4573
4574 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4575
4576         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4577         target pointer mechanism as soon as the size is not constant.
4578
4579 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4580
4581         * gigi.h (create_var_decl_1): Declare.
4582         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4583         (create_true_var_decl): Likewise.
4584         * utils.c (create_var_decl_1): Make global and reorder parameters.
4585         (create_var_decl): Delete.
4586         (create_true_var_decl): Likewise.
4587
4588 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4589
4590         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4591         objects by default.
4592         * fe.h (Debug_Flag_Dot_A): Delete.
4593         * debug.adb (-gnatd.a): Update documentation.
4594
4595 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4596
4597         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4598         "not null" parameter.
4599
4600 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4601
4602         * g-socket.adb: Add a message "IPv6 not supported" to the
4603         Socket_Error exception.
4604
4605 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4606
4607         PR ada/29015
4608         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4609         the type is known instead of the underlying type.
4610
4611 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4612
4613         PR ada/22387
4614         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4615         procedure for a derived type retrieve the discriminant values from
4616         the parent using the corresponding discriminant.
4617
4618 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4619             Gary Dismukes  <dismukes@adacore.com>
4620
4621         PR ada/28733
4622         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4623         which is not an entity (and hence not a package).
4624         (End_Use_Package): Ditto.
4625
4626 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4627
4628         PR ada/16086
4629         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4630         protected operation that matches the signature, not only an entry, a
4631         regular subprogram or a literal.
4632
4633 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4634
4635         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4636         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4637         if a size or alignment is specified.  Do not take into account
4638         alignment promotions for the computation of the object's size.
4639         <type>: Call maybe_pad_type only if a size or alignment is specified.
4640         (maybe_pad_type): Really reuse the RM_Size of the original type if
4641         requested.
4642         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4643         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4644         statements.  Use the padded view of the type when copying between
4645         padded objects of the same underlying type.
4646
4647 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4648
4649         * vms_data.ads: Fix typo in constant.
4650         * gen-soccon.c: Fix typo in error string.
4651         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4652         Fix typos.
4653         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4654         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4655         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4656         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4657         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4658         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4659         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4660         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4661         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4662         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4663         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4664         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4665         sinfo.ads: Fix typos in comments.
4666
4667 2008-04-14  Robert Dewar  <dewar@adacore.com>
4668
4669         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4670         to every non-object and change error message.
4671
4672 2008-04-14  Robert Dewar  <dewar@adacore.com>
4673
4674         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4675         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4676         directly.
4677
4678 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4679
4680         PR ada/18680
4681         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4682         apply pragma Linker_Section on type.
4683
4684 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4685
4686         PR ada/16098
4687         * sem_prag.adb (Error_Pragma_Ref): New.
4688         (Process_Convention): Specialized message for non-local
4689         subprogram renaming. Detect the problem in homonyms as well.
4690
4691 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4692
4693         PR ada/15915
4694         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4695         * sem_ch12.adb (Instantiate_Object): Use it.
4696         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4697         storage pool denotes a variable as per RM 13.11(15).
4698
4699 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4700
4701         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4702         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4703
4704 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4705
4706         PR ada/20822
4707         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4708         line endings even on non-Unix platforms.
4709
4710 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4711
4712         PR ada/35050
4713         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4714         renaming information.
4715
4716 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
4717
4718         PR ada/17985
4719         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4720         itself.
4721
4722 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4723
4724         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4725         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4726         snames.ads, sprint.adb, stand.ads, stringt.ads,
4727         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4728         switch.ads, sysdep.c, table.adb, table.ads,
4729         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4730         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4731         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4732         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4733         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4734         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4735         Fix comment typos.
4736
4737         * sem_ch10.adb, sem_ch10.ads,
4738         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4739         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4740         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4741         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4742         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4743         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4744         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4745         sem_warn.ads: Fix comment typos.
4746
4747         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4748         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4749         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4750         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4751         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4752         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4753         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4754         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4755         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4756         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4757         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4758         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4759         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4760         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4761         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4762         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4763         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4764         sem_cat.adb, sem_cat.ads: Fix comment typos.
4765
4766 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4767
4768         PR ada/35825
4769         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4770
4771 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4772
4773         * s-linux-hppa.ads: Fix syntax errors.
4774
4775 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4776
4777         * gnat_ugn.texi: Fix typos.
4778         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4779         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4780         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4781         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4782         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4783         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4784         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4785         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4786         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4787         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4788         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4789         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4790         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4791         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4792         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4793         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4794         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4795         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4796         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4797         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4798         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4799         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4800         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4801         s-rident.ads: Fix comment typos.
4802
4803 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4804
4805         PR ada/28305
4806         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4807         environment if generic instance is a top-level one.
4808
4809 2008-04-09  Doug Rupp  <rupp@adacore.com>
4810
4811         * decl.c (validate_size): Set minimum size for fat pointers same as
4812         access types. Code clean ups.
4813
4814         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4815         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4816
4817         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4818
4819         * s-crtl.ads (malloc32) New function, alias for malloc
4820         (realloc32) New function, alias for realloc
4821
4822         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4823
4824         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4825         allocator size is 32 and default pointer size is 64.
4826         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4827         lhs type if smaller, whatever the modes.
4828
4829         * gigi.h (malloc32_decl): New macro definition
4830
4831         * utils.c (init_gigi_decls): New malloc32_decl
4832         Various code clean ups.
4833
4834         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4835         Task_Address vice System.Address.
4836
4837         * s-taspri-vms.ads: Import System.Aux_DEC
4838         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4839         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4840
4841         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4842         Task_Address vice System.Address.
4843
4844         * s-inmaop-vms.adb: Import System.Task_Primitives
4845         (To_Address): Unchecked convert to Task_Address vice System.Address
4846
4847         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4848         expires now.
4849         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4850         (To_Address) Unchecked convert to Task_Address vice System.Address
4851
4852         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4853
4854         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4855
4856 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4857
4858         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4859         (fdesc_type_node): Define.
4860         (null_fdesc_node): Likewise.
4861         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4862         uses descriptors for vtables and the type comes from a dispatch table,
4863         return the descriptor type.
4864         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4865         uses descriptors for vtables and the type comes from a dispatch table,
4866         build a descriptor in the static case and copy the existing one in the
4867         non-static case.
4868         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4869         the type is a pointer-to-subprogram coming from a dispatch table,
4870         return the null descriptor.
4871         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4872         vtables, the source type is the descriptor type and the target type
4873         is a pointer type, first build the pointer.
4874         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4875         build the descriptor type and the null descriptor.
4876
4877 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4878
4879         * decl.c (prepend_attributes): Fix typo.
4880         * trans.c (Pragma_to_gnu): Likewise.
4881         * utils.c (gnat_genericize): Likewise.
4882
4883 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4884             Richard Kenner  <kenner@adacore.com>
4885
4886         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4887         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4888         <E_Record_Type>: Try to get a better form of the component for
4889         packing, even if it has an integral mode.
4890         <E_Record_Subtype>: Likewise.
4891         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4892         exception suppressing the final conversion between record types.
4893
4894 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4895
4896         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4897         alignment for space, promote the alignment of non-scalar variables with
4898         no size and alignment.
4899         * gigi.h (gnat_types_compatible_p): Declare.
4900         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4901         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4902         * utils.c (gnat_types_compatible_p) : New predicate.
4903         (convert): Use it throughout to test for cases where a mere view
4904         conversion is sufficient.
4905         * utils2.c (build_binary_op): Minor tweaks.
4906         (build_unary_op): Likewise.
4907
4908 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4909
4910         * decl.c (adjust_packed): Expand comment.
4911
4912 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4913
4914         * s-tasuti.ads: Use Task_Address instead of System.Address.
4915
4916         * makeutl.adb (Path_Or_File_Name): New function
4917
4918         * nlists.ads, itypes.ads: Update comments.
4919
4920         * s-crtl.ads (malloc32, realloc32): New functions.
4921
4922         * s-auxdec.ads (Short_Address_Size): New constant.
4923
4924         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4925
4926         * s-ststop.ads, s-ststop.adb: New file.
4927
4928         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4929         Minor reformatting.
4930
4931 2008-04-08  Pascal Obry  <obry@adacore.com>
4932
4933         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4934         (Stop_Bits_Number): New type.
4935         (Parity_Check): Likewise.
4936         (Set): Add parameter to set the number of stop bits and
4937         the parity. Parameter timeout is now a duration instead
4938         of a plain integer.
4939
4940         * g-sercom-linux.adb:
4941         Implement the stop bits and parity support for GNU/Linux.
4942         Fix handling of timeout, it must be given in tenth of seconds.
4943
4944         * g-sercom-mingw.adb:
4945         Implement the stop bits and parity support for Windows.
4946         Use new s-win32.ads unit instead of declaring Win32 services
4947         directly into this body.
4948         Update handling of timeout as now a duration.
4949
4950         * s-win32.ads, s-winext.ads: New files.
4951
4952 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4953             Arnaud Charlet  <charlet@adacore.com>
4954
4955         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4956
4957         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4958         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4959
4960         * s-osinte-lynxos-3.ads,
4961         (Alternate_Stack): Remove when not needed. Simplify declaration
4962         otherwise.
4963         (Alternate_Stack_Size): New constant.
4964
4965         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4966         'Unrestricted_Access.
4967
4968         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4969         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4970         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4971         s-osinte-solaris.ads, s-osinte-vms.ads
4972         (SA_ONSTACK): New constant.
4973         (stack_t): New record type.
4974         (sigaltstack): New imported function.
4975         (Alternate_Stack): New imported variable.
4976         (Alternate_Stack_Size): New constant.
4977
4978         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4979
4980         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4981         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4982         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4983         (Task_Address_Size): New constant size of System.Address
4984         (Alternate_Stack_Size): New constant.
4985
4986         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4987         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4988         Establish the alternate stack if the platform makes use of n alternate
4989         signal stack for stack overflows.
4990         (Create_Task): Take into account the alternate stack in the stack size.
4991         (Initialize): Save the address of the alternate stack into the ATCB for
4992         the environment task.
4993         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4994
4995         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4996
4997         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4998
4999         * s-intman-posix.adb:
5000         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5001         alternate signal stack for stack overflows.
5002
5003         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5004         x86-64, adjust the saved value of the stack pointer if the signal was
5005         raised by a stack checking probe.
5006         (HP-UX section): Use global __gnat_alternate_stack as signal handler
5007         stack and only for SIGSEGV.
5008         (Linux section): Likewise on x86 and x86-64.
5009         [VxWorks section]
5010         (__gnat_map_signal): Now static.
5011         (__gnat_error_handler): Not static any more.
5012         (__gnat_adjust_context_for_raise): New function. Signal context
5013         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5014         propagation circuitry.
5015         (__gnat_error_handler): Second argument of a sigaction handler is a
5016         pointer, not an int, and is unused.
5017         Adjust signal context before mapping to exception.
5018         Install signal handlers for LynxOS case.
5019
5020         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5021         (Task_Id): Set size to Task_Address_Size
5022         (To_Task_id): Unchecked convert from Task_Address vice System.Address
5023         (To_Address): Unchecked convert to Task_Address vice System.Address
5024
5025         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5026         address into the ATCB if the platform makes use of an alternate signal
5027         stack for stack overflows.
5028         (Free_Task): Add call to Finalize_Attributes_Link.
5029         Add argument Relative_Deadline to pass the value specified for
5030         the task. This is not yet used for any target.
5031
5032         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5033         the value specified for the task.
5034
5035 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5036
5037         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5038         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5039         s-vxwext-rtp.adb): New files.
5040
5041         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5042         Minor updates to accomodate changes above.
5043
5044 2008-04-08  Pascal Obry  <obry@adacore.com>
5045
5046         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5047         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5048         Use new s-win32.ads unit instead of declaration
5049         from s-osinte-mingw.ads.
5050
5051         * s-osinte-mingw.ads:
5052         Move all non tasking based interface to s-win32.ads.
5053
5054         * s-osprim-mingw.adb:
5055         Remove duplicated declarations and use s-win32.ads
5056         unit instead.
5057
5058 2008-04-08  Vincent Celier  <celier@adacore.com>
5059             Arnaud Charlet  <charlet@adacore.com>
5060
5061         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5062         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5063         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5064         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5065         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5066
5067         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5068         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5069         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5070         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5071         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5072         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5073         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5074         mlib-tgt-specific-mingw.adb: New names.
5075
5076         * Makefile.in:
5077         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5078         Get rid of gnatbl.
5079         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5080         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5081         Minor updates for VMS
5082
5083         * gnatbl.c: Removed.
5084
5085 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5086
5087         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5088         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5089         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5090         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5091         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5092         ASCII.NUL throughout.
5093
5094 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5095             Matthew Heaney  <heaney@adacore.com>
5096
5097         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5098         renaming.
5099
5100         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5101         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5102         to convention for non-RM specs.
5103         Add descriptive header, and documented each operation
5104         document each operation
5105
5106 2008-04-08  Robert Dewar  <dewar@adacore.com>
5107             Bob Duff  <duff@adacore.com>
5108             Gary Dismukes  <dismukes@adacore.com>
5109             Ed Schonberg  <schonberg@adacore.com>
5110
5111         * alloc.ads: Add entries for Obsolescent_Warnings table
5112
5113         * einfo.ads, einfo.adb: Minor reformatting.
5114         (Is_Discriminal): New subprogram.
5115         (Is_Prival): New subprogram.
5116         (Is_Protected_Component): New subprogram.
5117         (Is_Protected_Private): Removed.
5118         (Object_Ref, Set_Object_Ref): Removed.
5119         (Prival, Set_Prival): Change assertion.
5120         (Privals_Chain, Set_Privals_Chain): Removed.
5121         (Prival_Link, Set_Prival_Link): New subprogram.
5122         (Protected_Operation, Set_Protected_Operation): Removed.
5123         (Protection_Object, Set_Protection_Object): New subprogram.
5124         (Write_Field17_Name): Remove case for Object_Ref.
5125         (Write_Field20_Name): Add case for Prival_Link.
5126         (Write_Field22_Name): Remove case for Protected_Operation,
5127         Privals_Chain.
5128         Add case for Protection_Object.
5129         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5130         so clients
5131         (Overlays_Constant): New flag
5132         (Is_Constant_Object): New predicate
5133         (Is_Standard_Character_Type): New predicate
5134         (Optimize_Alignment_Space): New flag
5135         (Optimize_Alignment_Time): New flag
5136         (Has_Postconditions): New flag
5137         (Obsolescent_Warrning): Field removed
5138         (Spec_PPC_List): New field
5139         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5140         subprograms to get and set the relative deadline associated to a task.
5141
5142         * exp_attr.adb (May_Be_External_Call): Account for the case where the
5143         Access attribute is part of a named parameter association.
5144         (Expand_Access_To_Protected_Op): Test for the attribute occurring
5145         within an init proc and use that directly as the scope rather than
5146         traversing up to the protected operation's enclosing scope. Only apply
5147         assertion on Is_Open_Scopes in the case the scope traversal is done.
5148         For the init proc case use the address of the first formal (_init) as
5149         the protected object reference.
5150         Implement Invalid_Value attribute
5151         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5152         contents of the dispatch table there is no need to duplicate the
5153         itypes associated with record types (i.e. the implicit full view
5154         of private types).
5155         Implement Enum_Val attribute
5156         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5157         within _Postconditions procedure
5158         (Expand_N_Attribute_Reference, case Result): Implement new attribute
5159
5160         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5161         a return statement calls a function that is not available in
5162         configurable runtime.
5163         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5164         (Expand_Non_Function_Return): Generate call to _Postconditions proc
5165         (Expand_Simple_Function_Return): Ditto
5166
5167         * frontend.adb: Add call to Sem_Aux.Initialize
5168
5169         * sem_aux.ads, sem_aux.adb: New file.
5170
5171         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5172         Add new Pragma_Relative_Deadline.
5173         Add support for pragmas Check and Check_Policy
5174
5175         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5176         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5177         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5178         missing check because they are not allowed in CPP tagged types.
5179         Add Sure parameter to Note_Possible_Modification calls
5180         Add implementation of Invalid_Value attribute
5181         Implement new attribute Has_Tagged_Values
5182         Implement Enum_Val attribute
5183         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5184         generated attributes.
5185         (Analyze_Attribute, case Result): If prefix of the attribute is
5186         overloaded, it always resolves to the enclosing function.
5187         (Analyze_Attribute, case Result): Properly deal with analysis when
5188         Postconditions are not active.
5189         (Resolve_Attribute, case Result): Properly deal with appearence during
5190         preanalysis in spec.
5191         Add processing for attribute Result
5192
5193         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5194         for operators.
5195         (Analyze_Subprogram_Body): Install private_with_clauses when the body
5196         acts as a spec.
5197         (Check_Inline_Pragma): recognize an inline pragma that appears within
5198         the subprogram body to which it applies.
5199         (Analyze_Function_Return): Check that type of the expression of a return
5200         statement in a function with a class-wide result is not declared at a
5201         deeper level than the function.
5202         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5203         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5204         user- defined operators.
5205         (Install_Formals): Moved to spec to allow use from Sem_Prag for
5206         analysis of precondition/postcondition pragmas.
5207         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5208         Last_Formal, along with lots of comments on what this is about
5209         (Analyze_Subprogram_Body): Fix case where we move entities from the
5210         spec to the body when there are no body entities (now possible with
5211         precondition and postcondition pragmas).
5212         (Process_PPCs): New procedure
5213         (Analyze_Subprogram_Body): Add call to Process_PPCs
5214
5215         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5216         clause.
5217         (Pop_Scope): Restore Check_Policy_List on scope exit
5218         (Push_Scope): Save Check_Policy_List on scope entry
5219         Change name In_Default_Expression      => In_Spec_Expression
5220         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5221         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5222         (Analyze_Object_Renaming): Allow 'Reference as object
5223         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5224         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5225         of restriction identifier.
5226         Add Sure parameter to Note_Possible_Modication calls
5227
5228         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5229         Don't check for primitive operations when calling Rep_Item_Too_Late.
5230         (Process_Import_Or_Interface): Do not place flag on formal
5231         subprograms.
5232         (Analyze_Pragma, case Export): If the entity is a deferred constant,
5233         propagate information to full view, which is the one elaborated by the
5234         back-end.
5235         (Make_Inline): the pragma is effective if it applies to an internally
5236         generated subprogram declaration for a body that carries the pragma.
5237         (Analyze_Pragma, case Optimize_Alignment): Set new flag
5238         Optimize_Alignment_Local.
5239         (Analyze_PPC_In_Decl_Part): New procedure
5240         (Get_Pragma_Arg): Moved to outer level
5241         (Check_Precondition_Postcondition): Change to allow new visibility
5242         rules for package spec
5243         (Analyze_Pragma, case Check_Policy): Change placement rules to be
5244         same as pragma Suppress/Unsuppress.
5245         Change name In_Default_Expression      => In_Spec_Expression
5246         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5247         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5248         (Check_Precondition_Postcondition): Do proper visibility preanalysis
5249         for the case of these pragmas appearing in the spec.
5250         (Check_Enabled): New function
5251         (Initialize): New procedure
5252         (Tree_Read): New procedure
5253         (Tree_Write): New procedure
5254         (Check_Precondition_Postcondition): New procedure
5255         Implement pragmas Check and Check_Policy
5256         Merge Assert processing with Check
5257
5258         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5259         New warning flag -gnatw.e
5260
5261         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5262         returning whether a task (or main procedure) has a pragma
5263         Relative_Deadline.
5264         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5265         (or main procedure) has a pragma Relative_Deadline.
5266         Add Next_Pragma field to N_Pragma node
5267         (PPC_Enabled): New flag
5268         (Next_Pragma): Now used for Pre/Postcondition processing
5269
5270         * snames.h, snames.ads, snames.adb: New standard name
5271         Inherit_Source_Path
5272         Add entry for 'Invalid_Value attribute
5273         Add entry for new attribute Has_Tagged_Values
5274         Add entry for Enum_Val attribute
5275         Add new standard names Aggregate, Configuration and Library.
5276         Add _Postconditions
5277         Add _Result
5278         Add Pragma_Precondition
5279         Add Pragma_Postcondition
5280         Add Attribute_Result
5281         New standard name Archive_Builder_Append_Option
5282         (Preset_Names): Add _relative_deadline and relative_deadline definitions
5283         There was also a missing non_preemptive_within_priorities.
5284         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5285         Relative_Deadline.
5286         Add support for pragmas Check and Check_Policy
5287
5288         * tree_gen.adb: Call Sem_Aux.Tree_Write
5289
5290         * tree_in.adb: Call Sem_Aux.Tree_Read
5291
5292         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5293         sequence
5294
5295         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5296         sequence
5297
5298         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5299         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5300         Relative_Deadline.
5301         (Expand_Pragma_Check): New procedure
5302
5303         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5304         buffer.
5305
5306         * sinfo.adb (PPC_Enabled): New flag
5307
5308 2008-04-08  Robert Dewar  <dewar@adacore.com>
5309             Gary Dismukes  <dismukes@adacore.com>
5310             Javier Miranda  <miranda@adacore.com>
5311             Ed Schonberg  <schonberg@adacore.com>
5312
5313         * fe.h: Remove global Optimize_Alignment flag, no longer used
5314
5315         * layout.adb: Test Optimize_Alignment flags rather than global switch
5316
5317         * lib.ads, lib.adb: New OA_Setting field in library record
5318
5319         * lib-load.adb: New OA_Setting field in library record
5320
5321         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5322         units mentioned in limited_with_ clauses in the ali file, with an
5323         'Y' marker.
5324         New Ox fields in U line
5325
5326         * opt.adb: New flag Optimize_Alignment_Local
5327         (Check_Policy_List[_Config]): New flags
5328
5329         * opt.ads (Invalid_Value_Used): New flag
5330         New switch Optimize_Alignment_Local
5331         (Warn_On_Parameter_Order): New flag
5332         (Check_Policy_List[_Config]): New flags
5333
5334         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5335         limited_with clauses.
5336         New data structures for Optimize_Alignment
5337
5338         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5339         New procedure
5340         (Check_Consistent_Optimize_Alignment): Rework for new structure
5341         (Check_Consistent_Restrictions): Fix incorrect error message
5342
5343         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5344         created class-wide type (to the Parent field of the specific type).
5345         (Install_Siblings): Handle properly private_with_clauses on subprogram
5346         bodies and on generic units.
5347         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5348         illegal limited_with_clause that names a non-existent package.
5349         (Check_Body_Required): Determine whether a unit named a limited_with
5350         clause needs a body.
5351         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5352         Capture Optimize_Alignment settings to set new OA_Setting field in
5353         library record.
5354         (Build_Limited_Views): Include task and protected type declarations.
5355
5356         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5357         case of a possible constant redeclaration where the current object is
5358         an entry index constant.
5359         (Analyze_Object_Declaration): Generate an error in case of CPP
5360         class-wide object initialization.
5361         (Analyze_Object_Declaration): Add extra information on warnings for
5362         declaration of unconstrained objects.
5363         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5364         conflicts with the setting of Stored_Constraint in the case where the
5365         access type entity has already been created as an E_Incomplete_Type due
5366         to a limited with clause.
5367         Use new Is_Standard_Character_Type predicate
5368         (Analyze_Object_Declaration): Apply access_constant check only after
5369         expression has been resolved, given that it may be overloaded with
5370         several access types.
5371         (Constant_Redeclaration): Additional legality checks for deferred
5372         constant declarations tha involve anonymous access types and/or null
5373         exclusion indicators.
5374         (Analyze_Type_Declaration): Set Optimize_Alignment flags
5375         (Analyze_Subtype_Declaration): Ditto
5376         (Analyze_Object_Declaration): Ditto
5377         (Analyze_Object_Declaration): Don't count tasks in generics
5378         Change name In_Default_Expression      => In_Spec_Expression
5379         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5380         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5381         (Process_Discriminants): Additional check for illegal use of default
5382         expressions in access discriminant specifications in a type that is not
5383         explicitly limited.
5384         (Check_Abstract_Overriding): If an inherited function dispaches on an
5385         access result, it must be overridden, even if the type is a null
5386         extension.
5387         (Derive_Subprogram): The formals of the derived subprogram have the
5388         names and defaults of the parent subprogram, even if the type is
5389         obtained from the actual subprogram.
5390         (Derive_Subprogram): In the presence of interfaces, a formal of an
5391         inherited operation has the derived type not only if it descends from
5392         the type of the formal of the parent operation, but also if it
5393         implements it. This is relevant for the renamings created for the
5394         primitive operations of the actual for a formal derived type.
5395         (Is_Progenitor): New predicate, to determine whether the type of a
5396         formal in the parent operation must be replaced by the derived type.
5397
5398         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5399         predicate recursive to handle components that have a user-defined
5400         Initialize procedure. Handle controlled derived types whose ancestor
5401         has a user-defined Initialize procedured.
5402         (Note_Possible_Modification): Add Sure parameter, generate warning if
5403         sure modification of constant
5404         Use new Is_Standard_Character_Type predicate
5405         (Find_Parameter_Type): when determining whether a protected operation
5406         implements an interface operation, retrieve the type of the formal from
5407         the entity when the formal is an access parameter or an
5408         anonymous-access-to-subprogram.
5409         Move Copy_Parameter_List to sem_util, for use when building stubbed
5410         subprogram bodies.
5411         (Has_Access_Values): Tagged types now return False
5412         (Within_HSS_Or_If): New procedure
5413         (Set_Optimize_Alignment_Flags): New procedure
5414         Change name In_Default_Expression      => In_Spec_Expression
5415         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5416         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5417
5418 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5419
5420         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5421
5422 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5423
5424 PR ada/10768
5425
5426         * cuintp.c: Fix 16 bits issue for AVR.
5427         On AVR, integer is 16 bits, so it can't be used to do math with
5428         Base (=32768).
5429         So use long_integer instead.
5430
5431 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5432
5433         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5434         System.OS_Primitives.
5435         Change type of various constants, parameters and local variables from
5436         Time to representation type OS_Time.
5437         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5438         Remove the declaration of constant Mili_F from several routines. New
5439         body for internal package Conversions_Operations.
5440         (Time_Of): Add default parameters for several formals.
5441
5442         * a-caldel.adb: Minor reformatting
5443
5444         * a-calend.ads, a-calend.adb: New body for internal package
5445         Conversions_Operations.
5446         (Time_Of): Add default parameters for several formals.
5447
5448         * Makefile.rtl: Add a-ststop
5449         Add Ada.Calendar.Conversions to the list of runtime files.
5450         Add g-timsta
5451
5452         * a-calcon.adb, a-calcon.ads: New files.
5453
5454 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5455             Tristan Gingold  <gingold@adacore.com>
5456
5457         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5458         (Install_Restricted_Handlers): New procedure
5459         which is a simplified version of Install_Handlers that does not store
5460         previously installed.
5461
5462         * s-interr-vxworks.adb: Fix ACATS cxc3001
5463         On VxWorks interrupts can't be detached.
5464         (Install_Restricted_Handlers): New procedure.
5465
5466         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5467         procedure.
5468
5469 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5470
5471         * s-intman-vxworks.ads, s-intman-vxworks.adb
5472         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5473         required services already implemented elsewhere.
5474         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5475         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5476         argument passed to the handler, which we need for ZCX propagation
5477         purposes.
5478
5479 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5480
5481         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5482
5483         * g-timsta.adb, g-timsta.ads: New files.
5484
5485 2008-04-08  Robert Dewar  <dewar@adacore.com>
5486
5487         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5488         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5489         (Raise_Exception_Always): Fix documentation accordingly
5490
5491 2008-04-08  Robert Dewar  <dewar@adacore.com>
5492
5493         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5494         Stream_Convert)
5495
5496         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5497         FOnly
5498
5499 2008-04-08  Javier Miranda  <miranda@adacore.com>
5500             Robert Dewar  <dewar@adacore.com>
5501             Ed Schonberg  <schonberg@adacore.com>
5502
5503         * a-tags.adb (Register_Interface_Offset): New subprogram.
5504         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5505         (To_Predef_Prims_Table_Ptr): Removed.
5506         (Acc_Size): Removed.
5507         (To_Acc_Size): Removed.
5508         (Parent_Size): Modified to the call the subprogram returning the size of
5509         the parent by means of the new TSD component Size_Func.
5510
5511         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5512         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5513         code referencing the Offset_To_Top component of the dispatch table's
5514         prologue.
5515         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5516         use of 'address to initialize dispatch table slots.
5517         (Size_Func): New component of the TSD. Used by the run-time to call the
5518         size primitive of the tagged type.
5519
5520         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5521         Offset_To_Top component of a dispatch table.
5522         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5523         deferred constant declaration. do not add a null expression, to prevent
5524         spurious errors when full declaration is analyzed.
5525         (Apply_Discriminant_Check): If both discriminant constraints share a
5526         node which is not static but has no side effects, do not generate a
5527         check for that discriminant.
5528         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5529         subexpr, since the prefix of an attribute is a name.
5530
5531         * checks.ads: Fix nit in comment.
5532
5533         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5534         and body of predefined primitives in case of CPP tagged type
5535         derivations.
5536         (Freeze_Type): Deal properly with no storage pool case
5537         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5538         primitive Deep_Adjust if a nonlimited interface is derived from a
5539         limited interface.
5540         (Build_Dcheck_Functions): Create discriminant-checking functions only
5541         for variants that have some component(s).
5542         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5543         properly the case where the slice bounds extend to the last value of the
5544         underlying representation.
5545         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5546         (Is_Variable_Size_Record): An array component has a static size if
5547         index bounds are enumeration literals.
5548
5549         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5550         an external tag has been specified for the type.
5551         (Building_Static_DT): Add missing support for private types.
5552         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5553         to the entity associated with the parent of Typ. This is done to
5554         avoid wrong access when the parent is a private type.
5555         (Expand_Interface_Conversion): Improve error message when the
5556         configurable runtime has no support for dynamic interface conversion.
5557         (Expand_Interface_Thunk): Add missing support to interface types in
5558         configurable runtime.
5559         (Expand_Dispatching_Call): remove obsolete code.
5560         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5561         ensure that all subtypes and aggregates associated with dispatch
5562         tables have the attribute Is_Dispatch_Table_Entity set to true.
5563         (Register_Primitive): Rename one variable to improve code reading.
5564         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5565         of the pointer to the 'size primitive in the TSD.
5566
5567         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5568         (RE_Offset_To_Top_Ptr): New entity.
5569         (RE_Register_Interface_Offset): New entity.
5570         (RE_Set_Dynamic_Offset_To_Top): New entity.
5571         (RE_Set_Offset_To_Top): Removed entity.
5572         (RE_Prim_Ptr): New entity
5573         (RE_Size_Func): New entity
5574         (RE_Size_Ptr): New entity
5575         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5576         (Ada_Dispatching_Child): Define this new subrange.
5577         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5578          RE_Time_Span, and RE_Time_Span_Zero).
5579         (RE_Unit_Table): Add new required run-time calls
5580
5581         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5582         children.
5583
5584         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5585         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5586          initializes the Offset_To_Top component of a dispatch table.
5587         (Build_Predef_Prims): Removed.
5588         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5589          its actual code.
5590         (Build_Set_Size_Function): New subprogram.
5591
5592         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5593         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5594
5595 2008-04-08  Robert Dewar  <dewar@adacore.com>
5596
5597         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5598         computing Fore when Exp > 0
5599
5600 2008-04-08  Robert Dewar  <dewar@adacore.com>
5601
5602         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5603
5604         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5605         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5606
5607         * fmap.adb: Remove Big_String declarations (now in Types)
5608         (No_Mapping_File): New Boolean global variable
5609         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5610         False.
5611         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5612         tables were empty before adding entries, open the mapping file
5613         with Truncate = True, instead of delete/re-create.
5614
5615         * fname-sf.adb: Remove Big_String declarations (now in Types)
5616
5617         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5618         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5619         big pointer types
5620
5621         * table.ads: Add for Table_Ptr'Storage_Size use 0
5622
5623         * types.ads: Add Big_String declarations
5624         Add Size_Clause of zero for big pointer types
5625
5626 2008-04-08  Vincent Celier  <celier@adacore.com>
5627
5628         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5629         (Usage): Add line for switch --subdirs=
5630         Add new switch -eL, to follow symbolic links when processing project
5631         files.
5632
5633         * gnatcmd.adb: Process switches -eL and --subdirs=
5634         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5635         Program_Name to get proper tool names when AAMP_On_Target is set.
5636         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5637         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5638         Osint.Program_Name).
5639
5640         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5641         (Usage): Add lines for switches -eL and --subdirs=
5642
5643         * makeusg.adb: Add line for switch --subdirs=
5644
5645         * prj.ads:
5646         (Source_Data): New Boolean component Compiled, defaulted to True
5647         (Empty_File_Name: New global variable in private part, initialized in
5648         procedure Initialize.
5649         (Subdirs_Option): New constant string
5650         (Subdirs): New String_Ptr global variable
5651         (Language_Config): New component Include_Compatible_Languages
5652         (Project_Qualifier): New type for project qualifiers
5653         (Project_Data): New component Qualifier
5654         (Project_Configuration): New component Archive_Builder_Append_Option
5655
5656         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5657         another imported project indicate the name of this imported project.
5658         (Check_File): When a unit is in two project files, indicate the project
5659         names and the paths of the source files for each project.
5660         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5661         set object, dependency and switches file names if Compiled is True.
5662         (Process_Compiler): Allow the empty string for value of attribute Driver
5663         (Get_Directories): When Subdirs is not null and Object_Dir is not
5664          specified, locate and create if necessary the actual object dir.
5665         (Locate_Directory): When Subdirs is not empty and Create is not the
5666         empty string, locate and create if necessary the actual directory
5667         as a subdirectory of directory Name.
5668         (Check_Library_Attributes.Check_Library): Allow a project where the only
5669         "sources" are header files of file based languages to be imported by
5670         library projects, in multi-language mode (gprbuild).
5671         (Check_Library_Attributes.Check_Library): In multi-language mode
5672         (gprbuild), allow a library project to import a project with no
5673         sources, even when this is not declared explicitly.
5674         (Check_If_Externally_Built): A virtual project extending an externally
5675         built project is also externally built.
5676         (Check_Library_Attributes): For a virtual project extending a library
5677         project, inherit the library directory.
5678         (Process_Project_Level_Array_Attributes): Process new attribute
5679         Inherit_Source_Path.
5680         For projects with specified qualifiers "standard", "library" or
5681         "abstract", check that the project conforms to the qualifier.
5682         (Process_Project_Level_Simple_Attributes): Process new attribute
5683          Archive_Builder_Append_Option.
5684
5685         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5686         (Normalize_Compiler_Switches): Only keep compiler switches that are
5687         passed to gnat1 by the gcc driver and that are stored in the ALI file
5688         by gnat1.
5689         Do not take into account switc -save-temps
5690
5691         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5692         gprmake is called with -eL.
5693         (Scan_Arg): Recognize switch -eL
5694         (Usage): Add line for switch -eL
5695
5696         * prj.adb (Initialize): Initialize Empty_File_Name
5697         (Project_Empty): New component Qualifier
5698
5699         * prj-attr.ads, prj-attr.adb: New project level attribute
5700         Inherit_Source_Path.
5701         New project level attribute Archive_Builder_Append_Option
5702
5703         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5704
5705         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5706         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5707         upward compatibility.
5708
5709         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5710         each Trying ..." on different lines.
5711         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5712         is "configuration" when not in configuration. Fail when in configuration
5713         when a specified qualifier is other than "configuration".
5714
5715         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5716         full associative array together.
5717         (Recursive_Process): Put the project qualifier in the project data
5718
5719         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5720         (Set_Project_Qualifier_Of): New procedure
5721
5722 2008-04-08  Robert Dewar  <dewar@adacore.com>
5723
5724         * errout.ads: Update comments for new handling of info: messages
5725
5726         * erroutc.adb (Matches): New procedure
5727         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5728         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5729          info messages as well as style messages.
5730
5731         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5732
5733         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5734         subprograms.
5735         (Check_A_Call): Special "info: " warnings now have ? in the text
5736         (Elab_Warning): Use info message in static case
5737
5738 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5739
5740         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5741         whether an array aggregate with static bounds and scalar components
5742         should be expanded into a static constant.
5743
5744 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5745             Ed Schonberg  <schonberg@adacore.com>
5746             Robert Dewar  <dewar@adacore.com>
5747
5748         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5749         Has_Stream_Attribute_ Definition when checking for available stream
5750         attributes on parameters of a limited type in Ada 2005. Necessary for
5751         proper recognition of visible stream attribute clauses.
5752         (Has_Stream_Attribute_Definition): If the type is derived from a
5753         private type, then use the derived type's underlying type for checking
5754         whether it has stream attributes.
5755         (Validate_Object_Declaration): The check for a user-defined Initialize
5756         procedure applies also to types with controlled components or a
5757         controlled ancestor.
5758         Reject an object declaration in a preelaborated unit if the type is a
5759         controlled type with an overriding Initialize procedure.
5760         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5761         checking when the parent of a dereference is a selected component and
5762         the name has not been analyzed.
5763
5764         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5765         prefixes that are invalid explicit dereferences of remote
5766         access-to-class-wide values, first checking whether the selected
5767         component is a prefixed form of call to a tagged operation.
5768         (Analyze_Call): Remove code that issues an error for limited function
5769         calls in illegal contexts, as we now support all of the contexts that
5770         were forbidden here.
5771         Allow a function call that returns a task.and appears as the
5772         prefix of a selected component.
5773         (Analyze_Reference): Give error message if we try to make a 'Reference
5774         for an object that is atomic/aliased without its type having the
5775         corresponding attribute.
5776         (Analyze_Call): Remove condition checking for attributes to allow
5777         calls to functions with inherently limited results as prefixes of
5778         attributes. Remove related comment about Class attributes.
5779         (Analyze_Selected_Component): If the prefix is a remote type, check
5780         whether this is a prefixed call before reporting an error.
5781         (Complete_Object_Operation): If the controlling formal is an access to
5782         variable reject an actual that is a constant or an access to one.
5783         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5784         primitive operations from base type.
5785
5786         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5787         build-in-place
5788         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5789         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5790         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5791         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5792         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5793         (Analyze_Call): Remove code that issues an error for limited function
5794         calls in illegal contexts, as we now support all of the contexts that
5795         were forbidden here.
5796         New calling sequence for Get_Simple_Init_Val
5797         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5798         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5799
5800 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5801             Ed Schonberg  <schonberg@adacore.com>
5802             Robert Dewar  <dewar@adacore.com>
5803
5804         * exp_ch2.adb: Minor reformatting.
5805         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5806         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5807         (Expand_Protected_Component): New routine.
5808         (Expand_Protected_Private): Removed.
5809         Add Sure parameter to Note_Possible_Modification calls
5810
5811         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5812         generated subprogram declaration must inherit the overriding indicator
5813         from the instantiation node.
5814         (Validate_Access_Type_Instance): If the designated type of the actual is
5815         a limited view, use the available view in all cases, not only if the
5816         type is an incomplete type.
5817         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5818         and the actual subtype does not exclude null.
5819         (Process_Default): Handle properly abstract formal subprograms.
5820         (Check_Formal_Package_Instance): Handle properly defaulted formal
5821         subprograms in a partially parameterized formal package.
5822         Add Sure parameter to Note_Possible_Modification calls
5823         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5824         actual cannot be limited.
5825         (Collect_Previous_Instances): Generate instance bodies for subprograms
5826         as well.
5827
5828         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5829         try to set RM_Size.
5830         Add Sure parameter to Note_Possible_Modification calls
5831         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5832         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5833         constant overlaid by variable and issue warning.
5834         Use new Is_Standard_Character_Type predicate
5835         (Analyze_Record_Representation_Clause): Check that the specified
5836         Last_Bit is not less than First_Bit - 1.
5837         (Analyze_Attribute_Definition_Clause, case Address): Check for
5838         self-referential address clause
5839
5840         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5841         detection mechanism when the lhs is a prival.
5842         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5843         assignment of a pointer to protected data, to an object declared
5844         outside of the protected object.
5845         (Analyze_Loop_Statement): Check for unreachable code after loop
5846         Add Sure parameter to Note_Possible_Modication calls
5847         Protect analysis from previous syntax error such as a scope mismatch
5848         or a missing begin.
5849         (Analyze_Assignment_Statement): The assignment is illegal if the
5850         left-hand is an interface.
5851
5852         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5853         violation of restriction No_Implicit_Conditionals
5854         Add Sure parameter to Note_Possible_Modication calls
5855         Use new Is_Standard_Character_Type predicate
5856         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5857         call as operator. Fixes problems (e.g. validity checking) which
5858         come from the result looking as though it does not come from source).
5859         (Resolve_Call): Check case of name in named parameter if style checks
5860         are enabled.
5861         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5862         from the checking that such calls should not occur from an entry body.
5863         (Resolve_Call): If the return type of an Inline_Always function
5864         requires the secondary stack, create a transient scope for the call
5865         if the body of the function is not available for inlining.
5866         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5867         that are actuals for in-out formals.
5868         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5869         primitive operations from base type.
5870         (Analyze_Selected_Component): If the context is a call to a protected
5871         operation the parent may be an indexed component prior to expansion.
5872         (Resolve_Actuals): If an actual is of a protected subtype, use its
5873         base type to determine whether a conversion to the corresponding record
5874         is needed.
5875         (Resolve_Short_Circuit): Handle pragma Check
5876
5877         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5878         Use new Is_Standard_Character_Type predicate
5879         (Eval_Relational_Op): Catch more cases of string comparison
5880
5881 2008-04-08  Robert Dewar  <dewar@adacore.com>
5882             Gary Dismukes  <dismukes@adacore.com>
5883
5884         * s-rident.ads: Add No_Default_Initialization restriction
5885
5886         * exp_tss.adb:
5887         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5888         (Set_TSS): Handle No_Default_Initialization case
5889
5890         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5891         No_Default_Initialization
5892         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5893         parameters when Normalize_Scalars is active.
5894         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5895         Fix casing error in formal parameter name in call
5896         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5897         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5898         dispatching call on VM targets.
5899
5900 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5901             Thomas Quinot  <quinot@adacore.com>
5902
5903         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5904         selected component from an access type's Associated_Final_Chain to
5905         check for the presence of that field, rather than assuming it exists
5906         for all named access types.
5907         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5908         procedure to call at the end of the generated cleanup procedure.
5909         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5910         and an At_End_Proc already exists in the handled sequence of statements
5911         for which cleanup actions are being expanded, the original cleanup
5912         action must be preserved.
5913
5914 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5915             Ed Schonberg  <schonberg@adacore.com>
5916             Robert Dewar  <dewar@adacore.com>
5917             Gary Dismukes  <dismukes@adacore.com>
5918
5919         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5920         Build_Unprotected_Subprogram_Body): Generate debug info for
5921         declarations related to the handling of private data in task and
5922         protected types.
5923         (Debug_Private_Data_Declarations): New subprogram.
5924         (Install_Private_Data_Declarations): Remove all debug info flagging.
5925         This is now done by Debug_Private_Data_Declarations at the correct
5926         stage of expansion.
5927         (Build_Simple_Entry_Call): If the task name is a function call, expand
5928         the prefix into an object declaration, and make the surrounding block a
5929         task master.
5930         (Build_Master_Entity): An internal block is a master if it wraps a call.
5931         Code reformatting, update comments. Code clean up.
5932         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5933         (Replicate_Entry_Formals): If the formal is an access parameter or
5934         anonymous access to subprogram, copy the original tree to create new
5935         entities for the formals of the subprogram.
5936         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5937         for tasks to store the value passed using pragma Relative_Deadline.
5938         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5939         run-time call to create a task.
5940         (Build_Wrapper_Spec): If the controlling argument of the interface
5941         operation is an access parameter with a non-null indicator, use the
5942         non-null indicator on the wrapper.
5943
5944         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5945         present, which it may not be in the case where the type entity is an
5946         incomplete view brought in by a limited with.
5947         (Analyze_Task_Type): Only retrieve the full view when present, which it
5948         may not be in the case where the type entity is an incomplete view brought
5949         in by a limited with.
5950         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5951         private components of a protected type, to prevent the generation of freeze
5952         nodes for which there is no proper scope of elaboration.
5953
5954         * exp_util.ads, exp_util.adb
5955         (Remove_Side_Effects): If the expression is a function call that returns a
5956         task, expand into a declaration to invoke the build_in_place machinery.
5957         (Find_Protection_Object): New routine.
5958         (Remove_Side_Effects): Also make a copy of the value
5959         for attributes whose result is of an elementary type.
5960         (Silly_Boolean_Array_Not_Test): New procedure
5961         (Silly_Boolean_Array_Xor_Test): New procedure
5962         (Is_Volatile_Reference): New function
5963         (Remove_Side_Effects): Use Is_Volatile_Reference
5964         (Possible_Bit_Aligned_Component): Handle slice case properly
5965
5966         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5967         case test to Exp_Util
5968         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5969
5970 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5971
5972         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5973         in call
5974         (Add_RACW_Features): When processing an RACW in another unit than the
5975         main unit, set Body_Decls to No_List to indicate that the bodies of
5976         the type's TSS must not be generated.
5977         (GARLIC_Support.Add_RACW_Read_Attribute,
5978         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5979         Body_Decls is No_List.
5980         (PolyORB_Support.Add_RACW_Read_Attribute,
5981         PolyORB_Support.Add_RACW_Write_Attribute,
5982         PolyORB_Support.Add_RACW_From_Any,
5983         PolyORB_Support.Add_RACW_To_Any,
5984         PolyORB_Support.Add_RACW_TypeCode): Same.
5985         (Transmit_As_Unconstrained): New function.
5986         (Build_Ordered_Parameters_List): Use the above to order parameters.
5987         (GARLIC_Support.Build_General_Calling_Stubs):
5988         Use the above to determine which parameters to unmarshall using 'Input
5989         at the point where their temporary is declared (as opposed to later on
5990         with a 'Read call).
5991         (PolyORB_Support.Build_General_Calling_Stubs):
5992         Use the above to determine which parameters to unmarshall using From_Any
5993         at the point where their temporary is declared (as opposed to later on
5994         with an assignment).
5995
5996 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5997
5998         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5999         an Input function for an access type, do not perform default
6000         initialization on the local variable that receives the value, to
6001         prevent spurious warnings when the type is null-excluding.
6002
6003 2008-04-08  Robert Dewar  <dewar@adacore.com>
6004             Ed Schonberg  <schonberg@adacore.com>
6005
6006         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6007         units.
6008         (Size_Known): Generic formal scalar types have known at compile
6009         time size, so remove check.
6010         Fix casing error in formal parameter name in call
6011         (Freeze_Subprogram): If the subprogram is a user-defined operator,
6012         recheck its overriding indication.
6013
6014 2008-04-08  Vincent Celier  <celier@adacore.com>
6015
6016         * gnat1drv.adb: Send all messages indicating an error to standard error
6017
6018 2008-04-08  Robert Dewar  <dewar@adacore.com>
6019
6020         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6021         (List_Applicable_Restrictions): Do not list existing restrictions
6022
6023 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6024
6025         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6026         add a pointer to generic sockets literature
6027         do not mention that the given example is "typical" usage.
6028         Remove obsolete comment about multicast not being supported on Windows.
6029         (Connect_Socket): Make Server mode IN rather than IN OUT
6030         since this formal is never modified.
6031
6032 2008-04-08  Robert Dewar  <dewar@adacore.com>
6033
6034         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6035         the declaration for some different entity.
6036         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6037         list is precent (following the parent subtype indication), display
6038         appropriate "and" keyword.
6039
6040         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6041         Remove unnecessary calls to Init_Size_Align and Init_Esize.
6042         Add notes on use of Parent field of an Itype
6043
6044 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6045             Robert Dewar  <dewar@adacore.com>
6046             Gary Dismukes  <dismukes@adacore.com>
6047
6048         * lib-xref.adb (Is_On_LHS): Remove dead code
6049         (Output_Overriden_Op): If the overridden operation is itself inherited,
6050         list the ancestor operation, which is the one whose body or absstract
6051         specification is actually being overridden. For source navigation
6052         purposes.
6053
6054         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6055         operation is primitive for the type.
6056         (Declare_Inherited_Private_Subprograms): If the new operation overrides
6057         an inherited private subprogram, set properly the Overridden_Operation
6058         attribute, for better cross-reference information.
6059         (Analyze_Package_Specification): Do late analysis of spec PPCs
6060         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6061         properly the full view and underlying full views of a private type in a
6062         child unit, whose full view is derived from a private type in a parent
6063         unit, and whose own full view becomes visible in the child body.
6064
6065         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6066         primitive operation after the type has been frozen, add an explicit
6067         reference to the type and the operation, because other primitive
6068         references have been emitted already.
6069         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6070         dispatching call on VM targets.
6071
6072 2008-04-08  Vincent Celier  <celier@adacore.com>
6073             Thomas Quinot  <quinot@adacore.com>
6074
6075         * make.adb: (Gnatmake_Called): Remove, no longer necessary
6076         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6077         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6078         (Insert_Project_Sources): Take into account index in multi-unit source
6079         files.
6080         After building a library project, delete all temporary files.
6081         (Initialize): Reset current output after parsing project file.
6082         (Collect_Arguments_And_Compile): Never insert in the queue the sources
6083         of library projects that are externally built.
6084         Put file name in error and inform messages if -df is used
6085         (Display): If invoked with -d7, do not display path names, but only
6086         file names.
6087
6088         * makeutl.ads (Path_Or_File_Name): New function
6089         (Path_Or_File_Name): New function
6090
6091 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
6092
6093         * Make-lang.in: Disable warnings during first stage of bootstrap
6094         Get rid of gnatbl.
6095         Update dependencies.
6096
6097 2008-04-08  Vincent Celier  <celier@adacore.com>
6098
6099         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6100         case to decide if ALI object file is included in library.
6101         (Build_Library): Never attempt to build a library if the project is
6102         externally built.
6103
6104 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6105
6106         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6107         (No_List) is defined to return Empty.
6108
6109 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
6110
6111         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6112         documentation.
6113         Update comments.
6114         (Read_Default_Search_Dirs): Do not consider spaces as path separators
6115         because spaces may be part of legal paths.
6116
6117 2008-04-08  Robert Dewar  <dewar@adacore.com>
6118
6119         * par-ch11.adb (P_Exception_Handler): Check indentation level for
6120         handler
6121
6122 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6123
6124         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6125         in a type declaration, if this is not an interface declaration or
6126         private type extension.
6127
6128 2008-04-08  Vincent Celier  <celier@adacore.com>
6129
6130         * prj-util.adb (Executable_Of): New String parameter Language. When
6131         Ada_Main is False and Language is not empty, attempt to remove the body
6132         suffix or the spec suffix of the language to get the base of the
6133         executable file name.
6134         (Put): New Boolean parameter Lower_Case, defauilted to False. When
6135         Lower_Case is True, put the value in lower case in the name list.
6136         (Executable_Of): If there is no executable suffix in the configuration,
6137         then do not modify Executable_Extension_On_Target.
6138
6139         * prj-util.ads (Executable_Of): New String parameter Language,
6140         defaulted to the empty string.
6141         (Put): New Boolean parameter Lower_Case, defauilted to False
6142
6143 2008-04-08  Robert Dewar  <dewar@adacore.com>
6144
6145         * scng.adb (Scan_Identifier): Handle case of identifier starting with
6146         wide character using UTF-8 encoding.
6147
6148 2008-04-08  Javier Miranda  <miranda@adacore.com>
6149
6150         * sem.adb (Analyze): Consider case in which we analyze an empty node
6151         that was generated by a call to a runtime function that is not
6152         available under the configurable runtime.
6153
6154         * sem.ads (Inside_Freezing_Actions): New flag.
6155         (Save_Check_Policy_List): New field in scope stack entry
6156
6157 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6158             Robert Dewar  <dewar@adacore.com>
6159
6160         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6161         the ancestor part of an extension aggregate for a limited type.
6162         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6163         enumeration index bounds.
6164         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6165         when array is too short.
6166         (Check_Expr_OK_In_Limited_Aggregate): Move function
6167         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6168         change name).
6169         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6170         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6171         component associations.
6172         (Check_Non_Limited_Type): Moved to outer level and renamed.
6173         (Resolve_Record_Aggregate): In an extension aggregate, an association
6174         with a box initialization can only designate a component of the
6175         extension, not a component inherited from the given ancestor
6176
6177         * sem_case.adb: Use new Is_Standard_Character_Type predicate
6178
6179 2008-04-08  Robert Dewar  <dewar@adacore.com>
6180
6181         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6182         negative scale
6183         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6184         Properly handle case where Aft > Scale and input number is less than
6185         one.
6186
6187 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6188
6189         * s-stoele.ads, s-soflin.ads: Move the location of
6190         Dummy_Communication_Block from System.Storage_Elements to
6191         System.Soft_Links.
6192
6193         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6194         emulate Communication_Block in certain scenarios.
6195
6196 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6197
6198         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6199         subprogram.
6200         Add new subtype S_WWC, unchecked conversion routines From_WWC and
6201         To_WWC.
6202         (I_WWC, O_WWC): New routines for input and output of
6203         Wide_Wide_Character.
6204
6205 2008-04-08  Robert Dewar  <dewar@adacore.com>
6206
6207         * stringt.adb (Write_String_Table_Entry): Handle wide characters
6208         properly
6209
6210 2008-04-08  Robert Dewar  <dewar@adacore.com>
6211
6212         * styleg.adb (Check_Comment): Allow special char after -- in
6213         non-end-of-line case
6214
6215 2008-04-08  Robert Dewar  <dewar@adacore.com>
6216
6217         * stylesw.adb: Implement -gnaty + - y options
6218         (Set_GNAT_Style_Check_Options): Includ I in style check string
6219
6220         * stylesw.ads: Add comments for new style switch options
6221
6222 2008-04-08  Sergey Rybin  <rybin@adacore.com>
6223
6224         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6225         to the set of the GNAT components needed by ASIS.
6226
6227 2008-04-08  Bob Duff  <duff@adacore.com>
6228
6229         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6230
6231 2008-04-08  Tristan Gingold  <gingold@adacore.com>
6232
6233         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6234         Improve error message generation.
6235
6236 2008-04-08  Vincent Celier  <celier@adacore.com>
6237
6238         * a-direct.adb (Start_Search): Check for Name_Error before checking for
6239         Use_Error, as specified in the RM. Check if directory is open and raise
6240         Use_Error if it is not.
6241
6242 2008-04-08  Vincent Celier  <celier@adacore.com>
6243             Robert Dewar  <dewar@adacore.com>
6244
6245         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6246         AAMP_On_Target is set.
6247
6248         * vms_data.ads: Add NOxxx to style check switch list
6249         Add entry COMPONENTS for -gnatVe
6250         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6251         (/SUBDIRS=).
6252         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6253         Add qualifiers for gnatmetric coupling options
6254         Add note that -gnata enables all checks
6255         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6256         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6257         New warning flag -gnatw.e
6258
6259         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6260         Add entry for -gnatyN (forgotten before)
6261         Line for new warning switch -gnatw.p
6262         New warning flag -gnatw.e
6263
6264         * gnat_ugn.texi: Add documentation fpr project file switch -aP
6265         Document -gnaty - + y
6266         Replace occurences of "package specification" with "package spec"
6267         Define preprocessing symbols in documentation of gnatprep
6268         Clarify reason for distinguishing overflow checking
6269         Add documentation for project-aware tool switches -eL and --subdirs=
6270         Complete list of configuration pragmas
6271         Specify that, even when gnatmake switch -x is used, mains on the command
6272         line need to be sources of project files.
6273         Editing of gnatcheck/gnatmetric doc.
6274         Add documentation for -gnatw.p/-gnatw.P
6275         Add missing documentation for -fno-inline-functions.
6276         Add documentation for -gnatw.e
6277
6278         * gnat_rm.texi: Add documentation for No_Default_Initialization
6279         Replace occurences of "package specification" with "package spec"
6280         Document use of * in Warnings Off string
6281         Update documentation of alignment/component clauses.
6282         Add documentation for Invalid_Value
6283         Document new consistency rule for Optimize_Alignment
6284         Add documentation for Precondition and Postcondition pragmas
6285         Add documentation for Check and Check_Policy pragmas
6286         Document new Enum_Val attribute
6287         Remove requirement for static string in pragma Assert
6288         Add documentation on GNAT.Time_Stamp
6289
6290         * ug_words: add entry for -gnatVe
6291         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6292         Add entry for -gnatw.e
6293
6294         * debug.adb: Add missing documentation for d.a flag
6295         Document new -gnatd.a switch.
6296         Add documentation for new gnatmake debug switch -df
6297
6298 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6299
6300         * gen-soccon.c: Bump year in copyright notices.
6301
6302         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6303
6304 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6305
6306         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6307         Minor reformatting.
6308
6309 2008-04-08  Robert Dewar  <dewar@adacore.com>
6310             Bob Duff  <duff@adacore.com>
6311
6312         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6313         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6314
6315         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6316
6317         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6318
6319         * g-trasym.ads: Minor comment improvements
6320
6321         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6322
6323         * a-sequio.ads, a-direio.ads: improve message for tagged type
6324
6325         * a-strunb.ads: Minor reformatting
6326
6327         * a-tifiio.adb: Minor reformatting
6328
6329         * atree.adb (Fix_Parents): Use clearer names for formals
6330         Cleanup and simplify code
6331         Use named notation in calls
6332
6333         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6334         confusing calls
6335
6336         * uintp.adb: Used named notation for some confusing calls
6337
6338         * bindusg.adb: Minor change in one line of output
6339
6340         * cstand.adb: Minor reformatting of src representation of Standard
6341
6342         * a-assert.ads: Add comment.
6343
6344         * g-decstr.adb: Fix bad indentation
6345
6346         * expander.ads, expander.adb: Code clean up.
6347
6348         * sem_dist.ads: Minor comment improvement
6349
6350         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6351         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6352
6353         * i-cstrin.adb: Fix casing error in formal parameter name in call
6354
6355 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6356
6357         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6358         mentioned in limited_with_clauses to do create semantic dependencies
6359         even though they appear in the ali file.
6360
6361 2008-04-08  Emmanuel Briot  <briot@adacore.com>
6362
6363         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6364         statement.
6365         (Get_Configuration): New subprogram.
6366
6367         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6368         These optional parameters help preserve the casing of the project's name
6369         when pretty-printing.
6370
6371 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
6372             Arnaud Charlet  <charlet@adacore.com>
6373
6374         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6375         then use __gnat_set_exit_status to report the returned status code.
6376
6377         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6378         messages on .NET, since some constructs of the language are not
6379         properly supported.
6380
6381         * gnatlink.adb (Gnatlink): In case the command line is too long for the
6382         .NET linker, gnatlink now concatenate all .il files and pass this to
6383         ilasm.
6384
6385 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6386             Xavier Grave  <grave@ipno.in2p3.fr>
6387
6388         * Makefile.in: Add make ifeq define for mips/mipsel support.
6389         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6390         system-linux-mips.ads: New files.
6391
6392 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6393
6394         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6395         detect systems using GNU libc.
6396         * gsocket.h: ditto.
6397         * socket.c: ditto.
6398         * adaint.c: ditto.
6399         * link.c: ditto.
6400
6401 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6402
6403         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6404         constant constant for sysconf call.
6405         (bit_field): New packed boolean type used by cpu_set_t.
6406         (cpu_set_t): New type corresponding to the C type with
6407         the same name. Note that on the Ada side we use a bit
6408         field array for the affinity mask. There is not need
6409         for the C macro for setting individual bit.
6410         (pthread_setaffinity_np): New imported routine.
6411         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6412         on GNU/kFreeBSD.
6413
6414 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6415
6416         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6417
6418 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6419
6420         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6421         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6422         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6423         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6424         Return by Depressed Stack Pointer.
6425
6426 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6427
6428         * decl.c (is_variable_size): Do not unconditionally return false
6429         on non-strict alignment platforms.
6430
6431 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6432
6433         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6434         used to process all the variants of the specified type.
6435         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6436         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6437         (rest_of_type_decl_compilation): Likewise.
6438         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6439
6440 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6441
6442         * gigi.h (insert_block): Kill.
6443         * utils.c (insert_block): Kill.
6444
6445 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6446
6447         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6448         type has self-referential size, get the size from the initializing
6449         expression directly if it is also a constant whose nominal type
6450         has self-referential size.
6451
6452 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6453
6454         PR ada/33688
6455         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6456
6457         PR ada/33857
6458         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6459         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6460
6461 2008-04-01  Andreas Jaeger  <aj@suse.de>
6462
6463         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6464         IP_PKTINFO.
6465
6466 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6467
6468         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6469         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6470         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6471         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6472         gnatlink.adb, gnatmem.adb, gprep.adb,
6473         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6474         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6475         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6476         lib-xref.ads, lib.adb, link.c, live.ads,
6477         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6478         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6479         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6480         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6481         namet.adb, namet.h, nlists.adb, nlists.ads,
6482         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6483         osint-c.ads, osint.adb, osint.ads, output.ads,
6484         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6485         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6486         par-endh.adb, par-labl.adb, par-prag.adb,
6487         par-sync.adb, par-tchk.adb, par-util.adb,
6488         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6489         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6490         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6491         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6492
6493 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6494
6495         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6496         size if it has overflowed.
6497
6498 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6499             Eric Botcazou  <ebotcazou@adacore.com>
6500
6501         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6502         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6503
6504 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6505
6506         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6507         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6508         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6509         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6510         exp_tss.ads, exp_util.adb, exp_util.ads,
6511         exp_vfpt.adb, freeze.adb, freeze.ads,
6512         frontend.adb, g-alleve.adb, g-altcon.adb,
6513         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6514         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6515         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6516         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6517         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6518         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6519         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6520         g-except.ads, g-expect.ads, g-heasor.adb,
6521         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6522         g-locfil.ads, g-md5.adb, g-md5.ads,
6523         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6524         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6525         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6526         g-soccon-aix.ads, g-soccon-darwin.ads,
6527         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6528         g-soccon-hpux.ads, g-soccon-irix.ads,
6529         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6530         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6531         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6532         g-soccon-solaris.ads, g-soccon-tru64.ads,
6533         g-soccon-vms.ads, g-soccon-vxworks.ads,
6534         g-soccon.ads, g-socket.adb, g-socket.ads,
6535         g-socthi-mingw.adb, g-socthi-vms.adb,
6536         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6537         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6538         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6539         typos.
6540
6541 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6542
6543         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6544         if the procedure is imported.
6545
6546 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6547
6548         * adaint.c: Fix warnings.
6549
6550 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6551
6552         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6553
6554 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6555
6556         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6557         Fix problem of status check for null file
6558
6559 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6560
6561         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6562         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6563         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6564         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6565         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6566         comments.
6567
6568 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6569
6570         PR ada/33688
6571         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6572         Get_Socket_Option): Add support for Receive_Packet_Info.
6573
6574         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6575         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6576         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6577         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6578         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6579         new constants SO_REUSEPORT and IP_PKTINFO
6580
6581 2008-03-26  Robert Dewar  <dewar@adacore.com>
6582
6583         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6584         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6585         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6586         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6587         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6588         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6589         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6590         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6591         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6592         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6593         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6594         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6595         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6596         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6597         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6598         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6599         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6600         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6601         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6602         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6603         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6604         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6605         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6606         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6607         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6608         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6609         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6610         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6611         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6612         s-tasloc.adb: Minor reformatting.
6613         Update comments.
6614         Remove "used for" sections from comments.
6615
6616 2008-03-26  Robert Dewar  <dewar@adacore.com>
6617
6618         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6619         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6620         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6621         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6622         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6623         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6624         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6625         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6626         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6627         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6628         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6629         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6630         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6631         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6632         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6633         double spaced if it fits on one line and otherwise single spaced.
6634
6635 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6636
6637         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6638         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6639         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6640         or task info if the thread could not be created.
6641
6642 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6643
6644         * gnatvsn.ads (Library_Version): Bump to 4.4.
6645         (Current_Year): Bump to 2008.
6646
6647 2008-03-26  Robert Dewar  <dewar@adacore.com>
6648
6649         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6650
6651         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6652
6653         * debug.adb: Add debug flags d.r and d.v
6654         Add debug flag .T (Optimize_Alignment (Time))
6655         Add debug flag .S (Optimize_Alignment (Space))
6656
6657         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6658         depending on setting of relevant debug flags.
6659         Replace use of Warnings_Off by Has_Warnings_Off
6660         (Freeze_Entity): In circuit for warning on suspicious convention
6661         actuals, do not give warning if subprogram has same entity as formal
6662         type, or if subprogram does not come from source.
6663         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6664         if Optimize_Alignment set to Space.
6665
6666         * frontend.adb: Add call to Sem_Warn.Initialize
6667         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6668         Reset Optimize_Alignment mode from debug switches .S and .T
6669
6670         * layout.adb (Layout_Composite_Object): Rewritten for
6671         Optimize_Aligment pragma.
6672
6673         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6674         mode.
6675
6676         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6677
6678         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6679         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6680         this change. Add entry for pragma Optimize_Alignment
6681
6682         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6683         (Pragma_Identifier (..
6684         instead, adjustments throughout to accomodate this change.
6685         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6686         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6687         Add implementation of pragma Optimize_Alignment
6688
6689 2008-03-26  Vincent Celier  <celier@adacore.com>
6690
6691         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6692         Improve memory usage to avoid use of stack.
6693
6694 2008-03-26  Robert Dewar  <dewar@adacore.com>
6695
6696         * a-teioed.ads: Correct value of Default_Fill
6697
6698         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6699
6700 2008-03-26  Robert Dewar  <dewar@adacore.com>
6701
6702         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6703         with Current_Output (introduce Self).
6704
6705 2008-03-26  Robert Dewar  <dewar@adacore.com>
6706
6707         * checks.adb (Ensure_Valid): Capture valid status if possible
6708         (eliminate checks)
6709
6710 2008-03-26  Robert Dewar  <dewar@adacore.com>
6711
6712         * stand.ads: Deal with reordering of package standard declarations
6713
6714         * cstand.adb: Put package Standard declarations in proper order
6715
6716 2008-03-26  Robert Dewar  <dewar@adacore.com>
6717
6718         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6719         (Pragma_Identifier (.. instead.
6720         (OK_To_Reorder_Components): New flag
6721         (Has_Entries): Code cleanup.
6722         (Warnings_Off_Used): New flag
6723         (Warnings_Off_Used_Unmodified): New flag
6724         (Warnings_Off_Used_Unreferenced): New flag
6725         (Has_Warnings_Off): New function
6726         (Has_Unmodified): New function
6727         (Has_Unreferenced): New function
6728         (Is_Trivial_Subprogram): New flag
6729         (Is_Static_Dispatch_Table_Entity): New attribute.
6730         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6731         (more consistent with other similar names)
6732         (Access_Subprogram_Type): New classification function
6733
6734 2008-03-26  Robert Dewar  <dewar@adacore.com>
6735
6736         * errout.ads: Document new !! insertion sequence
6737
6738         * errout.adb (N_Pragma): Chars field removed, use Chars
6739         (Pragma_Identifier (..  instead.
6740         Replace use of Warnings_Off by Has_Warnings_Off
6741         (Error_Msg_Internal): Don't delete warning ending in !!
6742
6743 2008-03-26  Robert Dewar  <dewar@adacore.com>
6744
6745         * par.adb (Check_No_Right_Paren): Removed no longer used
6746
6747         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6748         (Pragma_Identifier (..  instead.
6749
6750         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6751
6752         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6753         par-ch4.adb: Minor improvements in error recovery and messages.
6754
6755         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6756         non-serious
6757
6758         * par-ch9.adb: Minor improvements in error recovery and messages
6759         (P_Protected): Better error recovery for "protected type x;"
6760
6761         * par-util.adb: Minor improvements in error recovery and messages
6762         (Check_No_Right_Paren): Removed no longer used
6763
6764 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6765
6766         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6767         that the prefix of an attribute is the type of the aggregate being
6768         expanded.
6769
6770 2008-03-26  Javier Miranda  <miranda@adacore.com>
6771             Robert Dewar  <dewar@adacore.com>
6772
6773         * exp_attr.adb (N_Pragma): Chars field removed.
6774         (Expand_N_Attribute_Reference): If the designated type associated with
6775         attribute 'Unrestricted_Access is a subprogram entity then replace it
6776         by an E_Subprogram_Type itype.
6777         Implement attribute Old
6778
6779         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6780
6781         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6782         Replace call to
6783         New_Internal_Entity by call to Create_Itype to centralize calls
6784         building itypes, ad propagate the convention of the designated
6785         subprogram. In addition, disable the machinery cleaning constant
6786         indications from all entities in current scope when 'Unrestricted_Access
6787         corresponds with a node initializing a dispatch table slot.
6788         (Analyze_Attribute): Parameterless attributes returning a string or a
6789         type will not be called with improper arguments, so we can remove junk
6790         code that was dealing with this case.
6791         Implement attribute Old
6792
6793         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6794         Add entry for pragma Optimize_Alignment
6795         New standard names Sync and Synchronize
6796
6797 2008-03-26  Robert Dewar  <dewar@adacore.com>
6798             Arnaud Charlet  <charlet@adacore.com>
6799
6800         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6801         stmt.
6802         (No_Exception_Propagation_Active): New function.
6803         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6804         Update comments, and review all uses of No_Exception_Propagation, which
6805         are now correct and in sync with what gigi expects.
6806
6807         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6808         function.
6809         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6810         Update comments, and review all uses of No_Exception_Propagation, which
6811         are now correct and in sync with what gigi expects.
6812
6813 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6814
6815         * sem_ch3.adb (Access_Definition): If the access type is the return
6816         result of a protected function, create an itype reference for it
6817         because usage will be in an inner scope from the point of declaration.
6818         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6819         OK_To_Reorder_Components.
6820         (Make_Index): If an overloaded range includes a universal integer
6821         interpretation, resolve to Standard.Integer.
6822         (Analyze_Subtype_Indication): Copy Convention to subtype
6823         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6824         limited an synchronized progenitors in type declaration and private
6825         extension declarations.
6826
6827         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6828         protected subprogram body, determine proper scope from subprogram
6829         declaration.
6830
6831 2008-03-26  Robert Dewar  <dewar@adacore.com>
6832
6833         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6834         No_Run_Time_Mode
6835
6836 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6837
6838         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6839         of a heap allocator for a limited unconstrained function return when
6840         resstriction No_Allocators is active.
6841         (Analyze_Allocator): The restriction No_Allocators is now only checked
6842         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6843
6844         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6845         of a heap allocator for a limited unconstrained function return when
6846         resstriction No_Allocators is active.
6847         (Analyze_Allocator): The restriction No_Allocators is now only checked
6848         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6849         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6850         operands are fixed-point types, the universal_fixed predefined operation
6851         is used, regardless of whether the operand type (s) have a primitive
6852         operation of the same name.
6853
6854 2008-03-26  Javier Miranda  <miranda@adacore.com>
6855
6856         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6857         Is_Static_Dispatch_Table
6858         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6859         to Exchange_Declarations to exchange the private and full-view. Bug
6860         found working in this issue.
6861         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6862         to the subprogram pointer type.
6863         (Make_Secondary_DT): Replace generation of Prim'Address by
6864         Address (Prim'Unrestricted_Access)
6865         (Make_DT): Replace generation of Prim'Address by
6866         Address (Prim'Unrestricted_Access)
6867         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6868         simple call form for single entry.
6869         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6870         tables of predefined primitives).
6871         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6872         predefined primitives.
6873         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6874         access to dispatch tables containing predefined primitives.
6875
6876         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6877         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6878         this change.
6879         (Register_Predefined_DT_Entry): Updated to handle the new contents
6880         of attribute Access_Disp_Table (pointers to dispatch tables containing
6881         predefined primitives).
6882
6883         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6884         subprogram.
6885         (Find_Interface_ADT): Updated to skip the new contents of attribute
6886         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6887         primitives).
6888
6889         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6890         concurrent types.
6891         (Set_Convention): Use new function Is_Access_Subprogram_Type
6892         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6893         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6894         primitives).
6895
6896         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6897         expanded code avoiding calls to Build_Predef_Prims.
6898         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6899         call to Build_Get_Predefined_Prim_Op_Address.
6900
6901 2008-03-26  Javier Miranda  <miranda@adacore.com>
6902
6903         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6904         subprogram Corresponding_Runtime_Package to know the runtime package
6905         that will provide support to a given protected type.
6906
6907         * exp_ch9.adb (Add_Private_Declarations,
6908         Build_Protected_Subprogram_Call,
6909         Build_Protected_Entry, Build_Simple_Entry_Call,
6910         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6911         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6912         cleanup using the new centralized subprogram Corresponding_Runtime
6913         Package to know the runtime package that provides support to
6914         a given protected type.
6915
6916 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6917
6918         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6919         assignment is within the initialization procedure for a packed array,
6920         and Initialize_Scalars is enabled, compile right-hand side with checks
6921         off, because the value is purposely out of range.
6922
6923 2008-03-26  Vincent Celier  <celier@adacore.com>
6924
6925         * gnatcmd.adb: Add processing for GNAT SYNC
6926
6927         * vms_conv.ads: (Command_Type): Add command Sync
6928
6929         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6930
6931         * vms_data.ads: Add entries for -gnatw.w
6932         Add qualifier for gnatstub --header-file option
6933         Add switches for GNAT SYNC
6934
6935         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6936         (Add_Package_Name): New procedure
6937         (Package_Name_List): New function
6938         (Initialize): Add known package names to the list
6939         (Register_New_Package): Add the new package name to the list
6940
6941 2008-03-26  Robert Dewar  <dewar@adacore.com>
6942
6943         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6944         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6945         Raise_Exception by "raise with" construct.
6946
6947 2008-03-26  Pascal Obry  <obry@adacore.com>
6948
6949         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6950         supported platforms.
6951
6952         * Makefile.rtl: Add g-sercom.o.
6953
6954         * impunit.adb: Add g-sercom.adb.
6955
6956         * s-crtl.ads (open): New routine.
6957         (close): Likewise.
6958         (write): Likewise.
6959
6960         * s-osinte-mingw.ads (BYTE): New type.
6961         (CHAR): Likewise.
6962         (OVERLAPPED): Likewise.
6963         (GENERIC_READ): New constant.
6964         (GENERIC_WRITE): Likewise.
6965         (OPEN_EXISTING): Likewise.
6966         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6967         type instead.
6968         (CreateFile): New routine.
6969         (WriteFile): Likewise.
6970         (ReadFile): Likewise.
6971         (CloseHandle): Move next to the other file oriented routines.
6972
6973         * g-sercom.ads: New unit.
6974
6975         * g-sercom.adb: Default implementation, calls to this unit will raise
6976         a program error exception.
6977
6978         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6979         GNU/Linux implementations.
6980
6981 2008-03-26  Robert Dewar  <dewar@adacore.com>
6982
6983         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6984
6985         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6986         unchecked conversion for different conventions only for subprogram
6987         pointers or on VMS.
6988
6989 2008-03-26  Vincent Celier  <celier@adacore.com>
6990
6991         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6992         to check if the specified object file is correct.
6993
6994 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6995
6996         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6997         Comes_From_Source to exclude primitives from being checked. We want to
6998         exclude predefined primitives only, so use the appropriate specific
6999         predicate. Also, flag a formal parameter of an anonymous
7000         access-to-subprogram type as illegal for a primitive operation of a
7001         remote access to class-wide type.
7002
7003 2008-03-26  Vincent Celier  <celier@adacore.com>
7004
7005         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7006         known, check if it may be a missspelling of a known package name. In
7007         not verbose, not mode, issue warnings only if the package name is a
7008         possible misspelling.
7009         In verbose mode, always issue a warning for a not known package name,
7010         plus a warning if the name is a misspelling of a known package name.
7011
7012         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7013         limited withs or limited withs are parse during one call.
7014         (Parse_Single_Project): Post parse context clause in two passes: non
7015         limited withs before current project and limited withs after current
7016         project.
7017
7018         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7019         project with the name With_Name, even if it is only extended indirectly.
7020         (Recursive_Process): Process projects in order: first single withs, then
7021         current project, then limited withs.
7022
7023         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7024         project with the name With_Name, even if it is only extended indirectly.
7025
7026 2008-03-26  Robert Dewar  <dewar@adacore.com>
7027
7028         * scn.adb (Initialize_Scanner): Format messages belong on standard error
7029
7030 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
7031
7032         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7033         a generic subprogram that is imported, do not attempt to compile
7034         non-existent body.
7035
7036         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7037         imported, do not generate a raise_program_error for the non-existent
7038         body.
7039         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7040         perform minimal name resolution on the generic to avoid spurious
7041         warnings.
7042         (Find_Actual_Type): the designated type of the actual in a child unit
7043         may be declared in a parent unit without being an actual.
7044
7045 2008-03-26  Robert Dewar  <dewar@adacore.com>
7046
7047         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7048         * sinfo.ads, sinfo.adb (From_At_End): New flag
7049
7050 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
7051
7052         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7053         operations that have an interface parameter.
7054         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7055         Don't treat No_Return call as raise.
7056
7057         * sem_disp.adb (Check_Dispatching_Operations): apply check for
7058         non-primitive interface primitives to access parameters, not to all
7059         parameters of an access type.
7060
7061 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
7062
7063         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7064         declarations of a parent unit are made visible when compiling a child
7065         instance, the parent is not a hidden open scope, even though it may
7066         contain other pending instance.
7067
7068         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7069         hidden open scope for some child instance, it does affect the
7070         visibility status of other stach entries.
7071         (Analyze_Object_Renaming): Check that a class-wide object cannot be
7072         renamed as an object of a specific type.
7073
7074 2008-03-26  Robert Dewar  <dewar@adacore.com>
7075
7076         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7077         recursion and raise SE directly.
7078         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7079         set for formal type for IN mode parameter.
7080
7081 2008-03-26  Robert Dewar  <dewar@adacore.com>
7082
7083         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7084         (Initialize): New procedure
7085         (Output_Warnings_Off_Warnings): New procedure
7086         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7087         (Output_Non_Modifed_In_Out_Warnings): Ditto
7088         (Warn_On_Unreferenced_Entity): Ditto
7089
7090 2008-03-26  Vincent Celier  <celier@adacore.com>
7091
7092         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7093         readable.
7094
7095 2008-03-26  Matthew Heaney  <heaney@adacore.com>
7096
7097         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7098         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7099         Marked with clauses as private, and controlled operations as overriding
7100
7101 2008-03-26  Robert Dewar  <dewar@adacore.com>
7102
7103         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7104
7105 2008-03-26  Robert Dewar  <dewar@adacore.com>
7106
7107         * back_end.adb, back_end.ads: Minor reformatting
7108
7109         * bindgen.adb: Minor clarification of comments
7110
7111         * fname.ads: Minor comment fixes
7112
7113         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7114         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7115
7116         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7117         xsnames.adb: Remove warnings off pragma no longer needed
7118
7119         * a-catizo.ads, a-calari.ads, a-calfor.adb,
7120         a-calfor.ads: Fix header.
7121
7122 2008-03-26  Tristan Gingold  <gingold@adacore.com>
7123
7124         * init.c: Do not adjust pc for HPARITH on alpha/vms.
7125
7126 2008-03-26  Robert Dewar  <dewar@adacore.com>
7127
7128         * lib-xref.adb: (OK_To_Set_Reference): New function
7129         (Generate_Reference): Don't set referenced from occurrence in Warnings,
7130         Unmodified, or Unreferenced pragma
7131
7132 2008-03-26  Robert Dewar  <dewar@adacore.com>
7133
7134         * alloc.ads: Add entries for Warnings_Off_Pragmas table
7135
7136 2008-03-26  GNAT Script  <nobody@adacore.com>
7137
7138         * Make-lang.in: Makefile automatically updated
7139
7140 2008-03-26  Robert Dewar  <dewar@adacore.com>
7141
7142         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7143         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7144         removed, use Chars (Pragma_Identifier (..  instead, adjustments
7145         throughout to accomodate this change.
7146
7147         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7148
7149         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7150         Einfo.Set_Needs_Debug_Info)
7151
7152 2008-03-26  Robert Dewar  <dewar@adacore.com>
7153
7154         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7155         Add description for the new gnatstub option '--header-file'
7156         clarification of -gnatwz/-gnatwZ
7157         Add a "Irix-Specific Considerations" section to document the need to
7158         set LD_LIBRARY_PATH when using the default shared runtime library.
7159         Added documentation for both gcov and gprof.
7160
7161         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7162         messages that are not suppressed when clients are compiled.
7163         Add documentation of s-pooglo s-pooloc
7164         Document the new GNAT.Serial_Communications API.
7165         Add documentation for 'Old attribute
7166         Add description of pragma Optimize_Alignment
7167
7168         * ug_words: Add entries for -gnatw.w -gnatw.W
7169
7170         * usage.adb: Add line for -gnatw.w (warn on warnings off)
7171
7172 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7173
7174         Revert
7175         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7176         PR ada/35186
7177         * decl.c (maybe_pad_type): Avoid padding an integral type when
7178         bumping its alignment is sufficient.
7179
7180 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
7181
7182         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7183         Fix wrong formatting (lines too long)
7184
7185 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7186
7187         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7188         a-calend-vms.adb, a-calend.adb, a-calend.ads,
7189         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7190         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7191         a-cohama.ads, a-comlin.ads, a-coorse.adb,
7192         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7193         a-except-2005.ads, a-except.adb, a-except.ads,
7194         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7195         a-exextr.adb, a-filico.ads, a-finali.ads,
7196         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7197         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7198         a-sequio.ads, a-strbou.ads, a-strfix.adb,
7199         checks.adb, exp_ch3.adb, exp_ch4.adb,
7200         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7201         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7202         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7203         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7204         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7205
7206 2008-03-24  Robert Dewar  <dewar@adacore.com>
7207
7208         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7209         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7210         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7211         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7212         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7213         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7214         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7215         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7216         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7217         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7218         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7219         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7220         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7221         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7222         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7223         double spaced if it fits on one line and otherwise single spaced.
7224
7225 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7226
7227         PR documentation/15479
7228         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7229         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7230         (doc/gnat_ugn.info): Renamed from ...
7231         (doc/gnat_ugn_unw.info): ... this.
7232         (doc/gnat_ugn.dvi): Renamed from ...
7233         (doc/gnat_ugn_unw.dvi): ... this.
7234         (doc/gnat_ugn.pdf): Renamed from ...
7235         (doc/gnat_ugn_unw.pdf): ... this.
7236         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7237         Adjusted.
7238         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7239         unconditionally to gnat_ugn.info.  Fix cross references to the
7240         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
7241         and GNU make manuals to be proper texinfo links.
7242         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7243
7244 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7245
7246         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7247         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7248
7249 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
7250
7251         * trans.c (addressable_p): Add notes on addressability issues.
7252
7253 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7254             Ed Schonberg  <schonberg@adacore.com>
7255
7256         * trans.c (addressable_p): Accept COND_EXPR when both arms
7257         are addressable.
7258         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7259         (call_to_gnu): Do not use name reference in the error message
7260         for a misaligned by_reference_parameter. The actual may be a
7261         general expression.
7262
7263 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7264
7265         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7266
7267 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7268
7269         * gnat_rm.texi (Implementation Defined Characteristics)
7270         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7271         appropriate.
7272         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7273         (Switches for gnatchop, Installing a library): Likewise.
7274
7275 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
7276
7277         * trans.c (emit_range_check): Do not emit the check if the base type
7278         of the expression is the type against which its range must be checked.
7279
7280 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7281
7282         * decl.c (maybe_pad_type): Use value_factor_p.
7283
7284 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7285
7286         * lang.opt (nostdlib): Move around.
7287         * misc.c (gnat_handle_option): Fix formatting.
7288         (gnat_dwarf_name): Move around.
7289         * trans.c (Case_Statement_to_gnu): Fix formatting.
7290         (gnat_to_gnu): Likewise.
7291         * utils.c (aggregate_type_contains_array_p): Likewise.
7292         (create_subprog_decl): Likewise.
7293
7294 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7295
7296         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7297         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7298
7299 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7300
7301         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7302         BIGGEST_ALIGNMENT when capping the alignment of records with
7303         strict alignment and size clause.
7304
7305 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7306
7307         * lang-specs.h: Pass -gnatwa if -Wall is passed.
7308         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7309         and -Wuninitialized.
7310         (gnat_post_options): Clear warn_unused_parameter.
7311
7312 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7313
7314         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7315         aligned bit-fields, bumping the alignment of the record type if deemed
7316         profitable.
7317         (value_factor_p): Return false instead of 0.
7318
7319 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7320
7321         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7322         for scalar types with small alignment.
7323
7324 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7325
7326         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7327         from that of the front-end's end label.
7328         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7329         from that of the loop label.
7330
7331 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7332
7333         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7334         comment for the packed array type case.
7335         * utils.c (build_template): Use a loop to strip padding or
7336         containing records for justified modular types.
7337
7338 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7339
7340         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7341         large alignments specified for types.
7342         (validate_alignment): Minor cleanup.
7343
7344 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7345
7346         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7347         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7348         the component for packing, if possible, as well as if a component
7349         size clause is specified.
7350         <E_Record_Subtype>: For an array type used to implement a packed
7351         array, get the component type from the original array type.
7352         Try to get a smaller form of the component for packing, if possible,
7353         as well as if a component size clause is specified.
7354         (round_up_to_align): New function.
7355         (make_packable_type): Add in_record parameter.
7356         For a padding record, preserve the size.  If not in_record and the
7357         size is too large for an integral mode, attempt to shrink the size
7358         by lowering the alignment.
7359         Ditch the padding bits of the last component.
7360         Compute sizes and mode manually, and propagate the RM size.
7361         Return a BLKmode record type if its size has shrunk.
7362         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7363         Use Original_Array_Type to retrieve the type in case of an error.
7364         Adjust call to make_packable_type.
7365         (gnat_to_gnu_field): Likewise.
7366         (concat_id_with_name): Minor tweak.
7367         * trans.c (larger_record_type_p): New predicate.
7368         (call_to_gnu): Compute the nominal type of the object only if the
7369         parameter is by-reference.  Do the conversion actual type -> nominal
7370         type if the nominal type is a larger record.
7371         (gnat_to_gnu): Do not require integral modes on the source type to
7372         avoid the conversion for types with identical names.
7373         (addressable_p): Add gnu_type parameter.  If it is specified, do not
7374         return true if the expression is not addressable in gnu_type.
7375         Adjust recursive calls.
7376         * utils.c (finish_record_type): Remove dead code.
7377
7378 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7379
7380         PR ada/35186
7381         * decl.c (maybe_pad_type): Avoid padding an integral type when
7382         bumping its alignment is sufficient.
7383
7384 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7385
7386         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7387         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7388         statement.
7389         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7390         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7391         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7392         code output strings.
7393         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7394         system-vms_64.ads: Fix typos in ada source code comments.
7395         * sinfo-cn.adb: Remove incomplete sentence.
7396
7397         PR documentation/15479
7398         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7399
7400 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7401
7402         PR ada/22255
7403         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7404
7405 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7406
7407         PR ada/34799
7408         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7409         that underlying type is present.
7410
7411 2008-02-26  Tom Tromey  <tromey@redhat.com>
7412
7413         * misc.c (internal_error_function): Remove test of
7414         USE_MAPPED_LOCATION.
7415         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7416         (Sloc_to_locus): Remove old location code.
7417
7418 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7419
7420         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7421         `i.e.' by adding comma or `@:' as appropriate.
7422         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7423         plain characters `C', use `@samp{C}'.
7424         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7425         (Krunching Method): Likewise.
7426
7427         * gnat_ugn.texi (Conventions): List environment variables and
7428         metasyntactic variables.
7429         (Compiling Programs): Fix notation of metasyntactic variables.
7430         Add @file where appropriate.  Use @file for file extensions,
7431         @samp for strings.
7432         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7433         instead of @file, @env instead of @code.
7434
7435 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7436
7437         PR documentation/15479
7438         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7439         and `...' with `@dots{}' or `@enddots{}'.
7440
7441         PR documentation/15479
7442         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7443         use @command instead of @code, @option instead of @samp or @code,
7444         @code instead of @var, @samp instead of @file.
7445
7446         PR documentation/15479
7447         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7448         in Makefile rules, by using `&&' rather than `;'.
7449
7450 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7451
7452         PR documentation/15479
7453         * gnat_ugn.texi: In non-code, avoid space before colon.
7454         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7455         (Examples of gnatxref Usage): Use @command{vi} instead of
7456         @file{vi}.
7457         (Character Set Control): Do not use @code for UTF-8.
7458         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7459         use @code for IEEE.
7460         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7461         sample.
7462         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7463
7464 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7465
7466         PR ada/35143
7467         * env.c: Add __rtems__ to if defined.
7468         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7469         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7470         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7471         pragma Convention as required.
7472         * gsocket.h: Make compile in and out of RTS.
7473         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7474         Use g-soccon-rtems.ads.
7475         * g-soccon-rtems.ads, system-rtems.ads: New files.
7476
7477 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7478
7479         PR other/35107
7480         * Make-lang.in (gnat1): Add $(GMPLIBS).
7481
7482 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7483
7484         * decl.c (components_to_record): Improve comment.
7485
7486 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7487
7488         * decl.c (components_to_record): Do not reuse the empty union type
7489         if there is a representation clause on the record.
7490         * trans.c (addressable_p): Return true for INTEGER_CST.
7491
7492 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7493
7494         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7495         in pointer arithmetics.
7496         * utils2.c (build_allocator): Likewise.
7497
7498 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7499
7500         * utils.c (build_function_stub): Properly build the call expression.
7501
7502 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7503
7504         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7505         before converting the expression to the type of the object.
7506         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7507         Stabilize constructors for special wrapping types.
7508
7509 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7510
7511         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7512         when necessary.  Merge some conditional statements.  Update comments.
7513         Rename unchecked_convert_p local variable to suppress_type_conversion.
7514         Do not suppress conversions in the In case.
7515         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7516         into account on non strict-alignment platforms.
7517
7518 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7519
7520         * utils.c (aggregate_type_contains_array_p): New predicate.
7521         (create_field_decl): In a packed record, force byte alignment
7522         for fields without specified position that contain an array.
7523
7524 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7525
7526         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7527
7528 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7529
7530         PR ada/34466
7531         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7532         sysconf call.
7533         (bit_field): New packed boolean type used by cpu_set_t.
7534         (cpu_set_t): New type corresponding to the C type with
7535         the same name. Note that on the Ada side we use a bit
7536         field array for the affinity mask. There is not need
7537         for the C macro for setting individual bit.
7538         (pthread_setaffinity_np): New imported routine.
7539
7540 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7541
7542         PR ada/34647
7543         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7544         on OpenBSD as is done on other BSD systems.
7545
7546         PR ada/34645
7547         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7548         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7549         I/O.
7550
7551         PR ada/34644
7552         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7553         clearenv().
7554
7555         PR ada/34646
7556         * init.c (__gnat_error_handler, __gnat_install_handler,
7557         __gnat_init_float): Define for OpenBSD.
7558
7559         * initialize.c (__gnat_initialize): Define for OpenBSD.
7560
7561 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7562
7563         PR ada/34553
7564         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7565         instead of mktemp() or tmpnam() on NetBSD.
7566
7567 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7568
7569         * trans.c (call_to_gnu): Make the temporary for non-addressable
7570         In parameters passed by reference.
7571         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7572
7573 2007-12-19  Robert Dewar  <dewar@adacore.com>
7574
7575         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7576         Add pragma Warnings (Off) for unassigned IN OUT arguments
7577
7578         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7579         (Check_References): Extensive changes to tune up warnings
7580         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7581         (Has_Pragma_Unmodifed_Check_Spec): New function
7582         (Check_References): Implement pragma Unmodified
7583         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7584
7585         * par-prag.adb: Dummy entry for pragma Unmodified
7586
7587         * sem_prag.adb: Implement pragma Unmodified
7588
7589         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7590         (Proc_Next_Component_Or_Discriminant): Fix typo.
7591         Update comments.
7592
7593         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7594         Unmodified.
7595         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7596         because the former already takes care of discarding the result.
7597         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7598         Add comment.
7599
7600         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7601
7602 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7603
7604         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7605         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7606         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7607         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7608         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7609         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7610         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7611         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7612         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7613         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7614         (Dynamic_Trampolines_Used): Delete.
7615
7616         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7617         Turn on stack probing mechanism on LynxOS.
7618
7619 2007-12-19  Bob Duff  <duff@adacore.com>
7620
7621         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7622         the resulting tail recursion by hand. This prevents running out of
7623         memory on deeply nested concatenations, since Field2 is where the left
7624         operand of concatenations is stored.
7625         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7626         clarify that it can only return OK or Abandon.
7627
7628         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7629         operand by iteration, in order to avoid running out of memory on
7630         deeply-nested concatenations. Use the Parent pointer to get back up the
7631         tree.
7632         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7633          Resolve_Op_Concat_Rest): New procedures split out of
7634         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7635         clearer.
7636
7637         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7638         Traverse_Func, because the former already takes care of discarding the
7639         result.
7640
7641         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7642         because the former already takes care of discarding the result.
7643         (Remove_Warning_Messages): Use appropriate subtype for Status and
7644         Discard
7645
7646 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7647
7648         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7649         discriminants forces expansion of the aggregate into assignments.
7650         (Init_Record_Controller):  If the type of the aggregate is untagged and
7651         is not inherently limited, the record controller is not limited either.
7652
7653 2007-12-19  Robert Dewar  <dewar@adacore.com>
7654
7655         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7656         handling compile time known size of record or array (case of front end
7657         layout active, e.g. in GNAAMP).
7658
7659 2007-12-19  Javier Miranda  <miranda@adacore.com>
7660
7661         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7662         that forces the construction of static dispatch tables in case of
7663         record subtypes.
7664
7665 2007-12-19  Robert Dewar  <dewar@adacore.com>
7666
7667         * exp_ch9.adb (Null_Statements): Moved to library level
7668         (Trivial_Accept_OK): New function
7669         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7670         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7671
7672 2007-12-19  Robert Dewar  <dewar@adacore.com>
7673
7674         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7675         in complex case where array is Volatile.
7676
7677 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7678
7679         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7680         properly the Ada2005 rules concerning when the current instance of a
7681         record type is aliased.
7682
7683 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7684
7685         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7686         mangled declaration
7687         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7688         declarations.
7689         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7690
7691 2007-12-19  Vincent Celier  <celier@adacore.com>
7692
7693         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7694         package is not known
7695
7696         * prj-attr.ads (Unknown_Package): New constant
7697         Do not crash when an unknown package is in several projects
7698
7699         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7700         ignored
7701
7702         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7703         existing package Language_Processing.
7704
7705 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7706             Gary Dismukes  <dismukes@adacore.com>
7707             Samuel Tardieu  <sam@rfc1149.net>
7708
7709         PR ada/15803, ada/15805
7710         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7711         illegal access subtypes when there is a constrained partial view.
7712         (Check_For_Premature_Usage): New procedure inside
7713         Access_Subprogram_Declaration for checking that an access-to-subprogram
7714         type doesn't reference its own name within any formal parameters or
7715         result type (including within nested anonymous access types).
7716         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7717         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7718         context is an access_to_variable, the expression cannot be an
7719         access_to_constant.
7720
7721 2007-12-19  Bob Duff  <duff@adacore.com>
7722
7723         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7724         (Analyze_Concatenation): Use iteration instead of recursion in order
7725         to avoid running out of stack space for deeply nested concatenations.
7726
7727 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7728             Gary Dismukes  <dismukes@adacore.com>
7729
7730         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7731         whose renamed entity is a subprogram that requires overriding.
7732         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7733         issuing an error for premature usage and issue a message that says
7734         'type' rather than 'object'.
7735
7736 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7737
7738         PR ada/34149
7739         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7740         presence of a statically tagged operand (Present (Static_Tag)) with
7741         test for Indeterm_Ancestor_Call when determining whether to propagate
7742         the static tag to tag-indeterminate operands (which forces dispatching
7743         on such calls).
7744         (Check_Controlling_Formals): Ada2005, access parameters can have
7745         defaults.
7746         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7747         not insert subprogram in list of primitive operations if already there.
7748
7749 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7750
7751         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7752         global variable.
7753
7754 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7755
7756         Part of PR ada/33688
7757         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7758         datagram info on Linux.
7759
7760 2007-12-19  Vincent Celier  <celier@adacore.com>
7761
7762         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7763         that the source path name is always found in the dependencies.
7764
7765 2007-12-19  Robert Dewar  <dewar@adacore.com>
7766
7767         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7768         Fix name of Wide_Wide_Latin_1/9 file names
7769         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7770         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7771         Add missing documentation for Ada.Command_Line.Response_File
7772         Update list of warning letters for Warnings pragma
7773         Add documentation for pragma Unmodified
7774
7775 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7776
7777         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7778
7779 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7780
7781         * s-vxwork-alpha.ads: Removed, no longer used.
7782
7783 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7784
7785         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7786
7787 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7788
7789         PR ada/34360
7790         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7791         mlib-tgt-specific.adb.
7792
7793 2007-12-13  Bob Duff  <duff@adacore.com>
7794
7795         * trans.c (Attribute_to_gnu): Check for violations of the
7796         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7797         the front end, but is moved here so we can make it more accurate.
7798
7799 2007-12-13  Pascal Obry  <obry@adacore.com>
7800
7801         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7802          version is provided for older GNU/Linux distribution not
7803          supporting thread affinity sets.
7804
7805         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7806         call.
7807         (bit_field): New packed boolean type used by cpu_set_t.
7808         (cpu_set_t): New type corresponding to the C type with
7809         the same name. Note that on the Ada side we use a bit
7810         field array for the affinity mask. There is not need
7811         for the C macro for setting individual bit.
7812         (pthread_setaffinity_np): New imported routine.
7813
7814         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7815         no null.
7816         (Create_Task): Set the processor affinity mask if information
7817         is present.
7818
7819         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7820
7821 2007-12-13  Robert Dewar  <dewar@adacore.com>
7822
7823         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7824         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7825         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7826         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7827         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7828         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7829         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7830         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7831         for subprogram pointers.
7832
7833         * g-ctrl_c.adb: New file.
7834
7835         * g-ctrl_c.ads (Install_Handler): New body.
7836
7837         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7838         instead of obsolete function Is_Always_Inlined.
7839         (Freeze_Entity): check for tagged type in imported C subprogram
7840         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7841         (Freeze_Entity): check for convention Ada subprogram pointer in
7842         imported C subprogram.
7843         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7844         bound would be chopped off and go from negative to zero, force
7845         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7846         bound) so that the size computation for the base type will take
7847         negative values into account.
7848
7849 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7850             Bob Duff  <duff@adacore.com>
7851             Tristan Gingold  <gingold@adacore.com>
7852
7853         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7854         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7855         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7856         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7857         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7858         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7859         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7860         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7861         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7862         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7863         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7864         (Always_Compatible_Rep): New flag to control trampolines globally.
7865         (Dynamic_Trampolines_Used): New flag for implementing the
7866         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7867         and not yet set correctly for some targets).
7868
7869         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7870         Simply indirectly call s-stchop when a task is created.
7871
7872         * ali.ads:
7873         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7874         appears as an argument (entries A) in an ALI file.
7875
7876         * fe.h (Stack_Check_Limits): Declare new target parameter.
7877         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7878
7879         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7880         This variable is declared in C to be sure not subject to elaboration
7881         code.
7882         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7883         Storage_Error.
7884
7885         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7886         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7887
7888         * s-stchop.ads: Add comments.
7889
7890         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7891         limit method of stack checking.
7892
7893         * s-stchop-limit.ads: New file.
7894
7895 2007-12-13  Robert Dewar  <dewar@adacore.com>
7896
7897         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7898         a-cihama.adb, g-awk.adb,
7899         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7900         warnings
7901
7902         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7903
7904         * sem.adb: Update handling of assigned value/unreferenced warnings
7905
7906         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7907
7908         * lib-xref.ads: Improve documentation for k xref type
7909
7910         * lib-xref.adb:
7911         Update handling of assigned value/unreferenced warnings
7912         (Generate_Reference): Warning for reference to entity for which a
7913         pragma Unreferenced has been given should be unconditional.
7914         If the entity is a discriminal, mark the original
7915         discriminant as referenced.
7916
7917         * sem_warn.ads, sem_warn.adb
7918         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7919         no entities referenced in package
7920         (Check_One_Unit): Don't give message about no entities referenced in
7921         a package if a pragma Unreferenced has appeared.
7922         Handle new warning flag -gnatw.a/-gnatw.A
7923         Update handling of assigned value/unreferenced warnings
7924
7925         * atree.h: Add flags up to Flag247
7926         (Flag231): New macro.
7927
7928 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7929
7930         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7931
7932         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7933         RTX systems.
7934
7935         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7936         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7937         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7938         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7939
7940         * mingw32.h:
7941         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7942
7943         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7944         since we only have problems with Windows 95/98, which are not
7945         supported by RTX.
7946         (__gnat_ttyname): Return the empty string on Nucleus, just as
7947         done on vxworks.
7948
7949 2007-12-13  Robert Dewar  <dewar@adacore.com>
7950
7951         * a-textio.adb, a-textio.ads:
7952         Extensive changes to private part for wide character encoding
7953
7954         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7955         (Look_Ahead): Fix mishandling of encoded sequences
7956         Move declaration of Wch_Con to private part (should not be visible)
7957
7958         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7959         UTF-8. Probably this is never used, but if it is, brackets is
7960         clearly correct.
7961
7962         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7963         setting wide character encoding for no main program case and when
7964         encoding is specified using -W?
7965         Initialize stack limit of environment task if stack limit method of
7966         stack checking is enabled.
7967         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7968         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7969         (Get_Main_Unit_Name): New function.
7970         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7971         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7972
7973         * bindusg.adb: Add line for -Wx switch
7974
7975         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7976         Add comments
7977         Add new useful constant WC_Longest_Sequences
7978
7979         * switch-b.adb: Clean up handling of -Wx switch
7980         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7981
7982         * switch-c.adb: -gnatg activates warning on assertion errors
7983         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7984
7985         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7986
7987 2007-12-13  Robert Dewar  <dewar@adacore.com>
7988             Ed Schonberg  <schonberg@adacore.com>
7989
7990         * a-ngcoty.adb: New pragma Fast_Math
7991
7992         * opt.adb: New pragma Fast_Math
7993
7994         * par-prag.adb:
7995         Add Implemented_By_Entry to the list of pragmas which do not require any
7996         special processing.
7997         (Favor_Top_Level): New pragma.
7998         New pragma Fast_Math
7999
8000         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8001         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8002         Expand_Allocator_Expression): Take into account VM_Target
8003         (Expand_Attribute, case 'Identity):  Handle properly the case where
8004         the prefix is a task interface.
8005         New pragma Fast_Math
8006
8007         * par.adb (Next_Token_Is): New function
8008         (P_Pragma): Add Skipping parameter
8009         (U_Left_Paren): New procedure
8010         (U_Right_Paren): New procedure
8011         New pragma Fast_Math
8012
8013         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8014         subunit
8015         New pragma Fast_Math
8016
8017         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8018         Implemented_By_Entry.
8019         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8020         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8021         items, since it can apply to more than one overloadable entity. Set
8022         new flag Has_Pragma_Inline_Always for Inline_Always case.
8023         (Analyze_Pragma, case Complex_Representation): Improve error message.
8024         (Analyze_Pragma, case Assert): When assertions are disabled build the
8025         rewritten code with Sloc of expression rather than pragma, so new
8026         warning about failing is not deleted.
8027         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8028         protected types and update error message to reflect that. Test whether
8029         the protected type is allowed for the pragma (an error is issued if the
8030         type has any entries, or components that do not have preelaborable
8031         initialization).
8032         New pragma Fast_Math
8033         (Analyze_Pragma, case No_Return): Handle generic instance
8034
8035         * snames.h, snames.ads, snames.adb:
8036         Add new predefined name for interface primitive _Disp_Requeue.
8037         New pragma Fast_Math
8038
8039         * a-tags.ads, a-tags.adb: New calling sequence for
8040         String_To_Wide_[Wide_]String
8041         (Secondary_Tag): New subprogram.
8042
8043         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8044         from Exp_Attr
8045         New calling sequence for String_To_Wide_[Wide_]String
8046         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8047         the use of the secondary stack for image routines.
8048
8049         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8050         calling sequence for String_To_Wide_[Wide_]String
8051
8052         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8053         Ada 95 mode
8054         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8055         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8056
8057         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8058         (P_Formal_Part): Use Skipping parameter in P_Pragma call
8059         to improve error recovery
8060
8061         * par-util.adb (Next_Token_Is): New function
8062         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8063
8064         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8065         semicolon if missing
8066         (P_Pragma): Implement new Skipping parameter
8067         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8068         Fix location of flag for unrecognized pragma message
8069
8070         * par-tchk.adb (U_Left_Paren): New procedure
8071         (U_Right_Paren): New procedure
8072
8073 2007-12-13  Geert Bosch  <bosch@adacore.com>
8074
8075         * a-tifiio.adb:
8076         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8077         the second or later Scaled_Divide would omit leading zeroes,
8078         resulting in too few digits produced and a Layout_Error as result.
8079         (Put): Initialize Pos.
8080
8081 2007-12-13  Robert Dewar  <dewar@adacore.com>
8082
8083         atree.ads, atree.adb (Flag231..Flag247): New functions
8084         (Set_Flag231..Set_Flag247): New procedures
8085         (Basic_Set_Convention): Rename Set_Convention to be
8086         Basic_Set_Convention
8087         (Nkind_In): New functions
8088         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8089
8090         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8091         instead
8092          of obsolete function Is_Always_Inlined
8093         (Register_Predefined_DT_Entry): Initialize slots of the second
8094         secondary dispatch table.
8095         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8096         (Expand_N_Function_Call): Remove special provision for stack checking.
8097
8098         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8099         Include _Disp_Requeue in the list of predefined operations.
8100         (Find_Interface_ADT): Modified to fulfill the new specification.
8101         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8102
8103         * par-ch4.adb, nlists.ads, nlists.adb:
8104         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8105
8106         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8107         Fix location of flag for unrecognized pragma message
8108
8109         * sem_ch7.adb: Use Nkind_In
8110
8111 2007-12-13  Vincent Celier  <celier@adacore.com>
8112
8113         * opt.ads:
8114         Indicate what flags are used by the Project Manager, gprbuild and
8115         gprclean.
8116         (Opt.Follow_Links_For_Dirs): New flag
8117         (Warn_On_Assertion_Failure): New flag
8118         (Wide_Character_Encoding_Method_Specified): New flag
8119         (Suppress_All_Inlining): New switch set by -fno-inline
8120         (Real_VMS_Target): New flag
8121         New pragma Fast_Math
8122
8123 2007-12-13  Robert Dewar  <dewar@adacore.com>
8124
8125         * back_end.adb: Recognize -fno-inline
8126
8127 2007-12-13  Robert Dewar  <dewar@adacore.com>
8128
8129         * checks.adb: Fix optimization problem with short-circuited form
8130
8131 2007-12-13  Bob Duff  <duff@adacore.com>
8132
8133         * clean.adb (Usage): Add line for -aP
8134         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8135         with a parameter "procedure Usage", instead of passing a pointer to a
8136         procedure. This is to eliminate trampolines (since the Usage procedure
8137         is often nested in a main procedure, and it would be inconvenient to
8138         unnest it).
8139
8140         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8141         to be generic, with a parameter "procedure Callback (...)", instead of
8142         passing a pointer to a procedure. This is to eliminate trampolines
8143         (since the Callback procedure is usually nested).
8144
8145         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8146         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8147         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8148
8149         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8150         Use the generic Heap_Sort_G instead of Heap_Sort_A.
8151
8152 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8153
8154         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8155         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8156         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8157         (Renamed_In_Spec): New flag
8158         (Has_Pragma_Inline_Always): New flag
8159         Add missing doc for pragma Obsolescent_Warning
8160         Add missing doc for 17 additional unused flags (230-247)
8161         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8162         Alphabetize with clauses.
8163         Separate Is_Thunk and Has_Thunks flags
8164         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8165         (Related_Interface): Renamed to Related_Type.
8166         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8167         (Set_Is_Flag): Restrict the assertion.
8168
8169 2007-12-13  Vincent Celier  <celier@adacore.com>
8170
8171         * errout.adb (Output_Source_Line): Do not keep a trailing space after
8172         the source line number if the source line is empty.
8173
8174 2007-12-13  Geert Bosch  <bosch@adacore.com>
8175
8176         * eval_fat.adb (Decompose_Int): Handle argument of zero.
8177         (Compose): Remove special casing of zero.
8178         (Exponent): Likewise.
8179         (Fraction): Likewise.
8180         (Machine): Likewise.
8181         (Decompose): Update comment.
8182
8183 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8184
8185         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8186         limited ancestor part, initialize controllers of enclosing record
8187         before expanding ancestor aggregate.
8188         (Gen_Assign): If a component of the aggregate is box-initialized, add
8189         code to call Initialize if the component is controlled, and explicit
8190         assignment of null if the component is an access type.
8191
8192         Handle properly aggregates for limited types that appear in object
8193         declarations when the aggregate contains controlled values such as
8194         protected types.
8195         When expanding limited aggregates into individual components, do not
8196         call Adjust on controlled components that are limited.
8197
8198 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8199
8200         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8201
8202 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8203
8204         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8205         predefined primitive _Disp_Requeue.
8206         (Make_Predefined_Primitive_Specs): Create the spec for predefined
8207         primitive _Disp_Requeue.
8208         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8209         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8210         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8211         an interface type. In case of limited interfaces we now declare all the
8212         predefined primitives associated with synchronized interfaces as
8213         abstract.
8214         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8215         declarations.
8216         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8217         tagged type is an interface type and there is no user-defined equality
8218         function.
8219         Add also bodies of predefined primitives associated with synchronized
8220         interfaces.
8221         (Freeze_Record_Type): Do not build bodies of predefined primitives of
8222         interface types because they are now defined abstract.
8223         Add missing documentation.
8224         (Expand_Record_Controller): Update occurrence of Related_Interface
8225         to Related_Type.
8226         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8227         (Expand_N_Object_Declaration): Take into account VM_Target when handling
8228         class wide interface object declaration.
8229         (Expand_Previous_Access_Type): Do not create a duplicate master entity
8230         if the access type already has one.
8231         (Expand_N_Object_Declaration): Defend against attempt to validity check
8232         generic types. Noticed for -gnatVcf specified with previous errors.
8233
8234 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8235
8236         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8237         Expand_Allocator_Expression): Take into account VM_Target
8238
8239         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8240         secondary stack when VM_Target /= No_VM
8241
8242 2007-12-13  Javier Miranda  <miranda@adacore.com>
8243             Ed Schonberg  <schonberg@adacore.com>
8244
8245         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8246         Is_Complation_Unit by Is_Library_Level_Entity in the code
8247         that decides if the static dispatch tables need to be built.
8248         (Wrap_Transient_Declaration): Do not generate a finalization call if
8249         this is a renaming declaration and the renamed object is a component
8250         of a controlled type.
8251
8252 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8253
8254         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8255         In the case where the renamed subprogram is a dereference, call
8256         Force_Evaluation on the prefix.
8257
8258 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8259             Ed Schonberg  <schonberg@adacore.com>
8260
8261         * exp_ch9.adb (Expand_N_Asynchronous_Select,
8262         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8263         comment reformatting.
8264         (Set_Privals): Inherit aliased flag from formal. From code reading.
8265         (Build_Simple_Entry_Call): Out parameters of an access type are passed
8266         by copy and initialized from the actual. This includes entry parameters.
8267         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8268         and Ada 2005 models of requeue.
8269         (Null_Statements): Still connsider do-end block null if it contains
8270         Unreferenced and Warnings pragmas.
8271         (Expand_N_Accept_Statement): Do not optimize away null do end if
8272         dispatching policy is other than defaulted.
8273         (Expand_N_Timed_Entry_Call): When the triggering statement is a
8274         dispatching call, manually analyze the delay statement.
8275         (Find_Parameter_Type): Move subprogram to Sem_Util.
8276
8277 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8278             Javier Miranda  <miranda@adacore.com>
8279
8280         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8281         _Disp_Requeue occupies dispatch table slot number 15. Move
8282         _Disp_Timed_Select to slot 16.
8283         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8284         generate the spec and body of _Disp_Reqeueue.
8285         (Make_DT): Build and initialize the second dispatch table.
8286         Handle initialization of RC_Offset when the parent
8287         is a private type with variable size components.
8288         (Make_Secondary_DT): Complete documentation. Add support to
8289         initialize the second dispatch table.
8290         (Make_Tags): Generate the tag of the second dispatch table.
8291         (Register_Primitive): Add support to register primitives in the
8292         second dispatch table.
8293
8294 2007-12-13  Pascal Obry  <obry@adacore.com>
8295
8296         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8297         Windows. This signal is used by gnatmake to kill child processes for
8298         example.
8299
8300 2007-12-13  Javier Miranda  <miranda@adacore.com>
8301
8302         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8303         support for generic dispatching constructor calls in which we need to
8304         locate the tag of a secondary dispatch table associated with an
8305         interface type to properly dispatch the call.
8306         (Expand_N_Attribute_Reference [case Address],
8307         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8308         handling of VM targets.
8309
8310 2007-12-13  Robert Dewar  <dewar@adacore.com>
8311             Ed Schonberg  <schonberg@adacore.com>
8312
8313         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8314         assert fail
8315
8316         * ug_words: Add entries for -gnatw.a -gnatw.A
8317
8318         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8319         literal is a subtype with non-static constraints, use the base type of
8320         the context as the base of the string subtype, to prevent type
8321         mismatches in gigi.
8322         (Resolve_Actuals): If the actual is an entity name, generate a
8323         reference before the actual is resolved and expanded, to prevent
8324         spurious warnings on formals of enclosing protected operations.
8325         (Analyze_Overloaded_Selected_Component): If type of prefix if
8326         class-wide, use visible components of base type.
8327         (Resolve_Selected_Component): Ditto.
8328         (Resolve_Short_Circuit): Detect case of pragma Assert argument
8329         evaluating to False, and issue warning message.
8330
8331         * usage.adb: Add lines for -gnatw.a and -gnatw.A
8332
8333 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8334
8335         * g-calend.ads (No_Time): New constant, to represent an uninitialized
8336         time value
8337
8338         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8339         formats.
8340         (Month_Name_To_Number): New subprogram
8341
8342         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8343         letter to upper-case.
8344
8345 2007-12-13  Robert Dewar  <dewar@adacore.com>
8346             Ed Schonberg  <schonberg@adacore.com>
8347
8348         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8349
8350         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8351         context is a limited view, use non-limited view when available. If the
8352         non-limited view is an unconstrained array, this enforces consistency
8353         requirements in 3.10.2 (27).
8354         (Layout_Type): For an access type whose designated type is a limited
8355         view, examine its declaration to determine if it is an unconstrained
8356         array, and size the access type accordingly.
8357         (Layout_Type): Do not force 32-bits for convention c subprogram
8358         pointers in -gnatdm mode, only if real vms target.
8359
8360         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8361         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8362         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8363         violations of the No_Implicit_Dynamic_Code restriction.
8364         (Resolve_Attribute, case 'Access): If designated type of context is a
8365         limited view, use non-limited view when available. If the non-limited
8366         view is an unconstrained array, this enforces consistency requirements
8367         in 3.10.2 (27).
8368         (Layout_Type): For an access type whose designated type is a limited
8369         view, examine its declaration to determine if it is an unconstrained
8370         array, and size the access type accordingly.
8371
8372 2007-12-13  Vincent Celier  <celier@adacore.com>
8373
8374         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8375         object directory of main project does not exist.
8376         On VMS, correctly set then environment variable for the source
8377         directories.
8378
8379 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8380
8381         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8382         set to True this procedure will create the value of type REG_EXPAND_SZ.
8383         It was only possible to create REG_SZ values before.
8384
8385 2007-12-13  Robert Dewar  <dewar@adacore.com>
8386
8387         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8388         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8389         namet-sp.adb, namet-sp.ads: New files.
8390
8391         * g-speche.adb: Use generic routine in g-spchge
8392
8393         * s-wchcnv.ads, s-wchcnv.adb:
8394         Minor code cleanup (make formal type consistent with spec)
8395
8396         * namet.adb: Update comments.
8397
8398         * par-endh.adb (Evaluate_End_Entry): Use new
8399         Namet.Sp.Is_Bad_Spelling_Of function
8400
8401         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8402
8403         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8404         ancestor is an access type initialized with a box, set its type
8405         explicitly, for use in subsequent expansion.
8406         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8407         function
8408
8409 2007-12-13  Robert Dewar  <dewar@adacore.com>
8410
8411         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8412         access Vstring)
8413
8414 2007-12-13  Robert Dewar  <dewar@adacore.com>
8415
8416         * inline.adb (Back_End_Cannot_Inline): Use new flag
8417         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8418
8419         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8420         Has_Pragma_Inline_Always instead.
8421         of obsolete function Is_Always_Inlined
8422         (Build_Body_To_Inline): Same change
8423         (Cannot_Inline): Same change
8424         Do not give warning on exception raise in No_Return function
8425
8426         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8427         component has two inconsistent component clauses in the same record
8428         representation clause, favor the message that complains about
8429         duplication rather than inconsistency.
8430         Update comments.
8431         (Record_Representation_Clause): Do not warn on missing component
8432         clauses for inherited components of a type extension.
8433         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8434         an overloadable item if it is a pragma that can apply to multiple
8435         overloadable entities (e.g. Inline) because a pragma cannot be on
8436         more than one chain at a time.
8437         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8438         conversion where one of the operands is Ada.Calendar.Time.
8439         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8440         For now, ignore Component_Size clause on VM targets, as done for
8441         pragma Pack.
8442
8443 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8444             Vincent Celier  <celier@adacore.com>
8445
8446         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8447         string
8448         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8449         prj.ads
8450         (Hash): Move instantiation of System.HTable.Hash from spec to body
8451         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8452         systems, since we do not need to recompute the Name_Id for the canonical
8453         file name.
8454         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8455         as a parameter. This parameter is in fact always "ada" in all calls, and
8456         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8457         while loading a project with 40000 files
8458
8459         * prj-attr.adb: Fix name of attribute Dependency_Driver
8460         Change the kind of indexing for attribute Root
8461
8462         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8463         variables already declared, in case constructions.
8464
8465         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8466         Current_Object_Path_File to No_Path.
8467
8468         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8469         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8470
8471         * prj-makr.adb: new parameter Current_Dir
8472
8473         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8474         Ada sources when language is not Ada.
8475         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8476         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8477         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8478         (Locate_Directory): Always resolve links when computing Canonical_Path
8479         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8480         in Source_Files before checking for the presence of a directory
8481         separator.
8482         Optimize calls to Name_Find when on case sensitive systems.
8483         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8484         as a parameter.
8485         (Prj.Nmsc.Check): new parameter Current_Dir
8486         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8487         cannot be empty and the spec suffix cannot be the same as the body or
8488         separate suffix.
8489         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8490         subunit), always consider the longest suffix.
8491         (Check_Configuration): Do not issue an error if there is no compiler
8492         for a language. Just issue a warning and ignore the sources for the
8493         language.
8494         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8495         not empty.
8496         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8497         (Unit_Exceptions): New hash table
8498         (Check_Naming_Schemes): Check if a file that could be a unit because of
8499         the naming scheme is not in fact a source because there is an exception
8500         for the unit.
8501         (Look_For_Sources): Put the unit exceptions in hash table
8502         Unit_Exceptions
8503         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8504         Other_Part to avoid exception when code is compiled with validity
8505         checking.
8506         (Get_Sources_From_File): Check that there is no directory information
8507         in the file names.
8508         (Look_For_Sources): Check that there is no directory information in the
8509         list of file names in Source_Files.
8510         (Look_For_Sources): In multi-language mode, do not allow exception file
8511         names that are excluded.
8512         (Excluded_Sources_Htable): New hash table
8513         (Search_Directories.Check_File): New procedure to simplify
8514         Search_Directories.
8515         (Search_Directories): Do not consider excluded sources
8516         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8517         Search_Directories.
8518         (Get_Exceptions): Set component Lang_Kind of Source_Data
8519         (Get_Unit_Exceptions): Ditto
8520         (Search_Directories): Ditto
8521
8522         * prj-pars.adb: new parameter Current_Dir
8523
8524         * prj-part.ads, prj-part.adb:
8525         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8526         (Opt.Follow_Links_For_Dirs): New flag
8527         (Project_Path_Name_Of): Cache information returned by this routine as
8528         Locate_Regular_File is a costly routine. The code to output a log
8529         information and the effective call to Locate_Regular_File is now
8530         factorized into a routine (code clean-up).
8531         (Parse, Parse_Single_Project): new parameter Current_Dir
8532         When main project file cannot be found, indicate in the error
8533         message the project path that was used to do the search.
8534
8535         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8536         (Prj.Proc.Process*): new parameter Current_Dir
8537
8538         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8539
8540 2007-12-13  Bob Duff  <duff@adacore.com>
8541
8542         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8543         procedure to be called from the back end to check the
8544         No_Implicit_Dynamic_Code restriction.
8545
8546 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8547
8548         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8549         Fixes another case where RTE_Available_Call was ignored instead of being
8550         taken into account.
8551         (Load_Fail): Ditto.
8552
8553         * rtsfind.ads: Add new entries.
8554
8555 2007-12-13  Robert Dewar  <dewar@adacore.com>
8556
8557         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8558         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8559
8560         * scn.adb: Implement BOM recognition
8561
8562 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8563             Ed Schonberg  <schonberg@adacore.com>
8564
8565         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8566         subprogram body that acts as its own spec may not have a non-private
8567         WITH clause on a private sibling.
8568         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8569         child unit is a renaming, create an implicit with_clause on that
8570         parent, and not on the unit it renames, to prevent visibility errors
8571         in the current unit.
8572
8573 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8574
8575         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8576         renaming declaration, use the Slocs of the formal parameters from the
8577         declaration of the formal subprogram when creating the formal parameter
8578         entities in the renaming declaration.
8579         (Analyze_Formal_Type_Declaration): Change the placement of the error
8580         message concerning illegal known discriminants. It is now posted on the
8581         type rather than on the first discriminant. This change ensures early
8582         error report.
8583         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8584         the package body that contains the instance, do not generate an
8585         out-of-place freeze node for the enclosing package.
8586         (Collect_Previous_Instantiations): Ignore internal instantiations
8587         generated for formal packages.
8588         (Validate_Derived_Type_Instance): Add a check that when a formal
8589         derived type is Known_To_Have_Preelab_Init then the actual type must
8590         have preelaborable initialization, and issue an error when this
8591         condition is violated.
8592
8593 2007-12-13  Robert Dewar  <dewar@adacore.com>
8594
8595         * s-imenne.adb, s-imenne.ads: New files.
8596
8597         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8598         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8599         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8600         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8601         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8602         stack usage.
8603
8604 2007-12-13  Javier Miranda  <miranda@adacore.com>
8605             Ed Schonberg  <schonberg@adacore.com>
8606
8607         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8608         generation of spurious error if parent is an interface type; caused
8609         because predefined primitive bodies will be generated later by
8610         Freeze_Record_Type.
8611         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8612         flag.
8613         (Derive_Subprograms): Handle derivations of predefined primitives
8614         after all the user-defined primitives to ensure that they are
8615         found in proper order in instantiations.
8616         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8617         of Related_Interface to Related_Type.
8618         (Record_Type_Declaration): Minor reordering of calls to decorate the
8619         Tag component because the entity must have set its Ekind attribute
8620         before setting its Is_Tag attribute.
8621         (Analyze_Subtype_Declaration): In the case of subtypes with
8622         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8623
8624 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8625             Ed Schonberg  <schonberg@adacore.com>
8626
8627         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8628         statement to the list of contexts where a selected component with a
8629         concurrent tagged type prefix should yield a primitive operation.
8630         (Find_Primitive_Operation): Handle case of class-wide types.
8631         (Analyze_Overloaded_Selected_Component): If type of prefix is
8632         class-wide, use visible components of base type.
8633         (Resolve_Selected_Component): Ditto.
8634         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8635         formal of a generic subprogram. find candidate interpretations by
8636         scanning the list of generic formal declarations.:
8637         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8638         type from a limited_with_clause, and the full view is available, use it
8639         for subsequent semantic checks.
8640         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8641         (Find_Primitive_Operation): New function.
8642         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8643         only once if several interpretations of the prefix yield an access type.
8644         (Try_Object_Operation): Code and comment cleanup.
8645         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8646         code reformatting. When the type of the prefix is tagged concurrent, a
8647         correct interpretation might be available in the primitive and
8648         class-wide operations of the type.
8649
8650 2007-12-13  Robert Dewar  <dewar@adacore.com>
8651             Ed Schonberg  <schonberg@adacore.com>
8652
8653         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8654         renaming entry as subprogram using rename-as-body if subprogram spec
8655         frozen.
8656         (Use_One_Type): The clause is legal on an access type whose designated
8657         type has a limited view.
8658         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8659         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8660         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8661         operation denoted by a selected component.
8662         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8663         it can be an expression, possibly overloaded, that returns a task or
8664         an access to one.
8665
8666 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8667             Gary Dismukes  <dismukes@adacore.com>
8668
8669         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8670         requeue statement is dispatching. Do not emit an error when the name is
8671         not an entry and the context is a dispatching select. Add code to
8672         perform subtype conformance between the formals of the current entry
8673         and those of the target interface primitive.
8674         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8675         Timed_Entry_Call): Analyze the triggering statement as the first step of
8676         the processing. If this is a dispatching select, postpone the analysis
8677         of all select statements until the Expander transforms the select. This
8678         approach avoids generating duplicate identifiers after the Expander has
8679         replicated some of the select statements. In case the Expander is
8680         disabled, perform regular analysis.
8681         (Check_Triggering_Statement): New routine.
8682         (Analyze_Requeue): Exclude any interpretations that are not entries when
8683         checking overloaded names in a requeue. Also test type conformance for
8684         matching interpretations rather than requiring subtype conformance at
8685         that point to conform with the RM's resolution rule for requeues.
8686
8687 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8688
8689         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8690         inherited operation is a defaulted tag-indeterminate call, and there is
8691         a statically tagged actual, use the static tag as a controlling actual
8692         for the defaulted actual.
8693
8694 2007-12-13  Geert Bosch  <bosch@adacore.com>
8695
8696         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8697         context, so do not call Check_Non_Static_Context.
8698
8699 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8700
8701         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8702         whether formal E is an entity which may have parameters.
8703
8704 2007-12-13  Bob Duff  <duff@adacore.com>
8705             Javier Miranda  <miranda@adacore.com>
8706             Robert Dewar  <dewar@adacore.com>
8707
8708         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8709         (Set_Convention): New procedure to set the Convention flag, and in
8710         addition make sure the Favor_Top_Level flag is kept in sync (all
8711         foreign-language conventions require Favor_Top_Level = True).
8712         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8713         to Related_Type.
8714         (Collect_Interfaces_Info): Minor update to handle the two secondary
8715         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8716         (Generate_Parent_Ref): Add parameter to specify entity to check
8717         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8718         initialize a component of a type with preelaborable initialization.
8719         This includes the case of a discriminal used in such a context.
8720         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8721         latest Ada 2005 rules about renaming and 'Access of
8722         discriminant-dependent components.
8723         (Check_Nested_Access): Add handling when there are no enclosing
8724         subprograms (e.g. case of a package body).
8725         (Find_Parameter_Type): Factor routine from several other compiler files.
8726         Remove routine from Find_Overridden_Synchronized_Primitive.
8727
8728 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8729
8730         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8731         an invalid access to an uninitialized slot in the
8732         Source_File_Index_Table.
8733
8734 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8735
8736         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8737
8738 2007-12-13  Bob Duff  <duff@adacore.com>
8739
8740         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8741         access-to-subprogram types in this package.
8742
8743 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8744
8745         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8746         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8747         Stack_Overlay_Address and document that we are using an internal
8748         abstraction.
8749         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8750         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8751         consistently throughout the various implementation pieces.
8752
8753         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8754         overlay we are using to fill the stack area with patterns.
8755         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8756         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8757         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8758
8759 2007-12-13  Robert Dewar  <dewar@adacore.com>
8760
8761         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8762
8763 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8764
8765         * s-tassta.adb:
8766         (Create_Task): Take into account tasks created by foreign threads.
8767         Code clean up: use constants instead of hard coded values.
8768
8769 2007-12-13  Robert Dewar  <dewar@adacore.com>
8770
8771         * styleg.adb (Check_Comment): More liberal rules for comment placement
8772
8773 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8774
8775         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8776         of Procedure Value instead of Frame Pointer as the invocation
8777         identifier associated with the instruction pointer in each traceback
8778         entry.
8779
8780         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8781         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8782         Pointer as the invocation identifier passed to tbk$symbolize.
8783
8784         * s-traent-vms.ads, s-traent-vms.adb
8785         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8786         Procedure Value instead of Frame Pointer as the invocation identifier
8787         passed to tbk$symbolize.
8788
8789 2007-12-13  Robert Dewar  <dewar@adacore.com>
8790
8791         * tbuild.ads, tbuild.adb:
8792         Fix location of flag for unrecognized pragma message
8793
8794 2007-12-13  Robert Dewar  <dewar@adacore.com>
8795
8796         * treepr.ads, treepr.adb: (pl): implement use of positive value
8797         shorthands
8798
8799 2007-12-13  Robert Dewar  <dewar@adacore.com>
8800
8801         * xeinfo.adb: Remove warnings
8802         * xnmake.adb: Remove warnings
8803         * xsinfo.adb: Remove warnings
8804         * xtreeprs.adb: Remove warnings
8805         * xsnames.adb: Remove warnings
8806
8807         * a-ngcoar.adb: Fix typo.
8808         * s-interr.adb: Minor reformatting
8809         * env.c: Minor reformatting.
8810         * g-bytswa.adb: Minor reformatting.
8811         * g-rannum.ads: Minor documentation improvements
8812         * s-tasinf-mingw.adb: Minor header fix
8813         * a-clrefi.adb: Minor reformatting
8814         * g-sttsne.ads: Minor documentation improvement
8815         * g-sttsne-locking.ads: Minor documentation improvement
8816         * g-soliop-solaris.ads: Minor documentation improvement
8817         * g-soliop-mingw.ads: Minor documentation improvement
8818         * g-soliop.ads: Minor documentation improvement
8819         * exp_aggr.ads: Minor reformatting
8820         * debug.adb: Add documentation for the gprbuild debug flags
8821         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8822         * exp_pakd.adb: Minor reformatting
8823
8824         * g-altive.ads, g-alleve.adb: Remove assertions.
8825         Add comment about minor differences between targets regarding
8826         floating-point operations.
8827
8828         * g-thread.adb: Remove pragma unreferenced.
8829         * lib.ads: Minor reformatting
8830         * par-ch9.adb: Minor reformatting of error messages
8831         * sem_case.adb: Minor reformatting
8832         * s-fileio.adb: Minor reformattinng
8833         * s-vmexta.ads: Minor typo
8834         * vxaddr2line.adb:
8835         Take into account 'Success' value as per new GNAT warning.
8836
8837 2007-12-13  Vincent Celier  <celier@adacore.com>
8838
8839         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8840         even on Windows
8841
8842 2007-12-13  Robert Dewar  <dewar@adacore.com>
8843             Bob Duff  <duff@adacore.com>
8844
8845         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8846         Document that suffixes may be terminations of each others
8847         Add doc for -gnatw.a and -gnatw.A
8848         Document gnatbind -Wx switch
8849         Document BOM recognition
8850         Document pragma Implemented_By_Entry.
8851         Document new units.
8852
8853         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8854         Add doc for pragma Unreferenced suppressing no entities referenced msg
8855         Add documentation of GNAT.Directory_Operations.Iteration
8856         Add documentation of GNAT.Random_Numbers
8857         Add documentation for pragma Shared.
8858         Correct documentation for Bit_Order
8859         Add documentation for the Pool_Address attribute.
8860         Fix and improve documentation of pragma machine_attribute.
8861         New pragma Fast_Math
8862         Document BOM recognition
8863
8864         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8865         Add /Wide_Character_Encoding for binder
8866         Add qualifier for the new gnatpp option --no-separate-loop-then
8867
8868 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8869
8870         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8871         which generic formal operations are called for each operation.
8872
8873 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8874
8875         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8876         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8877
8878 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8879
8880         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8881         Reference_Dir unless we actually need it.
8882
8883 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8884             Tristan Gingold  <gingold@adacore.com>
8885
8886         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8887
8888         * s-osprim-vms.adb,
8889         a-calend-vms.adb: Remove pragma warning off and add pragma
8890         unreferenced.
8891
8892 2007-12-13  Robert Dewar  <dewar@adacore.com>
8893
8894         * impunit.adb: Add entries for missing units
8895
8896         * Makefile.rtl: Add new run-time units.
8897
8898         * Make-lang.in:  Update dependencies.
8899
8900 2007-12-13  Bob Duff  <duff@adacore.com>
8901
8902         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8903         types, set Can_Use_Internal_Rep appropriately, based on
8904         Always_Compatible_Rep_On_Target.
8905
8906 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8907             Arnaud Charlet  <charlet@adacore.com>
8908
8909         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8910         it to the front end and setting the aamp_target environment variable
8911         to the switch's argument to ensure that gnaampbind and gnaamplink will
8912         take the specified library into account.
8913         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8914         target, since the CIL compiler supports an "object" file (.il files).
8915
8916 2007-12-13  Vincent Celier  <celier@adacore.com>
8917
8918         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8919         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8920
8921 2007-12-13  Geert Bosch  <bosch@adacore.com>
8922
8923         * s-parame-vxworks.adb:
8924         Update comments to reflect usage of this package by Nucleus.
8925
8926 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8927
8928         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8929         spec would break code.
8930
8931         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8932
8933         * system-vxworks-alpha.ads: Removed.
8934
8935 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8936
8937         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8938
8939 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8940
8941         PR ada/34366
8942         * sem_ch3.adb (Designates_T): New function.
8943         (Mentions_T): Factor reusable part of the logic into Designates_T.
8944         Consider non-access parameters and access and non-access result.
8945         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8946         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8947
8948         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8949
8950 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8951
8952         PR ada/34361
8953         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8954         the new implementation of target-specific calls.
8955
8956 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8957
8958         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8959         the designated full view, only follow a second level Full_View link
8960         for Non_Limited_Views of from_limited_with references.
8961
8962 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8963
8964         PR ada/15805
8965         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8966         to be initialized with an access to constant object.
8967
8968         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8969         when an access to constant is used to initialize an access
8970         value.
8971
8972         PR ada/21346
8973         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8974
8975 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8976
8977         PR ada/34173
8978         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8979         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8980         this is from an alignment clause on the GNAT entity.
8981         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8982         to distinguish the case where we set it from the type's alignment.
8983         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8984         whether this alignment was set from an explicit alignment clause.
8985
8986 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8987
8988         * decl.c (make_packable_type): Revert last change.
8989         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8990         * utils.c (finish_record_type): Retrieve the real name of the type.
8991
8992 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8993
8994         * trans.c (lvalue_required_p): Take base node directly instead
8995         of its parent.  Rename second parameter to 'gnu_type'.
8996         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8997         <N_Slice>: Likewise.
8998         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8999         Adjust calls to lvalue_required_p.
9000
9001 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
9002
9003         PR ada/21489
9004         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9005         parameters of an entry call.
9006
9007 2007-12-03  Robert Dewar  <dewar@adacore.com>
9008             Samuel Tardieu  <sam@rfc1149.net>
9009
9010         PR ada/34287
9011         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9012         of variables declared in a library-level package.
9013
9014 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
9015
9016         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9017         of Empty_String'Unchecked_Access.
9018
9019         * Makefile.in: Add support for sh4-linux.
9020
9021         * system-linux-sh4.ads: New file.
9022
9023 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
9024
9025         PR ada/33722
9026         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9027         and its argument must not be free()ed.
9028
9029 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
9030
9031         * decl.c (make_packable_type): Retrieve the real name of the type.
9032         (maybe_pad_type): Simplify similar code.
9033
9034 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
9035
9036         PR ada/15804
9037         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9038         than an identifier is used after "case" in a variant_part.
9039
9040         PR ada/17318
9041         * par-ch4.adb (Is_Parameterless_Attribute): New map.
9042         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9043         attribute name or not depending on the new map.
9044
9045         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9046         returning a string or a type will not be called with improper
9047         arguments.
9048
9049         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9050
9051         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9052
9053         PR ada/32792
9054         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9055         Signal an error when attribute argument is a fixed-point value of
9056         an unknown type.
9057
9058         PR ada/22559
9059         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9060         a derived ordinary fixed point type.
9061
9062         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9063         RM_Size when a Small clause is found.
9064
9065 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
9066
9067         PR 34081/C++
9068         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9069         Pass 'false' for the new allocate_struct_function parameter.
9070         * utils.c (build_function_stub): Likewise.
9071
9072 2007-11-25  Richard Guenther  <rguenther@suse.de>
9073
9074         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9075         (gnat_poplevel): Likewise.
9076
9077 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
9078
9079         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9080         strict alignment, no alignment clause and a known static size, cap
9081         the type alignment to the greatest power of 2 factor of the size.
9082         (gnat_to_gnu_field): If the field has a component clause, is aliased
9083         or of a type with strict alignment, require that its size be equal to
9084         that of the type.
9085         (validate_size): Use the type size as the minimum size for a type with
9086         strict alignment.
9087
9088 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
9089
9090         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9091         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9092         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9093         Use 'Access instead of 'Unchecked_Access in second and third
9094         arguments of pthread_sigmask.
9095
9096 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
9097
9098         * decl.c (ceil_alignment): New function.
9099         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9100         (make_packable_type): Likewise.
9101
9102 2007-11-22  Olivier Hainque  <hainque@adacore.com>
9103
9104         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9105         to fit in 80 columns.
9106
9107 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
9108
9109         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9110         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9111
9112 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
9113
9114         PR ada/34098
9115         * misc.c (gnat_adjust_rli): Delete.
9116         (gnat_init): Do not initialize the translation code here.
9117         Do not call set_lang_adjust_rli.
9118         * trans.c (init_code_table): Make static.
9119         (gnat_init_stmt_group): Delete.
9120         (gigi): Initialize the translation code entirely here.
9121         Emit debug info for the common types here instead of...
9122         * utils.c (gnat_init_decl_processing): ...here.
9123         * gigi.h (init_code_table): Delete.
9124         (gnat_init_stmt_group): Likewise.
9125
9126 2007-11-16  Olivier Hainque  <hainque@adacore.com>
9127
9128         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9129         retrieving an allocator return value from a super-aligned address from
9130         here to ...
9131         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9132         expect a super-aligned address for a fat or thin pointer.
9133
9134 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
9135
9136         * trans.c (call_to_gnu): Always set the source location on the call
9137         expression.  If the function returns-by-target, also set it on the
9138         address expression.
9139
9140 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
9141
9142         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9143         sections of non-supported Interix target.
9144
9145         * s-osinte-interix.ads: Removed.
9146
9147         * i-cstrin.ads (chars_ptr): Make it a C convention type.
9148
9149 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
9150
9151         * a-tasatt.adb: Add a comment at the beginning of the package
9152         explaining why in general 'Unchecked_Access must be used instead
9153         of 'Access.
9154
9155         * sem_prag.adb (Process_Convention): Move the test for the
9156         entity on which the Convention pragma applies down to also
9157         forbid pragma Convention on enumeration literals reached
9158         through renamings.
9159
9160 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
9161
9162         * a-tasatt.adb: Revert previous change for this file as it will
9163         generate an error when this package is instantiated from a
9164         local context.
9165
9166 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
9167
9168         * a-tasatt.adb: Type Wrapper should be declared in comment instead
9169         of already declared type Node_Access.
9170         Use 'Access instead of 'Unchecked_Access when applicable. Local
9171         lifetime is the one of the package.
9172         (Set_Value): W is allocated on the heap.
9173
9174         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9175         applicable.
9176         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9177         access type.
9178         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9179         access type.
9180
9181         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9182         applicable.
9183         (elaboration code): Timer_Queue lifetime is the one of the
9184         package.
9185
9186         * tracebak.c (i386 alternative): Remove useless comparaison
9187         which is always false; LOWEST_ADDRESS is 0 and is never greater
9188         than an unsigned integer.
9189
9190         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9191         embedded check for "Ada_Version >= Ada_05".
9192
9193 2007-11-07  Olivier Hainque  <hainque@adacore.com>
9194
9195         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9196         craft and expand comment.
9197
9198 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
9199
9200         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9201
9202 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
9203
9204         * misc.c (gnat_handle_option): Replace call to abort with
9205         call to gcc_unreachable.
9206         (gnat_init): Likewise.
9207         (gnat_expand_expr): Likewise.
9208         (fp_prec_to_size): Likewise.
9209         (fp_size_to_prec): Likewise.
9210
9211 2007-10-23  Richard Guenther  <rguenther@suse.de>
9212
9213         PR bootstrap/33608
9214         * tracebak.c: #undef abort after including system.h.
9215
9216 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
9217
9218         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9219         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9220         for win32 targets.
9221         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9222
9223 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
9224
9225         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9226         Set the protection status of the guard page based on the value of On.
9227
9228         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9229
9230         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9231         (Exit_Task): Pass False to Hide_Yellow_Zone.
9232
9233 2007-10-15  Robert Dewar  <dewar@adacore.com>
9234
9235         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9236         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9237         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9238         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9239         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9240         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9241         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9242         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9243         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9244         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9245         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9246         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9247         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9248         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9249         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9250         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9251         Minor reformatting.
9252         Add Unreferenced and Warnings (Off) pragmas for cases of
9253         variables modified calls where they are IN OUT or OUT parameters and
9254         the resulting values are not subsequently referenced. In a few cases,
9255         we also remove redundant code found by the new warnings.
9256
9257         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9258         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9259         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9260         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9261         warning controlled by -gnatw.o that warns on cases of out parameter
9262         values being ignored.
9263
9264 2007-10-15  Geert Bosch  <bosch@adacore.com>
9265
9266         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9267
9268         * expect.c: Initial port to arm-mentor-nucleus.
9269         Use kill for __gnat_kill() on VMS.
9270
9271 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9272
9273         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9274         value.
9275         (Xref_Record): Change type for Line, since in the case of a reference to
9276         a predefined entity (as happens for array index types), the line is set
9277         to 0.
9278         Add support for parsing multiple array index types info, or
9279         multiple inherited interfaces info. This information cannot be stored
9280         in Xref_Entity_Record, which only supports a single instance of Tref_*,
9281         and is therefore stored in the list of references instead. It has a
9282         special treatement later on in tools that use this information.
9283
9284 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9285
9286         * debug.adb: Document use of -gnatd.a and -gnatd.I
9287
9288         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9289
9290 2007-10-15  Javier Miranda  <miranda@adacore.com>
9291
9292         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9293         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9294         care of access to class-wide interface types plus removal of bizarre
9295         conversion of tagged object to access type (reported by Gary
9296         Dismukes). After this patch there is no need to perform any
9297         additional management on these nodes in Expand_Interface_Actuals.
9298
9299         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9300         that handles use of 'Access and 'Unchecked_Access applied to
9301         actuals covering interface types. Such code is now
9302         centralized in Expand_N_Attribute_Reference.
9303
9304 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9305
9306         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9307         of tagged types whose ultimate ancestor is a CPP type.
9308         (Freeze_Array_Type): For a packed array type, generate an initialization
9309         procedure if the type is public, to handle properly a client that
9310         specifies Normalize_Scalars.
9311
9312 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9313
9314         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9315         inside a generic body, retrieve the full view of the entry family
9316         discrete subtype if available.
9317
9318 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9319
9320         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9321         attempt to generate stubs for hidden primitive operations.
9322
9323 2007-10-15  Vincent Celier  <celier@adacore.com>
9324
9325         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9326         returning None, used when there is no platform specific body for
9327         MLib.Tgt.Specific.
9328
9329 2007-10-15  Bob Duff  <duff@adacore.com>
9330
9331         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9332         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9333         the generic Heap_Sort_G, in order to avoid trampolines.
9334
9335 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
9336             Jose Ruiz  <ruiz@adacore.com>
9337
9338         * vx_stack_info.c: New file.
9339
9340         * i-forbla-unimplemented.ads: New file.
9341
9342         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9343         for unsupported configurations; use it on VMS targets instead of the
9344         real one.
9345         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9346         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9347         used by VxWorks targets to have access to task-specific data and be
9348         able to extract the stack boundaries for stack checking.
9349         Use system-vms-ia64.ads on ivms.
9350
9351         * Make-lang.in: Update dependencies.
9352
9353         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9354         (vx_stack_info.c).
9355
9356 2007-10-15  Vincent Celier  <celier@adacore.com>
9357
9358         * snames.adb, snames.ads: Add new standard name runtime_library_dir
9359
9360         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9361
9362         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9363
9364         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9365         the source is unknown.
9366
9367         * prj-ext.adb: Spelling error fix
9368
9369         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9370         95 reserved word in its name.
9371         (Process_Project_Level_Array_Attributes): Process new attribute
9372         Runtime_Library_Dir.
9373
9374         * prj-part.adb (Parse_Single_Project): Do not check the name of the
9375         config project against the user project names.
9376
9377         * prj-proc.adb (Expression): In multi-language mode, indexes that do
9378         not include a dot are always case insensitive.
9379         (Process_Declarative_Items): Ditto
9380         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9381         detected.
9382
9383         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9384         True, compare both indexes in lower case.
9385
9386 2007-10-15  Robert Dewar  <dewar@adacore.com>
9387
9388         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9389
9390 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9391
9392         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9393         association for an access component, add an association with null as
9394         the expression. Remove testing for array subtypes and the setting in
9395         that case of Ctyp to the array component type, which prevented proper
9396         inclusion of an association for null-initialized arrays. Collapse
9397         condition that tests for array subtypes into just a test of
9398         Is_Partially_Initialized_Type (which already covers arrays anyway).
9399
9400 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9401
9402         * sem_ch12.adb: Minor code reformatting.
9403         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9404         find the parent package which may have been hidden by local
9405         declarations.
9406
9407 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9408
9409         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9410         flag of derived concurrent types, taking into account the flag setting
9411         on the parent subtype and any new set of discriminants.
9412
9413 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9414
9415         * sem_ch4.adb: Minor code and comment reformatting.
9416         (Analyze_Allocator): When the designated type of an unconstrained
9417         allocator is a record with unknown discriminants or an array with
9418         unknown range bounds, emit a detailed error message depending on the
9419         compilation mode and whether the designated type is limited.
9420
9421 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9422
9423         * system-vms-ia64.ads: New file.
9424
9425         * system-vms_64.ads: Minor comment fix.
9426
9427 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9428
9429         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9430         body generated for a function with a controlling result that is a null
9431         extension, discard the generated body in favor of the current explicit
9432         one.
9433
9434 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9435
9436         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9437         examining its original form, to handle properly operator calls that
9438         have been rewritten.
9439
9440 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9441
9442         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9443         instead of a procedure value in each traceback entry.
9444
9445         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9446         instead of procedure value to TBK$SYMBOLIZE.
9447
9448         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9449         field.
9450         (TB_Entry_For): Account for the PV/FP renaming.
9451
9452         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9453         add comment.
9454         (Null_TB_Entry): Account for change of component name.
9455         (PV_For): Rename as FP_For.
9456
9457 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9458
9459         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9460         This optimize assignment to over-aligned record.
9461
9462 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9463
9464         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9465         interfaces.
9466
9467         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9468         type, for dispatching calls.
9469
9470 2007-10-15  Vincent Celier  <celier@adacore.com>
9471             Robert Dewar  <dewar@adacore.com>
9472
9473         * gnat_ugn.texi: Add documentation for switches --version and --help
9474         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9475         gnatxref, gnatfind, gnatls, and gnatclean.
9476         Document -gnatw.o.
9477         Mention attribute Excluded_Source_Dirs
9478         Replace obsolescent attribute Locally_Removed_Files with attribute
9479         Excluded_Source_Files.
9480         Improve documentation of -u (gnatbind)
9481         Document how to do reliable stack checking for the environmental task
9482         on iVMS.
9483
9484         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9485         Document attribute Excluded_Source_Files and indicate that attribute
9486         Locally_Removed_Files is obsolescent.
9487
9488 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9489
9490         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9491
9492         * gen-soccon.c:
9493         Update documentation to note that OpenVMS 8.3 or later must be used
9494         to generate g-soccon-vms.ads.
9495
9496         * atree.adb: Add ??? comment
9497
9498         * exp_util.adb: Minor reformatting.
9499         Add ??? comment in Kill_Dead_Code.
9500
9501 2007-10-15  Robert Dewar  <dewar@adacore.com>
9502
9503         * errout.ads: Comment clarification
9504
9505         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9506         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9507
9508         * lib.ads: Comment update
9509
9510         * init.c: Minor reformatting.
9511
9512         * sem_attr.adb: Minor formatting
9513
9514         * osint-b.ads: Minor reformatting
9515
9516         * sem_ch9.adb: Implement -gnatd.I switch
9517
9518         * g-comlin.adb: (Start): Fix handling of empty command line.
9519
9520         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9521         even when -rules follows the -cargs section.
9522
9523 2007-10-08  Ollie Wild  <aaw@google.com>
9524
9525         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9526         gnat_return_tree.
9527         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9528         gnat_return_tree.
9529         (gnat_eh_runtime_type): Removed.
9530         (gnat_return_tree): New function.
9531
9532 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9533
9534         PR ada/33454
9535         Revert:
9536         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9537
9538         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9539         when compiling for powerpc64-*-linux.
9540         * system-linux-ppc64.ads: New file.
9541
9542 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9543
9544         Mapped location support
9545         * back_end.adb (Call_Back_End): Pass information about source
9546         files instead of units to gigi.
9547         * gigi.h (struct File_Info_Type): New.
9548         (gigi): Rename and change type of number_units parameter, change
9549         type of file_info_ptr parameter.
9550         * trans.c (number_files): New global variable.
9551         (gigi): Rename and change type of number_units parameter, change
9552         type of file_info_ptr parameter.
9553         If mapped location support is enabled, create the isomorphic mapping
9554         between source files and line maps.
9555         (Sloc_to_locus): If mapped location support is enabled, translate
9556         source location into mapped location.
9557         (annotate_with_node): Rename into set_expr_location_from_node.
9558         Call set_expr_location instead of annotate_with_locus.
9559         (Pragma_to_gnu): Adjust for above change.
9560         (Loop_Statement_to_gnu): Likewise.
9561         (call_to_gnu): Likewise.
9562         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9563         (gnat_to_gnu): Likewise.
9564         (add_stmt_with_node): Likewise.
9565         (add_cleanup): Likewise.
9566         * utils.c (gnat_init_decl_processing): Do not set input_line.
9567
9568 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9569
9570         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9571         (Applicable_Use): Emit a warning when a package tries to use itself.
9572         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9573         is already in use or the package where it is declared is in use or is
9574         declared in the current package.
9575         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9576
9577         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9578         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9579         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9580
9581 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9582
9583         * a-calend-vms.adb, a-calend.adb:
9584         Add a section on leap seconds control along with two entities used to
9585         enable and disable leap seconds support. The array Leap_Second_Times is
9586         now constant and contains hard time values pre-generated. Remove
9587         all elaboration code used to populate the table of leap seconds.
9588
9589         * bindgen.adb:
9590         Add entity Leap_Seconds_Support to the list of global run-time variables
9591         along with a comment on its usage and values.
9592         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9593         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9594         or one (enabled) depending on the presence of binder switch "-y".
9595         (Gen_Adainit_C): Add code to generate the declaration of external int
9596         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9597         (enabled) depending on the presence of binder switch "-y".
9598
9599         * init.c: Add __gl_leap_seconds_support to the list of global values
9600         computed by the binder.
9601
9602 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9603
9604         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9605         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9606          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9607         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9608
9609         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9610
9611         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9612         function which can be called by the debugger to interrupt the tasks of
9613         an Ada application asynchronously, as needed on VxWorks.
9614         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9615
9616         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9617         renamed from Stop_All_Tasks. Update comments.
9618         (Stop_All_tasks): New function declaration.
9619
9620 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9621
9622         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9623         #include <utime.h> and #define GCC_RESOURCE_H before
9624         #include <sys/wait.h>.
9625         Add more protections in __gnat_translate_vms.
9626
9627         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9628         #include <sys/wait.h>.
9629
9630 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9631             Sergey Rybin  <rybin@adacore.com>
9632
9633         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9634
9635         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9636         where it belongs.
9637
9638         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9639
9640         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9641         where it belongs.
9642
9643         * sem_dist.ads: Minor comment fix
9644
9645         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9646
9647 2007-09-26  Javier Miranda  <miranda@adacore.com>
9648             Eric Botcazou  <ebotcazou@adacore.com>
9649
9650         * a-tags.adb:
9651         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9652          indirection added to the HT_Link component of the TSD. This is required
9653          to statically allocate the TSD.
9654
9655         * a-tags.ads:
9656         Minor reordering of the declarations in the private part. Required to
9657         add a level of indirection to the contents of the TSD component HT_Link.
9658         This is required to statically allocate the TSD.
9659
9660         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9661         Is_Statically_Allocated set from constant objects.
9662         Do not make exported constants created by the compiler volatile.
9663         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9664         as read-only.
9665
9666         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9667         before returning them.
9668
9669         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9670         public part of the package.
9671         (Make_DT): Move HT_Link component out of the TSD record. For this
9672         purpose Make_DT now declares a separate object that stores the
9673         HT_Link value, and initializes the TSD component with the address
9674         of this new object. The addition of this level of indirection is
9675         required to statically allocate the TSD because the TSD cannot
9676         have variable components.
9677         (Expand_Interface_Conversion): Improve the expanded code.
9678         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9679
9680         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9681         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9682         if we are building static dispatch tables then we must not generate
9683         extra code to register the primitive because the dispatch table will
9684         be built at the end of the library package; otherwise we notify that
9685         we cannot build the static dispatch table.
9686
9687 2007-09-26  Robert Dewar  <dewar@adacore.com>
9688
9689         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9690         overlays.
9691
9692         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9693         (Analyze_Record_Representation_Clause): Suppress junk warning for
9694         missing component clause.
9695         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9696         tests for controlled type overlay to composites with controlled
9697         components.
9698         (Analyze_Record_Representation_Clause): Add reference for component name
9699
9700 2007-09-26  Javier Miranda  <miranda@adacore.com>
9701             Gary Dismukes  <dismukes@adacore.com>
9702
9703         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9704         for thunks associated with interface types.
9705
9706         * einfo.ads: Improve documentatation of Is_Internal
9707         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9708         associated with interface types.
9709         Extensive comment fixes regarding flags that appear in all entities. The
9710         documentation is now consistent for all such flags (there were a number
9711         of errors in the documentation in this regard).
9712
9713         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9714
9715         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9716         of these procedures are passed a function call that already has
9717         build-in-place actuals (testing new flag
9718         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9719         the case where processing continues.
9720         (Expand_Call): If the call is generated from a thunk body then we
9721         propagate the extra actuals associated with the accessibility
9722         level of the access type actuals.
9723
9724         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9725         of each extra formal of a protected operation to reference the
9726         corresponding extra formal of the subprogram denoted by the
9727         operation's Protected_Body_Subprogram.
9728
9729         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9730         N_Function_Call nodes.
9731
9732 2007-09-26  Robert Dewar  <dewar@adacore.com>
9733
9734         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9735
9736         * debug.adb: Add d.s flag.
9737
9738 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9739
9740         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9741         debug variable so that it won't be initialized when pragma
9742         Initialize_Scalars is in effect.
9743
9744 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9745
9746         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9747         initialization of a full view. This is moved to
9748         Analyze_Package_Specification.
9749
9750         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9751         preelaborable initialization of a full view in entity loop.
9752         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9753         its child units are use-visible only if they are visible child units.
9754
9755         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9756         whether an expression can be used within a type declaration that
9757         requires preelaborable init.
9758         (Check_Components): Replace inline code that does partial checking for
9759         preelaborable default expressions with call to
9760         Is_Preelaborable_Expression.
9761         (Has_Preelaborable_Initialization): In the case of a generic actual
9762         subtype, (that is, Is_Generic_Actual is True), return the result of
9763         applying Has_Preelaborable_Initialization to the generic actual's base
9764         type.
9765
9766 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9767
9768         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9769         call to Jan_1_Day _Of_Week to optimize its performance.
9770         (Is_Leap): Move the routine to the scope of Week_In_Year.
9771         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9772         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9773         avoids calling Time_Of and Split, thus making it more efficent.
9774         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9775
9776         * g-calend.ads (Week_In_Year): Change comment to reflect new
9777         implementation.
9778
9779 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9780
9781         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9782         Command_Line): New types
9783         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9784         support for defining how switches can be grouped on a command line (as
9785         is the case for -gnatw... for GNAT), and how simple switches can be
9786         used as aliases for more complex switches (-gnatwa is same as
9787         -gnatwbcef...)
9788         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9789         (Start, Current_*): New subprograms
9790         Added support for parsing an array of strings in addition to the real
9791         command line.
9792         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9793          be moved from the body to the private part of the spec.
9794         (*): All subprograms now have an extra parameter with default value to
9795         specify which parser should be used. For backward compatibility, it
9796         defaults to parsing the command line of the application. They were also
9797         modified to properly handle cases where each of the argument does not
9798         start at index 1 (which is always true for Ada.Command_Line, but not
9799         when processing any Argument_List).
9800         (Free): New subprogram
9801         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9802         Argument): New subprograms
9803         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9804         special characters like ':', '=',... are now handled in a single place,
9805         which makes the code more extensible eventually.
9806         (Getopt, Full_Switch): When the switch was returned as part of the
9807         special character '*', make sure it is prepended by the switch character
9808         ('-' in general), so that the application knows whether "foo" or "-foo"
9809         was specified on the command line.
9810
9811 2007-09-26  Florian Villoing  <villoing@adacore.com>
9812
9813         * g-dirope.adb (Remove_Dir): In case we are removing directories
9814         recursively, make sure that if an exception is raised during the
9815         processing, the current working directory is reset to its initial
9816         value before propagating the exception.
9817
9818 2007-09-26  Vincent Celier  <celier@adacore.com>
9819
9820         * gnatbind.adb: If there are several ALI files specified and there is
9821         a main program to bind, the first ALI is expected to contain the main
9822         subprogram and the names of the binder generated files will be derived
9823         from the first ALI file name.
9824         (Gnatbind): Fix insertion character in invocation of Error_Msg
9825
9826 2007-09-26  Vincent Celier  <celier@adacore.com>
9827
9828         * gnatcmd.adb (Check_Files): Do not include sources that have been
9829         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9830
9831 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9832
9833         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9834         information about each of its index types, following the type
9835         reference for its component type.
9836
9837 2007-09-26  Vincent Celier  <celier@adacore.com>
9838
9839         * make.adb: (Kill): New procedure (__gnat_kill imported)
9840         (Running_Compile, Outstanding_Compiles): Global variables that
9841         were previously local to procedure Compile_Sources.
9842         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9843         compilation processes.
9844
9845         (Gnatmake): If project files are used, create the mapping of all the
9846         sources, so that the correct paths will be found.
9847
9848         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9849
9850 2007-09-26  Vincent Celier  <celier@adacore.com>
9851
9852         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9853
9854         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9855         Replace components Compiler_Min_Options and Binder_Min_Options with
9856         Compiler_Required_Switches and Binder_Required_Switches in record
9857         Language_Config.
9858         Remove components Default_Language and Config in Project_Tree_Data,
9859         no longer used.
9860
9861         * prj-attr.adb: New attributes Required_Switches (<language>) in
9862         packages Compiler and Binder.
9863
9864         * prj-nmsc.adb: Major rewrite of the processing of configuration
9865         attributes for gprbuild. No impact on GNAT tools.
9866
9867         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9868         process configuration attributes: this is done in Prj.Nmsc.Check.
9869         (Recursive_Process): Make a full copy of packages inherited from project
9870         being extended, instead of a shallow copy.
9871         (Process_Project_Tree_Phase_1): New procedure
9872         (Process_Project_Tree_Phase_1): New procedure
9873         (Process): Implementation now uses the two new procedures
9874
9875         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9876         from the project config, not the tree config that no longer exists.
9877
9878 2007-09-26  Vincent Celier  <celier@adacore.com>
9879
9880         * Make-lang.in: Update dependencies..
9881
9882 2007-09-26  Vincent Celier  <celier@adacore.com>
9883
9884         * osint.adb, osint.ads: Minor reformatting
9885
9886         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9887
9888 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9889
9890         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9891         message to cite use of <> in aggregate component associations rather
9892         than wrongly indicating use of limited aggregates.
9893
9894 2007-09-26  Robert Dewar  <dewar@adacore.com>
9895
9896         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9897         Address_Taken.
9898
9899 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9900
9901         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9902         ancestor of the derived type, the operations are inherited from the
9903         primary dispatch table of the parent.
9904         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9905         when the context is an explicit type conversion.
9906
9907 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9908
9909         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9910         rule for qualified expressions properly, to detect improper conversions
9911         and resolve some cases of overloading.
9912
9913 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9914
9915         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9916         proper kind of reference to the primitive operation, for better source
9917         navigation.
9918         (Valid_Conversion): A tagged conversion is legal if both operands are
9919         tagged.
9920
9921 2007-09-26  Robert Dewar  <dewar@adacore.com>
9922
9923         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9924         packages.
9925
9926 2007-09-26  Vincent Celier  <celier@adacore.com>
9927
9928         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9929
9930 2007-09-26  Robert Dewar  <dewar@adacore.com>
9931
9932         * s-wchstw.adb: provide messages for run time unit exceptions
9933
9934         * a-witeio.adb: Minor reformatting
9935
9936         * exp_ch13.adb: Minor reformatting
9937
9938 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9939
9940         * vms_data.ads: Revise gnatmetric qualifiers.
9941         Add qualified for the new gnatbind option '-y'
9942
9943         * gnat_ugn.texi: Revise the gnatmetric section.
9944         Add entry for new gnatbind option '-y'.
9945
9946         * gnat_rm.texi: Minor spelling correction.
9947         Document restriction on overlaying controlled types
9948
9949 2007-09-26  Vincent Celier  <celier@adacore.com>
9950
9951         * makegpr.adb (Link_Executables): Do not fail when the root project has
9952         no sources, but is an extending project.
9953
9954 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9955
9956         * trans.c: Fix misplaced #define.
9957
9958 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9959
9960         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9961         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9962
9963 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9964
9965         * utils.c (type_for_nonaliased_component_p): Return false for
9966         all AGGREGATE_TYPEs.
9967
9968 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9969
9970         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9971         object covered by 13.3(19) volatile.
9972
9973 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9974
9975         PR ada/26797
9976         PR ada/32407
9977         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9978         in the special VIEW_CONVERT_EXPR case.
9979
9980 2007-09-12  Robert Dewar  <dewar@adacore.com>
9981
9982         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9983
9984         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9985         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9986         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9987         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9988         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9989         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9990         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9991         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9992         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9993         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9994         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9995         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9996         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9997         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9998         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9999         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
10000         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10001         pragma Compiler_Unit and adds it to relevant library units.
10002
10003 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
10004
10005         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10006         a box need not correspond to any component.
10007
10008 2007-09-12  Robert Dewar  <dewar@adacore.com>
10009
10010         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10011         the tasking version of the Ada run time when foreign threads are
10012         present and there are no explicit Ada tasks or tasking constructs.
10013
10014         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10015
10016 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
10017
10018         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10019         the usage of switch -y.
10020
10021         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10022         when switch -y is present.
10023
10024         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10025         leap seconds in Ada.Calendar and its children.
10026
10027 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
10028
10029         * a-extiti.ads (Timer): The discriminant is a "not null access
10030         constant" in the Reference Manual.
10031         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10032
10033 2007-09-12  Robert Dewar  <dewar@adacore.com>
10034
10035         * a-swuwha.adb: Remove junk RM header
10036
10037 2007-09-12  Vincent Celier  <celier@adacore.com>
10038
10039         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10040         indicator
10041
10042         * g-bytswa.ads: Minor reformatting
10043
10044 2007-09-12  Thomas Quinot  <quinot@adacore.com>
10045
10046         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10047         Add new constant Thread_Blocking_IO, always True by default, set False
10048         on a per-runtime basis.
10049         (Need_Netdb_Buffer): New constant.
10050
10051 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
10052
10053         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10054         Added renames for corresponding functions in System.Partition_Interface.
10055
10056 2007-09-12  Doug Rupp  <rupp@adacore.com>
10057
10058         * Makefile.in: Remove VMS specific System.CRTL packages which are no
10059         longer needed.
10060
10061         * s-crtl-vms64.ads: Removed.
10062
10063 2007-09-12  Olivier Hainque  <hainque@adacore.com>
10064
10065         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10066         with discriminant constraints, generalize the code for BIT_FIELDs
10067         to PACKED fields of constant size and propagate DECL_PACKED.
10068
10069 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
10070
10071         * decl.c (array_type_has_nonaliased_component): New predicate.
10072         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10073         set the TYPE_NONALIASED_COMPONENT flag on the type.
10074         <E_Array_Subtype>: Likewise.
10075         * gigi.h (type_for_nonaliased_component_p): Declare.
10076         * utils.c (type_for_nonaliased_component_p): New predicate.
10077         (create_field_decl): Invoke the above predicate to set the
10078         DECL_NONADDRESSABLE_P flag on the field.
10079
10080 2007-09-11  Javier Miranda  <miranda@adacore.com>
10081
10082         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10083         in library level record type entities if we are generating statically
10084         allocated dispatch tables.
10085
10086         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10087         importing/exporting the _tag declaration by new code
10088         importing/exporting the dispatch table wrapper. This change allows us
10089         to statically allocate of the TSD.
10090         (Make_DT.Export_DT): New procedure.
10091         (Build_Static_DT): New function.
10092         (Has_DT): New function.
10093
10094         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10095         True_Constant and Current_Value. Required to statically
10096         allocate the dispatch tables.
10097         (Check_Allocator): Make function iterative instead of recursive.
10098         Also return inner allocator node, when present, so that we do not have
10099         to look for that node again in the caller.
10100
10101 2007-09-11  Jan Hubicka  <jh@suse.cz>
10102
10103         * misc.c (gnat_expand_body): Kill.
10104         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10105
10106 2007-09-10  Robert Dewar  <dewar@adacore.com>
10107
10108         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10109         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10110         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10111         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10112         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10113         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10114         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10115         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10116         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10117         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10118         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10119         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10120         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10121         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10122         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10123         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10124         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10125         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10126         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10127         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10128         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10129         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10130         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10131         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10132         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10133         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10134         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10135         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10136         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10137         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10138         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10139         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10140         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10141         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10142         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10143         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10144         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10145         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10146         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10147         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10148         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10149         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10150         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10151         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10152         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10153         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10154         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10155         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10156         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10157         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10158         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10159         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10160         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10161         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10162         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10163         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10164         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10165         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10166         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10167         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10168         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10169         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10170         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10171         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10172         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10173         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10174         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10175         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10176         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10177         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10178         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10179         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10180         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10181         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10182         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10183         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10184         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10185         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10186         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10187         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10188         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10189         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10190         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10191
10192 2007-09-10  Emmanuel Briot  <briot@adacore.com>
10193
10194         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10195         classes ("[]").
10196
10197 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
10198
10199         * adaint.c (__gnat_translate_vms): new function.
10200
10201 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
10202             Thomas Quinot  <quinot@adacore.com>
10203
10204         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10205         create an abstract subprogram in the case of 'Input. For 'Output we now
10206         create a real spec/body when the type is abstract, since it can
10207         potentially be called.
10208         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10209         body for 'Output when the type is abstract (only the creation of the
10210         body for 'Input is excluded when the type is abstract).
10211         (Stream_Operation_OK): Add an additional condition in the return
10212         statement, so that False will be returned for TTS_Stream_Input if the
10213         associated tagged type is an abstract extension. Add comments for
10214         return statement.
10215         (Expand_N_Object_Declaration): For the case of a shared passive
10216         variable, insert init proc call only after the shared variable
10217         procedures have been processed, because the IP call needs to undergo
10218         shared passive variable reference expansion, which requires these
10219         procedures to be available (and elaborated).
10220
10221 2007-09-10  Vincent Celier  <celier@adacore.com>
10222
10223         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10224         parameter Runtime_Project.
10225
10226 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10227
10228         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10229         given a box association, the type of the component is discriminated,
10230         and the value of the discriminant is the discriminant of the enclosing
10231         type, retrieve its value from the aggregate itself, where it must have
10232         been supplied.
10233
10234         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10235         to remove other spurious ambiguities on arithmetic operations involving
10236         literals and addresses, on systems where Address is a visible integer
10237         type, when the operator is called in functional notation.
10238         (Try_Primitive_Operation): Within an instance, a call in prefixed form
10239         is legal when the types match, even if the operation is currently
10240         hidden.
10241
10242 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10243
10244         * sem_ch12.adb (Build_Local_Package): A formal package with no
10245         associations is legal if all formals have defaults. It is not
10246         equivalent to a formal declared with a box.
10247
10248 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10249
10250         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10251
10252 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10253
10254         * gnat_ugn.texi: Add description of the new '-lratio' option
10255         Update 7.3.1 section about availability of the feature.
10256
10257 2007-09-10  Thomas Quinot  <quinot@adacore.com>
10258
10259         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10260         inserted node.
10261
10262 2007-09-10  Olivier Hainque  <hainque@adacore.com>
10263
10264         * Makefile.in: (mips-irix section): Activate build of libgmem.
10265
10266 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10267
10268         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10269         x87 registers.
10270
10271 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10272
10273         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10274         a debug renaming declaration specially.
10275
10276 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10277
10278         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10279         which a constant renaming is treated as a normal object declaration.
10280         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10281         the N_Indexed_Component case.
10282         <N_Indexed_Component>: Fall through to above case.
10283         <N_Object_Renaming_Declaration>: Return true for all composite types.
10284
10285 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10286
10287         * decl.c (make_packable_type): If the new type has been given BLKmode,
10288         try again to get an integral mode for it.
10289
10290 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
10291
10292         Re-apply accidentally reverted change:
10293
10294         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10295
10296         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10297         get_action_description_for): Replace _Unwind_Word with _uleb128_t
10298         and _Unwind_SWord with _sleb128_t.
10299
10300 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10301
10302         * trans.c (convert_with_check): Update call to real_2expN.
10303
10304 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
10305
10306         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10307         * utils.c (end_subprog_body): Likewise.
10308
10309 2007-09-03  Nick Clifton  <nickc@redhat.com>
10310
10311         * Make-lang.in: Change copyright header to refer to version 3 of
10312         the GNU General Public License and to point readers at the
10313         COPYING3 file and the FSF's license web page.
10314         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10315         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10316         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10317         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10318         Likewise.
10319
10320 2007-08-31  Vincent Celier  <celier@adacore.com>
10321
10322         PR ada/4720
10323
10324         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10325         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10326         (Check_Version_And_Help): New procedure in package Switch to process
10327         switches --version and --help.
10328         Use Check_Version_And_Help in GNAT tools
10329
10330         * make.adb:  Ditto.
10331         (Compile_Sources): Make sure that sources that are "excluded" are not
10332         compiled.
10333         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10334         project file is used.
10335         (Version_Switch): Remove, moved to Switch
10336         (Help_Switch): Remove, moved to Switch
10337         (Display_Version): Remove, moved to Switch
10338
10339         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10340         package Switch to process switches --version and --help.
10341         (Display_Version): New procedure
10342
10343         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10344
10345 2007-08-31  Javier Miranda  <miranda@adacore.com>
10346
10347         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10348         internal tags.
10349
10350 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10351
10352         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10353         (Mark_Non_Null): If the node for which we just generated an access check
10354         is a reference to an *in* parameter and the reference appears in the
10355         declarative part of a subprogram body, mark the node as known non null.
10356
10357 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10358
10359         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10360         structure of E_Exception to reflect the new flag.
10361         (Is_Raised, Set_Is_Raised): New inlined routines.
10362         Update the usage of available flag to reflect the addition of Is_Raised.
10363         (Is_Raised, Set_Is_Raised): Bodies of new routines.
10364         (Write_Entity_Flags): Write the status of flag Is_Raised.
10365         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10366         spurious ambiguities when integer literals appear in the context of an
10367         address type that is a visible integer type.
10368
10369         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10370         exceptions never being raised.
10371         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10372         explicitly raised.
10373
10374 2007-08-31  Javier Miranda  <miranda@adacore.com>
10375
10376         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10377         statement when compiling under restriction No_Exceptions_Proparation.
10378
10379 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10380
10381         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10382         initialization aggregate for the type, generate itype references for
10383         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10384
10385 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
10386
10387         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10388         library-level package renaming, pass the declaration associated with
10389         the renaming's special debug variable to Qualify_Entity_Names to ensure
10390         that its encoded name is properly qualified.
10391
10392         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10393         occurring in the list of entities to qualify, and do not attempt to
10394         traverse an entity list in that case. Variables associated with
10395 `       library-level package renamings can now occur in the table.
10396
10397         * exp_dbug.ads: Revise documentation of the encoding for renaming
10398         declarations.
10399
10400 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10401
10402         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10403         access type points to an unconstrained array.
10404
10405 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10406
10407         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10408         conversion.
10409
10410         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10411         simple redundant qualifications. The check is performed whenever the
10412         expression is a non-overloaded identifier.
10413         (Resolve_Type_Conversion): Enchance the redundant type conversion check
10414         to include loop parameters.
10415         (Valid_Conversion): Avoid generation of spurious error message.
10416
10417 2007-08-31  Bob Duff  <duff@adacore.com>
10418
10419         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10420         concatenations of string literals into a single literal, in order to
10421         avoid very deep recursion in the front end, which was causing stack
10422         overflow.
10423
10424         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10425         string, and the right operand is a string literal (the case of "" &
10426         "..."), optimize by avoiding copying the right operand -- just use the
10427         value of the right operand directly.
10428
10429         * stringt.adb (Store_String_Chars): Optimize by growing the
10430         String_Chars table all at once, rather than appending characters one by
10431         one.
10432         (Write_String_Table_Entry): If the string to be printed is very long,
10433         just print the first few characters, followed by the length. Otherwise,
10434         doing "pn(n)" in the debugger can take an extremely long time.
10435
10436         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10437         Store_String_Char with Store_String_Chars.
10438
10439 2007-08-31  Vincent Celier  <celier@adacore.com>
10440
10441         * prj-attr.adb: Add new attribute Excluded_Source_Files
10442
10443         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10444         Locally_Removed_Files.
10445
10446         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10447
10448 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10449
10450         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10451         clauses of subunits, ignore limited_with_clauses that are illegal and
10452         have not been fully analyzed.
10453
10454 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10455
10456         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10457         flag, for effiency. It is called when analyzing arithmetic operators
10458         and also for actuals in calls that are universal_integers. The flag is
10459         set for the predefined type address, and for any type or subtype
10460         derived from it.
10461
10462         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10463         Universal_Integer, when the formal is a descendent of address and the
10464         call appears in user code.
10465         (Analyze_Selected_Component): if the prefix is a private extension, the
10466         tag component is visible.
10467
10468         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10469         entity flag.
10470
10471 2007-08-31  Robert Dewar  <dewar@adacore.com>
10472
10473         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10474         sensitive file name systems to avoid unexpected mismatch in Vista.
10475
10476 2007-08-31  Vincent Celier  <celier@adacore.com>
10477
10478         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10479
10480 2007-08-31  Vincent Celier  <celier@adacore.com>
10481
10482         * symbols-vms.adb (Initialize): Read symbol files with continuation
10483         lines
10484         (Finalize): If symbol is long, split the line
10485
10486 2007-08-31  Vincent Celier  <celier@adacore.com>
10487
10488         * fmap.ads: Minor comment updates
10489
10490 2007-08-31  GNAT Script  <nobody@adacore.com>
10491
10492         * Make-lang.in: Makefile automatically updated
10493
10494 2007-08-31  Bob Duff  <duff@adacore.com>
10495
10496         * sinfo.ads: Minor comment fix.
10497
10498 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10499
10500         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10501         with implementation.
10502         Documentation cleanup only.
10503
10504 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10505
10506         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10507         gnatpp '--separate-stmt-name' option.
10508         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10509         option.
10510
10511         * gnat_ugn.texi: Add description for the new gnatpp
10512         '--separate-stmt-name' and '--use-on-new-line' options.
10513
10514 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10515
10516         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10517         when compiling for powerpc64-*-linux.
10518         * system-linux-ppc64.ads: New file.
10519
10520 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10521
10522         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10523         NetBSD.
10524
10525 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10526
10527         * misc.c (gnat_type_max_size): Constify.
10528
10529 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10530
10531         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10532         associated with Standard_Debug_Renaming_Type, to be used as the type of
10533         the special variables whose names provide debugger encodings for
10534         renaming declarations.
10535
10536         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10537         (Set_Debug_Renaming_Link): Change to set Node25.
10538         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10539         (Write_Field25_Name): Add case for E_Variable to output
10540         "Debug_Renaming_Link".
10541         (Write_Field23_Name): Correct the output string for "Limited_View".
10542
10543         * exp_dbug.adb: Add with and use of Tbuild.
10544         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10545         and literal with creation of a variable of type
10546         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10547         and the entity of the renaming declaration.
10548         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10549         part of the name of a variable that has a Debug_Renaming_Link.
10550
10551         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10552         special type to be associated with variables that provide debugger
10553         encodings for renaming declarations.
10554
10555 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10556             Ed Schonberg  <schonberg@adacore.com>
10557             Javier Miranda  <miranda@adacore.com>
10558
10559         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10560         ancestor part given by an aggregate to test for an unchecked conversion,
10561         since this can occur in some cases when the ancestor part is a function
10562         call, and we don't want to fall into the recursive call to this
10563         procedure in that case.
10564
10565         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10566         stream attributes on limited types to account for user-specified
10567         attributes as well as whether Input (resp. Output) becomes available
10568         due to Read (resp. Write) being available for the type. Change Boolean
10569         variable to the more accurate name
10570         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10571         double-"not" predicate at beginning of return statement to more
10572         understandable form.
10573
10574         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10575         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10576         in a block statement and use that as the first statement of the
10577         expanded return rather than incorrectly using the handled sequence as
10578         the first statement.
10579
10580         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10581         operation, generate an explicit freeze node for it rather than
10582         generating extra formals, to ensure that gigi has the proper order of
10583         elaboration for anonymous subtypes in the signature of the subprograms.
10584         (Build_In_Place_Formal): Move assertion to beginning of loop.
10585         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10586         applied to a function call (occurs for some cases of 'Input).
10587         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10588         applied to a function call (occurs for some cases of 'Input).
10589
10590         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10591         2005, generate an extended return statement enclosing the result object
10592         and 'Read call.
10593
10594         * freeze.adb (Freeze_Record_Type): Extend the current management of
10595         components that are access type with an allocator as default value: add
10596         missing support to the use of qualified expressions of the
10597         allocator (which also cause freezing of the designated type!)
10598         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10599         dispatching operation, since extra formals may be needed by calls to
10600         build-in-place functions (such as stream 'Input).
10601
10602         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10603         formals for 'Constrained and accessibility level in the case of a
10604         predefined dispatching operation.
10605
10606         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10607         point, no need to find the parent node.
10608
10609 2007-08-16  Javier Miranda  <miranda@adacore.com>
10610
10611         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10612         and entry barriers.
10613
10614 2007-08-16  Javier Miranda  <miranda@adacore.com>
10615
10616         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10617         is not really required and can introduce regression with the debugger.
10618         The original problem is fixed with the patch written for checks.adb.
10619
10620 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10621
10622         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10623         Range_Check on Allocated_Table.
10624
10625 2007-08-16  Vincent Celier  <celier@adacore.com>
10626
10627         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10628         Including_Non_Switch set to False.
10629         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10630         Including_Non_Switch set to False.
10631
10632         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10633         parameter Including_Non_Switch, defaulted to True. When
10634         Including_Non_Switch is False, options that are not switches and
10635         appear as relative path are not converted to absolute paths.
10636
10637 2007-08-16  Nicolas Roche  <roche@adacore.com>
10638
10639         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10640         makefiles
10641
10642         * Make-lang.in: Update dependencies
10643
10644 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10645
10646         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10647         currently inspected is a selected component, retrieve the entity of
10648         its selector.
10649         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10650         from the immediate ancestor of Main_Unit_Entity.
10651         (Install_Limited_Withed_Unit): Do not install the limited view of
10652         package P if P is reachable through an ancestor chain from package C
10653         and C also has a with clause for P in its body.
10654         (Has_Limited_With_Clause): New routine.
10655         (Has_With_Clause): New routine.
10656
10657 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10658
10659         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10660         generic for an enclosing instance is a global reference, even though
10661         its scope is the enclosing instance.
10662
10663 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10664             Javier Miranda  <miranda@adacore.com>
10665
10666         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10667         initialize a limited object.
10668         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10669         13/2 and 14/2.
10670         Make sure Has_Complex_Representation is inherited by derived type.
10671
10672 2007-08-16  Robert Dewar  <dewar@adacore.com>
10673
10674         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10675         exception case
10676
10677 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10678
10679         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10680         implements an operation inherited from a progenitor interface, verify
10681         that they are subtype-conformant.
10682
10683 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10684             Bob Duff  <duff@adacore.com>
10685             Nicolas Setton  <setton@adacore.com>
10686
10687         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10688         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10689         the statement which is being resolved comes from a predefined library
10690         unit, all non-predefined library interpretations are skipped.
10691         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10692         but the "&" is user defined, give an error, because the folding would
10693         be wrong.
10694
10695         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10696         the parser has folded a long sequence of concatenations of string
10697         literals.
10698
10699         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10700         and "JMP_BUF" variables as artificial.
10701         (N_String_Literal): Do not use alloca for very long string literals. Use
10702         xmalloc/free instead. Otherwise the stack might overflow.
10703
10704         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10705         compiler.
10706
10707 2007-08-16  Vincent Celier  <celier@adacore.com>
10708
10709         * vms_conv.adb (Process_Argument): Ensure that project related options
10710         are not put in the -cargs section when using GNAT COMPILE.
10711
10712 2007-08-16  Robert Dewar  <dewar@adacore.com>
10713
10714         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10715
10716 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10717
10718         * a-tags.adb: Minor reformatting.
10719
10720 2007-08-16  Bob Duff  <duff@adacore.com>
10721
10722         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10723
10724 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10725
10726         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10727         s-osinte-interix.ads, system-interix.ads: Removed.
10728
10729 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10730
10731         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10732         calls to Check_Within_Time_Bounds.
10733         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10734         (Difference): Account for possible rounding of the resulting difference
10735
10736 2007-08-14  Robert Dewar  <dewar@adacore.com>
10737
10738         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10739         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10740         s-osinte-solaris.adb, s-osinte-solaris.ads,
10741         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10742
10743         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10744         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10745
10746 2007-08-14  Robert Dewar  <dewar@adacore.com>
10747             Ed Schonberg  <schonberg@adacore.com>
10748
10749         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10750         Suppress unmodified in-out parameter warning in some cases
10751         This patch is a also fairly significant change to the way suppressible
10752         checks are handled.
10753
10754         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10755         needed for access to concurrent record types generated by the expander.
10756         (Generate_Range_Check): When generating a temporary to capture the
10757         value of a conversion that requires a range check, set the type of the
10758         temporary before rewriting the node, so that the type is always
10759         properly placed for back-end use.
10760         (Apply_Float_Conversion_Check): Handle case where the conversion is
10761         truncating.
10762         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10763         for a protected type in order to examine its discriminants.
10764
10765 2007-08-14  Robert Dewar  <dewar@adacore.com>
10766             Gary Dismukes  <dismukes@adacore.com>
10767             Ed Schonberg  <schonberg@adacore.com>
10768             Thomas Quinot  <quinot@adacore.com>
10769
10770         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10771         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10772         tests optimized out.
10773
10774         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10775         (Get_Allocator_Final_List): For the case of an anonymous access type
10776         that has a specified Associated_Final_Chain, do not go up to the
10777         enclosing scope.
10778         (Expand_N_Type_Conversion): Test for the case of renamings of access
10779         parameters when deciding whether to apply a run-time accessibility
10780         check.
10781         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10782         aggregate code before allocator, and ahead of declaration for
10783         temporary, to prevent access before elaboration when the allocator is
10784         an actual for an access parameter.
10785         (Expand_N_Type_Conversion): On an access type conversion involving an
10786         access parameter, do not apply an accessibility check when the
10787         operand's original node was an attribute other than 'Access. We now
10788         create access conversions for the expansion of 'Unchecked_Access and
10789         'Unrestricted_Access in certain cases and clearly accessibility should
10790         not be checked for those.
10791
10792         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10793         includes a type conversion of a packed component that has been expanded,
10794         recover the original expression for the object, and use this expression
10795         in the post-call assignment statement, so that the assignment is made
10796         to the object and not to a back-end temporary.
10797         (Freeze_Subprogram): In case of primitives of tagged types not defined
10798         at the library level force generation of code to register the primitive
10799         in the dispatch table. In addition some code reorganization has been
10800         done to leave the implementation clear.
10801         (Expand_Call): When expanding an inherited implicit conversion,
10802         preserve the type of the inherited function after the intrinsic
10803         operation has been expanded.
10804
10805         * exp_ch2.ads, exp_ch2.adb
10806         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10807         of an entry formal appearing in an assignment statement does not assign
10808         to the formal.
10809         (Expand_Current_Value): Instead of calling a routine to determine
10810         whether the prefix of an attribute reference should be optimized or
10811         not, prevent the optimization of such prefixes all together.
10812
10813         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10814         component whose prefix is known to be of an access type is an implicit
10815         dereference and does not assign to the prefix.
10816
10817 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10818             Robert Dewar  <dewar@adacore.com>
10819
10820         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10821         itype is visited, make an entry into table to link associated node and
10822         new itype.
10823         Add comments and correct harmless error in Build_NCT_Hash_Tables
10824         (Array_Aggr_Subtype): Associate each itype created for an index type to
10825         the corresponding range construct, and not to the aggregate itself. to
10826         maintain a one-to-one correspondence between itype and its associated
10827         node, to prevent errors when complex expression is copied.
10828         Fix mishandling of multiple levels of parens
10829
10830         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10831         treatment of limited views uniform for all visible declarations in a
10832         limited_withed package.
10833         (New_Copy_Tree): If hash table is being used and itype is visited,
10834         make an entry into table to link associated node and new itype.
10835         (Resolve_Record_Aggregate): Do not add an others box association for a
10836         discriminated record component that has only discriminants, when there
10837         is a box association for the component itself.
10838
10839         * par-ch4.adb: Fix mishandling of multiple levels of parens
10840
10841 2007-08-14  Robert Dewar  <dewar@adacore.com>
10842
10843         * comperr.adb: Fix problem with suppressing warning messages from gigi
10844
10845         * erroutc.ads, erroutc.adb, errout.ads,
10846         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10847         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10848         possible trailing spaces.
10849         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10850         Fix problem with suppressing warning messages from back end
10851         Improve handling of deleted warnings
10852
10853         * gnat1drv.adb:
10854         Fix problem with suppressing warning messages from back end
10855         Handle setting of Static_Dispatch_Tables flag.
10856
10857         * prepcomp.adb:
10858         Fix problem with suppressing warning messages from back end
10859
10860         * exp_intr.adb: Improve handling of deleted warnings
10861
10862 2007-08-14  Robert Dewar  <dewar@adacore.com>
10863
10864         * debug.adb: Improve -gnatdI to cover all cases of serialization
10865         Add documentation of dZ, d.t
10866
10867         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10868         serialization.
10869         (Sprint_Node_Actual): Generate new output associated with implicit
10870         importation and implicit exportation of object declarations.
10871
10872 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10873             Robert Dewar  <dewar@adacore.com>
10874             Javier Miranda  <miranda@adacore.com>
10875             Gary Dismukes  <dismukes@adacore.com>
10876
10877         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10878         to make treatment of limited views uniform for all visible declarations
10879         in a limited_withed package.
10880         Improve warnings for in out parameters
10881         (Set_Related_Interaface/Related_Interface): Allow the use of this
10882         attribute with constants.
10883         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10884         Warn on duplicate pragma Preelaborable_Initialialization
10885
10886         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10887         generation of a freezing node to ensure proper management of null
10888         excluding access types in the backend.
10889         (Create_Extra_Formals): Test base type of the formal when checking for
10890         the need to add an extra accessibility-level formal. Pass the entity E
10891         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10892         originally being done in a couple of cases), to ensure that the
10893         Extra_Formals list gets set on the entity E when the first entity is
10894         added.
10895         (Conforming_Types): Add missing calls to Base_Type to the code that
10896         handles anonymous access types. This is required to handle the
10897         general case because Process_Formals builds internal subtype entities
10898         to handle null-excluding access types.
10899         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10900         functions that need it, even when not marked Requires_Overriding.
10901         Improve warnings for in out parameters
10902         (Analyze_Function_Return): Warn for disallowed null return
10903         Warn on return from procedure with unset out parameter
10904         Ensure consistent use of # in error messages
10905         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10906         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10907         the implicit conversion of the expression done for anonymous access
10908         types. This is required to generate the code of the null excluding
10909         check (if required).
10910
10911         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10912         A formal parameter is never publicly referenceable outside of its body.
10913         (Check_References): For an unreferenced formal parameter in an accept
10914         statement, use the same warning circuitry as for subprogram formal
10915         parameters.
10916         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10917         Output_Unreferenced_Messages, containing the part of that routine that
10918         is now reused for entry formals as described above.
10919         (Goto_Spec_Entity): New function
10920         (Check_References): Do not give IN OUT warning for dispatching operation
10921         Improve warnings for in out parameters
10922         (Test_Ref): Check that the entity is not undefinite before calling
10923         Scope_Within, in order to avoid infinite loops.
10924         Warn on return from procedure with unset out parameter
10925         Improved warnings for unused variables
10926
10927 2007-08-14  Robert Dewar  <dewar@adacore.com>
10928             Javier Miranda  <miranda@adacore.com>
10929             Gary Dismukes  <dismukes@adacore.com>
10930
10931         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10932         (Expand_N_Attribute_Reference): Further unify the handling of the
10933         three forms of access attributes, using common code now for all three
10934         cases. Add a test for the case of applying an access attribute to
10935         an explicit dereference when the context is an access-to-interface
10936         type. In that case we need to apply the conversion to the prefix
10937         of the explicit dereference rather than the prefix of the attribute.
10938         (Attribute_Version, UET_Address): Set entity as internal to ensure
10939         proper dg output of implicit importation.
10940         (Expand_Access_To_Type): Removed.
10941         (Expand_N_Attribute_Reference): Merge the code from the three cases
10942         of access attributes, since the processing is largely identical for
10943         these cases. The substantive fix here is to process the case of a
10944         type name prefix (current instance case) before handling the case
10945         of interface prefixes.
10946
10947 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10948             Ed Schonberg  <schonberg@adacore.com>
10949             Javier Miranda  <miranda@adacore.com>
10950             Robert Dewar  <dewar@adacore.com>
10951
10952         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10953         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10954         type that is an anonymous access to controlled object, establish
10955         an associated finalization chain to avoid corrupting the global
10956         finalization list when a dynamically allocated object designated
10957         by such a component is deallocated.
10958         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10959         functions that need it, even when not marked Requires_Overriding.
10960         (Initialize_Tag): Replace call to has_discriminants by call to
10961         Is_Variable_Size_Record in the circuitry that handles the
10962         initialization of secondary tags.
10963         (Is_Variable_Size_Record): New implementation.
10964         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10965         Suppress_Initialization pragma for a derived type.
10966         (Is_Variable_Size_Record): New subprogram.
10967         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10968         initial version of this routine and also fixes problems causing
10969         incomplete initialization of the table of interfaces.
10970         (Build_Init_Procedure): Improve the generation of code to initialize the
10971         the tag components of secondary dispatch tables.
10972         (Init_Secondary_Tags): New implementation that simplifies the previous
10973         version of this routine.
10974         (Make_DT): Add parameter to indicate when type has been frozen by an
10975         object declaration, for diagnostic purposes.
10976         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10977         diagnose attemps to freeze a subprogram when some untagged type of its
10978         profile is a private type whose full view has not been analyzed yet.
10979         (Freeze_Array_Type): Generate init proc for packed array if either
10980         Initialize or Normalize_Scalars is set.
10981         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10982         constructing the new profile, copy the null_exclusion indicator for each
10983         parameter, to ensure full conformance of the new body with the spec.
10984
10985         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10986         Create wrappers for constructor functions that need it, even when not
10987         marked Requires_Overriding.
10988         (Covers): Handle properly designated types of anonymous access types,
10989         whose non-limited views are themselves incomplete types.
10990         (Add_Entry): Use an entity to store the abstract operation which hides
10991         an interpretation.
10992         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10993         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10994         initialization aggregate.
10995         (Function_Interp_May_Be_Hidden): Rename to
10996         Function_Interp_Has_Abstract_Op.
10997         (Has_Compatible_Type): Remove machinery that skips interpretations if
10998         they are labeled as potentially hidden by an abstract operator.
10999         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11000         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11001         (Write_Overloads): Output the abstract operator if present.
11002         (Add_Entry): Before inserting a new entry into the interpretation table
11003         for a node, determine whether the entry will be disabled by an abstract
11004         operator.
11005         (Binary_Op_Interp_May_Be_Hidden): New routine.
11006         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11007         aggregate.
11008         (Function_Interp_May_Be_Hidden): New routine.
11009         (Has_Compatible_Type): Do not consider interpretations hidden by
11010         abstract operators when trying to determine whether two types are
11011         compatible.
11012         (Has_Hidden_Interp): New routine.
11013         (Set_May_Be_Hidden_Interp): New routine.
11014         (Write_Overloads): Write the status of flag May_Be_Hidden.
11015
11016 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11017             Javier Miranda  <miranda@adacore.com>
11018
11019         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11020         types declared in the declarative part of a nested package body or in
11021         the proper body of a stub.
11022         (Set_All_DT_Position): Add missing check to avoid wrong assignation
11023         of the same dispatch table slot to renamed primitives.
11024         (Make_Select_Specific_Data_Table): Handle private types.
11025         (Tagged_Kind): Handle private types.
11026         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11027         output of implicit importation and exportation.
11028         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11029         first formal of the thunk is always associated with the controlling
11030         type. In addition perform the following code cleanup: remove formal
11031         Thunk_Alias which is no longer required, cleanup evaluation of the
11032         the controlling type, and update the documentation.
11033         Replace occurrence of Default_Prim_Op_Count by
11034         Max_Predef_Prims. Addition of compile-time check to verify
11035         that the value of Max_Predef_Prims is correct.
11036         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11037         (Make_DT): Add parameter to indicate when type has been frozen by an
11038         object declaration, for diagnostic purposes.
11039         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11040         construction of statically allocated dispatch tables.
11041         (Make_DT): In case of library-level tagged types export the declaration
11042         of the primary tag. Remove generation of tags (now done by Make_Tags).
11043         Additional modifications to handle non-static generation of dispatch
11044         tables. Take care of building tables for asynchronous interface types
11045         (Make_Tags): New subprogram that generates the entities associated with
11046         the primary and secondary tags of Typ and fills the contents of Access_
11047         Disp_Table. In case of library-level tagged types imports the forward
11048         declaration of the primary tag that will be declared later by Make_DT.
11049         (Expand_Interface_Conversion): In case of access types to interfaces
11050         replace an itype declaration by an explicit type declaration to avoid
11051         problems associated with the scope of such itype in transient blocks.
11052
11053 2007-08-14  Robert Dewar  <dewar@adacore.com>
11054             Ed Schonberg  <schonberg@adacore.com>
11055             Javier Miranda  <miranda@adacore.com>
11056
11057         * exp_util.ads, exp_util.adb:
11058         This patch replaces a number of occurrences of explicit tests for N_Null
11059         with calls to Known_Null. This improves tracking of null values, since
11060         Known_Null also catches null constants, and variables currently known to
11061         be null, so we get better tracking.
11062         (Ensure_Defined): create an itype reference only in the scope of the
11063         itype.
11064         (Side_Effect_Free): A selected component of an access type that
11065         denotes a component with a rep clause must be treated as not
11066         side-effect free, because if it is part of a linked structure its
11067         value may be affected by a renaming.
11068         (Expand_Subtype_From_Expr): For limited objects initialized with build
11069         in place function calls, do nothing; otherwise we prematurely introduce
11070         an N_Reference node in the expression initializing the object, which
11071         breaks the circuitry that detects and adds the additional arguments to
11072         the called function. Bug found working in the new patch for statically
11073         allocated dispatch tables.
11074         (Is_Library_Level_Tagged_Type): New subprogram.
11075         (Remove_Side_Effects): If the expression of an elementary type is an
11076         operator treat as a function call.
11077         (Make_Literal_Range): If the index type of the array is not integer, use
11078         attributes properly to compute the constraint on the resulting aggregate
11079         which is a string.
11080
11081         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11082         class-wide type whose base type is an incomplete private type, leave
11083         class-wide type unfrozen so that freeze nodes can be generated
11084         properly at a later point.
11085         (Freeze_Entity, array case): Handle case of pragma Pack and component
11086         size attributre clause for same array.
11087
11088 2007-08-14  Vincent Celier  <celier@adacore.com>
11089
11090         * prj.ads, prj.adb: Update Project Manager to new attribute names for
11091         gprbuild.
11092         Allow all valid declarations in configuration project files
11093         (Reset): Initialize all tables and hash tables in the project tree data
11094         Major update of the Project Manager and of the project aware tools,
11095         including gprmake, so that the same sources in the GNAT repository
11096         can be used by gprbuild.
11097         (Slash_Id): Change type to be Path_Name_Type
11098         (Slash): Return a Path_Name_Type instead of a File_Name_Type
11099
11100         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11101         gprbuild.
11102         Update Project Manager to new attribute names for ghprbuild
11103         Allow all valid declarations in configuration project files
11104         Major update of the Project Manager and of the project aware tools,
11105         including gprmake, so that the same sources in the GNAT repository
11106         can be used by gprbuild.
11107
11108         * prj-com.ads:
11109         Major update of the Project Manager and of the project aware tools,
11110         including gprmake, so that the same sources in the GNAT repository
11111         can be used by gprbuild.
11112
11113         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11114         insensitive flag for attributes with optional index.
11115         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11116         array attribute, put the index in lower case.
11117         Update Project Manager to new attribute names for ghprbuild
11118         Allow all valid declarations in configuration project files
11119         Major update of the Project Manager and of the project aware tools,
11120         including gprmake, so that the same sources in the GNAT repository
11121         can be used by gprbuild.
11122
11123         * prj-env.ads, prj-env.adb:
11124         Major update of the Project Manager and of the project aware tools,
11125         including gprmake, so that the same sources in the GNAT repository
11126         can be used by gprbuild.
11127         (Get_Reference): Change type of parameter Path to Path_Name_Type
11128
11129         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11130         removing '-' from the path to start with the first character of the
11131         next directory.
11132         Major update of the Project Manager and of the project aware tools,
11133         including gprmake, so that the same sources in the GNAT repository
11134         can be used by gprbuild.
11135         Major update of the Project Manager and of the project aware tools,
11136         including gprmake, so that the same sources in the GNAT repository
11137         can be used by gprbuild.
11138
11139         * prj-nmsc.ads, prj-nmsc.adb:
11140         Update Project Manager to new attribute names for ghprbuild
11141         Allow all valid declarations in configuration project files
11142         (Search_Directories): Detect subunits that are specified with an
11143         attribute Body in package Naming. Do not replace a source/unit in the
11144         same project when the order of the source dirs are known. Detect
11145         duplicate sources/units in the same project when the order of the
11146         source dirs are not known.
11147         (Check_Ada_Name): Allow all identifiers that are not reserved words
11148         in Ada 95.
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         (Look_For_Sources): If the list of sources is empty, set the object
11153         directory of non extending project to nil.
11154         Change type of path name variables to be Path_Name_Type
11155         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11156         otherwise creating missing directories will fail.
11157
11158         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11159         prj-part.ads, prj-part.adb:
11160         Major update of the Project Manager and of the project aware tools,
11161         including gprmake, so that the same sources in the GNAT repository
11162         can be used by gprbuild.
11163
11164         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11165         insensitive flag for attributes with optional index.
11166         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11167         array attribute, put the index in lower case.
11168         (Parse_Variable_Reference): Allow the current project name to be used in
11169         the prefix of an attribute reference.
11170
11171         * prj-util.ads, prj-util.adb
11172         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11173         defaulted to False. When True, always check against indexes in lower
11174         case.
11175
11176         * snames.ads, snames.h, snames.adb:
11177         Update Project Manager to new attribute names for gprbuild
11178         Allow all valid declarations in configuration project files
11179
11180 2007-08-14  Robert Dewar  <dewar@adacore.com>
11181             Ed Schonberg  <schonberg@adacore.com>
11182
11183         * opt.ads: Warning for non-local exception propagation now off by
11184         default
11185         New switch -gnatI to disable representation clauses
11186         Implement new pragma Implicit_Packing
11187
11188         * usage.adb:
11189         Warning for non-local exception propagation now off by default
11190         Add warning for unchecked conversion of pointers wi different
11191         conventions.
11192         New switch -gnatI to disable representation clauses
11193
11194         * usage.adb: new switch -gnatyS
11195
11196         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11197         note that aggregates of anonymous array types are not flagged.
11198         -gnatwc now includes membership tests optimized away
11199         -gnatw.x warnings are now off by default
11200         Added conditional compilation Appendix
11201         Add documentation of -gnatI
11202         Add documentation for new -gnatyS style check
11203         Update documentation about SAL and auto-init on Windows.
11204
11205         * gnat_rm.texi:
11206         Add documentation for pragma Check_Name and 'Enabled attribute
11207         Document that Eliminate on dispatching operation is ignored
11208         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11209         Document pragma Main
11210         Document pragma Implicit_Packing
11211
11212         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11213         different conventions
11214         New switch -gnatI to disable representation clauses
11215
11216         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11217         recognized, report the invalid characters including "-gnat" instead of
11218         just the first character in the switch.
11219         New switch -gnatI to disable representation clauses
11220         Set Warn_On_Object_Renames_Function true for -gnatg
11221
11222         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11223         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11224         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11225         to switch -aP (add directory to project search dir).
11226
11227         * par-prag.adb: Implement new pragma Implicit_Packing
11228
11229         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11230         type as having a non-standard representation, to force expansion on
11231         conversion to related types.
11232         (Analyze_Pragma): Warn on misspelled pragma
11233         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11234         Ensure consistent use of # in error messages
11235         Implement pragma Implicit_Packing
11236
11237 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11238             Eric Botcazou  <ebotcazou@adacore.com>
11239
11240         * targtyps.c (get_target_maximum_default_alignment): New function.
11241         Maximum alignment
11242         that the compiler might choose by default for a type or object.
11243         (get_target_default_allocator_alignment): New function. Alignment known
11244         to be honored by the target default allocator.
11245         (get_target_maximum_allowed_alignment): New function. Maximum alignment
11246         we might accept for any type or object on the target.
11247         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11248
11249         * gigi.h (get_target_maximum_default_alignment): Declare new function.
11250         (get_target_default_allocator_alignment): Likewise.
11251         (get_target_maximum_allowed_alignment): Likewise.
11252
11253         PR ada/19037
11254         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11255         result of a function call, first try to use a stabilized reference for
11256         a constant renaming too.
11257         (validate_alignment): Use target_maximum_allowed_alignment instead of
11258         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11259         (gnat_to_gnu_entity): Use common nodes directly.
11260         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11261         alignment and size for the object.
11262         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11263         and N_Procedure_Call_Statement.
11264         (takes_address): Rename to lvalue_required_p, add third parameter
11265         'aliased' and adjust recursive calls.
11266         <N_Indexed_Component>: Update 'aliased' from the array type.
11267         <N_Selected_Component>: New case.
11268         <N_Object_Renaming_Declaration>: New Likewise.
11269         (Identifier_to_gnu): Adjust for above changes.
11270         (maybe_stabilize_reference) <CONST_DECL>: New case.
11271
11272         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11273         between type variants.
11274         (build_simple_component_ref): Likewise.
11275         (build_call_alloc_dealloc): Use target_default_allocator_alignment
11276         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11277         aligning type circuitry for allocations from the default storage pool.
11278         (build_allocator): Likewise.
11279         (build_simple_component_ref): Manually fold the reference for a
11280         constructor if the record type contains a template.
11281
11282         * utils.c (value_zerop): Delete.
11283         (gnat_init_decl_processing): Emit debug info for common types.
11284         (rest_of_record_type_compilation): If a union contains a field
11285         with a non-constant qualifier, treat it as variable-sized.
11286         (finish_record_type): Give the stub TYPE_DECL a name.
11287         (rest_of_record_type_compilation): Likewise.
11288         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
11289         types are equivalent array types.
11290         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11291         even if the type is not passed by reference.
11292         (static_ctors, static_dtors): Delete.
11293         (end_subprog_body): Do not record constructors and destructors.
11294         (build_global_cdtor): Delete.
11295         (gnat_write_global_declarations): Do not call build_global_cdtor.
11296
11297         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11298         -fRTS=rtp is specified.
11299         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11300         specified.
11301
11302         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11303         of the personality function with SJLJ exceptions.
11304
11305         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11306         the name of the personality function with SJLJ exceptions.
11307
11308 2007-08-14  Robert Dewar  <dewar@adacore.com>
11309             Ed Schonberg  <schonberg@adacore.com>
11310
11311         * par.ads, par.adb: Improve handling of extra right parens.
11312         (Par): Remove flag From_Limited_With_Clause.
11313
11314         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11315         Improve handling of extra right parens.
11316
11317 2007-08-14  Robert Dewar  <dewar@adacore.com>
11318
11319         * par-tchk.adb (TF_Semicolon): Improve error recovery
11320
11321 2007-08-14  Robert Dewar  <dewar@adacore.com>
11322             Ed Schonberg  <schonberg@adacore.com>
11323
11324         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11325         enumeration type, mark all literals as referenced.
11326         (Eval_Attribute, case 'Image): If the argument is an enumeration
11327         literal and names are available, constant-fold but mark nevertheless as
11328         non-static.
11329         Clean up function names.
11330         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11331         comment.
11332         (Requires_Simple_Name_Prefix): Removed.
11333
11334 2007-08-14  Robert Dewar  <dewar@adacore.com>
11335             Ed Schonberg  <schonberg@adacore.com>
11336
11337         * sem_ch11.adb: Improved warnings for unused variables
11338
11339         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11340         is a synchronized interface, the derived type is limited.
11341         (Analyze_Object_Declaration): Mark the potential coextensions in the
11342         definition and expression of an object declaration node.
11343         (Build_Derived_Type): For the completion of a private type declaration
11344         with a derived type declaration, chain the parent type's representation
11345         items to the last representation item of the derived type (not the
11346         first one) if they are not present already.
11347         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11348         object declaration of forward references to tags.
11349         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11350         subprogram types can appear as access discriminants of synchronized
11351         types.
11352         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11353         given in prefixed form as a selected component.
11354         (Process_Discriminants): If not all discriminants have defaults, place
11355         error message on a default that is present.
11356         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11357         extend a synchronized tagged type.
11358         Improved warnings for unused variables
11359         (Is_Visible_Component): Fix a visibility hole on a component inherited
11360         by a private extension when parent is itself declared as a private
11361         extension, and the derivation is in a child unit.
11362         (Find_Hidden_Interface): Move spec from the package body.
11363
11364 2007-08-14  Robert Dewar  <dewar@adacore.com>
11365             Ed Schonberg  <schonberg@adacore.com>
11366
11367         * sem_ch5.adb: Improve warnings on redundant assignments
11368
11369         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11370         parameter
11371         (Is_Synchronized_Tagged_Type): New subprogram that returns true
11372         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11373         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11374         is set to False. Improves handling of Known_[Not_]Null.
11375         (Wrong_Type): Special case address arithmetic attempt
11376         (Collect_Abstract_Interfaces): Add new formal to allow collecting
11377         abstract interfaces just using the partial view of private types.
11378         (Has_Abstract_Interfaces): Add new formal to allow checking types
11379         covering interfaces using the partial view of private types.
11380         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11381         component still needs to be defined in this case, but is never
11382         initialized as VMs are using other dispatching mechanisms.
11383         (Abstract_Interface_List): For a protected type, use base type to get
11384         proper declaration.
11385         Improve warnings on redundant assignments
11386         (Is_Variable): Handle properly an implicit dereference of a prefixed
11387         function call.
11388         (Build_Actual_Subtype): If this is an actual subtype for an
11389         unconstrained formal parameter, use the sloc of the body for the new
11390         declaration, to prevent anomalises in the debugger.
11391
11392 2007-08-14  Robert Dewar  <dewar@adacore.com>
11393
11394         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11395         dispatching operation
11396
11397 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11398             Gary Dismukes  <dismukes@adacore.com>
11399
11400         * exp_aggr.ads,
11401         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11402         expanded aggregate code before allocator, and ahead of declaration for
11403         temporary, to prevent access before elaboration when the allocator is
11404         an actual for an access parameter.
11405         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11406         the TSD and the table of interfaces.
11407         (Convert_To_Assignments): Augment the test for delaying aggregate
11408         expansion for limited return statements to include the case of extended
11409         returns, to prevent creation of an unwanted transient scope.
11410         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11411         (Expand_Array_Aggregate): Handle aggregates associated with
11412         statically allocated dispatch tables.
11413         (Expand_Record_Aggregate): Handle aggregates associated with
11414         statically allocated dispatch tables.
11415         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11416         of anonymous access type.
11417
11418 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11419
11420         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11421         is a variable that renames a slice, use the variable itself in the
11422         expannsion when the renamed expression itself may be modified between
11423         the declaration of the renaming and the array assignment.
11424
11425 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11426
11427         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11428         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11429         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11430         New functions; dummy implementations.
11431
11432         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11433         functions, used to implement the multi-tasks mode routines on VxWorks.
11434
11435         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11436         New functions, thin
11437         binding to the VxWorks routines which have changed between VxWorks 5
11438         and 6.
11439         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11440         which are not callable from a RTP.
11441
11442         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11443         implemented for the multi-tasks mode on VxWorks 5 and 6.
11444
11445         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11446
11447         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11448         functions.
11449
11450 2007-08-14  Vincent Celier  <celier@adacore.com>
11451
11452         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11453         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11454         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11455         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11456         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11457         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11458         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11459         procedure.
11460         (Major_Id_Name): New function.
11461         mlib-tgt.ads/mlib.tgt.adb:
11462         (Library_Major_Minor_Id_Supported): New function, default returns True
11463         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11464         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11465         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11466         Implementation of Library_Major_Minor_Id_Supported returns False
11467         clean.adb:
11468         (Clean_Library_Directory): If major/minor ids are supported, clean all
11469         library files.
11470         Major update of the Project Manager and of the project aware tools,
11471         including gprmake, so that the same sources in the GNAT repository
11472         can be used by gprbuild.
11473
11474 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11475
11476         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11477         (GCC_ZCX_Support): Switch to True.
11478
11479         * s-intman-solaris.adb (Notify_Exception): Call
11480         Adjust_Context_For_Raise before raising, as expected for signal
11481         handlers in general.
11482
11483         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11484         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11485         to other implementation bodies.
11486
11487         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11488         be visible by multiple implementation bodies.
11489
11490         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11491         only for conditions coming from hardware.
11492         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11493         adjustments to signal context prior to exception raise from signal
11494         handler.
11495         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11496         mode.
11497         Solaris section: (__gnat_adjust_context_for_raise): New function.
11498         Implementation of the machine context adjustments to perform prior to
11499         raise from a signal handler. Version for both sparc and x86.
11500         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11501         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11502         prior to raising as expected for any handler, before possible nested
11503         faults to make sure all the contexts in a chain have been adjusted by
11504         the time we propagate.
11505
11506 2007-08-14  Pascal Obry  <obry@adacore.com>
11507
11508         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11509         (SYSTEM_INFO): New record.
11510         (SetThreadIdealProcessor): New imported routine needed for supporting
11511         task_info pragma on Windows.
11512
11513         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11514         info can be applied to the current host.
11515         (Create_Task): Set the ideal processor if information is present.
11516
11517         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11518         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11519
11520 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11521
11522         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11523         stack size and initial stack pointer value for a given task.
11524         (Enter_Task): Get the stack attributes of the task we are entering and
11525         let the stack checking engine know about them.
11526
11527         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11528         Let the stack-checking engine know about the initial sp value and stack
11529         size associated with the current task.
11530         (Set_Stack_Info): If a stack base has been notified for the current
11531         task, honor it. Fallback to the previous less accurate method otherwise.
11532
11533         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11534
11535 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11536
11537         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11538         treatment of limited views uniform for all visible declarations in a
11539         limited_withed package.
11540         Set flag indicating that a subprogram body for a child unit has a
11541         generated spec.
11542         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11543         separate declaration, remove the unit name from visibility after
11544         compilation, so that environment is clean for subsequent compilations.
11545         (Install_Limited_Context_Clauses): Do not install a
11546         limited_private_with_clause unless the current unit is a body or a
11547         private child unit.
11548         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11549         in the same fashion.
11550         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11551         it applies to the declaration of the current package body.
11552         (Remove_Private_With_Clauses): If there is a regular with_clause for
11553         the unit, delete Private_With_Clause from context, to prevent improper
11554         hiding when processing subsequent nested packages and instantiations.
11555
11556 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11557
11558         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11559         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11560         representing absolute path names.
11561         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11562
11563         * cstreams.c (__gnat_full_name for VxWorks): Use
11564         __gnat_is_absolute_path to detect whether we need to add the current
11565         directory to normalize the path.
11566
11567 2007-08-14  Javier Miranda  <miranda@adacore.com>
11568
11569         * a-tags.ads,
11570         a-tags.adb (Displace): Associate a message with the raised CE
11571         exception.
11572         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11573         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11574         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11575         spec.
11576         (Default_Prim_Op_Count): Removed.
11577         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11578         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11579         Remove pragma Inline_Always.
11580
11581         * rtsfind.ads (Default_Prim_Op_Count): Removed
11582         (Max_Predef_Prims): New entity
11583         (RE_Expanded_Name): Removed
11584         (RE_HT_Link): Removed
11585         (RE_Iface_Tag): Remmoved
11586         (RE_Ifaces_Table): Removed
11587         (RE_Interfaces_Array): Removed
11588         (RE_Interface_Data_Element): Removed
11589         (RE_Nb_Ifaces): Removed
11590         (RE_RC_Offset): Removed
11591         (RE_Static_Offset_To_Top): Removed
11592
11593         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11594         formal.
11595         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11596         Prim_Op_Count by Max_Predef_Prims.
11597
11598 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11599             Vincent Celier  <celier@adacore.com>
11600
11601         * binde.adb (Elab_All_Links): Remove unnecessary call to
11602         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11603         won't be an associated Afile).
11604         (Elab_All_Links): Fail if a referenced unit cannot be found
11605
11606         * bindgen.adb:
11607         Fix comments in bindgen regarding consistency checks done in Bcheck:
11608         the checks are made across units within a partition, not across several
11609         partitions.
11610         Fix generation of C binder file for VxWorks.
11611
11612         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11613         Generic_May_Lack_ALI, more descriptive of the current use of the
11614         predicate, and update documentation.
11615
11616         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11617         reorganization and documentation update for the case of predefined
11618         library generics (for which we do not reference an Afile).
11619
11620 2007-08-14  Robert Dewar  <dewar@adacore.com>
11621
11622         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11623         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11624         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11625         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11626         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11627         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11628         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11629         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11630         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11631         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11632         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11633         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11634         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11635         g-altcon.adb: Minor reformatting
11636
11637         ada-tree.h: Delete empty line.
11638
11639         ali.ads: Minor reformatting
11640         Clarification of comments.
11641         Minor spelling correction
11642
11643         * exp_dbug.adb: Add Warnings Off to suppress new warning
11644
11645         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11646         formal
11647
11648         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11649         value
11650
11651         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11652
11653         * a-textio.ads: Reorder the standard input/output/error declarations
11654         for consistency.
11655
11656         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11657
11658         * par-ch2.adb: Recognize RM specially in errout
11659         Change 'R'M to RM in all error messages
11660
11661         * scng.adb: Recognize RM specially in errout
11662
11663         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11664         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11665
11666         * s-direio.adb: Add missing routine header box.
11667
11668         * sem_attr.ads: Add ??? comments
11669
11670         * sem_eval.adb: Recognize RM specially in errout
11671         Change 'R'M to RM in all error messages
11672
11673         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11674
11675         * s-tasinf.ads: Fix minor comment typo.
11676
11677         * a-cihama.adb: Minor comment addition
11678
11679         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11680         formal
11681
11682         * s-tasinf-tru64.ads: Fix minor comment typo.
11683
11684         * itypes.ads: Comment update.
11685
11686         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11687         anymore.
11688
11689         * argv.c: Added protection against null gnat_argv and gnat_envp.
11690
11691         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11692         warning message when Tolerate_Consistency_Errors is True.
11693
11694         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11695         Any_Id, as this subprogram is only applicable to *type* entities (it
11696         sets RM_Size). Instead initialize just Esize and Alignment.
11697
11698 2007-08-14  Bob Duff  <duff@adacore.com>
11699
11700         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11701         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11702         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11703         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11704         a-coorse.ads (Next): Applied pragma Inline.
11705         Make all Containers packages Remote_Types (unless they are already
11706         Pure).
11707         (Previous): applied pragma Inline
11708         (Elements_Type): is now a record instead of an array
11709
11710 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11711
11712         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11713         of Set_Item.
11714         (Set_Item): When the new item is an element of the currently allocated
11715         table passed by reference, save a copy on the stack if we're going
11716         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11717         variable to determine whether to call Set_Last.
11718
11719         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11720         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11721         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11722         some occurrences of the pattern
11723            T.Increment_Last;
11724            T.Table (T.Last) := Value;
11725         with a cleaner call to
11726            T.Append (Value);
11727
11728 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11729             Gary Dismukes  <dismukes@adacore.com>
11730             Thomas Quinot  <quinot@adacore.com>
11731
11732         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11733         derived type with interface progenitors use the analyzed formal as the
11734         parent of the actual, to create renamings for all the inherited
11735         operations in Derive_Subprograms.
11736         (Collect_Previous_Instances): new procedure within of
11737         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11738         unit being loaded, to ensure that the generation of global symbols is
11739         consistent in different compilation modes.
11740         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11741         takes progenitor types into account.
11742         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11743         traversing over the primitives of the formal and actual types to locate
11744         any abstract subprograms of the actual type that correspond to a
11745         nonabstract subprogram of the formal type's ancestor type(s), and issue
11746         an error if such is found.
11747         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11748         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11749         Remove bogus guard around calls to Inherit_Context.
11750         (Reset_Entity): If the entity is the selector of a selected component
11751         that denotes a named number, propagate constant-folding to the generic
11752         template only if the named number is global to the generic unit.
11753         (Set_Instance_Env): Only reset the compilation switches when compiling
11754         a predefined or internal unit.
11755
11756 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11757
11758         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11759         parameter to determine whether operation applies to the prefix.
11760         (Complete_Object_Operation): If actual has an access type and
11761         controlling formal is not an in_parameter, reject the actual if it is
11762         an access_to_constant type.
11763         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11764         type, the candidate operations are found in the scope of declaration of
11765         the type, because the type has no primitive subprograms.
11766         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11767         a private extension, only examine visible components before trying to
11768         analyze as a prefixed call.
11769         Change Entity_List to Type_To_Use, for better readability.
11770         (Has_Fixed_Op): Use base type when checking whether the type of an
11771         operator has a user-defined multiplication/division
11772         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11773         user-defined operators are available for fixed-point types.
11774
11775 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11776             Ed Schonberg  <schonberg@adacore.com>
11777
11778         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11779         formal At_Any_Place indicating, when True, that we want to test for
11780         availability of the stream attribute at any place (as opposed to the
11781         current visibility context only).
11782         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11783         purpose of enforcing E.2.2(8) only if it is not available at any place.
11784         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11785         when checking the legality of an extension aggregate in a preelaborable
11786         package. Treat the literal null as a valid default expression in a
11787         component declaration for a type with preelaborable initialization.
11788         A limited interface is a legal progenitor for the designated type of a
11789         remote access to class-wide type.
11790
11791 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11792             Ed Schonberg  <schonberg@adacore.com>
11793
11794         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11795         reference): Use correct entity as denoted entity for the selector of
11796         the rewritten node.
11797         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11798         setting the Referenced_As_LHS flag for entities that are implicitly
11799         dereferenced.
11800         (Find_Type): If the type is an internally generated incomplete type,
11801         mark the full view as referenced, to prevent spurious warnings.
11802         (Find_Selected_Component, Has_Components): Handle properly non-limited
11803         views that are themselves incomplete types.
11804         Handle interfaces visible through limited-with clauses.
11805         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11806         subprogram generic actual for which we have generated a renaming.
11807         Warn when the renaming introduces a homonym of
11808         the renamed entity, and the renamed entity is directly visible.
11809
11810 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11811             Hristian Kirtchev  <kirtchev@adacore.com>
11812
11813         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11814         appear in the subtree to the current allocator if it is not a static
11815         coextension.
11816         (Resolve_Allocator): Perform cleanup if resolution has determined that
11817         the allocator is not a coextension.
11818         (Resolve): Skip an interpretation hidden by an abstract operator only
11819         when the type of the interpretation matches that of the context.
11820         (Resolve): When looping through all possible interpretations of a node,
11821         do not consider those that are hidden by abstract operators.
11822         (Resolve_Actuals): When verifying that an access to class-wide object
11823         is an actual  for a controlling formal, ignore anonymous access to
11824         subprograms whose return type is an access to class_wide type.
11825         (Resolve_Slice): If the prefix of the slice is a selected component
11826         whose type depends on discriminants, build its actual subtype before
11827         applying range checks on the bounds of the slice.
11828         (Valid_Conversion): In an instance or inlined body, compare root types,
11829         to prevent anomalies between private and public views.
11830         (Resolve): Improve error message for ambiguous fixed multiplication
11831         expressions that involve universal_fixed multiplying operations.
11832
11833 2007-08-14  Javier Miranda  <miranda@adacore.com>
11834             Hristian Kirtchev  <kirtchev@adacore.com>
11835
11836         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11837         location to allow the correct generation of errors in case of
11838         restrictions applied to the expanded code.
11839         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11840         function if the condition does not reference them.
11841         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11842         valid value.
11843
11844 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11845             Pablo Oliveira  <oliveira@adacore.com>
11846
11847         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11848         typecode parameters for a union (in a variant record), remove
11849         extraneous layer of Any wrapping for member label.
11850         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11851         elabration statements, register the package with the name server
11852         at the beginning, not at the end, of the elaboration statements so
11853         that they can create remote access to subprogram values that designate
11854         remote subprograms from the package.
11855
11856 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11857
11858         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11859         values to compute the number of seconds since the Unix Epoc in order to
11860         account for Daylight Savings Time. Perform special processing for dates
11861         that are earlier than the Unix Epoc to obtain a negative number.
11862
11863 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11864
11865         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11866         switches.
11867
11868 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11869
11870         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11871         binder-generated file is not in Ada.
11872         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11873         recorded in the ALI file.
11874         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11875
11876 2007-08-14  Vincent Celier  <celier@adacore.com>
11877
11878         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11879         (Output_Source): Do nothing if parameter is No_Sdep_Id
11880
11881         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11882         shared library it imports has a later time stamp.
11883         (Check): Resolve the symbolic links in the path name of the object
11884         directory.
11885         Check that the ALI file is in the correct object directory
11886         Check if a file name does not correspond to the mapping of units
11887         to file names.
11888         (Display_Version): New procedure
11889         (Initialize): Process switches --version and --help
11890         Use type Path_Name_Type for path name
11891
11892 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11893
11894         * impunit.adb: Re-organize System.Random_Numbers and
11895         GNAT.Random_Numbers and add to builds.
11896
11897         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11898
11899         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11900
11901         * a-assert.ads, a-assert.adb: New files.
11902
11903 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11904
11905         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11906         if AAMP_On_Target is True, then the size of the type encompasses two
11907         addresses (a static link and a subprogram address), except in the case
11908         of library-level access types.
11909
11910 2007-08-14  Vincent Celier  <celier@adacore.com>
11911
11912         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11913         writing the line.
11914         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11915         possible trailing spaces.
11916         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11917
11918 2007-08-14  Javier Miranda  <miranda@adacore.com>
11919
11920         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11921         null-excluding access types.
11922
11923 2007-08-14  Javier Miranda  <miranda@adacore.com>
11924
11925         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11926         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11927         of private types add missing check on matching interfaces in the
11928         partial and full declarations.
11929         (Analyze_Protected_Type): Code cleanup.
11930         (Analyze_Task_Type): Code cleanup.
11931
11932 2007-08-14  Javier Miranda  <miranda@adacore.com>
11933
11934         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11935         generated interface thunk.
11936
11937 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11938
11939         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11940         obsolescent warning on application of 'Class to an incomplete type.
11941
11942         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11943         prevent obsolescent warning on application of 'Class to an incomplete
11944         type.
11945
11946 2007-08-14  Pascal Obry  <obry@adacore.com>
11947
11948         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11949         file stream.
11950
11951 2007-08-14  Cyrille Comar  <comar@adacore.com>
11952
11953         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11954         since it is potentially used in cases implying double finalization of
11955         the same object.
11956
11957 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11958
11959         * s-tasini.adb (Get_Stack_Info): Move this function to
11960         System.Soft_Links.Tasking because it is common to the full and the
11961         restricted run times.
11962         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11963         in SSL.Tasking.Init_Tasking_Soft_Links.
11964
11965         * s-solita.adb (Get_Stack_Info): Function moved from
11966         System.Tasking.Initialization because it is common to the full and the
11967         restricted run times.
11968         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11969
11970 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11971
11972         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11973         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11974         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11975         parameter.
11976
11977         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11978         guard to 12K.
11979
11980 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11981
11982         * s-veboop.adb (SU): New named number initialized to
11983         System.Storage_Unit.
11984         (True_Val): The initialization expression is revised to use SU (=
11985         Storage_Unit) rather than assuming 8 for the component size of an
11986         unpacked Boolean array.
11987
11988 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11989
11990         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11991
11992         * tb-ivms.c: New file.
11993
11994         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11995
11996 2007-08-14  Geert Bosch  <bosch@adacore.com>
11997
11998         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11999         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12000         Add required linker pragmas for automatically linking with the gnalasup
12001         linear algebra support library, and the systems math library.
12002         Rename cdot to cdotu and zdot to zdotu.
12003         Update header comment to describe purpose of package.
12004
12005 2007-08-14  Thomas Quinot  <quinot@adacore.com>
12006
12007         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12008         an explicitly specified Associated_Final_Chain, use that list.
12009         (Expand_N_Package_Body): Build dispatch tables of library level tagged
12010         types.
12011         (Expand_N_Package_Declaration): Build dispatch tables of library level
12012         tagged types. Minor code cleanup.
12013
12014 2007-08-14  Vincent Celier  <celier@adacore.com>
12015
12016         * gnatchop.adb (Terminate_Program): Remove exception and use
12017         Types.Terminate_Program instead.
12018
12019         * osint.ads, osint.adb (Current_Exit_Status): New global variable
12020         (Find_Program_Name): Added protection against empty name.
12021         (OS_Exit_Through_Exception): New procedure
12022
12023         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12024         (OS_Exit_Default): New procedure that contains the previous
12025         implementation of procedure OS_Exit.
12026         (Final_Value): Remove obsolete Interix stuff.
12027
12028 2007-08-14  Thomas Quinot  <quinot@adacore.com>
12029
12030         * g-socket.ads: Reorganize example code so that it also works on
12031         Windows XP.
12032
12033 2007-08-14  Tristan Gingold  <gingold@adacore.com>
12034
12035         * g-trasym.ads: AIX now supports symbolic backtraces.
12036
12037 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
12038
12039         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12040         units being loaded to detect circularities. A circularity may be
12041         present even if the current chain of pending units to load starts from
12042         a limited_with_clause.
12043
12044         * lib-load.ads: Change profile of Load_Unit to use a with_clause
12045         rather than a boolean flag, in order to detect circularities in
12046         with_clauses.
12047
12048         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12049         than propagating the From_Limited_With flag, in order to handle
12050         properly circularities involving with_clauses.
12051
12052 2007-08-14  Nicolas Setton  <setton@adacore.com>
12053
12054         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12055         warnings.
12056
12057 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
12058
12059         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12060         to build for libgnala.
12061         libgnat: Add rules to build libgnala.a
12062         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12063         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12064         Add s-osinte-vxworks-kernel.adb to the target pairs of the
12065         kernel run-time lib for VxWorks 6, which would provide a different
12066         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12067         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12068         running ZCX by default.
12069         Add g-sttsne-locking to LynxOS version.
12070         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12071         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12072
12073         * system-darwin-x86.ads: New file.
12074
12075         * Make-lang.in: Delete files before copying onto them, so if they are
12076         read-only, the copy won't fail.
12077         Update dependencies
12078
12079 2007-08-14  Pascal Obry  <obry@adacore.com>
12080
12081         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12082         naming scheme.
12083
12084 2007-08-14  Vincent Celier  <celier@adacore.com>
12085
12086         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12087         (Gcc): Initialize Gcc_Name at the first call
12088
12089 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
12090
12091         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12092         with_clauses of the enclosing unit when analyzing the package
12093         specification of a nested instance.
12094
12095 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
12096
12097         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12098         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12099         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12100         layout of N_Allocator.
12101
12102 2007-08-14  Thomas Quinot  <quinot@adacore.com>
12103
12104         * rtsfind.adb (Check_RPC): Add PCS version check.
12105
12106         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12107         (Gnat_Free_Software): New function.
12108
12109         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12110         the PCS_Version value from s-parint, used to check that it is consistent
12111         with what exp_dist expects.
12112
12113         * s-parint.ads (PCS_Version): New entity for checking consistency
12114         between exp_dist and PCS.
12115
12116         * gen-soccon.c: (SO_REUSEPORT): New constant.
12117
12118 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
12119
12120         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12121         variable Sub_Second to Duration in order to accomodate a larger range
12122         of arithmetic operations.
12123
12124 2007-08-14  Bob Duff  <duff@adacore.com>
12125
12126         * g-sttsne-locking.ads: Move comments from spec to body.
12127         * g-sttsne-locking.adb: Move comments from spec to body.
12128         * g-sttsne-vxworks.ads: Removed.
12129         * g-sttsne-vxworks.adb: Removed.
12130
12131 2007-08-11  Ian Lance Taylor  <iant@google.com>
12132
12133         * misc.c (gnat_get_alias_set): Change return type to
12134         alias_set_type.
12135
12136 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12137
12138         * decl.c, utils2.c: Fix whitespace in last change.
12139
12140 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12141
12142         * decl.c (compare_field_bitpos): Constify.
12143         * utils2.c (compare_elmt_bitpos): Likewise.
12144
12145 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
12146
12147         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12148         anonymous access type.
12149         (pthread_sigmask): Now take an access sigset_t.
12150
12151 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
12152
12153         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12154
12155 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
12156
12157         PR tree-optimization/25737
12158         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12159
12160 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12161
12162         * trans.c (Attribute_to_gnu): When subtracting an
12163         offset from a pointer, use POINTER_PLUS_EXPR with
12164         NEGATE_EXPR instead of MINUS_EXPR.
12165         (gnat_to_gnu): Likewise.
12166         * utils.c (convert): When converting between
12167         thin pointers, use POINTER_PLUS_EXPR and sizetype
12168         for the offset.
12169         * utils2.c (known_alignment): POINTER_PLUS_EXPR
12170         have the same semantics as PLUS_EXPR for alignment.
12171         (build_binary_op): Add support for the semantics of
12172         POINTER_PLUS_EXPR's operands.
12173         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12174
12175 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
12176
12177         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12178         of get_signed_or_unsigned_type.
12179         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12180
12181 2007-06-11  Bob Duff  <duff@adacore.com>
12182             Thomas Quinot  <quinot@adacore.com>
12183
12184         * g-stsifd-sockets.adb (Create): Work around strange behavior of
12185         'bind' on windows that causes 'connect' to fail intermittently, by
12186         retrying the 'bind'.
12187         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12188
12189 2007-06-10  Duncan Sands  <baldrick@free.fr>
12190
12191         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12192         than to void, for the fields when making a new fat pointer type.
12193         (gnat_substitute_in_type): Now substitute_in_type.
12194         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
12195         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12196         * utils.c (update_pointer_to): Update fat pointers by updating the
12197         dummy node pointers used for the fields.
12198
12199 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12200             Bob Duff  <duff@adacore.com>
12201
12202         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12203         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12204         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
12205         constant Thread_Blocking_IO, always True by default, set False
12206         on a per-runtime basis.
12207         (Need_Netdb_Buffer): New constant.
12208
12209         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12210         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12211         files.
12212
12213         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12214         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12215         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12216         child package Task_Safe_NetDB
12217         (Host_Error_Messages): Add stub body.
12218         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12219
12220         * g-soccon-mingw.ads: Add Windows-specific constants.
12221         (Need_Netdb_Buffer): New constant.
12222         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12223         wrapper and import inet_addr(3) from the standard sockets library
12224         directly instead.
12225         (In_Addr): Add alignment clause.
12226         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12227
12228 2007-06-06  Robert Dewar  <dewar@adacore.com>
12229
12230         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12231         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12232         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12233         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12234         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12235         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12236         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12237         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12238         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12239         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12240         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12241         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12242         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12243         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12244         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12245         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12246         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12247         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12248         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12249         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12250         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12251         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12252         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12253         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12254         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12255         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12256         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12257         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12258         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12259         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12260         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12261         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12262         Unchecked_* by Ada.Unchecked_*
12263
12264 2007-06-06  Robert Dewar  <dewar@adacore.com>
12265
12266         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12267         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12268         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12269         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12270         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12271         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12272
12273         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12274         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12275         s-tasloc.adb, s-tasloc.ads: New files.
12276
12277 2007-06-06  Bob Duff  <duff@adacore.com>
12278
12279         * g-expect-vms.adb:
12280         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12281         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12282         (Send_Signal, Close): Raise Invalid_Process if the process id is
12283         invalid.
12284         (Pattern_Matcher_Access): Is now a general access type to be able to
12285         use aliased string.
12286
12287 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12288             Arnaud Charlet  <charlet@adacore.com>
12289
12290         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12291         (SIGEMT is now used instead of SIGTERM on AIX).
12292
12293         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12294         (Time_Slice_Supported): Set to True.
12295         Use SIGEMT instead of SIGTERM as SIGADAABORT.
12296
12297 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12298
12299         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12300         (Time, Time)): Use To_Relative_Time rather than manual calculation to
12301         express the bounds of Duration as Time. Raise Time_Error when the
12302         result is greater or equal to the higher bound of Duration (on the
12303         margin case).
12304         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12305         Ada_High_And_Leaps.
12306         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12307         Ada_High_And_Leaps.
12308         ("-" (Time, Time)): Reorder code.
12309         (All_Leap_Seconds): Removed.
12310         (Arithmetic_Operations.Add): Remove sign related kludge.
12311         (Arithmetic_Operations.Difference): Control the leaps seconds processing
12312         with flag Leap_Support.
12313         (Arithmetic_Operations.Subtract): Remove sign related kludge.
12314         (Check_Within_Time_Bounds): New procedure.
12315         (Clock): Control the leap seconds processing with flag Leap_Support.
12316         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12317         (Formatting_Operations.Split): Control the leap seconds processing with
12318         flag Leap_Support.
12319         (Formatting_Operations.Time_Of): Control the leaps seconds processing
12320         with flag Leap_Support. Adjust the year, month and day (if applicable)
12321         when the value of day seconds designates a new day.
12322         (Split): Use parameter associations for better readability. Integrate
12323         flag Is_Ada_05.
12324         (Time_Of): Use parameter associations for better readability. Integrate
12325         flag Is_Ada_05.
12326
12327         * a-calfor.adb (Split): Use parameter associations for better
12328         readability. Integrate flag Is_Ada_05.
12329         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12330         better readability. Integrate flag Is_Ada_05.
12331
12332 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12333
12334         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12335         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12336         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12337         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12338         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12339         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12340         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12341         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12342         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12343         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12344         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12345         time when entering this routine to detect a backward clock setting
12346         (manual setting or DST adjustment), to avoid waiting for a longer delay
12347         than needed.
12348         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12349         Remove handling of deferred priority change, and replace by setting the
12350         task priority directly, as required by AI-188.
12351         Update comments.
12352         (Max_Task_Image_Length): New constant.
12353         Replace Warnings (Off) by Unreferenced pragma, cleaner.
12354         (Dynamic_Priority_Support): Removed, no longer needed.
12355         (Poll_Base_Priority_Change): Ditto.
12356         (Set_Ceiling): Add this procedure to change the ceiling priority
12357         associated to a lock. This is a dummy implementation because dynamic
12358         priority ceilings are not supported by the underlying system.
12359
12360         * a-dynpri.adb (Set_Priority): Take into account case where Target is
12361         accepting a RV with its priority boosted.
12362         Remove handling of deferred priority change, and replace by setting the
12363         task priority directly, as required by AI-188.
12364
12365         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12366         Succeeded = True.
12367         Remove handling of deferred priority change, and replace by setting the
12368         task priority directly, as required by AI-188.
12369         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12370         of Self_Id earlier.
12371
12372         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12373         (Poll_Base_Priority_Change): Removed.
12374         Code clean up: use SSL.Current_Target_Exception.
12375
12376         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12377         to run as this is a potentially dispatching point.
12378         (Call_Synchronous): Use Local_Defer_Abort.
12379         (Callable): Relax assertion.
12380         (Selective_Wait): Relax assertion in case abort is not allowed.
12381         Remove handling of deferred priority change, and replace by setting the
12382         task priority directly, as required by AI-188.
12383
12384         * s-tasuti.adb (Make_Passive): Adjust assertions.
12385         Remove handling of deferred priority change, and replace by setting the
12386         task priority directly, as required by AI-188.
12387
12388 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12389
12390         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12391         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12392         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12393         system-vxworks-mips.ads, system-vxworks-alpha.ads,
12394         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12395         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12396         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12397         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12398         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12399         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12400         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12401         This patch changes the largest non-binary modulus from 2**31-1 to
12402         2**32-1.
12403         (Compiler_System_Version): Removed, no longer used.
12404         Clean up system files by removing flags only used on a single target.
12405         Also remove obsolete flags, only used during bootstrap from system.ads
12406         (Address): Add a pragma Preelaborable_Initialization.
12407
12408         * system-aix.ads:  Ditto.
12409         (GCC_ZCX_Support): Set to true.
12410         Update priority range on AIX and map Ada priorities to target
12411         priorities appropriately for different scheduling policies.
12412
12413         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12414
12415 2007-06-06  Vincent Celier  <celier@adacore.com>
12416
12417         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12418         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12419
12420         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12421         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12422         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12423         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12424         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12425         MLib.Tgt, containing the default versions of the exported subprograms.
12426         For each platform, create a specific version of the body of new child
12427         package MLib.Tgt.Specific that contains only the body of subprograms
12428         that are different from the default.
12429         (Archive_Builder_Append_Options): New function.
12430
12431 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12432
12433         * s-osinte-aix.adb: Map Ada priorities to target priorities
12434         appropriately for different scheduling policies.
12435
12436 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12437
12438         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12439         its C counterpart.
12440         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12441         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12442
12443 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12444
12445         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12446         Noop on VMS, added for interface commonality.
12447
12448 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12449             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12450             Olivier Hainque  <hainque@adacore.com>
12451
12452         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12453         renamed expression of a full renaming at toplevel.
12454         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12455         the values the constant is initialized to if it is an N_Allocator.
12456         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12457         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12458         (make_aligning_type): Accept an extra ROOM argument for storage to be
12459         made available before the aligned field, and an extra BASE_ALIGN
12460         argument for callers to pass the alignment guaranteed to be honored for
12461         the whole aligning object. Avoid call to finish_record_type, which only
12462         interferes with the sizes we want to set.
12463         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12464         make_aligning_type for super-aligned objects on stack.
12465         (components_to_record): Pass the adjusted size of the type when creating
12466         fields in the qualified union for the variant part.
12467         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12468         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12469         packed array type.
12470         (maybe_pad_type): Set TYPE_USER_ALIGN.
12471         (make_aligning_type): Likewise.
12472         ALIGN argument is unsigned int.
12473         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12474         (gnat_to_gnu_param): Likewise, for parameters.
12475         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12476         if it is constant and stems from a function call.
12477         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12478         of the record is specified.  Adjust accordingly.
12479         (adjust_packed): New static function.
12480         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12481         (components_to_record): Likewise.
12482         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12483         side-effects if the object is deemed constant.
12484         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12485         type instead of merely finalizing it.  Tidy.
12486         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12487         <E_Access_Type>: Likewise.
12488         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12489         (defer_debug_level): Delete.
12490         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12491         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12492         type.
12493         <E_Record_Type>: Do not explicitly defer finalizing the type.
12494         Adjust for write_record_type_debug_info renaming.
12495         <E_Subprogram_Type>: Likewise.
12496         Finalize deferred types right after deferred incomplete types are
12497         expanded.
12498         (rest_of_type_decl_compilation): New global function.
12499         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12500         (components_to_record): Propagate the packedness to the fields of the
12501         qualified union type if there is a variant part.
12502         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12503         instead of inline code to adjust the XUT field offsets.
12504         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12505         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12506         and write the debug info if the type derives from a discriminated one.
12507         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12508         <E_Array_Subtype>: Likewise.
12509         <E_String_Literal_Subtype>: Likewise.
12510         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12511         an alignment clause.
12512         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12513         before giving warning.
12514         (prepend_one_attribute_to): New function, helper to prepend an attribute
12515         to an attribute list.
12516         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12517         (prepend_attributes): Likewise.
12518         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12519         <E_Array_Type>: Declare the padding type for the element type, if any.
12520         <E_Array_Subtype>: Likewise.
12521         (defer_limited_with): New variable.
12522         (Gigi_Equivalent_Type): New function.
12523         (gnat_to_gnu_entity): Use it at start and use result throughout.
12524         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12525         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12526         indirection, precompute if unconstrained array to simplify logic, and
12527         use defer_limited_with to defer elaboration of some types from limited
12528         with.
12529         (finalize_from_with_types): New function.
12530
12531 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12532             Eric Botcazou  <ebotcazou@adacore.com>
12533             Tristan Gingold  <gingold@adacore.com>
12534             Olivier Hainque  <hainque@adacore.com>
12535
12536         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12537         adding guard that the entity is an E_Constant before testing presence
12538         of Full_view (and remove unnecessary test that entity is not a type).
12539         For a CONST_DECL used by reference, manually retrieve
12540         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12541         (struct language_function): Move from utils.c to here.
12542         (struct parm_attr): New structure.
12543         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12544         (f_parm_attr_cache): New macro.
12545         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12546         expressions for the 'First, 'Last and 'Length attributes of the
12547         unconstrained array IN parameters.
12548         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12549         Allocate the information structure for the function earlier, as well
12550         as the language-specific part.
12551         If the parameter attributes cache has been populated, evaluate the
12552         cached expressions on entry.
12553         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12554         N_Procedure_Call_Statement and N_Indexed_Component.
12555         (Pragma_to_gnu): Translate inspection_point to an asm statement
12556         containaing a comment and a reference to the object (either its address
12557         for BLKmode or its value).
12558         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12559         to go to DECL_INITIAL. Together with the size constraint relaxation
12560         in create_var_decl, enlarges the set of situations in which an
12561         identifier may be used as an initializer without implying elaboration
12562         code.
12563         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12564         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12565         node.
12566         (maybe_stabilize_reference): Remove lvalues_only parameter.
12567         (gnat_stabilize_reference): Adjust for above change.
12568         (gnat_to_gnu): Do not set location information on the result
12569         if it is a reference.
12570         (add_cleanup): Add gnat_node parameter and set the location of the
12571         cleanup to it.
12572         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12573         (Exception_Handler_to_gnu_zcx): Likewise.
12574         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12575         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12576         the former right after the latter.
12577         (start_stmt_group): Make global.
12578         (end_stmt_group): Likewise.
12579         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12580         vars.
12581         (gnu_program_error_label_stack): Likewise.
12582         (gigi): Initialize them.
12583         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12584         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12585         New cases.
12586         (push_exception_label_stack): New function.
12587         (takes_address): New function.
12588
12589         * utils.c (struct language_function): Move to trans.c from here.
12590         (unchecked_convert): Do not wrap up integer constants in
12591         VIEW_CONVERT_EXPRs.
12592         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12593         the latter for aggregate types, unexpected by later passes, and relax an
12594         arbitrary size constraint on the former.
12595         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12596         to compare the sizes.
12597         (convert_vms_descriptor): When converting to a fat pointer type, be
12598         prepared for a S descriptor at runtime in spite of a SB specification.
12599         (shift_unc_components_for_thin_pointers): New function.
12600         (write_record_type_debug_info): For variable-sized fields, cap the
12601         alignment of the pointer to the computed alignment.
12602         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12603         If REP_LEVEL is 2, do not compute the sizes.
12604         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12605         (build_unc_object_type): Likewise.
12606         (declare_debug_type): New function.
12607
12608         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12609
12610         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12611         no statement is expandable anymore.
12612         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12613         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12614         when the user requested it explicitely.
12615         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12616         to 0 for Ada.
12617         (get_alias_set): Return alias set 0 for a type if
12618         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12619
12620         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12621         (DECL_FUNCTION_STUB): New accessor macro.
12622         (SET_DECL_FUNCTION_STUB): New setter macro.
12623
12624         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12625
12626         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12627         declarations.
12628
12629 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12630
12631         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12632         Rename to Abort_Task_Interrupt to be able to keep the same interface
12633         as the rest of the targets.
12634
12635         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12636         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12637
12638         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12639         New files.
12640
12641 2007-06-06  Robert Dewar  <dewar@adacore.com>
12642
12643         * a-chahan.ads: Remove obsolescent pragmas
12644
12645         * a-chlat1.ads: Minor reformatting
12646
12647 2007-06-06  Robert Dewar  <dewar@adacore.com>
12648
12649         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12650         for Errout
12651
12652         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12653         implementation
12654
12655         * errout.ads (Finalize): Changed interface
12656         (Output_Messages): New procedure
12657         (Compilation_Errors): New Interface
12658
12659         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12660         Finalize/Output_Messages interface for Errout
12661         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12662         Errout.
12663
12664 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12665             Olivier Hainque  <hainque@adacore.com>
12666             Robert Dewar  <dewar@adacore.com>
12667
12668         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12669         check.
12670         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12671         propagation starts, to let debuggers know about the event in a reliable
12672         fashion.
12673         (Local_Raise): Moved to System.Exceptions
12674         More convenient to have this as a separate unit
12675
12676         * s-except.adb, s-except.ads: New files.
12677
12678         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12679         Debug_Unhandled_Exception in System.Exceptions where it belongs
12680         together with a couple of other debug helpers.
12681         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12682         the former Unhandled_Exception.
12683
12684         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12685         (Warn_No_Exception_Propagation): New procedure
12686         (Warn_If_No_Propagation): Rewritten for new warning generation
12687         (Expand_Exception_Handlers): New warning generation
12688         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12689         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12690         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12691         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12692         even if restriction is set (makes life easier in Check_Returns)
12693         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12694         checking exception identities.
12695         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12696         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12697         block for handler (used by Check_Returns)
12698         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12699         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12700         remove all exception handlers when optimizing local raise statements.
12701         (Find_Local_Handler): Use Get_Renamed_Entity
12702         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12703         marked analyzed after expanding exception handlers, do not generate
12704         redundant cleanup actions, because they have been constructed already.
12705
12706 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12707
12708         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12709         presence of this categorization pragma is mandated by the language.
12710         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12711         for this type.
12712
12713 2007-06-06  Vincent Celier  <celier@adacore.com>
12714             Robert Dewar  <dewar@adacore.com>
12715
12716         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12717         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12718         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12719         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12720         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12721         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12722         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12723         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12724         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12725         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12726         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12727         ali.ads, ali.adb:
12728         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12729         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12730         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12731         Use variables of types File_Name_Type and Unit_Name_Type in error
12732         messages.
12733         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12734         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12735         here.
12736         Define flags Flag217-Flag230 with associated subprograms
12737         (Flag_Word5): New record type.
12738         (Flag_Word5_Ptr): New access type.
12739         (To_Flag_Word5): New unchecked conversion.
12740         (To_Flag_Word5_Ptr): Likewise.
12741         (Flag216): New function.
12742         (Set_Flag216): New procedure.
12743
12744 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12745
12746         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12747         instead of 'Size.
12748
12749         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12750
12751 2007-06-06  Javier Miranda  <miranda@adacore.com>
12752
12753         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12754         the package.
12755         (Object_Specific_Data_Array): This is now internal to the package.
12756         (Object_Specific_Data): This is now internal to the package.
12757         (Select_Specific_Data_Element): This is now internal to the package.
12758         (Select_Specific_Data_Array): This is now internal to the package.
12759         (Select_Specific_Data): This is now internal to the package.
12760         (Offset_To_Top_Function_Ptr): This is now public.
12761         (To_Offset_To_Top_Function_Ptr): Removed.
12762         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12763          local to subprogram Offset_To_Top.
12764         (Predefined_DT): Removed.
12765         (Typeinfo_Ptr): Removed.
12766         (OSD): This function is now internal to this package.
12767         (SSD): This function is now internal to this package.
12768         (DT): New function that displaces the pointer to the table of primitives
12769          to get access to the enclosing wrapper record.
12770         (IW_Membership): Code cleanup.
12771         (Offset_To_Top): Code cleanup.
12772         (Predefined_DT): Removed.
12773         (Register_Interface_Tag): Removed.
12774         (Set_Interface_Table): Removed.
12775         (Set_Offset_Index): Removed.
12776         (Set_Offset_To_Top): Code cleanup.
12777         (Set_OSD): Removed.
12778         (Set_Signature): Removed.
12779         (Set_SSD): Removed.
12780         (Set_Tagged_Kind): Removed.
12781         (Typeinfo_Ptr): Removed.
12782         (TSD): Removed.
12783         (Displace): Add missing check on null actual.
12784
12785         * exp_disp.ads, exp_disp.adb
12786         (Select_Expansion_Utilities): Removed.
12787         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12788         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12789         the interface requires a new parameter.
12790         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12791         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12792         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12793         Done to remove package Select_Expansion_Utilities.
12794         (Make_DT): New implementation for statically allocated dispatch tables.
12795         (Make_Secondary_DT): Moved to the scope of Make_DT.
12796         (Register_Primitive): Code cleanup plus incoporate the use of the new
12797         function DT_Address_Attribute.
12798         (Expand_Interface_Thunk): The profile of this subprogram has been
12799         changed to return the Thunk_Id and the corresponding code.
12800         (Fill_DT_Entry): Removed. Its functionality is now provided by
12801         subprogram Register_Primitive.
12802         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12803         subprogram Register_Primitive.
12804         (Register_Primitive): New subprogram that incorporates the previous
12805         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12806         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12807         was only required to call Make_DT_Access_Action, which is now removed.
12808         (Ada_Actions): Removed
12809         (Action_Is_Proc): Removed
12810         (Action_Nb_Arg): Removed
12811         Replace all the calls to Make_DT_Access_Action by direct calls to
12812         Make_Procedure_Call_Statement or Make_Function_Call.
12813         (Set_DTC_Entity_Value): New subprogram.
12814         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12815         (Expand_Interface_Thunk): Add missing support for primitives that are
12816         functions with a controlling result (case in which there is no need
12817         to generate the thunk).
12818
12819         * exp_atag.ads, exp_atag.adb
12820         (Build_DT): New subprogram that displaces the pointer to reference the
12821         base of the wrapper record.
12822         (Build_Typeinfo_Offset): Removed.
12823         (RTE_Tag_Node): Removed.
12824         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12825         (Build_Get_RC_Offset): Removed.
12826         (Build_Inherit_Predefined_Prims): Removed.
12827         (Build_Inherit_TSD: Removed.
12828         (Build_New_TSD): Removed.
12829         (Build_Set_External_Tag): Removed.
12830         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12831         (Build_Set_Prim_Op_Address): Add documentation.
12832         (Build_Set_TSD): Removed.
12833
12834         * rtsfind.ads, rtsfind.adb
12835         (Load_Fail): If load fails and we are not in configurable run-time
12836         mode, then raise Unrecoverable_Error.
12837         (Text_IO_Kludge): Generate an error message if a run-time library is
12838         not available in a given run-time (ie. zfp run-time).
12839         (RTE_Record_Component): Add code to check that the component we search
12840         for is not found in two records in the given run-time package.
12841         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12842         (RE_DT_Predef_Prims_Offset): New entity
12843         (RE_Static_Offset_To_Top): New entity
12844         (RE_HT_Link): New entity.
12845         (System_Address_Image): Addition of this run-time package.
12846         (RE_Address_Image): New entity.
12847         (RE_Abstract_Interface): Removed.
12848         (RE_Default_Prim_Op_Count): Removed.
12849         (RE_DT_Entry_Size): Removed.
12850         (RE_DT_Min_Prologue_Size): Removed.
12851         (RE_DT_Prologue_Size): Removed.
12852         (RE_Ifaces_Table_Ptr): Removed.
12853         (RE_Interface_Data_Ptr): Removed.
12854         (RE_Type_Specific_Data): Removed.
12855         (RE_Primary_DT): Removed.
12856         (RE_Register_Interface_Tag): Removed.
12857         (RE_Set_Offset_Index): Removed.
12858         (RE_Set_OSD): Removed.
12859         (RE_Set_SSD): Removed.
12860         (RE_Set_Signature): Removed.
12861         (RE_Set_Tagged_Kind): Removed.
12862         (RE_Address_Array): New entity.
12863         (RE_DT): New entity.
12864         (RE_Iface_Tag): New entity.
12865         (RE_Interfaces_Table): New entity.
12866         (RE_No_Dispatch_Table): New entity.
12867         (RE_NDT_Prims_Ptr): New entity.
12868         (RE_NDT_TSD): New entity.
12869         (RE_Num_Prims): New entity.
12870         (RE_Offset_To_Top_Function_Ptr): New entity.
12871         (RE_OSD_Table): New entity.
12872         (RE_OSD_Num_Prims): New entity.
12873         (RE_Predef_Prims): New entity
12874         (RE_Predef_Prims_Table_Ptr): New entity.
12875         (RE_Primary_DT): New entity.
12876         (RE_Signature): New entity.
12877         (RE_SSD): New entity.
12878         (RE_TSD): New entity.
12879         (RE_Type_Specific_Data): New entity.
12880         (RE_Tag_Kind): New entity.
12881
12882 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12883
12884         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12885         C imported variable.
12886         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12887         on entry.
12888
12889 2007-06-06  Robert Dewar  <dewar@adacore.com>
12890
12891         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12892         character
12893
12894 2007-06-06  Vincent Celier  <celier@adacore.com>
12895
12896         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12897         is room for at least one digit and the minus sign.
12898         (Put.Put_Character): Never put a character outside of the range of
12899         string To.
12900
12901 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12902             Eric Botcazou  <ebotcazou@adacore.com>
12903
12904         * utils2.c (build_allocator): Provide the extra arguments to
12905         make_aligning_type for super-aligned objects allocated from the default
12906         pool. Leave enough room for a pointer before the aligning field, and
12907         store the system's allocator return value there.
12908         (build_call_alloc_dealloc): When releasing a super-aligned object,
12909         retrieve the system's allocator return value from where build_allocator
12910         has stored it, just ahead of the adjusted address we are passed.
12911         (build_call_raise): Handle properly the generation of line numbers when
12912         the node is marked No_Location.
12913         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12914         by using DECL_UID on ties.
12915         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12916         main variant.
12917         (build_call_raise): Handle converting exception into goto; support new
12918         argument KIND.
12919         (build_component_ref): Add new arg to build_call_raise.
12920
12921 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12922
12923         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12924         "." in the case of nnn.xxx when nnn terminates with an underscore.
12925         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12926
12927 2007-06-06  Robert Dewar  <dewar@adacore.com>
12928
12929         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12930
12931 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12932             Vincent Celier  <celier@adacore.com>
12933             Robert Dewar  <dewar@adacore.com>
12934
12935         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12936         needed.
12937         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12938         ((destructor)) for adafinal, even when switch -a is used.
12939         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12940         used.
12941         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12942         Output_Linker_Option_List is set. Suppress this formatting when
12943         Zero_Formatting is set.
12944         Add case for CLI_Target.
12945         (System_Restrictions_Used): New flag, used to avoid generating with of
12946         System_Restrictions and initialization of the data unless there is
12947         some use of System.Restrictions in the partition.
12948         (Check_System_Restrictions_Used): New procedure
12949
12950         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12951         since we only with this unit in the binder file if it is used elsewhere
12952         in the partition.
12953
12954 2007-06-06  Vincent Celier  <celier@adacore.com>
12955
12956         * bindusg.adb: Add line for @<response file>
12957         Add lines for new switches -R and -Z
12958
12959         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12960         hierarchy in the list of files of the closure when -R is used
12961         (Gnatbind): Accept arguments starting with '@' to indicate response
12962         files and take the arguments from the response files.
12963         If List_Closure is set, display the referenced files
12964
12965 2007-06-06  Javier Miranda  <miranda@adacore.com>
12966             Robert Dewar  <dewar@adacore.com>
12967             Ed Schonberg  <schonberg@adacore.com>
12968
12969         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12970         which the address-clause is applied to in-mode actuals (allowed by
12971         13.1(22)).
12972         (Apply_Discriminant_Check): Do not generate a check if the type is
12973         constrained by a current instance.
12974         (Activate_Division_Check): New procedure
12975         (Activate_Overflow_Check): New procedure
12976         (Activate_Range_Check): New procedure
12977         Call these new Activate procedures instead of setting flags directly
12978         (Apply_Array_Size_Check): Removed, no longer needed.
12979         Code clean up: remove obsolete code related to GCC 2.
12980         (Get_E_Length): Protect against bomb in case scope is standard
12981         (Selected_Range_Checks): If the node to be checked is a conversion to
12982         an unconstrained array type, and the expression is a slice, use the
12983         bounds of the slice to construct the required constraint checks.
12984         Improve NOT NULL error messages
12985         (Apply_Constraint_Check): If the context is a null-excluding access
12986         type, diagnose properly the literal null.
12987
12988 2007-06-06  Pascal Obry  <obry@adacore.com>
12989
12990         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12991         and the corresponding .deps file.
12992         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12993         src directory. Minor code-clean-up. Use untouched casing for files
12994         read into the library src dir.
12995         (Clean_Library_Directory): Idem.
12996         (Parse_Cmd_Line): Accept new switch -aP
12997
12998 2007-06-06  Javier Miranda  <miranda@adacore.com>
12999             Ed Schonberg  <schonberg@adacore.com>
13000             Robert Dewar  <dewar@adacore.com>
13001             Eric Botcazou  <ebotcazou@adacore.com>
13002             Arnaud Charlet  <charlet@adacore.com>
13003
13004         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13005         applicable to types that have the With_Type flag set. Returns the
13006         non-limited view of the type, if available, otherwise the type itself.
13007         For class-wide types, there is no direct link in the tree, so we have
13008         to retrieve the class-wide type of the non-limited view of the Etype.
13009         New attributes Static_Initialization and Static_Elaboration_Desired.
13010         Remove the pragma Thread_Body, and the associated flag
13011         Is_Thread_Body in entities, and all related code.
13012         (Suppress_Value_Tracking_On_Call): New flag
13013         E_Exception has Esize and Alignment fields
13014         (Universal_Aliasing): New function.
13015         (Set_Universal_Aliasing): New procedure.
13016         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13017         (Check_Nested_Access): New procedure.
13018         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13019         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13020         (Related_Interface): New attribute. Present in dispatch table pointer
13021         components of records. Set to point to the entity of the corresponding
13022         interface type.
13023         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13024         (Original_Access_Type): Remove, not needed.
13025         (Root_Type): Handle properly subtypes of class-wide-types.
13026         Update comments.
13027
13028         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13029         class-wide types visible through limited-with clauses.
13030         (Try_Primitive_Operation): When examining all primitive operations of a
13031         tagged type, do not consider subprograms labeled as hidden unless they
13032         belong to a private generic type with a tagged parent.
13033         (Try_Object_Operation): Extensive rewriting, to handle properly various
13034         overloading cases, when several ancestors may have class-wide operations
13035         that are possible candidates, and when the overloaded functions return
13036         array types and have defaulted parameters so that the call may be
13037         interpreted as an indexing.
13038         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13039         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13040         successive actuals before analyzing the call itself.
13041         (Try_Primitive_Operation): A primitive operation is compatible with the
13042         prefix if the prefix has a synchronized type and the type of the formal
13043         is its corresponding record, as can be the case when the primitive
13044         operation is declared outside of the body of the type.
13045         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13046         perform homonym traversal, looking for class-wide operation matches
13047         (formerly done in statements of Try_Class_Wide_Operation). Matches on
13048         access parameters are now restricted to anonymous access types.
13049         (Mark_Allocator): An allocator with a discriminant association parent is
13050         a coextension.
13051         (Try_One_Prefix_Interpretation): If the type of the object is
13052         incomplete, as can be happen when it is a limited view obtained through
13053         a limited_with_clause, the selected component is not part of a prefixed
13054         call.
13055         (Complete_Object_Operation): Diagnose properly an object that is not
13056         aliased when the corresponding controlling formal is an access
13057         parameter.
13058         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13059         ambiguous calls in prefixed notation, where two primitives differ only
13060         in that the controlling argument of one is an access parameter.
13061
13062         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13063         whether a function that returns an unconstrained type can be inlined.
13064         (Process_Formals): Diagnose properly the illegal use of an incomplete
13065         type in the profile of an access_to_subprogram declaration.
13066         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13067         operations are attached to the corresponding record.
13068         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13069         When processing a primitive of a concurrent type which implements an
13070         interface change the type of all controlling formals to that of the
13071         corresponding record type.
13072         (Check_Synchronized_Overriding): Relax the conditional logic when trying
13073         to determine the tagged type to which a primitive belongs.
13074         (Check_Conventions): Capture condition to ignore a primitive operation
13075         (which is shared between the loop in Check_Conventions and the one in
13076         Check_Convention) in a new local function Skip_Check.
13077         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13078         confusion with Check_Conventions' own Prim_Op local variable.
13079         (Create_Extra_Formals): Test for a tagged result type rather than a
13080         controlling result when determining whether to add a BIP_Alloc_Form
13081         formal and a BIP_Final_List formal to the function.
13082         (Check_Conformance); For parameters that are anonymous access types,
13083         subtype conformance requires that the not null and the constant
13084         indicators must match
13085         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13086         to retrieve the appropriate type when processing a concurrent type
13087         declared within a generic. Minor comment reformatting. Change invocation
13088         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13089         mitive.
13090         (Analyze_Subprogram_Body): If the return type of a function is an
13091         anonymous access to the limited view of a class-wide type, and the
13092         non-limited view of the type is available, update the type of the
13093         function so that code can be generated.
13094         (Process_Formals): In case of access-subtype itype whose designated
13095         type is also an itype (situation that happens now with access to
13096         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13097         attribute to avoid backend problems.
13098         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13099         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13100         anonymous types' designated types are same before testing
13101         Subtypes_Statically_Match.
13102         (Create_Extra_Formals): Test for a named access parameter that is a
13103         controlling formal as an additional condition for adding an
13104         accessibility level formal. This can occur in the subp type created for
13105         dispatching calls in Expand_Dispatching_Call, and allows calling
13106         Create_Extra_Formals from that procedure rather than special-casing the
13107         extra formals there.
13108         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13109         when the function has a controlling result.
13110         (Check_Returns): Add much more knowledge of the optimization of local
13111         raise statements to gotos, to retain proper warnings in this case.
13112         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13113         nodes when looking for last statement.
13114
13115         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13116         class-wide types visible through limited with clauses.
13117         (Add_One_Interp): If the operands are anonymous access types, the
13118         predefined operator on universal_access is immediately visibles
13119         (Find_Unique_Type): Handle anonymous access to subprogram types just as
13120         other anonymous access types.
13121         (Disambiguate): Take into account CIL convention.
13122         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13123
13124 2007-06-06  Robert Dewar  <dewar@adacore.com>
13125
13126         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13127         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13128         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13129         Fix lower bound of tables.
13130         Add rep clauses.
13131
13132         * nlists.adb: Ditto.
13133         (Prev_Node, Next_Node): Change index type to Int so that it properly
13134         covers the range First_Node_Id - 1 up.
13135
13136 2007-06-06  Javier Miranda  <miranda@adacore.com>
13137             Ed Schonberg  <schonberg@adacore.com>
13138             Bob Duff  <duff@adacore.com>
13139             Hristian Kirtchev  <kirtchev@adacore.com>
13140
13141         * exp_aggr.ads, exp_aggr.adb:
13142         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13143         in extension aggregates.
13144         (Flatten): Other conditions being met, an aggregate is static if the
13145         low bound given by component associations is different from the low
13146         bound of the base index type.
13147         (Packed_Array_Aggregate_Handled): If the component type is itself a
13148         packed array or record, the front-end must expand into assignments.
13149         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13150         Init_Pr, instead of Ancestor_Is_Expression.
13151         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13152         coextension chain root, either generate a list controller or use the
13153         already existing one.
13154         (Static_Array_Aggregate): New procedure to construct a positional
13155         aggregate that can be handled by the backend, when all bounds and
13156         components are compile-time known constants.
13157         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13158         types covering interface types into assignments.
13159         (Replace_Type): move to Build_Record_Aggr_Code.
13160         (Expand_Record_Aggr_Code): if the target of the aggregate is an
13161         interface type, convert to the definite type of the aggregate itself,
13162         so that needed components are visible.
13163         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13164         components and the context is an extended return statement do not
13165         create a transient block for it, to prevent premature finalization
13166         before the return is executed.
13167         (Gen_Assign): Do not generate a call to deep adjust routine if the
13168         component type is itself an array of controlled (sub)-components
13169         initialized with an inner aggregate.
13170         (Component_Check): New name for Static_Check. This name is now more
13171         appropriate, and documentation is added which was missing.
13172         (Component_Check): Add test for bit aligned component value
13173         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13174         Tagged_Comps, name is more appropriate given added function below.
13175         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13176
13177 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13178             Javier Miranda  <miranda@adacore.com>
13179             Robert Dewar  <dewar@adacore.com>
13180
13181         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13182         Terminated: Add unchecked type conversion from System.Address to
13183         System.Tasking.Task_Id when calling the predefined primitive
13184         _disp_get_task_id.
13185         Disable new Ada 05 accessibility check for JVM.NET targets, which
13186         cannot be implemented in a practical way.
13187         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13188         the sources always references the tag of the actual object. Therefore,
13189         if 'Tag is applied in the sources to class-wide interface objects we
13190         generate code that displaces "this" to reference the base of the object.
13191         (Expand_N_Attribute_Reference, case Size): Return specified size if
13192         known to front end.
13193         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13194         has code that displaces the pointer of the object to manage interface
13195         types. However this code must not be executed when the prefix is a
13196         subprogram. This bug caused the wrong expansion of the internally
13197         generated assignment that fills the dispatch table when the primitive
13198         is a function returning a class-wide interface type.
13199         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13200         Set_Attribute_Name for Name_Unaligned_Valid.
13201
13202 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13203             Gary Dismukes  <dismukes@adacore.com>
13204
13205         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13206         If the initialization is the equivalent aggregate of the initialization
13207         procedure of the type, do not remove it.
13208         (Expand_N_Attribute_Definition_Clause): Exclude access variables
13209         initialized to null from having their expression reset to empty and
13210         note this exception in the comment.
13211
13212 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13213             Robert Dewar  <dewar@adacore.com>
13214             Ed Schonberg  <schonberg@adacore.com>
13215             Gary Dismukes  <dismukes@adacore.com>
13216
13217         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13218         Add "with" and "use" clauses for Sem_Attr.
13219         (Expand_Current_Value): Do not replace occurences of attribute
13220         references where the prefix must be a simple name.
13221
13222         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13223         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13224         Attribute_Requires_Simple_Name_Prefix.
13225         (Name_Modifies_Prefix): Body of new function.
13226         (Requires_Simple_Name_Prefix): Body of new function.
13227         (Resolve_Attribute, case Access): Improve error message for case of
13228         mismatched conventions.
13229         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13230         incomplete type.
13231         (Analyze_Attribute, case 'Access): If the type of the prefix is a
13232         constrained subtype for a nominal unconstrained type, use its base type
13233         to check for conformance with the context.
13234         (Resolve_Attribute): Remove test of the access type being associated
13235         with a return statement from condition for performing accessibility
13236         checks on access attributes, since this case is now captured by
13237         Is_Local_Anonymous_Access.
13238         (Analyze_Access_Attribute): Set Address_Taken on entity
13239         (Analyze_Attribute, case Address): Set Address_Taken on entity
13240         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13241         validating an access attribute whose prefix is a current instance.
13242         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13243         applied to dispatching operations, if freezing is required then we set
13244         the attribute Has_Delayed_Freeze in the prefix's entity.
13245         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13246         current scope if access of local subprogram taken
13247         (Analyze_Access_Attribute): Check legality of self-reference even if the
13248         expression comes from source, as when a single component association in
13249         an aggregate has a box association.
13250         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13251         the prefix if it is a protected operation and the attribute is
13252         Unrestricted_Access.
13253         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13254         reference to the base type of the context, to force a constraint check
13255         when the context is an access subtype with an explicit constraint.
13256         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13257         node is rewritten as an interface conversion. leave unanalyzed after
13258         resolution, to ensure that type checking against the context will take
13259         place.
13260
13261 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13262             Javier Miranda  <miranda@adacore.com>
13263             Robert Dewar  <dewar@adacore.com>
13264
13265         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13266         wrapper when the full view of the controlling type of an inherited
13267         function that dispatches on result implements interfaces.
13268         (Expand_N_Object_Declaration): In cases where the type of the
13269         declaration is anonymous access, create finalization list for it.
13270         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13271         if the object has no explicit initialization, to match description of
13272         functionality of pragam Persistent_BSS.
13273         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13274         new function to build static aggregates, to replace initialization call
13275         when static initialization is desired.
13276         (Freeze_Type): Generate a list controller for an access type whenever
13277         its designated type has controlled anonymous access discriminants.
13278         (Build_Equivalent_Aggregate): New procedure to compute a static
13279         aggregate to be used as default initialization for composite types,
13280         instead of a generating a call to the initialization procedure for the
13281         type.
13282         (Build_Initialization_Call): When available, replace a call to the
13283         initialization procedure with a copy of the equivalent static aggregate
13284         for the type.
13285         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
13286         declarations for objects of a class-wide interface type, rather than
13287         just identifiers, to prevent visibility problems.
13288         (Expand_N_Object_Declaration): When expanding the declaration for an
13289         object of a class-wide interface type, preserve the homonym chain of
13290         the original entity before exchanging it with that of the generated
13291         renaming declaration.
13292         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13293         active, because there is no way to handle the exception.
13294         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13295         to do a minimum decoration of the Access_Disp_Table list.
13296         (Expand_Record_Controller): Avoid the addition of the controller between
13297         the component containing the tag of a secondary dispatch table and its
13298         adjacent component that stores the offset to the base of the object.
13299         This latter component is only generated when the parent type has
13300         discriminants ---documented in Add_Interface_Tag_Components).
13301         (Apply_Array_Size_Check): Removed, no longer needed.
13302         (Expand_N_Full_Type_Declaration): If the type has anonymous access
13303         components, create a Master_Entity for it only if it contains tasks.
13304         (Build_Init_Procedure): Suppress the tag assignment compiling under
13305         no run-time mode.
13306         (Freeze_Record_Type): Remove code associated with creation of dispatch
13307         table.
13308         (Init_Secondary_Tags): Update type of actuals when generating calls to
13309         Ada.Tags.Set_Offset_To_Top
13310         (Stream_Operation_OK): Disable use of streams compiling under no
13311         run-time mode
13312         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13313         if Has_Init_Expression set.
13314         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13315         Register_Primitive, which provides the same functionality.
13316         (Requires_Init_Proc): Return false in case of interface types.
13317         (Add_Secondary_Tables): Use the new attribute Related_Interface to
13318         cleanup the code.
13319         (Predefined_Primitive_Freeze): Do not assume that an internal entity
13320         is always associated with a predefined primitive because the internal
13321         entities associated with interface types are not predefined primitives.
13322         Therefore, the call to Is_Internal is replaced by a call to the
13323         function Is_Predefined_Dispatching_Operation.
13324         (Make_Eq_If): When generating the list of comparisons for the
13325         components of a given variant, omit the controller component that is
13326         present if the variant has controlled components.
13327
13328 2007-06-06  Javier Miranda  <miranda@adacore.com>
13329             Hristian Kirtchev  <kirtchev@adacore.com>
13330             Bob Duff  <duff@adacore.com>
13331
13332         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13333         handle the creation of finalization lists and calls for nested
13334         coextensions when the root of the chains is part of a return statement.
13335         (Inside_A_Return_Statement): New function inside Complete_Coextension_
13336         Finalization.
13337         (Expand_Record_Equality): Skip components that are interface types.
13338         (Displace_Allocator_Pointer): Add missing support for interface subtypes
13339         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13340         with Rewrite_Coextension. Change the condition for detecting coextension
13341         root nodes.
13342         (Is_Local_Access_Discriminant): Removed.
13343         (Rewrite_Coextension): New routine which rewrites a static coextension
13344         as a temporary and uses its unrestricted access in the construction of
13345         the outer object.
13346         (Complete_Coextension_Finalization): New routine. Generate finalization
13347         attachment calls to all delayed coextensions.
13348         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13349         the allocator is not a coextension itself and has delayed coextensions.
13350         If the current allocator is controlled, but also a coextension, delay
13351         the generation of the finalization attachment call.
13352         Rename local variable "Node" to "Nod" in order to avoid confusion with
13353         "Elists.Node".
13354         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13355         limited types that are not inherently limited. Such an allocator is
13356         illegal, but is generated by the expander for a return statement, to
13357         copy the result onto the secondary stack. This is the only case where a
13358         limited object can be copied. Generate code to displace the pointer
13359         to the object if the qualified expression is a class-wide interface
13360         object. Such displacement was missing and hence the copy of the object
13361         was wrong.
13362         (Apply_Accessibility_Check): Handle allocated objects initialized in
13363         place.
13364         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13365         and Expand_Allocator_Expression. Allocating class-wide interface objects
13366         this routine displaces the pointer to the allocated object to reference
13367         the component referencing the corresponding secondary dispatch table.
13368         Expand_Allocator_Expression): Add missing support to allocate class-wide
13369         interface objects initialized with a qualified expression.
13370         (Get_Allocator_Final_List): Test for an anonymous access type that is a
13371         function result type, and use the finalization list associated with the
13372         function scope in that case (such an anonymous type should not be
13373         treated like an access parameter's type).
13374
13375 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13376             Gary Dismukes  <dismukes@adacore.com>
13377             Javier Miranda  <miranda@adacore.com>
13378
13379         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13380         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13381         required exception handler.
13382         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13383         properly the case of a function whose return type is a limited
13384         class-wide interface type. Modify the code of the accessibility
13385         check to handle class-wide interface objects. In this case we need to
13386         displace "this" to reference the primary dispatch table to get access
13387         to the TSD of the object (to evaluate its accessibility level).
13388         (Expand_N_Extended_Return_Statement): Test for a tagged result type
13389         rather than a controlling result as one of the conditions for
13390         generating tests of the implicit BIP_Alloc_Form formal. The
13391         initialization assignment is also handled according to whether the
13392         result is tagged instead of controlling.
13393         In the case where the init assignment is inserted in the "then" part of
13394         the allocation conditional, rewrite the target to be a dereference of
13395         the implicit BIP_Object_Access formal.
13396         If the returned value is unconstrained and created on the secondary
13397         stack, mark the enclosing block and function so that the secondary
13398         stack is not reclaimed on return.
13399         Treat returns from functions with controlling results similarly to
13400         returns from functions with unconstrained result subtypes.
13401         If the object returned is unconstrained, and an allocator must be
13402         created for it, analyze the allocator once the block for the extended
13403         return is installed, to ensure that finalizable components
13404         of the expression use the proper finalization list. Guard the call to
13405         Move_Final_List with a check that there is something to finalize.
13406         (Make_Tag_Ctrl_Assignment): Use "old" handling
13407         of controlled type assignment for virtual machines, since new code uses
13408         unsupported features (such as direct access to bytes in memory).
13409
13410 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
13411             Ed Schonberg  <schonberg@adacore.com>
13412
13413         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13414         accessibility actual, check for the case of an aliased object that has
13415         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13416         we fall into processing for the attribute rather than the name of the
13417         object.
13418         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13419         formal has its address taken in the body, create a temporary to capture
13420         value.  If the return type is a limited interface, do not treat the
13421         return value as Controlled.
13422         (Is_In_Place_Function):  If the return type is a limited interface,
13423         treat as returning in place. The actual returned object may not always
13424         be limited, but the caller has to assume that it is returned in place.
13425         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13426         context of an allocator, use the correct finalization chain (that is,
13427         the chain belonging to the access type, rather than the chain belonging
13428         to the current scope).
13429         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13430         result type rather than a controlling result as a precondition for
13431         adding an allocation form actual to a build-in-place call.
13432         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13433         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13434         primitive in the dispatch tables. This work is now done by Make_DT when
13435         the type is frozen.
13436         (Register_Predefined_DT_Entry): Removed.
13437         (Add_Return): If end label is not present, use sloc of last statement
13438         for generated return statement in procedure, for better gdb behavior
13439         on expanded code.
13440         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13441         object address nodes to ensure proper processing by routines like
13442         Insert_After*.
13443         (Expand_Call): Fix generation of validity check for parameter
13444         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13445         the allocation form parameter if the result subtype is constrained,
13446         except when the function has a controlling result.
13447         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13448         rather than Is_Controlled and Has_Controlled_Component, since we want to
13449         include class-wide result types in this treatment. Also test for a
13450         controlling result, since that also requires passing a finalization
13451         list.
13452         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13453         even when the result subtype is constrained, to handle calls involving
13454         controlling results.
13455         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13456         is now called even when the result subtype is constrained, to handle
13457         calls involving controlling results.
13458         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13459         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13460         now performs the test).
13461         (Make_Build_In_Place_Call_In_Object_Declaration):
13462         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13463         constrained, to handle calls involving controlling results.
13464         (Add_Return): Accomodate rewritten pattern from local raise to goto
13465         transformation, so that we still recognize an transfer statement
13466         and do the right thing here in that case.
13467         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13468         and end of subprogram code.
13469         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13470         support for primitives that are functions (without formals) with a
13471         controlling result.
13472         (Inherited_From_Formal): If the actual subtype has not generic parent
13473         type, it is not an actual for a formal derived type, and there is no
13474         operation to inherit from the formal.
13475
13476 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13477             Thomas Quinot  <quinot@adacore.com>
13478
13479         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13480         inserted cleanup code appropriately for GDB use.
13481         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13482         exception handler for Deep_Adjust or Deep_Finalize.
13483         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13484         Raise_From_Controlled_Operation is available, use a call to that
13485         subprogram instead of a plain "raise Program_Error" node to raise
13486         Program_Error if an exception is propagated from an Adjust or Finalize
13487         operation.
13488         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13489         appears in the optional statement list of a triggering alternative, the
13490         scope actions can be inserted directly there, and not in the list that
13491         includes the asynchronous select itself.
13492
13493 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13494             Robert Dewar  <dewar@adacore.com>
13495             Hristian Kirtchev  <kirtchev@adacore.com>
13496
13497         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13498         generated exception handler appropriately when debugging generated code.
13499         Deal properly with No_Exception_Propagation restriction mode.
13500         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13501         System.Address to System.Tasking.Task_Id when processing the result of
13502         the predefined primitive _disp_get_task_id.
13503         (Expand_N_Asynchronous_Select): Clarify comment.
13504         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13505         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13506         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13507         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13508         privals and for generated call to Complete_Entry_Body, for better gdb
13509         behavior.
13510         (Copy_Result_Type): Utility to construct a parameter and result profile
13511         for protected functions whose return type is an anonymous access to
13512         subprogram.
13513         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13514         call the above.
13515         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13516         point when the local-raise-to-goto transformation has taken place.
13517
13518 2007-06-06  Javier Miranda  <miranda@adacore.com>
13519             Nicolas Setton  <setton@adacore.com>
13520
13521         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13522         functionality when the backend is generating code.
13523         Otherwise any serious error
13524         reported by the backend calling the frontend routine Error_Msg
13525         changes the Compilation_Mode to Check_Semantics, disables the
13526         functionality of this routine and causes the generation of
13527         spureous additional errors.
13528
13529         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13530         debugging information now generated by the compiler for fat-pointer
13531         types.
13532         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13533         DWARF2/3.
13534         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13535
13536 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13537
13538         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13539         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13540         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13541         For a remote call to a function with a classwide return type, apply an
13542         E.4(18) check to the returned value.
13543         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13544         stream attributes of the designated type of an RACW, as they are not
13545         dispatching primitive operations.
13546
13547 2007-06-06  Geert Bosch  <bosch@adacore.com>
13548
13549         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13550         negative literal
13551         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13552         positive
13553         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13554         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13555         positive
13556         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13557
13558 2007-06-06  Javier Miranda  <miranda@adacore.com>
13559
13560         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13561         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13562
13563 2007-06-06  Javier Miranda  <miranda@adacore.com>
13564
13565         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13566         deallocation of class-wide interface objects.
13567         (Expand_Dispatching_Constructor_Call): Take into account that if the
13568         result of the dispatching constructor is an interface type, the
13569         function returns a class-wide interface type; otherwise the returned
13570         object would be actual. The frontend previously accepted returning
13571         interface types because Expand_Interface_Actuals silently performed
13572         the management of the returned type "as if" it were a class-wide
13573         interface type.
13574         (Expand_Dispatching_Constructor_Call): Replace call to
13575         Make_DT_Access_Action by direct call to Make_Function_Call.
13576
13577 2007-06-06  Robert Dewar  <dewar@adacore.com>
13578             Ed Schonberg  <schonberg@adacore.com>
13579
13580         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13581         compute masking constant, since we now set Esize properly to the
13582         underlying size.
13583         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13584         to match the alignment.
13585         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13586         packed arrays of 8 bits or less.
13587
13588         * freeze.adb (Freeze_Entity): When freezing the formals of a
13589         subprogram, freeze the designated type of a parameter of an access type
13590         only if it is an access parameter.
13591         Increase size of C convention enumeration object
13592         (Freeze_Entity, array type case): Make sure Esize value is properly
13593         adjusted for the alignment if it is known.
13594         (Freeze_Entity, array type case): When checking bit packed arrays for
13595         the size being incorrect, check RM_Size, not Esize.
13596         (Freeze_Record_Type): Check for bad discriminated record convention
13597         (In_Exp_Body): Return true if the body is generated for a subprogram
13598         renaming, either an attribute renaming or a renaming as body.
13599         (Check_Itype): If the designated type of an anonymous access component
13600         is a non-protected subprogram type, indicate that it is frozen, to
13601         prevent out-of-scope freeze node at some subsequent call.
13602         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13603         only if the subprogram is neither imported nor exported, as well as the
13604         NCA descriptor class if the subprogram is exported.
13605
13606 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13607             Arnaud Charlet  <charlet@adacore.com>
13608             Robert Dewar  <dewar@adacore.com>
13609             Gary Dismukes  <dismukes@adacore.com>
13610
13611         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13612         default initialization on an imported object, when there is no
13613         initialization call generated for it.
13614         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13615         restriction
13616
13617         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13618         Static_Elaboration_Desired.
13619         Remove pragma Thread_Body.
13620         Implement a new pragma No_Body
13621         Removes the Explicit_Overriding pragma
13622         Remove Optional_Overriding pragma
13623         (Prag): Deal with Universal_Aliasing.
13624         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13625         Pragma_CIL_Constructor): New names.
13626
13627         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13628         uses the equivalent aggregate of a type must be treated as an implicit
13629         initialization.
13630         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13631         has none of the other categories.
13632         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13633         to apply Import to an object renaming declaration.
13634
13635         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13636         from a C++ class should be declared as limited and that it will be
13637         considererd limited.
13638         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13639         should be declared as limited and that it will be considererd limited.
13640         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13641         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13642         (Analyze_Pragma): Deal with Universal_Aliasing.
13643         (Sig_Flags): Likewise.
13644         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13645         (Overflow_Checks_Unsuppressed): New flag.
13646         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13647         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13648         case of JVM or .NET targets, and compiling user code.
13649         Add debugging convenience routine rv
13650
13651 2007-06-06  Robert Dewar  <dewar@adacore.com>
13652
13653         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13654         are interface type.
13655         (Build_Elementary_Input_Call): For floating-point use right type in the
13656         absence of strange size or stream size clauses.
13657         (Build_Elementary_Write_Call): Same fix
13658         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13659         set to value that does not match base type size.
13660
13661 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13662
13663         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13664         object of a limited type can be initialized with a call to a function
13665         that returns in place. If the limited type has unknown discriminants,
13666         and the underlying type is a constrained composite type, build an actual
13667         subtype from the function call, as is done for private types.
13668         (Side_Effect_Free): An expression that is the renaming of an object or
13669         whose prefix is the renaming of a object, is not side-effect free
13670         because it may be assigned through the renaming and its value must be
13671         captured in a temporary.
13672         (Has_Controlled_Coextensions): New routine.
13673         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13674         as is done for other limited types.
13675         (Non_Limited_Designated_Type): new predicate.
13676         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13677         objects.
13678         Remove all handling of with_type clauses.
13679
13680         * par-ch10.adb: Remove all handling of with_type clauses.
13681
13682         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13683         checksum if the main source could not be parsed.
13684         (Loat_Unit): When processing a child unit, determine properly whether
13685         the parent unit is a renaming when the parent is itself a child unit.
13686         Remove handling of with_type clauses.
13687
13688         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13689         (Set_Is_Static_Coextension): New procedure.
13690         (Has_Local_Raise): New function
13691         (Set_Has_Local_Raise): New procedure
13692         (Renaming_Exception): New field
13693         (Has_Init_Expression): New flag
13694         (Delay_Finalize_Attach): Remove because flag is obsolete.
13695         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13696         Remove all handling of with_type clauses.
13697         (Exception_Junk): Can now be set in N_Block_Statement
13698
13699 2007-06-06  Vincent Celier  <celier@adacore.com>
13700             Robert Dewar  <dewar@adacore.com>
13701
13702         * frontend.adb (Frontend): Return immediately if the main source could
13703         not be parsed, because of preprocessing errors.
13704
13705         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13706         (Gnat1drv): Exit with errors if the main source could not be parsed,
13707         because of preprocessing errors.
13708         (Check_Rep_Info): New procedure
13709
13710 2007-06-06  Robert Dewar  <dewar@adacore.com>
13711
13712         * g-hesorg.ads, g-heasor.ads,
13713         g-busorg.ads, g-bubsor.ads: Update documentation
13714         GNAT.Heap/Bubble_Sort_G is now pure
13715
13716 2007-06-06  Robert Dewar  <dewar@adacore.com>
13717
13718         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13719
13720 2007-06-06  Robert Dewar  <dewar@adacore.com>
13721             Ed Schonberg  <schonberg@adacore.com>
13722
13723         * g-comlin.ads, g-comlin.adb:
13724         Add new warning for renaming of function return objects
13725
13726         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13727         (Tree_Read): Use size of object instead of type'object_size, since the
13728         latter is incorrect for packed array types.
13729         (Tree_Write): Same fix
13730
13731         * opt.ads: Add new warning for renaming of function return objects
13732         (Generating_Code): New boolean variable used to indicate that the
13733         frontend as finished its work and has called the backend to process
13734         the tree and generate the object file.
13735         (GCC_Version): Is now private
13736         (Static_Dispatch_Tables): New constant declaration.
13737         (Overflow_Checks_Unsuppressed): New flag.
13738         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13739         (List_Closure): New flag for gnatbind (-R)
13740         Zero_Formatting: New flag for gnatbind (-Z)
13741         (Special_Exception_Package_Used): New flag.
13742         (Warn_On_Unrepped_Components): New flag.
13743
13744         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13745         unit is a compilation unit, rather than relying on its scope, so that
13746         Standard can be renamed.
13747         (Analyze_Object_Renaming): Add new warning for renaming of function
13748         return objects.
13749         Also reject attempt to rename function return object in Ada 83 mode.
13750         (Attribute_Renaming): In case of tagged types, add the body of the
13751         generated function to the freezing actions of the type.
13752         (Find_Type): A protected type is visible right after the reserved word
13753         "is" is encountered in its type declaration. Set the entity and type
13754         rather than emitting an error message.
13755         (New_Scope): Properly propagate Discard_Names to inner scopes
13756         (Check_Nested_Access): New procedure.
13757         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13758         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13759
13760         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13761         Add new warning for renaming of function return objects
13762         (Check_References): Suppress warnings for objects whose type or
13763         base type has Warnings suppressed.
13764         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13765         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13766
13767 2007-06-06  Vincent Celier  <celier@adacore.com>
13768             Emmanuel Briot  <briot@adacore.com>
13769             Olivier Hainque  <hainque@adacore.com>
13770
13771         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13772         absolute value of Header.Block_Size when displaying the freed physical
13773         memory in traces.
13774         (Allocate): Compute Storage_Address using Integer_Address, not
13775         Storage_Offset, because the range of Storage_Offset may not be large
13776         enough.
13777         (Configure): New parameter Low_Level_Traces
13778         (Allocate, Deallocation, Free_Physically): Added low-level traces
13779         (Configure): new parameter Errors_To_Stdout.
13780         (Output_File): new subprogram
13781         (Deallocate, Dereference): Send error messages to the proper stream
13782         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13783         documented. Previous code would send it to the current output file
13784         defined in GNAT.IO, which might not be stdout
13785         (Is_Valid): Adjust comment to mention that a positive reply means that
13786         Header_Of may be used to retrieve the allocation header associated with
13787         the subprogram Storage address argument. Return False early if this
13788         address argument is misaligned.
13789
13790 2007-06-06  Vincent Celier  <celier@adacore.com>
13791
13792         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13793         switch -P
13794         (ASIS_Main): New global variable
13795         (Get_Closure): New procedure
13796         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13797         check, metric or pretty. Call Get_Closure in this case.
13798         (Check_Files): For GNAT LIST, check all sources of all projects when
13799         All_Projects is True.
13800         (GNATCmd): Accept -U for GNAT LIST
13801
13802 2007-06-06  Vincent Celier  <celier@adacore.com>
13803
13804         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13805         has been specified
13806         Correct error message when invocation of the linker fails
13807         Add explicit size clause for the C imported variables
13808         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13809         we expect char size.
13810         Read target parameters earlier, since this is needed to set
13811         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13812         targets.
13813
13814 2007-06-06  Vincent Celier  <celier@adacore.com>
13815
13816         * gnatls.adb:
13817         Add 3 spaces before the default project directory when displaying
13818         the project search path.
13819         Add new command line switch '-l' to display license information.
13820
13821 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13822
13823         * gmem.c: Add support for timestamps on memory operations.
13824
13825         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13826         operations (not used currently, just foundation for future
13827         enhancements). Add possibility to perform full dump of gmem.out file.
13828         (Print_Back_Traces): Declare accesses to root arrays constants since
13829         they aren't modified.
13830         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13831
13832 2007-06-06  Vincent Celier  <celier@adacore.com>
13833
13834         * gnatsym.adb: Update Copyright notice
13835         (Parse_Cmd_Line): Accept new switch -D
13836         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13837          file.
13838
13839         * prj.ads (Policy): New policy Direct
13840         (Yes_No_Unknown): New enumeration type
13841         (Project_Data): New component Libgnarl_Needed
13842
13843         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13844         use the untouched pathname casing.
13845         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13846         proper casing on non case-sensitive platforms like Windows.
13847         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13848         on all platforms, as it is not possible to know which one is allowed
13849         before processing the project files.
13850         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13851         specified when symbol policy is Direct. Check that when there is a
13852         symbol file defined (either by default or with attribute
13853         Library_Symbol_File) it is not the same as the reference symbol file.
13854         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13855         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13856         extending projects.
13857         (Record_Ada_Source): Record a source that has been locally removed in an
13858         imported project.
13859
13860         * symbols.ads (Policy): New policy Direct
13861
13862         * symbols-vms.adb (Initialize): Take new policy Direct in case
13863         statement
13864
13865 2007-06-06  Vincent Celier  <celier@adacore.com>
13866
13867         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13868         Correct obvious bug (return Dir; instead of return Directory;).
13869         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13870
13871 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13872
13873         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13874         they have UNIX line endings (LF only) even on Windows, and thus pass
13875         all GNAT style checks.
13876
13877 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13878
13879         * g-regpat.adb (Quote): Fix improper quoting of '.'
13880
13881 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13882
13883         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13884         default, set False on a per-runtime basis.
13885         (Need_Netdb_Buffer): New constant.
13886
13887         * g-socket.ads, g-socket.adb: Import new package
13888         GNAT.Sockets.Thin.Task_Safe_NetDB.
13889         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13890         binding to obtain proper message.
13891         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13892         Replace various occurrences of Arry (Arry'First)'Address with the
13893         equivalent Arry'Address (GNAT always follows implementation advice from
13894         13.3(14)).
13895         (Get_Host_By_Address, Get_Host_By_Name,
13896         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13897         instead, rely on platform-specific task safe netdb operations provided
13898         by g-socthi.
13899
13900         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13901         parameter Process_Blocking_IO.
13902         (Host_Error_Messages): Add stub body.
13903         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13904         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13905         Safe_Getservbyport): Move functions into new child package
13906         Task_Safe_NetDB.
13907         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13908         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13909         (In_Addr): Add alignment clause.
13910
13911 2007-06-06  Robert Dewar  <dewar@adacore.com>
13912
13913         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13914         Add note about symbolic traceback
13915
13916 2007-06-06  Pascal Obry  <obry@adacore.com>
13917
13918         * hostparm.ads (Normalized_CWD): Use the host directory separator
13919         instead of the hardcoded forward slash which is not the proper
13920         character on Windows for example.
13921         (Java_VM): Removed.
13922
13923 2007-06-06  Vincent Celier  <celier@adacore.com>
13924             Arnaud Charlet  <charlet@adacore.com>
13925
13926         * a-clrefi.adb, a-clrefi.ads: New files
13927
13928         * impunit.adb: Add s-os_lib in the list of user visible units.
13929         (Non_Imp_File_Names_95): Add a-clrefi to this list
13930         Remove obsolete run-time entries.
13931         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13932          "a-exetim" -- Ada.Execution_Time
13933          "a-extiti" -- Ada.Execution_Time.Timers
13934
13935         * mlib-prj.ads, mlib-prj.adb
13936         (Build_Library): Use untouched object dir and library dir. At the
13937         same time makes sure that the checks are done using the canonical
13938         form. Removes hard-coded directory separator and use the proper host
13939         one instead.
13940         (Process_Project): Do not look in object directory to check if libgnarl
13941         is needed for a library, if there is no object directory.
13942         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13943         linking.
13944         (Build_Library): When invoking gnatbind, use a response file if the
13945         total size of the arguments is too large.
13946
13947         * Makefile.rtl: (g-sttsne): New object file.
13948         Add entry for a-clrefi, s-utf_32, System.Exceptions
13949
13950         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13951         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13952         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13953         Change g-string to s-string, g-os_lib to s-os_lib
13954         Change all g-utf_32 references to s-utf_32
13955
13956 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13957             Olivier Hainque  <hainque@adacore.com>
13958
13959         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13960         LIB$STOP is called to raise an exception and the IP of the exception
13961         is the instruction right after the call.
13962         (__gnat_adjust_context_for_raise, AIX): Implement.
13963         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13964          adjust_context_for_raise before Raise_From_Signal_Hanler.
13965         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13966         siginfo is passed to the handler, necessary to let the zcx propagation
13967         engine unwind past it.
13968
13969 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13970
13971         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13972         on the ZCX support, using different sets of crtstuff objects than with
13973         GCC 3.4.
13974
13975 2007-06-06  Robert Dewar  <dewar@adacore.com>
13976
13977         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13978         spec from body
13979         (Layout_Type): Fix recomputation of size from alignment.
13980
13981 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13982             Javier Miranda  <miranda@adacore.com>
13983
13984         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13985         association in an instance.
13986         (Copy_Generic_Node): If the node is a string literal, no need to copy
13987         its descendants.
13988         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13989         grandparent of the entity.
13990         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13991         to simplify handling of formal interfaces that derive from other formal
13992         interfaces.
13993         (Instantiate_Subprogram_Body): The defining unit name of the body of
13994         the instance should be a defining identifier.
13995         (Install_Formal_Packages): make global to the package, for use in
13996         instantiations of child units.
13997         (Analyze_Package_Instantiation): Do not attempt to set information on an
13998         enclosing master of an entry when expansion is disabled.
13999         (Instantiate_Type): If the actual is a tagged synchronized type and the
14000         generic ancestor is an interface, create a generic actual for the
14001         corresponding record.
14002         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14003         declaration, to ensure that the interface list is processed correctly.
14004         (Inline_Instance_Body): If enclosing scope is an instance body, remove
14005         its entities from visibiility as well.
14006         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
14007         given with a named association, analyze the expression only, not the
14008         discriminant association itself.
14009         (Reset_Entity): If the analysis of a selected component is transformed
14010         into an expanded name in the prefix of a call with parameters, do not
14011         transform the original node into an expanded name, to prevent visibility
14012         errors in the case of nested generics.
14013         (Check_Private_View): For an array type, check whether the index types
14014         may need exchanging.
14015
14016 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14017             Vincent Celier  <celier@adacore.com>
14018
14019         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14020         since both are separated.
14021         Add support for imported CIL packages.
14022         Add further special handling of "value_type" for CIL.
14023         Add special handling of pragma Import for CIL.
14024
14025         * make.ads, make.adb: When switch -eS is used, direct all outputs to
14026         standard output instead of standard error, except errors.
14027         (Absolute_Path): Use untouched casing for the parent directory.
14028         (Add_Library_Search_Dir): Use the untouched directory name.
14029         (Add_Source_Search_Dir): Idem.
14030         (Change_To_Object_Directory): Update output to use proper casing.
14031         (Create_Binder_Mapping_File): Use the untouched filename to set
14032         ALI_Name.
14033         (Gnatmake): Use untouched library and executable directory names.
14034         (Insert_Project_Sources): Use untouched filename for spec and body.
14035         (Is_In_Object_Directory): Use untouched object directory.
14036         (Mark_Directory): Idem.
14037         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14038         contains the non-canonical filename in all cases.
14039         (Change_To_Object_Directory): In verbose mode, display the name of the
14040         object directory we're changing to.
14041         (Compile_Sources): Make sure, when a project file is used, to compile
14042         the body of the unit, when there is one, even when only the spec is
14043         recorded in an ALI file.
14044         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14045         spec to the body.
14046         (Report_Compilation_Failed): New procedure
14047         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14048         procedures moved from the spec to the body.
14049         (Extract_Failure): Removed, not used
14050         Replace explicit raises of exception Bind_Failed and Link_Failed with
14051         calls to Make_Failed with the proper message.
14052         Replace explicit raises of exception Compilation_Failed with calls to
14053         procedure Report_Compilation_Failed.
14054         (Initialize): Create mapping files unconditionally when using project
14055         files.
14056
14057         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14058         Pragma_CIL_Constructor): New names.
14059
14060         * targparm.ads, targparm.adb
14061         (Compiler_System_Version): Removed, no longer used.
14062         (Get_Target_Parameters): Relax checks on system.ads validity. Add
14063         handling of two new system flags: JVM and CLI.
14064
14065 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14066             Arnaud Charlet  <charlet@adacore.com>
14067
14068         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14069         time, use the default s-interr body that provides interrupt support
14070         based on signals.
14071         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14072         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14073         g-soccon.ads, and s-taprop.adb for the marte run time.
14074         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14075         timers are supported on marte.
14076         (EH_MECHANISM for marte): Do not use ZCX.
14077         (THREADSLIB for marte): Use -lmarte.
14078         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14079         Add mlib-tgt-specific.o to gnatmake objects
14080         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14081         longer of MLib.Tgt.
14082         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14083         6, either kernel or rtp, use a specialized version of s-osinte.ads.
14084
14085 2007-06-06  Pascal Obry  <obry@adacore.com>
14086
14087         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14088
14089 2007-06-06  Vincent Celier  <celier@adacore.com>
14090
14091         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14092         separator, use instead the proper host directory separator.
14093         (Copy_ALI_Files): Make sure that an already existing ALI file in the
14094         ALI copy dir is writable, before doing the copy.
14095
14096         * mlib-utl.ads, mlib-utl.adb:
14097         (Gcc): If length of command line is too long, put the list of object
14098         files in a response file, if this is supported by the platform.
14099         (Ar): If invocation of the archive builder is allowed to be done in
14100         chunks and building it in one shot would go above an OS dependent
14101         limit on the number of characters on the command line, build the archive
14102         in chunks.
14103
14104 2007-06-06  Vincent Celier  <celier@adacore.com>
14105
14106         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14107         of specified object file is not equal to base name of source.
14108
14109 2007-06-06  Javier Miranda  <miranda@adacore.com>
14110             Hristian Kirtchev  <kirtchev@adacore.com>
14111             Ed Schonberg  <schonberg@adacore.com>
14112
14113         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14114         the full type declaration.
14115         (Analyze_Component_Declaration): Add local variable E to capture the
14116         initialization expression of the declaration. Replace the occurences of
14117         Expression (N) with E.
14118         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14119         limited interface object with a function call.
14120         (Array_Type_Declaration): If the declaration lacks subtype marks for
14121         indices, create a simple index list to prevent cascaded errors.
14122         (Is_Null_Extension): Ignore internal components created for secondary
14123         tags when checking whether a record extension is a null extension.
14124         (Check_Abstract_Interfaces): Add missing support for interface subtypes
14125         and generic formals.
14126         (Derived_Type_Declaration): Add missing support for interface subtypes
14127         and generic formals.
14128         (Analyze_Object_Declaration): If an initialization expression is
14129         present, traverse its subtree and mark all allocators as static
14130         coextensions.
14131         (Add_Interface_Tag_Component): When looking for components that may be
14132         secondary tags, ignore pragmas that can appear within a record
14133         declaration.
14134         (Check_Abstract_Overriding): an inherited function that dispatches on
14135         result does not need to be overriden if the controlling type is a null
14136         extension.
14137         (Mentions_T): Handle properly a 'class attribute in an anonymous access
14138         component declaration, when the prefix is an expanded name.
14139         (Inherit_Component): If the derivation is for a private extension,
14140         inherited components remain visible and their ekind should not be set
14141         to Void.
14142         (Find_Type_Of_Object): In the case of an access definition, always set
14143         Is_Local_Anonymous_Access. We were previously not marking the anonymous
14144         access type of a return object as a local anonymous type.
14145         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14146         range with character literal bounds.
14147         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14148         (Access_Subprogram_Declaration): Indicate that the type declaration
14149         depends on an incomplete type only if the incomplete type is declared
14150         in an open scope.
14151         (Analyze_Subtype_Declaration): Handle properly subtypes of
14152         synchronized types that are tagged, and that may appear as generic
14153         actuals.
14154         (Access_Subprogram_Declaration): An anonymous access to subprogram can
14155         appear as an access discriminant in a private type declaration.
14156         (Add_Interface_Tag_Components): Complete decoration of the component
14157         containing the tag of a secondary dispatch table and the component
14158         containing the offset to the base of the object (this latter component
14159         is only generated when the parent type has discriminants --as documented
14160         in this routine).
14161         (Inherit_Components): Use the new decoration of the tag components to
14162         improve the condition that avoids inheriting the components associated
14163         with secondary tags of the parent.
14164         (Build_Discriminanted_Subtype): Indicate to the backend that the
14165         size of record types associated with dispatch tables is known at
14166         compile time.
14167         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14168         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14169         to include task, protected, and synchronized interfaces as limited
14170         interfaces.
14171         (Process_Discriminants): Remove the setting of
14172         Is_Local_Anonymous_Access on the type of (anonymous) access
14173         discriminants of nonlimited types.
14174         (Analyze_Interface_Type_Declaration): Complete the decoration of the
14175         class-wide entity it is is already present. This situation occurs if
14176         the limited-view has been previously built.
14177         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14178         field.
14179         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14180         Related_Interface.
14181
14182 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14183
14184         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14185         of the type that specify the position of interface tags when the type
14186         inherits discriminated array components from the parent type.
14187         If a component is initialized with a box, check for the presence of a
14188         default expression in its declaration before using its default
14189         initialization procedure.
14190         (Resolve_Record_Aggregate): If a component is box-initialized, and the
14191         component type has a discriminants, create a partial aggregate for it
14192         by copying the discriminants of the component subtype.
14193         Reject attempt to initialize a discriminant with a box.
14194         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14195         associated with dispatch tables is known at compile time.
14196         (Get_Value): If an association in a record aggregate has a box
14197         association, and the corresponding record component has a default
14198         expression, always copy the default expression, even when the
14199         association has a single choice, in order to create a proper
14200         association for the expanded aggregate.
14201
14202 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14203             Robert Dewar  <dewar@adacore.com>
14204
14205         * par-ch12.adb (P_Generic_Associations): The source position of an
14206         Others association is that of the others keyword, not that of the token
14207         that follows the box.
14208         (P_Formal_Type_Definition): Handle formal access types that carry a
14209         not null indicator.
14210
14211         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14212         multiple identifier are present, save Scan_State before scanning the
14213         colon, to ensure that separate trees are constructed for each
14214         declaration.
14215         (P_Identifier_Declarations): For object declaration, set new flag
14216         Has_Init_Expression if initialization expression present.
14217         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14218         Improve NOT NULL error messages
14219
14220 2007-06-06  Robert Dewar  <dewar@adacore.com>
14221
14222         * par-ch4.adb: (P_Name): Recover from literal used as name
14223
14224 2007-06-06  Vincent Celier  <celier@adacore.com>
14225
14226         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14227         defaulted to False.
14228         In the "not" case, recursive call with Complemented set to True.
14229         Do not allow "or" or "and" operators when Complemented is True.
14230
14231 2007-06-06  Vincent Celier  <celier@adacore.com>
14232
14233         * prj.adb (Project_Empty): Gives default value for new component
14234         Libgnarl_Needed
14235
14236         * prj-attr.ads: Minor reformatting
14237
14238         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14239         directory using the untouched casing.
14240         (For_All_Source_Dirs): Idem.
14241
14242         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14243         directories specified with switches -aP.
14244         (Add_Search_Project_Directory): New procedure
14245         (Initialize_Project_Path): Put the directories in table
14246         Search_Directories in the project search path.
14247         (Initialize_Project_Path): For VMS, transform into canonical form the
14248         project path.
14249
14250 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14251
14252         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14253         true if configurable run-time or No_Run_Time is set.
14254         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14255         processing an unit which is not the one being compiled.
14256
14257 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14258
14259         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14260         Replace UC by Ada.UC
14261
14262         * s-bitops.adb: Get rid of System.Pure_Exceptions.
14263         Replace UC by Ada.UC
14264
14265 2007-06-06  Robert Dewar  <dewar@adacore.com>
14266
14267         * scng.adb: (Check_End_Of_Line): Deal with very long lines
14268
14269 2007-06-06  Robert Dewar  <dewar@adacore.com>
14270
14271         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14272         Remove no longer used nodes.
14273
14274 2007-06-06  Javier Miranda  <miranda@adacore.com>
14275             Ed Schonberg  <schonberg@adacore.com>
14276             Robert Dewar  <dewar@adacore.com>
14277
14278         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14279         on obsolescent withed unit in case of limited-withed units.
14280         (Analyze_Compilation_Unit): Add guard to code that removed an
14281         instantiation from visibility, to prevent compiler aborts when
14282         instantiation is abandoned early on.
14283         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14284         current unit being analyzed, and Distinguish local incomplete types
14285         from limited views of types declared elsewhere.
14286         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14287         to state that the class-wide entity is shared by the limited-view
14288         and the full-view.
14289         (Analyze_With_Clause): Improve placement of flag for case of
14290         unimplemented unit.
14291         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14292         manner similar to GNAT.Current_Exception. This is a violation of
14293         restriction (No_Exception_Propagation), and also inhibits the
14294         optimization of local raise to goto.
14295         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14296         and if so set Most_Recent_Exception_Used flag in Opt, and also check
14297         for violation of restriction No_Exception_Propagation.
14298
14299 2007-06-06  Javier Miranda  <miranda@adacore.com>
14300             Hristian Kirtchev  <kirtchev@adacore.com>
14301             Gary Dismukes  <dismukes@adacore.com>
14302
14303         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14304         use of entity Exception_Occurrence if it is not available in the
14305         target run-time.
14306
14307         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14308         concurrent types are declared within an Ada 2005 generic, build their
14309         corresponding record types since they are needed for overriding-related
14310         semantic checks.
14311         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14312         protected type does not implement a task interface or a nonlimited
14313         interface.
14314         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14315         type does not implement a protected interface or a nonlimited interface.
14316         (Single_Task_Declaration, Single_Protected_Declaration): use original
14317         entity for variable declaration, to ensure that debugging information
14318         is correcty generated.
14319         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14320         routines if the expander is not active.
14321         (Analyze_Task_Body): Mark all handlers to stop optimization of local
14322         raise, since special things happen for task exception handlers.
14323
14324         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14325         concurrent types declared within a generic.
14326         (Check_Dispatching_Operation): Do not emit warning about late interface
14327         operations in the context of an instance.
14328         (Check_Dispatching_Call): Remove restriction against calling a
14329         dispatching operation with a limited controlling result.
14330         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14331         Register_Interface_DT_Entry by calls to Register_Primitive.
14332         (Check_Dispatching_Formals): Handle properly a function with a
14333         controlling access result.
14334
14335 2007-06-06  Robert Dewar  <dewar@adacore.com>
14336             Arnaud Charlet  <charlet@adacore.com>
14337
14338         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14339         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14340         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14341         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14342         message when using a VM, since this attribute is not supported.
14343         (Analyze_Record_Representation_Clause): Give unrepped component warnings
14344
14345         * usage.adb: Add new warning for renaming of function return objects
14346         Indicate that -gnatwp and -gnatwP concern front-end inlining
14347         Add line for -gnatyg
14348         Add usage information for -gnatw.c/C
14349
14350 2007-06-06  Robert Dewar  <dewar@adacore.com>
14351             Ed Schonberg  <schonberg@adacore.com>
14352
14353         * sem_ch5.adb
14354         (Find_Var): Do not consider function call in test for infinite loop
14355         warning if warnings set off for function entity.
14356         (One_Bound): Do not create a temporary for a loop bound if it is a
14357         character literal.
14358         (Analyze_Assignment): Traverse the right hand side of an assignment and
14359         mark all allocators as static coextensions.
14360         (Analyze_Assignment): Exempt assignments involving a dispatching call
14361         to a function with a controlling access result from the check requiring
14362         the target to be class-wide.
14363
14364 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14365             Ed Schonberg  <schonberg@adacore.com>
14366             Robert Dewar  <dewar@adacore.com>
14367             Javier Miranda  <miranda@adacore.com>
14368
14369         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14370         chain of coextensions when an allocator serves as the root of such a
14371         chain.
14372         (Propagate_Coextensions): Remove the test for the root being an
14373         allocator.
14374         (Resolve_Allocator): Add condition to ensure that all future decoration
14375         occurs on an allocator node. Add processing and cleanup for static
14376         coextensions.
14377         (Valid_Conversion): If the operand type is the limited view of a
14378         class-wide type, use the non-limited view is available to determine
14379         legality of operation.
14380         (Ambiguous_Character): move to spec, for use elsewhere.
14381         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14382         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14383         character literals.
14384         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14385         Do_Division_Check flag explicitly.
14386         (Resolve_Actuals): If the actual is of a synchronized type, and the
14387         formal is of the corresponding record type, this is a call to a
14388         primitive operation of the type, that is declared outside of the type;
14389         the actual must be unchecked-converted to the type of the actual
14390         (Resolve_Call): Kill all current values for any subprogram call if
14391         flag Suppress_Value_Tracking_On_Call is set.
14392         (Resolve_Type_Conversion): Generate error message the the operand
14393         or target of interface conversions come from a limited view.
14394         (Check_Infinite_Recursion): Ignore generated calls
14395         (Check_Allocator_Discrim_Accessibility): New procedure for checking
14396         that an expression that constrains an access discriminant in an
14397         allocator does not denote an object with a deeper level than the
14398         allocator's access type.
14399         (Resolve_Allocator): In the case of an allocator initialized by an
14400         aggregate of a discriminated type, check that associations for any
14401         access discriminants satisfy accessibility requirements by calling
14402         Check_Allocator_Discrim_Accessibility.
14403         (Resolve_Equality_Op): Handle comparisons of anonymous access to
14404         subprogram types in the same fashion as other anonymous access types.
14405         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14406         message that is not a continuation message.
14407         (Resolve_Type_Conversion): Add missing support for conversion to
14408         interface type.
14409         (Resolve_Actuals): Introduce a transient scope around the call if an
14410         actual is a call to a function returning a limited type, because the
14411         resulting value must be finalized after the call.
14412         (Resolve_Actuals): If the call was given in prefix notations, check
14413         whether an implicit 'Access reference or implicit dereference must be
14414         added to make the actual conform to the controlling formal.
14415
14416 2007-06-06  Robert Dewar  <dewar@adacore.com>
14417             Javier Miranda  <miranda@adacore.com>
14418
14419         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14420         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14421         overriding of an inherited private subprogram now there is no need to
14422         inherit its dispatching slot and reduce the size of the dispatch table.
14423         Set_All_DT_Position now ensures that the same slot is now assigned to
14424         both entities. This is required to statically build the dispatch table.
14425         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14426         of calling Set_All_DT_Position to re-evaluate the position of the
14427         entries in the dispatch table. Such reevaluation is not desired if
14428         the tagged type is already frozen.
14429
14430 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14431             Gary Dismukes  <dismukes@adacore.com>
14432             Robert Dewar  <dewar@adacore.com>
14433             Javier Miranda  <miranda@adacore.com>
14434
14435         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14436         reference acts as an lvalue when the attribute name modifies the prefix
14437         (Is_Coextension_Root): New routine.
14438         (Mark_Static_Coextensions): New routine.
14439         (Type_Access_Level): Revise code for checking the level of the
14440         anonymous access type of a return object.
14441         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14442         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14443         retrieval of the corresponding controlling record type.
14444         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14445         concurrent types declared within a generic as well as class wide types.
14446         Emit a mode incompatibility error whenever a protected entry or routine
14447         override an interface routine whose first parameter is not of mode
14448         "out", "in out" or access to variable.
14449         (Overrides_Synchronized_Primitive): Rename to
14450         Find_Overridden_Synchronized_Primitive.
14451         (Collect_Interface_Components): New subprogram that collects all the
14452         components of a tagged record containing tags of secondary dispatch
14453         tables.
14454         (Add_Global_Declaration): New procedure
14455         (Abstract_Interface_List): Handle properly the case of a subtype of a
14456         private extension.
14457         (Type_Access_Level): In the case of a type whose parent scope is a
14458         return statement, call Type_Access_Level recursively on the enclosing
14459         function's result type to determine the level of the return object's
14460         type.
14461         (Build_Elaboration_Entity): Build name of elaboration entity from the
14462         scope chain of the entity, rather than the unit name of the file name.
14463         (Check_Nested_Access): New procedure.
14464         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14465         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14466         (Get_Renamed_Entity): Utility routine for performing common operation
14467         of chasing the Renamed_Entity field of an entity.
14468
14469 2007-06-06  Robert Dewar  <dewar@adacore.com>
14470
14471         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14472         elaboration model
14473         (Check_A_Call): Add check for entry call which was causing blowup
14474
14475 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14476
14477         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14478         special code on ia64-vms to handle major incompatibilities between the
14479         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14480         this routine with a very different set of arguments and expectations on
14481         the return value.
14482
14483 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14484
14485         * socket.c (__gnat_close_signalling_fd): New function.
14486         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14487         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14488         New supporting functions for task safe Netdb operations.
14489
14490 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14491             Olivier Hainque  <hainque@adacore.com>
14492
14493         * a-except-2005.ads, a-except-2005.adb
14494         (Raise_From_Controlled_Operation): New procedure in
14495         (private part of) Ada.Exceptions (standard runtime version). Used to
14496         provide informational exception message when Program_Error is raised as
14497         a result of an Adjust or Finalize operation propagating an exception.
14498         (Rmsg_28): Fix description for E.4(18) check.
14499         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14500         propagation starts, to let debuggers know about the event in a reliable
14501         fashion.
14502         Take the address of E and dereference to make sure it is homed on stack
14503         and prevent the stores from being deleted, necessary for proper
14504         debugger behavior on "break exception" hits.
14505         (Local_Raise): Moved to System.Exceptions
14506
14507         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14508         exception message from the current occurrence and raise Program_Error
14509         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14510
14511 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14512             Arnaud Charlet  <charlet@adacore.com>
14513
14514         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14515         lock, if needed.
14516
14517         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14518         priority associated to a lock.
14519
14520         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14521         assertion to take into account case of no abort restriction.
14522         (Initialize_Protection_Entries): Add initialization for the field
14523         New_Ceiling associated to the protected object.
14524         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14525         needed.
14526
14527         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14528         since this function needs to be set consistently with Update_Exception.
14529
14530         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14531         since this function needs to be set consistently with Update_Exception.
14532
14533         * s-taskin.ads: Update comments on
14534         Interrupt_Server_Blocked_On_Event_Flag.
14535         (Unbind_Handler): Fix handling of server_task wakeup
14536         (Server_Task): Set self's state so that Unbind_Handler can take
14537         appropriate actions.
14538         (Common_ATCB): Now use a constant from System.Parameters to determine
14539         the max size of the Task_Image field.
14540
14541         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14542         Initialize_Analyzer function.
14543         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14544         take into account case of no abort restriction.
14545         ([Vulnerable_]Complete_Master): Modify assertion.
14546
14547         * s-tataat.adb (Finalize): Use the nestable versions of
14548         Defer/Undefer_Abort.
14549
14550         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14551
14552         * s-tpobop.ads: Update comments.
14553
14554         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14555         of locking the object manually, to avoid inconsistencies between
14556         Lock/Unlock_Entry assertions.
14557
14558         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14559         terminating
14560         application and System.Parameters.No_Abort is True.
14561         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14562         (Unbind_Handler): Fix handling of server_task wakeup
14563         (Server_Task): Set self's state so that Unbind_Handler can take
14564         appropriate actions.
14565
14566 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14567
14568         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14569         declarations instead of an explicit null body, for conciseness.
14570
14571 2007-06-06  Robert Dewar  <dewar@adacore.com>
14572
14573         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14574         illegal aggregate and the type is still Any_Composite.
14575         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14576
14577 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14578
14579         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14580         to prevent subsequent expansion.
14581
14582 2007-06-06  Robert Dewar  <dewar@adacore.com>
14583
14584         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14585
14586 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14587             Robert Dewar  <dewar@adacore.com>
14588
14589         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14590         exceptions.
14591         (Write_Itype): Handle case of string literal subtype, which
14592         comes up in this context.
14593         (Update_Itype): when debugging expanded code, update sloc of itypes
14594         associated with defining_identifiers and ranges, for gdb use.
14595         (Sprint_Node_Actual): Add static keyword to object or exception
14596         declaration output if Is_Statically_Allocated is True.
14597         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14598         or task body, so that the tree carries the proper Sloc information for
14599         debugging use.
14600         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14601
14602 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14603
14604         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14605         compile time, to avoid dynamic memory allocation
14606         (Elaboration code): Only use dynamic memory allocation when needed.
14607
14608 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14609
14610         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14611         "Overflow_Guard".
14612         (Stack_Analyzer): Added field "Overflow_Guard"
14613         (Task_Result): Added field "Overflow_Guard".
14614         (Index_Str): New constant.
14615         (Task_Name_Str): New constant.
14616         (Actual_Size_Str): New constant.
14617         (Pattern_Array_Element_Size): New constant.
14618         (Get_Usage_Range): New subprogram.
14619         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14620         Now align the output.
14621         Added comments.
14622         (Initialize): Added value for Overflow_Guard.
14623         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14624         Update the value of the overflow guard according to the actual
14625         beginning of the pattern array.
14626         (Initialize_Analyzer): Added parameter Overflow_Guard.
14627         Take this parameter into accound when computing the max size.
14628         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14629         (Report_Result): Removed extra useless procedure.
14630         Updated call to Output_Result.
14631         Moved full computation of the Task_Result here.
14632
14633 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14634
14635         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14636         Thread_Blocking_IO, always True by default, set False on a per-runtime
14637         basis.
14638         Add Windows-specific constants
14639         Add new constant Need_Netdb_Buffer.
14640         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14641         not, whether to use getXXXbyYYY_r.
14642
14643         * gsocket.h: Add new constant Need_Netdb_Buffer.
14644         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14645         not, whether to use getXXXbyYYY_r.
14646
14647 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14648
14649         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14650         than their first call.
14651         Add type Dummy_Communication_Block used in the generation of the pre-
14652         defined dispatching primitive _disp_asynchronous_select.
14653         (Storage_Element): Put Pragma Universal_Aliasing on it.
14654
14655 2007-06-06  Vincent Celier  <celier@adacore.com>
14656
14657         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14658         function.
14659
14660         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14661         letter if it is not followed by a '/' or a '\'.
14662         (Windows): New Boolean function
14663
14664         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14665         Ada 2005.
14666         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14667         drive letter.
14668         (Containing_Directory): Raise Use_Error when the directory is a root
14669         directory.
14670         (Extension): When returning the result, use a conversion to Result_Type,
14671         not a qualification.
14672
14673 2007-06-06  Robert Dewar  <dewar@adacore.com>
14674
14675         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14676         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14677
14678         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14679         Warn_On_Non_Local_Exception to False, to turn off warnings for
14680         No_Exception_Propagation in ZFP runtime.
14681         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14682         back-ends.
14683         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14684
14685 2007-06-06  Vincent Celier  <celier@adacore.com>
14686
14687         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14688         switches -R and -Z
14689
14690         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14691         (Scan_Make_Switches): Recognize new switch -aP
14692
14693 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14694             Jose Ruiz  <ruiz@adacore.com>
14695
14696         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14697         VxWorks task descriptor in the Ada run time, call a C subprogram
14698         (__gnat_get_stack_info) that extracts the required information.
14699
14700         * sysdep.c: Back out temporary lynxos workaround.
14701         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14702         time the stack information associated to the currently executing task.
14703         Only VxWorks systems require this function.
14704
14705 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14706
14707         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14708         add the stack bias if the offset is computed from a frame address.
14709         (__gnat_backtrace): Adjust for above change.
14710
14711 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14712
14713         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14714         PE_Non_Transportable_Actual.
14715         (By_Descriptor_Last): New constant.
14716         (By_Copy_Return): Likewise.
14717
14718 2007-06-06  Vincent Celier  <celier@adacore.com>
14719
14720         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14721         is.
14722
14723         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14724         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14725         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14726         Add missing comment for /OPTIMIZE=SPACE
14727         Add entry for OPTIMIZE=SPACE
14728         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14729         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14730
14731 2007-06-06  Vincent Celier  <celier@adacore.com>
14732             Robert Dewar  <dewar@adacore.com>
14733
14734         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14735         -gnatw.C)
14736
14737         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14738         Document gnatbind switch -a
14739         (case Constructions): Document that variables declarations are allowed
14740         for previously declared variables.
14741         Fix external lib project example
14742         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14743         Indicate that "#if not X or Y then" is not allowed in input files to
14744         gnatprep.
14745         Document gnatw.x and gnatw.X warning flags
14746         Mention -Winline switch to activate warnings when back-end inlining is
14747         ineffective.
14748         Add gnatcheck rule descriptions
14749         Describe how to use the GNAT driver to call a tool on a closure.
14750         Describe how to run project-wide checks or metrics.
14751         Document gnatbind's -R option
14752         Updated to account for Ada 2005 support
14753
14754         * gnat_rm.texi (Case Construction): Allow variable declarations for
14755         previously declared variables.
14756         (Representation Clauses and Pragmas): Lift restriction on alignment
14757         clauses for record types.
14758         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14759         Document No_Exception_Propagation restriction
14760         Document No_Body pragma
14761         Updated to account for Ada 2005 support; corrected some typos
14762         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14763
14764         * gnat-style.texi: Make it clear that we never use mode IN for
14765         procedures or functions
14766
14767         * ug_words: Add entries for -gnatw.x and -gnatw.X
14768         Add entries for -gnatw.c/.C
14769
14770 2007-06-06  Pascal Obry  <obry@adacore.com>
14771             Vincent Celier  <celier@adacore.com>
14772
14773         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14774         dirs and library name.
14775         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14776         comments.
14777         (Build_Library): Idem.
14778         (Compile_Individual_Sources): Idem.
14779         (Compile_Link_With_Gnatmake): Idem.
14780         (Compile_Sources): Idem.
14781         (Get_Imported_Directories): Idem.
14782         (Link_Executables): Idem. Same change for the executable dir.
14783         (Check_Compilation_Needed): C_Source_Path new variable containing
14784         the canonical form of Source_Path to check against the source names
14785         in the dependency file.
14786         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14787         verbose mode, display the name of the object directory we're changing
14788         to.
14789         (Saved_Switches): New name of table X_Switches
14790         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14791         (Usage): New line for switch -aP
14792         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14793         testing if a directory should be added to the search path.
14794
14795 2007-06-06  Javier Miranda  <miranda@adacore.com>
14796
14797         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14798         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14799         declaration after freezing point of all its associated tagged types;
14800         otherwise such types are frozen too early.
14801
14802 2007-06-06  Robert Dewar  <dewar@adacore.com>
14803
14804         * a-reatim.adb: Documentation addition
14805
14806         * g-cgideb.adb: Minor code reorganization
14807
14808         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14809         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14810         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14811
14812         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14813         function.  Change name New_Scope to Push_Scope
14814         (Get_Debug_Flag_K): Remove unused obsolete function.
14815
14816         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14817         Push_Scope.
14818
14819         * makeusg.adb: Update Copyright notice
14820         Add line for switch -aP
14821
14822         * makeusg.adb: Fix wording of some usage messages
14823
14824         * s-assert.adb (Raise_Assert_Failure): Add call to
14825         Debug_Raise_Assert_Failure.
14826
14827         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14828         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14829         is restricted to 1).
14830
14831         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14832
14833         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14834         node location to No_Location when we're not debugging the expanded
14835         code.
14836
14837 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14838
14839         * misc.c (enumerate_modes): Consider log2_b to always be one.
14840
14841 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
14842
14843         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14844
14845 2007-05-02  Pascal Obry  <obry@adacore.com>
14846
14847         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14848         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14849         encoding support of Stream_IO.
14850         (Write_Unit): Idem.
14851
14852         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14853         filename and corresponding encoding to match the OS requirement.
14854         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14855         routine will fail on specific devices like CON: AUX: ...
14856
14857         PR ada/29856: Add missing braces
14858
14859 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14860
14861         PR ada/31660
14862         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14863
14864 2007-04-21  Jan Hubicka  <jh@suse.cz>
14865
14866         * misc.c (gnat_expand_body): Don't call target for destructors,
14867         avoid redundant check on syntax errors.
14868
14869 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14870
14871         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14872         instead of checking GIMPLE_STMT_P in chain_next.
14873
14874 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14875
14876         PR ada/31576
14877         * system-linux-alpha.ads: Disable constant condition warning for the
14878         Default_Bit_Order variable.
14879         * system-linux-s390.ads: Likewise.
14880         * system-linux-s390x.ads: Likewise.
14881         * system-linux-sparc.ads: Likewise.
14882
14883 2007-04-06  Javier Miranda  <miranda@adacore.com>
14884             Matt Heaney  <heaney@adacore.com>
14885             Robert Dewar  <dewar@adacore.com>
14886
14887         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14888         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14889         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14890         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14891         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14892         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14893         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14894         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14895         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14896         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14897         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14898         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14899         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14900         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14901         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14902         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14903         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14904         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14905         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14906         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14907         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14908         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14909         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14910         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14911         s-taprop-tru64.adb, s-taprop-irix.adb,
14912         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14913         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14914         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14915         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14916         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14917         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14918         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14919         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14920         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14921         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14922         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14923         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14924         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14925         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14926         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14927         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14928         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14929         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14930         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14931         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14932         access types.
14933         Update documentation.
14934         Minor rewording.
14935
14936 2007-04-06  Robert Dewar  <dewar@adacore.com>
14937
14938         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14939         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14940         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14941         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14942         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14943         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14944         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14945         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14946         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14947         system-hpux-ia64.ads, targparm.adb,
14948         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14949
14950         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14951         kept for bootstrap purposes only.
14952
14953 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14954
14955         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14956         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14957         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14958         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14959
14960 2007-04-06  Robert Dewar  <dewar@adacore.com>
14961
14962         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14963         (Local_Raise): New dummy procedure called when a raise is converted
14964         to a local goto. Used for debugger to detect that the exception
14965         is raised.
14966
14967         * debug.adb: Document new d.g flag (expand local raise statements to
14968         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14969
14970         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14971
14972         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14973         suppress warnings for unused handlers.
14974         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14975         warnings for raise statements not handled locally.
14976         (Get_RT_Exception_Entity): New function
14977         (Get_Local_Call_Entity): New function
14978         (Find_Local_Handler): New function
14979         (Warn_If_No_Propagation): New procedure
14980         (Expand_At_End_Handler): Call Make_Implicit_Handler
14981         (Expand_Exception_Handlers): Major additions to deal with local handlers
14982         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14983         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14984         for local raise
14985
14986         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14987         (Get_Local_Call_Entity): New function
14988
14989         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14990         of restrictions that the binder will never suggest adding.
14991
14992         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14993         to No_Elist.
14994
14995         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14996         be with'ed in the presence of pragma Restriction
14997         (No_Exception_Propagation).
14998
14999         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15000
15001         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15002         parameter, then the handler is not a suitable target for a local raise,
15003         and this is a violation of restriction No_Exception_Propagation.
15004         (Analyze_Handled_Statements): Analyze choice parameters in exception
15005         handlers before analyzing statement sequence (needed for proper
15006         detection of local raise statements).
15007         (Analyze_Raise_Statement): Reraise statement is a violation of the
15008         No_Exception_Propagation restriction.
15009
15010         * s-rident.ads: Add new restriction No_Exception_Propagation
15011
15012         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15013         function, like Make_Exception_Handler but sets Local_Raise_Statements
15014         to No_List.
15015         (Add_Unique_Serial_Number): Deal with case where this is called during
15016         processing of configuration pragmas.
15017
15018 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15019             Pat Rogers  <rogers@adacore.com>
15020             Pascal Obry  <obry@adacore.com>
15021
15022         * g-stsifd-sockets.adb: New file.
15023
15024         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15025         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15026         g-socthi-vms.adb: Move signalling
15027         fd management to a nested package, so that they can conveniently be
15028         moved to a subunit that is shared across Windows, VMS, and VxWorks
15029         (Ada implementation) or completed with imported bodies from socket.c
15030         (UNIX case).
15031         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15032         subprograms.
15033         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15034         the signalling file descriptor.
15035         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15036         signalling file descriptor.
15037         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15038         instead of creating a pair of sockets for signalling here.
15039
15040         * g-socthi.adb: Ditto.
15041         Set the runtime process to ignore SIGPIPEs on platforms that support
15042         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15043
15044         * g-socthi-mingw.adb: Ditto.
15045         (WS_Version): Use Windows 2.2.
15046         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15047
15048         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15049         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15050
15051         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15052         added GNAT byte swapping facility
15053         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15054
15055         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15056
15057         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15058         New subprograms.
15059         (__gnat_create_signalling_fds): New subprogram.
15060         Set the runtime process to ignore SIGPIPEs on platforms that support
15061         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15062
15063 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
15064             Vincent Celier  <celier@adacore.com>
15065
15066         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15067         New version of Ada.Calendar which supports the new upper bound of Ada
15068         time (2399-12-31 86_399.999999999).
15069         The following modifications have been made to the package:
15070          - New representation of time as count of nanoseconds since the start of
15071            Ada time (1901-1-1 0.0).
15072          - Target independent Split and Time_Of routines which service both
15073            Ada 95 and Ada 2005 code.
15074          - Target independent interface to the Ada 2005 children of Calendar.
15075          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15076          - Handling of non-leap centenial years.
15077          - Updated clock function.
15078          - Updated arithmetic and comparison operators.
15079
15080         * a-caldel.adb (To_Duration): Add call to target independent routine in
15081         Ada.Calendar to handle the conversion of time to duration.
15082
15083         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15084         (UTC Offset).
15085         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15086         set off to 0.
15087         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15088         targets do not have a natural time zone, GMT is used as a default.
15089         (__gnat_get_task_options): New.
15090
15091         * a-direct.adb (Modification_Time): Add with and use clauses for
15092         Ada.Calendar and Ada.
15093         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15094         since it is no longer needed.
15095         (Duration_To_Time): Removed.
15096         (OS_Time_To_Long_Integer): Removed.
15097         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15098         Formatting Time_Of routines which automatically handle time zones,
15099         buffer periods and leap seconds.
15100
15101         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15102         target independent routines in Ada.Calendar.
15103
15104         * a-calfor.ads, a-calfor.adb:
15105         Code cleanup and addition of validity checks in various routines.
15106         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15107         Ada.Calendar.
15108
15109         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15110         independent routine in Ada.Calendar.
15111
15112 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15113
15114         * adaint.c:
15115         (convert_addresses): Adjust prototype and dummy definition to expect an
15116          extra file_name argument.
15117
15118         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15119         filling the now expected file_name argument with the appropriate
15120         argv[0] expansion.
15121         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15122         (tracebk): Array of void * instead of char *, corresponding to what
15123          convert_addresses expects.
15124         (exename): New static global, to hold the executable file name to be
15125         used in all convert_addresses invocations.
15126         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15127         change.
15128         (__gnat_gmem_a2l_initialize): Resolve exename.
15129         (__gnat_convert_addresses): Use exename as the convert_addresses
15130         file_name argument.
15131
15132         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15133         "convert_addresses", now expecting a filename argument. Import the
15134         necessary entities to compute the filename to use and pass it to
15135         convert_addresses.
15136
15137 2007-04-06  Matt Gingell  <gingell@adacore.com>
15138
15139         * system-aix.ads: Back out previous change.
15140         (Functions_Return_By_DSP): Removed
15141
15142 2007-04-06  Pascal Obry  <obry@adacore.com>
15143
15144         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15145         or the monotonic used by Ada.Real_Time) to compute the sleep duration
15146         on Windows.
15147
15148 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15149
15150         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15151         function. Its value changes in different VxWorks versions, and it is
15152         now handled by the function __gnat_get_task_options.
15153
15154         * s-taprop-vxworks.adb (Create_Task): Call the function
15155         __gnat_get_task_options to get the required options for creating a task.
15156
15157 2007-04-06  Pascal Obry  <obry@adacore.com>
15158             Thomas Quinot  <quinot@adacore.com>
15159
15160         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15161         dealing with filename.
15162         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15163         filename from a standard string to a wide-string depending on the
15164         encoding value.
15165         (__gnat_freopen): Idem.
15166         (__gnat_current_time): New function (wrapper for time(3) standard C
15167         function).
15168
15169         * g-os_lib.ads (Current_Time): New function. Returns the current
15170         system time as an OS_Time value.
15171
15172         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15173         (Monotonic_Clock): Same.
15174
15175 2007-04-06  Quentin Ochem  <ochem@adacore.com>
15176
15177         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15178         not on a natural.
15179         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15180
15181 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15182
15183         * a-retide.adb: Add elaboration code to ensure that the tasking run
15184         time is initialized when using delay operations even when no task is
15185         created.
15186
15187 2007-04-06  Javier Miranda  <miranda@adacore.com>
15188
15189         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15190         component Num_Prim_Ops.
15191         (Set_Num_Prim_Ops): Removed.
15192         Remove all the assertions because all the routines of this
15193         package are inline always.
15194         (Get_Offset_Index): Add support to primary dispatch tables.
15195         Move the documentation about the dispatch table to a-tags.ads
15196         (Set_External_Tag): Removed
15197         (Inherit_TSD): Removed.
15198         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15199         moved to a-tags.ads
15200         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15201         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15202         of the TSD field "Table" because this field has been renamed to
15203         "Ifaces_Table".
15204         (Inherit_CPP_DT): Removed.
15205         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15206         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15207         declarations have been moved to a-tags.ads
15208         (Check_Size): Removed.
15209         (Expanded_Name): Updated to get access to the new field of TSD
15210         containing the address of the expanded name.
15211         (Get_Access_Level/Set_Access_Level): Removed.
15212         (Get_Predefined_Prim_Op_Address): Removed.
15213         (Set_Predefined_Prim_Op_Address): Removed.
15214         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15215         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15216         (Set_Expanded_Name): Removed.
15217         (Inherit_DT): Removed.
15218         (Inherit_CPP_DT): Removed.
15219         (Set_RC_Offset): Removed.
15220         (Set_TSD): Removed.
15221         (Base_Address): New function that displaces "this" to point to the base
15222         of the object (that is, to point to the primary tag of the object).
15223
15224 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15225             Javier Miranda  <miranda@adacore.com>
15226
15227         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15228         anonymous access component, do not create a master_id if type already
15229         has one, as may happen if the type is a subcomponent of a packed array
15230         type.
15231         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15232         Initialize_Tag): Remove code associated with the old CPP pragmas.
15233         CPP_Virtual and CPP_Vtable are no longer supported.
15234         (Build_Offset_To_Top_Internal): Add support for concurrent record types
15235         (Build_Offset_To_Top_Functions): Add support for concurrent record types
15236         (Freeze_Record_Type): Remove call to
15237         Init_Predefined_Interface_Primitives.
15238         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15239         code required to initialize the tags of the secondary dispatch tables.
15240         This leaves the algoritm more clear.
15241         (Init_Secondary_Tags): Add support for concurrent record types
15242         (Make_Predefined_Primitive_Specs): Code cleanup.
15243         (Predefined_Primitive_Bodies): Code cleanup.
15244         (Build_Master_Renaming): New local subprogram.
15245         (Expand_N_Full_Type_Declaration): Build the master_id associated with
15246         anonymous access to task type components.
15247         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15248         subtype indication are resolved during analysis, and must not be done
15249         here.
15250         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15251
15252 2007-04-06  Geert Bosch  <bosch@adacore.com>
15253             Ed Schonberg  <schonberg@adacore.com>
15254             Javier Miranda  <miranda@adacore.com>
15255             Bob Duff  <duff@adacore.com>
15256
15257         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15258         for conversion of a Float_Type'Truncation to integer.
15259
15260         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15261         check if a node is an attribute that can be handled directly by the
15262         back end.
15263         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15264         attributes that can be handled directly by the back end.
15265         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15266         use new predicate Is_Access_Protected_Subprogram_Type.
15267         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15268         and Unchecked_Union if it is generated as part of the default  Output
15269         procedure for a type with default discriminants.
15270         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15271         if we are compiling under restriction No_Dispatching_Calls.
15272         (Constrained): Use Underlying_Type, in case the type is private without
15273         discriminants, but the full type has discriminants.
15274         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15275         call to Build_Get_Access_Level.
15276         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15277         interface objects requires a call to the run-time subprogram that
15278         returns the base address of the object.
15279         (Valid_Conversion): Improve error message on illegal attempt to store
15280         an anonymous access to subprogram value into a record component.
15281
15282         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15283         null".
15284         (Simplify_Type_Conversion): New procedure that performs simplification
15285         of Int_Type (Float_Type'Truncation (X)).
15286         (Resolve_Type_Conversion): Call above procedure after resolving operand
15287         and before performing checks. This replaces the existing ineffective
15288         code in Exp_Ch4.
15289         (Set_String_Literal_Subtype): When creating the internal static lower
15290         bound subtype for a string literal, use a newly created copy of the
15291         subtree representing the lower bound.
15292         (Resolve_Call): Exclude build-in-place function calls from transient
15293         scope treatment. Update comments to describe this exception.
15294         (Resolve_Equality_Op): In case of dispatching call check violation of
15295         restriction No_Dispatching_Calls.
15296         (Resolve_Call): If the call returns an array, the context imposes the
15297         component type of the array, and the function has one non-defaulted
15298         parameter, rewrite the call as the indexing of a call with a single
15299         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15300         in prefix form.
15301         (Resolve_Actuals): If an actual is an allocator for an access parameter,
15302         the master of the created object is the innermost enclosing statement.
15303         (Remove_Conversions): For a binary operator, check if type of second
15304         formal is numeric, to check if an abstract interpretation is present
15305         in the case of exponentiation as well.
15306
15307 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15308             Bob Duff  <duff@adacore.com>
15309
15310         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15311         copying a parameter list in a call, set properly the First_Named_Formal
15312         and Next_Named_Formal fields in the new list and in the enclosing call.
15313         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15314         names, to ease typing in the debugger. Improve comments.
15315         (Watch_Node): New variable, intended to be set in the debugger.
15316         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15317         called when the watched node is created.
15318         (New_Node_Debugging_Output): Combined version of local procedures
15319         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15320         with a parameter so that conditional breakpoints like "if Node = 12345"
15321         work.
15322         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15323         Add Elist1 function
15324
15325 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15326             Ed Schonberg  <schonberg@adacore.com>
15327             Gary Dismukes  <dismukes@adacore.com>
15328
15329         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15330         required for a conversion between two access-to-unconstrained-array
15331         types.
15332         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15333         to discriminant constraints on discriminant objects. This rule must
15334         apply as well to discriminants of protected types in private components.
15335         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15336         object of a null-excluding access type then don't require the
15337         the object declaration to have an expression and don't emit a
15338         run-time check.
15339
15340 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15341             Eric Botcazou  <botcazou@adacore.com>
15342
15343         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15344         and made constant.
15345
15346         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15347         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15348         carry any.
15349
15350         * fe.h (Compiler_Abort): Add third parameter.
15351
15352         * misc.c (internal_error_function): Build third argument from current
15353         input location and pass it to Compiler_Abort.
15354
15355 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
15356
15357         * cstand.adb (Create_Standard): When the target's storage unit size is
15358         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15359         Standard_String.
15360
15361 2007-04-06  Nicolas Roche  <roche@adacore.com>
15362
15363         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15364         absolute path can have the following form: device:/a/b. In this case
15365         '/' should be inserted between the path and the filename.
15366
15367 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15368             Eric Botcazou  <botcazou@adacore.com>
15369
15370         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15371         VAR_DECL to a CONST_DECL we make for a public constant when we know the
15372         corresponding definition has created the so made visible variable.
15373         Handle anonymous access to protected subprogram.
15374         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15375         object with an address clause volatile.  Re-enable original fix.
15376         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15377         too.
15378         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15379         associated with either the Equivalent or Root type, instead of the
15380         naked type node.
15381         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15382         subtree for every field of a global record type.
15383         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15384         discriminants, invoke again variable_size on its newly computed sizes.
15385
15386 2007-04-06  Robert Dewar  <dewar@adacore.com>
15387             Thomas Quinot  <quinot@adacore.com>
15388             Ed Schonberg  <schonberg@adacore.com>
15389             Bob Duff  <duff@adacore.com>
15390
15391         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15392         (Next_Component_Or_Discriminant): New function and procedure
15393         (First_Index, First_Literal, Master_Id,
15394         Set_First_Index, Set_First_Literal, Set_Master_Id):
15395         Add missing Ekind assertions.
15396         (Is_Access_Protected_Subprogram_Type): New predicate.
15397         (Has_RACW): New entity flag, set on package entities to indicate that
15398         the package contains the declaration of a remote accecss-to-classwide
15399         type.
15400         (E_Return_Statement): This node type has the Finalization_Chain_Entity
15401         attribute, in case the result type has controlled parts.
15402         (Requires_Overriding): Add this new flag, because "requires
15403         overriding" is subtly different from "is abstract" (see AI-228).
15404         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15405         Is_Abstract_Type. Make sure these are called only when appropriate.
15406         (Has_Pragma_Unreferenced_Objects): New flag
15407
15408         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15409         class-wide, the tag of the right-hand side must be an exact match, not
15410         an ancestor of that of the object on left-hand side.
15411         (Move_Activation_Chain): New procedure to create the call to
15412         System.Tasking.Stages.Move_Activation_Chain.
15413         (Expand_N_Extended_Return_Statement): Generate code to call
15414         System.Finalization_Implementation.Move_Final_List at the end of a
15415         return statement if the function's result type has controlled parts.
15416         Move asserts to Build_In_Place_Formal.
15417         (Move_Final_List): New function to create the call statement.
15418         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15419         tagged type, replace generation of call to the run-time subprogram
15420         CW_Membership by call to Build_CW_Membership.
15421         (Expand_N_Return_Statement): Replace generation of call to the run-time
15422         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15423         (Expand_N_Simple_Function_Return): Replace generation of call to the
15424         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15425
15426         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15427         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15428         access to protected operations.
15429         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15430         master and chain actual parameters to a build-in-place function call
15431         involving tasks.
15432         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15433         statement.
15434         (Make_Build_In_Place_Call_In_Allocator,
15435         Make_Build_In_Place_Call_In_Anonymous_Context,
15436         Make_Build_In_Place_Call_In_Assignment,
15437         Make_Build_In_Place_Call_In_Object_Declaration): Call
15438         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15439         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15440         stubbed procedure with a null body, replace the call with a null
15441         statement without using the full inlining machinery, for efficiency
15442         and to avoid invalid values in source file table entries.
15443
15444         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15445         renamings of calls to build-in-place functions.
15446
15447         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15448         provides the functionality of RTE_Available to record components.
15449         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15450         to avoid undesired overloading.
15451         (Entity): New subprogram that returns the entity for the referened
15452         unit. If this unit has not been loaded, it returns Empty.
15453         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15454         Remove no longer used entities.
15455         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15456         (RE_Type_Specific_Data): New entity.
15457         (RE_Move_Any_Value): New entity.
15458         (RE_TA_A, RE_Get_Any_Type): New entities.
15459         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15460          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15461          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15462         (Entity): New subprogram that returns the entity for the referened
15463         unit. If this unit has not been loaded, it returns Empty.
15464         (RTE): Addition of a new formal that extends the search to the scopes
15465         of the record types found in the chain of the package.
15466
15467         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15468         "abstract subprograms must be visible" message, whether or not the type
15469         is an interface; that is, remove the special case for interface types.
15470         (Analyze_Function_Return): Remove error message "return of task objects
15471         is not yet implemented" because this is now implemented.
15472         (Create_Extra_Formals): Add the extra master and activation chain
15473         formals in case the result type has tasks.
15474         Remove error message "return of limited controlled objects is not yet
15475         implemented".
15476         (Create_Extra_Formals): Add the extra caller's finalization list formal
15477         in case the result type has controlled parts.
15478         (Process_Formals): In case of access formal types there is no need
15479         to continue with the analysis of the formals if we already notified
15480         errors.
15481         (Check_Overriding_Indicator): Add code to check overriding of predefined
15482         operators.
15483         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15484         flags for formals that do not require them,.
15485         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15486         hidden entity is use visible or directly visible.
15487         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15488         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15489         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15490         New_Overloaded_Entity): Split Is_Abstract flag into
15491         Is_Abstract_Subprogram and Is_Abstract_Type.
15492
15493         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15494         a return statement's finalization list to the caller's list, used for
15495         build-in-place functions with result type with controlled parts.
15496         Remove no longer used entities.
15497
15498         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15499         longer needed, because the full type is now limited, and therefore a
15500         pass-by-reference type.
15501         (Foreign_Task_Level): New constant.
15502
15503         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15504         move tasks from the activation chain belonging to a return statement to
15505         the one passed in by the caller, and update the master to the one
15506         passed in by the caller.
15507         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15508         of unactivated tasks, so we don't kill the ones that are being returned
15509         by a build-in-place function.
15510         (Create_Task): Ignore AI-280 for foreign threads.
15511
15512 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15513             Robert Dewar  <dewar@adacore.com>
15514             Bob Duff  <duff@adacore.com>
15515             Gary Dismukes  <dismukes@adacore.com>
15516
15517         * errout.adb (Unwind_Internal_Type): Use predicate
15518         Is_Access__Protected_Subprogram_Type.
15519
15520         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15521         (Freeze_Entity, packed array case): Do not override explicitly set
15522         alignment and size clauses.
15523         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15524         the enclosing subprogram is a child unit body that acts as a spec.
15525         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15526         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15527         Remove all code for DSP option
15528
15529         * layout.adb (Layout_Record_Type): Use First/
15530         Next_Component_Or_Discriminant
15531         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15532         to handle properly the anonymous access case.
15533
15534         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15535         for all access attributes, because overload resolution should work the
15536         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15537         causes the error message for the ambiguous "X'Access = Y'Access" and
15538         "X'Unrestricted_Access = Y'Access" and so forth to match.
15539         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15540         now that anonymous access to protected operations have their own kind.
15541         (Resolve_Attribute): In case of dispatching call check the violation of
15542         restriction No_Dispatching_Calls.
15543         (Check_Array_Type): Check new -gnatyA array index style option
15544
15545         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15546         attempt to derive from a synchronized tagged type.
15547         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15548         type, inherit the class-wide type already created, because it may
15549         already have been used in a self-referential anonymous access component.
15550         (Mentions_T): Recognize self-referential anonymous access components
15551         that use (a subtype of) the class-wide type of the enclosing type.
15552         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15553         Derived_Type for Prev formal on call to
15554         Check_Anonymous_Access_Components rather than Empty.
15555         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15556         a record extension in deciding whether to create a class-wide type,
15557         rather than just checking Tagged_Present.
15558         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15559         to stand-alone object declarations as well as component declarations.
15560         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15561         prevent accidental overwriting when enclosing package appears in
15562         a limited_with_clause.
15563         (Array_Type_Declaration): If the component type is an anonymous access,
15564         the associated_node for the itype is the type declaration itself.
15565         (Add_Interface_Tag_Components): Modified to support concurrent
15566         types with abstract interfaces.
15567         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15568         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15569         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15570         to complete the decoration of synchronized interface types. Add also
15571         a call to Check_Abstract_Interfaces to verify the ARM rules.
15572         (Derive_Interface_Subprograms): Modified to support concurrent types
15573         with abstract interfaces.
15574         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15575         mark, rather than delaying the full resolution depending on context.
15576         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15577         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15578         Array_Type_Declaration,Build_Derived_Record_Type,
15579         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15580         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15581         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15582         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15583         called only when appropriate.
15584         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15585         to private type.
15586         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15587         an itype reference for the anonymous designated subtype, to prevent
15588         scope anonmalies in gigi.
15589         (Build_Itype_Reference): New utility, to simplify construction of such
15590         references.
15591
15592 2007-04-06  Vincent Celier  <celier@adacore.com>
15593
15594         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15595         are suppressed, supply an initial dummy entry covering all possible
15596         source locations.
15597
15598         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15599         and start with only one, such as "-RTS=none".
15600         (Collect_Arguments): Do not check for sources outside of projects.
15601         Do not collect arguments if project is externally built.
15602         (Compile_Sources): Do nothing, not even check if the source is up to
15603         date, if its project is externally built.
15604         (Compile): When compiling a predefined source, add -gnatpg
15605         as the second switch, after -c.
15606         (Compile_Sources): Allow compilation of Annex J renames without -a
15607         (Is_In_Object_Directory): Check if the ALI file is in the object
15608         even if there is no project extension.
15609         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15610         gnatbind if the ALI file effectively exists.
15611         (Initialize): Add the directory where gnatmake is invoked in front of
15612         the path if it is invoked from a bin directory, even without directory
15613         information, so that the correct GNAT tools will be used when spawned
15614         without directory information.
15615
15616         * makeusg.adb: Change switch -S to -eS
15617         Add lines for new switches -we, -wn and -ws
15618         Add line for new switch -p
15619
15620         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15621         Treat_As_Error and there are warnings.
15622
15623         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15624         -gnatww Change gnatmake switch -S to -eS
15625         (Scan_Make_Switches): Code reorganisation. Process separately multi
15626         character switches and single character switches.
15627         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15628         False when switch is not recognized by gnatmake.
15629         (Scan_Make_Switches): Set Setup_Projects True when -p or
15630         --create-missing-dirs is specified.
15631
15632         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15633         renamings Calendar, Machine_Code, Unchecked_Conversion and
15634         Unchecked_Deallocation only when Renamings_Included is True.
15635
15636         * par.adb: Allow library units Calendar, Machine_Code,
15637         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15638         when -gnatg is not specified.
15639         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15640         there is no need to generate always a record_definition_node in case
15641         of synchronized interface types.
15642         (SIS_Entry_Active): Initialize global variable to False
15643         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15644         indicate cases where AI-447 says "not null" is legal.
15645
15646         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15647
15648         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15649         files with with several lines starting with the object fileb name.
15650         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15651         is specified.
15652         (Initialize): Add the directory where gprmake is invoked in front of the
15653         path, if it is invoked from a bin directory or with directory
15654         information, so that the correct GNAT tools will be used when invoked
15655         directly.
15656         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15657
15658         * vms_data.ads: Update switches/qualifiers
15659
15660 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15661             Thomas Quinot  <quinot@adacore.com>
15662
15663         * exp_aggr.adb:
15664         If the array component is a discriminated record, the array aggregate
15665         is non-static even if the component is given by an aggregate with
15666         static components.
15667         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15668         (Convert_Aggr_In_Allocator): If the allocator is for an access
15669         discriminant and the type is controlled. do not place on a finalization
15670         list at this point. The proper list will be determined from the
15671         enclosing object.
15672         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15673         initialize record controller if needed, before the components, to ensure
15674         that they are properly finalized.
15675         (Build_Record_Aggr_Code): For the case of an array component that has a
15676         corresponding array aggregate in the record aggregate, perform sliding
15677         if required.
15678
15679 2007-04-06  Javier Miranda  <miranda@adacore.com>
15680             Gary Dismukes  <dismukes@adacore.com>
15681             Ed Schonberg  <schonberg@adacore.com>
15682
15683         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15684         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15685
15686         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15687         accessibility on class-wide allocators if the allocator occurs at the
15688         same scope level as the allocator's type. The check is guaranteed to
15689         succeed in that case, even when the expression originates from a
15690         parameter of the containing subprogram.
15691         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15692         under No_Dispatching_Calls restriction. During the semantic analysis
15693         we already notified such violation.
15694         (Tagged_Membership): Constant folding. There is no need to check
15695         the tag at run-time if the type of the right operand is non
15696         class-wide abstract.
15697         Replace call to Is_Ancestor by call to Is_Parent
15698         to support concurrent types with interface types.
15699         (Expand_N_Allocator): Add an assertion associated with the generation
15700         of the master_id.
15701         (Expand_N_Slice): Do not enable range check to nodes associated
15702         with the frontend expansion of the dispatch table.
15703         (Is_Local_Access_Discriminant): Subsidiary function to
15704         Expand_N_Allocator.
15705         (Tagged_Membership): Replace generation of call to the run-time
15706         subprogram CW_Membership by call to Build_CW_Membership.
15707         (Expand_Allocator_Expression): Replace generation of call to the
15708         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15709
15710         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15711         initialize most the TSD components by means of an aggregate.
15712         Modify the declaration of the object containing the TSD
15713         because we now expand code that has a higher level of abstraction.
15714         The TSD has a discriminant containing the Inheritance Depth Level,
15715         value that is used in the membership test but also to fix the size
15716         of the table of ancestors.
15717         (Expand_Interface_Conversion): Insert function body at the closest place
15718         to the conversion expression, to prevent access-before-elaboration
15719         errors in the backend.
15720         Code improved to reduce the size of the dispatch table if
15721         compiling under restriction No_Dispatching_Calls plus code cleanup.
15722         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15723         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15724         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15725         code to return immediately if compiling under No_Dispatching_Calls
15726         restriction.
15727         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15728         CPP_Virtual and CPP_Vtable are no longer supported.
15729         (Expand_Interface_Conversion): Add missing support for interface type
15730         derivations.
15731         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15732         Is_Parent to support concurrent types with interfaces.
15733         (Init_Predefined_Interface_Primitives): Removed.
15734         (Make_Secondary_DT): Modified to support concurrent record types.
15735         (Set_All_DT_Position): Modified to support concurrent record types.
15736         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15737         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15738         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15739         with CW_Membership.
15740         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15741         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15742         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15743         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15744         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15745         (Expand_Dispatching_Call): Replace generation of call to the run-time
15746         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15747         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15748         Address.
15749         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15750         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15751         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15752         Build_Set_Prim_Op_Address.
15753         (Get_Remotely_Callable): Subprogram removed.
15754         (Init_Predefined_Interface_Primitives): Replace generation of call to
15755         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15756         Prims.
15757
15758         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15759         First (Parameter_Associations ()) with the call to First_Actual that
15760         returns an actual parameter expression for both named and positional
15761         associations.
15762
15763         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15764         check violation of restriction No_Dispatching_Calls.
15765         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15766         controlling argument.
15767
15768         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15769         First/Next_Component_Or_Discriminant
15770         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15771         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15772         specify Any_Limited_Interface, and this functionality is already
15773         provided by the function Has_Abstract_Interfaces.
15774         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15775         support concurrent types implementing interfaces.
15776         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15777         specify kind Any_Limited_Interface, and this functionality is already
15778         provided by the function Has_Abstract_Interfaces.
15779         (Remove_Side_Effects): replace Controlled_Type by
15780         CW_Or_Controlled_Type whenever the issue is related to
15781         using or not the secondary stack.
15782
15783         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15784         P_Interface_Type_Definition to fulfill the new interface (the formal
15785         Is_Synchronized is no longer required).
15786
15787         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15788         Update dependencies.
15789
15790         * exp_atag.ads, exp_atag.adb: New file
15791
15792 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15793             Bob Duff  <duff@adacore.com>
15794             Cyrille Comar  <comar@adacore.com>
15795
15796         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15797         anonymous, use finalization list of enclosing dynamic scope.
15798         (Expand_N_Package_Declaration): For a library package declaration
15799         without a corresponding body, generate RACW subprogram bodies in the
15800         spec (just as we do for the task activation call).
15801         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15802         Is_Abstract_Type. Make sure these are called only when appropriate.
15803         Remove all code for DSP option
15804         (CW_Or_Controlled_Type): new subprogram.
15805
15806 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15807             Ed Schonberg  <schonberg@adacore.com>
15808             Gary Dismukes  <dismukes@adacore.com>
15809
15810         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15811         parameter. If it is set to true, return a result capped according to
15812         the global upper bound for the index of an entry family.
15813         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15814         (Build_Find_Body_Index): Adjust for above change.
15815         (Entry_Index_Expression): Likewise.
15816         (Is_Potentially_Large_Family): New function extracted from...
15817         (Collect_Entry_Families): ...here. Call it to detect whether the family
15818         is potentially large.
15819         (Build_Entry_Count_Expression): If the family is potentially large, call
15820         Family_Size with 'Cap' set to true.
15821         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15822         a protected version of an operation declared in the private part of
15823         a protected object, because they may be invoked through a callback.
15824         (Set_Privals): If the type of a private component is an anonymous access
15825         type, do not create a new itype for each protected body.
15826         If the body of a protected operation creates
15827         controlled types (including allocators for class-widetypes), the
15828         body of the corresponding protected subprogram must include a
15829         finalization list.
15830         (Build_Activation_Chain_Entity): Build the chain entity for extended
15831         return statements.
15832         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15833         to determine whether operation overrides an inherited primitive.
15834         (Build_Wrapper_Spec): Add code to examine the parents while looking
15835         for a possible overriding candidate.
15836         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15837         hold an actual parameter value since its initialization is separated
15838         from the the declaration. Prevents errors on null-excluding access
15839         formals.
15840
15841 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15842             Pablo Oliveira  <oliveira@adacore.com>
15843
15844         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15845         Do an Unchecked_Conversion to handle the passage from the Underlying
15846         Type to the Base Type when calling Build_To_Any_Call and
15847         Build_From_Any_Call.
15848         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15849         E_Constant, depending upon Variable formal.
15850         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15851         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15852         parameter that requires an extra constrained parameter, declare
15853         temporary for actual as a variable, not a constant.
15854         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15855         the unit being compiled is the one that contains the stub type.
15856         Change primitive operation name for the RACW associated with a RAS
15857         from Call to _Call so it cannot clash with any legal identifier.
15858         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15859         Is_RAS.
15860         (Append_RACW_Bodies): New subprogram.
15861         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15862         Add_Receiving_Stubs_To_Declarations functions.
15863         When expanding a package body, this list correspond to the
15864         statements in the HSS at the end of the pacakge.
15865         When expanding a package spec, this list correspond to the
15866         spec declarations.
15867         (Add_Receiving_Stubs_To_Declarations): Append the function
15868         registering the receiving stubs at the end of the 'Stmts' list.
15869         (RCI_Package_Locator): Pass the new Version generic formal when
15870         instantiating a RCI_Locator package.
15871         (Build_From_Any_Function): To compute the High bound for an
15872         unconstrained array actual, we add the Low bound with the length.
15873         Thus we must convert the low bound and the length to an appropriate
15874         type before doing the sum.
15875         (Build_Subprogram_Receiving_Stubs, PolyORB):
15876          * Retrieve the extra formals parameters at the
15877            end of the parameter stream.
15878          * Use Move_Any_Value to write back out parameters
15879            after executing the request as it is more efficient
15880            than Copy_Any_Value.
15881          * Build the any containing Extra Formals with the
15882            appropriate typecode.
15883         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15884         empty Component_List.
15885         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15886         the tree the declaration for an object that serves as actual parameter
15887         in server-side stubs.
15888         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15889         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15890         Use Build_Actual_Object_Declaration to prepare the actuals.
15891         (Add_Parameter_To_NVList): Set the parameter mode to In for
15892         Extra Constrained Parameters.
15893         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15894         Extra Constrained parameters.
15895         (Build_To_Any_Function, Build_From_Any_Function,
15896         Built_TypeCode_Function): When Typ is implicit, call the correct
15897         function with the first not implicit parent type.
15898         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15899         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15900         typecode from the Etype. Therefore we retrieve the correct typecode
15901         with a call to Get_Any_Type.
15902         (Copy_Specification): Do controlling formal type substitution based on
15903         Is_Controlling_Formal flag, instead of caller-provided object type.
15904         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15905         a RACW primitive operation, we might get a subprogram declaration for an
15906         ancestor of the RACW designated type (not for the designated type
15907         itself), in the case where this operation is inherited. In this case we
15908         have no easy means of determining the original tagged type for which
15909         the primitive was declared, so instead we now rely on
15910         Copy_Specification to use the Is_Controlling_Formal flag to determine
15911         which formals require type substitution.
15912
15913 2007-04-06  Robert Dewar  <dewar@adacore.com>
15914             Ed Schonberg  <schonberg@adacore.com>
15915
15916         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15917         GNAT.Current_Exception are not allowed if pragma Restrictions
15918         (No_Exception_Propagation) is set and in any case make the associated
15919         handler unsuitable as a target for a local raise statement.
15920         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15921         run-time subprogram CW_Membership by call to Build_CW_Membership.
15922         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15923         by a function call, a temporary must be created before expanding the
15924         Constructor_Call itself, to prevent out-of-order elaboration in the
15925         back-end when stack checking is enabled..
15926
15927 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15928
15929         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15930         result are the bounds of the left operand, not the right.
15931
15932 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15933
15934         * exp_strm.adb
15935         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15936          discriminant defaults.
15937         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15938         (Make_Component_List_Attributes): Ditto.
15939
15940 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15941             Bob Duff  <duff@adacore.com>
15942
15943         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15944         an association with a box as providing a value even though the
15945         initialization procedure for the type is not available.
15946         (Resolve_Record_Aggregate): Check that a choice of an association with a
15947         box corresponds to a component of the type.
15948         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15949         Is_Abstract_Subprogram and Is_Abstract_Type.
15950
15951         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15952         assert.
15953
15954         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15955         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15956         called only when appropriate.
15957
15958 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15959
15960         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15961         associated vector view instead of all to the unsigned char view.
15962
15963         * g-altcon.adb (Generic_Conversions): New internal generic package,
15964         offering facilities for all the Vector/View conversion routines
15965         implemented by this unit.
15966         (To_View/To_Vector - all versions): Reimplemented in a systematic
15967         manner, using the internal Generic_Conversions facilities.
15968
15969 2007-04-06  Pascal Obry  <obry@adacore.com>
15970
15971         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15972         string.
15973         (Create): Free the source string before storing the new one.
15974
15975 2007-04-06  Vincent Celier  <celier@adacore.com>
15976
15977         * g-debpoo.adb (Validity): New package with a complete new
15978         implementation of subprograms Is_Valid and Set_Valid.
15979         (Is_Valid): Move to local package Validity
15980         (Set_Valid): Move to local package Validity
15981
15982 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15983             Pablo Oliveira  <oliveira@adacore.com>
15984
15985         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15986         we must ensure that there is enough place for the new data we are going
15987         to copy in.
15988
15989 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15990
15991         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15992         computation.
15993
15994 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15995             Vincent Celier  <celier@adacore.com>
15996
15997         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15998         (Stack_String): Add this String that contains the name of the Stack
15999         package in the project file.
16000         (Packages_To_Check_By_Stack): Add this list that contains the packages
16001         to be checked by gnatstack, which are the naming and the stack packages.
16002         (Check_Files): If no .ci files were specified for gnatstack we add all
16003         the .ci files belonging to the projects, including binder generated
16004         files.
16005         (Non_VMS_Usage): Document that gnatstack accept project file switches.
16006         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16007         Add gnatstack to the list of commands that use project file related
16008         switches, and get the single attribute Switches from the stack package
16009         in a project file when calling gnatstack. Parse the -U flag for
16010         processing files belonging to all projects in the project tree.
16011         Remove all processing for command Setup
16012
16013         * prj-attr.adb: Add new package Stack with single attribute Switches
16014
16015         * vms_conv.ads (Command_Type): Add command Stack.
16016         Move to body declarations that are only used in the body: types Item_Id,
16017         Translation_Type, Item_Ptr, Item and its subtypes.
16018
16019         * vms_conv.adb: (Initialize): Add data for new command Stack.
16020         Add declarations moved from the spec: types Item_Id, Translation_Type,
16021         Item_Ptr, Item and its subtypes.
16022         (Cargs_Buffer): New table
16023         (Cargs): New Boolean global variable
16024         (Process_Buffer): New procedure to create arguments
16025         (Place): Put character in table Buffer or Cargs_Buffer depending on the
16026          value of Cargs.
16027         (Process_Argument): Set Cargs when processing qualifiers for GNAT
16028         COMPILE
16029         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16030         empty, for table Cargs_Buffer.
16031         (Initialize): Remove component Setup in Command_List
16032
16033 2007-04-06  Vincent Celier  <celier@adacore.com>
16034
16035         * gprep.adb (Process_Files.Process_One_File): Use full file name when
16036         issuing pragma Source_Reference.
16037
16038 2007-04-06  Emmanuel Briot  <briot@adacore.com>
16039
16040         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16041         [[:xdigit:]] character class.
16042         Also raise an exception when an invalid character class is used.
16043
16044 2007-04-06  Pascal Obry  <obry@adacore.com>
16045
16046         * i-cstrea.ads: (fopen): Add encoding parameter.
16047         (freopen): Idem.
16048         Change reference from a-sysdep.c to sysdep.c in comment.
16049         Update copyright notice.
16050         This set of patch add support for the encoding form parameter.
16051
16052         * mingw32.h (S2WSU): New macro to convert from a string to a
16053         wide-string using the UTF-8 encoding. The S2WS macro supports now only
16054         standard 8bits encoding.
16055         (WS2SU): As above but converting from wide-sring to string.
16056         This is needed as it is necessary to have access to both versions in the
16057         runtime for the form parameter encoding support.
16058         This set of patch add support for the encoding form parameter.
16059         (S2WS): Improve implementation to handle cases where the filename is not
16060         UTF-8 encoded. In this case we default to using the current code page
16061         for the conversion.
16062
16063         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16064         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16065         the constants defined in adaint.h.
16066         (fopen): Add encoding parameter.
16067         (freopen): Idem.
16068
16069         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16070         encoding. This is needed for the Reset routine (freopen low level-call).
16071
16072         * s-fileio.adb (Open): Decode encoding form parameter and set the
16073         corresponding encoding value into AFCB structure.
16074         (Reset): Pass the encoding value to freopen.
16075         (Close): Move the call to Lock_Task to the beginning of the procedure.
16076
16077 2007-04-06  Geert Bosch  <bosch@adacore.com>
16078             Robert Dewar  <dewar@adacore.com>
16079
16080         * i-fortra.ads: Add Double_Complex type.
16081
16082         * impunit.adb: (Is_Known_Unit): New function
16083         Add Gnat.Byte_Swapping
16084         Add GNAT.SHA1
16085         Add new Ada 2005 units
16086         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16087         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16088         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16089         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16090
16091         * impunit.ads (Is_Known_Unit): New function
16092
16093         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16094         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16095         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16096         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16097         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16098         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16099         New files.
16100
16101         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16102
16103         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16104
16105 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16106             Arnaud Charlet  <charlet@adacore.com>
16107
16108         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16109         __gnat_adjust_context_for_raise.
16110         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16111         implementation of floating point operations as native x86 targets.
16112         So the FPU should be initialized in the same way using finit. Fix
16113         floating point operations accuracy issues.
16114         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16115         member in struct sigaction, so as to avoid warning for incompatible
16116         pointer types.
16117
16118 2007-04-06 Serguei Rybin  <rybin@adacore.com>
16119
16120         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16121         switches from previously loaded tree
16122
16123 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16124
16125         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16126         cases where a given dependency has a body or not.
16127         (Write_With_File_Names): New subprogram, common code for the two cases
16128         above.
16129
16130 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16131             Javier Miranda  <miranda@adacore.com>
16132
16133         * lib-xref.ads, lib-xref.adb:
16134         Modify the loop that collects type references, to include interface
16135         types that the type implements. List each of these interfaces when
16136         building the entry for the type.
16137         (Generate_Definition): Initialize component Def and Typ of new entry
16138         in table Xrefs, to avoid to have these components unitialized.
16139         (Output_References): Split Is_Abstract flag into
16140         Is_Abstract_Subprogram and Is_Abstract_Type.
16141         (Generate_Reference): Add barrier to do not generate the warning
16142         associated with Ada 2005 entities with entities generated by the
16143         expander.
16144
16145 2007-04-06  Robert Dewar  <dewar@adacore.com>
16146             Arnaud Charlet  <charlet@adacore.com>
16147             Vincent Celier  <celier@adacore.com>
16148
16149         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16150         Update 'Exception Handling Control' chapter which was outdated.
16151         Minor fix to documentation of -gnatwq
16152         Remove section "Adapting the Run Time to a New C++ Compiler" because
16153         it is now obsolete.
16154         Add passage on need of -nostart-files in some non-ada-main cases.
16155         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16156         Update documentation about Interfacing with C++
16157         Add documentation for new gnatmake switch -p
16158         Add missing protocol part in URLs.
16159         Document -gnatyA
16160         Document pragma Compile_Time_Error
16161         Add documentation for Object_Size indicating that stand alone
16162         objects can have a larger size in some cases.
16163         Add node for GNAT.Byte_Swapping, GNAT.SHA1
16164         Update reference to the Ravenscar profile.
16165         Document pragma Unreferenced_Objects
16166
16167         * gnat-style.texi: Fix typo
16168
16169 2007-04-06  Vincent Celier  <celier@adacore.com>
16170
16171         * mlib.adb (Building_Library): Only output "building a library..." in
16172         verbose mode
16173
16174         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16175         files in verbose mode.
16176
16177         * mlib-utl.adb (Ar): Only output the first object files when not in
16178         verbose mode.
16179         (Gcc): Do not display all the object files if not in verbose mode, only
16180         the first one.
16181
16182 2007-04-06  Robert Dewar  <dewar@adacore.com>
16183
16184         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16185         it no longer destroys the contents of Name_Buffer or Name_Len and
16186         non-standard and invalid names are handled better.
16187         (Get_Decoded_Name_String): Improve performance by using
16188         Name_Has_No_Encodings flag in the name table.
16189         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16190         Used for debugging printouts.
16191
16192 2007-04-06  Robert Dewar  <dewar@adacore.com>
16193             Javier Miranda  <miranda@adacore.com>
16194             Bob Duff  <duff@adacore.com>
16195
16196         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16197         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16198         there is no need to generate always a record_definition_node in case
16199         of synchronized interface types.
16200         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16201         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16202         illegal in Ada 95, in cases where it is legal. Change the warnings to
16203         errors in other cases. Don't give the error unless the "not null"
16204         parses properly. Correct the source position at which the error occurs.
16205         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16206         P_Null_Exclusion, to suppress "not null" warnings.
16207         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16208         associated goto statements.
16209
16210         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16211         of END RECORD
16212
16213         * scans.ads (Type_Token_Location): New flag
16214
16215         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16216         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16217         P_Null_Exclusion, to suppress "not null" warnings.
16218
16219 2007-04-06  Robert Dewar  <dewar@adacore.com>
16220             Javier Miranda  <miranda@adacore.com>
16221             Bob Duff  <duff@adacore.com>
16222             Vincent Celier  <celier@adacore.com>
16223
16224         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16225         (Extensions_Allowed): No longer sets Ada_Version
16226         Entry for pragma Unreferenced_Objects
16227
16228         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16229         system.tasking if pragma priority used in a procedure
16230         (Analyze_Pragma, case Warning): Handle dot warning switches
16231         (Process_Compile_Time_Warning_Or_Error): New procedure
16232         (Analyze_Pragma): Add processing for Compile_Time_Error
16233         Add support for extra arguments External_Name and Link_Name.
16234         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16235         (Process_Import_Or_Interface): Add support for the use of pragma Import
16236         with tagged types.
16237         (Extensions_Allowed): No longer affects Ada_Version
16238         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16239         Is_Abstract_Type. Make sure these are called only when appropriate.
16240         Add processing for pragma Unreferenced_Objects
16241
16242         * snames.h, snames.ads, snames.adb: Add entry for pragma
16243         Compile_Time_Error
16244         Add new standard name Minimum_Binder_Options for new gprmake
16245         Add new standard names for gprmake: Archive_Suffix,
16246         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16247         Library_Support, Library_Version_Options,
16248         Shared_Library_Minimum_Options,
16249         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16250         Change Name_Call to Name_uCall so that it cannot clash with a legal
16251         subprogram name.
16252         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16253         Append C_Plus_Plus to convention identifiers as synonym for CPP
16254         Add new standard names Stack and Builder_Switches
16255         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16256         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16257         Run_Path_Option, Toolchain_Version.
16258         Entry for pragma Unreferenced_Objects
16259
16260         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16261         switches, without repetition of "eD". Make sure that last character of
16262         -gnatep= switch is not taken as -gnat switch character.
16263         Complete rewrite of circuit for handling saving compilation options
16264         Occasioned by need to support dot switchs for -gnatw, but cleans up
16265         things in general.
16266         -gnatX does not affect Ada_Version
16267         Include -gnatyA in -gnatg style switches
16268
16269         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16270         warnings on return objects.
16271         (Warn_On_Useless_Assignment): Exclude warnings on return objects
16272         (Set_Dot_Warning_Switch): New procedure
16273         (Check_References): Add missing case of test for
16274         Has_Pragma_Unreferenced_Objects
16275         (Output_Unreferenced_Messages): Implement effect of new pragma
16276         Unreferenced_Objects, remove special casing of limited controlled
16277         variables.
16278
16279 2007-04-06  Vincent Celier  <celier@adacore.com>
16280
16281         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16282         the default project path, initially done during elaboration of the
16283         package.
16284         If the prefix returned by Sdefault is null, get the prefix from a call
16285         to Executable_Prefix_Path.
16286         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16287         null.
16288
16289         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16290         canonical directory name to open the directory from which files are
16291         retrieved.
16292         (Record_Other_Sources): Idem.
16293         (Locate_Directory): Add the possibility to create automatically missing
16294         directories when Setup_Projects is True.
16295         Call Locate_Directory so that the directory will be created when
16296         Setup_Projects is True, for object dir, library dir, library ALI dir,
16297         library source copy dir and exec dir.
16298
16299         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16300         versions of GNAT.
16301
16302 2007-04-06  Robert Dewar  <dewar@adacore.com>
16303
16304         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16305         Use First/Next_Component_Or_Discriminant
16306         (Analyze_Record_Representation_Clause):
16307         Use First/Next_Component_Or_Discriminant
16308         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16309         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16310         definition if type is unconstrained.
16311         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16312         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16313         Is_Abstract_Subprogram and Is_Abstract_Type.
16314         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16315
16316         * repinfo.adb (List_Record_Info): Use First/
16317         Next_Component_Or_Discriminant.
16318
16319         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16320         New procedure.
16321
16322         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16323         Include -gnatyA in default switches
16324
16325         * opt.ads: (Warn_On_Non_Local_Exception): New flag
16326         (Warn_On_Reverse_Bit_Order): New flag
16327         (Extensions_Allowed): Update the documentation.
16328         (Warn_On_Questionable_Missing_Parens): Now on by default
16329
16330         * usage.adb: Add documentation of -gnatw.x/X switches
16331         Document new -gnatyA style switch
16332         -gnatq warnings are on by default
16333
16334 2007-04-06  Ed Falis  <falis@adacore.com>
16335
16336         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16337         full word is no longer compared twice.
16338
16339 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16340
16341         * sem_ch10.adb (Install_Limited_Context_Clauses.
16342         Expand_Limited_With_Clause): Use a new copy of selector name in the
16343         call to Make_With_Clause. This fixes the tree structure for ASIS
16344         purposes. Nothing is changed in the compiler behaviour.
16345         (Process_Body_Clauses): Handle properly use clauses whose prefix is
16346         a package renaming.
16347         (Install_Limited_With_Clauses): Do not install non-limited view when it
16348         is still incomplete.
16349
16350 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16351             Gary Dismukes  <dismukes@adacore.com>
16352
16353         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16354         when capturing size information, instead of base type, which for a
16355         formal array type will be the unconstrained type.
16356         (Analyze_Formal_Object_Declaration): Add check for illegal default
16357         expressions for a formal in object of a limited type.
16358         (Instantiate_Object): Ditto.
16359         (Check_Formal_Package_Instance): Skip entities that are formal objects,
16360         because they were defaulted in the formal package and no check applies
16361         to them.
16362         (Check_Formal_Package_Instance): Extend conformance check to other
16363         discrete types beyond Integer.
16364         (Process_Default): Copy directly the unmatched formal. A generic copy
16365         has already been performed in Analyze_Formal_Package.
16366         (Analyze_Associations): If a formal subprogram has no match, check for
16367         partial parametrization before looking for a default, to prevent
16368         spurious errors.
16369         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16370         not set the instantiation environment before analyzing the actuals.
16371         Fixes regression on 8515-003 with implementation of AI-133.
16372         Set_Instance_Env checks whether the generic unit is a predefined
16373         unit, in which case the instance must be analyzed with the latest Ada
16374         mode. This setting must take place after analysis of the actuals,
16375         because the actuals must be analyzed and frozen in the Ada mode extant
16376         outside of the current instantiation.
16377         (Save_Env, Restore_Env): Preserve and restore the configuration
16378         parameters so that predefined units can be compiled in the proper Ada
16379         mode.
16380         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16381         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16382         and Is_Abstract_Type.
16383         (Analyze_Formal_Package): For better error recovery, Add exception
16384         handler to catch Instantion_Error, which can be raised in
16385         Analyze_Associations
16386
16387 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16388             Bob Duff  <duff@adacore.com>
16389             Gary Dismukes  <dismukes@adacore.com>
16390
16391         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16392         prefix type is a discriminated subtype of the type of the formal.
16393         (Analyze_Allocator): Collect all coextensions regardless of the context.
16394         Whether they can be allocated statically is determined in exp_ch4.
16395         (Analyze_Selected_Component): If the prefix is a limited view and the
16396         non-limited view is available, use the non-limited one.
16397         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16398         therefore illegal), suggest a qualified expression rather than a type
16399         conversion, because a type conversion would be illegal in this context.
16400         (Anayze_Allocator): Trace recursively all nested allocators so that all
16401         coextensions are on the corresponding list for the root. Do no mark
16402         coextensions if the root allocator is within a declaration for a stack-
16403         allocated object, because the access discriminants will be allocated on
16404         the stack as well.
16405         (Analyze_Call): Remove restriction on calls to limited functions for the
16406         cases of generic actuals for formal objects, defaults for formal objects
16407         and defaults for record components.
16408         (Analyze_Allocator): Before analysis, chain coextensions on the proper
16409         element list. Their expansion is delayed until the enclosing allocator
16410         is processed and its finalization list constructed.
16411         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16412         for an operation with the given name among the primitive operations of
16413         the corresponding record type.
16414         (Analyze_Selected_Component): If the prefix is a task type that
16415         implements an interface, and there is no entry with the given name,
16416         check whether there is another primitive operation (e.g. a function)
16417         with that name.
16418         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16419         properly the indexing of a function call written in prefix form, where
16420         the function returns an array type, and all parameters of the function
16421         except the first have defaults.
16422         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16423         the original operands, rather than relocating them, for efficiency and
16424         to work properly when an operand is overloaded.
16425         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16426         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16427         (Analyze_Selected_Component): If the prefix is a private extension, only
16428         scan the visible components, not those of the full view.
16429         (Try_Primitive_Operation): If the operation is a procedure, collect all
16430         possible interpretations, as for a function, because in the presence of
16431         classwide parameters several primitive operations of the type can match
16432         the given arguments.
16433
16434 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16435             Robert Dewar  <dewar@adacore.com>
16436
16437         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16438         tag-indeterminate call to an abstract function, when the left-hand side
16439         is not classwide.
16440         (Analyze_Loop_Statement): Improve detection of infinite loops
16441
16442 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16443             Thomas Quinot  <quinot@adacore.com>
16444
16445         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16446         out of Analyze_Package_Declaration, because processing must be applied
16447         to package bodies as well, for deferred constants completed by pragmas.
16448         (Analyze_Package_Declaration): When the package declaration being
16449         analyzed does not require an explicit body, call Check_Completion.
16450         (May_Need_Implicit_Body): An implicit body is required when a package
16451         spec contains the declaration of a remote access-to-classwide type.
16452         (Analyze_Package_Body): If the package contains RACWs, append the
16453         pending subprogram bodies generated by exp_dist at the end of the body.
16454         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16455         Is_Abstract_Subprogram and Is_Abstract_Type.
16456         (Preserve_Full_Attributes): The full entity list is not an attribute
16457         that must be preserved from full to partial view.
16458
16459         * sem_dist.adb (Add_RAS_Dereference_TSS):
16460         Change primitive name to _Call so it cannot clash with any legal
16461         identifier, and be special-cased in Check_Completion.
16462         Mark the full view of the designated type for the RACW associated with
16463         a RAS as Comes_From_Source to get proper view switching when installing
16464         private declarations.
16465         Provite a placeholder nested package body along with the nested spec
16466         to have a place for Append_RACW_Bodies to generate the calling stubs
16467         and stream attributes.
16468
16469 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16470             Robert Dewar  <dewar@adacore.com>
16471
16472         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16473         that is a limited view, check the non-limited view if available.
16474         (Undefined): Refine error message for missing with of Text_IO
16475         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16476         to distinguish real missing with cases.
16477         Fix format of all missing with messages
16478         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16479         renaming as body when renamed entity is abstract.
16480
16481 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16482             Javier Miranda  <miranda@adacore.com>
16483
16484         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16485         predicate recursive, to handle complex expressions on literals whose
16486         spurious ambiguity comes from the abstract interpretation of some
16487         subexpression.
16488         (Interface_Present_In_Ancestor): Add support to concurrent record
16489         types.
16490         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16491         Is_Abstract_Subprogram and Is_Abstract_Type.
16492
16493 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16494             Javier Miranda  <miranda@adacore.com>
16495
16496         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16497         dereference of a local object R created as a reference to another
16498         object O, use the access level of O.
16499         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16500         rather than local Same_Formal_Type, to check whether protected operation
16501         overrides an inherited one.
16502         (Same_Formal_Type): New predicate, used when matching signatures of
16503         overriding synchronized operations, to handle the case when a formal
16504         has a type that is a generic actual.
16505         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16506         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16507         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16508         syntactic ambiguities involving indexing of function calls that return
16509         arrays.
16510         (Abstract_Interface_List): New subprogram that returns the list of
16511         abstract interfaces associated with a concurrent type or a
16512         concurrent record type.
16513         (Interface_Present_In_Parent): New subprogram used to check if a
16514         given type or some of its parents implement a given interface.
16515         (Collect_Abstract_Interfaces): Add support for concurrent types
16516         with interface types.
16517         (Has_Abstract_Interfaces): Add support for concurrent types with
16518         interface types.
16519         (Is_Parent): New subprogram that determines whether E1 is a parent
16520         of E2. For a concurrent type its parent is the first element of its
16521         list of interface types; for other types this function provides the
16522         same result than Is_Ancestor.
16523         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16524         (Collect_Synchronized_Interfaces): Removed because the subprogram
16525         Collect_Abstract_Interfaces provides this functionality.
16526         (Collect_Abstract_Interfaces): Minor update to give support to
16527         concurrent types and thus avoid undesired code duplication.
16528         (Get_Subprogram_Entity): Handle entry calls.
16529         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16530         entry calls.
16531         (Enter_Name): Do not give -gnatwh hiding warning for record component
16532         entities, they never result in hiding.
16533
16534 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16535             Robert Dewar  <dewar@adacore.com>
16536
16537         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16538         to chain nested components that are allocators for access discriminants
16539         of the enclosing object.
16540         Add N_Push and N_Pop nodes
16541         New field Exception_Label added
16542         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16543         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16544         (Is_Coextension): New flag for allocators, to mark allocators that
16545         correspond to access discriminants of dynamically allocated objects.
16546         (N_Block_Statement): Document the fact that the corresponding entity
16547         can be an E_Return_Statement.
16548         (Is_Coextension): New flag for allocators.
16549         Remove all code for DSP option
16550
16551         * sprint.ads, sprint.adb: Display basic information for class_wide
16552         subtypes. Add handling of N_Push and N_Pop nodes
16553
16554 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16555
16556         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16557         before propagating exception.
16558
16559 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16560
16561         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16562         an address always within the call instruction from a return address.
16563
16564 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16565             Eric Botcazou  <botcazou@adacore.com>
16566
16567         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16568         expression with a COMPOUND_EXPR including the call instead of emitting
16569         the call directly here.
16570         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16571         high bound is constant and the slice is empty.  Tidy.
16572         (tree_transform, case N_Op_Not): Handle properly the case where the
16573         operation applies to a private type whose full view is a modular type.
16574         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16575         Address_Clause, use the associated Expression as the GNAT tree
16576         representing the choice value to ensure the corresponding GCC tree is
16577         of the proper kind.
16578         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16579         instead of just the operands, as the base GCC stabilize_reference does.
16580         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16581         requested; otherwise fail.
16582         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16583
16584 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16585
16586         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16587         implementation of UI_Div.
16588         (UI_Div): Reimplement as a call to UI_Div_Rem.
16589         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16590         remainder, avoiding the cost of a multiplication and a subtraction.
16591         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16592         provides both quotient and remainder in a single computation.
16593         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16594         functions for uint.
16595         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16596         is undefined if the given n is not inversible.
16597
16598 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16599
16600         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16601         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16602         opcodes.
16603
16604 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16605             Olivier Hainque  <hainque@adacore.com>
16606
16607         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16608         when updating the contents of the old pointer to an unconstrained array.
16609         (end_subprog_body): Set error_gnat_node to Empty.
16610         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16611         (unchecked_convert): For subtype to base type conversions, require that
16612         the source be a subtype if it is an integer type.
16613         (builtin_decls): New global, vector of available builtin functions.
16614         (gnat_pushdecl): Add global builtin function declaration nodes to the
16615         builtin_decls list.
16616         (gnat_install_builtins): Adjust comments.
16617         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16618         calling gnat_pushdecl, so that it knows when it handed a builtin
16619         function declaration node.
16620         (builtin_decl_for): Search the builtin_decls list.
16621
16622 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16623
16624         * s-stchop-vxworks.adb:
16625         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16626
16627 2007-04-06  Robert Dewar  <dewar@adacore.com>
16628             Arnaud Charlet  <charlet@adacore.com>
16629
16630         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16631
16632         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16633         of files
16634         Add mention of -Sev (set initialize_scalars option from environment
16635         variable at run time) in gnatbind usage message.
16636
16637         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16638
16639         * fname-uf.ads: Minor comment fix
16640
16641         * osint.ads: Change pragma Elaborate to Elaborate_All
16642
16643         * par-load.adb: Add documentation.
16644
16645         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16646
16647         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16648
16649         * s-secsta.ads: Extra comments
16650
16651         * s-soflin.ads: Minor comment fixes
16652
16653         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16654
16655         * s-wchcon.ads: Minor comment addition
16656
16657         * treepr.adb: Minor change in message
16658         (Print_Name,Print_Node): Make these debug printouts more robust: print
16659         "no such..." instead of crashing on bad input.
16660
16661 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
16662
16663         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16664         instead of gnat_signed_or_unsigned_type.
16665         * utils.c (gnat_signed_or_unsigned_type): Remove.
16666         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16667         * gigi.h (gnat_signed_or_unsigned_type): Remove
16668
16669 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16670
16671         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16672         fold with the result of buildN.
16673         * decl.c (gnat_to_gnu_entity): Likewise.
16674         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16675         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16676         Likewise.
16677         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16678         nonbinary_modular_operation, build_binary_op, build_unary_op,
16679         build_cond_expr): Likewise.
16680
16681         * utils.c (convert): Use fold_build1 when casting values to void.
16682         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16683         fold_convert instead of convert when appropriate.
16684
16685 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16686
16687         * Make-lang.in: Add install-pdf target as copied from
16688         automake v1.10 rules.
16689
16690 2007-02-28  Andreas Schwab  <schwab@suse.de>
16691
16692         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16693         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16694         (doc/gnat-style.info): Likewise.
16695
16696 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16697
16698         * gnat-style.texi: Standardize title page.
16699         * gnat_rm.texi: Likewise.
16700         * gnat_ugn.texi: Likewise.
16701
16702 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16703
16704         * decl.c (annotate_value): Adjust for refactoring of tree_map
16705         hierarchy.
16706
16707 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16708
16709         * decl.c (annotate_value): Adjust for refactoring of tree_map
16710         hierarchy.
16711
16712 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16713
16714         PR ada/18819
16715         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16716         untagged derived type, add hidden components to keep discriminant
16717         layout consistent, when a given discriminant of the derived type
16718         constraints several discriminants of the parent type.
16719
16720 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16721             Sandra Loosemore  <sandra@codesourcery.com>
16722
16723         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16724         build the call expression.
16725         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16726         * utils.c (max_size) <tcc_exceptional>: Delete.
16727         <tcc_vl_exp>: New case.
16728         <tcc_expression>: Delete CALL_EXPR subcase.
16729         (build_global_cdtor): Use build_call_nary instead of build3.
16730         * utils2.c (build_call_1_expr): Likewise.
16731         (build_call_2_expr): Likewise.
16732         (build_call_0_expr): Likewise.
16733         (build_call_alloc_dealloc): Likewise.
16734
16735 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16736
16737         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16738         get_action_description_for): Replace _Unwind_Word with _uleb128_t
16739         and _Unwind_SWord with _sleb128_t.
16740
16741 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16742
16743         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16744         * decl.c: Include gt-ada-decl.h.
16745         (annotate_value_cache): New.
16746         (annotate_value): Use it instead of TREE_COMPLEXITY.
16747
16748 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16749
16750         * misc.c, utils2.c: Fix comment typos.
16751
16752 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16753
16754         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16755         TREE_CONSTANT_OVERFLOW.
16756         (allocatable_size_p, annotate_value): Likewise.
16757         * trans.c (gnat_to_gnu): Likewise.
16758         * utils.c (unchecked_convert): Likewise.
16759         * utils2.c (build_simple_component_ref): Likewise.
16760
16761 2007-01-23  Richard Guenther  <rguenther@suse.de>
16762
16763         PR bootstrap/30541
16764         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16765         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16766         (gnatboot3): Likewise.
16767         (GNATBIND): Do not define.
16768         * Makefile.in (GNATBIND): Do not define.
16769
16770 2007-01-08  Richard Guenther  <rguenther@suse.de>
16771
16772         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16773         * trans.c (gnat_to_gnu): Likewise.
16774
16775 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16776
16777         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16778         * adaint.c: Likewise.
16779
16780 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16781
16782         Merge from gimple-tuples-branch:
16783         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16784
16785         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16786         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16787         GIMPLE_MODIFY_STMT.
16788
16789 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16790
16791         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16792         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16793         Fix typos.
16794
16795 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16796
16797         PR ada/27936
16798         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16799         if the initializer takes into account the padding.
16800
16801 2006-11-11  Richard Guenther  <rguenther@suse.de>
16802
16803         * trans.c (maybe_stabilize_reference): Remove handling of
16804         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16805
16806 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16807
16808         PR ada/29707
16809         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16810         (To_Target_Priority): New function.
16811
16812 2006-10-31  Robert Dewar  <dewar@adacore.com>
16813
16814         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16815         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16816         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16817         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16818         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16819         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16820         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16821         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16822         a-szbzha.adb: Minor reformatting. Fix header.
16823
16824         * a-numaux-x86.adb: Add parentheses for use of unary minus
16825         * a-ngcefu.adb: Supply missing parentheses for unary minus
16826         * a-ngcoty.adb: Add parens for use of unary minus
16827         * a-ngelfu.adb: Add missing parens for unary minus
16828         * a-tifiio.adb: Add parentheses for uses of unary minus
16829
16830 2006-10-31  Robert Dewar  <dewar@adacore.com>
16831             Bob Duff  <duff@adacore.com>
16832             Ed Schonberg  <schonberg@adacore.com>
16833
16834         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16835         with multiplying operator.
16836         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16837         pointer whether the context expects "any real type".
16838         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16839         universal_fixed "*" and "/" operators when they are used in a context
16840         that expects any real type. Also set the type of the node to
16841         Universal_Real in this case, because downstream processing requires it
16842         (mainly static expression evaluation).
16843         Reword some continuation messages
16844         Add some \\ sequences to continuation messages
16845         (Resolve_Call): Refine infinite recursion case. The test has been
16846         sharpened to eliminate some false positives.
16847         Check for Current_Task usage now includes entry barrier, and is now a
16848         warning, not an error.
16849         (Resolve): If the call is ambiguous, indicate whether an interpretation
16850         is an inherited operation.
16851         (Check_Aggr): When resolving aggregates, skip associations with a box,
16852         which are priori correct, and will be replaced by an actual default
16853         expression in the course of expansion.
16854         (Resolve_Type_Conversion): Add missing support for conversion from
16855         a class-wide interface to a tagged type. Minor code cleanup.
16856         (Valid_Tagged_Converion): Add support for abstact interface type
16857         conversions.
16858         (Resolve_Selected_Component): Call Generate_Reference here rather than
16859         during analysis, and use May_Be_Lvalue to distinguish read/write.
16860         (Valid_Array_Conversion): New procedure, abstracted from
16861         Valid_Conversion, to incorporate accessibility checks for arrays of
16862         anonymous access types.
16863         (Valid_Conversion): For a conversion to a numeric type occurring in an
16864         instance or inlined body, no need to check that the operand type is
16865         numeric, since this has been checked during analysis of the template.
16866         Remove legacy test for scope name Unchecked_Conversion.
16867
16868         * sem_res.ads: Minor reformatting
16869
16870         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16871         (PE_Current_Task_In_Entry_Body): New exception code
16872         (SE_Restriction_Violation): Removed, not used
16873
16874         * a-except.ads:  Update comments.
16875
16876         * types.h, types.ads: Add definition for Validity_Check
16877         (PE_Current_Task_In_Entry_Body): New exception code
16878         (SE_Restriction_Violation): Removed, not used
16879
16880 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16881
16882         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16883         error status.
16884
16885 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16886             Jose Ruiz  <ruiz@adacore.com>
16887
16888         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16889         part of Ada.Calendar: all subprogram raise Unimplemented.
16890         (Split_W_Offset): Temp function body, raising Unimplemented
16891
16892         * a-calend.ads, a-calend-vms.ads:
16893         Add imported variable Invalid_TZ_Offset used to designate targets unable
16894         to support time zones.
16895         (Unimplemented): Temporary function raised by the body of new
16896         subprograms below.
16897         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16898         unit provides handling of leap seconds and is used by the new Ada 2005
16899         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16900         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16901         version returns an extra value which is the offset to UTC.
16902
16903         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16904         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16905         (Split_W_Offset): New function body.
16906         (Time_Of): When a date is close to UNIX epoch, compute the time for
16907         that date plus one day (that amount is later substracted after
16908         executing mktime) so there are no problems with time zone adjustments.
16909
16910         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16911
16912         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16913         a-catizo.ads, a-catizo.adb: New files.
16914
16915         * impunit.adb: Add new Ada 2005 entries
16916
16917         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16918         Rename all occurences of "__gnat_localtime_r" to
16919         "__gnat_localtime_tzoff".
16920         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16921         zone data and calculate the GMT offset.
16922         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16923         Use the field "tm_gmtoff" to extract the GMT offset.
16924         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16925         the external variable "timezone" to calculate the GMT offset.
16926
16927 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16928             Jose Ruiz  <ruiz@adacore.com>
16929
16930         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16931         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16932         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16933         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16934         System.Any_Priority to a POSIX priority on the target.
16935
16936         * system-linux-ia64.ads:
16937         Extend range of Priority types on Linux to use the whole range made
16938         available by the system.
16939
16940         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16941         function maps from System.Any_Priority to a POSIX priority on the
16942         target.
16943         (PTHREAD_PRIO_PROTECT): Set real value.
16944         (PTHREAD_PRIO_INHERIT): Now a function.
16945         (SIGCPUFAIL): New signal.
16946         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16947         are documented as reserved by the OS.
16948
16949         * system-aix.ads: Use the full range of priorities provided by the
16950         system on AIX.
16951
16952         * s-taprop-posix.adb: Call new function To_Target_Priority.
16953         (Set_Priority): Take into account Task_Dispatching_Policy and
16954         Priority_Specific_Dispatching pragmas when determining if Round Robin
16955         must be used for scheduling the task.
16956
16957         * system-linux-x86_64.ads, system-linux-x86.ads,
16958         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16959         the whole range made available by the system.
16960
16961         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16962         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16963         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16964         when deallocating the TCB in order to avoid potential references to
16965         deallocated data.
16966         (Set_Priority): Take into account Task_Dispatching_Policy and
16967         Priority_Specific_Dispatching pragmas when determining if Round Robin
16968         or FIFO within priorities must be used for scheduling the task.
16969
16970         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16971         the Thread field (to be used internally by the run-time system) and the
16972         kernel-level task id in the LWP field (to be used by the debugger).
16973         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16974         instance, and propagate the current task options to the spawned task.
16975         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16976         (Initialize): Set Round Robin dispatching when the corresponding pragma
16977         is in effect.
16978
16979 2006-10-31  Robert Dewar  <dewar@adacore.com>
16980
16981         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16982         system-linux-hppa.ads, system-hpux-ia64.ads,
16983         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16984         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16985         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16986         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16987         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16988         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16989         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16990         Default_Bit_Order) to kill constant condition warnings for references
16991         to this switch.
16992
16993 2006-10-31  Vincent Celier  <celier@adacore.com>
16994             Eric Botcazou  <ebotcazou@adacore.com>
16995
16996         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16997         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16998         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16999         Ext_To, when building the library file name
17000
17001         * mlib-tgt-vxworks.adb: ditto.
17002         (Get_Target_Suffix): Add support for x86 targets.
17003
17004         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17005
17006         * mlib-tgt-darwin.adb:
17007         Use Append_To, instead of Ext_To, when building the library file name
17008         (Flat_Namespace): New global variable.
17009         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17010         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17011         (Link_Shared_Libgcc): Delete.
17012         (Build_Dynamic_Library): Adjust for above changes.
17013         Use Opt package.
17014         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17015
17016 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
17017
17018         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17019         (Initialize): Add type conversions required by above change.
17020
17021 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17022
17023         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
17024         (getpid): New body for this function that uses the underlying taskIdSelf
17025         function for VxWorks 5 and VxWorks 6 in kernel mode.
17026         (unsigned_int): New type, modular to allow logical bit operations.
17027         (taskOptionsGet): New imported function.
17028
17029         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17030         field to be compliant with the type used by the corresponding operating
17031         system primitive.
17032
17033 2006-10-31  Pascal Obry  <obry@adacore.com>
17034             Eric Botcazou  <ebotcazou@adacore.com>
17035             Vincent Celier  <celier@adacore.com>
17036
17037         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17038         ASCII version of the registry API. This is needed as the GNAT runtime
17039         is now UNICODE by default.
17040         Include version.h.
17041         (get_gcc_version): Do not hardcode the return value.
17042         (__gnat_file_time_name): On Windows properly set the default returned
17043         value to -1 which corresponds to Invalid_Time.
17044         (__gnat_fopen): New routine. A simple wrapper on all plateforms
17045          except on Windows where it does conversion for unicode support.
17046         (__gnat_freopen): Idem.
17047         (__gnat_locate_exec_on_path): If environment variable PATH does not
17048         exist, return a NULL pointer
17049
17050         * adaint.h: (__gnat_fopen): Declare.
17051         (__gnat_freopen): Likewise.
17052
17053         * mingw32.h (_tfreopen): Define this macro here for older MingW
17054         version.
17055         Activate the unicode support on platforms using a MingW runtime
17056         version 3.9 or newer.
17057
17058         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17059         This is needed for proper unicode support on Windows.
17060         (freopen): Idem.
17061
17062 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
17063             Nicolas Setton  <setton@adacore.com>
17064             Olivier Hainque  <hainque@adacore.com>
17065             Gary Dismukes  <dismukes@adacore.com>
17066
17067         * gigi.h: (tree_code_for_record_type): Declare.
17068         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17069         (get_global_renaming_pointers): Rename to
17070         invalidate_global_renaming_pointers.
17071         (static_ctors): Delete.
17072         (static_dtors): Likewise.
17073         (gnat_write_global_declarations): Declare.
17074         (create_var_decl): Adjust descriptive comment to indicate that the
17075         subprogram may return a CONST_DECL node.
17076         (create_true_var_decl): Declare new function, similar to
17077         create_var_decl but forcing the creation of a VAR_DECL node.
17078         (get_global_renaming_pointers): Declare.
17079         (add_global_renaming_pointer): Likewise.
17080
17081         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17082
17083         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17084         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17085         processing.
17086         (gnat_to_gnu_entity): Remove From_With_Type from computation for
17087         imported_p.
17088         <E_Access_Type>: Use the Non_Limited_View as the full view of the
17089         designated type if the pointer comes from a limited_with clause.  Make
17090         incomplete designated type if it is in the main unit and has a freeze
17091         node.
17092         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17093         Underlying_Full_View similarly.  Return earlier if the full view already
17094         has an associated tree.
17095         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17096         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17097         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17098         reference type built for objects with an address clause.
17099         Use create_true_var_decl with const_flag set for
17100         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17101         TREE_READONLY set.
17102         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17103         for Character and Wide_Character types. This info is read by the
17104         dwarf-2 writer, and is needed to be able to use the command "ptype
17105         character" in the debugger.
17106         (gnat_to_gnu_entity): When generating a type representing
17107         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17108         so that debug writers can distinguish it from ordinary integers.
17109         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17110         addition to TREE_READONLY to assert the constantness of variables for
17111         elaboration purposes.
17112         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17113         parameters to call new Einfo function First_Formal_With_Extras.
17114         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17115         protected type with its corresponding discriminant, to obtain a usable
17116         declaration
17117         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17118         for a multiple elaboration of the "equivalent" type.
17119         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17120         into record_global_renaming_pointer.
17121         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17122         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17123         <E_Array_Subtype>: Likewise.
17124         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17125         incomplete subtypes and incomplete subtypes of incomplete types visible
17126         through a limited with clause.
17127         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17128         the base index type for the maximum size of the array only if they are
17129         constant.
17130         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17131         expression into a SAVE_EXPR if stabilization failed.
17132
17133         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17134         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17135         by lower level compilation passes.
17136         (gnat_genericize): New function, lowering a function body to GENERIC.
17137         Turn the type of RESULT_DECL into a real reference type if the decl
17138         has been marked DECL_BY_REFERENCE, and adjust references to the latter
17139         accordingly.
17140         (gnat_genericize_r): New function. Tree walking callback for
17141         gnat_genericize.
17142         (convert_from_reference, is_byref_result): New functions. Helpers for
17143         gnat_genericize_r.
17144         (create_type_decl): Call gnat_pushdecl before calling
17145         rest_of_decl_compilation, to make sure that field TYPE_NAME of
17146         type_decl is properly set before calling the debug information writers.
17147         (write_record_type_debug_info): The heuristics which compute the
17148         alignment of a field in a variant record might not be accurate. Add a
17149         safety test to make sure no alignment is set to a smaller value than
17150         the alignment of the field type.
17151         (make_dummy_type): Use the Non_Limited_View as the underlying type if
17152         the type comes from a limited_with clause. Do not loop on the full view.
17153         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17154         (dummy_node_table): New global variable, moved from decl.c.
17155         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17156         (save_gnu_tree): Use above macros.
17157         (get_gnu_tree): Likewise.
17158         (present_gnu_tree): Likewise.
17159         (init_dummy_type): New function, moved from decl.c. Use above macros.
17160         (make_dummy_type): Likewise.
17161         (tree_code_for_record_type): New function extracted from make_dummy_type
17162         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17163         (static_ctors): Change it to a vector, make static.
17164         (static_dtors): Likewise.
17165         (end_subprog_body): Adjust for above change.
17166         (build_global_cdtor): Moved from trans.c.
17167         (gnat_write_global_declarations): Emit global constructor and
17168         destructor, and call cgraph_optimize before emitting debug info for
17169         global declarations.
17170         (global_decls): New global variable.
17171         (gnat_pushdecl): Store the global declarations in global_decls, for
17172         later use.
17173         (gnat_write_global_declarations): Emit debug information for global
17174          declarations.
17175         (create_var_decl_1): Former create_var_decl, with an extra argument to
17176          state whether the creation of a CONST_DECL is allowed.
17177         (create_var_decl): Behavior unchanged. Now a wrapper around
17178         create_var_decl_1 allowing CONST_DECL creation.
17179         (create_true_var_decl): New function, similar to create_var_decl but
17180         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17181         (create_field_decl): Do not always mark the field as addressable
17182         if its type is an aggregate.
17183         (global_renaming_pointers): New static variable.
17184         (add_global_renaming_pointer): New function.
17185         (get_global_renaming_pointers): Likewise.
17186
17187         * misc.c (gnat_dwarf_name): New function.
17188         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17189         (gnat_post_options): Add comment about structural alias analysis.
17190         (gnat_parse_file): Do not call cgraph_optimize here.
17191         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17192
17193         * trans.c (process_freeze_entity): Don't abort if we already have a
17194         non dummy GCC tree for a Concurrent_Record_Type, as it might
17195         legitimately have been elaborated while processing the associated
17196         Concurrent_Type prior to this explicit freeze node.
17197         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17198         exception handler volatile if it is of variable size.
17199         (process_type): Remove bypass for types coming from a limited_with
17200         clause.
17201         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17202         actual, convert the corresponding gnu_actual to the real destination
17203         type when necessary.
17204         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17205         originally TREE_READONLY but whose elaboration cannot be performed
17206         statically.
17207         Part of fix for F504-021.
17208         (tree_transform, subprogram cases): Change loops on formal parameters to
17209         call new Einfo function First_Formal_With_Extras.
17210         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17211         stemming from type conversion for the lhs.
17212         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17213         number of bits per unit for components of records.
17214         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17215         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17216         with At_End_Proc after the SJLJ EH cleanup.
17217         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17218         compilation unit.
17219         (elaborate_all_entities): Do not retest type_annotate_only.
17220         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17221         result type of an abstract subprogram, which may be an itype associated
17222         with an anonymous access result (related to AI-318-02).
17223         (build_global_cdtor): Move to utils.c.
17224         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17225         this choice is not a null tree nor an integer constant.
17226         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17227         on the body of elaboration routines instead of mark_unvisited.
17228         (add_stmt): Do not mark the tree.
17229         (add_decl_expr): Tweak comment.
17230         (mark_unvisited): Delete.
17231         (unshare_save_expr): New static function.
17232         (call_to_gnu): Issue an error when making a temporary around a
17233         procedure call because of non-addressable actual parameter if the
17234         type of the formal is by_reference.
17235         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17236         after building the elaboration routine.
17237
17238 2006-10-31  Bob Duff  <duff@adacore.com>
17239
17240         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17241         as finalization-started, so we can raise Program_Error on 'new'.
17242
17243         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17244         collection has already started.
17245
17246         * s-finimp.ads (Collection_Finalization_Started): Added new special
17247         flag value for indicating that a collection's finalization has started.
17248
17249         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17250         create a task whose master has already waited for dependent tasks.
17251
17252 2006-10-31  Robert Dewar  <dewar@adacore.com>
17253
17254         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17255
17256         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17257         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17258         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17259         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17260         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17261         a-except-2005.ads: Add pragma Preelaborable_Warning
17262
17263 2006-10-31  Robert Dewar  <dewar@adacore.com>
17264             Jose Ruiz  <ruiz@adacore.com>
17265
17266         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17267
17268         * ali.adb (Get_Name): Properly handle scanning of wide character names
17269         encoded with brackets notation.
17270         (Known_ALI_Lines): Add S lines to this list.
17271         (Scan_ALI): Acquire S (priority specific dispatching) lines.
17272         New flag Elaborate_All_Desirable in unit table
17273
17274         * ali.ads (Priority_Specific_Dispatching): Add this range of
17275         identifiers to be used for Priority_Specific_Dispatching table entries.
17276         (ALIs_Record): Add First_Specific_Dispatching and
17277         Last_Specific_Dispatching that point to the first and last entries
17278         respectively in the priority specific dispatching table for this unit.
17279         (Specific_Dispatching): Add this table for storing each S (priority
17280         specific dispatching) line encountered in the input ALI file.
17281         New flag Elaborate_All_Desirable in unit table
17282
17283         * bcheck.adb: (Check_Configuration_Consistency): Add call to
17284         Check_Consistent_Dispatching_Policy.
17285         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17286         verifying that the use of Priority_Specific_Dispatching,
17287         Task_Dispatching_Policy, and Locking_Policy is consistent across the
17288         partition.
17289
17290         * bindgen.adb: (Public_Version_Warning): function removed.
17291         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17292         required information from ALI files in order to initialize the table
17293         containing the specific dispatching policy.
17294         (Gen_Adainit_Ada): Generate the variables required for priority specific
17295         dispatching entries (__gl_priority_specific_dispatching and
17296         __gl_num_specific_dispatching).
17297         (Gen_Adainit_C): Generate the variables required for priority specific
17298         dispatching entries (__gl_priority_specific_dispatching and
17299         __gl_num_specific_dispatching).
17300         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17301         pragma entries.
17302         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17303         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17304         (Tab_To): Removed.
17305         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17306         a call to gnat_set_globals.
17307         Generate a string containing settings from
17308         Priority_Specific_Dispatching pragma entries.
17309         (Gen_Object_Files_Options): Do not include the runtime libraries when
17310         pragma No_Run_Time is specified.
17311
17312         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17313         consistency with s-intman-posix.adb.
17314         (__gnat_error_handler, case FreeBSD): Account for the fact that the
17315         handler is installed with SA_SIGINFO.
17316         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17317         FreeBSD ZCX support, copied from Linux version.
17318         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17319         sigfillset, and sigemptyset so the routines defined by MaRTE.
17320         (__gl_priority_specific_dispatching): Add this variable that stores the
17321         string containing priority specific dispatching policies in the
17322         partition.
17323         (__gl_num_specific_dispatching): Add this variable that indicates the
17324         highest priority for which a priority specific dispatching pragma
17325         applies.
17326         (__gnat_get_specific_dispatching): Add this routine that returns the
17327         priority specific dispatching policy, as set by a
17328         Priority_Specific_Dispatching pragma appearing anywhere in the current
17329         partition. The input argument is the priority number, and the result
17330         is the upper case first character of the policy name.
17331         (__gnat_set_globals): Now a dummy function.
17332         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17333         mechargs instead of sigargs, as the latter can be retrieved from the
17334         former and sigargs is not what we want on ia64.
17335         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17336         mechargs argument.
17337         (__gnat_adjust_context_for_raise, ia64-vms): New function.
17338         (tasking_error): Remove unused symbol.
17339         (_abort_signal): Move this symbol to the IRIX specific part since this
17340         is the only target that uses this definition.
17341         (Check_Abort_Status): Move this symbol to the IRIX specific part since
17342         this is the only target that uses this definition.
17343         (Lock_Task): Remove unused symbol.
17344         (Unlock_Task): Remove unused symbol.
17345
17346         * lib-writ.adb (Write_ALI): Output new S lines for
17347         Priority_Specific_Dispatching pragmas.
17348         Implement new flag BD for elaborate body desirable
17349
17350         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17351         (Specific_Dispatching): Add this table for storing the entries
17352         corresponding to Priority_Specific_Dispatching pragmas.
17353         Document new BD flag for elaborate body desirable
17354
17355         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17356         of known pragmas.
17357
17358 2006-10-31  Javier Miranda  <miranda@adacore.com>
17359
17360         * a-tags.ads, a-tags.adb:
17361         (Predefined_DT): New function that improves readability of the code.
17362         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17363         Inherit_DT): Use the new function Predefined_DT to improve code
17364         readability.
17365         (Register_Interface_Tag): Update assertion.
17366         (Set_Interface_Table): Update assertion.
17367         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17368         determining progenitor interfaces in Tags.
17369         (Inherit_CPP_DT): New subprogram.
17370
17371         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17372         analysis of the thunk code.
17373         (Expand_Interface_Conversion): Handle run-time conversion of
17374         access to class wide types.
17375         (Expand_Dispatching_Call): When generating the profile for the
17376         subprogram itype for a dispatching operation, properly terminate the
17377         formal parameters chaind list (set the Next_Entity of the last formal
17378         to Empty).
17379         (Collect_All_Interfaces): Removed. This routine has been moved to
17380         sem_util and renamed as Collect_All_Abstract_Interfaces.
17381         (Set_All_DT_Position): Hidden entities associated with abstract
17382         interface primitives are not taken into account in the check for
17383         3.9.3(10); this check is done with the aliased entity.
17384         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17385         interfacing with CPP by default.
17386         (Expand_Interface_Conversion): Add missing support for static conversion
17387         from an interface to a tagged type.
17388         (Collect_All_Interfaces): Add new out formal containing the list of
17389         abstract interface types to cleanup the subprogram Make_DT.
17390         (Make_DT): Update the code to generate the table of interfaces in case
17391         of abstract interface types.
17392         (Is_Predefined_Dispatching_Alias): New function that returns true if
17393         a primitive is not a predefined dispatching primitive but it is an
17394         alias of a predefined dispatching primitive.
17395         (Make_DT): If the ancestor of the type is a CPP_Class and we are
17396         compiling under full ABI compatibility mode we avoid the generation of
17397         calls to run-time services that fill the dispatch tables because under
17398         this mode we currently inherit the dispatch tables in the IP subprogram.
17399         (Write_DT): Emit an "is null" indication for a null procedure primitive.
17400         (Expand_Interface_Conversion): Use an address as the type of the formal
17401         of the internally built function that handles the case in which the
17402         target type is an access type.
17403
17404 2006-10-31  Robert Dewar  <dewar@adacore.com>
17405
17406         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17407
17408 2006-10-31  Robert Dewar  <dewar@adacore.com>
17409
17410         * bindusg.ads, bindusg.adb:
17411         Change to package and rename procedure as Display, which
17412         now ensures that it only outputs usage information once.
17413
17414 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17415
17416         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17417         using RTPs.
17418
17419         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17420         when using RTPs.
17421
17422 2006-10-31  Robert Dewar  <dewar@adacore.com>
17423             Ed Schonberg  <schonberg@adacore.com>
17424
17425         * treepr.adb: Use new subtype N_Membership_Test
17426
17427         * checks.ads, checks.adb: Add definition for Validity_Check
17428         (Range_Or_Validity_Checks_Suppressed): New function
17429         (Ensure_Valid): Test Validity_Check suppressed
17430         (Insert_Valid_Check): Test Validity_Check suppressed
17431         (Insert_Valid_Check): Preserve Do_Range_Check flag
17432         (Validity_Check_Range): New procedure
17433         (Expr_Known_Valid): Result of membership test is always valid
17434         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17435         by themselves. Disabling those checks must also be done for task types,
17436         where discriminants may be used for the bounds of entry families.
17437         (Apply_Address_Clause_Check): Remove side-effects if address expression
17438         is non-static and is not the name of a declared constant.
17439         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17440         Code cleanup and new error messages.
17441         (Enable_Range_Check): Test for some cases of suppressed checks
17442         (Generate_Index_Checks): Suppress index checks if index checks are
17443         suppressed for array object or array type.
17444         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17445         length check failure, even if checks are off.
17446         (Ensure_Valid): Do not generate a check on an indexed component whose
17447         prefix is a packed boolean array.
17448         * checks.adb: (Alignment_Checks_Suppressed): New function
17449         (Apply_Address_Clause_Check): New procedure, this is a completely
17450         rewritten replacement for Apply_Alignment_Check
17451         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17452         we request a discriminal value only in case of discriminants.
17453         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17454         assignments where the target subtype is unconstrained and the target
17455         object is a parameter or dereference (other aliased cases are known
17456         to be unconstrained).
17457
17458 2006-10-31  Robert Dewar  <dewar@adacore.com>
17459
17460         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17461         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17462         vms_conv.adb: Fix bad table increment values (much too small)
17463
17464         * table.adb (Realloc): Make sure we get at least some new elements
17465         Defends against silly small values for table increment
17466
17467 2006-10-31  Robert Dewar  <dewar@adacore.com>
17468             Ed Schonberg  <schonberg@adacore.com>
17469             Bob Duff  <duff@adacore.com>
17470
17471         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17472         entities. Move other fields around to make this possible
17473         (Is_Derived_Type): Add missing call to Is_Type.
17474         (Extra_Formals): New function for subprograms, entries, subprogram
17475         types.
17476         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17477         (First_Formal_With_Extras): New function for subprogs, entries, subp
17478         types.
17479         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17480         Add node information for E_Return_Statement.
17481         (Elaborate_Body_Desirable): New flag
17482         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17483         to be Is_Inherently_Limited_Type, because return-by-reference has
17484         no meaning in Ada 2005.
17485         (E_Return_Statement): New entity kind.
17486         (Return_Applies_To): Field of E_Return_Statement.
17487         (Is_Return_Object): New flag in object entities.
17488         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17489         (Must_Have_Preelab_Init): New flag
17490         (Known_To_Have_Preelab_Init): New flag
17491         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17492         (Is_Visible_Formal): New flag on entities in formal packages.
17493         (Low_Bound_Known): New flag
17494         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17495         Incomplete_Kind.
17496         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17497         output when Id is an incomplete subtype.
17498
17499 2006-10-31  Robert Dewar  <dewar@adacore.com>
17500
17501         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17502         Avoid abbreviation Creat
17503         (Finalize): List all sources in extended mail source if -gnatl
17504         switch is active.
17505         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17506         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17507         (Set_Specific_Warning_On): New procedure
17508         (Set_Specific_Warning_Off): New procedure
17509         Add implementation of new insertion \\
17510         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17511         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17512         types.
17513         (Error_Msg_Internal): Make sure that we set Last_Killed to
17514         True when a message from another package is suppressed.
17515         Implement insertion character ~ (insert string)
17516         (First_Node): Minor adjustments to get better placement.
17517
17518         * frontend.adb:
17519         Implement new -gnatl=xxx switch to output listing to file
17520
17521         * gnat1drv.adb:
17522         Implement new -gnatl=xxx switch to output listing to file
17523
17524         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17525         (Commands_To_Stdout): New flag
17526         Implement new -gnatl=xxx switch to output listing to file
17527         New switch Dump_Source_Text
17528         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17529         Define Error_Msg_Line_Length
17530         (Warn_On_Assumed_Low_Bound): New switch
17531
17532         * osint.ads, osint.adb
17533         (Normalize_Directory_Name): Fix bug.
17534         Implement new -gnatl=xxx switch to output listing to file
17535         (Concat): Removed, replaced by real concatenation
17536         Make use of concatenation now allowed in compiler
17537         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17538         we find the 'lib' or 'bin' directory even when the tool has been
17539         invoked with a relative path.
17540         (Executable_Name): New function taking string parameters.
17541
17542         * osint-c.ads, osint-c.adb:
17543         Implement new -gnatl=xxx switch to output listing to file
17544
17545         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17546
17547         * switch-c.adb:
17548         Implement new -gnatl=xxx switch to output listing to file
17549         Recognize new -gnatL switch
17550         (no longer keep in old warning about old style usage)
17551         Use concatenation to simplify code
17552         Recognize -gnatjnn switch
17553         (Scan_Front_End_Switches): Clean up handling of -gnatW
17554         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17555
17556 2006-10-31  Robert Dewar  <dewar@adacore.com>
17557
17558         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17559         (Set_Specific_Warning_Off): New procedure
17560         (Warning_Specifically_Suppressed): New function
17561         (Validate_Specific_Warnings): New procedure
17562         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17563
17564         * err_vars.ads: Implement insertion character ~ (insert string)
17565
17566 2006-10-31  Bob Duff  <duff@adacore.com>
17567             Ed Schonberg  <schonberg@adacore.com>
17568
17569         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17570         the parent part is a build-in-place function call, generate assignments.
17571         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17572         are build-in-place function calls.
17573         (Replace_Self_Reference): New subsidiary of
17574         Make_OK_Assignment_Statement, to replace an access attribute that is a
17575         self-reference into an access to the appropriate component of the
17576         target object. Generalizes previous mechanism to handle self-references
17577         nested at any level.
17578         (Is_Self_Referential_Init): Remove, not needed.
17579         (Is_Self_Referential_Init): New predicate to simplify handling of self
17580         referential components in record aggregates.
17581         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17582         check for presence of entity before checking for self-reference.
17583         (Has_Default_Init_Comps): Return True if a component association is a
17584         self-reference to the enclosing type, which can only come from a
17585         default initialization.
17586         (Make_OK_Assignment_Statement): If the expression is of the form
17587         Typ'Acc, where Acc is an access attribute, the expression comes from a
17588         default initialized self-referential component.
17589         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17590         that has been derived from several abstract interfaces we must also
17591         initialize the tags of the secondary dispatch tables.
17592
17593 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17594             Thomas Quinot  <quinot@adacore.com>
17595             Javier Miranda  <miranda@adacore.com>
17596             Robert Dewar  <dewar@adacore.com>
17597
17598         * exp_attr.adb:
17599         (Expand_Access_To_Protected_Op): If the context indicates that an access
17600         to a local operation may be transfered outside of the object, create an
17601         access to the wrapper operation that must be used in an external call.
17602         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17603         target, pass the Valid attribute applied to a floating-point prefix on
17604         to the back end without expansion.
17605         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17606         the allocated storage when it is specified by a per-object expression.
17607         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17608         Nothing to do here, the attribute has been rewritten during semantic
17609         analysis.
17610         (Expand_Attribute_Reference): Handle expansion of the new Priority
17611         attribute
17612         (Find_Fat_Info): Handle case of universal real
17613         (Expand_Access_To_Protected_Op): Fix use of access to protected
17614         subprogram from inside the body of a protected entry.
17615         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17616         'Access and 'Unrestricted_Access, to transform the attribute reference
17617         into a fat pointer.
17618         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17619         subcomponent's enclosing variable is aliased with a constrained subtype.
17620         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17621         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17622         an aliased prefix must be known to be constrained in order to use True
17623         for the attribute value, and now it's possible for some aliased views
17624         to be unconstrained.
17625
17626 2006-10-31  Robert Dewar  <dewar@adacore.com>
17627
17628         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17629         (Expand_Entity_Reference): Correct error of not handling subprogram
17630         formals in current_value processing.
17631
17632 2006-10-31  Javier Miranda  <miranda@adacore.com>
17633             Robert Dewar  <dewar@adacore.com>
17634             Ed Schonberg  <schonberg@adacore.com>
17635             Gary Dismukes  <dismukes@adacore.com>
17636
17637         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17638         register in the final list objects containing class-wide interfaces;
17639         otherwise we incorrectly register the tag of the interface in the final
17640         list.
17641         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17642         generate the wrapper if the parent primitive is abstract. This is
17643         required to report the correct error message.
17644         (Expand_N_Subtype_Indication): Do validity checks on range
17645         (Clean_Task_Names): If an initialization procedure includes a call to
17646         initialize a task (sub)component, indicate that the procedure will use
17647         the secondary stack.
17648         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17649         compatibility for interfacing with CPP by default.
17650         (Expand_N_Object_Declaration): Only build an Adjust call when the
17651         object's type is a nonlimited controlled type.
17652         * exp_ch3.adb: Add with and use of Exp_Ch6.
17653         (Expand_N_Object_Declaration): Check for object initialization that is a
17654         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17655         Object_Declaration to the call.
17656         (Freeze_Type): When the designated type of an RACW was not frozen at the
17657         point where the RACW was declared, validate the primitive operations
17658         with respect to E.2.2(14) when it finally is frozen.
17659         (Build_Initialization_Call,Expand_Record_Controller): Rename
17660         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17661         return-by-reference has no meaning in Ada 2005.
17662         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17663         to register tag of the immediate ancestor interfaces in the
17664         run-time structure.
17665         (Init_Secondary_Tags): Moved to the specification to allow the
17666         initialization of extension aggregates with abstract interfaces.
17667         (Build_Master_Renaming): Make public, for use by function declarations
17668         whose return type is an anonymous access type.
17669         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17670         Insert_List_Before_And_Analyze after the generation of the specs
17671         associated with null procedures.
17672         (Expand_Tagged_Root): Update documentation in its specification.
17673         (Init_Secondary_Tags): Update documentation.
17674         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17675         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17676         then generate code to inherit the contents of the dispatch table
17677         directly from the ancestor.
17678         (Expand_Record_Controller): Insert controller component after tags of
17679         implemented interfaces.
17680         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17681         create null procedure overridings when null procedures are inherited
17682         from interfaces.
17683         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17684         declarations for overriding null primitives inherited from interfaces.
17685         (Is_Null_Interface_Procedure): New function in
17686         Make_Null_Procedure_Specs.
17687         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17688         immediate ancestor of a tagged type is an abstract interface type we
17689         must generate the specification of the predefined primitives associated
17690         with controlled types (because the dispatch table of the ancestor is
17691         null and hence these entries cannot be inherited). This is required to
17692         elaborate well the dispatch table.
17693
17694 2006-10-31  Javier Miranda  <miranda@adacore.com>
17695             Ed Schonberg  <schonberg@adacore.com>
17696             Bob Duff  <duff@adacore.com>
17697             Gary Dismukes  <dismukes@adacore.com>
17698             Robert Dewar  <dewar@adacore.com>
17699
17700         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17701         conversion.
17702         (Expand_N_In): Do validity checks on range
17703         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17704         (Expand_N_Allocator): For "new T", if the object is constrained by
17705         discriminant defaults, allocate the right amount of memory, rather than
17706         the maximum for type T.
17707         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17708         when the allocator is initialized by a build-in-place call, since the
17709         allocator is already rewritten as a reference to the function result,
17710         and this prevents an unwanted duplication of the function call.
17711         Add with and use of Exp_Ch6.
17712         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17713         is a call to build-in-place function and apply
17714         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17715         untagged designated types).
17716         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17717         optimization if source or target is biased.
17718         (Expand_N_Allocator): Add comments for case of an allocator within a
17719         function that returns an anonymous access type designating tasks.
17720         (Expand_N_Allocator): apply discriminant checks for access
17721         discriminants of anonymous access types (AI-402, AI-416)
17722
17723 2006-10-31  Bob Duff  <duff@adacore.com>
17724             Robert Dewar  <dewar@adacore.com>
17725             Gary Dismukes  <dismukes@adacore.com>
17726             Ed Schonberg  <schonberg@adacore.com>
17727
17728         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17729
17730         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17731         (Expand_N_Assignment_Statement): Call
17732         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17733         build-in-place function call. Currently, this can happen only for
17734         assignments that come from aggregates.
17735         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17736         in order to alleviate the upward compatibility introduced by AI-318.
17737         (Expand_N_Extended_Return_Statement): Add support for handling the
17738         return object as a build-in-place result.
17739         (Expand_Non_Function_Return): Implement simple return statements nested
17740         within an extended return.
17741         (Enable_New_Return_Processing): Turn on the new processing of return
17742         statements.
17743         (Expand_Non_Function_Return): For a return within an extended return,
17744         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17745         (Expand_N_Extended_Return_Statement): Implement AI-318
17746         (Expand_Simple_Function_Return): Ditto.
17747         (Expand_N_If_Statement): Handle new -gnatwt warning
17748         (Expand_N_Case_Statement): Handle new -gnatwt warning
17749         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17750         a protected object.
17751         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17752         validity checking of assignments to elementary record components.
17753         (Expand_N_Return_Statement): return Class Wide types on the secondary
17754         stack independantly of their controlled status since with HIE runtimes,
17755         class wide types are not potentially controlled anymore.
17756
17757         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17758         node kind.
17759
17760         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17761         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17762         it expects a block, procedure, or task. The return statement will get
17763         turned into a block, and Expand_Cleanup_Actions will happen then.
17764
17765 2006-10-31  Robert Dewar  <dewar@adacore.com>
17766             Ed Schonberg  <schonberg@adacore.com>
17767             Bob Duff  <duff@adacore.com>
17768             Gary Dismukes  <dismukes@adacore.com>
17769
17770         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17771         capability.
17772         (Expand_Inlined_Call): Tagged types are by-reference types, and
17773         therefore should be replaced by a renaming declaration in the expanded
17774         body, as is done for limited types.
17775         (Expand_Call): If this is a call to a function with dispatching access
17776         result, propagate tag from context.
17777         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17778         CPP by default.
17779         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17780         build-in-place when the right-hand side of an assignment is a
17781         build-in-place function call.
17782         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17783         of the explicit dereference of the allocator to the result subtype of
17784         the build-in-place function. This is needed to satisfy type checking
17785         in cases where the caller's return object is created by an allocator for
17786         a class-wide access type and the type named in the allocator is a
17787         specific type.
17788         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17789         conversion of the reference to the declared object to the result subtype
17790         of the build-in-place function. This is needed to satisfy type checking
17791         in cases where the declared object has a class-wide type. Also, in the
17792         class-wide case, change the type of the object entity to the specific
17793         result subtype of the function, to avoid passing a class-wide object
17794         without explicit initialization to the back end.
17795         (Register_Interface_DT_Entry): Moved outside the body of
17796         Freeze_Subprogram because this routine is now public; it is called from
17797         Check_Dispatching_Overriding to handle late overriding of abstract
17798         interface primitives.
17799         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17800         adding an implicit access actual on a call to a build-in-place function.
17801         (Expand_Actuals): Test for an actual parameter that is a call to a
17802         build-in-place function and apply
17803         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17804         (Is_Build_In_Place_Function): New function to determine whether an
17805         entity is a function whose calls should be handled as build-in-place.
17806         (Is_Build_In_Place_Function_Call): New function to determine whether an
17807         expression is a function call that should handled as build-in-place.
17808         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17809         calls to build-in-place functions as the initialization of an allocator.
17810         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17811         handling calls to build-in-place functions in contexts that do not
17812         involve init of a separate object (for example, actuals of subprogram
17813         calls).
17814         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17815         handling calls to build-in-place functions as the initialization of an
17816         object declaration.
17817         (Detect_Infinite_Recursion): Add explicit parameter Process to
17818         instantiation of Traverse_Body to avoid unreferenced warning.
17819         (Check_Overriding_Inherited_Interfaces): Removed.
17820         (Register_Interface_DT_Entry): Code cleanup.
17821         (Register_Predefined_DT_Entry): Code cleanup.
17822         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17823         inlined statements if within a transient scope.
17824         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17825         formal parameters with occurrences of actuals in inlined body, establish
17826         visibility on the proper view of the actual's subtype for the body's
17827         context.
17828         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17829         compatibility mode and we have an imported CPP subprogram because
17830         for now we assume that imported CPP primitives correspond with
17831         objects whose constructor is in the CPP side (and therefore we
17832         don't need to generate code to register them in the dispatch table).
17833         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17834         aligned selected component.
17835         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17836         the actual of an in-mode parameter is a type conversion.
17837         (Expand_Actuals): If the call does not come from source and the actual
17838         is potentially misaligned, let gigi handle it rather than rejecting the
17839         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17840         Class Wide types as returning by reference independantly of their
17841         controlled status since with HIE runtimes class wide types are not
17842         potentially controlled anymore.
17843
17844 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17845
17846         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17847         references that are private components of the protected object.
17848         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17849         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17850         instantiation to deal with warnings.
17851         (Initialize_Protection): If expression for priority is non-static, use
17852         System_Priority as its expected type, in case the expression has not
17853         been analyzed yet.
17854
17855 2006-10-31  Robert Dewar  <dewar@adacore.com>
17856
17857         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17858         initialization of Homonym_Len.
17859         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17860         names from fully qualified name. Fixes problem of duplicate
17861         external names differing only in the presence of such a block name.
17862
17863 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17864             Pablo Oliveira  <oliveira@adacore.com>
17865
17866         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17867         subprogram Ids, even if they are not yet assigned.
17868         (Build_Subprogram_Id): It is now this function that will take care of
17869         calling Assign_Subprogram_Ids if necessary.
17870         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17871         should be done only once they are assigned.
17872         (Build_From_Any_Function, case of tagged types): Add missing call to
17873         Allocate_Buffer.
17874         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17875         type for an RACW type.
17876         (Add_RACW_Features): When processing an RACW declaration for which the
17877         designated type is already frozen, enforce E.2.2(14) rules immediately.
17878         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17879         special reordering of controlling formals.
17880
17881         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17882         associated stub type for an RACW type.
17883
17884 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17885
17886         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17887         fixed-point operations in an integer context, i.e. as operands of a
17888         conversion to an integer type, indicate that result must be rounded.
17889
17890 2006-10-31  Robert Dewar  <dewar@adacore.com>
17891
17892         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17893         cases, pass the encoding method, since it is now required by the run
17894         time.
17895
17896         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17897         assumption that Str'First = 1.
17898         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17899         it on to the Value_Wide_Wide_Character call.
17900         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17901         properly handles a string of the form quote-encoded_wide_char-quote.
17902
17903         * s-wchcnv.adb: Minor reformatting
17904
17905 2006-10-31  Javier Miranda  <miranda@adacore.com>
17906
17907         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17908         run-time membership test to ensure that the constructed object
17909         implements the target abstract interface.
17910
17911 2006-10-31  Robert Dewar  <dewar@adacore.com>
17912
17913         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17914         Machine_Attribute pragma internally to implement the user pragma.
17915         Add processing for pragma Interface so that it is now completely
17916         equivalent to pragma Import.
17917
17918         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17919         so that it can be applied to all entities, including record components
17920         and enumeration literals.
17921         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17922         priority ranges are correct, verify compatibility against task
17923         dispatching and locking policies, and if everything is correct an entry
17924         is added to the table containing priority specific dispatching entries
17925         for this compilation unit.
17926         (Delay_Config_Pragma_Analyze): Delay processing
17927         Priority_Specific_Dispatching pragmas because when processing the
17928         pragma we need to access run-time data, such as the range of
17929         System.Any_Priority.
17930         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17931         Allow pragma Unreferenced as a context item
17932         Add pragma Preelaborable_Initialization
17933         (Analyze_Pragma, case Interface): Interface is extended so that it is
17934         now syntactically and semantically equivalent to Import.
17935         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17936         insertion characters.
17937         Add handling for Pragma_Wide_Character_Encoding
17938         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17939         never supercedes a real restriction, and that a real restriction
17940         always supercedes a warning.
17941         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17942         appropriate form.
17943
17944 2006-10-31  Bob Duff  <duff@adacore.com>
17945             Ed Schonberg  <schonberg@adacore.com>
17946             Robert Dewar  <dewar@adacore.com>
17947
17948         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17949         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17950         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17951         in Ada 2005.
17952         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17953         type of the function containing a return statement, because the
17954         Return_Type field was removed. We now use the Return_Applies_To field.
17955
17956         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17957         (Build_Task_Image_Decl): If procedure is not called from an
17958         initialization procedure, indicate that function that builds task name
17959         uses the sec. stack. Otherwise the enclosing initialization procedure
17960         will carry the indication.
17961         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17962         N_Object_Declaration instead.
17963         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17964         conditional dead code killed, and change implementation accordingly.
17965         (Insert_Actions): Add N_Return_Object_Declaration case.
17966         Correct comment to mention N_Extension_Aggregate node.
17967         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17968         attempts to save information for global variables which cannot be
17969         safely tracked.
17970         (Get_Current_Value_Condition): Handle conditions the other way round
17971         (constant on left). Also handle right operand of AND and AND THEN
17972         (Set_Current_Value_Condition): Corresponding changes
17973         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17974         (Get_Current_Value_Condition): Handle simple boolean operands
17975         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17976         (Get_Current_Value_Condition): If the variable reference is within an
17977         if-statement, does not appear in the list of then_statments, and does
17978         not come from source, treat it as being at unknown location.
17979         (Get_Current_Value_Condition): Enhance to allow while statements to be
17980         processed as well as if statements.
17981         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17982         come from source.
17983         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17984         of loop. This is safe now that we fixed Kill_Current_Values.
17985         (OK_To_Do_Constant_Replacement): Check whether current scope is
17986         Standard, before examining outer scopes.
17987
17988 2006-10-31  Vincent Celier  <celier@adacore.com>
17989
17990         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17991         When True, apply VMS treatment to children of packages A, G, I and S.
17992         For F320-016
17993
17994         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17995
17996 2006-10-31  Robert Dewar  <dewar@adacore.com>
17997             Ed Schonberg  <schonberg@adacore.com>
17998
17999         * freeze.adb: Add handling of Last_Assignment field
18000         (Warn_Overlay): Supply missing continuation marks in error msgs
18001         (Freeze_Entity): Add check for Preelaborable_Initialization
18002
18003         * g-comlin.adb: Add Warnings (Off) to prevent new warning
18004
18005         * g-expect.adb: Add Warnings (Off) to prevent new warning
18006
18007         * lib-xref.adb: Add handling of Last_Assignment field
18008         (Generate_Reference): Centralize handling of pragma Obsolescent here
18009         (Generate_Reference): Accept an implicit reference generated for a
18010         default in an instance.
18011         (Generate_Reference): Accept a reference for a node that is not in the
18012         main unit, if it is the generic body corresponding to an subprogram
18013         instantiation.
18014
18015         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18016
18017         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
18018         -gnatwq/Q.
18019         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18020         exception handler.
18021         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18022         use clauses, to avoid messages on packages used to qualify, and also
18023         to avoid messages from obsolescent units.
18024         (Warn_On_Useless_Assignments): Don't generate messages for imported
18025         and exported variables.
18026         (Warn_On_Useless_Assignments): New procedure
18027         (Output_Obsolescent_Entity_Warnings): New procedure
18028         (Check_Code_Statement): New procedure
18029
18030         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
18031         Change name Is_Ada_2005 to Is_Ada_2005_Only
18032         (Last_Assignment): New field for useless assignment warning
18033
18034 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18035
18036         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18037         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18038
18039 2006-10-31  Bob Duff  <duff@adacore.com>
18040             Robert Dewar  <dewar@adacore.com>
18041             Ed Schonberg  <schonberg@adacore.com>
18042
18043         * g-awk.adb (Default_Session, Current_Session): Compile this file in
18044         Ada 95 mode, because it violates the new rules for AI-318.
18045
18046         * g-awk.ads: Use overloaded subprograms in every case where we used to
18047         have a default of Current_Session. This makes the code closer to be
18048         correct for both Ada 95 and 2005.
18049
18050         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18051         code, relying on the fact that the compiler generates a warning
18052         instead of an error in -gnatg mode.
18053
18054         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18055         E_Return_Statement entity kind.
18056         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18057
18058         * par.adb (P_Interface_Type_Definition): Addition of one formal to
18059         report an error if the reserved word abstract has been previously found.
18060         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18061
18062         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18063         parenthesized range attribute usage
18064         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18065
18066         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18067         in the syntax for extended_return_statement. This is not in the latest
18068         RM, but the ARG is expected to issue an AI allowing this.
18069         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18070         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18071         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18072         P_Return_Statement): Parse the new syntax for extended_return_statement.
18073
18074         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18075         Output_End_Missing): Add error-recovery code for the new
18076         extended_return_statement syntax; that is, the new E_Return entry on
18077         the scope stack.
18078
18079         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18080         limited to nonlimited, because otherwise we violate the new Ada 2005
18081         rules about returning limited types in function Create_AST_Handler in
18082         s-asthan.adb.
18083
18084         * sem.adb (Analyze): Add cases for new node kinds
18085         N_Extended_Return_Statement and N_Return_Object_Declaration.
18086
18087         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18088         type is in the same category as type of context before applying check,
18089         to prevent anomalies in instantiations.
18090         (Resolve_Aggregate): Remove test for limited components in aggregates.
18091         It's unnecessary in Ada 95, because if it has limited components, then
18092         it must be limited. It's wrong in Ada 2005, because limited aggregates
18093         are now allowed.
18094         (Resolve_Record_Aggregate): Move check for limited types later, because
18095         OK_For_Limited_Init requires its argument to have been resolved.
18096         (Get_Value): When copying the component default expression for a
18097         defaulted association in an aggregate, use the sloc of the aggregate
18098         and not that of the original expression, to prevent spurious
18099         elaboration errors, when the expression includes function calls.
18100         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18101         were missing. We also didn't handle qualified expressions. Now also
18102         allow function calls. Use new common routine OK_For_Limited_Init.
18103         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18104         with space can upper case letter).
18105
18106         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18107         Has_Static_Discriminants flag
18108         (Record_Type_Declaration): Diagnose an attempt to declare an interface
18109         type with discriminants.
18110         (Process_Range_Expr_In_Decl): Do validity checks on range
18111         (Build_Discriminant_Constraints): Use updated form of
18112         Denotes_Discriminant.
18113         (Process_Subtype): If the subtype is a private subtype whose full view
18114         is a concurrent subtype, introduce an itype reference to prevent scope
18115         anomalies in gigi.
18116         (Build_Derived_Record_Type, Collect_Interface_Primitives,
18117         Record_Type_Declaration):  The functionality of the subprograms
18118         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18119         is now performed by a single routine.
18120         (Build_Derived_Record_Type): If the type definition includes an explicit
18121         indication of limitedness, then the type must be marked as limited here
18122         to ensure that any access discriminants will not be treated as having
18123         a local anonymous access type.
18124         (Check_Abstract_Overriding): Issue a detailed error message when an
18125         abstract subprogram was not overridden due to incorrect mode of its
18126         first parameter.
18127         (Analyze_Private_Extension_Declaration): Add support for the analysis of
18128         synchronized private extension declarations. Verify that the ancestor is
18129         a limited or synchronized interface or in the generic case, the ancestor
18130         is a tagged limited type or synchronized interface and all progenitors
18131         are either limited or synchronized interfaces.
18132         Derived_Type_Declaration): Check for presence of private extension when
18133         dealing with synchronized formal derived types.
18134         Process_Full_View): Enchance the check done on the usage of "limited" by
18135         testing whether the private view is synchronized.
18136         Verify that a synchronized private view is completed by a protected or
18137         task type.
18138         (OK_For_Limited_Init_In_05): New function.
18139         (Analyze_Object_Declaration): Move check for limited types later,
18140         because OK_For_Limited_Init requires its argument to have been resolved.
18141         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18142         in order to alleviate the upward compatibility introduced by AI-318.
18143         (Constrain_Corresponding_Record): If the constraint is for a component
18144         subtype, mark the itype as frozen, to avoid out-of-scope references to
18145         discriminants in the back-end.
18146         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18147         this subprogram against wrong sources.
18148         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18149         discriminant of limited type completed with a protected type, when the
18150         discriminant is used to constrain a private component of the type, and
18151         expansion is disabled.
18152         (Find_Type_Of_Object): Do not treat a return subtype that is an
18153         anonymous subtype as a local_anonymous_type, because its accessibility
18154         level is the return type of the enclosing function.
18155         (Check_Initialization): In -gnatg mode, turn the error "cannot
18156         initialize entities of limited type" into a warning.
18157         (OK_For_Limited_Init): Return true for generated nodes, since it
18158         sometimes violates the legality rules.
18159         (Make_Incomplete_Declaration): If the type for which an incomplete
18160         declaration is created happens to be the currently visible entity,
18161         preserve the homonym chain when removing it from visibility.
18162         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18163         inherited subprograms.
18164         (Access_Definition): If this is an access to function that is the return
18165         type of an access_to_function definition, context is a type declaration
18166         and the scope of the anonymous type is the current one.
18167         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18168         incomplete subtype to the set of private dependents of the original
18169         incomplete type.
18170         (Constrain_Discriminated_Type): Emit an error message whenever an
18171         incomplete subtype is being constrained.
18172         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18173         corresponding subtype of the full view of the original incomplete type.
18174         (Check_Incomplete): Properly detect invalid usage of incomplete types
18175         and subtypes.
18176
18177 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18178
18179         * g-catiio.ads, g-catiio.adb (Value): New function.
18180         Given an input String, try and parse a valid Time value.
18181
18182 2006-10-31  Vincent Celier  <celier@adacore.com>
18183
18184         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18185         Integer_Address arithmetic, as in Set_Valid.
18186
18187 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18188             Robert Dewar  <dewar@adacore.com>
18189
18190         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18191         handling executable extension manually and duplicating code.
18192
18193         * make.adb: Implement new -S switch
18194         (Gnatmake): Use new function Osint.Executable_Name instead
18195         of handling executable extension manually.
18196
18197         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18198         is specified, the executable name ends with this suffix.
18199         Take advantage of Osint.Executable_Name instead of duplicating code.
18200
18201         * switch-m.adb: Recognize new gnatmake -S switch
18202
18203         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18204         variable.
18205         (Get_Target_Parameters): Set Executable_Extension_On_Target if
18206         available.
18207
18208         * makeusg.adb: Add line for gnatmake -S switch
18209
18210 2006-10-31  Vincent Celier  <celier@adacore.com>
18211
18212         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18213         call it with -static-libgcc, as there are some platforms, such as
18214         Darwin, where one of these two switches is compulsory to link.
18215
18216 2006-10-31  Vincent Celier  <celier@adacore.com>
18217
18218         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18219         instead of ADA_PROJECT_PATH, for the project path.
18220         (Gnatls): When displaying the project path directories, use host dir
18221         specs.
18222
18223         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18224         names in the project path, as absolute paths may correspond to
18225         multi-valued VMS logical names.
18226
18227 2006-10-31  Vincent Celier  <celier@adacore.com>
18228
18229         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18230         absolute path name.
18231         (Locate_Regular_File): Ditto
18232         (Change_Dir): Remove, no longer used
18233         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18234         on Windows. Get it calling Get_Current_Dir.
18235         (OpenVMS): Remove imported boolean, no longer needed.
18236         (Normalize_Pathname)[VMS]: Do not resolve directory names.
18237         (Pid_To_Integer): New function to convert a Process_Id to  Integer
18238
18239 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18240
18241         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18242         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18243         to No_Socket.
18244         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18245         W_Sig_Socket.
18246
18247 2006-10-31  Robert Dewar  <dewar@adacore.com>
18248
18249         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18250         initial letter o as a zero.
18251
18252 2006-10-31  Robert Dewar  <dewar@adacore.com>
18253
18254         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18255
18256 2006-10-31  Robert Dewar  <dewar@adacore.com>
18257
18258         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18259         variant records
18260         (Layout_Variant_Record): Retrieve the discriminants from the entity
18261         rather than from the type definition, because in the case of a full
18262         type for a private type we need to take the discriminants from the
18263         partial view.
18264         (Layout_Component_List): When applying the Max operator to variants with
18265         a nonstatic size, check whether either operand is static and scale that
18266         operand from bits to storage units before applying Max.
18267         (Layout_Type): In VMS, if a C-convention access type has no explicit
18268         size clause (and does not inherit one in the case of a derived type),
18269         then the size is reset to 32 from 64.
18270
18271 2006-10-31  Vincent Celier  <celier@adacore.com>
18272
18273         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18274         its file has already been loaded, according to the unit being loaded,
18275         not to the current value of Multiple_Unit_Index.
18276
18277 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18278             Eric Botcazou  <ebotcazou@adacore.com>
18279             Arnaud Charlet  <charlet@adacore.com>
18280
18281         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18282         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18283         possible.
18284         (a-except.o): Pass it to the compiler.
18285         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18286         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18287         a-calend-mingw.adb version.
18288
18289         * Makefile.rtl: Added s-dsaser.
18290         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18291         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18292         Ada.Dispatching.Round_Robin.
18293         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18294
18295         * Make-lang.in: Remove all references to gt-ada-decl.h.
18296         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18297         sources.
18298         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18299         Update dependencies.
18300
18301         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18302
18303 2006-10-31  Vincent Celier  <celier@adacore.com>
18304
18305         * mlib-utl.adb (Initialized): Remove, no longer used
18306         (Initialize): Remove, no longer used
18307         (Ar): If Ar_Exec is null, get the location of the archive builder and,
18308         if there is one, the archive indexer. Fail if the archive builder cannot
18309         be found.
18310         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18311         be found.
18312
18313 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18314
18315         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18316         Process_Body_Clauses): If the context of a body includes a use clause
18317         for P.Q then a with_clause for P in the same body is not redundant,
18318         even if the spec also has a with_clause on P.
18319         Add missing continuation mark to error msg
18320         (Build_Limited_Views): A limited view of a type is tagged if its
18321         declaration includes a record extension.
18322         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18323         node, even if the subunit has errors. This avoids malfunction by
18324         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18325         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18326         generation of obsolescent messages for with statements (cannot do
18327         this too early, or we cannot implement avoiding the messages in the
18328         case of obsolescent units withing obsolescent units).
18329         (Install_Siblings): If the with_clause is on a remote descendant of
18330         an ancestor of the current compilation unit, find whether there is
18331         a sibling child unit that is immediately visible.
18332         (Remove_Private_With_Clauses): New procedure, invoked after completing
18333         the analysis of the private part of a nested package, to remove from
18334         visibility the private with_clauses of the enclosing package
18335         declaration.
18336         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18337         now centralized in Generate_Reference.
18338         (Install_Limited_Context_Clauses): Remove superfluous error
18339         message associated with unlimited view visible through use
18340         and renamings. In addition, at the point in which the error
18341         is reported, we add the backslash to the text of the error
18342         to ensure that it is reported as a single error message.
18343         Use new // insertion for some continuation messages
18344         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18345         to create implicit with_clause for parent unit mentioned in original
18346         limited_with_clause.
18347         (Install_Limited_With_Unit): Set entity of parent identifiers if the
18348         unit is a child unit. For ASIS queries.
18349         (Analyze_Subunit): If the subunit appears within a child unit, make all
18350         ancestor child units directly visible again.
18351
18352 2006-10-31  Robert Dewar  <dewar@adacore.com>
18353
18354         * par-ch10.adb (P_Context_Clause): Minor error message fix
18355
18356 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18357             Javier Miranda  <miranda@adacore.com>
18358
18359         * par-ch12.adb: Grammar update and cleanup.
18360         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18361         support for synchronized derived type definitions.
18362         Add the new actual Abstract_Present to every call to
18363         P_Interface_Type_Definition.
18364         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18365         a formal object declaration with an access definition or a subtype mark
18366         with a null exclusion.
18367         (P_Generic_Association): Handle association with box, and others_choice
18368         with box, to support Ada 2005 partially parametrized formal packages.
18369
18370 2006-10-31  Robert Dewar  <dewar@adacore.com>
18371             Javier Miranda  <miranda@adacore.com>
18372
18373         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18374         (P_Type_Declaration): Remove barrier against the reserved word "limited"
18375         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18376         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18377         private extensions.
18378         (P_Type_Declaration): Add the new actual Abstract_Present to every call
18379         to P_Interface_Type_Definition.
18380         (P_Interface_Type_Definition): Addition of one formal to report an error
18381         if the reserved word abstract has been previously found.
18382         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18383         object renaming declaration with an access definition or subtype mark
18384         with a possible null exclusion.
18385
18386         * par-ch9.adb: Minor error msg fix
18387
18388         * par-load.adb: Add missing continuation mark to error msg
18389
18390         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18391
18392 2006-10-31  Vincent Celier  <celier@adacore.com>
18393
18394         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18395         unknown attribute in unknown package or in package that does not need
18396         to be checked.
18397         (Parse_Package_Declaration): Do not issue warning for unknown package in
18398         quiet output.
18399
18400 2006-10-31  Vincent Celier  <celier@adacore.com>
18401
18402         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18403         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18404         Packages_To_Check.
18405
18406 2006-10-31  Vincent Celier  <celier@adacore.com>
18407
18408         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18409         on VMS, change "__" to '.' before checking the name.
18410         (Record_Ada_Source): Always add the source file name in the list of
18411         of sources, even if it is not the first time, as it is for another
18412         source index.
18413         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18414         dot, instead of replacing only the first '_'.
18415
18416         * prj-part.adb (Parse): Convert project file path to canonical form
18417
18418         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18419         extended, the project id of the project extending it is recorded in its
18420         data, even when it has already been processed as an imported project.
18421
18422 2006-10-31  Robert Dewar  <dewar@adacore.com>
18423
18424         * repinfo.adb (List_Entities): Don't list entities from renaming
18425         declarations.
18426
18427 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18428             Robert Dewar  <dewar@adacore.com>
18429
18430         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18431         only a restriction warning is active for the given restriction. This is
18432         desirable because we do not want to modify code in the case where only
18433         a warning is set.
18434         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18435         causes overriding of real restrictions.
18436         Take advantage of new No_Restrictions constant.
18437
18438         * raise.h: (__gnat_set_globals): Change profile.
18439
18440 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18441
18442         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18443
18444         * rtsfind.ads:
18445         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18446         Move all the entities in obsolete package System.PolyORB_Interface to
18447         System.Partition_Interface.
18448         (RE_Storage_Size): New function in System.Tasking.
18449         (RE_Get_Ceiling): New entity.
18450         (RE_Set_Ceiling): New entity.
18451         (RO_PE_Get_Ceiling): New entity.
18452         (RO_RE_Set_Ceiling): New entity.
18453         (Inherit_CPP_DT): New entity
18454
18455 2006-10-31  Robert Dewar  <dewar@adacore.com>
18456
18457         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18458         starting with a digit.
18459
18460 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18461             Thomas Quinot  <quinot@adacore.com>
18462             Javier Miranda  <miranda@adacore.com>
18463             Gary Dismukes  <dismukes@adacore.com>
18464
18465         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18466         properly an attempt to apply Unchecked_Access to a protected operation.
18467         (OK_Self_Reference): New subprogram to check the legality of an access
18468         attribute whose prefix is the type of an enclosing aggregate.
18469         Generalizes previous mechanism to handle attribute references nested
18470         arbitrarily deep within the aggregate.
18471         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18472         can appear in an aggregate if this is a default-initialized aggregate
18473         for a self-referential type.
18474         (Resolve_Attribute, case Access): Ditto.
18475         Add support for new implementation defined attribute Stub_Type.
18476         (Eval_Attribute, case Attribute_Stub_Type): New case.
18477         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18478         (Stream_Attribute_Available): Implement using new subprogram from
18479         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18480         Has_Specified_Stream_Attribute flag.
18481         Disallow Storage_Size and Storage_Pool for access to subprogram
18482         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18483         access types of return subtypes in extended return statements. Remove
18484         accessibility checks on anonymous access types when Unchecked_Access is
18485         used.
18486         (Analyze_Attribute): Add support for the use of 'Class to convert
18487         a class-wide interface to a tagged type.
18488         Add support for the attribute Priority.
18489         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18490         whether the designated type is discriminated with a constrained partial
18491         view and require static matching in that case.
18492         Add local variable Des_Btyp. The Designated_Type
18493         of an access to incomplete subtype is either its non-limited view if
18494         coming from a limited with or its etype if regular incomplete subtype.
18495
18496         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18497         Fix predicate to identify and allow cases of (expander-generated)
18498         references to tag of designated object of a RACW.
18499         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18500         non-static, and therefore cannot appear as a primary in a preelaborable
18501         package.
18502         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18503         Has_Read_Write_Attributes.
18504         (Has_Read_Write_Attributes): Reimplement in termes of
18505         Has_Stream_Attribute_Definition.
18506         (Missing_Read_Write_Attributes): When checking component types in a
18507         record, unconditionally call Missing_Read_Write_Attributes recursively
18508         (remove guard checking for Is_Record_Type / Is_Access_Type).
18509
18510 2006-10-31  Robert Dewar  <dewar@adacore.com>
18511
18512         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18513         useless assignments here and conditionalize it on absence of exception
18514         handlers.
18515         (Analyze_Exception_Handlers): Small code reorganization of error
18516         detection code, for new handling of formal packages.
18517
18518 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18519             Hristian Kirtchev  <kirtchev@adacore.com>
18520
18521         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18522         that has been constant-folded, preserve information of original tree,
18523         for ASIS uses.
18524         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18525         generated private extension declaration if the formal derived type is
18526         synchronized. Carry synchronized present over to the generated private
18527         extension.
18528         (Validate_Derived_Type_Instance): Ensure that the actual of a
18529         synchronized formal derived type is a synchronized tagged type.
18530         (Instantiate_Formal_Package): When creating the instantiation used to
18531         validate the actual package of a formal declared without a box, check
18532         whether the formal itself depends on a prior actual.
18533         (Instantiate_Formal_Subprogram): Create new entities for the defining
18534         identifiers of the formals in the renaming declaration, for ASIS use.
18535         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18536         a renaming declaration or a subtype declaration for an actual in an
18537         instance, capture location information of declaration in generic, for
18538         ASIS use.
18539         (Instantiate_Formal_Package): Add comments on needed additional tests.
18540         AI-317 (partial parametrization) is fully implemented.
18541         (Validate_Private_Type_Instance): Add check for actual which
18542         must have preelaborable initialization
18543         Use new // insertion for some continuation messages
18544         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18545         Default_Expression. Add type retrieval when the declaration has an
18546         access definition. Update premature usage of incomplete type check.
18547         (Check_Access_Definition): New subsidiary routine. Check whether the
18548         current compilation version is Ada 05 and the supplied node has an
18549         access definition.
18550         (Instantiate object): Alphabetize local variables. Handle the creation
18551         of new renaming declarations with respect to the kind of definition
18552         used - either an access definition or a subtype mark. Guard against
18553         unnecessary error message in the context of anonymous access types after
18554         they have been resolved. Add check for required null exclusion in a
18555         formal object declaration.
18556         (Switch_View): A private subtype of a non-private type needs to be
18557         switched (the base type can have been switched without its private
18558         dependents because of the last branch of Check_Private_View.
18559         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18560         value from BT.
18561         (Instantiate_Type): Emit an error message whenever a class-wide type of
18562         a tagged incomplete type is used as a generic actual.
18563         (Find_Actual_Type): Extend routine to handle a component type in a child
18564         unit that is imported from a formal package in a parent.
18565         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18566         agree on constrainedness, rather than checking against ultimate ancestor
18567         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18568         generic body, for navigation purposes.
18569
18570 2006-10-31  Robert Dewar  <dewar@adacore.com>
18571             Thomas Quinot  <quinot@adacore.com>
18572
18573         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18574         type.
18575         (New_Stream_Subprogram): When processing an attribute definition clause
18576         for a stream-oriented subprogram, record an entity node occurring at
18577         the point of clause to use for checking the visibility of the clause,
18578         as defined by 8.3(23) as amended by AI-195.
18579         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18580          New_Stream_Function and New_Stream_Procedure.
18581         (New_Stream_Function, New_Stream_Procedure): Removed.
18582         (Analyze_Attribute_Definition_Clause, case Address): Check new
18583         Alignment_Check check
18584
18585 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18586             Javier Miranda  <miranda@adacore.com>
18587             Robert Dewar  <dewar@adacore.com>
18588
18589         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18590         generate the same errors compiling under -gnatc.
18591         (Try_Object_Operation): If no candidate interpretation succeeds, but
18592         there is at least one primitive operation with the right name, report
18593         error in call rather than on a malformed selected component.
18594         (Analyze_Selected_Component): If the prefix is an incomplete type from
18595         a limited view, and the full view is available, use the full view to
18596         determine whether this is a prefixed call to a primitive operation.
18597         (Operator_Check): Verify that a candidate interpretation is a binary
18598         operation before checking the type of its second formal.
18599         (Analyze_Call): Add additional warnings for function call contexts not
18600         yet supported.
18601         (Analyze_Allocator): Move the check for "initialization not allowed for
18602         limited types" after analyzing the expression. This is necessary,
18603         because OK_For_Limited_Init looks at the structure of the expression.
18604         Before analysis, we don't necessarily know what sort of expression it
18605         is. For example, we don't know whether F(X) is a function call or an
18606         indexed component; the former is legal in Ada 2005; the latter is not.
18607         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18608         were missing. We also didn't handle qualified expressions. Now also
18609         allow function calls. Use new common routine OK_For_Limited_Init.
18610         (Analyze_Type_Conversion): Do not perform some legality checks in an
18611         instance, because the error message will be redundant or spurious.
18612         (Analyze_Overloaded_Selected_Component): Do not do style check when
18613         setting an entity, since we do not know it is the right entity yet.
18614         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18615         (Analyze_Overloaded_Selected_Component): Same change
18616         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18617         since regular incomplete subtypes are transformed into corresponding
18618         subtypes of their full views.
18619         (Complete_Object_Operation): Treat name of transformed subprogram call
18620         as coming from source, for browsing purposes.
18621         (Try_Primitive_Operation): If formal is an access parameter, compare
18622         with base type of object to determine whether it is a primitive
18623         operation.
18624         (Operator_Check): If no interpretation of the operator matches, check
18625         whether a use clause on any candidate might make the operation legal.
18626         (Try_Class_Wide_Operation): Check whether the first parameter is an
18627         access type whose designated type is class-wide.
18628
18629 2006-10-31  Robert Dewar  <dewar@adacore.com>
18630             Ed Schonberg  <schonberg@adacore.com>
18631             Gary Dismukes  <dismukes@adacore.com>
18632
18633         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18634         warn on infinite loops.
18635         Add \\ to some continuation messages
18636         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18637         (Process_Bounds): If the bounds are integer literals that result from
18638         constant-folding, and they carry a user-defined type, preserve that type
18639         rather than treating this as an integer range.
18640         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18641         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18642         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18643         left hand side of assignment.
18644         (Analyze_Assignment): Add suport to manage assigments to the attribute
18645         priority of a protected object.
18646         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18647         not just identifiers.
18648         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18649         or AND THEN for possible tracking.
18650         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18651         case of while loops so we can track values in the loop body.
18652
18653 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18654             Hristian Kirtchev  <kirtchev@adacore.com>
18655             Bob Duff  <duff@adacore.com>
18656
18657         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18658         procedure cannot be a protected operation (it is a basic_declaration,
18659         not a subprogram_declaration).
18660         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18661         Subp. Add logic for entry processing.
18662         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18663         Determine whether an entry or subprogram of a protected or task type
18664         override an inherited primitive of an implemented interface.
18665         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18666         Update the actual used in calls to Check_Overriding_Indicator.
18667         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18668         generate the proper reference to the parent unit, for cross-reference.
18669         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18670         Is_Formal.
18671         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18672         (Add_Extra_Formal): Revise procedure to allow passing in associated
18673         entity, scope, and name suffix, and handle setting of the new
18674         Extra_Formals field.
18675         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18676         pass new parameters. Add support for adding the new extra access formal
18677         for functions whose calls are treated as build-in-place.
18678         (Analyze_A_Return_Statement): Correct casing in error message.
18679         Move Pop_Scope to after Analyze_Function_Return, because an extended
18680         return statement really is a full-fledged scope. Otherwise, visibility
18681         doesn't work right. Correct use of "\" for continuation messages.
18682         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18683         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18684         the node doesn't get properly marked as analyzed.
18685         (Analyze_Subprogram_Body): If subprogram is a function that returns
18686         an anonymous access type that denotes a task, build a Master Entity
18687         for it.
18688         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18689         proper usage of null exclusion in a result definition.
18690         (Process_Formals): Code cleanup and new error message.
18691         (Process_Formals): Detect incorrect application of null exclusion to
18692         non-access types.
18693         (Conforming_Types): Handle conformance between [sub]types and itypes
18694          generated for entities that have null exclusions applied to them.
18695         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18696          base type is an access subtype. This case arrises with null exclusions.
18697         (New_Overloaded_Entity): Do not remove the overriden entity from the
18698         homonym chain if it corresponds with an abstract interface primitive.
18699         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18700         call to the synthesized predicate Is_Incomplete_Type.
18701         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18702         primitives.
18703         (Analyze_Subprogram_Declaration): Check that abstract interface
18704         primitives are abstract or null.
18705         (Analyze_Subprogram_Specification): Remove previous check for abstract
18706         interfaces because it was not complete.
18707         (Has_Interface_Formals): Removed.
18708
18709 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18710             Javier Miranda  <miranda@adacore.com>
18711
18712         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18713         of Analyze_Package_Body, to create Itype references for anonymous
18714         access types created in the package declaration, whose designated types
18715         may have only a limited view.
18716         (Analyze_Package_Specification): For the private part of a nested
18717         package, install private_with_clauses of enclosing compilation unit if
18718         we are in its visible part.
18719         (Declare_Inherited_Private_Subprograms): Complete barrier
18720         to ensure that the primitive operation has an alias to some parent
18721         primitive. This is now required because, after the changes done for the
18722         implementation of abstract interfaces, the contents of the list of
18723         primitives has entities whose alias attribute references entities of
18724         such list of primitives.
18725         (Analyze_Package_Specification): Simplify code that handles parent units
18726         of instances and formal packages.
18727         (Uninstall_Declarations): Check the convention consistency among
18728         primitive overriding operations of a tagged record type.
18729
18730 2006-10-31  Robert Dewar  <dewar@adacore.com>
18731             Hristian Kirtchev  <kirtchev@adacore.com>
18732             Javier Miranda  <miranda@adacore.com>
18733             Ed Schonberg  <schonberg@adacore.com>
18734
18735         * sem_ch8.adb: Minor error msg rewording
18736         (Undefined): When checking for misspellings, invert arguments (to get
18737         expected and found set right)
18738         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18739         (Analyze_Generic_Renaming): Same fix
18740         (Use_One_Package): Do not take into account the internal entities of
18741         abstract interfaces during the analysis of entities that are marked
18742         as potentially use-visible.
18743         (Find_Type): Handle the case of an attribute reference for
18744         implementation defined attribute Stub_Type (simply let the analysis of
18745         the attribute reference rewrite it).
18746         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18747         type that appears in a Use_Type clause.
18748         (Analyze_Object_Renaming): Add support for renaming of the Priority
18749         attribute.
18750         (Find_Type): In Ada 2005, a task type can be used within its own body,
18751         when it appears in an access definition.
18752         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18753         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18754          in a formal object declaration or in a subtype declaration.
18755         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18756         (Check_Null_Exclusion): New local routine to
18757         Analyze_Subprogram_Renaming. Check whether the formals and return
18758         profile of a renamed subprogram have required null exclusions when
18759         their counterparts of the renaming already impose them.
18760         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18761         Determine whether an entity is inside a generic scope.
18762         (In_Open_Scope): First pass of documentation update.
18763         (Find_Expanded_Name): Add support for shadow entities associated with
18764         limited withed packages. This is required to handle nested packages.
18765         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18766         that makes a renaming of a limited withed package illegal.
18767
18768 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18769             Ed Schonberg  <schonberg@adacore.com>
18770
18771         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18772         Check_Overriding_Indicator.
18773         (Analyze_Task_Definition): Ditto.
18774         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18775         (Check_Overriding_Indicator): To find overridden interface operation,
18776         examine only homonyms that have an explicit subprogram declaration, not
18777         inherited operations created by an unrelated type derivation.
18778         (Check_Overriding_Indicator): When checking for the presence of "null"
18779         in a procedure, ensure that the queried node is a procedure
18780         specification.
18781         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18782         type when the formal is an access to variable.
18783         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18784         (Analyze_Task_Type): Same addition
18785         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18786         provide navigation capabilities for entries.
18787
18788 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18789             Ed Schonberg  <schonberg@adacore.com>
18790             Javier Miranda  <miranda@adacore.com>
18791             Gary Dismukes  <dismukes@adacore.com>
18792
18793         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18794         inherited from an interface ancestor by another interface in the
18795         context of an instance as 'late'.
18796         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18797         of a call to a function that dispatches on access result.
18798         (Check_Dispatching_Operation): In case of late overriding of a primitive
18799         that covers abstract interface subprograms we register it in all the
18800         secondary dispatch tables associated with abstract interfaces.
18801         (Check_Dispatching_Call): Add check that a dispatching call is not made
18802         to a function with a controlling result of a limited type. This is a
18803         current implementation restriction.
18804         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18805         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18806         argument is an interface type that is a generic formal.
18807         (Is_Interface_Subprogram): Removed.
18808         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18809         operation, check the formals to handle the case in which it is
18810         associated with an abstract interface type.
18811
18812 2006-10-31  Robert Dewar  <dewar@adacore.com>
18813             Ed Schonberg  <schonberg@adacore.com>
18814
18815         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18816         Add new calls to this procedure during traversal
18817         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18818         another unit if expansion is disabled.
18819
18820 2006-10-31  Robert Dewar  <dewar@adacore.com>
18821
18822         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18823         Current_Value in the conditional case, to evaluate additional
18824         comparisons at compile time.
18825
18826 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18827             Hristian Kirtchev  <kirtchev@adacore.com>
18828             Javier Miranda  <miranda@adacore.com>
18829
18830         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18831         subprogram type to provide better diagnostics in case of ambiguity.
18832         (Covers): Handle coverage of formal and actual anonymous access types in
18833         the context of generic instantiation.
18834         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18835         abstract interface types; this is required to handle concurrent types
18836         with discriminants and abstract interface types.
18837         (Covers): Include type coverage of both regular incomplete subtypes and
18838         incomplete subtypes of incomplete type visibles through a limited with
18839         clause.
18840
18841 2006-10-31  Robert Dewar  <dewar@adacore.com>
18842             Hristian Kirtchev  <kirtchev@adacore.com>
18843             Ed Schonberg  <schonberg@adacore.com>
18844
18845         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18846         messages for entities in packages which are not used.
18847         (Collect_Synchronized_Interfaces): New procedure.
18848         (Overrides_Synchronized_Primitive): New function.
18849         (Denotes_Discriminant): Extend predicate to apply to task types.
18850         Add missing continuation marks in error msgs
18851         (Unqualify): New function for removing zero or more levels of
18852         qualification from an expression. There are numerous places where this
18853         ought to be used, but we currently only deal properly with zero or one
18854         level.
18855         (In_Instance); The analysis of the actuals in the instantiation of a
18856         child unit is not within an instantiation, even though the parent
18857         instance is on the scope stack.
18858         (Safe_To_Capture_Value): Exclude the case of variables that are
18859         renamings.
18860         (Check_Obsolescent): Removed
18861         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18862         is an aliased view, even when rewritten as a reference to the target
18863         object in an assignment.
18864         (Get_Subprogram_Entity): New function
18865         (Known_To_Be_Assigned): New function
18866         (Type_Access_Level): Compute properly the access level of a return
18867         subtype that is an anonymous access type.
18868         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18869         (Is_Transfer): The new extended_return_statement causes a transfer of
18870         control.
18871         (Has_Preelaborable_Initialization): New function
18872         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18873         has a null exclusion depending on its Nkind.
18874         Change Is_Lvalue to May_Be_Lvalue
18875         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18876         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18877         (Safe_To_Capture_Value): Extend functionality so it can be used for
18878         the current value condition case.
18879         (Has_Compatible_Alignment): New function
18880         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18881         objects to handle the Ada 2005 case, where aliasedness no longer implies
18882         that the object is constrained. In particular, for dereferenced names,
18883         the designated object must be assumed to be unconstrained.
18884         (Kill_Current_Values): Properly deal with the case where we encounter
18885         a loop in the scope chain.
18886         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18887         a value.
18888         (Compile_Time_Constraint_Error): Improve error message in error case
18889
18890         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18891         associated with entities of abstract interface primitives.
18892         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18893
18894 2006-10-31  Robert Dewar  <dewar@adacore.com>
18895
18896         * s-osinte-tru64.adb:
18897         Mark Asm statements Volatile to prevent warnings (seems a
18898         reasonable change anyway)
18899         Fixes new warnings
18900
18901         * s-mastop-irix.adb: Add Volatile to Asm statements
18902         Suppresses warning, and seems appropriate in any case
18903
18904         * s-osinte-vms.adb: Add Volatile to Asm statement
18905
18906         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18907
18908         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18909         returned.
18910         Add call to Check_Code_Statement
18911
18912 2006-10-31  Robert Dewar  <dewar@adacore.com>
18913             Ed Schonberg  <schonberg@adacore.com>
18914             Bob Duff  <duff@adacore.com>
18915
18916         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18917         Synchronized_Present): Add Formal_Derived_Type_Definition and
18918         Private_Extension_Declaration to the list of assertions.
18919         (Is_Entry_Barrier_Function): New flag
18920         (Has_Self_Reference): New flag on aggregates, to indicate that they
18921         contain a reference to the enclosing type, inserted through a default
18922         initialization.
18923         (Next_Rep_Item): Move from Node4 to Node5.
18924         (Entity): Add this field for N_Attribute_Definition_Clause.
18925         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18926         (N_Return_Object_Declaration): Remove this node kind. We now use
18927         N_Object_Declaration instead.
18928         (Actual_Designated_Subtype): Move to a different place to make room in
18929         N_Extended_Return_Statement.
18930         (Procedure_To_Call): Move to a different place to make room in
18931         N_Extended_Return_Statement.
18932         (Return_Type): Removed this field to make room in return statements
18933         (both kinds).
18934         (Return_Statement_Entity): New field in return statements, in part to
18935         replace Return_Type, and in part to support the fact that return
18936         statements are now pushed on the scope stack during semantic analysis.
18937         (Return_Object_Declarations): New field to support extended return
18938         statements.
18939         (N_Extended_Return_Statement): New node for extended_return_statement
18940         nonterminal.
18941         (N_Return_Object_Declaration): New node for part of
18942         extended_return_statement nonterminal. Needed because all the necessary
18943         fields won't fit in N_Extended_Return_Statement.
18944         Generic_associations now carry the Box_Present flag, to indicate a
18945         default for an actual in a partially parametrized formal package.
18946
18947         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18948         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18949         and for the new predefined dispatching policies: EDF_Across_Priorities,
18950         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18951         Introduce new name Stub_Type for implementation defined attribute.
18952         Add pragma Preelaborable_Initialization
18953         Add entry for Priority attribute.
18954         Add Pragma_Wide_Character_Encoding
18955         (Get_Convention_Name): Given a convention id, this function returns the
18956         corresponding name id from the names table.
18957
18958 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18959             Robert Dewar  <dewar@adacore.com>
18960             Bob Duff  <duff@adacore.com>
18961
18962         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18963         print null exclusion twice in the case of an access definition,
18964         Implement new -gnatL switch
18965         Remove N_Return_Object_Declaration. We now use
18966         N_Object_Declaration instead. Implement the case for
18967         N_Extended_Return_Statement. Alphabetize the cases.
18968         Add cases for new nodes N_Extended_Return_Statement and
18969         N_Return_Object_Declaration. The code is not yet written.
18970         Update the output for N_Formal_Object_Declaration
18971         and N_Object_Renaming_Declaration.
18972         (Write_Itype): Account for the case of a modular integer subtype whose
18973         base type is private.
18974
18975 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18976
18977         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18978         Remove elaboration code, now done in the binder.
18979
18980         * s-rident.ads: Make this unit Preelaborate.
18981         (No_Restrictions): New constant used to clean up code and follow
18982         preelaborate constraints.
18983
18984         * s-stalib.adb:
18985         Add System.Restrictions dependence, referenced directly from the
18986         binder generated file.
18987
18988 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18989
18990         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18991         True when AAMP extended floating-point is in use (48-bit). Change type
18992         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18993         the two byte array types on AFloat. Change type of IV_Ilf overlay
18994         variable from Byte8 to ByteLF. Add appropriate initializations of
18995         floating-point overlays for AAMP cases.
18996
18997 2006-10-31  Javier Miranda  <miranda@adacore.com>
18998
18999         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19000         (Get_Ceiling): New subprogram that returns
19001         the ceiling priority of the protected object.
19002         (Set_Ceiling): New subprogram that sets the new ceiling priority of
19003         the protected object.
19004
19005         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19006
19007         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19008
19009 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
19010
19011         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19012         requeuing to the same protected object to give higher priority tasks
19013         the opportunity to execute.
19014
19015 2006-10-31  Robert Dewar  <dewar@adacore.com>
19016
19017         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19018         add more precise check for the character sequence that follows '[' to
19019         avoid possible confusion in case if '[' is the last character of a
19020         string literals.
19021         (Scan_Wide): Always allow brackets encoding
19022
19023 2006-10-31  Olivier Hainque  <hainque@adacore.com>
19024
19025         * s-stchop.ads: make this unit preelaborate. This is desirable in
19026         general and made mandatory by the use of this unit by s-taprop which
19027         is itself preelaborate.
19028
19029         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19030         Td_Events component.
19031
19032 2006-10-31  Vincent Celier  <celier@adacore.com>
19033
19034         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19035         in file names.
19036
19037 2006-10-31  Vincent Celier  <celier@adacore.com>
19038
19039         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19040
19041 2006-10-31  Vincent Celier  <celier@adacore.com>
19042
19043         * makegpr.adb (Check_Compilation_Needed): Take into account path names
19044         with spaces.
19045         (Check_Compilation_Needed): When checking a C or C++ source, do not
19046         resolve symbolic links.
19047         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19048         When not in verbose mode and Ellipse is True, display "..." for the
19049         first argument with Display set to False.
19050         (Build_Global_Archive): Always set Display True for the first object
19051         file. Call Display_Command with Ellipse set to True.
19052
19053 2006-10-31  Matt Heaney  <heaney@adacore.com>
19054
19055         * a-crbtgo.ads: Commented each subprogram
19056
19057         * a-crbtgo.adb: Added reference to book from which algorithms were
19058         adapted.
19059
19060         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19061         indicate which child.
19062         (Generic_Conditional_Insert): changed parameter name from "Success" to
19063         "Inserted".
19064         (Generic_Unconditional_Insert_With_Hint): improved algorithm
19065
19066         * a-coorse.adb (Replace_Element): changed parameter name in call to
19067         conditional insert operation.
19068
19069         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19070
19071         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19072         Generic_Iteration
19073
19074         * a-ciorse.adb (Replace_Element): changed parameter name in call to
19075         conditional insert operation.
19076
19077         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19078         Generic_Iteration.
19079
19080         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19081         instead of mode inout.
19082
19083         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19084         draft
19085         (Generic_Read): preserve existing buckets array if possible
19086         (Generic_Write): don't send buckets array length anymore
19087
19088         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19089         instead of mode inout.
19090
19091         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19092         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19093
19094         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19095         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19096         (Replace_Element): local operation is now an instantiation
19097
19098         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19099         check current length.
19100         (Generic_Replace_Element): new operation
19101
19102 2006-10-31  Doug Rupp  <rupp@adacore.com>
19103
19104         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19105         Call TBK$SYMBOLIZE without omitting parameters.
19106
19107 2006-10-31  Vincent Celier  <celier@adacore.com>
19108
19109         * symbols-processing-vms-ia64.adb,
19110         symbols-processing-vms-alpha.adb (Process): Do not include symbols
19111         that come from generic instantiations in bodies.
19112
19113 2006-10-31  Pat Rogers  <rogers@adacore.com>
19114
19115         * a-rttiev.ads, a-rttiev.adb:
19116         This is a significant redesign primarily for the sake of automatic
19117         timer task termination but also to fix a design flaw.
19118         Therefore we are now using an RTS lock, instead of a protected
19119         object, to provide mutual exclusion to the queue of pending events
19120         and the type Timing_Event is no longer a protected type.
19121
19122 2006-10-31  Robert Dewar  <dewar@adacore.com>
19123             Cyrille Comar  <comar@adacore.com>
19124             Ben Brosgol  <brosgol@adacore.com>
19125
19126         * debug.adb:  Update flags documentation
19127
19128         * gnat_ugn.texi: Add documentation for new -gnatwq switch
19129         Clean up documentation for several other warning switches
19130         Clarify how task stack size can be specified with various
19131         versions of Windows.
19132         Add note that -gnatVo includes ranges including loops
19133         Add documentation for -gnatL switch
19134         Add note on elaboration warning for initializing variables
19135         Add documentation for new -gnatwt warning switch
19136         Document new form of pragma Warnings (On|Off, string)
19137         Add comment on use of pragma Warnings to control warnings
19138         Add documentation for -gnatjnn switch
19139         Modify section on interfacing with C for VMS 64-bit.
19140         Add doc for -gnatVe/E
19141         Add documentation of new warning flags -gnatww/-gnatwW
19142         Add warnings about address clause overlays to list of warnings
19143         (Exception Handling Control): Document that the option --RTS must be
19144         used consistently for gcc and gnatbind.
19145         Clarify that inlining is not always possible
19146         Update documentation on pragma Unchecked_Union.
19147
19148         * gnat_rm.texi:
19149         Add documentation for new extended version of pragma Obsolescent
19150         Add documentation for implementation defined attribute 'Stub_Type.
19151         Add note on use of Volatile in asm statements
19152         Add documentation on use of pragma Unreferenced in context clause
19153         Document new form of pragma Warnings (On|Off, pattern)
19154         Document pragma Wide_Character_Encoding
19155         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19156         enforced if code generation is active.
19157         Add section on pragma Suppress to document GNAT specific check
19158         Alignment_Check
19159         Clarify difference between No_Dispatching_Calls & No_Dispatch.
19160         Add documentation for pragma Restrictions (No_Elaboration_Code)
19161
19162         * gnat-style.texi:
19163         Add comments on layout of subprogram local variables in the
19164         presence of nested subprograms.
19165
19166         * ug_words: Resync.
19167
19168         * elists.ads: Minor reformatting
19169         Node returns Node_Or_Entity_Id (doc change only)
19170
19171         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19172
19173         * g-arrspl.ads (Create): Update comments.
19174
19175         * sem.ads: Add details on the handling of the scope stack.
19176
19177         * usage.adb: Update documentation.
19178
19179         * validsw.ads, validsw.adb:
19180         Add definition of Validity_Check_Components and implement -gnatVe/E
19181
19182         * vms_data.ads: Add missing VMS qualifiers.
19183
19184         * s-addope.ads: Add documentation on overflow and divide by zero
19185
19186 2006-10-31  Robert Dewar  <dewar@adacore.com>
19187             Thomas Quinot  <quinot@adacore.com>
19188             Arnaud Charlet  <charlet@adacore.com>
19189
19190         * fmap.adb: Put routines in alpha order
19191
19192         * g-boumai.ads: Remove redundant 'in' keywords
19193
19194         * g-cgi.adb: Minor reformatting
19195
19196         * g-cgi.ads: Remove redundant 'in' keywords
19197
19198         * get_targ.adb: Put routines in alpha order
19199
19200         * prj-attr.ads: Minor reformatting
19201
19202         * s-atacco.ads: Minor reformatting
19203
19204         * scn.adb: Put routines in alpha order
19205
19206         * sinput-l.adb: Minor comment fix
19207
19208         * sinput-p.adb: Minor comment fix
19209
19210         * s-maccod.ads: Minor reformatting
19211
19212         * s-memory.adb: Minor reformatting
19213
19214         * s-htable.adb: Fix typo in comment.
19215
19216         * s-secsta.adb: Minor comment update.
19217
19218         * s-soflin.adb: Minor reformatting
19219
19220         * s-stoele.ads:
19221         Add comment about odd qualification in Storage_Offset declaration
19222
19223         * s-strxdr.adb:
19224         Remove unnecessary 'in' keywords for formal parameters.
19225
19226         * treeprs.adt: Minor reformatting
19227
19228         * urealp.adb: Put routines in alpha order
19229
19230         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19231         taking string.
19232
19233         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19234
19235         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19236
19237         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19238         workaround as on other platforms.
19239
19240         * g-eacodu-vms.adb: Remove redundant 'in' keywords
19241         * g-expect-vms.adb: Remove redundant 'in' keywords
19242
19243         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19244         clear error message if the list-of-files file cannot be opened.
19245
19246         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19247         equality operator is always visible.
19248
19249         * lang.opt: Woverlength-strings: New option.
19250
19251         * nmake.adt:
19252         Update copyright, since nmake.ads and nmake.adb have changed.
19253
19254         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19255         (Binder_Output_Time_Stamps_Set): removed.
19256         (Old_Binder_Output_Time_Stamp): idem.
19257         (New_Binder_Output_Time_Stamp): idem.
19258         (Recording_Time_From_Last_Bind): idem.
19259         (Recording_Time_From_Last_Bind): Make constant.
19260
19261         * output.ads, output.adb (Write_Str): Allow LF characters
19262         (Write_Spaces): New procedure
19263
19264         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19265
19266         * inline.adb: Minor reformatting
19267
19268         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19269
19270         * s-mastop-vms.adb: Remove redundant 'in' keywords
19271
19272         * s-osprim-vms.adb: Remove redundant 'in' keywords
19273
19274         * s-trafor-default.adb: Remove redundant 'in' keywords
19275
19276         * 9drpc.adb: Remove redundant 'in' keywords
19277
19278         * s-osinte-mingw.ads: Minor reformatting
19279
19280         * s-inmaop-posix.adb: Minor reformatting
19281
19282         * a-direio.ads: Remove quotes from Compile_Time_Warning message
19283
19284         * a-exexda.adb: Minor code reorganization
19285
19286         * a-filico.adb: Minor reformatting
19287
19288         * a-finali.adb: Minor reformatting
19289
19290         * a-nudira.ads: Remove quote from Compile_Time_Warning message
19291
19292         * a-numeri.ads: Minor reformatting
19293
19294         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19295
19296         * exp_pakd.ads: Fix obsolete comment
19297
19298         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19299         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19300         Probably not a bug, but certainly neater and more efficient.
19301
19302         * a-tienio.adb: Minor reformatting
19303
19304         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19305         Avoid assuming low bound of string is 1.
19306
19307         * gnatbind.adb: Change Bindusg to package and rename procedure as
19308         Display, which now ensures that it only outputs usage information once.
19309         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19310
19311         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19312         Table'First.
19313
19314         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19315         warning.
19316         (Match): Add pragma Assert to ensure that Matches'First is zero
19317
19318         * g-regpat.ads (Match): Document that Matches lower bound must be zero
19319
19320         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19321         documented preconditions (also kills warnings about bad indexes).
19322
19323         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19324         is 1.
19325         (Build_Import_Library): Ditto;
19326
19327         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19328
19329         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19330
19331         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19332         lower bound of choice table is 1.
19333
19334         * sem_case.ads (Analyze_Choices): Document that lower bound of
19335         Choice_Table is 1.
19336
19337         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19338         string is 1.
19339
19340         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19341         and add appropriate Assert pragma to suppress warnings.
19342
19343         * atree.h, atree.ads, atree.adb
19344         Change Elist24 to Elist25
19345         Add definitions of Field28 and Node28
19346         (Traverse_Field): Use new syntactic parent table in sinfo.
19347
19348         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19349
19350         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19351
19352         * exp_tss.adb: Put routines in alpha order
19353
19354         * fe.h: Remove redundant declarations.
19355
19356 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19357
19358         * utils.c (builtin_function): Rename to gnat_builtin_function.
19359         Move common code to add_builtin_function.
19360         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19361         gnat_builtin_function.
19362         * gigi.h (builtin_function): Rename to gnat_builtin_function.
19363         Change the signature.
19364
19365 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
19366
19367         * Makefile.in: Add TEXI2PDF definition.
19368         * Make-lang.in: Add "ada.pdf" target.
19369
19370 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
19371
19372         * decl.c, utils.c: Fix comment typos.
19373         * utils.c: Fix a typo.
19374
19375 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
19376
19377         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19378         on "pure" Ada subprograms if SJLJ exceptions are used.
19379         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19380         on the declaration node of JMPBUF_SAVE.
19381         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19382         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19383         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19384
19385 2006-08-20  Laurent Guerby  <laurent@guerby.net>
19386
19387         PR ada/28716
19388         g-socket.adb (Bind_Socket): Call Set_Address.
19389
19390 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
19391
19392         PR ada/15802
19393         * decl.c (same_discriminant_p): New static function.
19394         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19395         subtype and we have discriminants, fix up the COMPONENT_REFs
19396         for the discriminants to make them reference the corresponding
19397         fields of the parent subtype after it has been built.
19398
19399 2006-09-15  Roger Sayle  <roger@eyesopen.com>
19400
19401         PR ada/18817
19402         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19403         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19404
19405 2006-09-13  Olivier Hainque  <hainque@adacore.com>
19406
19407         PR ada/29025
19408         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19409         of a SAVE_EXPR, just make the operand addressable/not-readonly and
19410         let the common gimplifier code make and propagate a temporary copy.
19411         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19412         out/in-out actuals and defer setting the addressable/readonly bits
19413         to the gimplifier.
19414
19415 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19416
19417         PR ada/28591
19418         * decl.c (components_to_record): Defer emitting debug info for the
19419         record type associated with the variant until after we are sure to
19420         actually use it.
19421
19422 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19423
19424         PR ada/21952
19425         * gigi.h (gnat_internal_attribute_table): Declare.
19426         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19427         * utils.c (gnat_internal_attribute_table): New global variable.
19428         (builtin_function): Always call decl_attributes on the builtin.
19429         (handle_const_attribute): New static function.
19430         (handle_nothrow_attribute): Likewise.
19431
19432 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19433
19434         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19435
19436 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19437
19438         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19439         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19440
19441 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19442             Eric Botcazou  <ebotcazou@adacore.com>
19443
19444         PR ada/18692
19445         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19446         check-gnat into check-acats.
19447
19448 2006-06-17  Karl Berry  <karl@gnu.org>
19449
19450         * gnat-style.texi (@dircategory): Use "Software development"
19451         instead of "Programming", following the Free Software Directory.
19452
19453 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19454
19455         PR ada/27944
19456         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19457
19458 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19459
19460         PR ada/27769
19461         mlib-utl.adb: Use Program_Name.
19462
19463 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19464
19465         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19466         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19467         trans.c, utils.c: Fix comment typos.  Follow spelling
19468         conventions.
19469         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19470         conventions.
19471
19472 2006-05-19  Nicolas Setton  <setton@adacore.com>
19473
19474         * misc.c (gnat_dwarf_name): New function.
19475         (LANG_HOOKS_DWARF_NAME): Define to it.
19476
19477 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19478
19479         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19480         (ada/misc.o): Likewise.
19481         (ada/utils.o): Likewise.
19482
19483 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19484
19485         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19486         * s-osinte-kfreebsd-gnu.ads: New file.
19487
19488 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19489
19490         * Make-lang.in: Rename docdir to gcc_docdir.
19491
19492 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19493
19494         * gigi.h (get_ada_base_type): Delete.
19495         * utils2.c (get_ada_base_type): Likewise.
19496         * trans.c (convert_with_check): Operate in the real base type.
19497
19498 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19499
19500         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19501
19502 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19503
19504         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19505         whether to make the decl common.
19506
19507 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19508
19509         * Make-lang.in (Ada): Remove.
19510         (.PHONY): Remove Ada
19511
19512 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19513
19514         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19515         aggregate, check the interpretations of the other operand to find one
19516         that may be a boolean array.
19517
19518         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19519         the prefix is a private extension.
19520
19521 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19522
19523         PR ada/26315
19524         * utils2.c (find_common_type): If both input types are BLKmode and
19525         have the same constant size, keep using the first one.
19526
19527         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19528
19529         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19530
19531         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19532
19533 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19534
19535         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19536         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19537         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19538         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19539         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19540         aborted while owning a lock.
19541
19542 2006-02-17  Javier Miranda  <miranda@adacore.com>
19543             Robert Dewar  <dewar@adacore.com>
19544
19545         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19546         through an access to class-wide interface we force the displacement of
19547         the pointer to the allocated object to reference the corresponding
19548         secondary dispatch table.
19549         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19550         if Long_Shifts are supported on the target, even if 64 bit divides
19551         are not supported (configurable run time mode).
19552         (Expand_N_Type_Conversion): Do validity check if validity checks on
19553         operands are enabled.
19554         (Expand_N_Qualified_Expression): Do validity check if validity checks
19555         on operands are enabled.
19556
19557 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19558
19559         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19560         must be materialized when the renamed expression is an explicit
19561         dereference.
19562
19563 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19564
19565         * freeze.adb (Statically_Discriminated_Components): Return false if
19566         the bounds of the type of the discriminant are not static expressions.
19567
19568         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19569         the bounds of the discriminant type are not static.
19570
19571 2006-02-17  Robert Dewar  <dewar@adacore.com>
19572
19573         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19574         then we close To if it is valid.
19575
19576 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19577
19578         * init.c (facility_resignal_table): new array
19579         (__gnat_default_resignal_p): enhance default predicate to resignal if
19580         VMS condition has one of the predefined facility codes.
19581
19582 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19583
19584         * Makefile.in: Use VMS64 specialized versions of several units in
19585         Interfaces.C hierarchy to be compatible with HP C default size choices.
19586         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19587
19588 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19589
19590         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19591         instantiation, the corresponding entity is the related_instance of the
19592         wrapper package created for the instance.
19593
19594 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19595
19596         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19597         the current instance is nested within another instance in a child unit.
19598
19599 2006-02-17  Javier Miranda  <miranda@adacore.com>
19600             Ed Schonberg  <schonberg@adacore.com>
19601
19602         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19603         type we cannot inherit the primitive operations; we inherit the
19604         Corresponding_Record_Type (which has the list of primitive operations).
19605         (Check_Anonymous_Access_Types): When creating anonymous access types for
19606         access components, use Rewrite in order to preserve the tree structure,
19607         for ASIS use.
19608         (Analyze_Object_Declaration): For limited types with access
19609         discriminants with defaults initialized by an aggregate, obtain
19610         subtype from aggregate as for other mutable types.
19611         (Derived_Type_Declaration): If the derived type is a limited interface,
19612         set the corresponding flag (Is_Limited_Record is not sufficient).
19613
19614 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19615
19616         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19617         to inline a function that returns an unconstrained type, the return
19618         expression must be the first variable declared in the body of the
19619         function.
19620
19621 2006-02-17  Javier Miranda  <miranda@adacore.com>
19622
19623         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19624         abstract interface type, the static analysis is not enough to know if
19625         the interface is implemented or not by the source tagged type. Hence
19626         we must pass the work to the expander to generate the required code to
19627         evaluate the conversion at run-time.
19628         (Resolve_Equality_Op): Do not apply previous
19629         transformation if expansion is disasbled, to prevent anomalies when
19630         locating global references in a generic unit.
19631
19632 2006-02-17  Vincent Celier  <celier@adacore.com>
19633
19634         * snames.ads, snames.adb: New standard names for new project attributes:
19635         archive_builder, archive_indexer, compiler_pic_option,
19636         config_body_file_name, config_body_file_name_pattern,
19637         config_file_switches, config_file_unique, config_spec_file_name,
19638         config_spec_file_name_pattern, default_builder_switches,
19639         default_global_compiler_switches, default_language,
19640         dependency_file_kind, global_compiler_switches, include_path,
19641         include_path_file, language_kind, linker_executable_option,
19642         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19643         roots, runtime_project.
19644
19645 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19646
19647         * a-convec.ads, a-convec.adb:
19648         (operator "&"): handle potential overflow for large index types
19649         (Insert): removed Contraint_Error when using large index types
19650         (Insert_Space): removed Constraint_Error for large index types
19651         (Length): moved constraint check from Length to Insert
19652
19653         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19654         as not null access.
19655         Explicit raise statements now include an exception message.
19656         (operator "&"): handle potential overflow for large index types
19657         (Insert): removed Contraint_Error when using large index types
19658         (Insert_Space): removed Constraint_Error for large index types
19659         (Length): moved constraint check from Length to Insert
19660
19661 2006-02-17  Robert Dewar  <dewar@adacore.com>
19662
19663         * s-wchcnv.adb: Document handling of [ on output (we do not change
19664         this to ["5B"] and the new comments say why not.
19665
19666         * gnat_ugn.texi:
19667         Add note for -gnatVo that this now includes the cases of type
19668         conversions and qualified expressions.
19669         Add comments on handling of brackets encoding for Text_IO
19670
19671 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19672             Thomas Quinot  <quinot@adacore.com>
19673             Robert Dewar  <dewar@adacore.com>
19674             Javier Miranda  <miranda@adacore.com>
19675
19676         * expander.adb: Fix typo in comment
19677
19678         * exp_pakd.adb: Fix typo
19679         Minor comment reformatting.
19680
19681         * g-dyntab.adb: Minor reformatting
19682
19683         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19684         aliased subprograms to look for the abstract interface subprogram.
19685
19686 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19687
19688         * env.c (__gnat_setenv): Use size_t.
19689         (__gnat_unsetenv): Likewise.
19690         (__gnat_clearenv): Likewise.
19691
19692 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19693
19694         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19695
19696 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19697
19698         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19699         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19700         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19701         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19702         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19703         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19704         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19705         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19706         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19707         no longer used.
19708
19709 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19710
19711         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19712         protection against race conditions is not needed.
19713         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19714         fallback handler.
19715         (Set_Specific_Handler): Add mutual exclusive access to the specific
19716         handler.
19717         (Specific_Handler): Add mutual exclusive access for retrieving the
19718         specific handler.
19719
19720         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19721         back handler.
19722
19723         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19724         Fall_Back_Handler and Specific_Handler.
19725
19726         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19727         termination handlers.
19728         Set two different owerflow depending on the maximal stack size.
19729
19730         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19731         protection against race conditions is not needed when executing the
19732         task termination handler.
19733
19734 2006-02-13  Robert Dewar  <dewar@adacore.com>
19735
19736         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19737         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19738         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19739         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19740         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19741         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19742         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19743         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19744         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19745         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19746         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19747         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19748         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19749         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19750         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19751         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19752         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19753         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19754         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19755         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19756         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19757         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19758         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19759         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19760         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19761         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19762         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19763         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19764         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19765         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19766         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19767         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19768         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19769         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19770         reformatting.
19771
19772 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19773
19774         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19775         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19776         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19777         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19778         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19779         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19780         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19781         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19782         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19783
19784 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19785
19786         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19787         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19788         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19789         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19790         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19791         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19792         replaced by anonymous access type.
19793         (pthread_sigmask): Now take an access sigset_t
19794
19795         * s-osinte-hpux.ads:  Ditto.
19796         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19797         properly 32 and 64 bit ABIs.
19798
19799 2006-02-13  Pascal Obry  <obry@adacore.com>
19800
19801         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19802         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19803         s-taprop-linux.adb, s-taprop-solaris.adb,
19804         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19805         adjustement is already done when calling this routine.
19806
19807 2006-02-13  Pascal Obry  <obry@adacore.com>
19808
19809         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19810         table to take advantage of the 16 priority levels available on Windows
19811         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19812         supported by this new mapping.
19813
19814 2006-02-13  Nicolas Setton  <setton@adacore.com>
19815
19816         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19817         (get_encoding): New subprogram. Extracts the encodings from an encoded
19818         Ada name.
19819
19820 2006-02-13  Pascal Obry  <obry@adacore.com>
19821             Nicolas Roche  <roche@adacore.com>
19822             Arnaud Charlet  <charlet@adacore.com>
19823
19824         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19825         support.
19826         (__gnat_try_lock): Add unicode support by using a specific section on
19827         Windows.
19828         (__gnat_get_current_dir): Idem.
19829         (__gnat_open_read): Idem.
19830         (__gnat_open_rw): Idem.
19831         (__gnat_open_create): Idem.
19832         (__gnat_create_output_file): Idem.
19833         (__gnat_open_append): Idem.
19834         (__gnat_open_new): Idem.
19835         (__gnat_file_time_name): Idem.
19836         (__gnat_set_file_time_name): Idem.
19837         (__gnat_stat): Idem.
19838         (win32_no_block_spawn): Idem.
19839         (__gnat_locate_exec_on_path): Idem.
19840         (__gnat_opendir): New routine.
19841         (__gnat_closedir): Idem.
19842         (__gnat_readdir): Add new parameter length (pointer to int). Update
19843         implementation to use it and add specific Win32 code for Unicode
19844         support.
19845         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19846         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19847         (convert_addresses): Do not define this dummy routine on VMS.
19848
19849         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19850         runtime Unicode support will be activated.
19851         (S2WS): String to Wide-String conversion. This version just copy a
19852         string in non Unicode version.
19853         (WS2S): Wide-String to String conversion. This version just copy a
19854         string in non Unicode version.
19855
19856         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19857         (Open): Now import __gnat_opendir from adaint.c.
19858         (Read): Change the implementation to support unicode characters. It is
19859         not possible to use strlen() on Windows as this version supports only
19860         standard ASCII characters. So the length of the directory entry is now
19861         returned from the imported __gnat_readdir routine.
19862         Update copyright notice.
19863
19864         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19865         (opendir): Moved to adaint.c.
19866
19867         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19868         (Get_Directory): Fix wrong indexing.
19869         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19870         __gnat_getenv from env.c
19871         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19872         from env.c
19873
19874         * env.h, env.c: New file.
19875
19876         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19877         adaint.c by __gnat_getenv from env.c
19878
19879         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19880         adaint.c by __gnat_getenv from env.c
19881
19882         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19883         and gnatbind.
19884         Update dependencies.
19885
19886 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19887             Olivier Hainque  <hainque@adacore.com>
19888             Eric Botcazou  <ebotcazou@adacore.com>
19889
19890         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19891
19892         * gigi.h (value_factor_p): Add prototype and description, now public.
19893
19894         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19895         promotion for field with rep clause if the associated size was proven
19896         to be in error.
19897         Expand comments describing attempts to use a packable type.
19898         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19899         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19900         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19901         necessary since these are not different types and pointers may
19902         actually designate any subtype in this hierarchy.
19903         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19904         discriminants but put them into record only if not Unchecked_Union;
19905         pass flag to components_to_record showing Unchecked_Union.
19906         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19907         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19908         (components_to_record): New argument UNCHECKED_UNION.
19909         Remove special case code for Unchecked_Union and instead use main code
19910         with small changes.
19911
19912         PR ada/26096
19913         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19914         variable with the expression being built, only its inner field.
19915
19916         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19917         emit_sequence_entry_statements.
19918         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19919         (establish_gnat_vms_condition_handler): Move before
19920         Subprogram_Body_to_gnu.
19921         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19922         for a subprogram if it has a foreign convention or is exported.
19923         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19924         substituted for a CONST_DECL.
19925         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19926         Etype to assoc_to_constructor.
19927         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19928         discriminants of Unchecked_Union.
19929         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19930         don't need cluttering preprocessor directives.
19931         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19932         condition handler as current in the compiled function.
19933         (body_with_handlers_p): New function. Tell whether a given sequence of
19934         statements node is attached to a package or subprogram body and involves
19935         exception handlers possibly nested within inner block statements.
19936         (emit_sequence_entry_statements): New function, to emit special
19937         statements on entry of sequences when necessary. Establish GNAT
19938         condition handler in the proper cases for VMS.
19939         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19940         emit_sequence_entry_statements.
19941
19942         * utils2.c (find_common_type): If both input types are BLKmode and
19943         have a constant size, use the smaller one.
19944         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19945         the same.
19946
19947         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19948         units.
19949         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19950         (convert, case UNION_TYPE): Remove special treatment for unchecked
19951         unions.
19952
19953         PR ada/18659
19954         (update_pointer_to): Update variants of pointer types to unconstrained
19955         arrays by attaching the list of fields of the main variant.
19956
19957 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19958             Robert Dewar  <dewar@adacore.com>
19959
19960         * a-exexpr.adb, a-exexpr-gcc.adb
19961         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19962         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19963         Remove code unused for exception propagation for the compiler itself
19964         from a-except.adb and update to still share separate packages.
19965
19966         * a-except.ads, a-except.adb: Ditto.
19967         Add comments that this version is now used only by the compiler and
19968         other basic tools. The full version that includes the Ada 2005 stuff
19969         is in separate files a-except-2005.ads/adb. The reason is that we do
19970         not want to cause bootstrap problems with compilers not recognizing
19971         Wide_Wide_String.
19972         Add exception reason code PE_Implicit_Return
19973         Add new exception reason code (Null Exception_Id)
19974
19975         * a-except-2005.adb, a-except-2005.ads: New files.
19976
19977         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19978
19979         * s-wchcon.adb: New file.
19980
19981         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19982         (traceback.o deps): Likewise.
19983         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19984         Activate build of GMEM instrumentation library on VMS targets.
19985         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19986         Use a-except-2005.ads/adb for all run-time library builds unless
19987         specified otherwise.
19988         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19989         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19990         Use s-parame.adb on all native platforms.
19991         Use s-parame-vxworks.adb on all vxworks platforms.
19992         Add env.c env.h in LIBGNAT_SRCS
19993         Add env.o in LIBGNAT_OBJS
19994         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19995         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19996         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19997         supports VxWorks 6 RTPs.
19998         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19999         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20000
20001         * types.h, types.ads (Terminate_Program): New exception
20002         Add comment on modifying multiple versions of a-except.adb when the
20003         table of exception reasons is modified.
20004         Add exception reason code PE_Implicit_Return
20005         Add new exception reason code (Null Exception_Id)
20006
20007         * clean.adb (Initialize): Get the target parameters before checking
20008         if target is OpenVMS. Move the OpenVMS specific code here from package
20009         body elaboration code.
20010
20011 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20012             Vincent Celier  <celier@adacore.com>
20013             Robert Dewar  <dewar@adacore.com>
20014
20015         * ali-util.adb (Get_File_Checksum): Update to account for change in
20016         profile of Initialize_Scanner.
20017
20018         * gprep.adb (Gnatprep): Update to account for change in profile of
20019         Initialize_Scanner.
20020         (Process_One_File): Same.
20021
20022         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20023         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20024         that behaviour using the new Unit information recorded in the source
20025         files table, rather than going through all units every time.
20026         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20027         (Get_Source_Unit): Same.
20028
20029         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20030         change in profile of Initialize_Scanner.
20031         (Prepare_To_Preprocess): Same.
20032
20033         * lib.ads: Fix typo in comment (templace -> template).
20034
20035         * prj-part.adb (Parse_Single_Project): Update to account for change in
20036         profile of Initialize_Scanner.
20037
20038         * scn.adb (Initialize_Scanner): Account for change in profile of
20039         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20040         Also record the association of the given Source_File_Index to the
20041         corresponding Unit_Number_Type.
20042
20043         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20044         procedure.
20045         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20046         Remove Unit formal for generic scanner: this formal
20047         is only relevant to Scn (the scanner instance used to parse Ada source
20048         files), not to other instances. Update comment accordingly.
20049         (Scan): Use new function Snames.Is_Keyword_Name.
20050
20051         * sinfo-cn.adb: Fix typo in comment.
20052
20053         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20054         Unit.
20055
20056         * sinput.ads (Source_File_Record): New component Unit, used to capture
20057         the unit identifier (if any) associated to a source file.
20058
20059         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20060         Unit in Source_File_Record.
20061
20062         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20063         in profile of Initialize_Scanner.
20064
20065         * scans.adb (Initialize_Ada_Keywords): New procedure
20066
20067         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20068         Ada keywords in the Namet table, without the need to call
20069         Initialize_Scanner.
20070
20071         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20072         (Is_Keyword_Name): New function
20073
20074         * snames.ads: Add subtype Configuration_Pragma_Names
20075         Add pragma Ada_2005 (synonym for Ada_05)
20076         (Is_Keyword_Name): New function
20077
20078         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20079
20080 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20081
20082         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20083         index.
20084
20085         * a-stwima.adb (To_Set): Add extra check when N = 0.
20086
20087         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20088
20089 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20090
20091         * s-parame-mingw.adb, s-parame-linux.adb,
20092         s-parame-solaris.adb: Removed, replaced by s-parame.adb
20093
20094         * s-parame-vxworks.ads: Fix typo.
20095
20096         * s-parame-vxworks.adb: New file.
20097
20098         * s-parame.adb: Version now used by all native platforms.
20099         (Default_Stack_Size): Use 2 megs for default stack size and use
20100         __gl_default_stack_size when available.
20101         (Minimum_Stack_Size): Use 12K.
20102
20103         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20104         (Create_Task): Refine implementation taking advantage of the XP stack
20105         size support. On XP, we now create the thread using the flag
20106         STACK_SIZE_PARAM_IS_A_RESERVATION.
20107
20108         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20109
20110         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20111         XP and 0 on older Windows versions.
20112
20113         * interfac-vms.ads: Removed, no longer used.
20114
20115 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20116
20117         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20118         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20119         a-cohase.adb: All explicit raise statements now include an exception
20120         message.
20121
20122         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20123         (Update_Element_Preserving_Key): renamed op to just Update_Element.
20124         Explicit raise statements now include an exception message
20125
20126         * a-cihase.ads, a-cohase.ads: Removed comment.
20127
20128         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20129         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20130         a-szbzha.adb, a-szfzha.ads: New files.
20131
20132 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20133
20134         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20135         quicksort.
20136
20137 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20138
20139         * lang.opt: Wvariadic-macros: New option.
20140         Wold-style-definition: Likewise.
20141         Wmissing-format-attribute: Likewise.
20142
20143         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20144         -Wold-style-definition and -Wmissing-format-attribute.
20145
20146 2006-02-13  Robert Dewar  <dewar@adacore.com>
20147
20148         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20149
20150         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20151
20152 2006-02-13  Nicolas Roche  <roche@adacore.com>
20153
20154         * a-envvar.adb, a-envvar.ads: New files.
20155
20156 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20157
20158         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20159
20160         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20161
20162 2006-02-13  Pat Rogers  <rogers@adacore.com>
20163
20164         * a-rttiev.adb, a-rttiev.ads: New files.
20165
20166 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20167
20168         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20169         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
20170
20171         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20172
20173 2006-02-13  Robert Dewar  <dewar@adacore.com>
20174
20175         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20176         sem_case.adb: Minor code reorganization (not Present should be No)
20177
20178 2006-02-13  Geert Bosch  <bosch@adacore.com>
20179             Gary Dismukes  <dismukes@adacore.com>
20180
20181         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20182         0, since the lower bound of the actual string may be greater than one.
20183
20184         PR ada/20753
20185         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20186         layout is requested.
20187
20188 2006-02-13  Vincent Celier  <celier@adacore.com>
20189
20190         * back_end.adb (Scan_Compiler_Arguments): Check if
20191         Search_Directory_Present is True and, if it is, add the argument in
20192         the source search directory path.
20193
20194         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20195         Search_Directory_Present to True.
20196
20197 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
20198
20199         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20200         volatile, to tell the compiler to preserve this variable at any level
20201         of optimization.
20202         (Gen_Versions_Ada): Temporarily work around codegen bug.
20203
20204 2006-02-13  Vincent Celier  <celier@adacore.com>
20205
20206         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20207         gcc to link with option -shared-libgcc.
20208         (Gnatlink): Remove duplicate switches -shared-libgcc
20209
20210 2006-02-13  Robert Dewar  <dewar@adacore.com>
20211
20212         * gnatvsn.ads (Current_Year): New constant, used to easily update
20213         copyright on all GNAT tools.
20214
20215         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20216         copyright notice.
20217
20218 2006-02-13  Robert Dewar  <dewar@adacore.com>
20219
20220         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20221         after hyphen (small aesthetic change useful for a range of numbers
20222         using ^-^.
20223         Suppress range checks for a couple of assignments which otherwise
20224         cause validity checks with validity checking turned on.
20225
20226         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20227         Improvement in error message for object.
20228         (Rep_Item_Too_Late): Remove '!' in warning message.
20229
20230 2006-02-13  Robert Dewar  <dewar@adacore.com>
20231             Eric Botcazou  <ebotcazou@adacore.com>
20232
20233         * err_vars.ads: Suppress range checks for a couple of assignments
20234         which otherwise cause validity checks with validity checking turned on.
20235         Update comments.
20236
20237         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20238         Make message unconditional if it is a warning.
20239         (Error_Msg_NEL): Always output warning messages.
20240         Suppress range checks for a couple of assignments which otherwise
20241         cause validity checks with validity checking turned on.
20242
20243         * errout.ads (Message Insertion Characters): Document that '!' is
20244         implied by '?' in error messages.
20245
20246         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20247         (Gnat1drv): Use a goto to end of main subprogram instead of
20248         Exit_Program (E_Success) so that finalization can occur normally.
20249
20250 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20251
20252         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20253         wrapped around.
20254
20255 2006-02-13  Vincent Celier  <celier@adacore.com>
20256
20257         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20258         Unchecked_Conversion functions.
20259         (Modification_Time): Use direct conversion of OS_Time to Calendar time
20260         when OpenVMS returns False.
20261
20262         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20263         a-dirval.adb (OpenVMS): New Boolean function
20264
20265 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20266             Thomas Quinot  <quinot@adacore.com>
20267
20268         * checks.adb (Build_Discriminant_Checks): If the expression being
20269         checks is an aggregate retrieve the values of its discriminants to
20270         generate the check, rather than creating a temporary and a reference
20271         to it.
20272         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20273         (Install_Null_Excluding_Check): Ditto
20274         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20275         not for the renamed object, so that the actual itype is attached in the
20276         proper context.
20277
20278 2006-02-13  Robert Dewar  <dewar@adacore.com>
20279             Vincent Celier  <celier@adacore.com>
20280
20281         * debug.adb: Eliminate numeric switches for binder/gnatmake
20282
20283         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20284         switches for the compiler.
20285         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20286         (Scan_Make_Switches): When failing with an illegal switch, output an
20287         error message with the full switch.
20288         Eliminate numeric switches for binder/gnatmake
20289
20290         * switch.ads, switch.adb (Bad_Switch): New procedure
20291
20292         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20293         Remove 0-9 as debug flag character possibilities
20294         -d is now controlling the primary stack size when its value is a
20295         positive. Also add checks against invalid values, and support for kb,
20296         mb. Ditto for -D switch.
20297
20298 2006-02-13  Robert Dewar  <dewar@adacore.com>
20299             Serguei Rybin  <rybin@adacore.com>
20300
20301         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20302         save/restore routines.
20303         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20304         were not always properly handled previously.
20305         Since we are changing the tree format anyway, also get rid of the
20306         junk obsolete Immediate_Errors flag.
20307         (Tree_Read): Change the way of reading Tree_Version_String - now we
20308         read the version string from the tree even if its length is not the
20309         same as the length of the version string computed from Gnatvsn.
20310         (Search_Directory_Present): New Boolean flag for the compiler.
20311         Define Tree_Version_String as a dynamic string.
20312         (Default_Stack_Size): new variable, used to handle switch -d.
20313
20314         * par-prag.adb:
20315         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20316         only for main unit.
20317         Add pragma Ada_2005 (synonym for Ada_05)
20318         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20319         were not always properly handled previously.
20320
20321         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20322         explicit Ada_95 to Ada_2005.
20323
20324 2006-02-13  Javier Miranda  <miranda@adacore.com>
20325             Robert Dewar  <dewar@adacore.com>
20326             Ed Schonberg  <schonberg@adacore.com>
20327
20328         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20329         against errors in the source program: a private types for which the
20330         corresponding full type declaration is missing and pragma CPP_Virtual
20331         is used.
20332         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20333         (Is_Known_Null): New flag
20334         (Has_Pragma_Pure): New flag
20335         (No_Return): Present in all entities, set only for procedures
20336         (Is_Limited_Type): A type whose ancestor is an interface is limited if
20337         explicitly declared limited.
20338         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20339         entities. Only used for component marked Is_Tag. If present it stores
20340         the Offset_To_Top function used to provide this value in tagged types
20341         whose ancestor has discriminants.
20342
20343         * exp_ch2.adb: Update status of new Is_Known_Null flag
20344
20345         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20346
20347         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20348         the categorization sense if Is_Pure was set by pragma Pure_Function.
20349
20350 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20351             Olivier Hainque  <hainque@adacore.com>
20352
20353         * bindusg.adb: Updated documentation for -d and -D switches.
20354
20355         * raise.h (__gnat_set_globals): added new parameter for
20356         Default_Stack_Size.
20357
20358         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20359         (__gnat_handle_vms_condition): Adjust context before raise.
20360         (__gnat_install_handler): Restore the global vector setup for GCC
20361         versions before 3.4, as the frame based circtuitry is not available
20362         in this case.
20363         (__gnat_set_globals): added a parameter default_stack_size
20364         (__gl_default_stack_size): new variable.
20365
20366 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20367
20368         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20369         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20370         does not exist in the Ada RM.
20371         (Compatible_Int_Bounds): Determine whether two integer range bounds
20372         are of equal length and have the same start and end values.
20373         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20374         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20375         aggregate when it is part of an object declaration.
20376         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
20377         constrains discriminants of its parent, add explicitly the discriminant
20378         constraints of the ancestor by retrieving them from the
20379         stored_constraint of the parent.
20380
20381 2006-02-13  Robert Dewar  <dewar@adacore.com>
20382
20383         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20384         attribute Mechanism_Code is applied to renamed subprogram, modify
20385         prefix to point to base subprogram.
20386         Max/Min attributes now violate Restriction No_Implicit_Conditionals
20387
20388         * sinfo.ads: Document that Mechanism_Code cannot be applied to
20389         renamed subprograms so that the front-end must replace the prefix
20390         appropriately.
20391
20392 2006-02-13  Javier Miranda  <miranda@adacore.com>
20393             Gary Dismukes  <dismukes@adacore.com>
20394
20395         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20396         availability of RE_Interface_Tag.
20397         (Build_Initialization_Call): Fix wrong access to the discriminant value.
20398         (Freeze_Record_Type): Do not generate the tables associated with
20399         timed and conditional dispatching calls through synchronized
20400         interfaces if compiling under No_Dispatching_Calls restriction.
20401         When compiling for Ada 2005, for a nonabstract
20402         type with a null extension, call Make_Controlling_Function_Wrappers
20403         and insert the wrapper function declarations and bodies (the latter
20404         being appended as freeze actions).
20405         (Predefined_Primitive_Bodies): Do not generate the bodies of the
20406         predefined primitives associated with timed and conditional
20407         dispatching calls through synchronized interfaces if we are
20408         compiling under No_Dispatching_Calls.
20409         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
20410         service is available before generating a call.
20411         (Make_Controlling_Function_Wrappers): New procedure.
20412         (Expand_N_Full_Type_Declaration): Create a class-wide master for
20413         access-to-limited-interfaces because they can be used to reference
20414         tasks that implement such limited interface.
20415         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20416         procedure spec and body of the Offset_To_Top function that is generated
20417         when the parent of a type with discriminants has secondary dispatch
20418         tables.
20419         (Init_Secondary_Tags): Handle the case in which the parent of the type
20420         containing secondary dispatch tables has discriminants to generate the
20421         correct arguments to call Set_Offset_To_Top.
20422         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20423
20424         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20425         Add Wide_[Wide_]Expanded_Name.
20426         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20427         the same functionality of Get_Prim_Op_Address but applied to predefined
20428         primitive operations because the pointers to the predefined primitives
20429         are now saved in a separate table.
20430         (Parent_Size): Modified to get access to the separate table of primitive
20431         operations or the parent type.
20432         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20433         functionality of Set_Prim_Op_Address but applied to predefined primitive
20434         operations.
20435         (Set_Signature): New subprogram used to store the signature of a DT.
20436         (Displace): If the Offset_To_Top value is not static then call the
20437         function generated by the expander to get such value; otherwise use
20438         the value stored in the table of interfaces.
20439         (Offset_To_Top): The type of the actual has been changed to Address to
20440         give the correct support to tagged types with discriminants. In this
20441         case this value is stored just immediately after the tag field.
20442         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20443         offset_to_top value is static and hence pass this value to the run-time
20444         to store it in the table of interfaces, or else if this value is dynamic
20445         and then pass to the run-time the address of a function that is
20446         generated by the expander to provide this value for each object of the
20447         type.
20448
20449         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20450         (Default_Prim_Op_Count): New entity
20451         (Get_Predefined_Prim_Op_Address): New entity
20452         (Set_Predefined_Prim_Op_Address): New entity
20453         (RE_Set_Signature): New entity
20454
20455 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20456             Ed Schonberg  <schonberg@adacore.com>
20457
20458         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20459         Make_Adjust_Call done for a newly-allocated object.
20460
20461         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20462         in a subprogram are wrapped in a cleanup block, indicate that the
20463         subprogram contains an inner block with an exception handler.
20464         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20465         Adjust call is for a newly-allocated object. In that case we must not
20466         assume that the finalization list chain pointers are correct (since they
20467         come from a bit-for-bit copy of the original object's pointers) so if
20468         the attach level would otherwise be zero (no change), we set it to 4
20469         instead to cause the pointers to be reset to null.
20470
20471         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20472         reset chain pointers to null.
20473
20474 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20475
20476         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20477         string, and the context requires a loop for the assignment (e.g.
20478         because the left-hand side is packed), generate a unique name for the
20479         temporary that holds the string, to prevent spurious name clashes.
20480
20481 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20482             Javier Miranda  <miranda@adacore.com>
20483             Robert Dewar  <dewar@adacore.com>
20484             Gary Dismukes  <dismukes@adacore.com>
20485
20486         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20487         return unconstrained arrays.
20488         Update comments.
20489         (Expand_Call):  An indirect call through an access parameter of a
20490         protected operation is not a protected call.
20491         Add circuit to raise CE in Ada 2005 mode following call
20492         to Raise_Exception.
20493         (Register_DT_Entry): Do nothing if
20494         the run-time does not give support to abstract interfaces.
20495         (Freeze_Subprogram): In case of dispatching operations, do not generate
20496         code to register the operation in the dispatch table if the source
20497         is compiled with No_Dispatching_Calls.
20498         (Register_Predefined_DT_Entry): Generate code that calls the new
20499         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20500         Set_Prim_Op_Address.
20501
20502         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20503         on array assignments if the right-hand side is a function call that has
20504         been inlined. Check is performed on the assignment in the block.
20505         (Process_Bounds): If bounds and range are overloaded, apply preference
20506         rule for root operations to disambiguate, and diagnose true ambiguity.
20507         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20508         a tag-indeterminate right-hand side even when Expander_Active is True.
20509         Needed to ensure that dispatching calls to T'Input are allowed and
20510         get the tag of the target class-wide object.
20511
20512         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20513         an inherited primitive operation that already overrides several
20514         abstract interface primitives. For transitivity, the new entity must
20515         also override all the abstract interface primitives covered by the
20516         inherited overriden primitive.
20517         Emit warning if new entity differs from homograph in same scope only in
20518         that one has an access parameter and the other one has a parameter of
20519         a general access type with the same designated type, at the same
20520         position in the signature.
20521         (Make_Inequality_Operator): Use source locations of parameters and
20522         subtype marks from corresponding equality operator when creating the
20523         tree structure for the implicit declaration of "/=". This does not
20524         change anything in behaviour except that the decoration of the
20525         components of the subtree created for "/=" allows ASIS to get the
20526         string images of the corresponding identifiers.
20527         (Analyze_Return_Statement): Remove '!' in warning message.
20528         (Check_Statement_Sequence): Likewise.
20529         (Analyze_Subprogram_Body): For an access parameter whose designated type
20530         is an incomplete type imported through a limited_with clause, use the
20531         type of the corresponding formal in the body.
20532         (Check_Returns): Implicit return in No_Return procedure now raises
20533         Program_Error with a compile time warning, instead of beging illegal.
20534         (Has_Single_Return):  Function returning unconstrained type cannot be
20535         inlined if expression in unique return statement is not an identifier.
20536         (Build_Body_To_Inline): It is possible to inline a function call that
20537         returns an unconstrained type if all return statements in the function
20538         return the same local variable. Subsidiary procedure Has_Single_Return
20539         verifies that the body conforms to this restriction.
20540
20541         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20542         same type, and  one of them is of an anonymous access type, convert
20543         the other operand to it, so that this is a valid binary operation for
20544         gigi.
20545         (Resolve_Type_Conversion): Handle subtypes of protected types and
20546         task types when accessing to the corresponding record type.
20547         (Resolve_Allocator): Add '\' in 2-line warning message.
20548         Remove '!' in warning message.
20549         (Resolve_Call): Add '\' in 2-line warning message.
20550         (Valid_Conversion): Likewise.
20551         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20552         resulting type may be an access type with an implicit dereference.
20553         Obtain the proper component from the designated type.
20554         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20555         given by an expanded name with prefix Standard, when the operands are
20556         of an anonymous access type.
20557         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20558         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20559         prefix of the expression is not of an incomplete type. Allows full
20560         diagnoses of all semantic errors.
20561         (Resolve_Actuals): If the actual is an allocator whose directly
20562         designated type is a class-wide interface we build an anonymous
20563         access type to use it as the type of the allocator. Later, when
20564         the subprogram call is expanded, if the interface has a secondary
20565         dispatch table the expander will add a type conversion to force
20566         the displacement of the pointer.
20567         (Resolve_Call): If a function that returns an unconstrained type is
20568         marked Inlined_Always and inlined, the call will be inlined and does
20569         not require the creation of a transient scope.
20570         (Check_Direct_Boolean_Op): Removed
20571         (Resolve_Comparison_Op): Remove call to above
20572         (Resolve_Equality_Op): Remove call to above
20573         (Resolve_Logical_Op): Inline above, since this is only call.
20574         (Valid_Conversion): Handle properly conversions between arrays of
20575         convertible anonymous access types.
20576
20577         PR ada/25885
20578         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20579         the literal in an unchecked conversion, because GCC 4.x needs a static
20580         value for a string bound.
20581
20582 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20583             Hristian Kirtchev  <kirtchev@adacore.com>
20584
20585         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20586         components of the corresponding record, take into account component
20587         definitions that are access definitions.
20588         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20589         procedure is not considered a dispatching call and will be expanded
20590         properly.
20591
20592 2006-02-13  Javier Miranda  <miranda@adacore.com>
20593
20594         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20595         controlling argument of the dispatching call is an abstract interface
20596         class-wide type then we use it directly.
20597         Check No_Dispatching_Calls restriction.
20598         (Default_Prim_Op_Position): Remove the code that looks for the last
20599         entity in the list of aliased subprograms. This code was wrong in
20600         case of renamings.
20601         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20602         when the source is compiled with the No_Dispatching_Calls restriction.
20603         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20604         if we are compiling with restriction No_Dispatching_Calls.
20605         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20606         subprograms if we are compiling under No_Dispatching_Calls restriction.
20607         (Make_DT): Generate a dispatch table with a single dummy entry if
20608         we are compiling with the No_Dispatching_Calls restriction. In
20609         addition, in this case we don't generate code that calls to the
20610         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20611         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20612         of this subprogram if compiling with the No_Dispatching_Calls
20613         restriction.
20614         (Expand_Type_Conversion): Instead of using the actual parameter,
20615         the argument passed as parameter to the conversion function was
20616         erroneously referenced by the expander.
20617         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20618         Set_Predefined_Primitive_Op_Address and Set_Signature.
20619         (Expand_Dispatching_Call): Generate call to
20620         Get_Predefined_Prim_Op_Address for predefined primitives.
20621         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20622         predefined primitives.
20623         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20624         primitives we reserve one dummy entry to ensure that the tag does not
20625         point to some memory that is associated with some other object. In
20626         addition, remove all the old code that generated the assignments
20627         associated with the signature of the dispatch table and replace them
20628         by a call to the new subprogram Set_Signature.
20629         (Set_All_DT_Position): Change the algorithm because now we have a
20630         separate dispatch table associated with predefined primitive operations.
20631         (Expand_Interface_Conversion): In case of non-static offset_to_top
20632         add explicit dereference to get access to the object after the call
20633         to displace the pointer to the object.
20634         (Expand_Interface_Thunk): Modify the generation of the actual used
20635         in the calls to the run-time function Offset_To_Top to fulfil its
20636         new interface.
20637         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20638
20639 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20640
20641         * exp_dist.adb (Copy_Specification): For access parameters, copy
20642         Null_Exclusion flag, which will have been set for stream subprograms
20643         in Ada2005 mode.
20644
20645 2006-02-13  Pascal Obry  <obry@adacore.com>
20646
20647         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20648         previous implementation was using the C runtime spawnve routine but
20649         the corresponding wait was using directly the Win32 API. This was
20650         causing some times a lock when waiting for an event using
20651         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20652         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20653         API fixes this problem.
20654
20655 2006-02-13  Robert Dewar  <dewar@adacore.com>
20656
20657         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20658         call.
20659
20660 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20661
20662         * exp_pakd.ads: Fix typos in comments.
20663
20664         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20665         array reference that is an explicit dereference, mark the converted
20666         (packed) array reference as analyzed to prevent a forthcoming
20667         reanalysis from resetting its type to the original (non-packed) array
20668         type.
20669
20670 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20671             Javier Miranda  <miranda@adacore.com>
20672             Eric Botcazou  <ebotcazou@adacore.com>
20673
20674         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20675         Is_Predefined_Primitive_Operation): When
20676         searching for the predefined equality operator, verify that operands
20677         have the same type.
20678         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20679         for the last entity in the list of aliased subprograms. This code
20680         was wrong in case of renamings.
20681         (Set_Renamed_Subprogram): New procedure
20682         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20683         Exp_Type constant computed when entering this subprogram.
20684         (Known_Null): New function
20685         (OK_To_Do_Constant_Replacement): New function
20686         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20687         (Side_Effect_Free): An attribute reference 'Input is not free of
20688         side effect, unlike other attributes that are functions. (from code
20689         reading).
20690         (Remove_Side_Effects): Expressions that involve packed arrays or records
20691         are copied at the point of reference, and therefore must be marked as
20692         renamings of objects.
20693         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20694         not a dispatching operation.
20695
20696         PR ada/18819
20697         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20698         elementary types in all cases.
20699
20700 2006-02-13  Javier Miranda  <miranda@adacore.com>
20701
20702         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20703         task types when accessing to the corresponding record type.
20704         Remove '!' in warning message.
20705
20706 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20707
20708         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20709         to avoid useless and space inefficient overalignments on targets where
20710         Max_Alignment is larger than 16.
20711
20712 2006-02-13  Pascal Obry  <obry@adacore.com>
20713
20714         * g-catiio.adb (Sec_Number): New type used to compute the number of
20715         seconds since 1-1-1970.
20716         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20717         negative numbers (years, months...) it is better to have a Natural here.
20718         Code clean-up.
20719         (Image) [Number]: Change parameter from Long_Integer to Number.
20720         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20721         overflow for dates past year 2038.
20722
20723 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20724
20725         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20726         Constraint_Error.
20727
20728 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20729
20730         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20731         native platforms.
20732         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20733         finalization can occur normally.
20734
20735 2006-02-13  Vincent Celier  <celier@adacore.com>
20736
20737         * gnatcmd.adb (Rules_Switches): New table
20738         (Add_To_Rules_Switches): New procedure
20739         (GNATCmd): For command CHECK, put all options following "-rules" in the
20740         Rules_Switches table. Append these -rules switches after the -cargs
20741         switches.
20742
20743 2006-02-13  Robert Dewar  <dewar@adacore.com>
20744
20745         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20746         These two cases were generating incorrect output, and if this unit
20747         was built with checks on, generated a discriminant mismatch constraint
20748         error.
20749
20750 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20751             Robert Dewar  <dewar@adacore.com>
20752
20753         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20754         view is an array type, indicate the component type as well, for
20755         navigation purposes.
20756         (Generate_Reference): Don't consider array ref on LHS to be a case
20757         of violating pragma Unreferenced.
20758         Do not give Ada 2005 warning except on real reference.
20759
20760 2006-02-13  Vincent Celier  <celier@adacore.com>
20761
20762         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20763         main source, add switch -mdebug-main=_ada_ so that the executable can
20764         be debugged by the standard VMS debugger.
20765         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20766         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20767         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20768         of the last source, as the binding and linking phases are never
20769         performed.
20770         Set all executable obsolete when rebuilding a library.
20771
20772         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20773         options.
20774
20775 2006-02-13  Javier Miranda  <miranda@adacore.com>
20776
20777         PR ada/23973
20778         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20779         code to improve the error message reported when the program has
20780         declarations of abstract interface types and it is not compiled with
20781         the -gnat05 switch.
20782         (P_Access_Definition): Reorganize the code to improve the error
20783         message reported when the new Ada 2005 syntax for anonymous
20784         access types is used and the program is not compiled with the
20785         -gnat05 switch.
20786
20787 2006-02-13  Robert Dewar  <dewar@adacore.com>
20788
20789         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20790         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20791         (MODE_IN)
20792
20793 2006-02-13  Javier Miranda  <miranda@adacore.com>
20794
20795         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20796         against source containing syntax errors.
20797
20798 2006-02-13  Vincent Celier  <celier@adacore.com>
20799
20800         * prj.adb (Reset): Initialize the first element of table Namings with
20801         the standard naming data.
20802
20803 2006-02-13  Vincent Celier  <celier@adacore.com>
20804
20805         * prj.ads (Error_Warning): New enumeration type
20806
20807         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20808         unknown, use the location of the project to report the error.
20809         (When_No_Sources): New global variable
20810         (Report_No_Ada_Sources): New procedure
20811         (Check): New parameter When_No_Sources. Set value of global variable
20812         When_No_Sources,
20813         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20814         (Get_Sources_From_File): Ditto
20815         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20816         and the file name.
20817
20818         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20819         Call Prj.Proc.Process with parameter When_No_Sources.
20820
20821         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20822         Call Recursive_Check with parameter When_No_Sources.
20823         (Recursive_Check): New parameter When_No_Sources. Call itself and
20824         Prj.Nmsc.Check with parameter When_No_Sources.
20825         (Process): New parameter When_No_Sources. Call Check with parameter
20826         When_No_Sources.
20827         (Copy_Package_Declarations): New procedure to copy renamed parameters
20828         and setting the location of the declared attributes to the location
20829         of the renamed package.
20830         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20831         packages.
20832
20833 2006-02-13  Vincent Celier  <celier@adacore.com>
20834
20835         * prj-makr.adb (Make): Preserve the comments from the original project
20836         file.
20837         When removing nodes (attributes Source_Dirs, Source_Files,
20838         Source_List_File and package Naming), save the comments and attach the
20839         saved comments to the newly created nodes.
20840         Do not add a with clause for the naming package if one already exists.
20841
20842 2006-02-13  Javier Miranda  <miranda@adacore.com>
20843             Gary Dismukes  <dismukes@adacore.com>
20844             Robert Dewar  <dewar@adacore.com>
20845
20846         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20847
20848         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20849         aliased entities to look for the overriden abstract interface
20850         subprogram.
20851         (Is_Interface_Subprogram): Complete documentation.
20852         (Check_Dispatching_Operation): Do not generate code to register the
20853         operation in the dispatch table if the source is compiled with
20854         restriction No_Dispatching_Calls.
20855         (Override_Dispatching_Operation): Check for illegal attempt to override
20856         No_Return procedure with procedure that is not No_Return
20857         (Check_Dispatching_Call): Suppress the check for an abstract operation
20858         when the original node of an actual is a tag-indeterminate attribute
20859         call, since the attribute, which must be 'Input, can never be abstract.
20860         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20861         call to the Input attribute (even when rewritten).
20862         (Propagate_Tag): Augment comment to indicate the possibility of a call
20863         to an Input attribute.
20864
20865         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20866         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20867
20868         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20869         No_Wide_Characters is no longer partition-wide
20870         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20871         rather than GNAT
20872
20873 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20874
20875         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20876
20877 2006-02-13  Javier Miranda  <miranda@adacore.com>
20878
20879         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20880         handles default-initialized components to keep separate the management
20881         of this feature but also avoid the unrequired resolution and
20882         expansion of components that do not have partially initialized
20883         values.
20884         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20885         (Check_Bounds): Likewise.
20886         (Check_Length): Likewise.
20887
20888 2006-02-13  Javier Miranda  <miranda@adacore.com>
20889             Ed Schonberg  <schonberg@adacore.com>
20890
20891         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20892         abstract interface type call analyze_and_resolve to expand the type
20893         conversion into the corresponding displacement of the
20894         reference to the base of the object.
20895         (Eval_Attribute, case Width): For systems where IEEE extended precision
20896         is supported, the maximum exponent occupies 4 decimal digits.
20897         (Accessibility_Message): Add '\' in 2-line warning message.
20898         (Resolve_Attribute): Likewise.
20899         (case Attribute_Access): Significantly revise checks
20900         for illegal access-to-subprogram Access attributes to properly enforce
20901         the rules of 3.10.2(32/2).
20902         Diagnose use of current instance with an illegal attribute.
20903
20904         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20905         to a Node_Id.
20906         (Enclosing_Generic_Unit): New function to return a node's innermost
20907         enclosing generic declaration node.
20908         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20909         (Type_Access_Level): The accessibility level of anonymous acccess types
20910         associated with discriminants is that of the current instance of the
20911         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20912         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20913         (Kill_Current_Values_For_Entity): New function
20914         (Enter_Name): Change formal type to Entity_Id
20915
20916 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20917             Ed Schonberg  <schonberg@adacore.com>
20918             Gary Dismukes  <dismukes@adacore.com>
20919
20920         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20921         Analyze_Compilation_Unit.
20922         Detect and warn on redundant with clauses detected in a package spec
20923         and/or body when -gnatwr is used.
20924         (Analyze_Context): Analyze config pragmas before other items
20925         (Install_Context_Items): Don't analyze config pragmas here
20926         (Install_Limited_Withed_Unit): Set limited entity of package in
20927         with_clause so that cross-reference information or warning messages on
20928         unused packages can be properly generated
20929         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20930         has Error_Posted set. Prevent infinite loops in illegal programs.
20931         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20932         to the point of the error test requiring the current unit to be private.
20933         This ensures that private with clauses are not exempted from the basic
20934         checking for being a descendant of the same library unit parent as a
20935         withed private descendant unit.
20936         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20937         handle private with clauses properly, as well as to account for cases
20938         where the withed unit is a public descendant of a private ancestor
20939         (in which case the current unit must be a descendant of the private
20940         ancestor's parent). The spec comments were updated accordingly. Also,
20941         the old error message in this subprogram was replaced with error
20942         messages that mirror the errors tested and reported by
20943         Check_Private_Child_Unit.
20944         Parameter and variable names improved for readability.
20945         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20946         private as the precondition for calling
20947         Check_Private_Limited_Withed_Unit since that subprogram has been
20948         revised to test public units as well as private units.
20949
20950 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20951             Robert Dewar  <dewar@adacore.com>
20952             Ed Schonberg  <schonberg@adacore.com>
20953             Javier Miranda  <miranda@adacore.com>
20954
20955         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20956         that Scope_Stack.First = 1.
20957         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20958         were not always properly handled previously.
20959         (Formal_Entity): Complete rewrite, to handle properly some complex case
20960         with multiple levels of parametrization by formal packages.
20961         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20962         to the corresponding derived type declaration for proper semantics.
20963
20964         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20965         (Check_Component): Enforce restriction on components of
20966         unchecked_unions: a component in a variant cannot contain tasks or
20967         controlled types.
20968         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20969         conform to AI-216.
20970         Add pragma Ada_2005 (synonym for Ada_05)
20971         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20972         were not always properly handled previously.
20973         Document that pragma Propagate_Exceptions has no effect
20974         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20975         (Set_Convention_From_Pragma): Check that if a convention is
20976         specified for a dispatching operation, then it must be
20977         consistent with the existing convention for the operation.
20978         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20979         longer required to specify an vtable-ptr component in the record. For
20980         compatibility reasons we leave the support for the previous definition.
20981         (Analyze_Pragma, case No_Return): Allow multiple arguments
20982
20983         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20984         non-overrideen inherited operation with a controlling result as
20985         illegal only its implicit declaration comes from the derived type
20986         declaration of its result's type.
20987         (Check_Possible_Deferred_Completion): Relocate the object definition
20988         node of the subtype indication of a deferred constant completion rather
20989         than directly analyzing it. The analysis of the generated subtype will
20990         correctly decorate the GNAT tree.
20991         (Record_Type_Declaration): Check whether this is a declaration for a
20992         limited derived record before analyzing components.
20993         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20994         declared limited when a component has a limited type.
20995         (Build_Derived_Record_Type): Code reorganization to check if some of
20996         the inherited subprograms of a tagged type cover interface primitives.
20997         This check was missing in case of a full-type associated with a private
20998         type declaration.
20999         (Constant_Redeclaration): Check that the subtypes of the partial and the
21000         full view of a constrained deferred constant statically match.
21001         (Mentions_T): A reference to the current type in an anonymous access
21002         component declaration  must be an entity name.
21003         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21004         class_wide type to refer to full type, not to the incomplete one.
21005         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21006         available. Required to give support to the certified run-time.
21007         (Analyze_Component_Declaration): In case of anonymous access components
21008         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21009         (Process_Discriminants): For an access discriminant, use the
21010         discriminant specification as the associated_node_for_itype, to
21011         simplify accessibility checks.
21012
21013 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21014             Javier Miranda  <miranda@adacore.com>
21015
21016         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21017         abstract interpretations on an operator, remove interpretations that
21018         yield Address or a type derived from it, if one of the operands is an
21019         integer literal.
21020         (Try_Object_Operation.Try_Primitive_Operation,
21021         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21022         location when creating the new reference to a primitive or class-wide
21023         operation as a part of rewriting a subprogram call.
21024         (Try_Primitive_Operations): If context requires a function, collect all
21025         interpretations after the first match, because there may be primitive
21026         operations of the same type with the same profile and different return
21027         types. From code reading.
21028         (Try_Primitive_Operation): Use the node kind to choose the proper
21029         operation when a function and a procedure have the same parameter
21030         profile.
21031         (Complete_Object_Operation): If formal is an access parameter and prefix
21032         is an object, rewrite as an Access reference, to match signature of
21033         primitive operation.
21034         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21035         by an expanded name with prefix Standard, when the operands are of an
21036         anonymous access type.
21037         (Remove_Abstract_Operations): If the operation is abstract because it is
21038         inherited by a user-defined type derived from Address, remove it as
21039         well from the set of candidate interpretations of an overloaded node.
21040         (Analyze_Membership_Op): Membership test not applicable to cpp-class
21041         types.
21042
21043 2006-02-13  Bob Duff  <duff@adacore.com>
21044
21045         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21046         redundant use clauses.
21047         In particular, if the scope of two use clauses overlaps, but one is not
21048         entirely included in the other, we should not warn.  This can happen
21049         with nested packages.
21050         (Analyze_Subprogram_Renaming): Protect the compiler against previously
21051         reported errors. The bug was reported when the compiler was built
21052         with assertions enabled.
21053         (Find_Type): If the node is a 'Class reference and the prefix is a
21054         synchronized type without a corresponding record, return the type
21055         itself.
21056
21057 2006-02-13  Javier Miranda  <miranda@adacore.com>
21058
21059         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21060         if this is the full-declaration associated with a private declaration
21061         that implement interfaces, then the private type declaration must be
21062         limited.
21063         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21064         as aliased. The use of the 'access attribute is not available for such
21065         object (for this purpose the object should be explicitly marked as
21066         aliased, but being an anonymous type this is not possible).
21067
21068 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21069             Robert Dewar  <dewar@adacore.com>
21070
21071         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21072         compilation unit is an elaboration scope.
21073         (Add_Task_Proc): Add '\' in 2-line warning message.
21074         (Activate_All_Desirable): Deal with case of unit with'ed by parent
21075
21076 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21077             Javier Miranda  <miranda@adacore.com>
21078
21079         * sem_type.adb (Write_Overloads): Improve display of candidate
21080         interpretations.
21081         (Add_One_Interp): Do not add to the list of interpretations aliased
21082         entities corresponding with an abstract interface type that is an
21083         immediate ancestor of a tagged type; otherwise we have a dummy
21084         conflict between this entity and the aliased entity.
21085         (Disambiguate): The predefined equality on universal_access is not
21086         usable if there is a user-defined equality with the proper signature,
21087         declared in the same declarative part as the designated type.
21088         (Find_Unique_Type): The universal_access equality operator defined under
21089         AI-230 does not cover pool specific access types.
21090         (Covers): If one of the types is a generic actual subtype, check whether
21091         it matches the partial view of the other type.
21092
21093 2006-02-13  Thomas Quinot  <quinot@adacore.com>
21094
21095         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21096         line. This is necessary to allow In_Extended_Main_Unit to provide
21097         correct results for itypes while writing out expanded source.
21098         (Close_File): No need to update the source_index_table here since it's
21099         now done for each line.
21100
21101 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21102             Robert Dewar  <dewar@adacore.com>
21103
21104         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21105         preserve the source unit where the itype is declared, and prevent a
21106         backend abort.
21107         (Note_Implicit_Run_Time_Call): New procedure
21108         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21109         E_Subprogram_Type)
21110
21111         * sprint.ads: Document use of $ for implicit run time routine call
21112
21113 2006-02-13  Quentin Ochem  <ochem@adacore.com>
21114
21115         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21116         task name.
21117
21118 2006-02-13  Bob Duff  <duff@adacore.com>
21119
21120         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21121         Scan_Unsigned, so we do not scan leading blanks and sign twice.
21122         Integer'Value("- 5") and Integer'Value("-+5") now correctly
21123         raise Constraint_Error.
21124
21125         * s-vallli.adb (Scan_Long_Long_Integer): Call
21126         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21127         do not scan leading blanks and sign twice.
21128         Integer'Value("- 5") and Integer'Value("-+5") now correctly
21129         raise Constraint_Error.
21130
21131         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21132         Scan_Long_Long_Unsigned): Split out most of the processing from
21133         Scan_Long_Long_Unsigned out into
21134         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21135         This prevents scanning leading blanks and sign twice.
21136         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21137         See RM-3.5(44).
21138
21139         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21140         out most of the processing from Scan_Unsigned out into
21141         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21142         This prevents scanning leading blanks and sign twice.
21143
21144         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21145         use with Modular'Value attribute.
21146         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21147         attribute.
21148
21149 2006-02-13  Robert Dewar  <dewar@adacore.com>
21150
21151         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21152
21153 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
21154
21155         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21156         (PPC VxWorks): Likewise.
21157         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21158         (forced_callee): Make non-inlinable and non-pure.
21159         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21160
21161 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
21162             Ben Brosgol  <brosgol@adacore.com>
21163             Robert Dewar  <dewar@adacore.com>
21164
21165         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21166         support.
21167         Document that gnatbind -M option is for cross environments only.
21168         Added description of using gnatmem to trace gnat rtl allocs and deallocs
21169         Add note on use of $ to label implicit run time calls
21170         Add documentation for -gnatyI (check mode IN)
21171         Updated chapter on compatibility with HP Ada
21172         VMS-oriented edits.
21173         Ran spell and corrected errors
21174         Add documentation for gnatbind -d and rework documentation of -D
21175         at the same time.
21176         Add subprogram/data elimination section.
21177         Minor editing of annex A.
21178         Add section for gnatcheck.
21179         Add documentation for restriction No_Dispatching_Calls
21180         Add documentation for pragma Ada_2005
21181         Remove mention of obsolete pragma Propagate_Exceptions
21182         Document that pragma Unreferenced can appear after DO in ACCEPT
21183         Clarify Pure_Function for library level units
21184         Mention Max/Min in connection with No_Implicit_Conditionals
21185         No_Wide_Characters restriction is no longer partition-wide
21186         Add a nice example for Universal_Literal_String attribute
21187         Document that pragma No_Return can take multiple arguments
21188
21189         * ug_words: Added entry for gnatcheck
21190
21191         * g-ctrl_c.ads (Install_Handler): Enhance comments
21192
21193         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21194
21195         * g-trasym.ads: Add documentation on how to do off line symbolic
21196         traceback computation.
21197
21198         * s-fatgen.adb: Add comments for Unaligned_Valid
21199
21200         * stand.ads: Fix typo in comment
21201
21202 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21203
21204         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21205
21206 2006-02-06  Roger Sayle  <roger@eyesopen.com>
21207
21208         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21209
21210 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21211
21212         PR target/25926
21213         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21214         implementation that calls __main.
21215
21216 2006-01-25  Peter O'Gorman  <peter@pogma.com>
21217
21218         PR bootstrap/25859
21219         * Makefile.in (GCC_LINK): Remove quotes.
21220         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21221         or $(GCC_LINK).
21222
21223         (powerpc-darwin): Pass -shared-libgcc when building shared library.
21224
21225 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21226
21227         PR ada/24533
21228         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21229
21230 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21231
21232         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21233
21234 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21235
21236         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21237         needed.
21238
21239 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21240
21241         * Make-lang.in: Update dependencies
21242
21243 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21244
21245         * Make-lang.in: Add rule for ada/exp_sel.o
21246
21247 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21248
21249         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21250
21251 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
21252
21253         * gnatvsn.ads (Library_Version): Bump to version 4.2
21254         (ASIS_Version_Number): Bumped.
21255
21256 2005-12-09  Doug Rupp  <rupp@adacore.com>
21257
21258         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21259         Ada bind file prefix on VMS from b$ to b__.
21260         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21261         __init.
21262
21263         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21264         Targparm.OpenVMS_On_Target.
21265         (Object_Suffix): Initialize with target object suffix.
21266         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21267
21268         * butil.adb: Change some Hostparm.OpenVMS checks to
21269         Targparm.OpenVMS_On_Target.
21270
21271         * clean.adb: Change some Hostparm.OpenVMS checks to
21272         Targparm.OpenVMS_On_Target.
21273         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21274         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21275         Ada bind file prefix on VMS from b$ to b__.
21276
21277         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21278         --GCC so that Get_Target_Parameters can find system.ads.
21279         (Gnatlink): Call Get_Target_Parameters in mainline.
21280         Initialize standard packages for Targparm.
21281         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21282         (Process_Args): Also Check for object files with target object
21283         extension.
21284         (Make_Binder_File_Names): Create with target object extension.
21285         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21286         to b__.
21287
21288         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21289         Targparm.OpenVMS_On_Target.
21290         ({declaration},Build_Library,Check_Library): Change Ada bind file
21291         prefix on VMS from b$ to b__.
21292
21293         * osint-b.adb: Change some Hostparm.OpenVMS checks to
21294         Targparm.OpenVMS_On_Target.
21295         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21296         b__.
21297
21298         * targext.c: New file.
21299
21300         * Makefile.in: add support for vxworks653 builds
21301         (../../vxaddr2line): gnatlink with targext.o.
21302         (TOOLS_LIBS): Move targext.o to precede libgnat.
21303         (init.o, initialize.o): Minor clean up in dependencies.
21304         (GNATLINK_OBJS): Add targparm.o, snames.o
21305         Add rules fo building targext.o and linking it explicitly with all
21306         tools.
21307         Also add targext.o to gnatlib.
21308
21309         * Make-lang.in: Add rules for building targext.o and linking it in
21310         with gnat1 and gnatbind.
21311         Add entry for exp_sel.o.
21312
21313         * osint.adb Change some Hostparm.OpenVMS checks to
21314         Targparm.OpenVMS_On_Target.
21315         (Object_File_Name): Use target object suffix.
21316
21317         * osint.ads (Object_Suffix): Remove, no longer used.
21318         (Target_Object_Suffix): Initialize with target object suffix.
21319
21320         * rident.ads: Add special exception to license.
21321
21322         * targparm.adb (Get_Target_Parameters): Set the value of
21323         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21324         value.
21325         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21326
21327         * targparm.ads: Add special exception to license.
21328
21329         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21330         function.
21331         (Copy_File): Make sure from file is closed if error on to file
21332         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21333
21334         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21335         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21336
21337         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21338         target object suffix.
21339
21340 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
21341             Quentin Ochem  <ochem@adacore.com>
21342             Florian Villoing  <villoing@adacore.com>
21343
21344         * a-taster.ads, a-taster.adb: New files.
21345
21346         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21347         link to the version that does nothing. This way the task termination
21348         routine is not executed twice for the environment task when finishing
21349         because of an unhandled exception.
21350
21351         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21352         handler because of an unhandled exception.
21353
21354         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21355         System.Tasking.Utilities instead of that in System.Tasking.Stages.
21356
21357         * s-finimp.adb (initialization code): Modify the soft link for the
21358         finalization of the global list instead of Adafinal.
21359
21360         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21361         non-tasking version of the soft link for task termination. We do
21362         nothing since if we are using the non-tasking version it
21363         means that the task termination functionality is not used.
21364         (Null_Finalize_Global_List): Add this null version for the procedure
21365         in charge of finalizing the global list for controlled objects.
21366         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21367         instead for handling run-time termination in a more flexible way.
21368         (Adafinal_NT): This new procedure will take care of finalizing the
21369         global list for controlled objects if needed, but no tasking
21370         finalization.
21371
21372         * s-tarest.adb (Task_Lock): Do not try to lock again the
21373         Global_Task_Lock if we already own it. Otherwise, we get blocked in
21374         some run-time operations.
21375         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21376         until all nested locks have been released.
21377         (Task_Wrapper): Call the fall-back task termination handler. It
21378         applies to all tasks but the environment task.
21379         (Finalize_Global_Tasks): Add the call for the task termination
21380         procedure for the environment task.
21381         (Task_Wrapper): suppress warnings around declaration of
21382         Secondary_Stack_Address.
21383
21384         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21385         moved to the Common_ATCB record.
21386         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21387         Common_ATCB record.
21388         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21389         Common_ATCB record.
21390
21391         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21392         Fall_Back_Handler, and Specific_Handler.
21393
21394         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21395         defined in Ada.Task_Termination, to avoid circular dependencies.
21396         (Termination_Handler): Redefine this type here, alredy defined in
21397         Ada.Task_Termination, for avoiding circular dependencies.
21398         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21399         for storing task termination handlers. In addition,
21400         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21401         Common_ATCB because it is used by both the regular and the restricted
21402         run times.
21403         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21404         Common_ATCB because it is used by both the regular and the restricted
21405         run times.
21406         (Common_ATCB): Added a dynamic task analyzer field.
21407
21408         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21409         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21410         (Task_Wrapper): Call the task termination handler. It applies to all
21411         tasks but the environment task.
21412         (Finalize_Global_Tasks): Call the task termination procedure for the
21413         environment task. The call to Finalize_Global_List is now performed
21414         using the soft links mechanism.
21415         (Task_Wrapper): added dynamic stack analysis.
21416
21417         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21418         potentially blocking operations has been moved from
21419         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21420         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21421         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21422         this run-time check.
21423
21424         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21425         of task termination procedure.
21426         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21427         link for the task termination procedure.
21428
21429         * bindusg.adb: (Bindusg): Added documentation for -u option.
21430
21431         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21432         (Get_Main_C): Add handling of dynamic stack analysis.
21433         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21434
21435         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21436         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21437         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21438
21439         * opt.ads: Added flags used by dynamic stack measurement.
21440         (Max_Line_Length): Remove (not used anymore)
21441
21442         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21443         (Standart_Output): new subprogram
21444         (Set_Output): new subprogram
21445         (Put): now uses the value of Current_Out to know if the output has to be
21446         send to stderr or stdout.
21447
21448         * s-stausa.ads: Complete implementation.
21449
21450         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21451
21452         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21453         list of Ada 05 files.
21454         (GNAT Library Units): Add AltiVec files.
21455
21456         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21457         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21458         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21459
21460 2005-12-09  Nicolas Setton  <setton@adacore.com>
21461
21462         * adaint.c (__gnat_locate_regular_file): Return immediately if
21463         file_name is empty.
21464
21465 2005-12-09  Javier Miranda  <miranda@adacore.com>
21466             Hristian Kirtchev  <kirtchev@adacore.com>
21467
21468         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21469         to the specification because the frontend generates code that uses this
21470         subprogram.
21471         (Set_Interface_Table): Add missing assertion.
21472         Update documentation describing the run-time structure.
21473         (Displace): New subprogram that displaces the pointer to the object
21474         to reference one of its secondary dispatch tables.
21475         (IW_Membership): Modified to use the new table of interfaces.
21476         (Inherit_TSD): Modified to use the new table of interfaces.
21477         (Register_Interface_Tag): Use the additional formal to fill the
21478         contents of the new table of interfaces.
21479         (Set_Interface_Table): New subprogram that stores in the TSD the
21480         pointer to the table of interfaces.
21481         (Set_Offset_To_Top): Use the additional formal to save copy of
21482         the offset value in the table of interfaces.
21483         Update structure of GNAT Primary and Secondary dispatch table diagram.
21484         Add comment section on GNAT dispatch table prologue.
21485         (Offset_To_Signature): Update the constant value of the Signature field.
21486         (Dispatch_Table): Update comment on hidden fields in the prologue.
21487         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21488         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21489         the type of formal parameter T to Tag, introduce additional assertions.
21490         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21491         conversion.
21492         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21493
21494         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21495         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21496         record component containing the tag of the secondary dispatch table we
21497         have to use the Offset_To_Top run-time function to get this information;
21498         otherwise if the pointer to the base of the object has been displace
21499         we get a wrong value if we use the 'position attribute.
21500
21501         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21502         all the calls to Expand_Interface_Thunk.
21503         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21504         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21505         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21506         ensure that the interfaces implemented by the ancestors are placed
21507         at the header of the generated list.
21508         (Expand_Interface_Conversion): Handle the case in which the displacement
21509         associated with the interface conversion is not statically known. In
21510         this case we generate a call to the new run-time subprogram Displace.
21511         (Make_DT): Generate and fill the new table of interfaces.
21512         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21513         Get_Tagged_Kind and Set_Tagged_Kind.
21514         (Tagged_Kind): New function that determines the tagged kind of a type
21515         with respect to limitedness and concurrency and returns a reference to
21516         RE_Tagged_Kind.
21517         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21518         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21519         primary dispatch table for a type.
21520         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21521         secondary dispatch table respectively of a tagged type.
21522
21523         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21524         (Expand_Interface_Conversion): New subprogram to indicate if the
21525         displacement of the type conversion is statically known.
21526         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21527
21528         * rtsfind.ads (RE_Offset_To_Top): New entity
21529         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21530         accessible to users.
21531         (Re_Displace): New entity
21532         (RE_Interface_Data): New entity
21533         (RE_Set_Interface_Data): New_Entity
21534         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21535         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21536         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21537         RE_TK_Tagged, RE_TK_Task.
21538
21539         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21540         Init_Secondary_Tags_Internal to allow its use with interface types and
21541         also to generate the code for the new additional actual required
21542         by Set_Offset_To_Top.
21543         (Build_Init_Statements): In case of components associated with abstract
21544         interface types there is no need to generate a call to its IP.
21545         (Freeze_Record_Type): Generate Select Specific Data tables only for
21546         concurrent types.
21547         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21548         the bodies and specifications of the predefined primitive operations
21549         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21550         for concurrent types.
21551
21552         * exp_sel.ads, exp_sel.adb: New files.
21553
21554         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21555         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21556         properly protected objects and attach handler in the case of the
21557         restricted profile.
21558         Move embeded package Select_Expansion_Utilities into a separate external
21559         package.
21560         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21561         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21562         (Build_K, Build_S_Assignment): New subprograms, part of the select
21563         expansion utilities.
21564         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21565         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21566         where the trigger is a dispatching procedure of a limited tagged type.
21567
21568 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21569
21570         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21571         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21572         about the use and expansion of SAVE_EXPRs in the various possible
21573         renaming handling cases.
21574         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21575         abusing DECL_FCONTEXT.
21576
21577 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21578
21579         * a-convec.adb (Merge): Added assertions to check whether vector params
21580         are sorted.
21581
21582         * a-coinve.adb (Merge): Added assertions to check whether vector params
21583         are sorted.
21584
21585         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21586         draft.
21587         (Cursor'Read): raises PE
21588
21589         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21590         to its default value.
21591
21592         * a-cihama.adb: Manually check whether cursor's key and elem are
21593         non-null
21594
21595         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21596         (Merge): Assert that target and source lists are in order
21597         (Swap): Declare non-const temporaries, to pass to Splice
21598
21599         * a-cdlili.ads: (Splice): Changed param name and param mode
21600
21601         * a-cdlili.adb: (Splice): Changed param name and param mode
21602         (Merge): Assert that target and source lists are in order
21603         (Swap): Declare non-const temporaries, to pass to Splice
21604
21605         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21606         (Write): declare Stream param as not null
21607
21608         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21609         an exception message.
21610
21611 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21612             Robert Dewar  <dewar@adacore.com>
21613
21614         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21615         which is the absolute maximum length we can support.
21616
21617         * frontend.adb: For the processing of configuration pragma files,
21618         remove references to Opt.Max_Line_Length, which is not checked anymore.
21619
21620         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21621         length.
21622
21623         * scn.adb, scng.adb:
21624         Always check line length against the absolute supported maximum,
21625         Hostparm.Max_Line_Length.
21626
21627         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21628         value for the maximum line length is Max_Line_Length (not
21629         Column_Number'Last).
21630         Minor error msg update
21631         (Set_Style_Check_Options): New interface returning error msg
21632         Minor code reorganization (processing for 'M' was out of alpha order)
21633
21634         * switch-c.adb: New interface for Set_Style_Check_Options
21635
21636         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21637         msg.
21638
21639 2005-12-09  Javier Miranda  <miranda@adacore.com>
21640
21641         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21642         with IP subprogram were only supported if there were limited types.
21643
21644         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21645         records with IP subprogram were only supported if there were limited
21646         types.
21647
21648 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21649             Eric Botcazou  <ebotcazou@adacore.com>
21650
21651         * trans.c (tree_transform, emit_check): Adjust calls to
21652         build_call_raise, passing the now expected GNAT_NODE argument.
21653
21654         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21655         source line information than what the current global locus indicates
21656         when appropriate.
21657
21658         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21659         field has overflowed.
21660         (build_call_raise): Add a GNAT_NODE argument to convey better source
21661         line information than what the current global locus indicates when
21662         appropriate.
21663         (build_component_ref): Adjust call to build_call_raise.
21664
21665 2005-12-09  Pascal Obry  <obry@adacore.com>
21666
21667         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21668         the iterator is quitting iteration on parent directory.
21669
21670 2005-12-09  Javier Miranda  <miranda@adacore.com>
21671
21672         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21673         and the assignment to a class-wide object, before the assignment we
21674         generate a run-time check to ensure that the tag of the Target is
21675         covered by the tag of the source.
21676
21677 2005-12-09  Robert Dewar  <dewar@adacore.com>
21678
21679         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21680         parameter in call to Image_Wide_Character.
21681
21682         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21683         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21684         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21685         annoying FFFE/FFFF inconsistency.
21686
21687 2005-12-09  Robert Dewar  <dewar@adacore.com>
21688             Javier Miranda  <miranda@adacore.com>
21689             Ed Schonberg  <schonberg@adacore.com>
21690
21691         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21692         of type conversion.
21693         (Find_Interface): New subprogram that given a tagged type and one of its
21694         component associated with the secondary table of an abstract interface
21695         type, return the entity associated with such abstract interface type.
21696         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21697         base type to create anonymous subtype, because entity may be a locally
21698         declared subtype or generic actual.
21699         (Find_Interface): New subprogram that given a tagged type and one of its
21700         component associated with the secondary table of an abstract interface
21701         type, return the entity associated with such abstract interface type.
21702
21703         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21704         conversion cannot be handled at compile time. In this case we pass this
21705         information to the expander to generate the appropriate code.
21706
21707 2005-12-09  Robert Dewar  <dewar@adacore.com>
21708             Ed Schonberg  <schonberg@adacore.com>
21709             Gary Dismukes  <dismukes@adacore.com>
21710             Javier Miranda  <miranda@adacore.com>
21711             Hristian Kirtchev  <kirtchev@adacore.com>
21712
21713         * einfo.adb (Itype_Printed): New flag
21714         (Is_Limited_Type): Derived types do not inherit limitedness from
21715         interface progenitors.
21716         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21717         interfaces.
21718
21719         * einfo.ads (Itype_Printed): New flag
21720         Move Is_Wrapper_Package to proper section
21721         Add missing Inline for Is_Volatile
21722
21723         * output.ads, output.adb (Write_Erase_Char): New procedure
21724         (Save/Restore_Output_Buffer): New procedures
21725         (Save/Restore_Output_Buffer): New procedures
21726
21727         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21728         Add missing support for anonymous access type
21729         (Write_Id): Insert calls to Write_Itype
21730         (Write_Itype): New procedure to output itypes
21731
21732         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21733         use of "limited" in declaration.
21734
21735         * sinfo.ads, sinfo.adb:
21736         Formal derived types can carry an explicit "limited" indication.
21737
21738         * sem_ch3.adb: Add with and use of Targparm.
21739         (Create_Component): If Frontend_Layout_On_Target is True and the
21740         copied component does not have a known static Esize, then reset
21741         the size and positional fields of the new component.
21742         (Analyze_Component_Declaration): A limited component is
21743         legal within a protected type that implements an interface.
21744         (Collect_Interfaces): Do not add to the list the interfaces that
21745         are implemented by the ancestors.
21746         (Derived_Type_Declaration): If the parent of the full-view is an
21747         interface perform a transformation of the tree to ensure that it has
21748         the same parent than the partial-view. This simplifies the job of the
21749         expander in order to generate the correct object layout, and it is
21750         needed because the list of interfaces of the full-view can be given in
21751         any order.
21752         (Process_Full_View): The parent of the full-view does not need to be
21753         a descendant of the parent of the partial view if both parents are
21754         interfaces.
21755         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21756         "limited" the parent must be a limited type.
21757         (Build_Derived_Record_Type): A derived type that is explicitly limited
21758         must have limited ancestor and progenitors.
21759         (Build_Derived_Type): Ditto.
21760         (Process_Full_View): Verify that explicit uses of "limited" in partial
21761         and full declarations are consistent.
21762         (Find_Ancestor_Interface): Remove function.
21763         (Collect_Implemented_Interfaces): New procedure used to gather all
21764         implemented interfaces by a type.
21765         (Contain_Interface): New function used to check whether an interface is
21766         present in a list.
21767         (Find_Hidden_Interface): New function used to determine whether two
21768         lists of interfaces constitute a set equality. If not, the first
21769         differing interface is returned.
21770         (Process_Full_View): Improve the check for the "no hidden interface"
21771         rule as defined by AI-396.
21772
21773 2005-12-09  Robert Dewar  <dewar@adacore.com>
21774
21775         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21776         types, not on record subtypes.
21777         (Freeze_Entity): Code cleanup. Add barrier to the loop
21778         that generates the references for primitive operations. This allows to
21779         remove an unnecessary exception handler.
21780         Code reformatting and comment clean ups.
21781
21782 2005-12-09  Vincent Celier  <celier@adacore.com>
21783
21784         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21785         If GNAT CHECK is called with a project file, but with no
21786         source on the command line, call gnatcheck with all the compilable
21787         sources of the project.
21788         Take into account the new command Check, for gnatcheck. Treat as for
21789         other ASIS tools: take into account project, specific package Check and
21790         Compiler switches.
21791         For ASIS tools, add the switches in package Compiler for
21792         the invocation of the compiler.
21793
21794         * prj-attr.adb: Add package Check and its attributes
21795
21796         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21797
21798         * vms_conv.adb (Initialize): Change Params of command Check to
21799         unlimited files.
21800         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21801         Add data for new command Check
21802
21803         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21804         ELIM.
21805         Add qualifiers for Check command options
21806         (Command_Type): New command Check
21807
21808 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21809
21810         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21811         command line switch overruns the output buffer.
21812
21813 2005-12-09  Robert Dewar  <dewar@adacore.com>
21814
21815         * sem_prag.adb: Processing for new pragma Complete_Representation
21816         (Analyze_Pragma, case Debug): Implement two argument form.
21817
21818         * par-prag.adb: Entry for new pragma Complete_Representation
21819         (Prag, case Debug): Recognize two argument form of pragma Debug
21820         New interface for Set_Style_Check_Options.
21821
21822         * sem_ch13.adb: Implement new pragma Complete_Representation.
21823
21824         * snames.adb, snames.ads, snames.h: Entry for new pragma
21825         Complete_Representation.
21826
21827 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21828
21829         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21830         available user-specified stream attributes on limited parameters to
21831         also test the type directly rather than only its underlying type (for
21832         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21833         attributes are visible at the point of the subprogram declaration.
21834         For Ada 2005, the error message is modified to indicate that the
21835         type's stream attributes must be visible (again, only for -gnat05).
21836
21837 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21838
21839         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21840         anonymous access types.
21841
21842         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21843         matching of anonymous access types and anonymous access to subprogram
21844         types. 'R'M 4.9.1 (2/2).
21845
21846 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21847
21848         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21849         rule prematurely when operands are universal, remaining ambiguities
21850         will be removed during resolution.
21851         Code cleanup.
21852
21853         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21854         that are Ada 2005 functions.
21855         (Has_Abstract_Interpretation): Subsidiary to
21856         Remove_Conversions, to remove ambiguities caused by abstract operations
21857         on numeric types when operands are universal.
21858
21859 2005-12-09  Robert Dewar  <dewar@adacore.com>
21860
21861         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21862         for case where spec is categorized.
21863
21864 2005-12-09  Javier Miranda  <miranda@adacore.com>
21865
21866         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21867         types use the corresponding record type. This was not needed before
21868         the implementation of Ada 2005 synchronized types because
21869         concurrent types were never tagged types in Ada 95.
21870
21871 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21872
21873         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21874         first subtype of the type of the expression to verify that it is a
21875         legal Time type.
21876
21877 2005-12-09  Robert Dewar  <dewar@adacore.com>
21878
21879         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21880         decoded names.
21881
21882 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21883             Robert Dewar  <dewar@adacore.com>
21884             Ed Falis  <falis@adacore.com>
21885             Florian Villoing  <villoing@adacore.com>
21886             Thomas Quinot  <quinot@adacore.com>
21887             Arnaud Charlet  <charlet@adacore.com>
21888
21889         * gnat_ugn.texi: Created section "Stack Related Tools"
21890         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21891         "Stack Related Tools"
21892         Added subsection "Static Stack Usage Analysis"
21893         Added subsection "Dynamic Stack Usage Analysis"
21894         Include documentation of itypes in sprint listing (-gnatG)
21895         Documented gnatbind -D switch (default sec stack size for fixed sec
21896         stacks).
21897         Added Interrupt_State and Persistent_BSS to list of configuration
21898         pragmas.
21899         Add missing doc for maximum value of nnn in -gnatyMnnn
21900
21901         * gnat_rm.texi: Document the AltiVec binding.
21902         Add documentation for pragma Complete_Representation
21903         Shortened an overly long line (> 79 chars)
21904         Clarify documentation of unchecked conversion in implementation
21905         defined cases.
21906         Document two argument form of pragma Debug
21907
21908         * types.ads (Column_Number): Update documentation.
21909
21910         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21911         library level Finalize_Storage_Only objects (these are not attached to
21912         any finalization list).
21913
21914         * system-mingw.ads: (Underlying_Priorities): Update comment.
21915
21916 2005-12-09  Robert Dewar  <dewar@adacore.com>
21917
21918         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21919         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21920         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21921         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21922         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21923         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21924         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21925         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21926         reformatting.
21927
21928 2005-12-09  Robert Dewar  <dewar@adacore.com>
21929
21930         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21931         (Ne_G): New function
21932
21933         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21934         for tag assignment.
21935         (Rewrite_Comparison): Handle case where operation is not a comparison
21936         and ignore, and also handle type conversion case.
21937
21938 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21939
21940         * exp_aggr.ads: Fix typo in comment.
21941         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21942
21943 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21944
21945         * layout.adb: Replace various uses of byte by storage unit throughout.
21946         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21947         static size, convert to storage units before returning, to conform to
21948         spec.
21949
21950 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21951
21952         * g-exctra.ads: Fix typo in comment.
21953
21954 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21955
21956         * utils.c: Minor reformatting.
21957
21958 2005-12-09  Robert Dewar  <dewar@adacore.com>
21959
21960         * g-soccon.ads:
21961         Further comment fixes to make the status of the default file clear
21962
21963         * s-bitops.adb: Clarify comment for Bits_Array
21964
21965 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21966
21967         * Make-lang.in (ada.install-normal): Remove.
21968
21969 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21970
21971         * Make-lang.in: Remove all dependencies on s-gtype.
21972
21973 2005-12-05  Richard Guenther  <rguenther@suse.de>
21974
21975         * utils.c (convert): Use fold_convert where appropriate.
21976
21977 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21978
21979         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21980         a period is meant.
21981
21982 2005-12-02  Richard Guenther  <rguenther@suse.de>
21983
21984         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21985
21986 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21987
21988         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21989         nodes.
21990
21991 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21992
21993         * mlib-prj.adb (Build_Library): Initialize Delete.
21994
21995 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21996
21997         * socket.c: Add extern int h_errno for rtems since networking header
21998         files are not available at this point in a tool bootstrap. Newlib
21999         only has basic C library header files.
22000
22001 2005-11-19  Richard Guenther  <rguenther@suse.de>
22002         Roger Sayle  <roger@eyesopen.com>
22003
22004         PR ada/23717
22005         * misc.c (internal_error_function): Don't use vsprintf to format
22006         the error message text, instead use pp_format_text and the new
22007         pretty printer APIs.  This allows handling of %qs, %w, etc.
22008
22009 2005-11-18  Laurent Guerby  <laurent@guerby.net>
22010
22011         PR ada/24857
22012         * Makefile.in: Use s-auxdec-empty for RTEMS.
22013
22014 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22015
22016         PR ada/22333
22017         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22018         a temporary if taking the address of something that is neither
22019         reference, declaration, or constant, since the gimplifier
22020         can't handle that case.
22021
22022 2005-11-17  Laurent Guerby  <laurent@guerby.net>
22023
22024         PR ada/24857
22025         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
22026
22027 2005-11-16  Richard Guenther  <rguenther@suse.de>
22028
22029         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22030
22031 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
22032
22033         PR ada/24855
22034         * raise-gcc.c: Add missing stdarg.h include.
22035
22036 2005-11-16  Richard Guenther  <rguenther@suse.de>
22037
22038         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22039         (ada/misc.o): Likewise.
22040
22041 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22042
22043         * g-soccon.ads: Minor reformatting. Update comments.
22044
22045         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22046         gain visibility on the declaration of struct timeval.
22047
22048         * g-soccon-freebsd.ads,
22049         g-soccon-darwin.ads,
22050         g-soccon-tru64.ads,
22051         g-soccon-aix.ads,
22052         g-soccon-irix.ads,
22053         g-soccon-hpux.ads,
22054         g-soccon-solaris.ads,
22055         g-soccon-vms.ads,
22056         g-soccon-mingw.ads,
22057         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22058
22059         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22060         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22061         g-soccon-linux-x86.ads: New files.
22062
22063         * g-socthi-mingw.adb:
22064         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22065
22066         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22067         (time_t, suseconds_t): New types constructed to match the tv_sec
22068         and tv_usec fields of C struct timeval.
22069         (Timeval): Construct structure in terms of the new types.
22070         (Host_Errno): New function (imported from socket.c), returns last hosts
22071         database error.
22072
22073         * g-socthi-vxworks.adb:  Add error handling circuitry.
22074
22075         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22076         components of struct timeval.
22077         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22078         (Check_Selector): In error conditions, clear internal socket sets to
22079         avoid a memory leak.
22080         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22081         Send_Timeout, Receive_Timeout.
22082
22083         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22084         the tv_sec and tv_usec fields of C struct timeval.
22085         (Timeval): Construct structure in terms of the new types.
22086         (Host_Errno): New function (imported from socket.c), returns last hosts
22087         database error.
22088
22089         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22090         hosts database last error code.
22091
22092         * gen-soccon.c: Complete value expansion should not be performed on
22093         TARGET, as it has the form of a math expression, and some components
22094         may be platform-defined macros.
22095         For VxWorks, generate the OK and ERROR values.
22096         New constants giving the sizes of the components of C struct timeval.
22097
22098 2005-11-14  Robert Dewar  <dewar@adacore.com>
22099             Ed Schonberg  <schonberg@adacore.com>
22100
22101         PR ada/18434
22102         * types.ads: Include All_Checks in Suppress_Array
22103
22104         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22105         not(a=b), since we no longer do this rewriting, and hence it is not
22106         needed.
22107         (Elaboration_Checks_Suppressed): Add special casing to
22108         deal with different cases of static and dynamic elaboration checks (all
22109         checks does not count in the first case, but does in the second).
22110         (Expr_Known_Valid): Do not assume that the result of any arbitrary
22111         function call is valid, since this is not the case.
22112         (Ensure_Valid): Do not apply validity check to a real literal
22113         in a universal or fixed context
22114
22115         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22116         elementary types using the operator in standard. It is cleaner not to
22117         modify the programmers intent, especially in the case of floating-point.
22118         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22119         it did not matter because we always rewrote a/=b to not(a=b).
22120         (Expand_Allocator_Expression): For an allocator expression whose nominal
22121         subtype is an unconstrained packed type, convert the expression to its
22122         actual constrained subtype.
22123         Implement warning for <= or >= where < or > not possible
22124         Fix to Vax_Float tests (too early in many routines, causing premature
22125         Vax_Float expansions.
22126
22127         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22128         to be used with packages and generic packages as well as with
22129         subprograms.
22130         (Suppress): Set All_Checks, but not Elaboration_Check, for case
22131         of pragma Suppress (All_Checks)
22132         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22133         a string literal for precise control over warnings.
22134         Avoid raise of pragma in case of unrecognized pragma and just return
22135         instead.
22136
22137         * sem_prag.ads: Minor reformatting
22138
22139         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22140         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22141         Switch. Do not handle any exception.
22142         Include -gnatwx as part of -gnatg (warn on redundant parens)
22143         Allow optional = after -gnatm
22144         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22145         longer sets Elaboration_Checks.
22146         Code to set warning mode moved to Sem_Warn
22147         so that it can be shared by pragma processing.
22148
22149         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22150         statement.
22151
22152         * s-taprop-solaris.adb:
22153         Change some <= to =, to avoid new warning
22154
22155         * a-exexda.adb, prj-proc.adb:
22156         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22157         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22158
22159 2005-11-14  Robert Dewar  <dewar@adacore.com>
22160
22161         * exp_vfpt.adb: Handle /= case
22162         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22163         so that we do not get duplicate scaling for fixed point conversions.
22164
22165         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22166
22167 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22168
22169         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22170         Increase default priority on Lynx from 15 to 17, and meet the Ada
22171         requirement that Default_Priority be ((Priority'First +
22172         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22173
22174 2005-11-14  Vincent Celier  <celier@adacore.com>
22175
22176         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22177         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22178         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22179         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22180         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22181         mlib-tgt-lynxos.adb (DLL_Prefix): New function
22182
22183 2005-11-14  Doug Rupp  <rupp@adacore.com>
22184
22185         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22186         private part.
22187
22188 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22189
22190         * s-traces-default.adb, s-trafor-default.ads,
22191         s-tratas-default.adb: Fix compilation errors.
22192
22193 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22194
22195         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22196         raising the exception so the memory used is freed.
22197
22198 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22199
22200         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22201         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22202         (convert_address): Update comments and list of platforms using this.
22203
22204         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22205         no longer used.
22206
22207 2005-11-14  Pascal Obry  <obry@adacore.com>
22208             Vincent Celier  <celier@adacore.com>
22209
22210         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22211         GNAT.Command_Line.
22212
22213         * memroot.adb: Remove redundant with/use clause on
22214         System.Storage_Elements.
22215
22216 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22217
22218         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22219         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22220         related code to a-exexpr.adb
22221         (Save_Occurrence_And_Private): Move GCC EH related code to
22222         a-exexpr-gcc.adb
22223         (Raise_Current_Excep): Add new variable Id with pragma
22224         volatile, to ensure that the variable lives on stack.
22225
22226         * a-exexpr-gcc.adb, raise-gcc.c: New file.
22227
22228         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22229         from a-except.adb.
22230         Move GCC EH related code to a-exexpr-gcc.adb
22231
22232         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22233         64-bit Solaris
22234         Split the Linux version of g-soccon into separate variants for 32 and 64
22235         bit platforms.
22236         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22237         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22238         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22239         of host variable $(RANLIB_FLAGS).
22240         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22241         Code clean up: remove unused/obsolete targets.
22242         (EH_MECHANISM): New variable introduced to differenciate between the
22243         two EH mechanisms statically.
22244         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22245         (LIBGNAT_OBJS): Add raise-gcc.o
22246         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22247         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22248         supports VxWorks 6 RTPs.
22249         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22250         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22251
22252         * raise.c: Move all GCC EH-related routines to raise-gcc.c
22253
22254 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22255
22256         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22257         deferral level, when abort is not allowed, to a later stage (the
22258         Task_Wrapper).
22259         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22260         it will not get changed by the generated code. It was previously done
22261         in Create_Task.
22262
22263 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22264             Olivier Hainque  <hainque@adacore.com>
22265             Eric Botcazou  <ebotcazou@adacore.com>
22266
22267         * decl.c:
22268         Factor common code to build a storage type for an unconstrained object
22269         from a fat or thin pointer type and a constrained object type.
22270         (annotate_value): Handle BIT_AND_EXPR.
22271         (annotate_rep): Don't restrict the back annotation of inherited
22272         components to the type_annotate_only case.
22273         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22274         we are not defining the type.
22275         <E_Record_Type>: Likewise.
22276         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22277         to get advantage of the new maybe_stabilize_reference interface, to
22278         ensure that what we reference is indeed stabilized instead of relying
22279         on assumptions on what the stabilizer does.
22280         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22281         type imported through a limited_with clause, use its non-limited view.
22282         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22283         differentiation.
22284         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22285         of #if sections + explicit comparisons of convention identifiers.
22286         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22287         before early-returning for certain types when code generation is
22288         disabled.
22289         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22290         nullification of gnu_expr we do for objects with address clause and
22291         that we are not defining.
22292         (elaborate_expression_1): Do not create constants when creating
22293         variables needed by the debug info: the dwarf2 writer considers that
22294         CONST_DECLs is used only to represent enumeration constants, and emits
22295         nothing for them.
22296         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22297         object with an address clause into an indirect reference, drop the
22298         initializing expression.
22299         Include "expr.h".
22300         (STACK_CHECK_BUILTIN): Delete.
22301         (STACK_CHECK_PROBE_INTERVAL): Likewise.
22302         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22303         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22304         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22305         corresponding to the renamed object as ignored for debugging purposes.
22306
22307         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22308         related): For a prefix that is a dereference of a fat or thin pointer,
22309         if there is an actual subtype provided by the front-end, use that
22310         subtype to build an actual type with bounds template.
22311         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22312         is provided by the front-end, use that subtype to compute the size of
22313         the deallocated object.
22314         (gnat_to_gnu): When adding a statement into an elaboration procedure,
22315         check for a potential violation of a No_Elaboration_Code restriction.
22316         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22317         with extra arguments to control whether to recurse through non-values
22318         and to let the caller know if the stabilization has succeeded.
22319         (gnat_stabilize_reference): Now a simple wrapper around
22320         maybe_stabilize, for common uses without restriction on lvalues and
22321         without need to check for the success indication.
22322         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22323         pass false instead of 0 as the FORCE argument which is a bool.
22324         (Identifier_to_gnu): Remove checks ensuring that an renamed object
22325         attached to a renaming pointer has been properly stabilized, as no such
22326         object is attached otherwise.
22327         (call_to_gnu): Invoke create_var_decl to create the temporary when the
22328         function uses the "target pointer" return mechanism.
22329         Reinstate conversion of the actual to the type of the formal
22330         parameter before any other specific treatment based on the passing
22331         mechanism. This turns out to be necessary in order for PLACEHOLDER
22332         substitution to work properly when the latter type is unconstrained.
22333
22334         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22335         common pattern.
22336         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22337         with extra arguments to control whether to recurse through non-values
22338         and to let the caller know if the stabilization has succeeded.
22339
22340         * utils2.c (gnat_build_constructor): Only sort the fields for possible
22341         static output of record constructor if all the components are constant.
22342         (gnat_build_constructor): For a record type, sort the list of field
22343         initializers in increasing bit position order.
22344         Factor common code to build a storage type for an unconstrained object
22345         from a fat or thin pointer type and a constrained object type.
22346         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22347         types variants, and process special cases of VIEW_CONVERT expressions
22348         as their NOP_EXPR counterpart to ensure we get to the
22349         CORRESPONDING_VARs associated with CONST_DECls.
22350         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22351         on the right-hand side.
22352
22353         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22354         a common pattern.
22355         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22356         are converting back to its original type.
22357         (convert) <JM input>: Fallthrough regular conversion code instead of
22358         extracting the object if converting to a type variant.
22359         (create_var_decl): When a variable has an initializer requiring code
22360         generation and we are at the top level, check for a potential violation
22361         of a No_Elaboration_Code restriction.
22362         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22363         SIZE and SIZE_UNIT which we need for later back-annotations.
22364         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22365         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22366         is an unchecked union.
22367         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22368         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22369         main variant, just replace the VIEW_CONVERT_EXPR.
22370         <UNION_TYPE>: Revert 2005-03-02 change.
22371
22372         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22373
22374         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22375
22376 2005-11-14  Matthew Heaney  <heaney@adacore.com>
22377
22378         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22379         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22380         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22381         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22382         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22383         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22384         Compiles against the spec for ordered maps described in sections
22385         A.18.6 of the most recent (August 2005) AI-302 draft.
22386
22387 2005-11-14  Olivier Hainque  <hainque@adacore.com>
22388
22389         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22390         to ensure bias adjustments take place when need be and to prevent
22391         occurrences of intermediate overflows.
22392
22393 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22394             Olivier Hainque  <hainque@adacore.com>
22395
22396         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22397         ia64 HP-UX.
22398
22399         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22400         tracebacks on ia64 HP-UX and provide explanatory comment.
22401         Enable backtraces on ia64 GNU/Linux.
22402         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22403         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22404
22405 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22406             Javier Miranda  <miranda@adacore.com>
22407
22408         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22409         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22410         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22411         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22412
22413         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22414         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22415         assertions).
22416
22417         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22418         subprogram that generates the external name associated with a
22419         secondary dispatch table.
22420         (Get_Secondary_DT_External_Name): New subprogram that generates the
22421         external name associated with a secondary dispatch table.
22422
22423 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22424
22425         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22426         line in the ALI file to include both an instantiation reference, and a
22427         returned value.
22428
22429 2005-11-14  Vincent Celier  <celier@adacore.com>
22430
22431         * clean.adb (Check_Project): Look for Ada code in extending project,
22432         even if Ada is not specified as a language.
22433         Use new function DLL_Prefix for DLL_Name
22434         (Clean_Interface_Copy_Directory): New procedure
22435         (Clean_Library_Directory): New procedure
22436         (Clean_Directory): Remove procedure, no longer used
22437         (Clean_Project): Do not delete any file in an externally built project
22438
22439         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22440         directory of an extending project, even when there are no Ada source
22441         present.
22442         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22443         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22444
22445         * mlib-prj.adb (Check_Library): For all library projects, get the
22446         library file timestamp.
22447         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22448         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22449         (Clean): Remove procedure, no longer used
22450         (Ultimate_Extension_Of): New function
22451         (Build_Library): When cleaning the library directory, only remove an
22452         existing library file and any ALI file of a source of the project.
22453         When cleaning the interface copy directory, remove any source that
22454         could be a source of the project.
22455
22456         * prj.ads, prj.adb (Project_Empty): Add values of new components
22457         Library_TS and All_Imported_Projects.
22458         (Project_Empty): Add values for new components of Project_Data:
22459         Library_ALI_Dir and Display_Library_ALI_Dir
22460
22461         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22462
22463         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22464         attribute Library_ALI_Dir.
22465         (Check_Library_Attributes): The library directory cannot be the same as
22466         any source directory of the project tree.
22467         (Check_Stand_Alone_Library): The interface copy directory cannot be
22468         the same as any source directory of the project tree.
22469
22470         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22471         all temporary files.
22472
22473 2005-11-14  Robert Dewar  <dewar@adacore.com>
22474             Ed Schonberg  <schonberg@adacore.com>
22475
22476         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22477         (Check_Elab_Call): A call within a protected body is never an
22478         elaboration call, and does not require checking.
22479         (Same_Elaboration_Scope): Take into account protected types for both
22480         entities.
22481         (Activate_Elaborate_All_Desirable): New procedure
22482
22483         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22484         desirable
22485
22486         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22487         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22488
22489         * lib-writ.ads, lib-writ.adb:
22490         Implement new AD/ED for Elaborate_All/Elaborate desirable
22491         Use new Elaborate_All_Desirable flag in N_With_Clause node
22492
22493         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22494         N_Free_Statement nodes.
22495         Define new class N_Subprogram_Instantiation
22496         Add Elaborate_Desirable flag to N_With_Clause node
22497         Add N_Delay_Statement (covering two kinds of delay)
22498
22499         * debug.adb: Introduce d.f flag for compiler
22500         Add -da switch for binder
22501
22502 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22503             Cyrille Comar  <comar@adacore.com>
22504
22505         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22506         for task component, in the case of a limited aggregate. The enclosed
22507         object declaration will create it earlier. Otherwise, in the case of a
22508         nested aggregate, the object may appear in the wrong scope.
22509         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22510         (Gen_Assign): If the component being assigned is an array type and the
22511         expression is itself an aggregate, wrap the assignment in a block to
22512         force finalization actions on the temporary created for each row of the
22513         enclosing object.
22514         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22515         structures are initialized after all discriminants are set so that
22516         they can be accessed even when their offset is dynamic.
22517
22518 2005-11-14  Robert Dewar  <dewar@adacore.com>
22519             Hristian Kirtchev  <kirtchev@adacore.com>
22520
22521         * sem_attr.adb: Implement Machine_Rounding attribute
22522         (Analyze_Access_Attribute): The access attribute may appear within an
22523         aggregate that has been expanded into a loop.
22524         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22525         'Terminated whenever the prefix is of a task interface class-wide type.
22526         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22527         the prefix is of a task interface class-wide type.
22528
22529         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22530         to avoid warnings.
22531
22532         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22533         Remove pragma Inline for [Unaligned_]Valid.
22534         Add comments that Valid routines do not work for Vax_Float
22535
22536         * exp_attr.adb: Implement Machine_Rounding attribute
22537
22538         * snames.h: Add entry for Machine_Rounding attribute
22539
22540 2005-11-14  Javier Miranda  <miranda@adacore.com>
22541             Robert Dewar  <dewar@adacore.com>
22542             Hristian Kirtchev  <kirtchev@adacore.com>
22543
22544         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22545         and related): For a prefix that is an explicit dereference of an
22546         access to unconstrained packed array type, annotate the dereference
22547         with an actual subtype so GIGI can make a correct size computation.
22548         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22549         'Unrestricted_Access, if the designated type is an interface we
22550         add a type conversion to force the displacement of the pointer
22551         to the secondary dispatch table.
22552         Use Universal_Real instead of Long_Long_Float when we need a high
22553         precision float type for the generated code (prevents gratuitous
22554         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22555         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22556         'Terminated for task interface class-wide objects. Generate a call to
22557         the predefined dispatching routine used to retrieve the _task_id from
22558         a task corresponding record.
22559         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22560
22561         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22562         (Check_Dispatching_Operation): Protect the frontend againts
22563         previously detected errors.
22564
22565         * Makefile.rtl: Add new instantiations of system.fat_gen
22566
22567         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22568         Change name of instantiated package for better consistency
22569         with newly added system.fat_gen instantiations.
22570
22571         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22572         s-fvagfl.ads: New files.
22573
22574 2005-11-14  Cyrille Comar  <comar@adacore.com>
22575             Thomas Quinot  <quinot@adacore.com>
22576
22577         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22578         assignment of a value of a tagged type that has been rewritten to a
22579         block statement, it is known by construction that no checks are
22580         necessary for the statements within the block: analyze it with checks
22581         suppressed.
22582         (Expand_N_If_Statement): When killing a dead then-branch in an
22583         if-statement that has elsif_parts, recompute the Current_Value node
22584         for any entity whose value is known from the condition of the first
22585         elsif_part.
22586         (Expand_N_Return_Statement): When returning a mutable record, convert
22587         the return value into its actual subtype in order to help the backend
22588         to return the actual size instead of the maximum. This is another
22589         aftermath of not returning mutable records on the sec-stack anymore.
22590
22591         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22592         handling of error msg for suspicious reverse range iteration.
22593         (Check_Possible_Current_Value_Condition): Move declaration from body to
22594         spec, to allow this subprogram to be called from exp_ch5.
22595
22596 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22597
22598         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22599         generate a set of nested array aggregates instead of a single flat
22600         aggregate for multi-dimensional arrays.
22601
22602 2005-11-14  Pascal Obry  <obry@adacore.com>
22603
22604         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22605         by spawnve is a process handle, no need to convert. Add a parameter
22606         close to control wether the process handle must be closed.
22607         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22608         a process handle, not need to convert.
22609         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22610
22611         * g-expect.adb: (Kill): Document the new close parameter.
22612         (Close): Do not release the process handle in the kill there as
22613         waitpid() is using it.
22614         (Send_Signal): Release the process handle.
22615
22616 2005-11-14  Robert Dewar  <dewar@adacore.com>
22617
22618         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22619         need a high precision float type for the generated code (prevents
22620         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22621         used).
22622
22623         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22624         need a high precision float type for the generated code (prevents
22625         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22626         used).
22627         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22628         allowed on non-static enumeration subtypes. Force a load error to emit
22629         the correct diagnostic.
22630
22631 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22632             Robert Dewar  <dewar@adacore.com>
22633             Ed Schonberg  <schonberg@adacore.com>
22634
22635         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22636         subtype to compute the size of the designated object at run-time,
22637         create such a subtype and store it in the Actual_Designated_Subtype
22638         attribute of the N_Free_Statement.
22639         Generate itype for classwide designated object in both cases of
22640         user-specified storage pool: specific and class-wide, not only in the
22641         specific case.
22642         Raise CE when trying to set a not null access type object to null.
22643         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22644         an explicit loop, because freeze nodes make its position variable.
22645
22646         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22647         null object.
22648
22649 2005-11-14  Javier Miranda  <miranda@adacore.com>
22650
22651         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22652         Build_Stream_Procedure): Add the null-excluding attribute to the first
22653         formal.
22654         This has no semantic meaning under Ada95 mode but it is a
22655         requirement under Ada05 mode.
22656
22657         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22658         the null exclusion is used under Ada95 mode
22659         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22660         (P_Access_Definition): Remove assertion that forbids the use of
22661         the null-exclusion feature in Ada95.
22662
22663 2005-11-14  Robert Dewar  <dewar@adacore.com>
22664
22665         * impunit.adb: Exclude container helper units not intended for use by
22666         users.
22667
22668 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22669
22670         * freeze.adb (Freeze_Entity): For an access formal that is an access
22671         to subprogram, freeze the anonymous subprogram type at the same time,
22672         to prevent later freezing in the wrong scope, such as the enclosing
22673         subprogram body.
22674         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22675         subprogram whenever available.
22676
22677 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22678
22679         PR ada/23732
22680         * gnatvsn.ads (Library_Version): Bump to 4.1
22681
22682 2005-11-14  Robert Dewar  <dewar@adacore.com>
22683
22684         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22685         Storage_Offset to avoid wrap around causing invalid results.
22686
22687 2005-11-14  Pascal Obry  <obry@adacore.com>
22688
22689         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22690         cross-compiler.
22691         (Scan_Bind_Arg): Fail with an error message if -M option is used
22692         on a native compiler.
22693
22694 2005-11-14  Robert Dewar  <dewar@adacore.com>
22695             Vincent Celier  <celier@adacore.com>
22696
22697         * gprep.adb: Implement -C switch to scan comments
22698
22699         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22700
22701         * scans.ads: Comment updates (including new use of Tok_Comment in
22702         preprocessing)
22703
22704         * opt.ads: Add documentation for flags that are used by gprmake,
22705         currently and in the next version of gprmake.
22706         (Verbosity_Level): New variable
22707         Add Replace_In_Comments switch
22708
22709         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22710         and -vm.
22711         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22712
22713 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22714
22715         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22716         message, friendlier.
22717
22718 2005-11-14  Robert Dewar  <dewar@adacore.com>
22719
22720         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22721
22722 2005-11-14  Doug Rupp  <rupp@adacore.com>
22723
22724         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22725
22726 2005-11-14  Robert Dewar  <dewar@adacore.com>
22727
22728         * interfac.ads: Change declarations of IEEE float types so that we no
22729         longer need a separate version of this package for VMS.
22730
22731 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22732
22733         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22734         internal entity created for the declaration of a child subprogram body
22735         with no spec as coming from source, to generate proper cross-reference
22736         information.
22737
22738 2005-11-14  Vincent Celier  <celier@adacore.com>
22739
22740         * make.adb (Compile_Sources): Change verbose message to minimum
22741         verbosity level High for "is in an Ada library", "is a read-only
22742         library" and "is an internal library",
22743         (Create_Binder_Mapping_File): Path name of ALI file for library project
22744         must include the library directory, not the object directory.
22745         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22746         for new switches -vl, -vm and -vh.
22747         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22748         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22749         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22750         in a project that is externally built.
22751         (Compute_All_Imported_Projects): New procedure
22752         (Gnatmake): Check if importing libraries should be regenerated because
22753         at least an imported library is more recent.
22754         (Initialize): For each project compute the list of the projects it
22755         imports directly or indirectly.
22756         (Add_Library_Search_Dir): New procedure, used in place of
22757         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22758         put in the search paths.
22759         (Add_Source_Search_Dir): New procedure, used in place of
22760         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22761         put in the search paths.
22762         (Mark_Directory): Resolve the absolute path the directory before marking
22763         it.
22764
22765         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22766         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22767         Switch. Do not handle any exception.
22768         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22769         so that the switch is recognized as valid.
22770         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22771
22772 2005-11-14  GNAT Script  <nobody@adacore.com>
22773
22774         * Make-lang.in: Makefile automatically updated
22775
22776 2005-11-14  Pascal Obry  <obry@adacore.com>
22777
22778         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22779         used.
22780         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22781         In both cases the last argument was dropped.
22782
22783 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22784
22785         * namet.h: (Column_Numbe): New type.
22786         (Get_Column_Number): Define to sinput__get_column_number.
22787         (Instantiation): Define to sinput__instantiation.
22788         (Get_Column_Number): Declare.
22789         (Instantiation): Likewise.
22790
22791 2005-11-14  Robert Dewar  <dewar@adacore.com>
22792
22793         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22794         syntax, which could cause compiler hangs.
22795
22796 2005-11-14  Vincent Celier  <celier@adacore.com>
22797
22798         * prj-ext.adb: Take into account new environment variable
22799         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22800         are defined.
22801         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22802         normalize its path name, making it absolute and resolving symbolic
22803         links, and replace the original if resolved path is different.
22804
22805 2005-11-14  Vincent Celier  <celier@adacore.com>
22806
22807         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22808         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22809
22810 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22811
22812         * prj-pp.adb (Print): Do not output the with statement if the
22813         associated name is empty, which happens for virtual extending projects.
22814         (Print): Preserve the "extends all" attribute when printing the project.
22815
22816         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22817         a virtual extending project.
22818
22819 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22820
22821         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22822         rhs of an assignment even if the type is unconstrained, when the
22823         context is non-expanding.
22824         In an inlined body, if the context type is private,
22825         resolve with its full view, which must be a composite type.
22826
22827 2005-11-14  Robert Dewar  <dewar@adacore.com>
22828             Ed Schonberg  <schonberg@adacore.com>
22829
22830         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22831         Do not give obsolescent warning on with of subprogram (since we
22832         diagnose calls)
22833         (Analyze_With_Clause): Add test for obsolescent package
22834         (Install_Context_Clauses): If the unit is the body of a child unit, do
22835         not install twice the private declarations of the parents, to prevent
22836         circular lists of Use_Clauses in a parent.
22837         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22838         compiling body of child unit.
22839         Use new class N_Subprogram_Instantiation
22840         (Expand_With_Clause): If this is a private with_clause for a child unit,
22841         appearing in the context of a package declaration, then the implicit
22842         with_clauses generated for parent units are private as well.
22843         (License_Check): Do not generate message if with'ed unit is internal
22844
22845 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22846             Ed Schonberg  <schonberg@adacore.com>
22847             Thomas Quinot  <quinot@adacore.com>
22848
22849         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22850         names are internal, because they will not have a corresponding partner
22851         in the actual package.
22852         (Analyze_Formal_Package): Move the setting of the formal package spec's
22853         Generic_Parent field so that it occurs prior to analyzing the package,
22854         to allow proper operation of Install_Parent_Private_Declarations.
22855         (Analyze_Package_Instantiation): Set the instantiated package entity's
22856         Package_Instantiation field.
22857         (Get_Package_Instantiation_Node): Move declaration to package spec.
22858         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22859         field is present.
22860         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22861         instantiation is Unchecked_Conversion, for which no parents are needed.
22862         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22863         parent scopes of a scope being removed prior to inlining an instance
22864         body.
22865         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22866         the current context is itself an instance within a non-instance child
22867         unit, to prevent scope stack errors.
22868         (Save_References): If the node is an aggregate that is an actual in a
22869         call, rewrite as a qualified expression to preserve some type
22870         information, to resolve possible ambiguities in the instance.
22871         (Instance_Parent_Unit): New global variable to record the ultimate
22872         parent unit associated with a generic child unit instance (associated
22873         with the existing Parent_Unit_Visible flag).
22874         (type Instance_Env): New component Instance_Parent_Unit for stacking
22875         parents recorded in the global Instance_Parent_Unit.
22876         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22877         stack.
22878         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22879         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22880         not already set. Replace test of Is_Child_Unit with test of parent's
22881         scope against package Standard. Add comments and a ??? comment.
22882         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22883         on a child instance parent to test that the parent equals
22884         Instance_Parent rather than simply checking that the unit is not a
22885         child unit.
22886         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22887         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22888         a formal interface are ancestors of the corresponding actual.
22889         (Validate_Formal_Interface_Type): Additional legality checks.
22890         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22891         interface types with ancestors.
22892         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22893         to diagnose attempts to use generic within its own declaration.
22894
22895 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22896             Javier Miranda  <miranda@adacore.com>
22897
22898         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22899         discriminant.
22900         (Build_Private_Derived_Type): The entity of the created full view of the
22901         derived type does not come from source. If after installing the private
22902         declarations of the parent scope the parent is still private, use its
22903         full view to construct the full declaration of the derived type.
22904         (Build_Derived_Record_Type): Relax the condition that controls the
22905         execution of the check that verifies that the partial view and
22906         the full view agree in the set of implemented interfaces. In
22907         addition, this test now only takes into account the progenitors.
22908         (Derive_Interface_Subprograms): No need to derive subprograms
22909         of ancestors that are interfaces.
22910         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22911         associated code.
22912         Change name Is_Package to Is_Package_Or_Generic_Package
22913         (Complete_Subprograms_Derivation): Handle the case in which the full
22914         view is a transitive derivation of the ancestor of the partial view.
22915         (Process_Full_View): Rename local subprogram Find_Interface_In_
22916         Descendant to Find_Ancestor_Interface to leave the code more clear.
22917         Remove wrong code that avoids the generation of an error message
22918         when the immediate ancestor of the partial view is an interface.
22919         In addition some minor reorganization of the code has been done to
22920         leave it more clear.
22921         (Analyze_Type_Declaration): If type has previous incomplete tagged
22922         partial view, inherit properly its primitive operations.
22923         (Collect_Interfaces): Make public, for analysis of formal
22924         interfaces.
22925         (Analyze_Interface_Declaration): New procedure for use for regular and
22926         formal interface declarations.
22927         (Build_Derived_Record_Type): Add support for private types to the code
22928         that checks if a tagged type implements abstract interfaces.
22929         (Check_Aliased_Component_Type): The test applies in the spec of an
22930         instance as well.
22931         (Access_Type_Declaration): Clean up declaration of malformed type
22932         declared as an access to its own classwide type, to prevent cascaded
22933         crash.
22934         (Collect_Interfaces): For private extensions and for derived task types
22935         and derived protected types, the parent may be an interface that must
22936         be included in the interface list.
22937         (Access_Definition): If the designated type is an interface that may
22938         contain tasks, create Master_Id for it before analyzing the expression
22939         of the declaration, which may be an allocator.
22940         (Record_Type_Declaration): Set properly the interface kind, for use
22941         in allocators, the creation of master id's for task interfaces, etc.
22942
22943 2005-11-14  Javier Miranda  <miranda@adacore.com>
22944             Ed Schonberg  <schonberg@adacore.com>
22945
22946         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22947         omitted in case of stream attribute subprograms.
22948         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22949         appear immediately after a subprogram body, when there is no previous
22950         subprogram declaration.
22951         Change name Is_Package to Is_Package_Or_Generic_Package
22952         (Process_Formals): A non null qualifier on a non null named access
22953         type is not an error, and is a warning only if Redundant_Constructs
22954         are flagged.
22955
22956 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22957             Ed Schonberg  <schonberg@adacore.com>
22958
22959         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22960         nested within Analyze_Package_Specification to install the private
22961         declarations and use clauses within each of the parent units of a
22962         package instance of a generic child package.
22963         (Analyze_Package_Specification): When entering a private part of a
22964         package associated with a generic instance or formal package, the
22965         private declarations of the parent must be installed (by calling new
22966         procedure Install_Parent_Private_Declarations).
22967         Change name Is_Package to Is_Package_Or_Generic_Package
22968         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22969         record is absent in a generic context, which does not indicate a
22970         compiler error.
22971
22972 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22973
22974         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22975         not try to rewrite a renamed stream attribute, because the operations
22976         on the type may not have been generated.
22977         Handle properly a renaming_as_body generated for a stream operation
22978         whose default is abstract because the object type itself is abstract.
22979         (Find_Type): If the type is incomplete and appears as the prefix of a
22980         'Class reference, it is tagged, and its list of primitive operations
22981         must be initialized properly.
22982         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22983         private declaration of a parent unit, prior to compiling the private
22984         part of a child unit, find on the scope stack the proper parent entity
22985         on which to link the use clause.
22986         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22987         detected.
22988         (Analyze_Object_Renaming): An attribute reference is not a legal object
22989         if it is not a function call.
22990
22991 2005-11-14  Robert Dewar  <dewar@adacore.com>
22992             Ed Schonberg  <schonberg@adacore.com>
22993
22994         * sem_eval.adb: Implement d.f flag
22995         (Subtype_Statically_Match): A generic actual type has unknown
22996         discriminants when the corresponding actual has a similar partial view.
22997         If the routine is called to validate the signature of an inherited
22998         operation in a child instance, the generic actual matches the full view,
22999
23000 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
23001             Ed Schonberg  <schonberg@adacore.com>
23002             Robert Dewar  <dewar@adacore.com>
23003             Thomas Quinot  <quinot@adacore.com>
23004
23005         * sem_res.adb (Resolve_Call): Provide a better error message whenever
23006         a procedure call is used as a select statement trigger and is not an
23007         entry renaming or a primitive of a limited interface.
23008         (Valid_Conversion): If the operand has a single interpretation do not
23009         remove address operations.
23010         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23011         statement to inhibit warning.
23012         (Resolve_Unary_Op): Do not produce a warning when
23013         processing an expression of the form -(A mod B)
23014         Use Universal_Real instead of Long_Long_Float when we need a high
23015         precision float type for the generated code (prevents gratuitous
23016         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23017         (Resolve_Concatenation_Arg): Improve error message when argument is an
23018         ambiguous call to a function that returns an array.
23019         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23020         there is an implicit operator in the given scope if we are within an
23021         instance: legality check has been performed on the generic.
23022         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23023         after resolving operand, to avoid false warnings on overloaded calls.
23024
23025 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
23026             Javier Miranda  <miranda@adacore.com>
23027
23028         PR ada/15604
23029         * sem_type.adb (Covers): In an inlined body, a composite type matches
23030         a private type whose full view is a composite type.
23031         (Interface_Present_In_Ancestor): Protect the frontend against
23032         previously detected errors to ensure that its compilation
23033         with assertions enabled gives the same output that its
23034         compilation without assertions.
23035         (Interface_Present_In_Ancestor): Add support for private types.
23036         Change name In_Actual to In_Generic_Actual (clean up)
23037         (Disambiguate): New predicate In_Actual, to recognize expressions that
23038         appear in the renaming declaration generated for generic actuals, and
23039         which must be resolved in the outer context.
23040
23041 2005-11-14  Robert Dewar  <dewar@adacore.com>
23042             Thomas Quinot  <quinot@adacore.com>
23043             Hristian Kirtchev  <kirtchev@adacore.com>
23044             Ed Schonberg  <schonberg@adacore.com>
23045
23046         * sem_util.ads, sem_util.adb: Change name Is_Package to
23047         Is_Package_Or_Generic_Package.
23048         (Check_Obsolescent): New procedure.
23049         (Set_Is_Public): Remove obsolete junk test.
23050         (Set_Public_Status): Do not set Is_Public on an object whose declaration
23051         occurs within a handled_sequence_of_statemets.
23052         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23053         for a parameterless procedure.
23054         (Enter_Name): Recognize renaming declarations created for private
23055         component of a protected type within protected operations, so that
23056         the source name of the component can be used in the debugger.
23057
23058 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
23059             Robert Dewar  <dewar@adacore.com>
23060
23061         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23062         of a generic subprogram are not visible outside the body.
23063         (Set_Warning_Switch): New procedure (code to set warning mode moved
23064         here from Switch.C so that it can be shared by pragma processing.
23065         (Check_References): Special case warning for non-modified non-imported
23066         volatile objects.
23067         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23068         form with a string literal argument
23069
23070 2005-11-14  Javier Miranda  <miranda@adacore.com>
23071
23072         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23073         anonymous access.
23074         (Write): Addition of "not null" to the anonymous access.
23075         (Read): Addition of "not null" to the anonymous access.
23076         (Write): Addition of "not null" to the anonymous access.
23077
23078         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23079         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23080         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23081         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23082         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23083         "not null" to the anonymous access.
23084
23085 2005-11-14  Robert Dewar  <dewar@adacore.com>
23086
23087         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23088         offset values
23089
23090 2005-11-14  Vincent Celier  <celier@adacore.com>
23091
23092         * switch.adb (Bad_Switch): New procedure
23093         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23094         message when in error.
23095
23096         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23097         Too_Many_Output_Files): Remove declarations, no longer used.
23098         (Scan_Nat): New parameter Switch
23099         (Scan_Pos): Ditto
23100         (Bad_Switch): New procedure
23101
23102         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23103         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23104         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23105         to Osint.Fail. Do not handle any exception.
23106
23107 2005-11-14  Vincent Celier  <celier@adacore.com>
23108
23109         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23110         designates a non existent directory.
23111
23112 2005-11-14  Robert Dewar  <dewar@adacore.com>
23113
23114         * xgnatugn.adb: Replace invalid membership test by 'Valid
23115
23116 2005-11-14  Vincent Celier  <celier@adacore.com>
23117
23118         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23119         there is no object directory.
23120
23121 2005-11-14  Robert Dewar  <dewar@adacore.com>
23122
23123         * usage.adb: Minor adjustment to output format, use nn instead of nnn
23124         (so that -gnateInnn does not run into next column)
23125
23126 2005-11-14  Ed Falis  <falis@adacore.com>
23127
23128         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23129         "constrained"
23130
23131 2005-11-14  Cyrille Comar  <comar@adacore.com>
23132
23133         * s-chepoo.ads: Add comments on Dereference.
23134         Remove unnecessary inherited abstract primitives.
23135         Cosmetic cleanup.
23136
23137 2005-11-14  Robert Dewar  <dewar@adacore.com>
23138
23139         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23140         node parameter, not needed, since it is available as Declaration_Node.
23141
23142 2005-11-14  Geert Bosch  <bosch@adacore.com>
23143
23144         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23145         grammatically correct.
23146
23147 2005-11-14  Vincent Celier  <celier@adacore.com>
23148
23149         * s-fileio.ads: Correct spelling error in comment
23150
23151 2005-11-14  Cyrille Comar  <comar@adacore.com>
23152             Robert Dewar  <dewar@adacore.com>
23153             Vincent Celier  <celier@adacore.com>
23154             Ben Brosgol  <brosgol@adacore.com>
23155             Jose Ruiz  <ruiz@adacore.com>
23156             Pascal Obry  <obry@adacore.com>
23157
23158         * gnat_ugn.texi:
23159         Document that -fstack-check is needed for strict compliance with the
23160         Ada 95 Reference Manual.
23161         Correct reference to VAX systems to meet HP guidelines
23162         Add documentation for new gnatmake switches -vl, -vm and -vh
23163         Replace DEC Ada by HP Ada
23164         Replace DIGITAL by HP
23165         Remove empty section on tools in compatibility section
23166         Clarify the Windows convention semantics.
23167         Document the Win32 calling convention.
23168         The Stdcall, Win32 and DLL convention are synonyms.
23169         Add a note in -gnatR description about zero size record components
23170         Note on new >= and <= warnings for -gnatwc
23171         Document that equal sign after -gnatm is optional.
23172         Note that strip is working fine on DLL built with a Library
23173         Project. The restriction apply only to DLL built with gnatdll.
23174         Update section about the way to debug a DLL.
23175         Update information about the DLL convention.
23176         Document -C switch for gnatprep
23177         Document new attribute Library_ALI_Dir
23178         Update elaboration doc to include implicit Elaborate pragmas now
23179         generated for subprogram instantiations.
23180         Document limitation on executable names that include spaces for --GCC,
23181         --GNATBIND, and --GNATLINK switches.
23182         Document that -w causes -gnatws to be added at start of gcc switches
23183
23184         * gnat_rm.texi: Document that -mieee is needed for generating infinite
23185         and NaN values in case of overflow on machines that are not fully
23186         compliant with the IEEE floating-point standard.
23187         Create a section describing the set of compiler options needed for
23188         strict compliance with the Ada 95 Reference Manual.
23189         Add documentation for pragma Obsolescent applied to a package
23190         Clarify potential issues of mixed language programs related to the
23191         I/O buffering enabling in the elaboration of the GNAT runtime.
23192         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23193         This documentation only patch adds extra documentsion for pragma
23194         Restrictions (No_Elaboration_Code), explaining why it is not possible
23195         to document this restriction in terms of allowed source constructs.
23196         Document string literal form of pragma Warnings
23197         Document new attribute Library_ALI_Dir
23198         Add documentation on stable attributes in project files that was missing
23199
23200         * gnat-style.texi: Indicate that paragraphs within a single comment
23201         should be separated by empty comment lines
23202
23203         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23204         /05 respectively)
23205
23206         * bindusg.adb: Minor cleanup, put -m before -M for consistency
23207
23208 2005-11-14  Robert Dewar  <dewar@adacore.com>
23209
23210         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23211         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23212         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23213         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23214         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23215         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23216         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23217         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23218         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23219         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23220         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23221         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23222         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23223         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23224         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23225         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23226         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23227         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23228         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23229         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23230         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23231         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23232         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23233         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23234         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23235         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23236         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23237         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23238         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23239         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23240         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23241         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23242         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23243         system-interix.ads, system-solaris-sparc.ads,
23244         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23245         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23246         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23247         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23248         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23249         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23250         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23251         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23252         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23253         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23254         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23255         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23256         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23257         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23258         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23259         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23260         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23261         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23262         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23263         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23264         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23265         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23266         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23267         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23268         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23269         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23270         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23271         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23272         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23273         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23274         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23275         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23276         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23277         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23278         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23279         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23280         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23281         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23282         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23283         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23284         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23285         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23286         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23287         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23288         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23289         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23290         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23291         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23292         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23293         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23294         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23295         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23296         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23297         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23298         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23299         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23300         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23301         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23302         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23303         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23304         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23305         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23306         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23307         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23308         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23309         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23310         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23311         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23312         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23313         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23314         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23315         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23316         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23317         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23318         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23319         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23320         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23321         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23322         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23323         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23324         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23325         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23326         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23327         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23328         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23329         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23330         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23331         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23332         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23333         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23334         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23335         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23336         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23337         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23338         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23339         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23340         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23341         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23342         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23343         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23344         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23345         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23346         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23347         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23348         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23349         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23350         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23351         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23352         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23353         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23354         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23355         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23356         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23357         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23358         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23359         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23360         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23361         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23362         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23363         a-numaux-darwin.ads, a-numaux-darwin.adb,
23364         a-swuwha.ads, a-stunha.ads: Minor reformatting
23365
23366 2005-11-14  Robert Dewar  <dewar@adacore.com>
23367
23368         PR ada/18434
23369         * osint-m.adb: Add pragma Elaborate_All for Osint
23370
23371 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
23372
23373         PR ada/23995
23374         * trans.c (call_to_gnu): Restore statement lost in translation.
23375
23376 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
23377
23378         * init.c: Use the Linux-specific section for the IA-64/Linux target.
23379         (__gnat_adjust_context_for_raise): Add conditional code so that the
23380         IA-64 is also supported.
23381
23382 2005-11-03  James E Wilson  <wilson@specifix.com>
23383
23384         PR ada/23427
23385         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23386         TREE_OVERFLOW check.
23387
23388 2005-09-21  Olivier Hainque  <hainque@adacore.com>
23389
23390         PR ada/22418
23391         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23392         as we create them to store a size in bits.
23393
23394 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
23395
23396         PR ada/21937
23397         PR ada/22328
23398         PR ada/22381
23399         PR ada/22383
23400         PR ada/22419
23401         PR ada/22420
23402         * utils2.c (build_return_expr): New helper function.
23403         * gigi.h (build_return_expr): Declare it.
23404         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23405         of manually building the RETURN_EXPR tree.
23406         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23407         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23408         build_binary_op for the "target pointer" case.  Use build_return_expr
23409         instead of manually building the RETURN_EXPR tree.
23410
23411 2005-09-16  Laurent Guerby  <laurent@guerby.net>
23412
23413         PR ada/23788
23414         * s-tpinop.ads: Make this unit Preelaborate.
23415
23416 2005-09-16  Andreas Jaeger  <aj@suse.de>
23417
23418         * socket.c: Add string.h for memcpy.
23419
23420 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23421
23422         * dec-io.ads, dec-io.adb: Removed, no longer used.
23423
23424 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23425
23426         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23427
23428         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23429         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23430         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23431         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23432         dependent units are Preelaborate.
23433         (Initialize): Call Interrupt_Managemeent.Initialize and
23434         OS_Primitives.Initialize to ensure proper initialization of this unit.
23435         Remove use of System.Soft_Links
23436         Make this unit Preelaborate.
23437
23438         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23439         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23440         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23441         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23442         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23443         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23444         Add pragma Preelaborate, since these packages are suitable for this
23445         categorization.
23446         Update comments.
23447
23448         * s-traent-vms.ads, s-intman-dummy.adb,
23449         s-taprop-dummy.adb: Make this unit Preelaborate.
23450
23451         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23452         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23453         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23454         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23455         s-intman-solaris.adb, s-intman-irix-athread.adb,
23456         s-intman-irix.adb: Mark this unit Preelaborate.
23457         (Initialize): New procedure.
23458         Update comments.
23459
23460         * s-taspri-linux.ads: Removed.
23461
23462         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23463         as done by other implementations (e.g. posix).
23464
23465         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23466         responsible for deferring abort.
23467         Mark this unit Preelaborate.
23468
23469         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23470         proper initialization of the tasking run-time.
23471
23472         * s-tasdeb.ads: Mark this unit Preelaborate.
23473         (Known_Tasks): Add explicit default value to avoid elaboration code.
23474
23475         * s-inmaop-vms.adb (Elaboration code): Add call to
23476         Interrupt_Management.Initialize since the elaboration code depends on
23477         proper initialization of this package.
23478
23479         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23480         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23481         s-osprim-posix.adb: Make this unit Preelaborate.
23482
23483         * a-calend.adb: Add call to OS_Primitives.Initialize
23484
23485         * a-elchha.adb: Update use of Except.Id.Full_Name.
23486         Minor reformatting.
23487         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23488
23489         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23490         Move with clauses outside Warnings Off now that dependent units are
23491         Preelaborate.
23492         Use raise xxx with "..."; Ada 2005 form.
23493
23494         * a-taside.ads, a-taside.adb:
23495         Remove some dependencies, to make it easier to make this unit truly
23496         Preelaborate.
23497         Rewrite some code to be conformant with Preelaborate rules.
23498
23499         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23500         marked Preelaborate in the future.
23501
23502         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23503         these units Preelaborate.
23504
23505         * s-exctab.adb: Update use of Except.Id.Full_Name.
23506
23507         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23508         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23509         Set_Exc_Stack_Addr): Removed, no longer used.
23510         Remove reference to *Machine_State_Addr*, no longer needed.
23511
23512         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23513         (Exception_Data): Full_Name is now a System.Address so that this unit
23514         can be made Preelaborate.
23515         Clean up/simplify code thanks to Full_Name being a System.Address.
23516         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23517
23518         * s-taskin.ads, s-taskin.adb:
23519         Move with clauses outside Warnings Off now that dependent units are
23520         Preelaborate.
23521         Make this unit Preelaborate.
23522         (Initialize): New proceduure, replace elaboration code and makes the
23523         set up of the tasking run-time cleaner.
23524         (Detect_Blocking): Now a function instead of a deferred boolean, to
23525         obey Preelaborate rules.
23526
23527         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23528         soft links, no longer used.
23529
23530         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23531         packages are suitable for this categorization.
23532
23533         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23534         since we compile run-time sources in Ada 2005 mode.
23535         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23536         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23537         duplication.
23538         Remove reference to *Machine_State_Addr*, no longer needed.
23539
23540 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23541
23542         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23543         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23544         Remove reference to System.Exceptions.
23545
23546         * s-mastop-x86.adb: Removed, no longer used.
23547
23548         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23549
23550         * a-excach.adb: Minor reformatting.
23551
23552         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23553         instead fix new warnings that were hidden by this change.
23554         (AAA, ZZZ): Removed, replaced by...
23555         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23556         are used instead of constants, to help make Ada.Exception truly
23557         preelaborate.
23558         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23559         Raise_Storage_Error): File is now a System.Address, to simplify code.
23560         (Elab code): Removed, no longer used.
23561         (Null_Occurrence): Remove Warnings Off and make this construct
23562         preelaborate.
23563         Remove code related to front-end zero cost exception handling, since
23564         it is no longer used.
23565         Remove -gnatL/-gnatZ switches.
23566
23567         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23568         Update use of Except.Msg.
23569
23570         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23571         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23572         to front-end zero cost exception handling, since it is no longer used.
23573         Remove -gnatL/-gnatZ switches.
23574
23575         * lib-writ.ads: Minor reformatting
23576         Remove doc of UX
23577
23578         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23579
23580         * Make-lang.in: Remove references to s-except.ads
23581
23582         * s-except.ads: Removed, no longer used.
23583
23584         * s-mastop.ads, s-mastop.adb:
23585         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23586         Remove reference to System.Exceptions.
23587
23588         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23589         switch-b.adb: Remove code related to front-end zero cost exception
23590         handling, since it is no longer used.
23591         Remove -gnatL/-gnatZ switches.
23592
23593 2005-09-01  Robert Dewar  <dewar@adacore.com>
23594             Gary Dismukes  <dismukes@adacore.com>
23595             Javier Miranda  <miranda@adacore.com>
23596
23597         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23598         type by valid test and generate warning.
23599         (Tagged_Membership): Generate call to the run-time
23600         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23601         Change formal name Subtype_Mark to Result_Definition in several calls to
23602         Make_Function_Specification.
23603         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23604         check for proper accessibility of the operand of a class-wide allocator.
23605         The check can be left out if checks are suppressed or if the expression
23606         has a specific tagged type whose level is known to be safe.
23607
23608         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23609         generates the run-time check associated with null-excluding entities.
23610         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23611         check on the level of the return expression of a class-wide function
23612         can be elided. The check usually isn't needed if the expression has a
23613         specific type (unless it's a conversion or a formal parameter). Also
23614         add a test for whether accessibility checks are suppressed. Augment
23615         the comments to describe the conditions for performing the check.
23616
23617 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23618             Javier Miranda  <miranda@adacore.com>
23619             Gary Dismukes  <dismukes@adacore.com>
23620             Ed Schonberg  <schonberg@adacore.com>
23621
23622         * a-tags.adb (IW_Membership): Give support to
23623         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23624         subprogram has been extended to look for the tag in the ancestors tag
23625         table.
23626         Update the structure of the GNAT Dispatch Table to reflect the
23627         additional two tables used in dispatching selects.
23628         Introduce appropriate array types and record components in
23629         Type_Specific_Data to reflect the two tables.
23630         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23631         the TSD of a tag, indexed by position.
23632         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23633         operation kind in the TSD of a tag, indexed by position.
23634
23635         * a-tags.ads: Introduce an enumeration type to capture different
23636         primitive operation kinds. Define a constant reflecting the number of
23637         predefined primitive operations.
23638         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23639         of an entry wrapper.
23640         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23641         callable entity of a primitive operation.
23642
23643         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23644         primitive operations used in dispatching selects for limited
23645         interfaces, limited tagged, task and protected types what implement a
23646         limited interface.
23647         (Freeze_Type): Generate the bodies of the primitive operations used in
23648         dispatching selects for limited tagged, task and protected types that
23649         implement a limited interface. Generate statements to populate the two
23650         auxiliary tables used for dispatching in select statements.
23651         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23652         associated with predefined interface primitive operations.
23653         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23654         Set_Result_Definition.
23655         (Build_Variant_Record_Equality): Change Subtype_Mark to
23656         Result_Definition.
23657         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23658         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23659         (Build_Assignment): Simplify the code that adds the run-time-check.
23660         (Expand_N_Object_Declaration): Code cleanup.
23661
23662         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23663         entries when there is a protected type that implements a limited
23664         interface.
23665
23666         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23667         common routines used in expansion of dispatching selects.
23668         (Add_Private_Declarations): Select the appropriate protection type when
23669         there is a protected type that implements a limited interface.
23670         (Build_Parameter_Block): Generate a wrapped parameter block.
23671         (Build_Protected_Subprogram_Body): Select the appropriate type for
23672         locking entries when there is a protected type that implements a
23673         limited interface.
23674         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23675         classified as entry wrappers.
23676         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23677         asynchronous selects.
23678         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23679         dispatching conditional selects.
23680         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23681         protection when there is a protected type that implements limited
23682         interfaces.
23683         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23684         timed selects.
23685         (Extract_Dispatching_Call): Extract the entity of the name of a
23686         dispatching call, the object parameter, actual parameters and
23687         corresponding formals.
23688         (Make_Initialize_Protection): Correct logic of protection initialization
23689         when there is a protected type that implements a limited interface.
23690         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23691         values of actual parameters.
23692         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23693         block and assign them to the original actual parameters.
23694
23695         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23696         (Build_Protected_Sub_Specification): Change the type and name of the
23697         last formal to account for the increased variety of protection modes.
23698
23699         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23700         entities. Used to save the value of the Is_Hidden attribute when the
23701         limited-view is installed.
23702         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23703         the attribute of procedures classified as entry wrappers.
23704         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23705         entity of a primitive wrapper.
23706         (Write_Entity_Flags): Output the name and value of the
23707         Is_Primitive_Wrapper attribute.
23708         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23709         Entity.
23710         (Underlying_Type): If we have an incomplete entity that comes from
23711         the limited view then we return the Underlying_Type of its non-limited
23712         view if it is already available.
23713         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23714         including operators.
23715         (Write_Field26_Name): Add entry for Overridden_Operation
23716         (Overridden_Operation): New attribute of functions and procedures.
23717
23718         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23719         predefined position in the dispatch table for the primitive operations
23720         used in dispatching selects.
23721         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23722         predefined primitive operations and replace it with
23723         Default_Prim_Op_Count.
23724         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23725         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23726         the names of the generated primitive operations used in dispatching
23727         selects.
23728         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23729         case of abstract interface types. They will be inherit by the objects
23730         implementing the interface.
23731         (Make_DT): There is no need to inherit the dispatch table of the
23732         ancestor interface for the elaboration of abstract interface types.
23733         The dispatch table will be inherited by the object implementing the
23734         interface.
23735         (Copy_Secondary_DTs): Add documentation.
23736         (Validate_Position): Improve this static check in case of
23737         aliased subprograms because aliased subprograms must have
23738         the same position.
23739         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23740         the entries associated with predefined primitives of all the secondary
23741         dispatch tables.
23742         (Build_Anonymous_Access_Type): Removed.
23743         (Expand_Interface_Actuals): With the previous cleanup there is no need
23744         to build an anonymous access type. This allows further cleanup in the
23745         code generated by the expander.
23746         (Expand_Interface_Conversion): If the actual is an access type then
23747         build an internal function to handle the displacement. If the actual
23748         is null this function returns null because no displacement is
23749         required; otherwise performs a type conversion that will be
23750         expanded in the code that returns the value of the displaced actual.
23751         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23752         conversions that have no effect in the generated code because no
23753         displacement is required. Code cleanup; use local variables to
23754         avoid repeated calls to the subprogram directly_designated_type().
23755
23756         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23757         Classify the primitive operations used in dispatching selects as
23758         predefined.
23759         (Implements_Limited_Interface): Determine whether some type either
23760         directly implements a limited interface or extends a type that
23761         implements a limited interface.
23762         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23763         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23764         expression is limited.
23765         (Find_Interface_Tag): Add code to handle class-wide types and
23766         entities from the limited-view.
23767
23768         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23769         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23770         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23771         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23772         Set_Prim_Op_Kind.
23773
23774         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23775         of procedure name or prefix that appears as a trigger in a triggering
23776         alternative.
23777
23778         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23779
23780 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23781
23782         * s-tataat.adb, a-tasatt.adb:
23783         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23784
23785         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23786         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23787         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23788         longer used.
23789
23790 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23791             Jose Ruiz  <ruiz@adacore.com>
23792
23793         * s-taprop-vxworks.adb:
23794         Move with clauses outside Warnings Off now that dependent units are
23795         Preelaborate.
23796         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23797         initialization of this unit.
23798         (Specific): Add new procedures Initialize and Delete so that this
23799         package can be used for VxWorks 5.x and 6.x
23800         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23801         differences between VxWorks 5.x and 6.x
23802         Minor reformatting.
23803         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23804         caller.
23805         Use only Preelaborate-compatible constructs.
23806
23807         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23808         Primitives.Operations.
23809         (Delete, Initialize): New procedures.
23810
23811         * s-osinte-vxworks.adb: Body used to handle differences between
23812         VxWorks 5.x and 6.x
23813         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23814
23815         * s-osinte-vxworks.ads: Minor reformatting.
23816         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23817         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23818         and 6.
23819         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23820         between Vxworks 5 and 6.
23821         (taskLock, taskUnlock): Removeed, no longer used.
23822
23823         * adaint.c: The wait.h header is not located in the sys directory on
23824         VxWorks when using RTPs.
23825         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23826         using RTPs.
23827         (__gnat_dup): dup is available on Vxworks when using RTPs.
23828         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23829
23830         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23831
23832         * expect.c: The wait.h header is not located in the sys directory on
23833         VxWorks when using RTPs.
23834
23835 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23836
23837         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23838
23839         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23840
23841         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23842         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23843         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23844         g-soccon-freebsd.ads: Add new constants:
23845          IP_MULTICAST_IF
23846          SO_RCVTIMEO/SO_SNDTIMEO
23847          IOV_MAX
23848
23849         * gen-soccon.c:
23850         Move all target-specific file inclusions and macro definitions to
23851         gsocket.h, in order to ensure that any C code in socket.c will see a
23852         set of constants that is consistent with the contents of g-soccon.ads.
23853
23854         * gsocket.h: Code imported from gen-soccon.c:
23855         Move all target-specific file inclusions and macro definitions to
23856         gsocket.h, in order to ensure that any C code in socket.c will see a set
23857         of constants that is consistent with the contents of g-soccon.ads.
23858         This change also makes gen-soccon self-contained (removing dependencies
23859         upon GCC internal headers).
23860
23861         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23862         iovecs at a time.
23863         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23864
23865         * socket.c: Minor reformatting.
23866
23867 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23868             Thomas Quinot  <quinot@adacore.com>
23869
23870         * fname-sf.adb, mlib-tgt.ads,
23871         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23872         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23873         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23874         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23875         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23876         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23877         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23878         makegpr.adb: Remove redundant use_clauses.
23879
23880 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23881
23882         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23883         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23884         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23885         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23886         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23887         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23888         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23889         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23890         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23891         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23892         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23893         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23894         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23895         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23896         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23897         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23898         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23899         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23900         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23901         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23902         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23903         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23904         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23905         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23906         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23907         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23908         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23909         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23910         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23911         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23912         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23913         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23914         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23915         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23916         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23917         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23918         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23919         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23920         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23921         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23922         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23923         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23924         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23925         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23926         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23927         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23928         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23929         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23930         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23931         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23932         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23933         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23934         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23935         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23936         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23937         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23938         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23939         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23940         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23941         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23942         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23943         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23944         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23945         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23946         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23947         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23948         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23949         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23950         and always use the no parameter form for consistency.
23951
23952         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23953
23954 2005-09-01  Robert Dewar  <dewar@adacore.com>
23955
23956         * binde.adb: Minor reformatting
23957         (Find_Elab_Order): Output warning if -p used with static elab order
23958
23959 2005-09-01  Robert Dewar  <dewar@adacore.com>
23960
23961         * checks.adb (Check_Needed): New procedure, deals with removing checks
23962         based on analysis of short-circuited forms. Also generates warnings for
23963         improper use of non-short-circuited forms.
23964         Code clean ups.
23965
23966 2005-09-01  Robert Dewar  <dewar@adacore.com>
23967
23968         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23969         with 'Valid tests.
23970
23971 2005-09-01  Robert Dewar  <dewar@adacore.com>
23972
23973         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23974         spec.
23975         Implement new insertion char < (conditional warning)
23976         * errutil.adb, erroutc.adb: Implement new insertion char <
23977         (conditional warning).
23978         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23979         (Error_Msg_Warn): New variable for < insertion char.
23980         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23981         warning).
23982         (Check_For_Source): Change value of Source_Id only after the current
23983         source has been dealt with.
23984
23985 2005-09-01  Robert Dewar  <dewar@adacore.com>
23986             Doug Rupp  <rupp@adacore.com>
23987
23988         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23989         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23990         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23991         (Valid_D, Valid_F, Valid_G): New functions
23992
23993 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23994             Hristian Kirtchev  <kirtchev@adacore.com>
23995             Javier Miranda  <miranda@adacore.com>
23996
23997         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23998         from object notation, the original node is unanalyzed and carries no
23999         semantic information, so that accessiblity checks must be performed on
24000         the type of the actual itself.
24001         (Expand_N_Subprogram_Declaration): Change last actual parameter for
24002         compatibility with Build_Protected_Sub_Specification.
24003         (Check_Overriding_Inherited_Interfaces): Add suport to handle
24004         overloaded primitives.
24005         (Register_Interface_DT_Entry): Use the new name of the formal
24006         the the calls to Expand_Interface_Thunk
24007
24008         * exp_dbug.ads: Augment comments on encoding of protected types to
24009         include the generation of dispatching subprograms when the type
24010         implements at least one interface.
24011
24012         * lib.ads: Extend information in Load_Stack to include whether a given
24013         load comes from a Limited_With_Clause.
24014
24015         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24016         whether a potential circularity is harmless, because it includes units
24017         loaded through a limited_with clause. Extends previous treatment which
24018         did not handle properly arbitrary combinations of limited and
24019         non-limited clauses.
24020
24021 2005-09-01  Nicolas Setton  <setton@adacore.com>
24022
24023         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24024         to be encoded as typ___XBLU_lowerbound__upperbound instead of
24025         typ___XB_lowerbound__upperbound.
24026
24027 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24028
24029         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24030         dummy access formal for RACW/RAS TypeCode TSS.
24031         (Build_TypeCode_Call): Do not generate dummy null access actual for
24032         calls to the TypeCode TSS.
24033
24034 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24035
24036         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24037         fully qualified name, to distinguish instances with the same local name.
24038
24039         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24040         fully qualified.
24041
24042 2005-09-01  Robert Dewar  <dewar@adacore.com>
24043
24044         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24045         packed arrays.
24046
24047 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
24048
24049         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24050         (Free): New deallocation procedure for filter elements
24051         (Close): Deallocate any existing filter for the concerned connection
24052
24053 2005-09-01  Laurent Pautet  <pautet@adacore.com>
24054
24055         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24056         position set is provided, we compute one in order to reduce the maximum
24057         length of the keys.  This computation first selects a character
24058         position between 1 and the minimum length of the keys in order to
24059         avoid reducing one of the keys to an empty string.
24060         (Initialize, Compute): When the ratio V to K is too low, the algorithm
24061         does not converge. The initialization procedure now comes with a
24062         maximum number of iterations such that when exceeded, an exception is
24063         raised in Compute. The user can initialize this ratio to another value
24064         and try again
24065         Reformating and updated headers.
24066
24067 2005-09-01  Javier Miranda  <miranda@adacore.com>
24068
24069         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24070         that given an entity T creates and returns an Itype that duplicates the
24071         contents of T. The returned Itype has the null-exclusion
24072         attribute set to True, and its Etype attribute references T
24073         to keep the association between the two entities.
24074         Update copyright notice
24075
24076         * sem_aggr.adb (Check_Can_Never_Be_Null,
24077         Aggregate_Constraint_Checks, Resolve_Aggregate,
24078         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24079
24080         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24081
24082 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
24083             Robert Dewar  <dewar@adacore.com>
24084             Hristian Kirtchev  <kirtchev@adacore.com>
24085
24086         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24087         Result_Definition.
24088
24089         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24090         function specs.
24091         Call Set_Result_Definition instead of Set_Subtype_Mark.
24092         (P_Subprogram_Specification): Add parsing of anonymous access result
24093         plus null exclusions. Call Set_Result_Definition instead of
24094         Set_Subtype_Mark.
24095
24096         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24097         (P_Access_Type_Definition): Add parsing for an anonymous access result
24098         subtype, plus parsing for null exclusions. Call Set_Result_Definition
24099         instead of Set_Subtype_Mark.
24100
24101         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24102         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24103         (Result_Definition): New function for N_Function_Specifications.
24104         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24105         N_Function_Specification.
24106         (Set_Null_Exclusion_Present): Allow this flag for
24107         N_Function_Specification.
24108         (Set_Result_Definition): New procedure for N_Function_Specifications.
24109         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24110         and N_Function_Specification.
24111
24112         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24113         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24114         Add support for LIMITED NEW for Ada 2005 AI-419
24115         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24116         syntax for anonymous access results.
24117         Replace Subtype_Mark field by Result_Definition in
24118         N_Function_Specification and N_Access_Definition specs.
24119         Add Null_Exclusion_Present to spec of N_Function_Specification.
24120         (Result_Definition): New function for N_Function_Specification and
24121         N_Access_Function_Definition.
24122         (Set_Result_Definition): New procedure for N_Function_Specification and
24123         N_Access_Function_Definition.
24124
24125         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24126         Result_Definition for cases of N_Access_Function_Definition and
24127         N_Function_Specification.
24128         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24129
24130 2005-09-01  Vincent Celier  <celier@adacore.com>
24131
24132         * lib-writ.adb: Update Copyright notice
24133         (Write_With_Lines): On platforms where file names are case-insensitive,
24134         record the file names in lower case.
24135         (Write_ALI): For D lines, on platforms where file names are
24136         case-insensitive, record the file names in lower case.
24137
24138 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24139             Emmanuel Briot  <briot@adacore.com>
24140
24141         * lib-xref.adb (Output_Overridden_Op): Display information on
24142         overridden operation.
24143
24144         * lib-xref.ads: Add documentation on overridden operations.
24145
24146         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24147         information.
24148
24149         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24150         overriding entity information.
24151
24152 2005-09-01  Vincent Celier  <celier@adacore.com>
24153
24154         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24155         including those that are inherited.
24156
24157 2005-09-01  Robert Dewar  <dewar@adacore.com>
24158
24159         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24160
24161         * par-prag.adb: Implement new pragma Debug_Policy
24162
24163         * sem_prag.adb Implement new pragma Debug_Policy
24164         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24165         Component_Size attribute specification. Give warning for ignored pragma
24166         Pack.
24167
24168         * snames.h, snames.ads, snames.adb: Introduce entries in
24169         Preset_Names for Name_Disp_Asynchronous_Select,
24170         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24171         Name_Disp_Timed_Select.
24172         New pragma Debug_Policy
24173
24174         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24175         explicitly.
24176         Switch -gnata also sets Debug_Pragmas_Enabled
24177
24178         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24179         handle an explicit -gnata when compiling predefined files.
24180
24181 2005-09-01  Vincent Celier  <celier@adacore.com>
24182
24183         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24184         directories of projects that have no Ada sources.
24185
24186 2005-09-01  Robert Dewar  <dewar@adacore.com>
24187
24188         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24189         (makes a difference for wide characters)
24190
24191         * widechar.adb, widechar.ads:
24192         Add Wide_Char_Byte_Count feature to count chars vs bytes
24193
24194 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24195             Ed Schonberg  <schonberg@adacore.com>
24196             Robert Dewar  <dewar@adacore.com>
24197
24198         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24199         'Address attribute reference with an overloaded prefix, use the
24200         location of the prefix (not the location of the attribute reference) as
24201         the error location.
24202         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24203         a function renaming thereof, is a valid prefix for 'Size (where it is
24204         intepreted as a function call).
24205         (Statically_Denotes_Entity): New predicate to determine whether the
24206         prefix of an array attribute can be considered static.
24207
24208         PR ada/9087
24209         (Eval_Attr): Fix failure to evaluate Component_Size for
24210         unconstrained arrays (resulted in wrong value in packed case, since
24211         back end cannot handle this case)
24212
24213 2005-09-01  Robert Dewar  <dewar@adacore.com>
24214
24215         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24216         error msgs for most common cases.
24217         Use new errout insertion char < (conditional warning)
24218
24219 2005-09-01  Javier Miranda  <miranda@adacore.com>
24220             Ed Schonberg  <schonberg@adacore.com>
24221
24222         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24223         become local to the whole package.
24224         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24225         the package was already analyzed the new algorithm "replaces" the
24226         real entities by the shadow ones. This is required to ensure that
24227         the order of these entities in the homonym chains does not change;
24228         otherwise we can have undefined references at linking time because
24229         in case of conflicts the external name of the entities will have
24230         a suffix that depends on the order of the entities in the chain.
24231         (Remove_Limited_With_Clause): Complementary code that completes the
24232         new algorithm and replaces the shadow entities by the real ones.
24233         (Install_Limited_Withed_Unit): When unchaining entities before the
24234         installation of the shadow entities, only regular entities of the
24235         public part must be taken into account. This is required to
24236         keep this routine in synch with the work done by Remove_Limited_
24237         With_Clause
24238         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24239         even if unit is analyzed, because the analysis of the unit is
24240         idempotent in any case, and the limited view of the unit may have to
24241         be installed for proper visibility.
24242         (Expand_Limited_With_Clause): Even if the unit in the implicit
24243         with_clause has been analyzed already, a limited view of the package
24244         must be built for the current context, if it does not exist yet.
24245
24246 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24247             Javier Miranda  <miranda@adacore.com>
24248             Gary Dismukes  <dismukes@adacore.com>
24249
24250         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24251         defining entity for the instance body, make a new defining identifier
24252         rather than copying the entity of the spec, to prevent accidental
24253         sharing of the entity list.
24254         (Check_Private_View): When exchanging views of private types, build the
24255         list of exchanged views as a stack, to ensure that on exit the exchanges
24256         are undone in the proper order.
24257         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24258         Restore the compilation environment in case of instantiation_error.
24259         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24260         for an anonymous access result.
24261         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24262         (Formal_Entity): Handle properly the case of a formal package that
24263         denotes a generic package renaming.
24264
24265 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24266
24267         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24268         clause if the array aggregate is surrounded by parentheses.
24269
24270 2005-09-01  Cyrille Comar  <comar@adacore.com>
24271             Gary Dismukes  <dismukes@adacore.com>
24272             Ed Schonberg  <schonberg@adacore.com>
24273             Javier Miranda  <miranda@adacore.com>
24274
24275         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24276         underlying type
24277         to check if a type is Constrained in cases related to code generation
24278         (rather than semantic checking) since otherwise we do not generate
24279         similar code for mutable private types depending if their
24280         discriminants are visible or not.
24281         (Check_Abstract_Overriding): Do not complain about failure to override
24282         the primitive operations used in dispatching selects since they will
24283         always be overriden at the freeze point of the type.
24284         (Access_Definition): Separate out handling for resetting the scope
24285         of an anonymous access function result type. Retrieve the scope
24286         of the associated function rather than using Current_Scope, which
24287         does not have a consistent value (depends on whether we're in the
24288         middle of analyzing formal parameters). Add ??? comment about
24289         finding a cleaner way to handle the special cases of scope setting.
24290         (Process_Incomplete_Dependents): A protected operation is never a
24291         dispatching operation (only its wrapper may be).
24292         (Build_Derived_Record_Type): In case of tagged private types that
24293         implement interfaces add derivation of predefined primitive
24294         operations.
24295         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24296         by two parameters that are used in case of derivation from abstract
24297         interface types: No_Predefined_Prims is used to avoid the derivation
24298         of predefined primitives from the interface, and Predefined
24299         Prims_Only is used to complete the derivation predefined primitives
24300         in case of private tagged types implementing interfaces.
24301         Fix typo in comments
24302         (Find_Interface_In_Descendant): Protect the frontend against
24303         wrong code with large circularity chains.
24304         (Is_Private_Overriding): Add support for entities overriding interface
24305         subprograms. The test failed because Entities associated with overriden
24306         interface subprograms are always marked as hidden (and used to build
24307         the secondary dispatch table); in this case the overriden entity is
24308         available through the field abstract_interface_alias (cf. override_
24309         dispatching_operation)
24310         (Access_Definition): Set the scope of the type to Current_Scope for the
24311         case of a function with an anonymous access result type.
24312         (Access_Subprogram_Declaration): Handle creation of the type entity for
24313         an access-to-function type with an anonymous access result.
24314         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24315         in handling for N_Access_Function_Definition.
24316         (Analyze_Subtype_Declaration): Modify the text of error message.
24317         (Derived_Type_Declaration): Modify the text of error message.
24318         (Process_Subtype): Modify the text of error message plus cleanup
24319         of one redundant error message.
24320         (Analyze_Component_Declaration): Code cleanup.
24321         (Analyze_Object_Declaration): Code cleanup.
24322         (Analyze_Subtype_Declaration): Propagate the null-exclusion
24323         attribute in case of access types. Code cleanup.
24324         (Array_Type_Declaration): Code cleanup.
24325         (Process_Discriminants): Create the new null-excluding itype
24326         if required. Code cleanup.
24327         (Process_Subtype): Create the new null-excluding itype if
24328         required. Code cleanup.
24329         (Build_Derived_Record_Type): Code cleanup to avoid calling
24330         twice the subprogram derive_subprograms in case of private
24331         types that implement interfaces. In this particular case the
24332         subprogram Complete_Subprograms_Derivation already does the
24333         job associated with the second call.
24334
24335         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24336         conversion to the full view when generating an operation for a
24337         discriminant whose type may currently be private.
24338
24339 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24340             Javier Miranda  <miranda@adacore.com>
24341
24342         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24343         V (Obj.F), the rewriting does not involve the indexed component, but
24344         only the selected component itself.
24345         Do not apply the transformation if the analyzed node is an actual of a
24346         call to another subprogram.
24347         (Complete_Object_Operation): Retain the entity of the
24348         dispatching operation in the selector of the rewritten node. The
24349         entity will be used in the expansion of dispatching selects.
24350         (Analyze_One_Call): Improve location of the error message associated
24351         with interface.
24352         (Analyze_Selected_Component): No need to resolve prefix when it is a
24353         function call, resolution is done when parent node is resolved, as
24354         usual.
24355         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24356         when attempting to resolve a call transformed from its object notation.
24357         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24358         of the argument list for each interpretation of the operation.
24359         (Try_Object_Operation): The designated type of an access parameter may
24360         be an incomplete type obtained through a limited_with clause, in which
24361         case the primitive operations of the type are retrieved from its full
24362         view.
24363         (Analyze_Call): If this is an indirect call, and the return type of the
24364         access_to_subprogram is incomplete, use its full view if available.
24365
24366 2005-09-01  Javier Miranda  <miranda@adacore.com>
24367             Gary Dismukes  <dismukes@adacore.com>
24368
24369         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24370         access types the null-exclusion and access-to-constant attributes must
24371         also match.
24372         (Analyze_Return_Statement): When the result type is an anonymous access
24373         type, apply a conversion of the return expression to the access type
24374         to ensure that appropriate accessibility checks are performed.
24375         (Analyze_Return_Type): For the case of an anonymous access result type,
24376         generate the Itype and set Is_Local_Anonymous_Access on the type.
24377         Add ??? placeholder for check to disallow returning a limited object
24378         in Ada 2005 unless it's an aggregate or a result of a function call.
24379         Change calls from Subtype_Mark to Result_Definition.
24380         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24381         Result_Definition in call to Make_Function_Specification.
24382         (Build_Body_To_Inline): Change Set_Subtype_Mark to
24383         Set_Result_Definition.
24384         (Make_Inequality_Operator): Change formal Subtype_Mark to
24385         Result_Definition in call to Make_Function_Specification.
24386         (Process_Formals): Create the new null-excluding itype if required.
24387         (New_Overloaded_Entity): For an entity overriding an interface primitive
24388         check if the entity also covers other abstract subprograms in the same
24389         scope. This is required to handle the general case, that is, overriding
24390         other interface primitives and overriding abstract subprograms inherited
24391         from some abstract ancestor type.
24392         (New_Overloaded_Entity): For an overriding entity that comes from
24393         source, note the operation that it overrides.
24394         (Check_Conformance, Type_Conformant): Addition of one new formal
24395         to skip controlling formals in the analysis. This is used to
24396         handle overloading of abstract interfaces.
24397         (Base_Types_Match): Add missing case for types imported from
24398         limited-with clauses
24399         (New_Overloaded_Entity): Add barrier to protect the use of
24400         the "alias" attribute.
24401
24402 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24403
24404         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24405         verify that the procedure and the entry are mode conformant.
24406         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24407         as a different operator, which is often a cut-and-paste error.
24408
24409 2005-09-01  Javier Miranda  <miranda@adacore.com>
24410             Ed Schonberg  <schonberg@adacore.com>
24411
24412         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24413         used in controlling parameters exclude null because it is necessary to
24414         read the tag to dispatch, and null has no tag.
24415         (Override_Dispatching_Operation): If the previous operation is inherited
24416         from an interface, it becomes hidden  and does not participate in later
24417         name resolution.
24418
24419 2005-09-01  Javier Miranda  <miranda@adacore.com>
24420             Ed Schonberg  <schonberg@adacore.com>
24421             Gary Dismukes  <dismukes@adacore.com>
24422
24423         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24424         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24425         the expander will generate the corresponding run-time check to evaluate
24426         the expression.
24427         (Resolve_Call): Check for legal type of procedure name or prefix that
24428         appears as a trigger in a triggering alternative.
24429         (Valid_Conversion): If expression is ambiguous and the context involves
24430         an extension of System, remove System.Address interpretations.
24431         (Resolve_Qualified_Expression): Reject the case of a specific-type
24432         qualification applied to a class-wide argument. Enhance comment
24433         to explain checking of Original_Node.
24434         (Resolve_Type_Conversion): The location of the error message was not
24435         general enough to handle the general case and hence it has been removed.
24436         In addition, this patch improves the text of the message.
24437         (Resolve_Type_Conversion): Add missing support for access to interface
24438         types.
24439         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24440         do not expand if the expression is the actual in a call, because proper
24441         expansion will take place when the call itself is expanded.
24442         (Resolve_Allocator): If the context is an unchecked conversion, the
24443         allocator inherits its storage pool, if any, from the target type of
24444         the conversion.
24445
24446 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24447             Javier Miranda  <miranda@adacore.com>
24448
24449         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24450         inherited interface operation that has an implementation, use the
24451         implementation to avoid spurious ambiguities.
24452         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24453         use the Corresponding_Record_Typ attribute to look for the interface
24454         because it is set by the expander (and hence it is not always
24455         available). For this reason we traverse the list of interfaces
24456         (available in the parent of the concurrent type).
24457         (Interface_Present_In_Ancestor): Handle entities from the limited view
24458
24459 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24460
24461         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24462         from the list of required components.
24463         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24464         primitive procedure of a limited interface with a controlling first
24465         parameter.
24466         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24467         of an entry.
24468         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24469         capture if it is generated in the second operand of a short-circuit
24470         operation.
24471         Do not capture values for variables with address clauses.
24472         (Is_Object_Reference): Treat a function call as an object reference only
24473         if its type is not Standard_Void_Type.
24474
24475 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24476
24477         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24478         to a variable that is statically known to be constant.
24479
24480 2005-09-01  Geert Bosch  <bosch@adacore.com>
24481             Robert Dewar  <dewar@adacore.com>
24482
24483         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24484         (VAXGF_Safe_First): Idem.
24485
24486 2005-09-01  Robert Dewar  <dewar@adacore.com>
24487             Arnaud Charlet  <charlet@adacore.com>
24488
24489         * g-dirope.ads: Minor reformatting
24490         Document that bounds of result of Base_Name match the input index
24491         positions.
24492         Add documentation on environment variable syntax for Expand_Path
24493
24494         * gnat_ugn.texi: Update documentation to include mention of -m switches
24495         Document new treatment of wide characters in max line length
24496         style check.
24497         Remove -gnatL/-gnatZ switches, no longer used.
24498         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24499         of -gnata switch.
24500
24501         * gnat_rm.texi: Add doc for two argument form of pragma
24502         Float_Representation.
24503         Add documentation for pragma No_Strict_Aliasing
24504         Add note that explicit component clause overrides pragma Pack.
24505         Add documentation of pragma Debug_Policy
24506
24507 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24508
24509         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24510         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24511         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24512         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24513         draft (Draft 13, August 2005) of Ada Amendment 1.
24514
24515 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24516
24517         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24518         Note that the platform-specific version of g-soccon.ads for VMS is now
24519         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24520         really is a package spec).
24521         Replace s-taspri-linux.ads by s-taspri-posix.ads
24522         Remove references to s-mastop-x86.adb
24523
24524         * system-vxworks-xscale.ads: Removed, no longer used.
24525         * s-vxwork-xscale.ads: Removed, no longer used.
24526
24527 2005-09-01  Robert Dewar  <dewar@adacore.com>
24528
24529         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24530         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24531         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24532         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24533         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24534         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24535         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24536         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24537         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24538         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24539         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24540         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24541         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24542         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24543         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24544         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24545         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24546         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24547         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24548         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24549         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24550
24551 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24552
24553         PR ada/23187
24554         * adaint.c
24555         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24556
24557 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24558             Doug Rupp  <rupp@adacore.com>
24559
24560         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24561         when needed.
24562         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24563         this code in the GNAT run-time.
24564
24565         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24566
24567         PR ada/21053
24568         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24569         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24570
24571         (__gnat_inside_elab_final_code): Moved here from
24572         Standard_Library and only defined for the compiler.
24573         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24574         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24575         using RTPs because directly vectored Interrupt routines are not
24576         supported on this configuration.
24577         (getpid): Do not redefine this function on VxWorks when using RTPs
24578         because this primitive is well supported by the RTP libraries.
24579         (copy_msg): Correct the code that checks for buffer overflow.
24580         Discovered during code reading.
24581
24582 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24583
24584         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24585         a library level mutable variable with an initializer, tell
24586         build_allocator to ignore the initializer's size. It may not be large
24587         enough for all the values that might be assigned to the variable later
24588         on.
24589
24590 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24591             Eric Botcazou  <ebotcazou@adacore.com>
24592
24593         * trans.c: Protect < in error msg with quote
24594         Replace GCC_ZCX by Back_End_Exceptions.
24595         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24596         has been sufficiently aligned in the record.
24597
24598 2005-08-15  James E. Wilson  <wilson@specifix.com>
24599
24600         * system-linux-alpha.ads: Change ia64 to alpha.
24601
24602 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24603
24604         * decl.c, utils.c: Fix comment typos.
24605
24606 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24607
24608         * decl.c, init.c, initialize.c: Fix comment typos.
24609
24610 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24611
24612         Make CONSTRUCTOR use VEC to store initializers.
24613         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24614         CONSTRUCTOR_ELTS.
24615         * trans.c (extract_values): Likewise.
24616         * utils.c (convert, remove_conversions): Likewise.
24617         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24618         gnat_build_constructor): Likewise.
24619
24620 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24621
24622         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24623         DECL_SECTION_NAME.
24624         (compare_field_bitpos): Likewise.
24625
24626 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24627
24628         * utils.c (create_var_decl): Only set DECL_COMMON on
24629         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24630         VAR_OR_FUNCTION_DECL_P.
24631
24632 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24633
24634         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24635         removed.
24636
24637 2005-07-07  Pascal Obry  <obry@adacore.com>
24638
24639         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24640         returned type on Windows.
24641
24642         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24643         routine.
24644
24645         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24646         exception in this case.
24647         Simplify the code as "Image (Image'Range)" = "Image".
24648
24649 2005-07-07  Vincent Celier  <celier@adacore.com>
24650
24651         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24652         the destructor/constructor attributes for <lib>final/<lib>init.
24653
24654         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24655
24656 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24657
24658         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24659         type if the parameter is not passed by copy but reference by default.
24660
24661 2005-07-07  Javier Miranda  <miranda@adacore.com>
24662
24663         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24664         Reimplementation of the support for abstract interface types in order
24665         to leave the code more clear and easy to maintain.
24666
24667         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24668         abstract interface types in order to leave the code clearer and easier
24669         to maintain.
24670
24671         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24672         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24673         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24674         appropriate entry of the secondary dispatch table.
24675         (Make_DT): Add code to inherit the secondary dispatch tables of
24676         the ancestors.
24677
24678         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24679         implementing both functionalities by means of a common routine, each
24680         routine has its own code.
24681
24682 2005-07-07  Javier Miranda  <miranda@adacore.com>
24683
24684         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24685
24686         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24687         types:
24688         --
24689           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24690         --
24691
24692         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24693         use of tag incomplete types.
24694
24695         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24696         give support to tagged incomplete types.
24697
24698         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24699         expression is a discriminant reference and its type is private, as can
24700         happen within a stream operation for a mutable record, use the full
24701         view of the type to resolve the case alternatives.
24702         (Analyze_Assignment): Check wrong dereference of incomplete types.
24703
24704         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24705         types.
24706
24707         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24708         incomplete types.
24709
24710         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24711         N_Incomplete_Type_Declaration nodes.
24712
24713         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24714         Tag_Present to give support to tagged incomplete types:
24715         --
24716           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24717         --
24718
24719 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24720
24721         PR ada/22301
24722         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24723         definitions for the Unwind wrappers in the compiler case.
24724
24725 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24726             Javier Miranda  <miranda@adacore.com>
24727
24728         * par-load.adb (Load): If a child unit is loaded through a limited_with
24729         clause, each parent must be loaded as a limited unit as well.
24730
24731         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24732         Check_Withed_Unit. Return true if there is a previous with_clause for
24733         this unit, whether limited or not.
24734         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24735         the current unit.
24736         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24737         _withed_unit that checks if some package installed through normal with
24738         clauses has a renaming declaration of package whose limited-view is
24739         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24740         of the current Draft document for Ada 2005.
24741         (Analyze_Context): Complete the list of compilation units that
24742         are allowed to contain limited-with clauses. It also contains
24743         checks that were previously done by Install_Limited_Context_Clauses.
24744         This makes the code more clear and easy to maintain.
24745         (Expand_Limited_With_Clause) It is now a local subprogram of
24746         Install_Limited_Context_Clauses, and contains the code that adds
24747         the implicit limited-with clauses for parents of child units.
24748         This functionality was prevously done by Analyze_Context.
24749
24750         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24751         incomplete type.
24752
24753         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24754         been erroneously named in a limited-with clause of its own context.
24755         In this case the error has been previously notified by Analyze_Context.
24756
24757 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24758
24759         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24760         generic package that contains local declarations with the same name.
24761         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24762
24763 2005-07-07  Bernard Banner  <banner@adacore.com>
24764
24765         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24766         ia64 platform only on platforms that you the GCC unwind library
24767         rather than the system unwind library.
24768
24769 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24770
24771         * expect.c: Minor reformatting
24772
24773 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24774
24775         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24776         --no-separate-is
24777
24778         * gnat_ugn.texi: Add description for new gnatpp option
24779         (--no-separate-is)
24780
24781 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24782
24783         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24784         (Get_Command_Output): New subprogram to launch a process and get its
24785         standard output as a string.
24786
24787 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24788             Olivier Hainque  <hainque@adacore.com>
24789
24790         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24791         fetch a code-range descriptor associated with the machine state. On
24792         failure set the machine state's PC to 0; on success, pass the
24793         descriptor to exc_virtual_unwind.
24794
24795         * init.c (Tru64 section): New function __gnat_set_code_loc.
24796
24797 2005-07-04  Vincent Celier  <celier@adacore.com>
24798
24799         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24800         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24801         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24802         Remove all auto-initialization code, as this is now done through the
24803         constructor mechanism.
24804
24805         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24806         __gnat_sals_init_using_constructors): New functions.
24807
24808         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24809         Linker_Constructor and Linker_Destructor when switch -a is used.
24810
24811         * bindusg.adb: Add line for new switch -a
24812
24813         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24814         (Gnatbind): When switch -a is used, check if it is allowed
24815
24816         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24817
24818 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24819
24820         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24821         This prevents us from hitting a limitation during the debug info
24822         generation when using stabs.
24823         (Prims_Ptr): Likewise.
24824
24825 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24826             Ed Schonberg  <schonberg@adacore.com>
24827             Javier Miranda  <miranda@adacore.com>
24828
24829         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24830         N_Object_Declaration, only perform the checks if the Object_Definition
24831         is not an Access_Definition.
24832
24833         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24834         where the parent of an the access definition is an N_Object_Declaration
24835         when determining the Associated_Node_For_Itype and scope of an
24836         anonymous access-to-subprogram type.
24837
24838         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24839         Corresponding_Spec on the body created for a null procedure. Add ???
24840         comment. Remove New_Copy_Tree call on body argument to
24841         Set_Body_To_Inline.
24842
24843         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24844         discriminants, use the type of the actual as well, because the
24845         discriminants may be read by the called subprogram.
24846
24847         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24848         access type we do not need to handle non-limited views.
24849         (Build_Derived_Record_Type): Additional check to check that in case of
24850         private types, interfaces are only allowed in private extensions.
24851
24852 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24853
24854         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24855         <Pragma_Linker_Destructor>: Likewise.
24856
24857         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24858         Pragma_Linker_Destructor.
24859
24860         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24861         ATTR_LINK_DESTRUCTOR.
24862         (static_ctors, static_dtors): New variables.
24863
24864         * misc.c (gnat_expand_body): Output current function as constructor
24865         and destructor if requested.
24866
24867         * par-prag.adb: Add processing for pragma Linker_Constructor and
24868         Linker_Destructor.
24869
24870         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24871         extracted from Check_Interrupt_Or_Attach_Handler.
24872         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24873         Implement pragma Linker_Constructor and Linker_Destructor with the
24874         help of Find_Unique_Parameterless_Procedure.
24875         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24876
24877         * snames.h, snames.ads, snames.adb:
24878         Add Name_Linker_Constructor and Name_Linker_Destructor.
24879         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24880         * snames.adb: Remove Name_Alias.
24881
24882         * trans.c: Include cgraph.h.
24883         (build_global_cdtor): New function.
24884         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24885         needed.
24886         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24887         of objects too.
24888         (addressable_p) <COMPONENT_REF>: Unconditionally test
24889         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24890
24891         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24892         variable if it is external.
24893
24894         (static_ctors, static_dtors): New global variables.
24895         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24896         <ATTR_LINK_DESTRUCTOR>: Likewise.
24897         (end_subprog_body): Chain function as constructor and destructor
24898         if requested.
24899
24900         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24901         Remove_Side_Effects with Variable_Ref set to true.
24902         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24903         for non-scalar types even if Variable_Ref is true and for class-wide
24904         expressions.
24905
24906 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24907
24908         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24909         to prevent spurious warnings.
24910
24911 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24912
24913         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24914         Itypes. Itypes are really unexpected there.
24915         (Build_TypeCode_Function): Generalise special processing for Itypes to
24916         handle the case of numeric implicit base types as well as enumerated
24917         ones.
24918
24919 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24920
24921         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24922         controlled, indicate the expected type of the dereference that is
24923         created for the call to Deep_Finalize, to prevent spurious errors when
24924         the designated type is private and completed with a derivation from
24925         another private type.
24926
24927 2005-07-04  Vincent Celier  <celier@adacore.com>
24928
24929         * make.adb (Change_To_Object_Directory): When unable to change the
24930         current dir to the object directory, output the full path of the
24931         directory.
24932
24933 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24934
24935         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24936
24937         * indepsw-linux.adb: Replace by...
24938
24939         * indepsw-gnu.adb: ...this new file
24940
24941 2005-07-04  Vincent Celier  <celier@adacore.com>
24942
24943         * mlib-prj.adb (Auto_Initialize): New constant String
24944         (SALs_Use_Constructors): New Boolean function
24945         (Build_Library): Call gnatbind with Auto_Initialize switch when
24946         SALs_Use_Constructors returns True.
24947
24948         * mlib-tgt.ads: Minor reformatting
24949
24950         * mlib-utl.ads: Minor reformatting
24951
24952         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24953
24954 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24955
24956         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24957         single protected declarations can have an interface list.
24958         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24959         with seriously malformed entry declarations, and lead to compilation
24960         abandoned messages.
24961
24962 2005-07-04  Javier Miranda  <miranda@adacore.com>
24963
24964         * par-load.adb: Load the context items in two rounds.
24965
24966 2005-07-04  Robert Dewar  <dewar@adacore.com>
24967
24968         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24969
24970 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24971             Javier Miranda  <miranda@adacore.com>
24972
24973         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24974         type extension needs a limited view.
24975         Remove previous restriction on private types available through the
24976         limited-view (only tagged private types were previously allowed).
24977         (Install_Withed_Unit): In the code that implements the
24978         legality rule given in AI-377, exclude a child unit with the name
24979         Standard, because it is a homonym of the Standard environment package.
24980
24981 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24982
24983         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24984         overloaded function call, carry interpretations from the original tree
24985         to the copy.
24986
24987 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24988
24989         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24990         types check whether some designated type is a limited view, and use
24991         the non-limited view if available.
24992
24993 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24994
24995         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24996         constraint of full view of a private view T1 if present, when T2 is a
24997         discriminated full view.
24998
24999 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25000
25001         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25002         actual that is a view conversion of a bit packed array reference.
25003
25004 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
25005
25006         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25007         present before checking whether an interface type covers a synchronized
25008         type.
25009
25010 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
25011
25012         * sem_util.adb (Is_Object_Reference): An indexed or selected component
25013         whose prefix is an implicit dereference is an object reference. Removes
25014         spurious errors when compiling with -gnatc.
25015
25016 2005-07-04  Robert Dewar  <dewar@adacore.com>
25017
25018         PR ada/22039
25019         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25020
25021 2005-07-04  Matthew Gingell  <gingell@adacore.com>
25022
25023         * tracebak.c: Enable tracebacks on ia64 platforms
25024
25025 2005-07-04  Vincent Celier  <celier@adacore.com>
25026
25027         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25028         the GNAT BIND command, as gnatbind accepts multiples ALI files with
25029         the -L or -n switches.
25030
25031 2005-07-04  Vincent Celier  <celier@adacore.com>
25032
25033         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25034         correctly computed and the main project data is not modified while
25035         doing so.
25036         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25037         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25038         c++linker as this does not work on some platforms.
25039
25040 2005-07-04  Matthew Heaney  <heaney@adacore.com>
25041
25042         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25043         was changed.
25044         * a-coinve.adb: Perform constraint checks explicitly.
25045
25046 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25047             Thomas Quinot  <quinot@adacore.com>
25048
25049         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25050         new target gen-soccon.
25051
25052 2005-07-04  Robert Dewar  <dewar@adacore.com>
25053
25054         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25055
25056 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25057
25058         * g-socket.ads (Check_Selector): Minor rewording of comment.
25059
25060 2005-07-04  Vincent Celier  <celier@adacore.com>
25061
25062         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25063
25064 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25065
25066         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25067
25068 2005-07-04  Sergey Rybin  <rybin@adacore.com>
25069
25070         * gnat_ugn.texi: Add description of --eol gnatpp option
25071
25072 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
25073             Thomas Quinot  <quinot@adacore.com>
25074
25075         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25076         if the user wants all calls of a subprogram to be flagged,
25077         independently of whether they are made from within the same unit or
25078         another unit.
25079         Mention restriction for pragma Linker_Alias on some platforms.
25080         Document pragma Linker_Constructor and Linker_Destructor.
25081         Rewrite documentation of Weak_External, Linker_Section and
25082         Linker_Alias pragmas.
25083
25084 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
25085
25086         * s-stausa.ads, s-stausa.adb: New files.
25087
25088 2005-06-30  Kelley Cook
25089
25090         * all files:  Update FSF address in copyright headers.
25091         * gen-soccon.co (main): Output new FSF address in generated files.
25092
25093 2005-06-28  Paul Brook  <paul@codesourcery.com>
25094
25095         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25096
25097 2005-06-14  Olivier Hainque  <hainque@adacore.com>
25098             Eric Botcazou  <ebotcazou@adacore.com>
25099
25100         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25101         exc_unwind, now that we are generating proper .debug_frame output for
25102         that target.
25103
25104         * tracebak.c: Remove the mips-irix section, as we are now using the
25105         s-mastop based unwinder again.
25106         Under SPARC/Solaris, take into account the stack bias to compute the
25107         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
25108         ABI.
25109
25110 2005-06-14  Doug Rupp  <rupp@adacore.com>
25111
25112         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25113
25114         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25115
25116 2005-06-14  Pascal Obry  <obry@adacore.com>
25117
25118         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25119         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25120         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25121         package name).
25122
25123         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25124         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25125         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25126         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25127         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25128         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25129         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25130         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25131         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25132         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25133         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25134         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25135         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25136         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25137         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25138         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25139         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25140         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25141         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25142         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25143         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25144         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25145         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25146         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25147         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25148         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25149         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25150         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25151         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25152         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25153         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25154         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25155         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25156         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25157         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25158         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25159         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25160         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25161         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25162         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25163         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25164         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25165         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25166         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25167         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25168         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25169         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25170         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25171         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25172         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25173         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25174         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25175         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25176         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25177         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25178         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25179         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25180         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25181         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25182         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25183         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25184         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25185         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25186         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25187         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25188         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25189         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25190         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25191         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25192         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25193         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25194         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25195         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25196         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25197         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25198         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25199         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25200         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25201         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25202         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25203         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25204         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25205         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25206         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25207         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25208         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25209         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25210         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25211         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25212         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25213         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25214         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25215         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25216         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25217         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25218         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25219         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25220         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25221         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25222         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25223         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25224         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25225         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25226         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25227         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25228         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25229         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25230         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25231         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25232         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25233         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25234         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25235         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25236         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25237         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25238         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25239         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25240         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25241         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25242         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25243         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25244         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25245         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25246         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25247         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25248         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25249         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25250         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25251         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25252         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25253         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25254         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25255         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25256
25257 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25258             Arnaud Charlet  <charlet@adacore.com>
25259
25260         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25261         longer protected objects. They have been replaced by lower-level
25262         suspension objects made up by a mutex and a condition variable (or
25263         their equivalent given a particular OS) plus some internal data to
25264         reflect the state of the suspension object.
25265         (Initialize, Finalize): Add this initialization procedure for
25266         Suspension_Object, which is a controlled type.
25267         (Finalize): Add the finalization procedure for Suspension_Object,
25268         which is a controlled type.
25269
25270         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25271         Ada.Synchronous_Task_Control because there is no longer a need for a
25272         VxWorks specific version of this package. Target dependencies
25273         has been moved to System.Task_Primitives.Operations.
25274
25275         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25276         longer needed.
25277         (InitializeCriticalSection, EnterCriticalSection,
25278         LeaveCriticalSection, DeleteCriticalSection): Replace the type
25279         pCriticalSection by an anonymous access type so that we avoid problems
25280         of accessibility to local objects.
25281
25282         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25283         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25284         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25285         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25286         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25287         set the environment task mask here.
25288         (Current_State): Add this function that returns the state of the
25289         suspension object.
25290         (Set_False): Add this procedure that sets the state of the suspension
25291         object to False.
25292         (Set_True): Add this procedure that sets the state of the suspension
25293         object to True, releasing the task that was suspended, if any.
25294         (Suspend_Until_True): Add this procedure that blocks the calling task
25295         until the state of the object is True. Program_Error is raised if
25296         another task is already waiting on that suspension object.
25297         (Initialize): Add this procedure for initializing the suspension
25298         object. It initializes the mutex and the condition variable which are
25299         used for synchronization and queuing, and it sets the internal state
25300         to False.
25301         (Finalize): Add this procedure for finalizing the suspension object,
25302         destroying the mutex and the condition variable.
25303
25304         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25305         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25306         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25307         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25308         which provides a low-level abstraction (using operating system
25309         primitives) for Ada.Synchronous_Task_Control.
25310         This object is made up by a mutex (for ensuring mutual exclusion), a
25311         condition variable (for queuing threads until the condition is
25312         signaled), a Boolean (State) indicating whether the object is open,
25313         and a Boolean (Waiting) reflecting whether there is a task already
25314         suspended on this object.
25315
25316         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25317         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25318         s-intman-vms.ads, s-intman-mingw.adb,
25319         (Initialize_Interrupts): Removed, no longer used.
25320
25321         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25322         (Setup_Interrupt_Mask): New procedure.
25323
25324         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
25325
25326         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25327
25328         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25329         this is no longer done in the body of s-taprop
25330         (Server_Task): Explicitely test for Pending_Action in case
25331         System.Parameters.No_Abort is True.
25332
25333         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25334         is no longer done in the body of s-taprop
25335
25336 2005-06-14  Robert Dewar  <dewar@adacore.com>
25337
25338         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25339         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25340         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25341         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25342         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25343         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25344         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25345         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25346         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25347         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25348         system-linux-hppa.ads, system-vms_64.ads,
25349         system-vxworks-alpha.ads: Minor comment update for
25350         AI-362 (unit is Pure).
25351
25352         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25353         Add pragma Pure_05 for AI-362
25354         Make remaining conversion functions obsolescent in Ada 95
25355
25356         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25357         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25358         Add entries for a-wichun and a-zchuni
25359         Add a-widcha a-zchara for AI-395
25360         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25361
25362         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25363         Add entries for a-wichun.o and a-zchuni.o
25364         Entries for a-widcha.o and a-zchara.o
25365         Add entry for a-chacon.o
25366
25367         * a-ztenau.adb: Add with of Ada.Characters.Conversions
25368
25369         * a-chacon.ads, a-chacon.adb: New files.
25370
25371         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25372         categorization violations.
25373
25374         * a-strmap.ads: Add pragma Pure_05 for AI-362
25375         * a-strmap.ads: Add note on implicit categorization for AI-362
25376
25377         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25378
25379         * par-prag.adb: Dummy entry for pragma Persistent_BSS
25380         Set Ada_Version_Explicit, for implementation of AI-362
25381         Add processing for pragma Pure_05 and Preelaborate_05
25382         Add entry for Assertion_Policy pragma
25383
25384         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25385         when needed for proper processing of categorization stuff
25386
25387         * sem_cat.adb:
25388         For several cases, make errors in preealborate units warnings,
25389         instead of errors, if GNAT_Mode is set. For AI-362.
25390
25391         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25392         preelaborate unit is now warning if in GNAT mode
25393
25394         * s-stoele.ads: Document AI-362 for pragma preelaborate
25395
25396 2005-06-14  Doug Rupp  <rupp@adacore.com>
25397
25398         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25399         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25400         Default_Exception_Msg_Max_Length: new parameter.
25401
25402         * a-except.ads: (Exception_Msg_Max_Length): Set to
25403         System.Parameters.Default_Exception_Msg_Max_Length
25404         Add pragma Preelaborate_05 for AI-362
25405         Add warnings off to allow categorization violations for AI-362
25406
25407 2005-06-14  Vincent Celier  <celier@adacore.com>
25408
25409         * gnatsym.adb: Adapt to modification of package Symbols: procedure
25410         Process is now in package Processing.
25411
25412         * symbols.ads, symbols.adb:
25413         (Processing): New package, containing procedure Process
25414
25415         * symbols-vms-alpha.adb:
25416         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25417
25418         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25419         symbols-processing-vms-ia64.adb: New files.
25420
25421 2005-06-14  Pascal Obry  <obry@adacore.com>
25422
25423         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25424         implementation. This new version generates the proper DllMain routine
25425         to initialize the SAL. The DllMain is generated in Ada and compiled
25426         before being added as option to the library build command.
25427
25428 2005-06-14  Doug Rupp  <rupp@adacore.com>
25429             Pascal Obry  <obry@adacore.com>
25430
25431         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25432         call to decc$translate_vms.
25433         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25434         need to remove those quotes before catenating the filename.
25435         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25436         * avoid allocating the memory twice for better efficiency;
25437         * allocate 32K buffer for environment expansion as suggested by MSDN;
25438         * prepend ".;" to the path so that current directory is searched too.
25439
25440 2005-06-14  Robert Dewar  <dewar@adacore.com>
25441
25442         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25443         instead of raising CE (AI-241)
25444         Add warnings off to allow categorization violations for AI-362
25445
25446 2005-06-14  Robert Dewar  <dewar@adacore.com>
25447
25448         * ali-util.adb, gnatbind.adb: Remove references to
25449         Force_RM_Elaboration_Order.
25450
25451         * switch-b.adb: Remove recognition of -f switch
25452
25453 2005-06-14  Pascal Obry  <obry@adacore.com>
25454
25455         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25456         implementation which is slightly more efficient.
25457
25458 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25459             Javier Miranda  <miranda@adacore.com>
25460             Ed Schonberg  <schonberg@adacore.com>
25461             Hristian Kirtchev  <kirtchev@adacore.com>
25462
25463         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25464         allocator's designated type is a class-wide type, and compiling for
25465         Ada 2005, emit a run-time check that the accessibility level of the
25466         type given in the allocator's expression is not deeper than the level
25467         of the allocator's access type.
25468
25469         (Tagged_Membership): Modified to gives support to abstract interface
25470         types.
25471
25472         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25473         Access_Level.
25474         (Descendant_Tag): New predefined function
25475         (Is_Descendant_At_Same_Level): New predefined function
25476         (Get_Access_Level): New private function
25477         (Set_Access_Level): New private procedure
25478         (IW_Membership): New function. Given the tag of an object and the tag
25479         associated with an interface, evaluate if the object implements the
25480         interface.
25481         (Register_Interface_Tag): New procedure used to initialize the table of
25482         interfaces used by the IW_Membership function.
25483         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25484         of the dispatch table.
25485         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25486         table of interfaces of the parent.
25487         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25488         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25489         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25490         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25491         Ada 2005 semantics for the new predefined function.
25492
25493         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25494         call to Descendant_Tag rather than Internal_Tag.
25495         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25496         the accessibility level of the attribute's Item parameter is not deeper
25497         than the level of the attribute's prefix type. Tag_Error is raised if
25498         the check fails. The check is only emitted for Ada_05.
25499         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25500         requested stream attribute, use it.
25501         (Expand_N_Attribute_Reference): If the designated type is an interface
25502         then rewrite the referenced object as a conversion to force the
25503         displacement of the pointer to the secondary dispatch table.
25504         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25505         is a dereference of an object with a constrained partial view.
25506
25507         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25508         type is a class-wide type, emit a run-time check that the accessibility
25509         level of the returned object is not deeper than the level of the
25510         function's master (only when compiling for Ada 2005).
25511
25512         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25513         Action_Nb_Arg): Add entries for new Get_Access_Level and
25514         Set_Access_Level routines in these tables.
25515         (Make_DT): Generate a call to set the accessibility level of the
25516         tagged type in its TSD.
25517         (Make_DT): Code cleanup. The functionality of generating all the
25518         secondary dispatch tables has been moved to freeze_record_type.
25519         (Make_Abstract_Interface_DT): Minor code cleanup.
25520         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25521         this subprogram implements a new algorithm that provides the
25522         same functionality and it is more clear in case of primitives
25523         associated with abstract interfaces.
25524         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25525         clean up, the functionality of this subprogram is now provided
25526         by Set_All_DT_Position.
25527         (Write_DT): New subprogram: a debugging procedure designed to be called
25528         within gdb to display the dispatch tables associated with a tagged
25529         type.
25530         (Collect_All_Interfaces): New subprogram that collects the whole list
25531         of interfaces that are directly or indirectly implemented by a tagged
25532         type.
25533         (Default_Prim_Op_Position): New subprogram that returns the fixed
25534         position in the dispatch table of the default primitive operations.
25535         (Expand_Interface_Actuals): New subprogram to generate code that
25536         displaces all the actuals corresponding to class-wide interfaces to
25537         reference the interface tag of the actual object.
25538         (Expand_Interface_Conversion): New subprogram. Reference the base of
25539         the object to give access to the interface tag associated with the
25540         secondary dispatch table.
25541         (Expand_Interface_Thunk): New subprogram that generates the code of the
25542         thunk. This is required for compatibility with the C+ ABI.
25543         (Make_Abstract_Interface_DT): New subprogram that generate the
25544         declarations for the secondary dispatch tables associated with an
25545         abstract interface.
25546         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25547         attribute for each primitive operation covering interface subprograms
25548         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25549         These subprograms were upgraded to give support to abstract interfaces
25550
25551         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25552         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25553         RE_Set_Access_Level.
25554         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25555         Add support to call the followig new run-time subprograms:
25556         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25557
25558         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25559         match its full declaration when both have an access definition with
25560         statically matching designated subtypes.
25561         (Analyze_Component_Declaration): Delete commented out code that was
25562         incorrectly setting the scope of an anonymous access component's type.
25563         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25564         an access discriminant when the containing type is nonlimited.
25565         (Make_Incomplete_Type_Declaration): Create an incomplete type
25566         declaration for a record type that includes self-referential access
25567         components.
25568         (Check_Anonymous_Access_Types): Before full analysis of a record type
25569         declaration, create anonymous access types for each self-referential
25570         access component.
25571         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25572         an access component in this context is a Local_Anonymous_Access, for
25573         proper accessibility checks.
25574         (Access_Definition): Set properly the scope of the anonymous access type
25575         created for a stand-alone access object.
25576         (Find_Type_Of_Object): An object declaration may be given with an access
25577         definition.
25578         (Complete_Subprograms_Derivation): New subprogram used to complete
25579         type derivation of private tagged types implementing interfaces.
25580         In this case some interface primitives may have been overriden
25581         with the partial-view and, instead of re-calculating them, they
25582         are included in the list of primitive operations of the full-view.
25583         (Build_Derived_Record_Type): Modified to give support to private
25584         types implemening interfaces.
25585         (Access_Definition): Reject ALL on anonymous access types.
25586         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25587         type derivation to occur at a deeper accessibility level than the
25588         parent type.
25589         For the case of derivation within a generic body however, disallow the
25590         derivation if the derived type has an ancestor that is a formal type
25591         declared in the formal part of an enclosing generic.
25592         (Analyze_Object_Declaration): For protected objects, remove the check
25593         that they cannot contain interrupt handlers if not declared at library
25594         level.
25595         (Add_Interface_Tag_Components): New subprogram to add the tag components
25596         corresponding to all the abstract interface types implemented by a
25597         record type or a derived record type.
25598         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25599         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25600         Process_Full_View, Record_Type_Declaration): Modified to give
25601         support to abstract interface types
25602         (Collect_Interfaces): New subprogram that collects the list of
25603         interfaces that are not already implemented by the ancestors
25604         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25605         when partial view has no discriminants and full view has defaults.
25606         (Constrain_Access): Reject a constraint on a general access type
25607         if the discriminants of the designated type have defaults.
25608         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25609         full-type declaration or subprogram spec. This is required to handle
25610         nested anonymous declarations.
25611         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25612         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25613         Process_Full_View, Record_Type_Declaration): Modified to give
25614         support to abstract interface types
25615         (Derive_Subprograms): Addition of a new formal to indicate if
25616         we are in the case of an abstact-interface derivation
25617         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25618         to the specification because it is requied to analyze all the
25619         identifiers found in a list of interfaces
25620
25621         * debug.adb: Complete documentation of flag "-gnatdZ"
25622
25623         * exp_ch3.adb: Implement config version of persistent_bss pragma
25624         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25625         testing for TSS presence to properly enforce visibility rules.
25626         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25627         Make_Abstract_Interfaces_DT to generate the secondary tables
25628         associated with abstract interfaces.
25629         (Build_Init_Procedure): Modified to initialize all the tags
25630         corresponding.
25631         (Component_Needs_Simple_Initialization): Similar to other tags,
25632         interface tags do not need initialization.
25633         (Freeze_Record_Type): Modified to give support to abstract interface
25634         types.
25635         (Expand_N_Object_Declaration): Do not generate an initialization for
25636         a scalar temporary marked as internal.
25637
25638         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25639         in-out parameter that is a component in an initialization procedure,
25640         whose constraint might depend on discriminants, and that may be
25641         misaligned because of packing or representation clauses.
25642         (Is_Legal_Copy): New predicate to determine whether a possibly
25643         misaligned in-out actual can actually be passed by copy/return. This
25644         is an error in case the type is by_reference, and a warning if this is
25645         the consequence of a DEC import pragma on the subprogram.
25646         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25647         interface types
25648         (Expand_Inlined_Call): Mark temporary generated for the return value as
25649         internal, so that no useless scalar normalization is generated for it.
25650         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25651         null procedure can always be inlined.
25652         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25653         procedure, generate an explicit empty body for it.
25654
25655         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25656         Given a type implementing an interface, returns the corresponding
25657         access_disp_table value.
25658         (Find_Interface_Tag): New subprogram. Given a type implementing an
25659         interface, returns the record component containing the tag of the
25660         interface.
25661         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25662         previous ones that return the corresponding tag and access_disp_table
25663         entities.
25664         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25665         is a predefined primitive operation.
25666         (Expand_Subtype_From_Expr): If the expression is a selected component
25667         within an initialization procedure, compute its actual subtype, because
25668         the component may depend on the discriminants of the enclosing record.
25669
25670         * i-cpp.ads, i-cpp.adb:
25671         This package has been left available for compatibility with previous
25672         versions of the frontend. As part of the new layout this is now a
25673         dummy package that uses declarations available at a-tags.ads
25674
25675         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25676         "constant access" and "aliased [constant] access" when not compiling
25677         with -gnat05.
25678         Suppress Ada 2005 keyword warning if -gnatwY used
25679         (P_Identifier_Declarations): Add support for object declarations with
25680         access definitions.
25681         (Private_Extension_Declaration): Complete the documentation
25682         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25683         attribute in case of private extension declaration
25684         (P_Type_Declaration): Mark as "abstract" the type declarations
25685         corresponding with protected, synchronized and task interfaces
25686         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25687         for a subprogram or instance declaration.
25688
25689         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25690         instantiation that is a dispatching operation has controlling access
25691         parameters that are null excluding.
25692         Save and restore Ada_Version_Explicit, for implementation of AI-362
25693         (Validate_Derived_Type_Instance): Add check for abstract interface
25694         types.
25695         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25696         the generic that is created to represent the formal package.
25697         (Analyze_Package_Instantiation): Instantiate body immediately if the
25698         package is a predefined unit that contains inlined subprograms, and
25699         we are compiling for a Configurable_Run_Time.
25700         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25701         If the program has a null default, generate an empty body for it.
25702
25703         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25704         error message condition, null procedures are correctly detected now.
25705         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25706         for subprograms in the context of protected types. Instead, the
25707         indicator is examined in Sem_Ch9 while analysing the subprogram
25708         declaration.
25709         (Check_Overriding_Indicator): Check consistency of overriding indicator
25710         on subprogram stubs as well.
25711         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25712         the library level.
25713         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25714         the type of the first formal is a concurrent type, replace this type
25715         by the corresponding record type.
25716         (Analyze_Subprogram_Body): Undo the previous work.
25717         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25718         analysis of the prefix ends up analyzing the call itself, after which
25719         we are done.
25720         (Has_Interface_Formals): New subprogram subsidiary to analyze
25721         subprogram_specification that returns true if some non
25722         class-wide interface subprogram is found
25723         (New_Overloaded_Entity): Modified to give support to abstract
25724         interface types
25725         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25726         access to subprograms must be recursive.
25727         (Is_Unchecked_Conversion): Improve the test that recognizes
25728         instantiations of Unchecked_Conversion, and allows them in bodies that
25729         are to be inlined by the front-end. When the body comes from an
25730         instantiation, a reference to Unchecked_Conversion will be an
25731         Expanded_Name, even though the body has not been analyzed yet.
25732         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25733         Must_Override and Must_Not_Override, to better express intent of AI.
25734         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25735         that it is consistent with the overrinding status of the subprogram
25736         at this point.
25737         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25738         always inlined.
25739         If the subprogram is a null procedure, indicate that it does not need
25740         a completion.
25741
25742         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25743         available through limited-with clauses.
25744         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25745         allowed as the last primitive of a tagged type if it has no previous
25746         spec.
25747         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25748         to give support to abstract interface types
25749
25750         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25751         in the case where the target type is an anonymous access type of an
25752         object or component (that is, when Is_Local_Anonymous_Access is true).
25753         Prevent the special checks for conversions of access discriminants in
25754         the case where the discriminant belongs to a nonlimited type, since
25755         such discriminants have their accessibility level defined in the same
25756         way as a normal component of an anonymous access type.
25757         (Resolve_Allocator): When an allocator's designated type is a class-wide
25758         type, check that the accessibility level of type given in the
25759         allocator's expression or subtype indication is not statically deeper
25760         than the level of the allocator's access type.
25761         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25762         name in a discriminant constraint of a record component.
25763         (Resolve_Explicit_Dereference): Do not check whether the type is
25764         incomplete when the dereference is a use of an access discriminant in
25765         an initialization procedure.
25766         (Resolve_Type_Conversion): Handle conversions to abstract interface
25767         types.
25768         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25769         abstract interface type is always valid.
25770         (Valid_Conversion): Modified to give support to abstract interface types
25771         (Resolve_Actuals): Enable full error reporting on view conversions
25772         between unrelated by_reference array types.
25773         The rule for view conversions of arrays with aliased components is
25774         weakened in Ada 2005.
25775         Call to obsolescent subprogram is now considered to be a violation of
25776         pragma Restrictions (No_Obsolescent_Features).
25777         (Check_Direct_Boolean_Operator): If the boolean operation has been
25778         constant-folded, there is nothing to check.
25779         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25780         check on possible violation of restriction No_Direct_Boolean_Operators
25781         until after expansion of operands, to prevent spurious errors when
25782         operation is constant-folded.
25783
25784         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25785         Has_Compatible_Type): Modified to give support to abstract interface
25786         types.
25787         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25788         of a given type implements a given interface
25789
25790         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25791         prefix is a parameterless function that returns an access_to_procedure.
25792         (Transform_Object_Operation): Handle properly function calls of the
25793         form Obj.Op (X), which prior to analysis appear as indexed components.
25794         (Analyze_One_Call): Complete the error notification to help new Ada
25795         2005 users.
25796         (Analyze_Allocator): For an allocator without an initial value, where
25797         the designated type has a constrained partial view, a discriminant
25798         constraint is illegal.
25799
25800 2005-06-14  Robert Dewar  <dewar@adacore.com>
25801
25802         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25803         do with treatment of Set_Col when positioned at end of line character.
25804
25805 2005-06-14  Robert Dewar  <dewar@adacore.com>
25806
25807         * atree.adb: (Elist*): Protect against uninitialized field
25808
25809 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25810
25811         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25812         for an attribute reference that returns an access type.
25813         (Apply_Discriminant_Check): No need for check if (designated) type has
25814         constrained partial view.
25815
25816         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25817         both bound checks, rather than a conjunction.
25818         (Insert_Valid_Check): If the expression is an actual that is an indexed
25819         component of a bit-packed array, force expansion of the packed element
25820         reference, because it is specifically inhibited elsewhere.
25821
25822 2005-06-14  Vincent Celier  <celier@adacore.com>
25823
25824         * clean.adb (Clean_Project): Correctly delete executable specified as
25825         absolute path names.
25826
25827         * make.adb (Gnatmake): Allow relative executable path names with
25828         directory information even when project files are used.
25829         (Change_To_Object_Directory): Fail gracefully when unable to change
25830         current working directory to object directory of a project.
25831         (Gnatmake): Remove exception handler that could no longer be exercized
25832         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25833         may be deallocated by Normalize_Arguments.
25834         (Collect_Arguments): Eliminate empty arguments
25835
25836         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25837         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25838         (Check_Project): Return False when Project is No_Project. Return True
25839         when All_Projects is True.
25840         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25841         All_Projects to True.
25842         Minor reformatting
25843
25844 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25845             Javier Miranda  <miranda@adacore.com>
25846             Thomas Quinot  <quinot@adacore.com>
25847             Robert Dewar  <dewar@adacore.com>
25848             Hristian Kirtchev  <kirtchev@adacore.com>
25849             Gary Dismukes  <dismukes@adacore.com>
25850
25851         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25852         anonymous access types, to indicate that the accessibility level of
25853         the type is determined by that of the enclosing declaration.
25854         (Has_Persistent_BSS): New flag
25855         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25856         of this attribute with functions.
25857         (Is_Primitive_Wrapper): Remove the barrier.
25858         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25859         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25860         New subprograms.
25861         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25862         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25863         New subprograms.
25864         (Is_Pure_Unit_Access_Type): New flag
25865         (Abstract_Interfaces): Complete the assertion to cover all usages.
25866         (Set_Is_Interface): Complete the assertion to cover all usages.
25867         (Is_Primitive_Wrapper): New attribute.
25868         (Is_Obsolescent): Now applies to all entities (though it is only set
25869         for subprograms currently)
25870         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25871         which solves various problems concerning access subtypes.
25872         (Has_Persistent_BSS): New flag
25873         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25874         Remove these subprograms because this attribute is currently
25875         not used.
25876         New entity flags:
25877         Has_Specified_Stream_Input (Flag190)
25878         Has_Specified_Stream_Output (Flag191)
25879         Has_Specified_Stream_Read (Flag192)
25880         Has_Specified_Stream_Write (Flag193)
25881         Present in all type and subtype entities. Set for a given view if the
25882         corresponding stream-oriented attribute has been defined by an
25883         attribute definition clause. When such a clause occurs, a TSS is set
25884         on the underlying full view; the flags are used to track visibility of
25885         the attribute definition clause for partial or incomplete views.
25886         (Is_Pure_Unit_Access_Type): New flag
25887         Clarify use of Is_Internal.
25888         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25889         internally generated to wrap the invocation of tasks and protected
25890         types that implement interfaces.
25891         (Implementation_Base_Type): Documentation correction
25892         (Is_Obsolescent): Now applies to all entities (though it is only set
25893         for subprograms currently)
25894         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25895         which solves various problems concerning access subtypes.
25896
25897         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25898         for examined parameters. Identify unequal parameter list lengths as
25899         non-conformant parameters.
25900         (Overriding_Possible): Do not check for "All" qualifier in declaration
25901         of controlling access parameter, following prescription of AI-404.
25902         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25903         that build the procedure body that wraps an entry invocation
25904         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25905         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25906         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25907         give support to abstract interface types
25908
25909         * freeze.adb (Freeze_Entity): Issue error message if
25910         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25911         type has no storage pool (Ada 2005) AI-366.
25912         Also modified to give support to abstract interface types
25913         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25914         Inline_Always pragma.
25915
25916         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25917         now begin an entry declaration.
25918         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25919         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25920         a subprogram declaration preceded by an overriding indicator.
25921         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25922         declarations or subprogram declarations preceded by reserved words
25923         "not" or "overriding".
25924         (P_Entry_Declaration): Update comment. Parse and check overriding
25925         indicator, set semantic flags of entry declarations.
25926         (P_Task): New error message in case of private applied
25927         to a task type declaration.
25928         (P_Protected): New error message in case of private applied
25929         to a task type declaration.
25930
25931         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25932         in which the full view of a type implementing an interface is a
25933         concurrent type.
25934         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25935         Declare_Inherited_Private_Subprograms): If an explicit operation
25936         overrides an operation that is inherited in the private part, mark the
25937         explicit one as overriding, to enable overriding indicator checks.
25938         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25939         full view to partial view, to simplify handling in back-end.
25940
25941         * sprint.adb: Print interface lists where needed: derived types,
25942         protected types, task types.
25943         output "is null" for null procedures. Part of implementation of
25944
25945         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25946         relaxation of rules for access types in pure, shared passive partitions.
25947
25948         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25949         first read discriminants into temporary objects, performing checks on
25950         the read values, then possibly performing discriminant checks on the
25951         actual (if it is constrained), and only finally reading the components
25952         into a constrained temporary object.
25953         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25954         case of reading discriminants of a mutable record type to recognize
25955         the new form of the code generated by
25956         Build_Mutable_Record_Read_Procedure.
25957
25958         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25959         of a simple call to Make_TSS_Name.
25960         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25961         buffer, in order for Is_TSS to work correctly on local TSS names.
25962
25963         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25964         Is_Local_Anonymous_Access to check legaliy of attributes in the
25965         context of  access components and stand-alone access objects.
25966         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25967         treated as available for a limited private type if there is an
25968         attribute_definition_clause that applies to its full view, but not in
25969         other cases where the attribute is available for the full view
25970         (specifically, the sole fact that the full view is non-limited does not
25971         make the attribute available for the partial view).
25972         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25973         non-overloaded intrinsic subprogram.
25974         (Check_Stream_Attribute): Reject an attribute reference for an
25975         unavailable stream attribute even if the prefix is not a limited type
25976         (case of a 'Input attribute reference for an abstract, non-classwide
25977         type)
25978         (Stream_Attribute_Available): New function to determine whether a stream
25979         attribute is available at a place.
25980         (Check_Attribute): Use Stream_Attribute_Available instead of just
25981         testing for TSS presence on the implementation base type.
25982         (Analyze_Attribute): Modified to give support to task interfaces.
25983         (Analyze_Access_Attribute): Add error check for use of an Access (or
25984         Unrestricted_Access) attribute with a subprogram marked as
25985         Inline_Always.
25986         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25987         an Address attribute with a subprogram marked as Inline_Always.
25988         Update Eval_Attribute to handle new value of Width from AI-395
25989
25990         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25991         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25992         Factor common code across the stream-oriented attribute circcuits into
25993         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25994         processing is functionally identical to the previous duplicated one,
25995         except that an expression that denotes an abstract subprogram will now
25996         be rejected, as mandated by AI-195 item 5.
25997
25998         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25999         Is_Local_Anonymous_Access to apply accessibility checks to access
26000         components and stand-alone access objects.
26001         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26002         elsewhere.
26003         (Is_Potentially_Persistent_Type): New function
26004         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26005         a heap-object whose type has a constrained partial view, the object is
26006         unconstrained and the component may depend on a discriminant, making its
26007         renaming illegal.
26008
26009         * sinfo.ads, sinfo.adb
26010         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26011         (Must_Override): Flag applicable to N_Entry_Declaration.
26012         Indicate that interface_list can appear in single task and single
26013         protected declarations.
26014         Replace Is_Overriding and Not_Overriding with Must_Override and
26015         Must_Not_Override, to better express intent of AI.
26016         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26017         of an overriding indicator in a subprogram or instance.
26018         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26019         Add the overriding indicator [[not] overriding] construct to the
26020         following grammar productions:
26021          ENTRY_DECLARATION
26022          GENERIC_INSTANTIATION
26023          SUBPROGRAM_SPECIFICATION
26024
26025         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26026         can start with an overriding indicator.
26027
26028         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26029         flags accordingly on subrogram specifications or instances.
26030
26031         * sem_ch8.adb:
26032         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26033         overriding_indicator, if present, is consistent with status of spec.
26034         Improve error message for null-excluding checks on controlling access
26035         parameters.
26036         (Check_In_Previous_With_Clause): Protect the frontend against
26037         previously reported critical errors in the context clauses.
26038         Save and restore Ada_Version_Explicit, for implementation of AI-362
26039         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26040         operation verify that controlling formals of the renamed entity that
26041         are access parameters are explicitly non-null.
26042         (Find_Expanded_Name): Improve error message when prefix is an illegal
26043         reference to a private child unit.
26044
26045         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26046         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26047         Rewrite to correspond to new wide character names in AI-395
26048
26049         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26050         default procedures.
26051
26052 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26053             Robert Dewar  <dewar@adacore.com>
26054
26055         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26056         code, not on the bodies of predefined operations, to cut down on
26057         spurious noise.
26058
26059 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26060
26061         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26062         be expanded in place. The size computation does not require a
26063         subtraction, which would raise an exception on a compiler built with
26064         assertions when the upper bound is Integer'first.
26065         (Flatten): For an array of composite components, take into account the
26066         size of the components to determine whether it is safe to expand the
26067         array into a purely positional representation.
26068
26069 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26070
26071         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26072         denoting a formal parameter into account.
26073
26074 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26075
26076         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26077         the entry_call alternative of a conditional entry call, wrap the
26078         conditional entry call itself.
26079
26080 2005-06-14  Nicolas Setton  <setton@adacore.com>
26081             Ed Schonberg  <schonberg@adacore.com>
26082
26083         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26084         the "simple_choice" member in a variant record, in accordance with the
26085         description in the package spec: the information output for a constant
26086         should be "S number", not "SS number".
26087         (Get_Encoded_Name): Return at once if not generating code. Avoids name
26088         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26089
26090 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26091
26092         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26093         RACW without any primitives, do not generate the if statement for
26094         dispatching by name in the PolyORB/DSA case, as it would be malformed
26095         (it would have an Elsif_Parts list that is not No_List, but with a
26096         length of 0).
26097
26098 2005-06-14  Robert Dewar  <dewar@adacore.com>
26099
26100         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26101
26102 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
26103
26104         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26105         can determine whether pragma Suppress_Exception_Locations is in effect.
26106
26107         * utils2.c (build_call_raise): Do not pass the file name to the
26108         exception handler if pragma Suppress_Exception_Locations is in effect.
26109         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26110
26111 2005-06-14  Emmanuel Briot  <briot@adacore.com>
26112
26113         * g-debpoo.adb (Deallocate, Dereference): Improve output.
26114
26115 2005-06-14  Nicolas Roche  <roche@adacore.com>
26116
26117         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26118         to ""
26119         (Next_Level): Fix minor bug in handling of ../dir case
26120         (Read): Add dir separator to Directory name so that "" is understood as
26121          "/"
26122
26123 2005-06-14  Pascal Obry  <obry@adacore.com>
26124
26125         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26126         releasing the items.
26127
26128 2005-06-14  Vincent Celier  <celier@adacore.com>
26129             Cyrille Comar  <comar@adacore.com>
26130
26131         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26132         with output file descriptor and with output file name.
26133         (Dup, Dup2): Now global procedures as they are used by two subprograms
26134         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26135
26136 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26137
26138         PR ada/6717
26139         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26140         broadcast address.
26141         (Create_Selector): Bind listening socket used to create the signalling
26142         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26143         Set listen backlog to 1 to ensure that we detect socket theft by a
26144         failure of our own connect(2) call.
26145         (Check_Selector): Improve documentation of the selector mechanism.
26146         (Broadcast_Inet_Addr): New constant.
26147
26148 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26149
26150         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26151         type which turns out to be an incomplete and incorrect fix.
26152         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26153         of the type is declared in a record (for determination of insertion
26154         type).
26155         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26156         a private type and ensure that the primary entity is used for the type
26157         of the newly created function's V formal by taking the Etype of the
26158         view.
26159
26160 2005-06-14  Javier Miranda  <miranda@adacore.com>
26161             Jose Ruiz  <ruiz@adacore.com>
26162             Robert Dewar  <dewar@adacore.com>
26163             Ed Schonberg  <schonberg@adacore.com>
26164
26165         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26166         that indicates if we are parsing a compilation unit found in a
26167         limited-with clause.
26168         It is use to avoid the circularity check.
26169
26170         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26171         we are parsing a compilation unit found in a limited-with clause. This
26172         is use to avoid the circularity check.
26173
26174         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26175         unit as a consequence of parsing a limited-with clause. This is used
26176         to avoid the circularity check.
26177
26178         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26179         (Analyze_Context): Limited-with clauses are now allowed
26180         in more compilation units.
26181         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26182         againts previously reported critical errors in context clauses
26183         (Install_Limited_Withed_Unit): Code cleanup plus static detection
26184         of two further errors: renamed subprograms and renamed packages
26185         are not allowed in limited with clauses.
26186         (Install_Siblings): Do not install private_with_clauses on the package
26187         declaration for a non-private child unit.
26188         (Re_Install_Parents): When a parent of the subunit is reinstalled,
26189         reset visibility of child units properly.
26190         (Install_Withed_Unit): When a child unit appears in a with_clause of its
26191         parent, it is immediately visible.
26192
26193 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26194             Emmanuel Briot  <briot@adacore.com>
26195
26196         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26197         declared within an inlined body as referenced, to prevent spurious
26198         warnings.
26199         (Output_One_Ref): If an entity renames an array component, indicate in
26200         the ALI file that this aliases (renames) the array. Capture as well
26201         function renamings that rename predefined operations.
26202         Add information about generic parent for package and subprogram
26203         instances.
26204         (Get_Type_Reference): For a subtype that is the renaming of an actual in
26205         an instantiation, use the first_subtype to ensure that we don't generate
26206         cross-reference information for internal types.
26207         For objects and parameters of a generic private type, retain the '*'
26208         indicator to distinguish such an entity from its type.
26209
26210         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26211         to store information about instantiated entities.
26212
26213         * ali.adb (Scan_ALI): Add support for parsing the reference to the
26214         generic parent
26215
26216         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26217         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26218         information.
26219
26220 2005-06-10  Doug Rupp  <rupp@adacore.com>
26221             Arnaud Charlet  <charlet@adacore.com>
26222             Olivier Hainque  <hainque@adacore.com>
26223             Jose Ruiz  <ruiz@adacore.com>
26224
26225         * Make-lang.in: Add initialize.o when needed.
26226         Remove obsolete references to RT_FLAGS.
26227         Add missing dependencies for sdefault.o
26228
26229         * initialize.c: New file.
26230
26231         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26232         [VMS] cond_signal_table: Fix problem in declaration.
26233         [VMS] __gnat_error_handler: rewrite.
26234         Move all __gnat_initialize() routines to initialize.c
26235         Specialize the former "hpux" section to "hppa hpux", as this is what the
26236         section really is here for and we now have other hpux ports that need
26237         different contents.
26238         (__gnat_adjust_context_for_raise) i386-linux: First version of this
26239         function for this target. Adjust PC by one in the machine context. This
26240         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26241         it is more reliable to do that in the signal handler itself.
26242         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26243         flags, so that the handler is passed the context structure to adjust
26244         prior to the raise.
26245         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26246         SA_SIGINFO sigaction should look like. Call
26247         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26248         Machine_State_Operations stuff.
26249         Add conditional code so that the x86_64 is also supported.
26250
26251 2005-06-14  Pascal Obry  <obry@adacore.com>
26252
26253         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26254         the library name.
26255
26256 2005-06-14  Robert Dewar  <dewar@adacore.com>
26257
26258         * opt.ads, opt.adb: New flags for persistent_bss mode
26259         Add Ada_Version_Explicit, for implementation of AI-362
26260         Add Assertions_Enabled_Config and associated handling
26261         Needed since setting can be changed with Assertion_Policy pragma
26262         Add new flag Warn_On_Ada_2005_Compatibility
26263
26264         * switch-c.adb: Recognize -gnatwy/Y
26265         Set Ada_Version_Explicit, for implementation of AI-362
26266         The -gnatg switch now includes -gnatyu
26267
26268         * usage.adb: Add -gnatwy/Y
26269         Remove wrong asterisk on -gnatwX line
26270         Add line for -gnatyu switch
26271
26272 2005-06-14  Vincent Celier  <celier@adacore.com>
26273
26274         * osint.adb (Add_Default_Search_Dirs): Put source and object
26275         directories of project files before directories coming from
26276         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26277
26278 2005-06-14  Robert Dewar  <dewar@adacore.com>
26279
26280         PR ada/15613
26281         * par-ch2.adb (Scan_Pragma_Argument): New procedure
26282         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26283
26284 2005-06-14  Vincent Celier  <celier@adacore.com>
26285
26286         * prep.adb (Preprocess): Ignore error when scanning the first token of
26287         a line.
26288
26289 2005-06-14  Vincent Celier  <celier@adacore.com>
26290
26291         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26292         (Check_Stand_Alone_Library): If the specified reference symbol file does
26293         not exist, only issue a warning when the symbol policy is not
26294         Controlled. And, when symbol policy is Compliant, set the symbol
26295         policy to Autonomous.
26296
26297 2005-06-14  Vincent Celier  <celier@adacore.com>
26298
26299         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26300         when the project file in a with clause is not the last one, that is the
26301         project file name is followed by a comma.
26302         * prj-pp.adb: (First_With_In_List): New Boolean global variable
26303         (Print): Issue list of project files separated by commas in with clauses
26304         according to the values returned by Is_Not_Last_In_List.
26305         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26306         (Set_Is_Not_Last_In_List): New procedure
26307
26308 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26309
26310         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26311
26312 2005-06-14  Robert Dewar  <dewar@adacore.com>
26313
26314         * scng.adb: Add call to new Check_EOF routine
26315         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26316         Add some comments regarding wide character handling
26317
26318         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26319
26320         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26321
26322         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26323         characters are now considered graphic characters and hence yield false
26324         in this call.
26325
26326         * nmake.adt: Modify header so that xnmake does not generate output
26327         files with multiple blank lines.
26328
26329         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26330         not have an extra blank line
26331
26332 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26333
26334         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26335         expression when the component type is an anonymous access type to
26336         ensure that appropriate accessibility checks are done.
26337
26338         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26339         expression of an assignment when the target object is of an anonymous
26340         access type. This ensures that required accessibility checks are done.
26341         (One_Bound): Move the check for type Universal_Integer to
26342         Process_Bounds.
26343         (Process_Bounds): Check whether the type of the preanalyzed range is
26344         Universal_Integer, and in that case set Typ to Integer_Type prior
26345         to setting the type of the original range and the calls to One_Bound.
26346
26347 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26348
26349         * sem_case.adb (Expand_Others_Choice): Improve warning.
26350
26351 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26352
26353         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26354         constraint of full view if present, when other type is discriminated.
26355         (Eval_Relational_Op): Recognize tests of pointer values against Null,
26356         when the pointer is known to be non-null, and emit appropriate warning.
26357
26358 2005-06-14  Robert Dewar  <dewar@adacore.com>
26359             Ed Schonberg  <schonberg@adacore.com>
26360
26361         PR ada/10671
26362         * sem_prag.adb: Implement pragma Persistent_BSS
26363         Remove obsolete pragma Persistent_Data, Persistent_Object
26364         Set Ada_Version_Explicit, for implementation of AI-362
26365         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26366         Add processing for pragma Pure_05 and Preelaborate_05
26367         Add processing for Assertion_Policy pragma
26368         Add pragma identifiers for Assert
26369         (Analyze_Pragma, case Assert): Check number of arguments
26370         (Process_Inline): Additional guard against an illegal program, where the
26371         argument of the pragma is undefined, and warnings on redundant
26372         constructs are enabled.
26373         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26374         Ada_05 to this pragma, specifying that the pragma is only active in
26375         Ada_05 mode.
26376         (Check_Arg_Order): New procedure
26377         Add appropriate calls to this procedure throughout
26378         Also throughout, check entity name before doing any other checks
26379
26380         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26381         Remove obsolete pragma Persistent_Data, Persistent_Object
26382         Add entries for pragma Pure_05 and Preelaborate_05
26383         Add entries for Assertion_Policy pragma and associated names
26384         Add some names for pragma argument processing
26385
26386         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26387
26388 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26389
26390         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26391         appears within a negation (either from source or as a rewriting of
26392         inequality) adjust text of warning accordingly.
26393
26394 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26395
26396         * s-strxdr.adb: Follow AI95-00132
26397
26398 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26399
26400         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26401
26402 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26403             Jose Ruiz  <ruiz@adacore.com>
26404
26405         * s-tposen.adb, s-tpobop.adb
26406         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26407         the exception id.
26408         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26409         there is no violation of the Max_Entry_Queue_Length restriction (if it
26410         has been set); Program_Error is raised otherwise.
26411         (Requeue_Call): Before requeuing the task on the target entry queue we
26412         check that there is no violation of the Max_Entry_Queue_Length
26413         restriction (if it has been set); Program_Error is raised otherwise.
26414
26415 2005-06-14  Robert Dewar  <dewar@adacore.com>
26416
26417         * styleg.adb: Fix several remaining problems in -gnatyu switch
26418         Blank line count not reset at start
26419         Scanning outside source buffer in some cases
26420         Confusing message for blanks at end of file
26421         Non-empty blank lines not recognized
26422
26423         * nmake.adt: Modify header so that xnmake does not generate output
26424         files with multiple blank lines.
26425
26426         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26427         not have an extra blank line
26428
26429 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26430
26431         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26432
26433 2005-06-14  Doug Rupp  <rupp@adacore.com>
26434             Vincent Celier  <celier@adacore.com>
26435
26436         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26437         Update copyright.
26438
26439         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26440         Remove "Library" command.
26441         Change keyword for style check -gnatyd from NOCRLF to
26442         DOS_LINE_ENDINGS.
26443         Remove useless second style check keyword NONE
26444         Remove help documentation for inexistent style check keyword
26445         RM_COLUMN_LAYOUT.
26446         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26447         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26448         Add UNNECESSARY_BLANK_LINES for -gnatyu
26449         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26450
26451         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26452
26453 2005-06-14  Vincent Celier  <celier@adacore.com>
26454
26455         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26456         gprmake was invoked with -d.
26457         (Compile_Sources): If -d was used, output the "completed ..." message
26458         for each compilation.
26459         (Scan_Arg): Recognize new switch -d
26460         When -c and at least one main is specified, set
26461         Unique_Compile to True to guarantee that no other sources will be
26462         compiled.
26463
26464 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26465
26466         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26467         * a-swuwha.ads, a-swuwha.adb: New files
26468
26469         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26470         * a-szuzha.ads, a-szuzha.adb: New files.
26471
26472         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26473         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26474         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26475         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26476         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26477         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26478         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26479         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26480         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26481         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26482         Ada 2005 RM.
26483
26484 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26485             Olivier Hainque  <hainque@adacore.com>
26486             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26487             Pascal Obry  <obry@adacore.com>
26488
26489         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26490
26491         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26492         making a temporary around a procedure call because of non-addressable
26493         actual parameter.
26494         (process_freeze_entity): If entity is a private type, capture size
26495         information that may have been computed for the full view.
26496         (tree_transform, case N_Allocator): If have initializing expression,
26497         check type for Has_Constrained_Partial_View and pass that to
26498         build_allocator.
26499         (tree_transform, case N_Return_Statement): Pass extra arg to
26500         build_allocator.
26501
26502         * decl.c (annotate_value): Remove early return if -gnatR is not
26503         specified.
26504         (gnat_to_gnu_field): Don't make a packable type for a component clause
26505         if the position is byte aligned, the field is aliased, and the clause
26506         size isn't a multiple of the packable alignment. It serves no useful
26507         purpose packing-wise and would be rejected later on.
26508         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26509
26510         PR ada/20515
26511         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26512         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26513         instead.
26514         (create_concat_name): Idem.
26515
26516 2005-06-10  Robert Dewar  <dewar@adacore.com>
26517             Eric Botcazou  <ebotcazou@adacore.com>
26518             Ben Brosgol  <brosgol@adacore.com>
26519             Cyrille Comar  <comar@adacore.com>
26520             Sergey Rybin  <rybin@adacore.com>
26521             Pascal Obry  <obry@adacore.com>
26522
26523         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26524         Document second argument (Ada_05) of pragma Obsolescent
26525         Add note that call to subprogram marked with pragma Obsolescent
26526         is now considered to be a violation of program Restrictions
26527         (No_Obsolescent_Features).
26528         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26529         that only machine-dependent attributes are supported.
26530
26531         * gnat_ugn.texi:
26532         Commented out menu lines and empty section for gnatclean examples
26533         Document -gnatwy/Y
26534         Fix some over long lines
26535         Clarify and enhance documentation of ADA_PROJECT_PATH.
26536         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26537         Mention new switch -fcallgraph-info.
26538         Mention new switch -fstack-usage.
26539         For gnatpp, replace '-notab' with '-N' and add this option to Index
26540         Corrected VMS example.
26541         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26542         Minor reformatting
26543         Add documentation for -gnatyu switch (unnecessary blank lines)
26544         Document new switch -U for GNAT PRETTY and GNAT METRIC
26545         Add note about Stdcall being handled as C convention on non Windows OS.
26546         Remove some junk typo in description of gnatbind -S switch
26547         Remove reference to Extensions_Allowed pragma
26548         Document the new order of the directories to be searched (source and
26549         object directories of project files before directories in ADA_*_PATH
26550         environment variables.
26551
26552         * g-trasym.ads: Document that IRIX is supported
26553
26554 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26555
26556         * Makefile.in: Add initialize.o when needed.
26557         Adapt to new VMS package body Symbols and subunits
26558         No specialized version of a-sytaco is needed for VxWorks.
26559
26560         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26561         * a-zchara.ads, a-widcha.ads: New files.
26562
26563         * system-hpux-ia64.ads: New file.
26564
26565         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26566         is imported from the VxWorks kernel.
26567
26568 2005-06-14  Robert Dewar  <dewar@adacore.com>
26569
26570         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26571         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26572         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26573         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26574         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26575         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26576         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26577         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26578         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26579         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26580         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26581         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26582
26583 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26584
26585         * xeinfo.adb: Fix typo in comment
26586
26587 2005-06-14  Javier Miranda  <miranda@adacore.com>
26588
26589         * repinfo.ads: Fix typo in comment
26590
26591 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26592
26593         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26594         Parent_Tag is now in the visible part of Ada.Tags).
26595         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26596         using imported function.
26597
26598 2005-06-14  Bernard Banner  <banner@adacore.com>
26599
26600         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26601         also apply for handling support for VxSim 653.
26602
26603 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26604
26605         * xsnames.adb: Add automatic generation of snames.h.
26606
26607 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26608
26609         * gen-soccon.c: Add IP_MULTICAST_IF constant
26610         Minor reformatting and adjustments to prevent warnings.
26611
26612 2005-06-14  Pascal Obry  <obry@adacore.com>
26613
26614         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26615
26616 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26617
26618         * trans.c (gnat_gimplify_expr): Call
26619         recompute_tree_invarant_for_addr_expr when we change
26620         the operand of the ADDR_EXPR.
26621
26622 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26623
26624         * misc.c: Don't include errors.h.
26625
26626 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26627
26628         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26629
26630 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26631
26632         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26633         comment typos.
26634         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26635
26636 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26637
26638         PR ada/20270
26639         * Makefile.in: Make TGT_LIB behave correctly.
26640
26641 2005-04-23  DJ Delorie  <dj@redhat.com>
26642
26643         * misc.c: Adjust warning() callers.
26644
26645 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26646
26647         PR ada/18847
26648         * a-nudira.adb (Value): Check for valid string.
26649         * a-nuflra.adb (Value): Likewise.
26650
26651 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26652
26653         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26654
26655 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26656
26657         * adaint.c, init.c, tracebak.c: Fix comment typos.
26658         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26659
26660 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26661             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26662
26663         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26664         * system-hpux.ads: Define Signed_Zeros to be True.
26665         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26666
26667 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26668
26669         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26670         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26671         typos.
26672
26673 2005-03-30  Tom Tromey  <tromey@redhat.com>
26674
26675         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26676
26677 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26678
26679         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26680
26681 2005-03-29  Robert Dewar  <dewar@adacore.com>
26682
26683         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26684         fixed-point expression has value that is not a multiple of the Small
26685         value.
26686
26687         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26688
26689         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26690         nanoseconds.
26691
26692         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26693
26694 2005-03-29  Vincent Celier  <celier@adacore.com>
26695
26696         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26697         (Build_Dynamic_Library.Version_String): Return the empty string when
26698         Lib_Version is empty or when the symbol policy is not Autonomous.
26699
26700         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26701         a symbol is not in the reference symbol file, increase the Major ID
26702         and set the Minor ID to 0.
26703         Use gsmatch=lequal instead of gsmatch=equal
26704
26705 2005-03-29  Doug Rupp  <rupp@adacore.com>
26706
26707         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26708         name and translate.
26709
26710 2005-03-29  Javier Miranda  <miranda@adacore.com>
26711
26712         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26713         (Inherit_DT): The first formal has been redefined as a Tag.
26714         This allows us the removal of the subprogram Get_TSD.
26715         (TSD): Replace the call to Get_TSD by the actual code.
26716
26717         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26718         (Make_DT): Upgrade the call to Inherit_TSD according to the
26719         new interface: the first formal is now a Tag.
26720
26721         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26722         redefined as a Tag.
26723         This change allows us to remove the subprogram Get_TSD.
26724         (CPP_Get_TSD): Subprogram removed.
26725         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26726
26727         * rtsfind.ads: Remove support to call the run-time
26728         subprogram Get_TSD
26729
26730 2005-03-29  Robert Dewar  <dewar@adacore.com>
26731
26732         * errutil.adb, errout.adb:
26733         Minor comment updates on Line_Terminator references
26734
26735         * par-ch10.adb: Add ??? comment about line terminator
26736
26737         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26738         (check dos line terminator).
26739         (Check_Line_Max_Length): New procedure, split off from the existing
26740         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26741         be properly recognized.
26742
26743         * styleg.adb: Add ??? comment for line terminator reference
26744
26745         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26746         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26747
26748         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26749         (check dos line terminator).
26750         (Check_Line_Max_Length): New procedure, split off from the existing
26751         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26752         be properly recognized.
26753
26754         * stylesw.ads, stylesw.adb:
26755         Add handling for new -gnatyd switch (check dos line terminator)
26756
26757         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26758         Recognize -gnatwb/-gnatwB switches
26759         Include Warn_On_Bad_Fixed_Value for -gnatg
26760
26761         * usage.adb:
26762         Add line for new -gnatyd switch (check dos line terminator)
26763
26764         * usage.adb: Add lines for -gnatwb/-gnatwB
26765
26766         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26767
26768         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26769
26770         * gnat_ugn.texi: Fix overlong lines
26771         Document new -gnatyd switch
26772         Document new -gnatwb/-gnatwB switches
26773
26774 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26775
26776         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26777         order to retrieve the component list of the type, before examining
26778         individual components.
26779
26780         * sem_type.adb (Covers): Types are compatible if one is the base type
26781         of the other, even though their base types might differ when private
26782         views are involved.
26783
26784 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26785
26786         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26787         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26788         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26789         analyzed if expansion is disabled (which could otherwise cause spurious
26790         error messages if expansion has been disabled due to previous
26791         (unrelated) errors).
26792
26793         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26794         is disabled, the entity denoted by the argument is the access type
26795         itself, not an underlying record type, so there is no need to go back
26796         to the Corresponding_Remote_Type.
26797
26798 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26799             Robert Dewar  <dewar@adacore.com>
26800
26801         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26802         expand a call to an instance of
26803         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26804         Constructor actual of the instance. A class-wide membership
26805         check is also generated, to ensure that the tag passed to the instance
26806         denotes a type in the class.
26807         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26808         of Name_Generic_Dispatching_Constructor.
26809
26810         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26811         05 unit for AI-260-02).
26812
26813         * a-tgdico.ads: New file.
26814
26815         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26816         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26817
26818         * snames.ads, snames.adb (Preset_Names): Add entry for
26819         Generic_Dispatching_Constructor.
26820
26821         PR ada/20300
26822         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26823         character type cases.
26824         (Analyze_Subprogram_Renaming): Add special handling for
26825         the case of renaming of stream attributes when the renaming denotes a
26826         generic formal subprogram association for an abstract formal subprogram.
26827         Check that the attribute is a primitive stream attribute (and not
26828         a class-wide stream attribute) and then rewrite the attribute name
26829         as the name of the appropriate compiler-generated stream primitive.
26830
26831 2005-03-29  Robert Dewar  <dewar@adacore.com>
26832
26833         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26834         recursive calls.
26835         (Is_Possibly_Unaligned_Object): Correct typo that
26836         resulted in inaccurate result for unaligned scalars within records.
26837
26838 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26839
26840         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26841         itype whose parent is controlled and not yet frozen, do not create a
26842         freeze node for the itype if expansion is disabled.
26843
26844 2005-03-29  Vincent Celier  <celier@adacore.com>
26845
26846         * make.adb (Gnatmake): Don't fail if the main project file is declared
26847         as having no Ada sources. Do not display message "no sources to
26848         compile" in quiet output.
26849
26850 2005-03-29  Doug Rupp  <rupp@adacore.com>
26851
26852         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26853         extra tools.
26854
26855 2005-03-29  Robert Dewar  <dewar@adacore.com>
26856
26857         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26858         child.
26859
26860 2005-03-29  Robert Dewar  <dewar@adacore.com>
26861
26862         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26863         missing TYPE Improve the error message generated when compiling a
26864         limited interface in Ada83 or Ada95 mode.
26865
26866 2005-03-29  Robert Dewar  <dewar@adacore.com>
26867
26868         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26869         rather than proceed ahead using a junk attribute name.
26870
26871 2005-03-29  Vincent Celier  <celier@adacore.com>
26872
26873         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26874
26875         * prj-part.adb (Parse_Single_Project): Set the location of a project
26876         on its defining identifier, rather than on the reserved word "project".
26877
26878         * prj-proc.adb (Expression): Adapt to the fact that default of external
26879         references may be string expressions, not always literal strings.
26880         (Recursive_Process): Set Display_Name equal to Name
26881         when Location is No_Location, that is when there is no actual file.
26882         Get the Display_Name of the project from the source, when it is not a
26883         virtual project.
26884         (Process): Use the Display_Name in error messages
26885
26886         * prj-strt.adb (External_Reference): Allow default to be string
26887         expressions, not only literal strings.
26888
26889 2005-03-29  Vincent Celier  <celier@adacore.com>
26890
26891         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26892         file and the reference symbol file to be the same file.
26893
26894 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26895
26896         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26897         forbid conversion of a local access-to-subprogram type to a remote one.
26898
26899         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26900         equivalent type for a remote access-to-subprogram type, go back to the
26901         original RAS entity when displaying an error message, so the casing is
26902         the original source casing.
26903
26904 2005-03-29  Robert Dewar  <dewar@adacore.com>
26905
26906         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26907         on param update.
26908
26909 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26910
26911         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26912         subtype if code is being pre-analyzed, to prevent un-expanded
26913         references to protected formals, among others.
26914         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26915         interpretation that can be a call, include the result of the call as a
26916         possible interpretation of the dereference.
26917
26918         * sem_ch5.adb (Process_Bounds): Determine type of range by
26919         pre-analyzing a copy of the original range, and then analyze the range
26920         with the expected type.
26921
26922         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26923         with an overloaded prefix where not all interpretations yield an
26924         access to subprogram, do not rewrite node as a call.
26925         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26926         the node as a call once the context identifies the interpretation of
26927         the prefix whose call yields the context type.
26928         (Valid_Conversion): For the case of a conversion between
26929         local access-to-subprogram types, check subtype conformance using
26930         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26931         detailed error message.
26932
26933 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26934
26935         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26936         indicator, indicate that the formal can never be null.
26937         (Process_Formals): If a formal has a non_null indicator, insert the
26938         resulting subtype immediately before the enclosing subprogram decl,
26939         and not at the beginning of the corresponding declarative part, to
26940         prevent access before elaboration (Ada2005).
26941
26942 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26943
26944         PR ada/19956
26945         * utils.c (finish_record_type): Use variable_size when setting sizes.
26946
26947 2005-03-29  Robert Dewar  <dewar@adacore.com>
26948
26949         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26950         guarantee Unix style line terminators for the output files, even when
26951         running on windows.
26952
26953 2005-03-29  Robert Dewar  <dewar@adacore.com>
26954
26955         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26956         buffer if an exception is raised.
26957
26958 2005-03-29  Ed Falis  <falis@adacore.com>
26959
26960         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26961         VxWorks 653 1.4
26962
26963 2005-03-29  Robert Dewar  <dewar@adacore.com>
26964
26965         * sem_util.ads: Minor reformatting
26966         * gnat_rm.texi: Minor editing.
26967
26968 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26969
26970         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26971         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26972
26973 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26974
26975         * adaint.c (__gnat_portable_spawn): Adjust cast.
26976
26977 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26978
26979         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26980
26981 2005-03-17  Pascal Obry  <obry@adacore.com>
26982
26983         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26984         used.
26985
26986         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26987         Reimplement under Win32 using Win32 API.
26988
26989         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26990         this routine.
26991
26992 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26993
26994         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26995         (DECL_RENAMED_OBJECT): New accessor macro.
26996         (SET_DECL_RENAMED_OBJECT): New setter macro.
26997
26998         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26999         object in all cases.  Attach the renamed object to the VAR_DECL.
27000         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27001         field is not prescribed.
27002
27003         * misc.c (gnat_handle_option): Handle -gnatO separately.
27004         (gnat_print_decl) <VAR_DECL>: New case.
27005         Print the DECL_RENAMED_OBJECT node.
27006
27007         * lang.opt:  Declare separate -gnatO option.
27008
27009         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27010         pointer, replace it with the renamed object.
27011         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27012         pointer type if the source is not a fat pointer type whose underlying
27013         array has the same non-zero alias set as that of the destination array.
27014
27015 2005-03-17  Javier Miranda  <miranda@adacore.com>
27016
27017         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27018         (Get_Inheritance_Depth): Removed.
27019         (Set_Inheritance_Depth): Removed.
27020
27021         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27022         subprogram Get_Expanded_Name because it is not referenced by the
27023         frontend.
27024
27025         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27026         (CPP_Get_Inheritance_Depth): Removed.
27027         (CPP_Set_Inheritance_Depth): Removed.
27028
27029         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27030
27031 2005-03-17  Robert Dewar  <dewar@adacore.com>
27032
27033         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27034         3, since we now expect GCC 3 to do all the work.
27035
27036 2005-03-17  Javier Miranda  <miranda@adacore.com>
27037
27038         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27039         of one barrier to avoid wrong usage of this attribute.
27040
27041         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27042         First_Private_Entity.
27043
27044         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27045         the subprogram against wrong usage.
27046         Adapt the code to traverse the entities in the
27047         scope of a record_type because in addition to its usage regarding
27048         packages, this subprogram is also called by Expand_N_Freeze_Entity
27049         to install the visible declarations of the enclosing scope of a
27050         record_type_with_private to establish the proper visibility before
27051         freezing the entity and related subprograms.
27052
27053 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
27054
27055         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27056         entry formals.
27057
27058 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27059
27060         * exp_ch3.adb (Check_Attr): New subprogram.
27061         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27062         into a new Check_Attr subprogram, in order to provide a more
27063         explanatory error message (including the name of the missing attribute).
27064         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27065         subprogram determines whether a default implementation exists for a
27066         given stream attribute.
27067         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27068         Determine whether to generate a default implementation for each stream
27069         attribute separately, as this depends on the specific attribute.
27070
27071         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27072         limited extension where a stream attribute is missing for a limited
27073         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27074         generate a bogus reference to the missing attribute to prevent
27075         cascaded errors. Instead, generate a null statement.
27076
27077         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27078         available for a limited type if it has been specified for an ancestor
27079         of the type.
27080
27081 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
27082
27083         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27084         entity is an operator.
27085
27086 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27087
27088         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27089         spec, to make this predicate available to other units.
27090
27091         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27092         reimplementing it.
27093
27094         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27095         when no distribution runtime library is available.
27096
27097         * sem_res.adb, sem_dist.adb: Disable expansion of remote
27098         access-to-subprogram types when no distribution runtime library is
27099         available.
27100         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27101         predicate available to other units.
27102
27103         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27104         spec, to make this predicate available to other units.
27105
27106 2005-03-17  Vincent Celier  <celier@adacore.com>
27107
27108         * make.adb (Insert_Project_Sources): Make sure the Q is always
27109         initialized.
27110
27111         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27112         the default for the tree, not the global default naming.
27113
27114         * prj-proc.adb (Recursive_Process): No need to put the default naming
27115         in the project data, it's already there.
27116
27117 2005-03-17  Doug Rupp  <rupp@adacore.com>
27118
27119         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27120
27121         * 5xcrtl.ads: Renamed to...
27122         * s-crtl-vms64.ads: ...this new file
27123
27124 2005-03-17  Robert Dewar  <dewar@adacore.com>
27125
27126         PR ada/19519
27127         * namet.adb (Copy_One_Character): Set proper wide character encoding
27128         for upper half character if we have upper half encoding.
27129
27130 2005-03-17  Robert Dewar  <dewar@adacore.com>
27131
27132         * par.adb (Par): Improved msg for attempt to recompile predefined unit
27133
27134 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27135
27136         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27137         tagged limited type, the TSS is a newly built renaming declaration:
27138         insert it using Set_TSS, not Copy_TSS.
27139
27140 2005-03-17  Javier Miranda  <miranda@adacore.com>
27141
27142         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27143         Try_Object_Operation): Analyze the object that is accessible
27144         through the prefix of the subprogram call before we apply
27145         the transformation of the object-operation notation.
27146
27147 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
27148
27149         * s-taprob.adb (Initialize_Protection): Initialize the protected
27150         object's owner to Null_Task.
27151         (Lock): If pragma Detect_Blocking is in effect and the caller of this
27152         procedure is already the protected object's owner then Program_Error
27153         is raised. In addition the protected object's owner is updated.
27154         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27155         of this procedure is already the protected object's owner then
27156         Program_Error is raised.
27157         In addition the protected object's owner is updated.
27158         (Unlock): Remove the ownership of the protected object.
27159
27160         * s-taprob.ads (Protection): Add the field Owner, used to store the
27161         protected object's owner.
27162         This component is needed for detecting one type of potentially blocking
27163         operations (external calls on a protected subprogram with the same
27164         target object as that of the protected action). Document the rest of
27165         the components.
27166
27167         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27168         Initialize the protected object's owner to Null_Task.
27169         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27170         caller of this procedure is already the protected object's owner then
27171         Program_Error is raised.
27172         Do not raise Program_Error when this procedure is called from a
27173         protected action.
27174         (Unlock_Entries): Remove the ownership of the protected object.
27175         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27176         of this procedure is already the protected object's owner then
27177         Program_Error is raised.
27178         Do not raise Program_Error when this procedure is called from
27179         a protected action.
27180
27181         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27182         used to store the protected object's owner.
27183
27184         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27185         effect and this procedure (a potentially blocking operation) is called
27186         from whithin a protected action, Program_Error is raised.
27187         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27188         and this procedure (a potentially blocking operation) is called from
27189         whithin a protected action, Program_Error is raised.
27190
27191 2005-03-17  Vincent Celier  <celier@adacore.com>
27192             Nicolas Setton  <setton@adacore.com>
27193
27194         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27195         switch, not supported by the linker on Darwin. Add '_' before
27196         <library>init, as this character is added unconditionally by the
27197         compiler.
27198         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27199         correct one ".dylib". This fixes detection of the archive files when
27200         building library projects.
27201
27202 2005-03-17  Vincent Celier  <celier@adacore.com>
27203
27204         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27205         -gnat83, -gnat95 and -gnat05.
27206
27207 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
27208
27209         * gnat_ugn.texi: Document gnatmem restriction
27210
27211 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27212
27213         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27214         cleanup
27215
27216 2005-03-17  Robert Dewar  <dewar@adacore.com>
27217
27218         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27219         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27220         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27221
27222         * casing.adb: Comment improvements
27223
27224 2005-03-17  Pascal Obry  <obry@adacore.com>
27225
27226         * g-expect.adb: Minor reformatting.
27227
27228 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
27229
27230         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27231         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27232         to dependencies.
27233
27234 2005-03-15  Vincent Celier  <celier@adacore.com>
27235
27236         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27237         Add new parameter In_Tree to specify the project tree: needed
27238         by the project manager. Adapt to changes in project manager
27239         using new parameter In_Tree.
27240
27241 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
27242
27243         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27244         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27245         ada/bldtools to avoid make -jN failures.
27246
27247 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27248
27249         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27250         to NULL_TREE on entry.
27251
27252 2005-03-15  Robert Dewar  <dewar@adacore.com>
27253
27254         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27255         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27256         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27257         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27258         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27259         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27260         system-interix.ads, system-solaris-sparc.ads,
27261         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27262         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27263         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27264         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27265         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27266         Compiler_System_Version to be False.
27267
27268         * opt.ads: Add new flag Opt.Address_Is_Private
27269
27270         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27271         Add new parameter Compiler_System_Version to avoid checking for
27272         completeness of parameters when compiler is compiling itself.
27273         Allows old versions of GNAT to be compiled with new compiler.
27274
27275 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27276
27277         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27278         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27279         calling thread.
27280         (Stack_Base_Available): New flag.
27281         (Get_Page_Size): New overloaded functions imported from C.
27282         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27283         PROT_ON, PROT_OFF): New constants.
27284         (mprotect): New function imported from C.
27285         (pthread_teb_t): New record type.
27286
27287         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27288         (Create_Task): Account for the Yellow Zone and the guard page.
27289
27290 2005-03-15  Vincent Celier  <celier@adacore.com>
27291
27292         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27293         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27294         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27295         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27296         Library_File_Name_For): Add new parameter In_Tree
27297         to specify the project tree: needed by the project manager.
27298         Adapt to changes in project manager using new parameter In_Tree.
27299         Remove local imports, use functions in System.CRTL.
27300
27301         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27302         to use the project manager.
27303
27304         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27305         In_Tree to designate the project tree. Adapt to changes in the project
27306         manager, using In_Tree.
27307
27308         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27309         Copy_Interface_Sources): Add new parameter In_Tree to specify the
27310         project tree: needed by the project manager.
27311         (Build_Library): Check that Arg'Length >= 6 before checking if it
27312         contains "--RTS=...".
27313
27314         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27315         Library_File_Name_For): Add new parameter In_Tree to specify the
27316         project tree: needed by the project manager.
27317
27318         * prj.ads, prj.adb: Major modifications to allow several project trees
27319         in memory at the same time.
27320         Change tables to dynamic tables and hash tables to dynamic hash
27321         tables. Move tables and hash tables from Prj.Com (in the visible part)
27322         and Prj.Env (in the private part). Move some constants from the visible
27323         part to the private part. Make other constants deferred.
27324         (Project_Empty): Make it a variable, not a function
27325         (Empty_Project): Add parameter Tree. Returns the data with the default
27326         naming data of the project tree Tree.
27327         (Initialize): After updating Std_Naming_Data, copy its value to the
27328         component Naming of Project Empty.
27329         (Register_Default_Naming_Scheme): Use and update the default naming
27330         component of the project tree, instead of the global variable
27331         Std_Naming_Data.
27332         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27333         Tree is not defaulted, return the default naming data of the Tree.
27334         (Initial_Buffer_Size): Constant moved from private part
27335         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27336         variables initialized in procedure Initialize.
27337         (Add_To_Buffer): Add two in out parameters to replace global variables
27338         Buffer and Buffer_Last.
27339         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27340         functions.
27341         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27342         hash tables.
27343         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27344         for the project tree.
27345         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27346         constant at the beginning of the package spec, so that they cane be used
27347         in subprograms before their full declarations.
27348         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27349         (Empty_Project): Add parameter of type Project_Node_Ref
27350         (Private_Project_Tree_Data): Add component Default_Naming of type
27351         Naming_Data.
27352         (Buffer, Buffer_Last): remove global variables
27353         (Add_To_Buffer): Add two in out parameters to replace global variables
27354         Buffer and Buffer_Last.
27355         (Current_Packages_To_Check): Remove global variable
27356         (Empty_Name): Move to private part
27357         (No-Symbols): Make it a constant
27358         (Private_Project_Tree_Data): New type for the private part of the
27359         project tree data.
27360         (Project_Tree_Data): New type for the data of a project tree
27361         (Project_Tree_Ref): New type to designate a project tree
27362         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27363         for the project tree.
27364
27365         * prj-attr.ads: Add with Table; needed, as package Prj no longer
27366         imports package Table.
27367
27368         * prj-com.adb: Remove empty, no longer needed body
27369
27370         * prj-com.ads: Move most of the content of this package to package Prj.
27371
27372         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27373         designate the project node tree and Packages_To_Check to replace
27374         global variable Current_Packages_To_Check.
27375         Add new parameters In_Tree and Packages_To_Check to local subprograms,
27376         when needed. Adapt to changes in project manager with project node tree
27377         In_Tree.
27378
27379         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27380         project tree to most subprograms. Move tables and hash tables to
27381         private part of package Prj.
27382         Adapt to changes in project manager using project tree In_Tree.
27383
27384         * prj-makr.adb (Tree): New constant to designate the project node tree
27385         Adapt to change in project manager using project node tree Tree
27386
27387         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27388         display the Library_Src_Dir and the Library_Dir.
27389         Add new parameter In_Tree to designate the project node tree to most
27390         subprograms. Adapt to changes in the project manager, using project tree
27391         In_Tree.
27392         (Check_Naming_Scheme): Do not alter the casing on platforms where
27393         the casing of file names is not significant.
27394         (Check): Add new parameter In_Tree to designate the
27395
27396         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27397         designate the project tree.
27398         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27399
27400         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27401         to replace those that were in the private part of package Prj.
27402         Add new parameter In__Tree to designate the project node tree to most
27403         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27404         (Post_Parse_Context_Clause): When specifying the project node of a with
27405         clause, indicate that it is a limited with only if there is "limited"
27406         in the with clause, not necessarily when In_Limited is True.
27407         (Parse): Add new parameter In_Tree to designate the project node tree
27408
27409         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27410         designate the project node tree. Adapt to change in Prj.Tree with
27411         project node tree In_Tree.
27412
27413         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27414         tree In_Tree in the call to function Empty_Process to give its initial
27415         value to the project data Processed_Data.
27416         Add new parameters In_Tree to designate the project tree and
27417         From_Project_Node_Tree to designate the project node tree to several
27418         subprograms. Adapt to change in project manager with project tree
27419         In_Tree and project node tree From_Project_Node_Tree.
27420
27421         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27422         to replace those that were in the private part of package Prj.
27423         Add new parameter In_Tree to designate the project node tree to most
27424         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27425
27426         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27427         Project_Node_Tree_Ref to most subprograms.
27428         Use this new parameter to store project nodes in the designated project
27429         node tree.
27430         (Project_Node_Tree_Ref): New type to designate a project node tree
27431         (Tree_Private_Part): Change table to dynamic table and hash tables to
27432         dynamic hash tables.
27433
27434         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27435         the project tree to most subprograms. Adapt to changes in project
27436         manager using project tree In_Tree.
27437
27438         * makegpr.adb (Project_Tree): New constant needed to use project
27439         manager.
27440
27441 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27442
27443         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27444         for sigactions with SA_SIGINFO set. Call
27445         __gnat_adjust_context_for_raise before raising, to perform the
27446         potentially required adjustments to the machine context for the GCC
27447         unwinder.
27448
27449         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27450
27451         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27452         Adjust PC by one in the provided machine context.
27453         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27454         so that the handler is passed the context structure to adjust prior to
27455         the raise.
27456         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27457         SA_SIGINFO sigaction should look like. Call
27458         __gnat_adjust_context_for_raise before actually raising.
27459         (__gnat_adjust_context_for_raise): Default noop to help PC
27460         adjustments before raise from signal handlers.
27461         (__gnat_error_handler): Indirectly call a predicate function to
27462         determine if a condition should be resignaled or not.
27463         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27464         (__gnat_default_resignal_p): Default GNAT predicate.
27465
27466 2005-03-15  Doug Rupp  <rupp@adacore.com>
27467
27468         * adaint.c: Prefix #include of VMS system header files with vms/
27469         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27470         Do not define a dummy function "convert_addresses" under Darwin,
27471         not needed.
27472
27473         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27474         with vms/
27475
27476 2005-03-15  Nicolas Setton  <setton@adacore.com>
27477
27478         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27479         PPC/AIX.
27480
27481 2005-03-15  Robert Dewar  <dewar@adacore.com>
27482
27483         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27484         AI-386.
27485
27486         * a-retide.ads: Minor comment changes
27487
27488 2005-03-15  Robert Dewar  <dewar@adacore.com>
27489
27490         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27491         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27492         Realloc_For_Chunk to private part of package.
27493         New subprograms for AI-301
27494
27495         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27496         Get_Line procedure.
27497         Avoid unnecessary use of Get/Set_Wide_String
27498
27499 2005-03-15  Robert Dewar  <dewar@adacore.com>
27500
27501         PR ada/13470
27502         * a-stunau.ads, a-stunau.adb:
27503         Change interface to allow efficient (and correct) implementation
27504         The previous changes to allow extra space in unbounded strings had
27505         left this interface a bit broken.
27506
27507         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27508
27509         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27510         Minor reformatting (function specs)
27511
27512         * g-spitbo.adb: New interface for Get_String
27513
27514         * g-spitbo.ads: Minor reformatting
27515
27516         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27517
27518         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27519
27520 2005-03-15  Javier Miranda  <miranda@adacore.com>
27521             Robert Dewar  <dewar@adacore.com>
27522             Thomas Quinot  <quinot@adacore.com>
27523             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27524
27525         * atree.ads, atree.adb: Add support for Elist24 field
27526
27527         * atree.h: Fix wrong definition of Field27
27528         Add support for Elist16 field
27529         Add support for Elist24 field
27530
27531         * einfo.ads, einfo.adb (Abstract_Interfaces,
27532         Set_Abstract_Interfaces): New subprograms.
27533         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27534         subprograms.
27535         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27536         entities rather than a single node.
27537         (Is_Interface, Set_Is_Interface): New subprogram
27538         (First_Tag_Component): New syntesized attribute
27539         (Next_Tag_Component): New synthesized attribute
27540         (Write_Entity_Flags): Upgraded to write Is_Interface
27541         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27542         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27543         (Task_Body_Procedure): New subprogram to read this attribute.
27544         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27545         (Has_Controlled_Component): Now applies to all entities.
27546         This is only a documentation change, since it always worked to apply
27547         this to other than composite types (yielding false), but now this is
27548         official.
27549         Update documentation on Must_Be_Byte_Aligned for new spec
27550
27551         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27552         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27553         uses of the Access_Disp_Table attribute to reference the first dispatch
27554         table associated with a tagged type. As
27555         part of the implementation of abstract interface types,
27556         Access_Disp_Table has been redefined to contain a list of dispatch
27557         tables (rather than a single dispatch table).
27558         Similarly, upgrade all the references to Tag_Component by the
27559         new attribute First_Tag_Component.
27560         (Find_Inherited_TSS): Moved to exp_tss.
27561         Clean up test in Expand_N_Object_Declaration for cases
27562         where we need to do a separate assignment of the initial value.
27563         (Expand_N_Object_Declaration): If the expression in the
27564         declaration of a tagged type is an aggregate, no need to generate an
27565         additional tag assignment.
27566         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27567         is to be deleted.
27568         Bit packed array ops are only called if operands are known to be
27569         aligned.
27570         (Component_Equality): When returning an N_Raise_Program_Error statement,
27571         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27572         expects that only expressions have a bona fide type).
27573         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27574         determine the amount of data to be copied.
27575
27576         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27577         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27578             INTERFACE_TYPE_DEFINITION ::=
27579               [limited | task | protected | synchronized] interface
27580                 [AND interface_list]
27581
27582         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27583         interfaces.
27584         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27585         interfaces.
27586         (P_Interface_Type_Definition): New subprogram that parses the new
27587         syntax rule of Ada 2005 interfaces
27588         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27589         messages by the correct RENAMES (quotes removed).
27590
27591         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27592         attribute First_Tag_Component.
27593
27594         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27595         (Interface_List, Set_Interface_List): New subprograms.
27596         (Interface_Present, Set_Interface_Present): New subprograms.
27597         (Limited_Present, Set_Limited_Present): Available also in derived
27598         type definition nodes.
27599         (Protected_Present, Set_Protected_Present): Available also in
27600         record type definition and
27601         derived type definition nodes.
27602         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27603         (Task_Present, Set_Task_Present): New subprogram.
27604         (Task_Body_Procedure): Removed.
27605         (Set_Task_Body_Procedure): Removed.
27606         These subprogram have been removed because the attribute
27607         Task_Body_Procedure has been moved to the corresponding task type
27608         or task subtype entity to leave a field free to store the list
27609         of interfaces implemented by a task (for AI-345)
27610         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27611         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27612         expression flag Do_Range_Check
27613         (Exception_Junk): Change to Flag7 to accomodate above change
27614         (Box_Present, Default_Name, Specification, Set_Box_Present,
27615         Set_Default_Name, Set_Specification): Expand the expression
27616         "X in N_Formal_Subprogram_Declaration" into the corresponding
27617         two comparisons. Required to use the csinfo tool.
27618
27619         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27620         "with string" given.
27621
27622         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27623         expression given.
27624
27625         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27626         in 2005 mode
27627
27628         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27629         attribute Task_Body_Procedure rather than the old semantic field that
27630         was available in the task_type_declaration node.
27631
27632         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27633         interface type definitions.
27634         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27635         interfaces.
27636
27637         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27638         task type declaration.
27639         (P_Protected): Modified to handle the list of interfaces in a
27640         protected type declaration.
27641
27642 2005-03-15  Doug Rupp  <rupp@adacore.com>
27643             Vincent Celier  <celier@adacore.com>
27644
27645         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27646         (Gen_Output_File_C): Likewise.
27647         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27648
27649 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27650
27651         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27652         is an N_Raise_Constraint_Error node, create a new copy of it without
27653         going through a call to Duplicate_Subexpr.
27654
27655 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27656             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27657             Nicolas Setton  <setton@adacore.com>
27658             Ed Schonberg  <schonberg@adacore.com>
27659
27660         PR ada/19900
27661         PR ada/19408
27662         PR ada/19140
27663         PR ada/20255
27664         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27665         representation clause that prescribes a size not equal to the rounded
27666         size of their types.
27667         (gnat_to_gnu_entity, case E_Component): Always look at
27668         Original_Record_Component if Present and not the entity.
27669         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27670         of tagged extension types by not making field for components that are
27671         inside the parent.
27672         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27673         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27674         expression to the type of the object when the object is constant.
27675         Reverse defer_debug_incomplete_list before traversing it, so that trees
27676         are processed in the order at which they were added to the list. This
27677         order is important when using the stabs debug format.
27678         If we are deferring the output of debug information, also defer this
27679         output for a function return type.
27680         When adding fields to a record, prevent emitting debug information
27681         for incomplete records, emit the information only when the record is
27682         complete.
27683         (components_to_record): New parameter defer_debug.
27684         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27685         (gnat_to_gnu_field_decl): New function.
27686         (substitution_list, annotate_rep): Call it.
27687         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27688         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27689         No longer update discriminants to not be a COMPONENT_REF.
27690         (copy_alias_set): Strip padding from input type; also handle
27691         unconstrained arrays properly.
27692
27693         * gigi.h (write_record_type_debug_info): New function.
27694         Convert to use ANSI-style prototypes. Remove unused
27695         declarations for emit_stack_check, elab_all_gnat and
27696         set_second_error_entity.
27697         (gnat_to_gnu_field_decl): New decl.
27698
27699         * utils.c (write_record_type_debug_info): New function.
27700         (finish_record_type): Delegate generation of debug information to
27701         write_record_type_debug_info.
27702         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27703         (update_pointer_to): Fix pasto.
27704         (convert) <UNION_TYPE>: Accept slight type variations when
27705         converting to an unchecked union type.
27706
27707         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27708         replace the N_Freeze_Entity with a null statement.
27709
27710         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27711         within a constrained subcomponent of an enclosing record, place the
27712         freeze nodes in the scope stack entry for the enclosing record.
27713         (Undelay_Type): New Subprogram.
27714         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27715         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27716         within records; allow them to have freeze nodes if their base types
27717         aren't frozen yet.
27718
27719         * exp_util.adb (Remove_Side_Effects): Properly test for
27720         Expansion_Delayed and handle case when it's inside an
27721         N_Qualified_Expression.
27722
27723         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27724         Comes_From_Generic, to recognize accurately that the parent type in a
27725         derived type declaration can be traced back to a formal type, because
27726         it is one or is derived from one, or because its completion is derived
27727         from one.
27728         (Constrain_Component_Type): If component comes from source and has no
27729         explicit constraint, no need to constrain in in a subtype of the
27730         enclosing record.
27731         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27732         Minor change to propagate Is_Ada_2005 flag
27733
27734         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27735         Expansion_Delayed is False.
27736         (assoc_to_constructor): Ignore fields that have a
27737         Corresponding_Discriminant.
27738         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27739         function returns "by target", dereference the target pointer using the
27740         type of the actual return value.
27741         <all>: Be prepared for a null gnu_result.
27742         (processed_inline_subprograms): Check flag_really_no_inline
27743         instead of flag_no_inline.
27744         (set_second_error_entity): Remove unused function.
27745         (gnat_to_gnu, case N_Selected_Component): Call
27746         gnat_to_gnu_field_decl.
27747         (assoc_to_constructor): Likewise.
27748
27749 2005-03-15  Robert Dewar  <dewar@adacore.com>
27750             Ed Schonberg  <schonberg@adacore.com>
27751             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27752
27753         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27754         Must_Be_Byte_Aligned for cases where we do not need to use a
27755         System.Pack_nn unit.
27756
27757         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27758         as procedures.
27759         Needed now that we do some processing for IN parameters as well. This
27760         may well fix some unrelated errors.
27761         (Expand_Call): Handle case of unaligned objects (in particular those
27762         that come from packed arrays).
27763         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27764         renamed entity is an inherited operation, re-expand the call using the
27765         original operation, which is the one to call.
27766         Detect attempt to inline parameterless recursive subprogram.
27767         (Represented_As_Scalar): Fix to work properly with private types
27768         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27769         accurate estimate. Yields True in far fewer cases than before,
27770         improving the quality of code that depends on this test.
27771
27772         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27773         over both visible and private declarations to remove them from tree,
27774         and mark subprograms declared in package as eliminated, to prevent
27775         spurious use in subsequent compilation of generic units in the context.
27776
27777         * exp_util.ads: Minor cleanup in variable names
27778
27779         * sem_eval.ads, sem_eval.adb: Minor reformatting
27780         (Compile_Time_Known_Bounds): New function
27781
27782 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27783
27784         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27785         determining whether an unchecked conversion is needed for the argument
27786         of an initialization call.
27787
27788 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27789
27790         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27791         that appears in the instantiation rather than the internal subtype
27792         generated in the wrapper package, to avoid anomalies in gigi when the
27793         target is derived from a private type whose full view is an access type.
27794
27795 2005-03-15  Robert Dewar  <dewar@adacore.com>
27796
27797         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27798         not needed.
27799         Add documentation to replace the use of this flag
27800         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27801         the x86_64.
27802
27803 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27804
27805         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27806         here from exp_attr so it can be shared between exp_attr and exp_dist.
27807         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27808         all TSS names, not a subset thereof, and the previous name introduced
27809         an unnecessarily confusion that a distinction might exist between
27810         "OK" TSS names and some "not OK" TSS names.
27811
27812 2005-03-15  Doug Rupp  <rupp@adacore.com>
27813
27814         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27815         Command_Name.
27816
27817 2005-03-15  Pascal Obry  <obry@adacore.com>
27818             Eric Botcazou  <ebotcazou@adacore.com>
27819
27820         PR ada/20226
27821         PR ada/20344
27822         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27823         when IN_RTS. This is to work around a bootstrap path problem.
27824
27825         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27826         table and pass it to __gnat_install_SEH_handler().
27827         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27828
27829         * lang.opt: Fix specification of -fRTS=.
27830
27831 2005-03-15  Doug Rupp  <rupp@adacore.com>
27832             Bernard Banner  <banner@adacore.com>
27833             Vincent Celier  <celier@adacore.com>
27834             Arnaud Charlet  <charlet@adacore.com>
27835
27836         PR ada/6852
27837         This change works fine when gnatlib is built from the gcc directory,
27838         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27839         is not passed to ada/Makefile.in, so more work is needed by a
27840         Makefile/configure expert.
27841
27842         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27843         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27844         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27845         for Linux x86.
27846         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27847         Run ranlib on libgccprefix.a
27848         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27849         (ADA_INCLUDE_SRCS): Split Ada packages.
27850
27851 2005-03-15  Robert Dewar  <dewar@adacore.com>
27852
27853         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27854
27855         * impunit.adb: Add GNAT.UTF_32
27856
27857         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27858
27859         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27860         now uses GNAT.UTF_32).
27861
27862         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27863         capabilities for categorizing characters using Unicode categories
27864
27865 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27866
27867         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27868         instantiation that has been rewritten as a package body, retrieve spec
27869         to generate proper name for implicit_with_clause.
27870         (Install_Parents): Recognize a parent that is an instantiation but has
27871         been rewritten as a package declaration during analysis.
27872
27873 2005-03-15  Javier Miranda  <miranda@adacore.com>
27874             Ed Schonberg  <schonberg@adacore.com>
27875
27876         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27877         parameter reported some error we immediately return. This improves the
27878         behaviour of the frontend in case of errors.
27879         (Install_Parent, Remove_Parent): Introduce new flag
27880         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27881         ancestor of a generic child unit, when the child is being instantiated.
27882         (Inline_Instance_Body): If we are compiling the private
27883         part or the body of a child unit, restore the proper visibility of the
27884         parents after compiling the instance body.
27885
27886 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27887             Javier Miranda  <miranda@adacore.com>
27888
27889         PR ada/15608
27890         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27891         of a private type, in which case it is underlying_type that denotes
27892         the proper task. Also modified to use the new entity attribute
27893         that is directly available in the task type and task subtype entities
27894         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27895         arrays when other dimensions than the first are constrained by
27896         discriminants of an enclosing record.
27897         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27898         a combination of indexed and selected components, find ultimate entity
27899         and generate the appropriate reference for it, to suppress spurious
27900         warnings.
27901         (Note_Possible_Modification): If an entity name has no entity, return.
27902         (Is_Variable): A function call never denotes a variable.
27903         (Requires_Transient_Scope): For record types, recurse only on
27904         components, not on internal subtypes that may have been generated for
27905         constrained components.
27906
27907 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27908
27909         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27910         Eliminated as candidates for resolution. Both efficient, and avoids
27911         anomalies with operators declared in deleted code.
27912         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27913         expansion is disabled (as when compiling a generic) to prevent spurious
27914         warnings on prefixes of selected components.
27915
27916 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27917
27918         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27919         attached to a list before checking whether it appears in the private
27920         declarations of the current package.
27921         (Make_Inequality_Operator): Insert declaration in proper declarative
27922         list rather than just setting the Parent field, so that
27923         Is_Private_Declaration can handle it properly.
27924
27925 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27926
27927         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27928         a renaming a body, check that the renamed subprogram in not intrinsic.
27929         (Find_Direct_Name): If several use_visible entities hide
27930         each other, and the context is a predefined file compiled through
27931         rtsfind, keep only the entity that comes from a predefined file.
27932
27933 2005-03-15  Geert Bosch  <bosch@adacore.com>
27934
27935         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27936         long float padding to also cover AMD64 and IA64.
27937
27938 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27939
27940         * s-imgwch.adb: Add with and use of Interfaces.
27941         (Img_Wide_Character): Change type of Val to Unsigned_16.
27942         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27943
27944 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27945
27946         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27947
27948 2005-03-15  Robert Dewar  <dewar@adacore.com>
27949
27950         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27951
27952         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27953
27954         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27955
27956 2005-03-15  Robert Dewar  <dewar@adacore.com>
27957
27958         * s-bitops.adb, s-bitops.ads,
27959         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27960         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27961         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27962         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27963         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27964         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27965         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27966         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27967         reformatting.
27968
27969 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27970
27971         * utils2.c (build_binary_op): Fix typo.
27972
27973 2005-03-15  Doug Rupp  <rupp@adacore.com>
27974
27975         * s-crtl.ads (popen,pclose): New imports.
27976
27977 2005-03-15  Cyrille Comar  <comar@adacore.com>
27978
27979         * comperr.adb (Compiler_Abort): remove references to obsolete
27980         procedures in the bug boxes for various GNAT builds.
27981
27982 2005-03-15  Vincent Celier  <celier@adacore.com>
27983
27984         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27985
27986 2005-03-15  Geert Bosch  <bosch@adacore.com>
27987             Arnaud Charlet  <charlet@adacore.com>
27988             Robert Dewar  <dewar@adacore.com>
27989             Cyrille Comar  <comar@adacore.com>
27990             Sergey Rybin  <rybin@adacore.com>
27991
27992         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27993         too specific and long-winded to be appropriate for the GNAT User's
27994         Guide.
27995         Warn about use of GCC switches not documented in the GNAT User's Guide,
27996         as these may cause generated code to not conform to Ada semantics.
27997         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27998         Add documentation for -gnat95 and -gnat05 switches
27999         Remove paragraph documenting obsolete way to refer to third party
28000         libraries.
28001         Add a few references to Ada_05 that were missing.
28002         Update documentation on -gnatZ/-gnatL.
28003         Document limitation when using -m64 under Solaris.
28004         Change the "Name Casing" subsection of the pretty-printer section
28005         according to the changes in the dictionary processing.
28006
28007         * gnat_rm.texi: Document the Ada_05 pragma.
28008         Section on record representation clauses describes the new more
28009         relaxed rules about placement of large packed bit array components.
28010         Add documentation of GNAT.UTF_32
28011
28012 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
28013
28014         * misc.c (gnat_post_options): Turn off structural
28015         aliasing for now.
28016
28017 2005-03-08  Laurent Guerby  <laurent@guerby.net>
28018
28019         * system-linux-sparc.ads: Fix typo in previous commit.
28020
28021 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
28022             Laurent Guerby  <laurent@guerby.net>
28023
28024         PR ada/20035
28025         * system-linux-sparc.ads: New.
28026         * Makefile.in: Add sparc linux entry.
28027
28028 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
28029
28030         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
28031         parameters as unused.
28032
28033 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
28034         Partial merge from libada-gnattools-branch:
28035
28036         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
28037         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28038         into code in gnattools/Makefile.in.  Remove direct dependencies on
28039         stamp-tools by tools clauses.
28040         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
28041         * config-lang.in: Add gnattools to $lang_dirs.
28042
28043 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
28044
28045         PR ada/19942
28046         * utils.c (gnat_type_for_mode): Return null instead of ICE because
28047         we asked for an unknown mode.
28048
28049 2005-02-12  Richard Henderson  <rth@redhat.com>
28050
28051         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28052         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28053
28054 2005-02-10  Andreas Jaeger  <aj@suse.de>
28055
28056         * init.c (__gnat_initialize): Mark parameter as unused.
28057
28058 2005-02-09  Doug Rupp  <rupp@adacore.com>
28059
28060         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28061         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28062
28063 2005-02-09  Doug Rupp  <rupp@adacore.com>
28064
28065         * gnatchop.adb (dup, dup2),
28066         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28067
28068         * gnatlbr.adb (mkdir),
28069         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
28070
28071         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28072
28073 2005-02-09  Doug Rupp  <rupp@adacore.com>
28074
28075         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28076
28077 2005-02-09  Robert Dewar  <dewar@adacore.com>
28078             Thomas Quinot  <quinot@adacore.com>
28079             Javier Miranda  <miranda@adacore.com>
28080             Pascal Obry  <obry@adacore.com>
28081             Ed Schonberg  <schonberg@adacore.com>
28082             Doug Rupp  <rupp@adacore.com>
28083             Gary Dismukes  <dismukes@adacore.com>
28084             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28085
28086         * g-zstspl.ads: New file.
28087
28088         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28089
28090         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28091         Ada 95 mode
28092         Add definition of Wide_Wide_Space for AI-285
28093
28094         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28095         interface (to support Ada 95 and Ada 2005 units).
28096         Add Unbounded_IO files
28097         Add entries for Wide_Wide packages for AI-285
28098         Add list of containers packages to Ada 2005 unit list
28099
28100         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28101         support new Unbounded_IO package cleanly.
28102
28103         * g-utf_32.ads, g-utf_32.adb: New files.
28104
28105         * Makefile.rtl: Add entry for g-utf_32
28106         Add new files for Unbounded_IO
28107         Adjust make file for new AI-285 wide wide packages
28108         Add AI-302 containers to the run time.
28109
28110         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28111         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28112         subprograms for AI-301.
28113
28114         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28115
28116         * a-stunau.ads: Minor comment correction
28117
28118         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28119         etc.
28120         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28121         (Check_RPC): Update to match changes in expanded code.
28122         Clean up unused entity.
28123
28124         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28125         was not taken into account.
28126         This includes proper initialization with Normalize_Scalars.
28127         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28128         normalize scalars cases (particularly the latter) to do a better job
28129         of finding invalid representations.
28130
28131         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28132
28133         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28134         used
28135
28136         * exp_dist.adb: Add support for wide wide character type
28137         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28138         private part, generate stub bodies at the end of the private part,
28139         not the visible part.
28140         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28141         PolyORB support.
28142         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28143         generic wrapper to execute final processing after completing the
28144         expansion of the RPC receiver for an RACW.
28145
28146         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28147         packages and attributes.
28148         (Preset_Names): Addition of the new reserved words of Ada 2005,
28149         that is interface, overriding and synchronized.
28150         (Get_Pragma_Id): Give support to the use of the new reserved word
28151         "interface" as a pragma name.
28152         (Is_Pragma_Name): Give support to the use of the new reserved word
28153         "interface" as a pragma name.
28154         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28155         attribute implementation.
28156
28157         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28158         checks to entities that are output parameters of Asm operations.
28159         Handle the Stream_Size attribute.
28160         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28161
28162         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28163
28164         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28165         for second parameter being 0.0.
28166         Add support for wide wide character type.
28167         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28168
28169         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28170         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28171         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28172         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28173         for wide wide character cases.
28174
28175         * cstand.adb: Create entities for Wide_Wide_Character and
28176         Wide_Wide_String.
28177
28178         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28179         accordance with AI-258.
28180         Add new declarations for 16/32 bit C character types (Part of AI285)
28181
28182         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28183         (Obsolescent_Warning): New field
28184         (Rep_Clause): New local subprogram used to share code. Returns the rep
28185         clause for which the name is given in parameter.
28186         (Has_Stream_Size_Clause): New routine.
28187         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28188         (Address_Clause): Implementation is now using Rep_Clause.
28189         (Alignment_Clause): Idem.
28190         (Size_Clause): Idem.
28191
28192         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28193         entity in non-Ada 2005 mode and generate warning.
28194
28195         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28196         (Prag): Code cleanup. Remove old gnat pragma "overriding"
28197
28198         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28199         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28200         on the named unit if the pragma is not in the current compilation unit,
28201         so that elaboration calls in the current unit can set up an elaboration
28202         dependency on the named unit, as needed.
28203         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28204         subprogram as well as for subprograms declared within a package.
28205         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28206         pragma overriding.
28207
28208         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28209         to z) to avoid some instances of duplication for Wide_Wide packages.
28210
28211         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28212         characters.
28213
28214         * scn.adb: Char_Literal_Value field is now a Uint
28215
28216         * scng.adb: Significant rewrite to handle new Ada 2005 features
28217         allowing wide and wide wide characters in program text, e.g. for
28218         identifiers, as described in AI-285.
28219         (Set_Reserved): New procedure, makes setting up keywords cleaner.
28220         (Initialize_Scanner): Register the new reserved words of Ada 2005.
28221         (Scan): Give support to the new reserved words.
28222
28223         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28224         warning notifying that interface, overriding, and synchronized are
28225         new reserved words.
28226         (P_Pragma): Allow the use of the new reserved word "interface" as
28227         a pragma name.
28228
28229         * gnatls.adb, gnatbind.adb,
28230         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28231         identifiers named "interface" to "SAL_Interface".
28232
28233         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28234         (Structured Exception handling).
28235         (Gen_Main_C): Idem.
28236
28237         * bindgen.adb:
28238         (Gen_Main_Ada): Set the default exit code if specified.
28239         (Gen_Main_C): Likewise.
28240         Part of *DC20-006.
28241         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28242         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28243
28244         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28245         new -Xnnn switch.
28246
28247         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28248         has a collision with the new Ada 2005 "interface" reserved word.
28249
28250         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28251         generate a warning notifying that interface, overriding, and
28252         synchronized are new reserved words.
28253
28254         * scans.ads (Token_Type): Addition of the tokens corresponding to the
28255         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28256         and Tok_Synchronized.
28257
28258         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28259         "dispatching" rather than "primitive" operations, since dispatching
28260         calls are now allowed to abstract formal subprograms (which are not
28261         primitive).
28262         Char_Literal_Value field is now a Uint
28263         (Resolve_Slice): If the prefix is an access to an unconstrained array,
28264         compute the actual subtype of the designated object to impose the proper
28265         index constraints.
28266         (Resolve_Selected_Component): Do not insert an access check if the
28267         prefix is an access type: such a node is expanded into an explicit
28268         dereference, on which the access check is performed anyway. Removes
28269         expensive duplicate checks.
28270         (Resolve_Call): Use new flag Is_Obsolescent and field
28271         Obsolescent_Warning so that pragma Obsolescent works on library
28272         subprograms.
28273         Add support for wide wide character type
28274         (Resolve_Allocator): Replace the error message on wrong null-exclusion
28275         value by a warning message.
28276         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28277         as fixed-point, and one of the operands is non-static and universal, it
28278         can only be an illegal exponentiation operation, in which case there is
28279         no real value to retrieve.
28280
28281         * exp_strm.adb: Add support for wide wide character type
28282         (Build_Elementary_Input_Call): Compute the size of the stream element by
28283         querying the rep chain to find the Stream_Attribute attribute value.
28284         (Build_Elementary_Write_Call): Ditto.
28285
28286         * sem_aggr.adb: Char_Literal_Value field is now a Uint
28287         Add support for wide wide character type
28288         Replace the error messages on wrong null-exclusion value by warnings
28289         as described in Ada 2005.
28290         (Resolve_Extension_Aggregate): Document the fact that the error
28291         message on class-wide expressions in extensions aggregates.
28292
28293         * sem_case.adb: Add support for wide wide character type
28294
28295         * sem_ch13.adb: Add support for wide wide character type
28296         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28297
28298         * sem_ch3.adb: Add support for wide wide character type
28299         (Process_Subtype): If constraint is illegal for the type, set Ekind of
28300         now-useless Itype, to prevent cascaded errors on a compiler built
28301         without -gnatp.
28302
28303         * sem_ch8.adb: Add with and use of Sem_Disp.
28304         (Analyze_Subprogram_Renaming): Replace unclean uses of
28305         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28306         of Corresponding_Spec to Empty).
28307         (Attribute_Renaming): Replace use of Corresponding_Spec with
28308         Corresponding_ Formal_Spec and simplify condition.
28309         (Use_One_Package): Check that scope of homonym of identifier is defined,
28310         before checking whether it is a wrapper package.
28311         Add support for wide wide character type
28312
28313         * sem_eval.adb: Add support for wide wide character type.
28314         (Eval_Arithmetic_Op): Check for compile time known signed integer
28315         overflow in the non-static case.
28316         (Subtypes_Statically_Match): A formal scalar type and its base type do
28317         not statically match.
28318
28319         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28320         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28321         subtype).
28322         (Unit_Declaration_Node): Ditto.
28323         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
28324         has a packed array type, the prefix has been rewritten into a type
28325         conversion. Determine variable-ness from the converted expression.
28326         Handle wide wide character cases.
28327
28328         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28329
28330         * stringt.ads, stringt.adb: Handle full UTF-32 range.
28331         Remove ["0A"] from comment, since it can look like a line terminator.
28332         Currently we don't permit this, but this is under discussion by the
28333         ARG, and it is easy enough to use a different example.
28334
28335         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28336         handling UTF-32 encoding for wide wide character.
28337         Implement new brackets coding ["hhhhhhhh"]
28338         Add UTF-8 encodings for full UTF-32 range
28339
28340         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28341
28342         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28343         bit range Add full UTF-32 support.
28344         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28345         notify that constraint error will be raised at run-time
28346         because a null value is assigned to a null-excluding object.
28347         Remove some obsolete declarations and make Char_Code
28348         unsigned.
28349
28350         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28351         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28352         Rcheck subprograms.
28353
28354         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28355         wrong null-exclusion value by a warning message.
28356         (Enable_Range_Check): Do range check if the prefix is an
28357         explicit dereference whose designated object is an unconstrained array.
28358         Current algorithm for removing duplicate checks is over-eager in this
28359         case.
28360
28361         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28362         null-exclusion value by a warning message
28363
28364         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28365         completely. Add support for Uint2 field
28366
28367         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28368         exp_prag.adb: Char_Literal_Value field is now a Uint.
28369
28370         * exp_util.adb (Insert_Actions): Replace
28371         N_Formal_Subprogram_Declaration by
28372         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28373         Char_Literal_Value field is now a Uint.
28374
28375         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28376         defined for subprogram renaming declarations. When set, the field
28377         indicates the defining entity of a corresponding formal subprogram
28378         when the renaming corresponds to a formal subprogram association in an
28379         instantiation.
28380         (Set_Corresponding_Formal_Spec): New procedure to return
28381         Corresponding_Formal_Spec field.
28382         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28383         (which is now a subtype).
28384         Char_Literal_Value field is now a Uint
28385
28386         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28387         pointer to the base of the dispatch table.
28388         Minor changes to comments.
28389         (Controlling_Type): New function for determining the tagged type
28390         associated with a tagged primitive subprogram.
28391         (Expand_Dispatching_Call): Add support for a controlling actual that is
28392         directly a value of type Ada.Tag rather than a tagged object.
28393
28394         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28395         describing the new layout.
28396         (Dispatch_Table): The expander computes the actual array size, allocates
28397         the Dispatch_Table record accordingly, and generates code that displaces
28398         the base of the record after the Typeinfo_Ptr component. The access to
28399         these components is done by means of local functions.
28400         (Offset_To_Top): New function.
28401         (Typeinfo_Ptr): New function.
28402         (Get_TSD): Modified to access the new position of the TSD.
28403         (Set_TSD): Modified to save the TSD in its new position.
28404
28405         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28406         case of formal abstract subprograms. Add check and message for -gnat05.
28407         Update comments.
28408
28409         * sem_ch12.adb: Add with and use for Sem_Disp.
28410         (Analyze_Associations): Minor change from "=" to "in" for use of
28411         N_Formal_Subtype_Declaration (which is now a subtype).
28412         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28413         N_Formal_Subtype_Declaration (which is now a subtype).
28414         (Analyze_Formal_Subprogram): Add handling for
28415         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28416         dispatching, setting the controlling status of the formal parameters
28417         and result, and issuing an error if there is no controlling type for
28418         the formal subprogram.
28419         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28420         which is an unclean use of that field, we set the new field
28421         Corresponding_Formal_Spec to make the formal subprogram available to
28422         processing in Analyze_Subprogram_Declaration.
28423         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28424         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28425         Constrained, so that it is is does not statically match its anonymous
28426         base type.
28427
28428         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28429         abstract formal subprograms in error check for functions returning
28430         abstract types. Set scope of new designator for
28431         a parameterless subprogram, so that it is available when checking the
28432         body for nested subprograms, before full analysis of said body.
28433         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28434         subprogram only if inner one comes from source.
28435         (Analyze_Function_Call): If the call is given in object notation, the
28436         analysis of the name rewrites the node and analyzes it with the proper
28437         argument list. After analyzing the name, if the call has been rewritten
28438         and the result type is set, no further analysis is needed.
28439         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28440         mark in function specification, in a context where the formals are
28441         visible and hide outer homographs.
28442
28443         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28444         as the tagged type for the cases of abstract formal subprograms and
28445         renamings of those.  Clean up spec comments.
28446         (Check_Dispatching_Context): Add error message to indicate "abstract
28447         procedure", covering the case of a call to a formal abstract procedure
28448         that has statically tagged operands.
28449         (Check_Dispatching_Call): Check for the case of an actual given by
28450         a tag-indeterminate function call whose type is an ancestor of the
28451         containing call's associated tagged type. This situation can occur
28452         for inherited primitives with function defaults. In this case we
28453         use the tagged type's tag directly as the controlling argument for
28454         the calls.
28455         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28456
28457         * sprint.adb (Sprint_Node_Actual): Split
28458         N_Formal_Subprogram_Declaration into two alternatives for the new
28459         cases N_Formal_Abstract_Subprogram_Declaration and
28460         N_Formal_Concrete_Subprogram_Declaration.
28461         Char_Literal_Value field is now a Uint.
28462
28463         * trans.c: Get rid of junk Uint2 reference.
28464         Char_Literal_Value field is now a Uint.
28465         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28466         (gigi): Correct third arg to gimplify_body.
28467
28468         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28469         (TYPE_LANG_FLAG_0): Check for record or union.
28470
28471         * treepr.adb: Char_Literal_Value field is now a Uint
28472
28473         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28474         UI_From_CC.
28475
28476         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28477         Add full UTF-32 support
28478         Char_Code is now 32 bits
28479
28480         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28481         wide character UTF_32 line terminators.
28482         Initialize Main_Source_File to avoid error when no main
28483         source is loaded.
28484
28485         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28486         (Main_Source_File) when no main source has been loaded, to avoid
28487         potential crash.
28488
28489 2005-02-09  Robert Dewar  <dewar@adacore.com>
28490
28491         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28492         Fix name of Set routine
28493
28494         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28495         fixed packages.
28496
28497         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28498         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28499         fixed packages
28500
28501         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28502         forms of Get_Line subprograms for AI-301.
28503
28504         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28505         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28506         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28507         a-stwima.ads: Minor reformatting.
28508
28509 2005-02-09  Doug Rupp  <rupp@adacore.com>
28510             Thomas Quinot  <quinot@adacore.com>
28511
28512         * adaint.c, adaint.h
28513         [VMS] (to_ptr32): New function.
28514         (MAYBE_TO_PTR32): New macro.
28515         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28516         for pointer size.
28517         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28518         [VMS] (#define fork()): Remove since unneccessary.
28519         (__gnat_set_close_on_exec): New routine to support
28520         GNAT.OS_Lib.Set_Close_On_Exec.
28521
28522         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28523         the parent side as close-on-exec so that they are not inherited by the
28524         child.
28525
28526         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28527         set or clear the FD_CLOEXEC flag on a file descriptor.
28528
28529 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28530             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28531
28532         PR ada/19386
28533         * decl.c:
28534         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28535         on the field if Pragma Component_Alignment (Storage_Unit).
28536         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28537         side-effects as if it were a constant; also make SAVE_EXPR to protect
28538         side-effects.
28539         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28540         UNION_TYPE.
28541         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28542         (components_to_record): Test it.
28543         Fix improper usage of REFERENCE_CLASS_P.
28544
28545         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28546         RECORD_TYPE.
28547
28548         * utils2.c: Minor reformatting.
28549
28550         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28551         handle other cases like RECORD_TYPE.
28552
28553         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28554
28555 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28556
28557         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28558         component of an array of arrays in an assignment context, and the
28559         aggregate has component associations that require sliding on
28560         assignment, force reanalysis of the aggregate to generate a temporary
28561         before the assignment.
28562         (Must_Slide): Make global to the package, for use in Gen_Assign.
28563
28564 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28565
28566         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28567         unchecked union with no inferable discriminants, return a
28568         Raise_Program_Error node, rather than inserting it at the point the
28569         type is frozen.
28570         (Expand_Record_Equality, Component_Equality): Handle properly the case
28571         where some subcomponent is an unchecked union whose generated equality
28572         code raises program error.
28573
28574 2005-02-09  Doug Rupp  <rupp@adacore.com>
28575
28576         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28577         [VMS] (#define exit hack): Remove.
28578
28579 2005-02-09  Pascal Obry  <obry@adacore.com>
28580             Arnaud Charlet  <charlet@adacore.com>
28581
28582         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28583         address of the exception registration. The Win32 version of this
28584         routine calls __gnat_install_SEH_handler() to initialize the SEH
28585         (Structured Exception Handling) handler.
28586         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28587         SEH (Structured Exception Handling) now.
28588         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28589         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28590         preprocessor condition protecting the call to the extra eh setup
28591         subprogram, which is only available for the ppc target.
28592         (__gnat_clear_exception_count): replaced reference to
28593         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28594
28595         * seh_init.c: New file.
28596
28597         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28598         (GNATBIND_OBJS): Idem.
28599
28600         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28601         routine takes a new parameter (a pointer to the exception registration
28602         for the SEH (Structured Exception Handling) support.
28603
28604         * raise.h: (__gnat_install_SEH_handler): New prototype.
28605         Update copyright notice.
28606
28607         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28608         record and initialize it by calling __gnat_install_SEH_handler.
28609
28610 2005-02-09  Vincent Celier  <celier@adacore.com>
28611
28612         * make.adb (Gnatmake): Do not fail when the main project has no object
28613         directory.
28614
28615 2005-02-09  Doug Rupp  <rupp@adacore.com>
28616
28617         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28618         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28619         [VMS]: Add translations for g-enblsp.adb.
28620
28621         * s-asthan-vms.adb: Removed.
28622         * s-asthan-vms-alpha.adb: Added.
28623
28624 2005-02-09  Pascal Obry  <obry@adacore.com>
28625
28626         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28627         (LIBGNAT_OBJS): Add seh_init.o.
28628
28629 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28630
28631         PR ada/16592
28632         * Makefile.in: Link all gnat tools with -static-libgcc, since
28633         -shared-libgcc is now used by default on some systems (e.g. linux with
28634         recent binutils).
28635         Remove references to Makefile.prolog/generic, no longer used.
28636
28637 2005-02-09  Vincent Celier  <celier@adacore.com>
28638
28639         * prj-makr.adb (Process_Directory): Put file name in canonical case
28640         before matching against the patterns.
28641         If gnatname has been invoked as <prefix>-gnatname
28642         then invoke the compiler as <prefix>-gcc, not just "gcc".
28643
28644 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28645
28646         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28647         with expansion disabled. The actual subtype is needed among other
28648         places when the selected component appears in the context of a loop
28649         bound, and denotes a packed array.
28650         (Operator_Check): Always use the first subtype in the
28651         error message, to avoid the appearance of internal base types.
28652         (Transform_Object_Operation): Copy each actual in full
28653         to the parameter associations of the constructed call, rather than
28654         using the shallow copy mechanism of New_Copy_List. This ensures that
28655         the chaining of named associations is done properly.
28656         (Complete_Object_Operation): Rewrite node, rather than
28657         replacing it, so that we can trace back to the original selected
28658         component.
28659
28660         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28661         and calls that use object notation, if the called function is not
28662         declared  in a withed unit, place the elaboration constraint on the
28663         unit in the context that makes the function accessible.
28664         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28665         imposes an elaboration constraint between two packages.
28666
28667 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28668
28669         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28670         views of a private type after handling its private dependents, to
28671         maintain proper stack discipline between entry and exit from the
28672         package.
28673
28674 2005-02-09  Cyrille Comar  <comar@adacore.com>
28675
28676         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28677         Minor reformatting.
28678
28679 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28680
28681         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28682         fields for foreign threads.
28683
28684 2005-02-09  Doug Rupp  <rupp@adacore.com>
28685
28686         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28687         recursion warnings when compiled with -gnatdm.
28688
28689 2005-02-09  Robert Dewar  <dewar@adacore.com>
28690
28691         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28692         Slight fix to documentation of -gnaty with no parameters
28693
28694         * xr_tabls.ads: Add ??? comment for missing overall comment
28695
28696         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28697         we now use by default.
28698
28699         * xsnames.adb: Adjust end of file test to look for five space followed
28700         by '#' instead of six spaces. The format of xsnames.adb was modified
28701         in the last update.
28702
28703         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28704         identifier.
28705
28706         * clean.adb: Minor reformatting.
28707
28708         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28709         gnatname.adb: Minor reformatting
28710         Add 2005 to copyright output when utility is run
28711
28712         * csets.adb: Eliminate obsolete comment
28713
28714         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28715         Update comments.
28716
28717         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28718
28719 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28720
28721         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28722         the difference between compact and incompact layout and add the record
28723         representation clause to the example illustrating different layouts.
28724         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28725         component clauses").
28726
28727 2005-02-09  Florian Villoing  <villoing@adacore.com>
28728
28729         * gnat_ugn.texi: Fix typos.
28730         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28731         @file.
28732         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28733         in the generated documentation.
28734
28735 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28736
28737         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28738         longer supported.
28739         Update linker wrapper when linking with non GNU C++.
28740
28741 2005-02-09  Pascal Obry  <obry@adacore.com>
28742
28743         * gnat_ugn.texi:
28744         Document the procedure to debug the DllMain routine on Windows.
28745         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28746         ZCX mode.
28747         Document new BIND qualifer /RETURN_CODES=VMS.
28748
28749 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28750
28751         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28752         Edited gnatmetric chapter
28753
28754 2005-02-09  Robert Dewar  <dewar@adacore.com>
28755
28756         * gnat_rm.texi:
28757         Changes to document new wide wide character support
28758         For AI-285
28759         Update documentation on Normalize_Scalars and Initialize_Scalars
28760
28761 2005-02-09  Pascal Obry  <obry@adacore.com>
28762
28763         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28764
28765 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28766
28767         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28768         from the VxWorks kernel) that is needed for getting the active
28769         priority of the different tasks.
28770
28771         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28772         Use a pragma Elaborate_Body in the spec file instead.
28773         Noticed by code reading.
28774
28775 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28776
28777         * exp_util.ads: Minor correction in comment.
28778
28779 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28780
28781         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28782         since this procedure is now too complex to be worth inlining.
28783
28784 2005-02-09  Richard Henderson  <rth@redhat.com>
28785
28786         * utils.c (gnat_define_builtin): Remove.
28787         (gnat_install_builtins): Use build_common_builtin_nodes.
28788
28789 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28790
28791         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28792         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28793         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28794         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28795         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28796         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28797         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28798         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28799         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28800         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28801         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28802         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28803         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28804         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28805         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28806         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28807         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28808         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28809         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28810         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28811         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28812         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28813         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28814         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28815         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28816         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28817         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28818         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28819         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28820         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28821         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28822         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28823         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28824         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28825         library.
28826
28827 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28828
28829         * Makefile.in: Fix a-intnam.ads from previous commit,
28830         add 2005 to copyright.
28831         * a-intman-rtems.ads: Renamed to...
28832         * a-intnam-rtems.ads:
28833
28834 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28835
28836         * Makefile.in: Rename GNAT RTEMS specific files.
28837         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28838         5rosinte.ads, 5rparame.adb: Replaced by files below.
28839         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28840         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28841
28842 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28843             Laurent Guerby  <laurent@guerby.net>
28844
28845         PR ada/19488
28846         * 5rosinte.ads: Add No_Key constant.
28847         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28848         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28849
28850 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28851
28852         PR ada/19414
28853         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28854
28855 2005-01-20  Richard Henderson  <rth@redhat.com>
28856
28857         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28858         a-intnam-linux.ads and system-linux-alpha.ads.
28859         * a-intnam-linux-alpha.ads: Remove file.
28860         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28861         * system-linux-alpha.ads: New file.
28862
28863 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28864
28865         PR ada/13470
28866         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28867         set to the new string.
28868
28869 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28870
28871         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28872         to True.
28873
28874 2005-01-18  Richard Henderson  <rth@redhat.com>
28875
28876         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28877         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28878         for alpha-linux.
28879         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28880
28881 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28882
28883         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28884         (GCC_ZCX_Support): Likewise.
28885
28886 2005-01-11  Bastian Blank  <waldi@debian.org>
28887
28888         * system-linux-s390.ads: Define Preallocated_Stacks.
28889         * system-linux-s390x.ads: Likewise.
28890
28891 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28892
28893         * gnat_ugn.texi: Fix texi errors with null variables.
28894
28895 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28896
28897         * gen-soccon.c: New utility program to generate g-soccon.ads
28898         automatically.
28899
28900         * socket.c, gsocket.h: Split inclusion of system header files into a
28901         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28902
28903         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28904         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28905         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28906         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28907         should not be edited by hand anymore, but should be regenerated using
28908         gen-soccon.
28909
28910 2005-01-03  Robert Dewar  <dewar@adacore.com>
28911             Ed Schonberg  <schonberg@adacore.com>
28912             Vincent Celier  <celier@adacore.com>
28913
28914         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28915         on/off, since this is an obsolescent feature, for which we now generate
28916         a warning.
28917
28918         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28919         warning mode is set and obsolescent usage of this attribute occurs.
28920         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28921         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28922         predates, and partly motivates, the adoption of the AI.
28923         Implement new Ada 2005 attribute Mod
28924
28925         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28926         attribute Mod.
28927
28928         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28929
28930         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28931         pragma restrictions.
28932         New entry for Ada 2005 attribute Mod.
28933
28934         * par-prag.adb:
28935         Add recognition of new pragma Restrictions No_Dependence
28936         Recognize restriction No_Obsolescent_Features at parse time
28937
28938         * bcheck.adb: Add circuitry for checking for consistency of
28939         No_Dependence restrictions.
28940
28941         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28942         restrictions.
28943
28944         * restrict.ads, restrict.adb: Add subprograms to deal with
28945         No_Dependence restrictions.
28946
28947         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28948         restrictions.
28949
28950         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28951         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28952
28953         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28954         dummy parameter to scng instantiation.
28955         Needed for new restriction No_Obsolescent_Features
28956
28957         * scn.adb: (Obsolescent_Check): New procedure
28958         Needed for new restriction No_Obsolescent_Features
28959
28960         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28961         specified by AI-285, needed for implementation of AI-388 (adding greek
28962         pi to Ada.Numerics).
28963         Add new generic formal to scng, needed for new restriction
28964         No_Obsolescent_Features.
28965
28966         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28967
28968         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28969         restrictions lines.
28970         (Scan_ALI): When finding an unexpected character on an R line, raise
28971         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28972         Ignore_Errors is True, default restrictions are set and scanning of the
28973         ALI file continues with the next line. Also, when Bad_R_Line is raised
28974         and Ignore_Errors is True, skip to the end of le line.
28975
28976         * sem_ch10.adb: Check that explicit with's do not violate
28977         No_Dependence restrictions.
28978         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28979         illegal context clauses containing child units of instance.
28980
28981         * sem_prag.adb: Processing and checking for new No_Dependence
28982         restrictions.
28983         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28984         analyze and check the External argument.
28985
28986         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28987
28988 2005-01-03  Robert Dewar  <dewar@adacore.com>
28989
28990         * atree.adb: Add a fifth component to entities
28991         This allows us to add 32 flags and four new fields
28992
28993         * atree.ads: Add a fifth component to entities
28994         This allows us to add 32 flags and four new fields
28995
28996         * einfo.ads, einfo.adb: Document new fields and new flags now available
28997         Add routines for printing new fields
28998
28999         * treepr.adb: Call routines to print out additional fields if present
29000
29001 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29002
29003         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29004         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29005
29006         * Makefile.in: Add support to build shared Ada libraries on solaris x86
29007         Remove gpr2make, replaced by gprmake.
29008         Remove references to gnatmem and libaddr2line.
29009         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29010         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29011         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29012         a-numaux-darwin.ads and a-numaux-darwin.adb
29013         Enable mlib-tgt-lynxos.adb on lynxos.
29014
29015         * Make-lang.in: Remove rules for gpr2make.
29016         When generating sdefault.adb, do not call Relocate_Path
29017         on S3 for function Target_Name, as it is not a path.
29018         Remove references to gnatmem and libaddr2line.
29019
29020         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29021         files.
29022
29023 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
29024
29025         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29026         address is incompatible with its base type alignment constraints when
29027         this can be decided statically.
29028
29029 2005-01-03  Olivier Hainque  <hainque@adacore.com>
29030
29031         * decl.c (compatible_signatures_p): New function. The intended purpose
29032         is to check if two function signatures for a call-site and a callee are
29033         compatible enough for the call to be valid. The underlying purpose is
29034         to check if a call to a mapped builtin is using the right interface.
29035         The current code actually does not check antyhing - this a placeholder
29036         for future refinements.
29037         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29038         builtin calls for convention Intrinsic.
29039
29040         * gigi.h (builtin_decl_for): Declare (new function).
29041
29042         * utils.c (gnat_install_builtins): Install the target specific builtins.
29043         (builtin_decl_for): New function, provide a dummy body for now.
29044
29045 2005-01-03  Geert Bosch  <bosch@adacore.com>
29046
29047         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29048         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29049         (Pred): Implement in terms of Succ.
29050
29051         * trans.c (convert_with_check): Reimplement conversion of float to
29052         integer.
29053
29054 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29055             Vincent Celier  <celier@adacore.com>
29056
29057         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29058         bounds can be negative, and must be declared Int, not Nat.
29059
29060         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29061         array is checked after using the index in the array.
29062
29063         * makegpr.adb (Add_Switches): Check if there is a package for the
29064         processor. If there is no package, do not look for switches.
29065
29066 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29067
29068         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29069         generation of predefined stream operations (specs and bodies) should
29070         proceed. Under various restrictions these subprograms must not be
29071         generated.
29072
29073 2005-01-03  Thomas Quinot  <quinot@adacore.com>
29074
29075         * exp_dist.adb:
29076         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29077         amount of PCS-specific code in RACW stubs generation.
29078         (Copy_Specification): Set Etype on copied formal parameter entities, as
29079         this information is needed for PolyORB stubs generation.
29080         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29081         variable Dynamic_Async.
29082         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29083         (Build_RPC_Receiver_Specification): Make generic again, as recent
29084         changes have allowed RPC receivers to have the same profile for both
29085         variants of the PCS.
29086         Reorganise RPC receiver generation to reduce differences between the
29087         structure of GARLIC and PolyORB RPC receivers.
29088         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29089         PCS-specific.
29090         Simplify elaboration code for RCI packages.
29091
29092         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29093         generation to reduce differences between the structure of GARLIC and
29094         PolyORB RPC receivers.
29095
29096         * s-stratt.adb: Fix typo in comment.
29097
29098 2005-01-03  Thomas Quinot  <quinot@adacore.com>
29099
29100         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29101         copied from Make_Init_Call).
29102
29103         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29104         reads and assignments on a temporary variable declared with appropriate
29105         discriminants.
29106
29107 2005-01-03  Robert Dewar  <dewar@adacore.com>
29108
29109         * i-c.adb (To_C): Raise CE if string is null and Append_Null
29110
29111 2005-01-03  Robert Dewar  <dewar@adacore.com>
29112
29113         * i-cstrin.adb (Update): Do not append a null in form called with a
29114         String. This avoids unintended behavior.
29115
29116 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29117
29118         PR ada/17527
29119         * init.c: Fix warnings on Free BSD section.
29120
29121 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29122
29123         PR ada/16949
29124         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29125         xsinfo.adb).
29126
29127 2005-01-03  Vincent Celier  <celier@adacore.com>
29128
29129         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29130         libraries when Unique_Compile is True (-u switch).
29131         (Gnatmake): ditto.
29132
29133 2005-01-03  Robert Dewar  <dewar@adacore.com>
29134
29135         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29136         upper case letter or underscore after W, as allowed by spec.
29137
29138 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29139
29140         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29141         darwin port by using proper type definitions from header files.
29142         Use SIGTERM instead of SIGABRT for SIGADAABORT.
29143
29144 2005-01-03  Robert Dewar  <dewar@adacore.com>
29145
29146         * par.adb: Enhance error message handling for configuration file
29147         pragmas.
29148
29149 2005-01-03  Robert Dewar  <dewar@adacore.com>
29150
29151         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29152         removed during the previous update (test properly for case of dividing
29153         largest negative number by -1, which generates overflow).
29154
29155 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29156             Sergey Rybin  <rybin@adacore.com>
29157
29158         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29159         to use as the defining identifier for a formal package.
29160         (Remove_Parent): If the instance takes place within (an instance of)
29161         a sibling, preserve private declarations of common parent.
29162
29163 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29164
29165         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29166         to determine whether one of the operands is a fixed-point type for
29167         which a user-defined multiplication or division operation might be
29168         defined.
29169
29170         * sem_res.adb (Valid_Conversion): The legality rules for conversions
29171         of access types are symmetric in Ada 2005: either designated type can
29172         be unconstrained.
29173
29174 2005-01-03  Vincent Celier  <celier@adacore.com>
29175
29176         * s-fileio.adb (Temp_File_Record): Change length of string component
29177         Name from L_tmpnam + 1 to max_path_len + 1.
29178
29179 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29180
29181         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29182         Self_Id.Deferral_Level = 0.
29183         (Do_Pending_Action): Move this function to the spec.
29184
29185         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29186         Do_Pending_Action explicitely when needed, in case we're using
29187         No_Abort restrictions.
29188
29189         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29190         deferral level since it will not get changed by the generated code.
29191         Keeping a default value of 1 would prevent some operations (e.g.
29192         select or delay) to proceed successfully.
29193
29194 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
29195             Robert Dewar  <dewar@adacore.com>
29196             Cyrille Comar  <comar@adacore.com>
29197
29198         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29199         porting guide chapter (vms version).
29200         Revised doc title (removed "for native platforms") and subtitle.
29201         Add discussion on warning flag for obsolescent features. First we
29202         note that it applies to obsolete GNAT features, which was previously
29203         omitted. Second we contrast the behavior with that of the new
29204         Ada 2005 AI-368 restriction No_Obsolescent_Features.
29205         Preliminary rewriting of GNAT & libraries chapter in order to take
29206         into account default project locations & new project manager
29207         capabilities.
29208
29209 2005-01-03  Robert Dewar  <dewar@adacore.com>
29210
29211         * cstand.adb (Create_Operators): Clean up format and documentation of
29212         unary and binary operator result tables. No change in code, just
29213         reformatting and addition of comments.
29214
29215         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29216         sem_ch2.adb: Minor reformatting
29217
29218         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29219         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29220         comments for Tree_Read and Tree_Write.
29221
29222 2005-01-03  Pascal Obry  <obry@adacore.com>
29223
29224         * exp_attr.ads: Minor reformatting.
29225
29226 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
29227
29228         * comperr.adb (Compiler_Abort): Add specialized message for GAP
29229         versions.
29230
29231 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29232
29233         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29234         whether the ancestor type is private, as may be the case with nested
29235         instantiations.
29236
29237 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
29238
29239         PR ada/19128
29240         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29241
29242 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
29243
29244         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29245         * utils2.c (build_unary_op): Likewise.
29246
29247 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29248
29249         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29250
29251 2004-12-19  Richard Henderson  <rth@redhat.com>
29252
29253         * trans.c (gigi): Update gimplify_body call.
29254
29255 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
29256
29257         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29258
29259 2004-12-07  Ed Falis  <falis@adacore.com>
29260
29261         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29262         current task being suspended.
29263
29264         * init.c (__gnat_clear_exception): added to reset VxWorks exception
29265         count.
29266         (__gnat_map_signal): removed test for current task being suspended.
29267
29268 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29269
29270         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29271         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29272         targets (such as AAMP).
29273
29274 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29275
29276         * atree.adb (Visit_Itype): Create a new name for the generated itype,
29277         because the back-end may otherwise treat it as a redefinition of the
29278         old symbol.
29279
29280 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
29281
29282         * back_end.adb (Scan_Back_End_Switches): Accept --param.
29283
29284         * lang-specs.h: Accept --param.
29285
29286 2004-12-07  Vincent Celier  <celier@adacore.com>
29287
29288         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29289         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29290         Current_Body_Suffix => Ada_Body_Suffix).
29291         Take into account Externally_Built attribute.
29292
29293         * clean.adb (In_Extension_Chain): Always return False when one of the
29294         parameter is No_Project.
29295         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29296         Ada_Language_Index).
29297         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29298         Process_Languages for procedure Parse).
29299
29300         * gnatcmd.adb (Carg_Switches): New table.
29301         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29302         Adapt to name changes in package Prj (Current_Spec_Suffix =>
29303         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29304
29305         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29306         Header_Num and function Hash are now declared in package Prj,
29307         not Prj.Com.
29308
29309         * prj.adb (Suffix_Of): New function.
29310         (Set (Suffix)): New procedure.
29311         (Hash): One function moved from Prj.Com
29312         (Is_Present, Language_Processing_Data_Of): New functions
29313         (Set): Two new procedures
29314         (Add_Language_Name, Display_Language_Name): New procedures
29315
29316         * prj.ads: (Suffix_Of): New function
29317         (Set (Suffix)): New procedure
29318         Add several types and tables for multi-language support.
29319         (Header_Num): Type moved from Prj.Com
29320         (Hash): Two functions moved from Prj.Com
29321         (Is_Present, Language_Processing_Data_Of): New functions
29322         (Set): Two new procedures
29323         (Add_Language_Name, Display_Language_Name): New procedures
29324         (Naming): Component name changes:
29325         Current_Spec_Suffix => Ada_Spec_Suffix,
29326         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29327         Impl_Suffixes, Supp_Suffixes.
29328         (Project_Data): New components: Externally_Built, Supp_Languages,
29329         First_Language_Processing, Supp_Language_Processing, Default_Linker,
29330         Default_Linker_Path.
29331
29332         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29333         new package Language_Processing with its attributes (Compiler_Driver,
29334         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29335         Binder_Driver, Default_Linker).
29336
29337         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29338         (Header_Num): Type moved to package Prj
29339
29340         * prj-env.adb: Adapt to name changes in package Prj
29341         (Current_Spec_Suffix => Ada_Spec_Suffix,
29342         Current_Body_Suffix => Ada_Body_Suffix).
29343
29344         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29345         default to the project path, except the "-" is one of the directories
29346         in env var ADA_PROJECT_PATH.
29347         (Current_Project_Path): Global variable, replacing Project_Path
29348         that was in the body of Prj.Part.
29349         (Project_Path): New function
29350         (Set_Project_Path): New procedure
29351         Initialize Current_Project_Path during elaboration of the package
29352         Remove dependency on Prj.Com, no longer needed
29353
29354         * prj-ext.ads (Project_Path): New function
29355         (Set_Project_Path): New procedure
29356
29357         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29358         suffix is defined for language <lang>.
29359         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29360         accessing directly the components of Naming.
29361         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29362         Reorganise of this package.
29363         Break procedure Check in several procedures.
29364
29365         * prj-nmsc.ads: Replace all procedures (Ada_Check,
29366         Other_Languages_Check and Language_Independent_Check) with a single
29367         procedure Check.
29368
29369         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29370         Process_Languages, no longer needed.
29371
29372         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29373         Current_Project_Path.
29374         Remove elaboration code, moved to the body of Prj.Ext
29375         Use new function Prj.Ext.Project_Path instead of old variable
29376         Project_Path.
29377         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29378         When comparing with project paths on the stack, first put the resolved
29379         path in canonical case.
29380         (Parse_Single_Project): Set the path name of the project file in the
29381         tree to the normalized path.
29382
29383         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29384         parameter Process_Languages, no longer needed.
29385         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29386         Other_Languages_Check.
29387
29388         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29389         to store the resolved canonical path of the project file.
29390         Remove dependency to Prj.Com, no longer needed
29391
29392         * prj-util.adb: Adapt to name changes in package Prj
29393         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29394         Ada_Body_Suffix).
29395
29396         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29397         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29398         Externally_Built, Include_Option, Language_Processing.
29399
29400         * makegpr.adb: Numerous changes due to changes in packages
29401         Prj and Prj.Nmsc.
29402
29403         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29404         default to the project path, except whe "-" is one of the directories
29405         in env var ADA_PROJECT_PATH.
29406         (Gnatls): In verbose mode, add the new section "Project Search Path:"
29407
29408 2004-12-07  Robert Dewar  <dewar@adacore.com>
29409
29410         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29411
29412         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29413         set -gnatR3m mode.
29414
29415         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29416         flag. No longer needed now that we handle this in gnat1drv.adb.
29417
29418         * repinfo.ads: Minor reformatting
29419
29420 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29421             Olivier Hainque  <hainque@adacore.com>
29422             Eric Botcazou  <ebotcazou@adacore.com>
29423
29424         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29425         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29426         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29427         of a bitfield, which we know is useless and causes trouble because of
29428         alignment implications.
29429
29430         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29431         BSS sections.
29432         (process_attributes): Clear DECL_COMMON again when a section attribute
29433         is present.
29434         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29435         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29436         (create_field_decl): Special case ADDRESSABLE negative to mean
29437         "no bitfield creation", to be used by make_aligning_type. Don't
29438         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29439         fields claimed addressable still have to be bitfields. Use
29440         value_factor_p instead of a raw binop construction to check for the
29441         position's alignment.
29442
29443 2004-12-07  Geert Bosch  <bosch@adacore.com>
29444
29445         * eval_fat.adb: Revert previous change.
29446
29447 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29448             Ed Schonberg  <schonberg@adacore.com>
29449
29450         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29451         with an implicit dereference as its prefix, use
29452         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29453         an explicit dereference. This ensures that a reference to the original
29454         prefix is generated, if appropriate.
29455
29456         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29457         dereference is rewritten to an explicit one, generate a reference to
29458         the entity denoted by its prefix using the original prefix node, so
29459         the dereference can be properly recorded as a read of the denoted
29460         access value, if appropriate.
29461
29462         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29463         emitting 'assigned but never read' warning on a variable on the basis
29464         that it has an access type.
29465         (Check_References): Emit unreferenced warning when the scope is a
29466         subprogram body.
29467
29468 2004-12-07  Robert Dewar  <dewar@adacore.com>
29469             Ed Schonberg  <schonberg@adacore.com>
29470
29471         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29472         intrinsic
29473
29474         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29475         leaving call unchanged.
29476         This deals with the case where the pragma Import specified
29477         an external name, to be handled by the back end.
29478
29479         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29480         subprogram which is Imported with convention Intrinsic if an
29481         External_Name argument is specified.
29482         (Process_Import_Or_Interface): Properly diagnose link name argument.
29483         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29484         with Sem_Ch6.Cannot_Inline.
29485         (Process_Inline): Provide separate warning for inapplicable inline
29486         pragma.
29487         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29488         treatment is uniform on different targets.
29489
29490 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29491
29492         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29493         construct is rewritten, preserve end label to permit source navigation.
29494
29495 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29496
29497         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29498         Specific_Build_Stub_Target): New subprograms.
29499         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29500         the PCS implementation used, using the above PCS-customized subprograms.
29501         Minor reformatting.
29502         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29503         for generation of DSA code targeted to the PolyORB PCS.
29504         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29505         implementation of the partition communication subsystem in ancillary
29506         subprograms.
29507         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29508         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29509         PCS-specific part of Add_Stub_Type.
29510         (Insert_Partition_Check): Use runtime library function to perform
29511         E.4(19) check.
29512
29513         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29514         (RE_Same_Partition): New entity, from s-parint.
29515
29516         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29517
29518 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29519
29520         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29521         Output the copyright message on a separate line from the version
29522         message.
29523
29524 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29525
29526         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29527         compile-time warning.
29528
29529 2004-12-07  Robert Dewar  <dewar@adacore.com>
29530
29531         * g-regpat.adb: (Match): Change a misuse of or to or else
29532
29533 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29534
29535         * lib-xref.adb:
29536         (Generate_Reference): Handle properly a reference to an entry formal,
29537          when an accept statement has a pragma Unreferenced for it.
29538
29539         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29540         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29541         the body, to ensure that warnings are properly emitted for each accept
29542         statement of a given task entry.
29543
29544 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29545
29546         * Makefile.in: Add support for foreign threads on VMS.
29547
29548 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29549
29550         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29551         Remove.
29552         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29553
29554         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29555
29556         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29557         exception.
29558         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29559
29560 2004-12-07  Robert Dewar  <dewar@adacore.com>
29561
29562         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29563         Prepend.
29564         (Remove_Next_Debug): Same fix
29565
29566         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29567         maintain back pointers now, though we did not used to, and comments
29568         were out of date).
29569         (Prepend): Remove pragma Inline.
29570         (Remove_Next): Same cleanup
29571
29572 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29573
29574         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29575         used to record an implicit dereference as a read operation on its
29576         prefix when operating under -gnatc. Necessary to avoid spurious
29577         'variable assigned but never read' warnings in that mode.
29578         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29579         is a non-overloaded implicit dereference, call the above subprogram to
29580         ensure proper recording of references.
29581
29582 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29583
29584         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29585         to be resolved later as part of Analyze_Iteration_Scheme's call to
29586         Make_Index.
29587
29588 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29589
29590         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29591         prefix is not a scalar type, place error message on prefix, not on
29592         type entity.
29593
29594 2004-12-07  Bernard Banner  <banner@adacore.com>
29595
29596         * vxaddr2line.adb: Add support for x86 vxworks
29597
29598 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29599
29600         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29601         documentation of the behaviour of these functions when passed an IP
29602         address that has no record in the system hosts database and no reverse
29603         record in the DNS.
29604
29605         * cstand.adb, a-tags.ads: Fix typos in comment.
29606
29607 2004-12-07  Robert Dewar  <dewar@adacore.com>
29608
29609         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29610         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29611         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29612         s-poosiz.ads: Minor reformatting
29613
29614         * make.adb: Minor reformatting
29615         Add some ??? comments asking for more comments
29616
29617         * s-poosiz.adb: Minor reformatting
29618         Add comments on alignment requirement
29619
29620         * sinfo.ads: Remove obsolete comment and fix typo.
29621
29622 2004-12-07  Vincent Celier  <celier@adacore.com>
29623             Sergey Rybin  <rybin@adacore.com>
29624
29625         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29626         Files" with the new tool and package names.
29627         Reformatting to suppress most of the warnings for line too long
29628         Document the new section "Project Search Path:" in the output of
29629         gnatls -v.
29630         Add gnatmetric section
29631
29632 2004-12-07  Vincent Celier  <celier@adacore.com>
29633
29634         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29635         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29636         and -eit to -ept. Added qualifier
29637         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29638
29639 2004-11-27  Andreas Schwab  <schwab@suse.de>
29640
29641         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29642
29643 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29644
29645         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29646         internal implementation unit GNAT.Sockets.Thin,
29647         as their usage for sockets is non-portable (using the read and write
29648         functions from the system runtime library is fine on UNIX but won't
29649         work under Windows).
29650
29651         * mingw32.h: Update copyright notice.
29652
29653 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29654
29655         * ada-tree.h: Minor reformatting of previous change to avoid lines
29656         longer than 79 characters.
29657
29658 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29659
29660         * tb-gcc.c: GCC infrastructure based implementation of
29661         __gnat_backtrace.
29662
29663 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29664
29665         * misc.c (gnat_post_options): Don't clear
29666         flag_inline_functions.
29667
29668 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29669
29670         PR ada/17986
29671         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29672         tree.
29673
29674 2004-11-21  Andreas Jaeger  <aj@suse.de>
29675
29676         * stylesw.adb: Change Style_Check_Subprogram_Order to
29677         Style_Check_Order_Subprograms.
29678
29679 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29680
29681         * adaint.h, adaint.c
29682         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29683         to avoid warnings.
29684         Add also a cast to kill another warning.
29685         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29686         parameter with the priority class of the parent process instead of
29687         always using the NORMAL_PRIORITY_CLASS.
29688         (__gnat_dup): New function.
29689         (__gnat_dup2): New function.
29690         (__gnat_is_symbolic_link): Enable the effective body of this
29691         function when __APPLE__ is defined.
29692
29693         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29694         Update comments.
29695
29696 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29697
29698         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29699         address of which may be used to represent "others" and "all others"
29700         choices in exception tables, instead of the current harcoded
29701         (void *)0 and (void *)1.
29702         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29703
29704         * gigi.h (others_decl, all_others_decl): New decls representing the
29705         new Others_Value and All_Others_Value objects.
29706         (struct attrib): Rename "arg" component as "args", since GCC expects a
29707         list of arguments in there.
29708
29709         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29710         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29711         addresses.
29712
29713         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29714         others_decl and all_others_decl instead of hardcoded dummy addresses
29715         to represent "others" and "all others" choices, which is cleaner and
29716         more flexible with respect to the possible eh pointer encoding policies.
29717
29718         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29719         (process_attributes): Account for the naming change of the "args"
29720         attribute list entry component.
29721
29722         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29723         cumulating attributes for different entities into a single list.
29724         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29725         attributes for the current entity and propagate first subtype
29726         attributes to other subtypes.
29727         <E_Procedure>: Attribute arguments are attr->args and not
29728         attr->arg any more.
29729         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29730         argument provided, as this is what GCC expects. Use NULL_TREE instead
29731         of 0 for trees.
29732
29733 2004-11-18  Robert Dewar  <dewar@adacore.com>
29734
29735         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29736         Minor reformatting througout (including new function specs)
29737         Add ??? comments asking for clarification.
29738
29739 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29740
29741         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29742         incomplete duplicate implementation of this subprogram from butil.
29743
29744 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29745
29746         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29747         procedures factors the common processing for building an RPC receiver
29748         for an RCI package or an RACW type.
29749         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29750         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29751         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29752         in use.
29753         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29754         Add_RACW_Features.
29755         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29756         Add_RAST_Features.
29757         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29758         distribution subprogram identifiers that are either subprogram numbers
29759         or strings.
29760         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29761         string distribution identifiers assigned to a given subprogram.
29762         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29763         (Add_RAS_Dereference_TSS): Add comments.
29764         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29765         is not referenced yet because it will be used by the PolyORB DSA
29766         implementation.
29767         (Insert_Partition_Check): Remove fossile code.
29768         (First_RCI_Subprogram_Id): Document this constant.
29769         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29770         RAS_Access TSS.
29771         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29772         replaced with calls to Get_Library_Unit_Name_String. Previously there
29773         were several instances of the same code in different locations in the
29774         compiler; this checkin completes the replacement of all of these
29775         instances with calls to a common subprogram.
29776         Minor reformatting.
29777
29778         * sem_dist.adb: Remove comment noting that RPC receiver generation
29779         should be disabled for RACWs that implement RASs.
29780         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29781
29782         * sem_util.ads, sem_util.adb (Has_Stream): New function
29783         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29784         qualified name of a library unit into the name buffer.
29785         (Note_Possible_Modification): Generate a reference only
29786         if the context comes from source.
29787
29788         * snames.ads (PCS_Names): New subtype corresponding to names of
29789         supported implementations of the Partition Communication Subsystem
29790         (PCS) (i.e. the runtime library support modules for the distributed
29791         systems annex).
29792
29793 2004-11-18  Robert Dewar  <dewar@adacore.com>
29794             Ed Schonberg  <schonberg@adacore.com>
29795
29796         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29797         (Has_Rep_Pragma): New function
29798         (Has_Attribute_Definition_Clause): New function
29799         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29800         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29801
29802         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29803
29804         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29805         (Expand_Pragma_Psect_Object): New procedure
29806         These procedures contain the revised and cleaned up processing for
29807         these two pragmas. This processing was formerly in Sem_Prag, but
29808         is more appropriately moved here. The cleanup involves making sure
29809         that the pragmas are properly attached to the tree, and that no
29810         nodes are improperly shared.
29811
29812         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29813         pragmas to Exp_Prag, which is more appropriate.
29814         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29815         check for duplicates Remove use of Is_Psected flag, no longer needed.
29816         Use new Make_String_Literal function with string.
29817
29818         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29819         that are functions return universal values, that have to be converted
29820         to the context type.
29821         Use new Make_String_Literal function with string.
29822         (Get_Stream_Convert_Pragma): New function, replaces the use of
29823         Get_Rep_Pragma, which had to be kludged to work in this case.
29824
29825         * freeze.adb: Use new Has_Rep_Pragma function
29826
29827         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29828         function with string.
29829         Use new Has_Rep_Pragma function.
29830
29831         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29832         string argument.
29833
29834 2004-11-18  Robert Dewar  <dewar@adacore.com>
29835
29836         * errout.ads, errout.adb: (First_Sloc): New function
29837
29838         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29839         check (-gnatyx) instead of being included as a redundant construct
29840         warning.
29841
29842         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29843         Style_Check_Order_Subprograms.
29844
29845         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29846         stylesw.adb: Add Style_Check_Xtra_Parens
29847
29848         * usage.adb: Add line for -gnatyx (check extra parens)
29849
29850         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29851
29852 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29853             Robert Dewar  <dewar@adacore.com>
29854
29855         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29856         discriminant of a constrained subtype, analyze the copy of the
29857         corresponding constraint, because in some cases it may be only
29858         partially analyzed.
29859         Removes long-lived ??? comments.
29860
29861         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29862         handled controlled or secondary-stack expressions within the
29863         iteration_scheme of a loop.
29864
29865         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29866         bounds that may contain functions calls, to prevent memory leaks when
29867         the bound contains a call to a function that uses the secondary stack.
29868         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29869         generate temporaries for loop bounds that might contain function calls
29870         that require secondary stack and/or finalization actions.
29871
29872         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29873         selected component and the selector is overloadable (not just a
29874         function) treat as function call, Analyze_Call will disambiguate if
29875         necessary.
29876         (Analyze_Selected_Component): Do not generate an actual subtype for the
29877         selected component if expansion is disabled. The actual subtype is only
29878         needed for constraint checks.
29879         (Analyze_Allocator): If restriction No_Streams is set, then do
29880         not permit objects to be declared of a stream type, or of a
29881         composite type containing a stream.
29882
29883         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29884         No_Streams no longer prohibits with'ing this package.
29885
29886         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29887         discriminants, but the parent base has unknown discriminants, there is
29888         no discriminant constraint to inherit. Such a discrepancy can arise
29889         when the actual for a formal type with unknown discriminants is a
29890         similar private type whose full view has discriminants.
29891         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29892         do not permit objects to be declared of a stream type, or of a
29893         composite type containing a stream.
29894
29895 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29896
29897         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29898         protected operations.
29899
29900         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29901         generated name, it complicates decoding in gdb and hinders debugging
29902         of protected operations.
29903         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29904         flag for the protected entry barrier function.
29905         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29906         flag for the protected entry function.
29907
29908 2004-11-18  Nicolas Setton  <setton@adacore.com>
29909
29910         * expect.c: Define __unix__ when __APPLE__ is defined.
29911
29912         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29913         Darwin-specific section.
29914
29915         * lang-specs.h: Change the placement of the %1 marker.
29916         Works around the fact that gcc adds -fPIC by default under Darwin.
29917
29918 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29919
29920         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29921         type of the object with the packed array type, set the Analyzed flag
29922         on the object if it is an entity or simple indexed component, to avoid
29923         spurious type errors.
29924
29925 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29926
29927         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29928         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29929         separate line from the version message.
29930
29931 2004-11-18  Ed Falis  <falis@adacore.com>
29932
29933         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29934         vthreads.
29935         (init_float): Eliminate initialization of floating point status for
29936         AE653. The instructions have no effect for vThreads.
29937
29938 2004-11-18  Vincent Celier  <celier@adacore.com>
29939
29940         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29941         gnatbind is invoked with -shared.
29942
29943 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29944
29945         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29946         for Detect_Blocking which is redundant with the check done within the
29947         procedure Protected_Single_Entry_Call.
29948         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29949         Detect_Blocking which is redundant with the check done within the
29950         procedure Protected_Single_Entry_Call.
29951
29952 2004-11-18  Vincent Celier  <celier@adacore.com>
29953
29954         * makegpr.adb (Compile): Put the compiling switches (in package
29955         Compiler and on the command line) immediately after "-c", instead of
29956         at the end of the command line invocation of the compiler, when
29957         compiling a non-Ada file.
29958         (Build_Global_Archive): When there is no need to rebuild the archive,
29959         set Global_Archive_Exists, so that the archive is passed to the linker
29960         if one is needed.
29961
29962 2004-11-18  Robert Dewar  <dewar@adacore.com>
29963             Sergey Rybin  <rybin@adacore.com>
29964
29965         * gnat_ugn.texi:
29966         Remove extra paren check from list of checks for redundant constructs
29967         Add documentation of new -gnatyx style check (check extra parens)
29968         Remove paragraph about gnatelim debug options.
29969
29970         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29971         objects rather than forbidding dependencies on the package Ada.Streams.
29972
29973         * sinfo.ads: Add ??? note that we should document pragmas passed to
29974         back end.
29975
29976         * g-expect.ads: Fix a few typos in the comments.
29977
29978 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29979
29980         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29981         warning message.
29982
29983 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29984
29985         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29986
29987 2004-11-07  Andreas Schwab  <schwab@suse.de>
29988
29989         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29990
29991 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29992
29993         PR ada/18228
29994         * Makefile.in (darwin): Set soext to .dylib.
29995
29996 2004-10-26  Vincent Celier  <celier@gnat.com>
29997             Thomas Quinot   <quinot@act-europe.fr>
29998
29999         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30000         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30001         there is no use of GNAT.Sockets.Constants.
30002         Remove remaining pragma Import for C_Write
30003         Remove C_Read and C_Write from internal implementation unit
30004         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30005         the read and write functions from the system runtime library is fine
30006         on UNIX but won't work under Windows).
30007
30008         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30009         (Check_Selector): Use C_Recv instead of C_Read.
30010         Selectors are the GNAT.Sockets abstraction to perform a select()
30011         call on a set of descriptors. To allow abortion of an ongoing
30012         select operation, some data is written to a dedicated socket that
30013         is always monitored.
30014         Under Windows, the write and read library functions cannot operate
30015         on sockets, so we need to use send and recv instead, which is portable
30016         across all supported platforms.
30017
30018         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30019         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30020         (using the read and write functions from the system runtime library is
30021         fine on UNIX but won't work under Windows).
30022
30023 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
30024
30025         * mlib-tgt-darwin.adb: New file.
30026
30027         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30028         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30029         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30030         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30031         subprogram body.
30032
30033         * Makefile.in: Add support for building shared libraries under Darwin.
30034         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30035         the low level EH init subprogram to be called from __gnat_initialize.
30036
30037         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30038         indicates which options to pass to the archive indexer.
30039
30040         * mlib-utl.adb: Add support for calling ranlib with additional
30041         options. This is needed for instance under Mac OS X.
30042         (Ranlib_Options): New global variable, used to store the potential
30043         options to pass to ranlib.
30044         (Ar): Use Ranlib_Options when spawning ranlib.
30045         (Initialize): Set the value of ranlib option.
30046
30047 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
30048
30049         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30050         instead of 8K, to reflect the real potential needs for stack-checking
30051         in the ZCX case.
30052
30053 2004-10-26  Pascal Obry  <obry@gnat.com>
30054
30055         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30056
30057         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30058         Windows only the initial thread stack size can be set so it is good to
30059         start we a low stack size.
30060         The OS will adjust the size as needed.
30061
30062 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
30063             Nicolas Setton  <setton@act-europe.fr>
30064
30065         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30066         "__unix__" instead of "unix".
30067         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30068         sections were just mistakenly ignored. The former is
30069         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30070         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30071         of hpux. This prevents an unwanted definition of the symbol
30072         convert_addresses in adaint.o.
30073
30074 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
30075
30076         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30077         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30078
30079 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30080
30081         * a-filico.ads, a-filico.adb: fix incorrect header.
30082
30083 2004-10-26  Javier Miranda  <miranda@gnat.com>
30084
30085         * a-ststio.ads: Fix typo in identifier
30086
30087 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30088
30089         * sem_ch4.adb: Minor reformatting.
30090
30091 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30092
30093         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30094         enabled, check the result of unary and binary operations when the
30095         expression is the right-hand side of an assignment.
30096
30097 2004-10-26  Vincent Celier  <celier@gnat.com>
30098
30099         * clean.adb (Delete): Do not output warnings when in quiet output and
30100         not in verbose mode.
30101         (Force_Deletions): New Boolean flag, defaulted to False
30102         (Delete): Only delete a file if it is writable, and when
30103         Force_Deletions is True.
30104         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30105         (Usage): Line for new switch -f
30106         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30107         own.
30108
30109 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30110
30111         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30112         JM type only if its size matches that of the wrapper.  When a size is
30113         prescribed and the field is not aliased, remove the wrapper of a JM
30114         type only if the size is not greater than that of the packed array.
30115         (gnat_to_gnu_entity): Change the extension of packed array wrappers
30116         from LJM to JM.
30117
30118 2004-10-26  Geert Bosch  <bosch@gnat.com>
30119
30120         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30121         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30122         (Pred): Implement in terms of Succ.
30123
30124 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30125
30126         * exp_aggr.adb (Safe_Component): An aggregate component that is an
30127         unchecked conversion is safe for in-place use if the expression of the
30128         conversion is safe.
30129         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30130         be expandable in place even if the aggregate does not come from source.
30131         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30132         designated object of an allocator in place, rather than building it
30133         first on the stack. The previous scheme forces a full copy of the array,
30134         and may be altogether unsusable if the size of the array is too large
30135         for stack allocation.
30136
30137 2004-10-26  Robert Dewar  <dewar@gnat.com>
30138
30139         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30140         compares if the component is atomic.
30141
30142         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30143         array assignment if the component type is atomic.
30144
30145 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30146             Eric Botcazou  <ebotcazou@act-europe.fr>
30147
30148         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30149         is aliased and is a by_reference type, do not pass by copy.
30150         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30151         detect whether the call is in the right side of an assignment or
30152         the expression of an object declaration.  Recurse on component
30153         association within aggregates.
30154         Call it in the condition that determines whether the temporary is
30155         necessary for correct stack-checking.
30156
30157 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30158
30159         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30160         RACW_Type, used in the PolyORB version.
30161         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30162         version and the GARLIC version.
30163
30164         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30165         Rename RCI_Info to RCI_Locator for better consistency between the
30166         GARLIC and PolyORB versions of the distributed systems annex.
30167         (DSA_Implementation_Name): This enumeration lists the possible
30168         implementations of the Partition Communication Subsystem for the
30169         Distributed Systems Annex (DSA). The three available implementations
30170         are the dummy stub implementation (No_DSA), and two versions based on
30171         two different distribution runtime libraries: GARLIC and PolyORB. Both
30172         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30173         technology.
30174         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30175         that organization.
30176
30177         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30178         between the GARLIC and PolyORB versions of the distributed systems
30179         annex.
30180         Remove RE_Unbounded_Reclaim_Pool since it is unused.
30181
30182 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
30183
30184         * gnat1drv.adb: Suppress calling the back end when
30185         Frontend_Layout_On_Target is true.
30186
30187 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30188
30189         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30190         Set_Read_Only): New subprograms.
30191         These new routines allow the user to set or unset the Owner execute
30192         and Owner write permission flags on a file.
30193
30194         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30195         GNAT.OS_Lib.Set_Executable instead of rolling our own.
30196
30197 2004-10-26  Matthew Gingell  <gingell@gnat.com>
30198
30199         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30200
30201 2004-10-26  Pascal Obry  <obry@gnat.com>
30202
30203         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30204         memory before the faulting page we properly test the process read
30205         access for this address using appropriate Win32 routine.
30206         (HPUX sections): guard with "__hpux__" instead of "hpux".
30207
30208 2004-10-26  Robert Dewar  <dewar@gnat.com>
30209
30210         * lib-xref.adb (Generate_Reference): Don't complain about reference to
30211         entry parameter if pragma Unreferenced set, since we do not properly
30212         handle the case of multiple parameters.
30213
30214 2004-10-26  Vincent Celier  <celier@gnat.com>
30215
30216         * prj-env.adb: (Contains_ALI_Files): New Boolean function
30217         (Ada_Objects_Path.Add): For a library project, add to the object path
30218         the library directory only if there is no object directory or if the
30219         library directory contains ALI files.
30220         (Set_Ada_Paths.Add.Recursive_Add): Ditto
30221
30222 2004-10-26  Vincent Celier  <celier@gnat.com>
30223
30224         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30225         extension of library projects.
30226
30227         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30228         path defaults to ".:<prefix>/lib/gnat".
30229         (Parse): For an extending all project, allow direct import of a project
30230         that is virtually extended.
30231
30232         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30233         the specified name is directly imported, return its ID. Otherwise, if
30234         an extension of this project is imported, return the ID of the
30235         extension.
30236
30237 2004-10-26  Robert Dewar  <dewar@gnat.com>
30238
30239         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30240         (Sub3): New procedure, used by Scaled_Divide
30241         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30242         correct more than one instance of failure to propagate carries
30243         correctly.
30244         (Double_Divide): Handle overflow case of largest negative number
30245         divided by minus one.
30246
30247         * s-arit64.ads (Double_Divide): Document that overflow can occur in
30248         the case of a quotient value out of range.
30249         Fix comments.
30250
30251 2004-10-26  Robert Dewar  <dewar@gnat.com>
30252
30253         * s-bitops.adb (Bit_Eq): Remove redundant check.
30254
30255         * s-bitops.ads: Minor comment updates
30256         Change some occurrences of Address to System.Address
30257
30258         * s-carsi8.ads: Fix minor cut-and-paste error in comments
30259
30260 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30261
30262         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30263         accessibility check to prefix that is a protected operation.
30264
30265 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30266
30267         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30268         empty, post message on stub.
30269
30270 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30271             Javier Miranda  <miranda@gnat.com>
30272
30273         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30274         current instance appears within a unit that is directly in the context
30275         of the main unit.
30276         Used to determine whether the body of the instance should be analyzed
30277         immediately after its spec, to make its subprogram bodies available
30278         for front-end inlining.
30279         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30280         constraint is not allowed on the component type (AARM 12.5.3(3))
30281
30282 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30283
30284         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30285         'Storage_Pool): enhance, document & limit detection of non-sharable
30286         internal pools.
30287
30288         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30289
30290         * s-pooglo.ads: Add more documentation now that this pool is properly
30291         documented.
30292
30293 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30294
30295         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30296         or protected type with discriminants, do not constrain the
30297         corresponding record type if the subtype declaration has no
30298         discriminant constraints. This can be the case in source code, or in
30299         the subtype declaration created to rename an actual type within an
30300         instantiation.
30301
30302 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30303
30304         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30305         different kind of stub (possibly wrong name for file), do not check
30306         for conformance.
30307         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30308         includes call to some function that returns an unconstrained type, do
30309         not inline.
30310
30311 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30312
30313         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30314         appear in the code for the main unit. Dependencies among units in the
30315         context of the main unit are established when those other units are
30316         compiled. Otherwise spurious elaboration constraints can generate
30317         incorrect elaboration circularities.
30318
30319 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30320             Ed Schonberg   <schonberg@gnat.com>
30321
30322         * sem_util.adb (Is_Aliased_View): Defend against the case where this
30323         subprogram is called with a parameter that is not an object name. This
30324         situation arises for some cases of illegal code, which is diagnosed
30325         later, and in this case it is wrong to call Is_Aliased, as that might
30326         cause a compiler crash.
30327         (Explain_Limited_Type): Refine previous fix to include
30328         inherited components of derived types, to provide complete information.
30329
30330         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30331         is the prival for a protected object.
30332         It is necessary to mark this entity as a variable, in addition to
30333         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30334         modified to avoid checking the Aliased flag on entities that are not
30335         objects. (Checking that flag for non-objects is erroneous and could
30336         lead to a compiler crash).
30337
30338 2004-10-26  Robert Dewar  <dewar@gnat.com>
30339
30340         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30341         X_Frac = 0.5, then we know that the number X must be positive.
30342         (Succ): Remove the same redundant test, and also fix the primary test
30343         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30344         Minor reformatting
30345         (Decompose): Add fuller comments to spec
30346
30347 2004-10-26  Pascal Obry  <obry@gnat.com>
30348
30349         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30350         validity (process must have read access). Set to 0 in all other cases.
30351         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30352         violation on Win32.
30353         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30354         segmentation violation.
30355
30356 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30357
30358         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30359         whose type is a constructed subtype of an aliased object with an
30360         unconstrained nominal subtype, convert the actual to the constructed
30361         subtype before taking its address.
30362
30363 2004-10-26  Vincent Celier  <celier@gnat.com>
30364
30365         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30366         (Is_Path_Name_Case_Sensitive): New function
30367
30368         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30369         (Base_Name, Simple_Name, Current_Directory, Compose,
30370         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30371         the result.
30372
30373 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
30374             Vasiliy Fofanov  <fofanov@act-europe.fr>
30375             Vincent Celier   <celier@gnat.com>
30376
30377         * gnat_ugn.texi: Generalize "finding memory problems" section into a
30378         "memory management issues" section and document some of the useful
30379         memory pools provided as part of the GNAT library.
30380         Remove "virtual" from declaration of A::method2 in
30381         the simple example of Ada/C++ mixed system.
30382         Library Projects may be virtually extended: their virtual extensions
30383         are not Library Projects.
30384         Added section on extending project hierarchies.
30385
30386 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30387
30388         * adaint.c (__gnat_get_libraries_from_registry): Cast value
30389         to LPBYTE.
30390         (__gnat_portable_spawn): Remove const.
30391
30392         * mingw32.h (MAXPATHLEN): Check for previous definition.
30393
30394 2004-10-17  Matthias Klose  <doko@debian.org>
30395
30396         * gnatvsn.ads: Set gnat library version to 4.0.
30397
30398 2004-10-05  Vincent Celier  <celier@gnat.com>
30399
30400         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30401
30402 2004-10-04  Laurent Guerby  <laurent@guerby.net>
30403
30404         PR ada/15156
30405         * Makefile.in: Define and use RANLIB_FLAGS.
30406
30407 2004-10-04  Pascal Obry  <obry@gnat.com>
30408
30409         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30410         other x86 platforms).
30411
30412 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30413
30414         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30415         in general and triggers stack alignment adjustment for thread entry
30416         points on targets where this is necessary.
30417
30418 2004-10-04  Bernard Banner  <banner@gnat.com>
30419
30420         PR ada/13897
30421         * Makefile.in: Add section for powerpc linux
30422         Add variant i-vxwork-x86.ads
30423
30424         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30425
30426 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30427
30428         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30429         table registration calls when need be. Ensures no reference to the crt
30430         ctors symbol are issued in the SJLJ case, which avoids possible
30431         undefined symbol errors in the case of modules to be statically linked
30432         with the kernel.
30433
30434 2004-10-04  Javier Miranda  <miranda@gnat.com>
30435
30436         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30437         in-line the code corresponding to subprogram Analyze_Actuals. In
30438         addition, analyze the actuals only in case of subprogram call.
30439
30440 2004-10-04  Ed Falis  <falis@gnat.com>
30441
30442         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30443
30444 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30445
30446         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30447         in the documentation.
30448
30449 2004-10-04  Robert Dewar  <dewar@gnat.com>
30450
30451         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30452         IF and CASE.
30453         (Analyze_Block_Statement): Add circuitry to detect following dead code
30454         (Check_Unreachable_Code): Handle case of block exit
30455
30456 2004-10-04  Robert Dewar  <dewar@gnat.com>
30457
30458         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30459         (XMatchD): Avoid warning for Logic_Error call
30460
30461 2004-10-04  Robert Dewar  <dewar@gnat.com>
30462
30463         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30464         consider expressions buried within a procedure actual to be an actual.
30465         This caused some blowups with uses of packed slices within a procedure
30466         actual.
30467
30468 2004-10-04  Robert Dewar  <dewar@gnat.com>
30469
30470         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30471         longer need to be initialized to zero.
30472         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30473         initialized to zero.
30474
30475         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30476         considered valid, even if the representation is modular. That's correct
30477         now that we no longer initialize packed modular arrays to zero.
30478
30479         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30480         suffixes. These are now documented as the only cases in which the
30481         debugger ignores outer records.
30482         Previously, the spec allowed arbitrary suffixes for this purpose.
30483         Change name of LJM to JM for packed array pad records
30484         Create separate section on packed array handling, and add a whole new
30485         set of comments to this section describing the situation with packed
30486         modular types and justification requirements depending on endianness.
30487
30488 2004-10-04  Robert Dewar  <dewar@gnat.com>
30489
30490         * a-except.adb: Add a comment for last change
30491
30492         * einfo.ads: Minor spelling correction in comment
30493
30494         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30495
30496         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30497         messages.
30498
30499         * sem_util.ads: Minor comment update
30500
30501 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30502
30503         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30504         Inline_Always when in Configurable_Run_Time mode.
30505
30506         * sem_prag.adb (Process_Convention): If entity is an inherited
30507         subprogram, apply convention to parent subprogram if in same scope.
30508         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30509         when in Configurable_Run_Time mode.
30510
30511 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30512
30513         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30514         class_wide type after component list has been inherited.
30515
30516 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30517
30518         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30519         Denotes_Previous_Actual, to handle properly the case of a private
30520         actual that is also the component type of a subsequent array actual.
30521         The visibility status of the first actual is not affected when the
30522         second is installed.
30523         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30524         make fully recursive the treatment of formals of packages declared
30525         with a box.
30526         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30527         the above on exit from an instantiation.
30528         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30529         current instantiation which is now complete.
30530         (Analyze_Package_Instantiation): No instantiated body is needed if the
30531         main unit is generic. Efficient, and avoid anomalies when a instance
30532         appears in a package accessed through rtsfind.
30533
30534 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30535
30536         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30537         do not generate a declaration for a temporary if the call is part of a
30538         library-level instantiation.
30539
30540 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30541
30542         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30543         searching for a limited component to flag.
30544
30545         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30546         expansion of Input, to account for the fact that the implicit call
30547         generated by the attribute reference must freeze the user-defined
30548         stream subprogram. This is only relevant to 'Input, because it can
30549         appear in an object declaration, prior to the body of the subprogram.
30550
30551         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30552         expansion can proceed and further errors uncovered.
30553         (Minor clean up): Fix cases of using | instead of \ for continuation
30554         messages.
30555
30556 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30557
30558         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30559
30560         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30561         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30562         Use gcc_assert and gcc_unreachable.
30563
30564         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30565         specified alignment before validating size.
30566         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30567         stripped-down declaration for the type of the inner field when making
30568         a JM type.
30569
30570         * utils.c (finish_record_type): Do not compute the size in units
30571         incrementally. Instead compute it once for the rep clause case.
30572         Use gcc_assert and gcc_unreachable.
30573
30574 2004-10-04  Vincent Celier  <celier@gnat.com>
30575
30576         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30577         in file name.
30578         (Is_Valid_Path_Name): Take '/' as a directory separator.
30579
30580 2004-10-04  Vincent Celier  <celier@gnat.com>
30581
30582         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30583         (Extended_Project) only if Extended_Project is defined, to avoid
30584         assertion error.
30585         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30586         resolved path.
30587         (Parse_Single_Project): Ditto.
30588
30589         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30590         Add_To_Project_Path for virtual projects.
30591
30592 2004-10-04  Vincent Celier  <celier@gnat.com>
30593
30594         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30595         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30596         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30597         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30598         parameter Options_2.
30599
30600         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30601         Build_Dynamic_Library with an empty Options_2.
30602
30603         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30604         default anymore.
30605
30606         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30607         directory separator, if any.
30608         (Gprmake): Do not allow mains on the command line for library projects.
30609         Do not attempt to link when the project is a library project.
30610         (Library_Opts): New table to store Library_Options.
30611         (Build_Library): If Library_Options is specified, pass these options
30612         when building a shared library.
30613
30614 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30615
30616         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30617         the end of this procedure now that the unlock operation was inserted
30618         by the expander.
30619
30620 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30621
30622         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30623         corresponding to the Preallocated_Stacks flags in System.
30624         (Get_Target_Parameters): Including the processing for
30625         Preallocated_Stacks.
30626
30627         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30628         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30629         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30630         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30631         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30632         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30633         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30634         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30635         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30636         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30637         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30638         used to signal whether the compiler creates the required stacks and
30639         descriptors for the different tasks (when True) or it is done by the
30640         underlying operating system at run time (when False).
30641         It is initially set to False in all targets.
30642
30643         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30644         if it is supported by the target.
30645         (Make_Task_Create_Call): Pass the stack address if it has been
30646         previously created. Otherwise pass a Null_Address.
30647
30648         * snames.adb: Add _stack.
30649
30650         * snames.ads: Add Name_uStack. Required to allow the expander to
30651         statically allocated task stacks.
30652
30653         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30654         Stack_Address argument.
30655         Check that its value is equal to Null_Address because this target does
30656         not support the static stack allocation.
30657
30658 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30659
30660         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30661         and error messages
30662
30663 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30664
30665         * exp_dist.adb: Split declaration of asynchronous flag out of
30666         Add_RACW_Read_Attribute.
30667         Minor reformatting for better alignment with PolyORB version.
30668         Store the entity for the asynchronous flag of an RACW, rather than the
30669         expression, in the asynchronous flags table. This will allow this flag
30670         to be used in other subprograms beside Add_RACW_Read_Attribute.
30671
30672 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30673
30674         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30675         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30676         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30677         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30678         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30679         sockets constant MSG_NOSIGNAL (Linux-specific).
30680         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30681         all Send operations.
30682         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30683         from trigerring SIGPIPE.
30684         Rename components to avoid clash with Ada 2005 possible reserved
30685         word 'interface'.
30686         (Check_Selector): When the select system call returns with an error
30687         condition, propagate Socket_Error to the caller.
30688
30689 2004-10-01  Jan Hubicka  <jh@suse.cz>
30690
30691         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30692
30693 2004-09-23  Robert Dewar  <dewar@gnat.com>
30694
30695         PR ada/17540
30696         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30697         instead do this at freeze time (we won't do it if there is an address
30698         clause).
30699         Change "pragma inline" to "pragma Inline" in information and error
30700         messages.
30701         Minor reformatting.
30702
30703         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30704         right way of doing things after all.
30705         (Freeze_Entity): For object, set Is_Public for imported entities
30706         unless there is an address clause present.
30707
30708 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30709
30710         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30711         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30712         ensures proper handling of types with rep clauses, which might have
30713         their TYPE_SIZE set already.
30714
30715 2004-09-21  Robert Dewar  <dewar@gnat.com>
30716
30717         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30718         packed array types in both little- and big-endian cases. This change
30719         ensures that we no longer count on the unused bits being initialized
30720         for such types (and in particular ensures that equality testing will
30721         only read the relevant bits).
30722         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30723         These changes mean that we no longer need to initialize small packed
30724         arrays.
30725         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30726         optimization to an LJM field as to its parent field.
30727
30728         * ada-tree.h, trans.c, utils.c, utils2.c:
30729         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30730
30731 2004-09-20  Jan Hubicka  <jh@suse.cz>
30732
30733         * utils.c (gnat_finalize): Remove.
30734         (end_subprog_body): Directly call cgraph_finalize_function;
30735         do not lower the nested functions.
30736
30737 2004-09-20  Robert Dewar  <dewar@gnat.com>
30738
30739         PR ada/17540
30740         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30741         if an address clause is present, since that means that the Import
30742         should be ignored.
30743
30744 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30745
30746         * 5tsystem.ads: Removed, no longer used.
30747
30748 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30749             Zack Weinberg  <zack@codesourcery.com>
30750
30751         * ada-tree.def: Use tree_code_class enumeration constants
30752         instead of code letters.
30753         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30754         Update for new tree-class enumeration constants.
30755
30756 2004-09-17  Vincent Celier  <celier@gnat.com>
30757
30758         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30759         capabilities of the general project manager.
30760
30761 2004-09-09  Vincent Celier  <celier@gnat.com>
30762
30763         * a-direct.ads: Add pragma Ada_05
30764         (Directory_Entry_Type): Give default value to component Kind to avoid
30765         not initialized warnings.
30766
30767         * a-direct.adb (Current_Directory): Remove directory separator at the
30768         end.
30769         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30770         an existing directory.
30771         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30772         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30773         Convert the result to File_Size.
30774
30775         * prj.ads: (Project_Error): New exception
30776
30777         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30778         Prj.Com, not from Osint.
30779         (Attrs, Package_Attributes): Tables moved to private part of spec
30780         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30781         Prj.Attr.PM.
30782         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30783         Prj.Project_Error after call to Fail.
30784         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30785         Fail. Check that package name is not already in use.
30786
30787         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30788         used by tools, not only by the project manager, and to indicate that
30789         exception Prj.Prj_Error may be raised in case of problem.
30790         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30791         Prj.Attr.PM.
30792         (Attrs, Package_Attributes): Table instantiations moved from the body to
30793         the private part to be accessible from Prj.Attr.PM body.
30794
30795         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30796         from new package Prj.Attr.PM.
30797         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30798         Prj.Attr.PM.
30799
30800         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30801
30802         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30803         instead of Elaboration_Checks).
30804
30805         * a-calend.adb: Minor reformatting
30806
30807 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30808
30809         * gigi.h (maybe_pad_type): New declaration.
30810         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30811
30812         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30813
30814         * cuintp.c: Convert to use buildN.
30815
30816         * decl.c (maybe_pad_type): No longer static.
30817         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30818         target pointer.
30819         Convert to use buildN.
30820
30821         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30822         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30823         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30824         RHS.
30825         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30826         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30827         Convert to use buildN.
30828
30829         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30830         TREE_READONLY for const.
30831         Convert to use buildN.
30832
30833         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30834         (create_var_decl): Refine when TREE_STATIC is set.
30835         Convert to use buildN.
30836
30837 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30838
30839         * gnat_ugn.texi: Delete text relating to checking of ali and object
30840         consistency.
30841
30842         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30843         routines.
30844
30845 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30846
30847         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30848         pragmas recognized by GNAT.
30849
30850         * gnat_rm.texi: Document pragma Detect_Blocking.
30851
30852         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30853         raise Program_Error if called from a protected operation.
30854
30855         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30856         the protected action nesting level.
30857         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30858         protected action nesting level.
30859         (Unlock): When pragma Detect_Blocking is active decrease the protected
30860         action nesting level.
30861
30862         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30863         Protected_Action_Nesting.
30864
30865         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30866         Common_ATCB record. It contains the dynamic level of protected action
30867         nesting for each task. It is needed for checking whether potentially
30868         blocking operations are called from protected operations.
30869         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30870         Detect_Blocking is active or not in the partition.
30871
30872         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30873         raise Program_Error if called from a protected operation.
30874         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30875         Program_Error if called from a protected operation.
30876         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30877         Program_Error if called from a protected operation.
30878
30879         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30880         raise Program_Error if called from a protected operation.
30881
30882         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30883         raise Program_Error if called from a protected operation, and increase
30884         the protected action nesting level.
30885         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30886         Program_Error if called from a protected operation, and increase the
30887         protected action nesting level.
30888         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30889         protected action nesting level.
30890
30891         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30892         raise Program_Error if called from a protected operation, and increase
30893         the protected action nesting level.
30894         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30895         Program_Error if called from a protected operation, and increase the
30896         protected action nesting level.
30897         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30898         raise Program_Error if called from a protected operation.
30899         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30900         active, raise Program_Error if called from a protected operation.
30901         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30902         protected action nesting level.
30903
30904         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30905         insertion of the statement raising Program_Error. The run time
30906         contains the required machinery for handling that.
30907
30908         * sem_util.ads: Change comment associated to procedure
30909         Check_Potentially_Blocking_Operation.
30910         This procedure does not insert a call for raising the exception because
30911         that is currently done by the run time.
30912
30913         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30914
30915         * init.c: Add the global variable __gl_detect_blocking that indicates
30916         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30917         making the pragma available at run time.
30918         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30919
30920         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30921         pragma Detect_Blocking is active.
30922
30923         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30924
30925         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30926         DB is found in the ali file. Any unit compiled with pragma
30927         Detect_Blocking active forces its effect in the whole partition.
30928
30929         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30930         Detect_Blocking is active and delay is called from a protected
30931         operation.
30932
30933         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30934         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30935         Detect_Blocking is active (0 otherwise).
30936         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30937         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30938         otherwise).
30939
30940 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30941
30942         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30943         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30944         package.
30945
30946         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30947         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30948         Update API in placeholder implemetation of s-parint to reflect changes
30949         in distribution runtime library.
30950
30951         * sem_ch3.adb (Expand_Derived_Record): Rename to
30952         Expand_Record_Extension.
30953
30954         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30955         primitive operations of potentially distributed object types that have
30956         non-controlling anonymous access formals.
30957
30958         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30959         subprogram.
30960         New implementation of expansion for remote access-to-subprogram types,
30961         based on the RACW infrastructure.
30962         This version of sem_dist is compatible with PolyORB/DSA as well as
30963         GLADE.
30964
30965         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30966         Asynchrronous that applies to a remote access-to-subprogram type, mark
30967         the underlying RACW type as asynchronous.
30968
30969         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30970          __gnat_using_gnu_linker to 1.
30971
30972         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30973         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30974         GNAT.Perfect_Hash_Generators, and remove the empty
30975         GNAT.Perfect_Hash package.
30976
30977         * atree.adb: Minor reformatting
30978
30979         * exp_ch3.adb (Expand_Derived_Record): Rename to
30980         Expand_Record_Extension.
30981         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30982         a component declaration must remain attached at that point in the
30983         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30984         It is therefore necessary to take a copy of the expression when building
30985         the corresponding assignment statement in the init proc.
30986         As a side effect, in the case of a derived record type, we now see the
30987         original expression, without any rewriting that could have occurred
30988         during expansion of the ancestor type's init proc, and we do not need
30989         to go back to Original_Node.
30990
30991         * exp_ch3.ads (Expand_Derived_Record): Rename to
30992         Expand_Record_Extension.
30993
30994         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30995         Returns the RACW type used to implement a remote access-to-subprogram
30996         type.
30997         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30998         New subprograms. Used to create a proxy tagged object for a remote
30999         subprogram. The proxy object is used as the designated object
31000         for RAS values on the same partition (unless All_Calls_Remote applies).
31001         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31002         System.Partition_Interface.Get_Unique_Remote_Pointer.
31003         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31004         Renamed from Add_RAS_*_Attribute.
31005         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31006         subprograms.
31007         New implementation of expansion for remote access-to-subprogram types,
31008         based on the RACW infrastructure.
31009
31010         * exp_dist.ads (Copy_Specification): Update comment to note that this
31011         function can copy the specification from either a subprogram
31012         specification or an access-to-subprogram type definition.
31013
31014 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
31015
31016         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31017         in an instance, between an explicit subprogram an one inherited from a
31018         type derived from an actual.
31019
31020         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31021         add a polling call if the subprogram is to be inlined by the back-end,
31022         to avoid repeated calls with multiple inlinings.
31023
31024         * checks.adb (Apply_Alignment_Check): If the expression in the address
31025         clause is a call whose name is not a static entity (e.g. a dispatching
31026         call), treat as dynamic.
31027
31028 2004-09-09  Robert Dewar  <dewar@gnat.com>
31029
31030         * g-trasym.ads: Minor reformatting
31031
31032         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31033         packed arrays, since unused bits are expected to be zero for a
31034         comparison.
31035
31036 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
31037
31038         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31039         comment.
31040
31041 2004-09-09  Pascal Obry  <obry@gnat.com>
31042
31043         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31044         enable map file generation. Add the right option to generate the map
31045         file if Map_File is set to True.
31046
31047         * gnatdll.adb (Gen_Map_File): New variable.
31048         (Syntax): Add info about new -m (Map_File) option.
31049         (Parse_Command_Line): Add support for -m option.
31050         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31051         Minor reformatting.
31052
31053 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
31054
31055         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31056         new gnatdist implementation.
31057         Define a subpackage isolating the output routines specific to this
31058         verbose mode.
31059
31060 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
31061
31062         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31063
31064         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31065
31066 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
31067
31068         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31069         internal unit.
31070
31071         * opt.ads: Add Ada_Version_Runtime constant used to decide which
31072         version of the language is used to compile the run time.
31073
31074 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
31075
31076         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31077         of variable length temporaries for function return now that the
31078         back-end and gigi support it.
31079
31080 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31081
31082         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31083
31084         * trans.c (struct stmt_group): Delete field GLOBAL.
31085         (gnat_init_stmt_group): Do not initialize it.
31086         (call_to_gnu): Use save_expr, not protect_multiple_eval.
31087         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31088         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31089         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31090         (start_stmt_group): Likewise.
31091         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31092
31093         * utils2.c (ggc.h): Include.
31094         (build_call_raise): Call build_int_cst, not build_int_2.
31095
31096         * utils.c (gnat_init_decl_processing): Fix arg to
31097         build_common_tree_nodes.
31098         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31099         (gnat_define_builtin): Set built_in_decls.
31100         (init_gigi_decls): Call build_int_cst, not build_int_2.
31101
31102         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31103         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31104         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31105         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31106         SET_TYPE_MODULE): Use them.
31107         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31108         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31109         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31110         SET_TYPE_ADA_SIZE): Likewise.
31111         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31112         (DECL_CONST_CORRESPONDING_VAR,
31113         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31114         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31115         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31116         (TYPE_RM_SIZE_NUM): New macro.
31117         (TYPE_RM_SIZE): Modified to use above.
31118
31119         * cuintp.c: (build_cst_from_int): New function.
31120         (UI_To_gnu): Use it.
31121
31122         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31123         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31124         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31125         MIN_EXPR for the size, copy it into new.
31126
31127 2004-09-01  Robert Dewar  <dewar@gnat.com>
31128
31129         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31130         packed indexed component where array is an IN OUT formal. This
31131         generated garbage code previously.
31132
31133         * gnat_ugn.texi: Document -fverbose-asm
31134
31135         * gnat-style.texi: Minor updates (note that boolean constants and
31136         variables are joined with AND/OR rather than short circuit forms).
31137
31138 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
31139
31140         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31141         it is an upward conversion of an untagged type with no representation
31142         change.
31143
31144 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
31145
31146         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31147         System.Partition_Interface.
31148
31149         * checks.adb (Apply_Access_Checks): Do not generate checks when
31150         expander is not active (but check for unset reference to prefix of
31151         dereference).
31152
31153         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31154         pragma Debug as an if statement with a constant condition, for
31155         consistent treatment of entity references contained within the
31156         enclosed procedure call.
31157
31158 2004-09-01  Vincent Celier  <celier@gnat.com>
31159
31160         * bindgen.adb: (Set_EA_Last): New procedure
31161         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31162         Set_EA_Last.
31163         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31164         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31165         linked without errors.
31166         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31167         ST and EA.
31168         (Gen_Exception_Table_C): Correct same bugs
31169
31170         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31171
31172         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31173         on Windows, make sure that the drive letter is in upper case.
31174
31175         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31176         Windows, when the drive letter is added and Case_Sensitive is True, the
31177         drive letter is forced to upper case.
31178
31179         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31180         to Options_2 for the call to MLib.Utl.Gcc.
31181
31182         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31183         directory separator when defining BASE_DIR.
31184
31185 2004-09-01  Pascal Obry  <obry@gnat.com>
31186
31187         * gprcmd.adb (Extend): Do not output trailing directory separator. This
31188         is not needed and it confuses Windows GNU/make which does not report
31189         directory terminated by a slash as a directory.
31190         (gprcmd): Idem for "pwd" internal command.
31191
31192         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31193         target names rewrite to fix regressions with recent version of
31194         GNU/make. Starting with GNU/make 3.80 the pipe character was not
31195         handled properly anymore.
31196
31197 2004-09-01  Andreas Schwab  <schwab@suse.de>
31198
31199         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31200         * raise.c [!IN_RTS]: Undef abort.
31201
31202 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
31203
31204         * utils2.c (build_allocator): Use ssize_int.
31205
31206         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31207
31208 2004-08-27  Andreas Schwab  <schwab@suse.de>
31209
31210         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31211
31212 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31213             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31214
31215         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31216
31217 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31218
31219         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31220         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31221         * utils.c (init_gigi_decls): Likewise.
31222         * utils2.c (build_call_raise, build_allocator): Likewise.
31223
31224 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
31225
31226         * utils.c (gnat_init_decl_processing): Adjust
31227         build_common_tree_nodes call.
31228
31229 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
31230
31231         * utils2.c (build_allocator): Use build_int_cst for negative
31232         size types.
31233
31234 2004-08-18  Richard Henderson  <rth@redhat.com>
31235
31236         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31237
31238 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
31239
31240         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31241         call.s
31242         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31243         (gnat_to_gnu): Likewise.
31244
31245 2004-08-16  Pascal Obry  <obry@gnat.com>
31246
31247         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31248         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31249         option and not mdll anymore. Update comment.
31250
31251 2004-08-16  Pascal Obry  <obry@gnat.com>
31252
31253         * bld.adb (Put_Include_Project): Properly handle directory separators
31254         on Windows.
31255
31256 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
31257
31258         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31259         decreasing the number of allocated junk nodes while searching for the
31260         appropriate subprogram.
31261
31262 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
31263
31264         * cuintp.c (UI_To_gnu): Use build_int_cst..
31265         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31266         * utils.c (init_gigi_decls): Likewise.
31267         * utils2.c (build_call_raise): Likewise.
31268
31269 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
31270
31271         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31272         for a global aliased object with a variable size and an unconstrained
31273         nominal subtype, pretend there is no initializer if the one we have is
31274         incomplete, and avoid referencing an inexistant component in there. The
31275         part we have will be rebuilt anyway and the reference may confuse
31276         further operations.
31277
31278 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
31279
31280         * einfo.ads: Minor reformatting
31281
31282         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31283         restrictions in the ALI if we only want to warn about violations.
31284
31285 2004-08-13  Vincent Celier  <celier@gnat.com>
31286
31287         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31288         when creating a new Unit_Record in table Units.
31289
31290         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31291         that are violated, if any.
31292
31293         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31294         add directory separator if path already ends with a directory separator.
31295
31296 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31297
31298         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31299         unit, this is an attempt to inline a construct that is not available in
31300         the current restricted mode, so abort rather than trying to continue.
31301
31302         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31303         discriminants that rename those of the parent, recover names of
31304         original discriminants for the constraint on the full view of the
31305         parent.
31306         (Complete_Private_Subtype): Do not create a subtype declaration if the
31307         subtype is an itype.
31308
31309         * gnat_rm.texi: Added section on implementation of discriminated
31310         records with default values for discriminants.
31311
31312 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31313
31314         PR ada/15601
31315         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31316         the second operand is overloaded.
31317
31318 2004-08-10  Richard Henderson  <rth@redhat.com>
31319
31320         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31321         add __builtin_alloca.
31322
31323 2004-08-10  Richard Henderson  <rth@redhat.com>
31324
31325         * config-lang.in (boot_language): Yes.
31326
31327 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
31328
31329         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31330         from complaining on potential uninitialized reference.
31331         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31332         new specification and test explicitly for non-zero return value.
31333
31334         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31335         returning C.int, to avoid using a derived boolean type.
31336
31337         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31338         Duplicate_Subexpr_No_Checks in preference to direct use of
31339         Remove_Side_Effects and New_Copy_Tree.
31340         Clear Comes_From_Source on prefix of 'Size attribute reference.
31341
31342         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31343         g-socthi-vxworks.adb: Change calls to
31344         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31345         and test explicitly for non-zero return value.
31346
31347         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31348         (Is_Socket_In_Set): Declare imported function as returning C.int, to
31349         avoid using a derived boolean type.
31350
31351 2004-08-09  Albert Lee  <lee@gnat.com>
31352
31353         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31354
31355 2004-08-09  Pascal Obry  <obry@gnat.com>
31356
31357         * gnat_ugn.texi: Document new way to build DLLs on Windows using
31358         GCC's -shared option.
31359
31360         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31361         Options_2 parameter (options put after object files).
31362
31363 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
31364
31365         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31366         ignore overflows on low and high bounds of an index to also account for
31367         differences in signedness between sizetype and gnu_index_subtype.
31368         These are as legitimate as the ones caused by a lower TYPE_PRECISION
31369         on sizetype.
31370
31371 2004-08-09  Robert Dewar  <dewar@gnat.com>
31372
31373         * s-solita.ads, s-solita.adb: Minor reformatting
31374
31375         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31376         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31377         obsolescent section
31378         Add note that No_Implicit_Conditionals does not suppress
31379         run time constraint checks.
31380
31381         * vms_conv.ads: Minor reformatting
31382
31383         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31384         and necessary for following change).
31385         (Mark): Return new format Mark_Id containing sec stack address
31386         (Release): Use sec stack address from Mark_Id avoiding Self call
31387
31388         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31389         pointer (cleanup and necessary for following change).
31390         Define Mark_Id as record containing address of secondary stack, that way
31391         Release does not need to find the stack again, decreasing the number of
31392         calls to Self and improving efficiency.
31393
31394         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31395
31396         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31397         case variable into the individual case branches when possible.
31398
31399         * sem_ch11.adb: Minor reformatting
31400
31401         * prj.ads: Correct spelling of suffixs
31402
31403         * prj-nmsc.adb: Minor reformatting
31404         Correct spelling suffixs throughout (also in identifiers)
31405
31406         * freeze.adb: Minor spelling correction
31407
31408         * exp_ch2.adb: Cleanups to handling of Current_Value
31409         (no functional effect).
31410
31411         * bld.adb: Correct spelling of suffixs
31412
31413         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31414
31415 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31416
31417         PR ada/15408
31418         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31419         package or of a child, private entities are both immediately_visible
31420         and not hidden.
31421
31422 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31423
31424         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31425         there are no range checks on the value of the literal.
31426
31427         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31428         wrapped is the triggering alternative of an asynchronous select, action
31429         statements mustbe inserted before the select itself.
31430
31431         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31432         case where the prefix is a protected function call.
31433         (Resolve_Attribute, case 'Access): The attribute reference on a
31434         subprogram is legal in a generic body if the subprogram is declared
31435         elsewhere.
31436
31437 2004-08-09  Vincent Celier  <celier@gnat.com>
31438
31439         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31440         languages, otherwise building the library may fail with unresolved
31441         symbols.
31442         (Compile_Sources): Do not build libraries if -c switch is used
31443
31444         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31445         (Write_Usage): If map file creation is supported, output new switches
31446         -M and -Mmap.
31447         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31448         gcc call, when supported.
31449
31450         * Makefile.in: Added indepsw.o to the object list for gnatlink
31451         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31452
31453         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31454         indepsw.adb, indepsw.ads: New files.
31455
31456 2004-08-09  Bernard Banner  <banner@gnat.com>
31457
31458         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31459
31460         * Makefile.in: add section for vxworks x86
31461
31462 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31463
31464         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31465         per-object constrained components where the discriminant is of an
31466         Access type.
31467         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31468         the parent initialization procedure for derived Unchecked_Unions.
31469         Instead, derived Unchecked_Unions build their own initialization
31470         procedure.
31471         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31472         Check the body of the subprogram for details.
31473         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31474         functions for derived Unchecked_Union types by introducing a condition.
31475         Allow the creation of TSS equality functions for Unchecked_Unions.
31476         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31477         Add formal parameter Discr to function signature. Discr is used to
31478         control the generated case statement for Unchecked_Union types.
31479         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31480
31481         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31482         Unchecked_Unions.
31483         Check the body of the subprogram for details.
31484         (Expand_Composite_Equality): Augment composite type equality to include
31485         correct handling of Unchecked_Union components.
31486         (Expand_N_In): Add condition to detect illegal membership tests when the
31487         subtype mark is a constrained Unchecked_Union and the expression lacks
31488         inferable discriminants, and build a Raise_Program_Error node.
31489         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31490         to detect types that contain components of unconstrained Unchecked_Union
31491         subtype. Add condition to detect equality between types that have an
31492         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31493         node. Add condition to detect equality between Unchecked_Union types
31494         that lack inferable discriminants, and build a Raise_Program_Error node.
31495         Otherwise build a TSS equality function call.
31496         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31497         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31498         with the operand lacking inferable discriminants, and build a Raise_
31499         Program_Error node.
31500         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31501         composite equality.
31502         (Has_Inferable_Discriminants): Implement new predicate for objects and
31503         expressions of Unchecked_Union type. Check the body of subprogram for
31504         details.
31505         (Has_Unconstrained_UU_Components): Add function
31506         Component_Is_Unconstrained_UU. It is used to detect whether a single
31507         component is of an unconstrained Unchecked_Union subtype. Add function
31508         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31509         component inside a variant is of an unconstrained Unchecked_Union type.
31510
31511         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31512         inferred discriminant values. Add condition to generate a case
31513         statement with an inferred discriminant as the switch.
31514         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31515         the behaviour of the subprogram in the presence of an Unchecked_Union.
31516         Add condition to trigger the usage of the inferred discriminant value
31517         as the generated case statement switch.
31518         (Make_Field_Assign): Introduce a Boolean flag that determines the
31519         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31520         condition to trigger the usage of the inferred discriminant value as
31521         the right-hand side of the generated assignment.
31522
31523         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31524         parameter generation when dealing with Unchecked_Unions.
31525
31526         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31527         checks for Unchecked_Unions.
31528
31529         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31530
31531         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31532         Raise_Program_Error nodes for the execution of Read and Write
31533         attributes of Unchecked_Union types and the execution of Input and
31534         Output attributes of Unchecked_Union types that lack default
31535         discriminant values.
31536
31537         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31538         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31539         per-object constrained components of Unchecked_Unions for being
31540         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31541         check individual components withing a variant.
31542
31543         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31544         comparison of Unchecked_Unions.
31545         (Resolve_Equality_OP): Remove guard that prevents equality between
31546         Unchecked_Unions.
31547
31548         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31549         of component subtypes for Unchecked_Union components.
31550         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31551         since it is the actual subtype.
31552
31553         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31554         pass of Unchecked_Union subtypes as generic actuals to formal types
31555         that lack known_discriminant_parts or that are derived Unchecked_Union
31556         types, and do nothing. In any other case, produce an error message.
31557
31558         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31559         Contains_POC. It determines whether a constraint uses the discriminant
31560         of an enclosing record type.
31561         Add condition to detect per-object constrained component and set the
31562         appropriate flag.
31563         (Derived_Type_Declaration): Remove guard that prevents derivation from
31564         Unchecked_Union types.
31565         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31566         Union subtypes.
31567
31568         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31569         references to Unchecked_Union discriminants.
31570
31571         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31572         formal generation when dealing with Unchecked_Unions.
31573         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31574         subtypes for Unchecked_Unions.
31575
31576         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31577         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31578         completions of discriminated partial views by Unchecked_Unions and
31579         produce an error message.
31580
31581 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31582
31583         * trans.c (struct stmt_group): New field, GLOBAL.
31584         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31585         (struct elab_info): New struct.
31586         (elab_info_list, gnu_elab_proc_stack): New variables.
31587         (Compilation_Unit_to_gnu): New procedure.
31588         (gigi): Call it and also handle elaboration procs we've saved.
31589         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31590         global field from parent.
31591         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31592         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31593         (start_stmt_group): Initialize global field from parent.
31594         (add_decl_expr): Set to global for current statement group.
31595         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31596         post.
31597
31598         * utils.c (global_bindings_p): True when no current_function_decl; no
31599         longer check current_binding_level.
31600
31601 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31602
31603         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31604         choice.
31605
31606         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31607
31608 2004-08-06  Andreas Schwab  <schwab@suse.de>
31609
31610         * utils.c (gnat_define_builtin): Remove second parameter of
31611         make_decl_rtl.
31612         (begin_subprog_body): Likewise.
31613
31614 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31615
31616         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31617         optimization, not supported by the tree-ssa back-end.
31618
31619 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31620
31621         * s-mastop-irix.adb: Update comments.
31622
31623         * a-except.adb (Exception_Information): Raise Constraint_Error if
31624         exception Id is Null_Id.
31625         This is required behavior, which is more reliably and clearly checked
31626         at the top level interface level.
31627
31628 2004-07-26  Javier Miranda  <miranda@gnat.com>
31629
31630         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31631         call if a component has no default_expression and the box is used.
31632
31633         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31634         default_expression and you use box, it behaves as if you had declared a
31635         stand-alone object.
31636         (Resolve_Record_Aggregate): If a component has no default_expression and
31637         you use box, it behaves as if you had declared a stand-alone object.
31638
31639         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31640         entities of private-with siblings.
31641
31642 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31643
31644         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31645         for a component of an itype, set the parent pointer for analysis,
31646         there is no list in which to insert it.
31647
31648         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31649         bona-fide renamings, not for inherited operations.
31650
31651         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31652         actual for a formal that is an access parameter, create local
31653         finalization list even if the expression is not an aggregate.
31654
31655 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31656
31657         PR ada/16213
31658         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31659         Diagnose properly illegal subprogram renamings that are library units.
31660
31661 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31662
31663         PR ada/15588
31664         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31665         conversion rewritten as an unchecked conversion, check that original
31666         expression is a variable.
31667
31668         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31669         unchecked_conversion, create new node rather than rewriting in place,
31670         to preserve original construct.
31671
31672 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31673
31674         * gigi.h (gnat_expand_body): Deleted.
31675
31676         * Make-lang.in: (trans.o): Depends on function.h.
31677
31678         * misc.c: (gnat_expand_body): Moved to here.
31679
31680         * trans.c (gnat_expand_body_1): Deleted.
31681         (gnat_expand_body): Moved from here.
31682         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31683         (add_stmt): Check for marked visited with global_bindings_p.
31684         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31685         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31686
31687         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31688         VIEW_CONVERT_EXPR if not operation type.
31689
31690         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31691         fat pointer.
31692
31693         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31694         changes: reformatting of negation operators, removing unneeded
31695         inequality comparison with zero, converting equality comparisons with
31696         zero to negations, changing int/0/1 to bool/false/true, replace calls
31697         to gigi_abort with abort, and various other similar changes.
31698
31699 2004-07-26  Vincent Celier  <celier@gnat.com>
31700
31701         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31702         "setup".
31703
31704         * make.adb (Gnatmake): Fail when a library is not present and there is
31705         no object directory.
31706
31707         * mlib-prj.adb (Check_Library): No need to check if the library needs
31708         to be rebuilt if there is no object directory, hence no object files
31709         to build the library.
31710
31711         * opt.ads (Setup_Projects): New Boolean flag.
31712
31713         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31714         Location.
31715         Create directory when Kind /= "" and in "gnat setup". Report error if
31716         directory cannot be created.
31717         (Ada_Check): Create library interface copy dir if it does not exist
31718         and we are in "gnat setup".
31719         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31720         found.
31721         (Language_Independent_Check): Create object directory, exec directory
31722         and/or library directory if they do not exist and we are in
31723         "gnat setup".
31724
31725         * vms_conv.ads: (Command_Type): New command Setup.
31726
31727         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31728
31729         * vms_data.ads: Add qualifiers/switches for new built-in command
31730         "setup".
31731
31732 2004-07-25  Richard Henderson  <rth@redhat.com>
31733
31734         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31735         DECL_IGNORED_P on RESULT_DECL.
31736
31737 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31738
31739         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31740         allocation and potentially overflowing update with
31741         Tailored_Exception_Information. Use the sec-stack free procedural
31742         interface to output Exception_Information instead.
31743
31744         * a-except.adb (To_Stderr): New subprogram for character, and string
31745         version moved from a-exextr to be visible from other separate units.
31746         (Tailored_Exception_Information): Remove the procedural version,
31747         previously used by the default Last_Chance_Handler and not any more.
31748         Adjust various comments.
31749
31750         * a-exexda.adb: Generalize the exception information procedural
31751         interface, to minimize the use of secondary stack and the need for
31752         local buffers when the info is to be output to stderr:
31753         (Address_Image): Removed.
31754         (Append_Info_Character): New subprogram, checking for overflows and
31755         outputing to stderr if buffer to fill is of length 0.
31756         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31757         (Append_Info_Address, Append_Info_Exception_Name,
31758         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31759         Append_Info_Basic_Exception_Traceback,
31760         Append_Info_Exception_Information): New subprograms.
31761         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31762         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31763         Exception_Info_Maxlength, Exception_Name_Length,
31764         Exception_Message_Length): New subprograms.
31765         (Exception_Information): Use Append_Info_Exception_Information.
31766         (Tailored_Exception_Information): Use
31767         Append_Info_Basic_Exception_Information.
31768         Export services for the default Last_Chance_Handler.
31769
31770         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31771         other separate units.
31772
31773 2004-07-20  Vincent Celier  <celier@gnat.com>
31774
31775         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31776
31777 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31778
31779         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31780         emit itype references for the designated types of component types that
31781         are declared outside of the full record declaration, and that may
31782         denote a partial view of that record type.
31783
31784 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31785
31786         PR ada/15607
31787         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31788         which is the designated type in an access component declaration, to the
31789         list of incomplete dependents of the parent type, to avoid elaboration
31790         issues with out-of-scope subtypes.
31791         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31792         full view of the parent.
31793
31794 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31795
31796         PR ada/15610
31797         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31798         entities that are hidden, such as references to generic actuals
31799         outside an instance.
31800
31801 2004-07-20  Javier Miranda  <miranda@gnat.com>
31802
31803         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31804         support to the new notation.
31805         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31806
31807 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31808
31809         * s-taprob.adb: Adding the elaboration code required for initializing
31810         the tasking soft links that are common to the full and the restricted
31811         run times.
31812
31813         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31814         restricted run time has been moved to the package
31815         System.Soft_Links.Tasking.
31816
31817         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31818         restricted run time has been moved to the package
31819         System.Soft_Links.Tasking.
31820
31821         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31822
31823         * s-solita.ads, s-solita.adb: New files.
31824
31825 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31826
31827         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31828         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31829         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31830         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31831         Exception_Handler_to_gnu_zcx): Likewise.
31832
31833 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31834
31835         * gigi.h (builtin_function): Declare.
31836
31837 2004-07-15  Robert Dewar  <dewar@gnat.com>
31838
31839         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31840         reformatting
31841
31842         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31843         access values as an example of a warning.
31844
31845         * gnat_rm.texi: Document new attribute Has_Access_Values
31846
31847         * gnat-style.texi: Document that box comments belong on nested
31848         subprograms
31849
31850         * sem_util.ads (Has_Access_Values): Improved documentation
31851
31852         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31853
31854         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31855         (Process_Interface_Name): Call to this new procedure
31856         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31857
31858         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31859
31860         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31861
31862         * einfo.ads: Minor comment typo fixed
31863
31864 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31865
31866         * snames.adb: Add _atcb.
31867
31868         * snames.ads: Add Name_uATCB.
31869
31870         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31871         (in the expanded code) when using the restricted run time.
31872
31873         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31874         a in parameter in order to allow ATCBs to be preallocated (in the
31875         expanded code).
31876
31877         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31878         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31879         deallocated in System.Tasking.Stages.
31880
31881         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31882         order to allow ATCBs to be preallocated.
31883
31884         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31885         here. It was previously done in Initialize_ATCB.
31886
31887         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31888
31889         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31890         Restricted run time.
31891
31892         * exp_ch3.adb: When using the Restricted run time, pass the
31893         preallocated Ada_Task_Control_Block when creating a task.
31894
31895 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31896
31897         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31898         function call that is itself an actual in an enclosing call, diagnose
31899         problem here rather than assuming that resolution will catch it.
31900
31901         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31902         the local copy of a generic unit for a formal package, and the generic
31903         is a child unit, install private part of ancestors before compiling
31904         private part of spec.
31905
31906         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31907         use scope entities rather than tree structures, to handle properly
31908         parent units that are instances rewritten as bodies for inlining
31909         purposes.
31910
31911         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31912         Remove_Parents): Handle properly a parent unit that is an
31913         instantiation, when the unit has been rewritten as a body for inlining
31914         purposes.
31915
31916         * par.adb (Goto_List): Global variable to collect goto statements in a
31917         given unit, for use in detecting natural loops.
31918
31919         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31920         use in detecting natural loops.
31921
31922         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31923         backwards goto's, and rewrite as a infinite loop, to improve locality
31924         of temporaries.
31925
31926         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31927         subcomponent that includes an indexed reference, to prevent the
31928         generation of copies that would miscompile the desired assignment
31929         statement.
31930         (Build_Task_Image_Decls): Add a numeric suffix to
31931         generated name for string variable, to avoid spurious conflicts with
31932         the name of the type of a single protected object.
31933
31934         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31935         loop with an explicit exit statement, to avoid generating an
31936         out-of-range value with 'Succ leading to spurious constraint_errors
31937         when compiling with -gnatVo.
31938
31939 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31940
31941         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31942         might not be analyzed yet, even if its Etype is already set (case of an
31943         unchecked conversion built using Unchecked_Convert_To, for example).
31944         If the prefix has already been analyzed, this will be a nop anyway.
31945
31946         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31947         controller type, or an assignment of a record type with controlled
31948         components, copy only user data, and leave the finalization chain
31949         pointers untouched.
31950
31951 2004-07-15  Vincent Celier  <celier@gnat.com>
31952
31953         * make.adb (Collect_Arguments): Improve error message when attempting
31954         to compile a source not part of any project, when -x is not used.
31955
31956         * prj.ads: (Defined_Variable_Kind): New subtype
31957
31958         * prj-attr.adb (Register_New_Package): Two new procedures to register
31959         a package with or without its attributes.
31960         (Register_New_Attribute): Mew procedure to register a new attribute in a
31961         package.
31962         New attribute oriented subprograms: Attribute_Node_Id_Of,
31963         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31964         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31965         Next_Attribute.
31966         New package oriented subprograms: Package_Node_Id_Of,
31967         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31968
31969         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31970         type.
31971         (Package_Node_Id): Now a private, self initialized type
31972         (Register_New_Package): New procedure to register a package with its
31973         attributes.
31974         New attribute oriented subprograms: Attribute_Node_Id_Of,
31975         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31976         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31977         Next_Attribute.
31978         New package oriented subprograms: Package_Node_Id_Of,
31979         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31980
31981         * prj-dect.adb (Parse_Attribute_Declaration,
31982         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31983
31984         * prj-makr.adb (Make): Parse existing project file before creating
31985         other files. Fail if there was an error during parsing.
31986
31987         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31988         new spec of Prj.Attr.
31989
31990         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31991         to new spec of Prj.Attr.
31992
31993 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31994
31995         * utils2.c: Fix typo in comment.
31996
31997 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31998
31999         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32000         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32001
32002 2004-07-14  Andreas Schwab  <schwab@suse.de>
32003
32004         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32005
32006 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32007
32008         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32009         object type.
32010         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32011         TYPE_STUB_DECL.
32012
32013         * misc.c (gnat_types_compatible_p): New function.
32014         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32015         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32016
32017         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32018         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32019         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32020         (mark_visited): Don't mark dummy type.
32021         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
32022         parameter, we must remove any LJM building from GNU_NAME.
32023         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32024         (pos_to_constructor): Use int_const_binop.
32025         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32026         PARM_DECL.
32027
32028         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32029         (gnat_pushlevel): Set TREE_USE on BLOCK node.
32030         (gnat_install_builtins): Add __builtin_memset.
32031
32032 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
32033
32034         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32035         for a renaming, stabilize the initialization expression if we are at a
32036         local level.  At the local level, uses of the renaming may be performed
32037         by a direct dereference of the initializing expression, and we don't
32038         want possible variables there to be evaluated for every use.
32039
32040         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32041         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32042         them on the way.  Account for the fact that we may introduce side
32043         effects in the process.
32044
32045 2004-07-13  Richard Henderson  <rth@redhat.com>
32046
32047         * misc.c (default_pass_by_ref): Use pass_by_reference.
32048
32049 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
32050
32051         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32052         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32053
32054 2004-07-08  Richard Henderson  <rth@redhat.com>
32055
32056         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32057         commentary.
32058
32059 2004-07-06  Vincent Celier  <celier@gnat.com>
32060
32061         * vms_conv.ads: Minor reformatting.
32062         Alphabetical order for enumerated values of type Command_Type, to have
32063         the command in alphabetical order for the usage.
32064
32065         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32066         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32067
32068         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32069
32070         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32071         (Add_Archive_Path): Only add the global archive if there is one.
32072         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32073         or not any object file to put in the global archive, and don't build
32074         a global archive if there is none.
32075         (X_Switches): New table
32076         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32077         in the X_Switches table, if any.
32078         (Initialize): Make sure the X_Switches table is empty
32079         (Scan_Arg): Record -X switches in table X_Switches
32080
32081         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32082
32083         * make.adb: Minor comment fix
32084
32085         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32086         invoked with directory information, add the directory in front of the
32087         path.
32088
32089         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32090         invoked with directory information, add the directory in front of the
32091         path.
32092
32093         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32094         when Keep_Temporary_Files is False.
32095         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32096         directory information, add the directory in front of the path.
32097         When not on VMS, handle new switch -dn before the command to set
32098         Keep_Temporary_Files to True.
32099         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32100         everywhere.
32101
32102         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32103         invoked with directory information, add the directory in front of the
32104         path.
32105
32106 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
32107
32108         * snames.ads, snames.adb (Name_Stub): New name for the distributed
32109         systems annex.
32110
32111         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32112         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32113
32114         * g-socket.adb (To_Timeval): Fix incorrect conversion of
32115         Selector_Duration to Timeval for the case of 0.0.
32116
32117         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32118         documentation from Evolve_And_Then.
32119
32120 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
32121
32122         * s-taprop-tru64.adb, s-taprop-os2.adb,
32123         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32124
32125 2004-07-06  Robert Dewar  <dewar@gnat.com>
32126
32127         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32128         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32129         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32130         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32131         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32132         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32133         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32134         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32135         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32136         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32137         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32138         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32139         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32140         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32141         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32142         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32143         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32144         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32145         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32146         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32147         vms_data.ads: Minor reformatting,
32148         Fix bad box comment format.
32149
32150         * gnat_rm.texi: Fix minor grammatical error
32151
32152         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32153
32154         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32155         more cases of discriminated records to be recognized as not needing a
32156         secondary stack.
32157         (Has_Access_Values): New function.
32158
32159         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32160
32161         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32162         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32163         with LRM terminology).
32164         Change terminology in comments primitive type => elementary type.
32165
32166 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32167
32168         PR ada/15602
32169         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32170         parameters do not impose any requirements on the presence of a body.
32171
32172 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32173
32174         PR ada/15593
32175         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32176         compilation unit and is in an open scope at the point of instantiation,
32177         assume that a body may be present later.
32178
32179 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32180
32181         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32182         Improve error message when specified size is not supported.
32183
32184         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32185         is never a primitive operation.
32186
32187 2004-07-05  Andreas Schwab  <schwab@suse.de>
32188
32189         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32190         RECORD_OR_UNION_CHECK.
32191         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32192
32193 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
32194
32195         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32196         dependency on xgnatugn, instead build it via a submake.
32197         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32198
32199 2004-07-04  Richard Henderson  <rth@redhat.com>
32200
32201         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32202
32203 2004-07-01  Richard Henderson  <rth@redhat.com>
32204
32205         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32206         * utils.c (max_size): Likewise.
32207
32208 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32209
32210         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32211         and rest_of_type_compilation; add arg to create_*_decl.
32212         (annotate_decl_with_node): Deleted.
32213         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32214         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32215         (get_current_block_context, gnat_pushdecl): New declarations.
32216         (gnat_init_stmt_group): Likewise.
32217         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32218         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32219         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32220         (gnat_init): Call gnat_init_stmt_group.
32221         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32222         (gnu_pending_elaboration_list): Deleted.
32223         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32224         (gigi): Rearrange initialization calls and move some to last above.
32225         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32226         Delete calls to add_decl_expr; add arg to create_*_decl.
32227         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32228         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32229         begin_subprog_body and call it.
32230         Don't push and pop ggc context.
32231         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32232         (add_stmt): Remove handling of DECL_EXPR from here.
32233         If not in function, mark visited.
32234         (add_decl_expr): Put global at top level.
32235         Check for cases of DECL_INITIAL we have to handle here.
32236         (process_type): Add extra arg to create_type_decl.
32237         (build_unit_elab): Rework to just gimplify.
32238         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32239         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32240         (get_pending_elaborations, pending_elaborations_p): Likewise.
32241         (push_pending_elaborations, pop_pending_elaborations): Likewise.
32242         (get_elaboration_location, insert_elaboration_list): Likewise.
32243         (gnat_binding_level): Renamed from ada_binding_level.
32244         (init_gnat_to_gnu): Don't clear pending_elaborations.
32245         (global_bindings_p): Treat as global if no current_binding_level.
32246         (set_current_block_context): New function.
32247         (gnat_pushdecl): Renamed from pushdecl; major rework.
32248         All callers changed.
32249         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32250         (finish_record_type): Call call pushdecl for stub decl.
32251         (function_nesting_depth): Deleted.
32252         (begin_subprog_body): Delete obsolete code.
32253         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32254
32255 2004-06-28  Robert Dewar  <dewar@gnat.com>
32256
32257         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32258         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32259         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32260         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32261         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32262
32263         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32264         deal with problem of inefficient slices on machines with strict
32265         alignment, when the slice is a component of a composite.
32266
32267         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32268         machines, we need the check there as well.
32269
32270 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32271
32272         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32273         determine safe copying direction for overlapping slice assignments
32274         when component is controlled.
32275
32276         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32277         formal derived type in the actual for a formal package are visible in
32278         the enclosing instance.
32279
32280 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32281
32282         PR ada/15600
32283         * sem_util.adb (Trace_Components): Diagnose properly an illegal
32284         circularity involving a private type whose completion includes a
32285         self-referential component.
32286         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32287         renaming or an instantiation from an implicit derived operation.
32288
32289 2004-06-28  Pascal Obry  <obry@gnat.com>
32290
32291         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32292         DLL.
32293         (Library_File_Name_For): Idem.
32294
32295 2004-06-28  Matthew Gingell  <gingell@gnat.com>
32296
32297         * g-traceb.ads: Add explanatory note on the format of addresses
32298         expected by addr2line.
32299
32300 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
32301
32302         * Makefile.in: Force debugging information on s-tasdeb.adb,
32303         a-except.adb and s-assert.adb needed by the debugger.
32304
32305 2004-06-28  Vincent Celier  <celier@gnat.com>
32306
32307         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32308         Need_To_Build_Lib.
32309         (Gnatmake): Ditto.
32310
32311         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32312
32313         * prj.adb: Minor reformatting
32314         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32315
32316         * prj.ads: Comment updates
32317         Minor reformatting
32318         (Project_Data): Change Flag1 to Need_To_Build_Lib.
32319         Remove Flag2: not used.
32320
32321         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32322         declaration.
32323
32324         * gnat_ugn.texi: Put a "null;" declaration in one project file example
32325
32326         * gnat_rm.texi: Document Empty declarations "null;".
32327
32328         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32329         front of the linker options.
32330         (Link_Foreign): Put the global archives and the libraries in front of
32331         the linker options.
32332
32333 2004-06-28  Javier Miranda  <miranda@gnat.com>
32334
32335         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32336         (RTU_Loaded): Code cleanup
32337         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32338         withed predefined units.
32339
32340         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32341         explicitly withed predefined units.
32342         Fix typo in comment
32343
32344         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32345         explicitly withed predefined units.
32346
32347 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32348
32349         * ada-tree.def (DECL_STMT): Deleted.
32350         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32351         (DECL_STMT_VAR): Deleted.
32352         * decl.c: add_decl_stmt now add_decl_expr.
32353         * gigi.h: Likewise.
32354         * trans.c: Likewise.
32355         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32356         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32357         (add_stmt): Only handle padded type here.
32358         (add_stmt_with_node): Allow gnat_node to not be present.
32359         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32360         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32361         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32362         make a SAVE_EXPR for the entire fat pointer.
32363         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32364         (create_index_type): Make a DECL_EXPR.
32365         (end_subprog_body): Don't call allocate_struct_function here but
32366         do clear cfun.
32367
32368 2004-06-25  Pascal Obry  <obry@gnat.com>
32369
32370         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32371         Relocatable from Build_Dynamic_Library call.
32372
32373         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32374         Relocatable are now synonym.
32375
32376         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32377
32378         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32379         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32380         call.
32381
32382         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32383         Lib_Address and Relocatable.
32384         (Default_DLL_Address): Removed.
32385
32386         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32387         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32388         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32389         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32390         (Default_DLL_Address): Removed.
32391
32392         * mlib-tgt-mingw.adb: Ditto.
32393         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32394
32395         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32396         the initial thread stack size.
32397
32398         * a-strmap.ads: Move package L to private part as it is not used in
32399         the spec. Found while reading code.
32400
32401 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
32402
32403         * tracebak.c: Introduce support for a GCC infrastructure based
32404         implementation of __gnat_backtrace.
32405
32406         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32407         any more. Use accessors instead. This eases maintenance and relaxes
32408         some alignment constraints.
32409         (_GNAT_Exception structure): Remove the Ada specific fields
32410         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32411         a-exexpr.adb.
32412         (is_handled_by, __gnat_eh_personality): Replace component references to
32413         exception structure by use of the new accessors.
32414
32415         * init.c (__gnat_initialize): Adjust comments to match the just
32416         reverted meaning of the -static link-time option.
32417
32418         * adaint.c (convert_addresses): Arrange not to define a stub for
32419         mips-irix any more, as we now want to rely on a real version from a
32420         recent libaddr2line.
32421
32422         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32423         the personality routine can use them and not have to rely on a C
32424         counterpart of the record anymore. This simplifies maintenance and
32425         relaxes the constraint of having Standard'Maximum_Alignment match
32426         BIGGEST_ALIGNMENT.
32427         Update comments, and add a section on the common header alignment issue.
32428
32429 2004-06-25  Geert Bosch  <bosch@gnat.com>
32430
32431         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32432         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32433
32434 2004-06-25  Robert Dewar  <dewar@gnat.com>
32435
32436         * gnat_rm.texi: Fix section on component clauses to indicate that the
32437         restriction on byte boundary placement still applies for bit packed
32438         arrays.
32439         Add comment on stack usage from Initialize_Scalars
32440
32441         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32442
32443         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32444         limiting nesting level.
32445
32446         * usage.adb: Add line for -gnatyLnnn switch
32447
32448         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32449         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32450
32451         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32452         type as well as on the subtype. This corrects a problem in freeze in
32453         setting alignments of atomic types.
32454
32455         * sem_eval.ads: Minor comment typo fixed
32456
32457         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32458         level.  Minor reformatting.
32459
32460         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32461         minus sign. This means that file names like a--b.adb will not be
32462         considered predefined.
32463
32464         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32465         record Test new flag and give diagnostic for bad component clause.
32466         (Freeze_Entity): Set alignment of array from component alignment in
32467         cases where this is safe to do.
32468
32469         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32470         arrays.
32471
32472         * cstand.adb: (Create_Standard): Set alignment of String to 1
32473
32474         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32475
32476         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32477         code in the common constrained array cases.
32478
32479         * a-storio.adb: Change implementation to avoid possible alignment
32480         problems on machines requiring strict alignment (data should be moved
32481         as type Buffer, not type Elmt).
32482
32483         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32484         killing the overflow checks which we really do not need (64-bits is
32485         enough).
32486
32487 2004-06-25  Vincent Celier  <celier@gnat.com>
32488
32489         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32490         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32491         inconditionally for the main project.
32492         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32493         (Link_Executables.Check_Time_Stamps): New procedure
32494         (Link_Executables.Link_Foreign): New procedure
32495         Changes made to reduce nesting level of this package
32496         (Check): New procedure
32497         (Add_Switches): When not in quiet output, check that a switch is not
32498         the concatenation of several valid switches. If it is, issue a warning.
32499         (Build_Global_Archive): If the global archive is rebuilt, linking need
32500         to be done.
32501         (Compile_Sources): Rebuilding a library archive does not imply
32502         rebuilding the global archive.
32503         (Build_Global_Archive): New procedure
32504         (Build_Library): New name for Build_Archive, now only for library
32505         project
32506         (Check_Archive_Builder): New procedure
32507         (Create_Global_Archive_Dependency_File): New procedure
32508         (Gprmake): Call Build_Global_Archive before linking
32509         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32510         throughout.
32511         (Scan_Arg): Display the Copyright notice when -v is used
32512
32513         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32514         for gnatls.
32515
32516         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32517         COMPILE.
32518         Add new GNAT LIST qualifier /FILES=
32519         Added qualifier /DIRECTORY= to GNAT METRIC
32520         Added qualifier /FILES= to GNAT METRIC
32521         Added qualifier /FILES to GNAT PRETTY
32522
32523         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32524         to take into account both versions of the switch.
32525
32526         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32527         always be the last switch to the gcc driver. Disable switch storing so
32528         that switches automatically added by the gcc driver are not put in the
32529         ALI file.
32530
32531         * prj.adb (Project_Empty): Take into account changes in components of
32532         Project_Data.
32533
32534         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32535
32536         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32537         used. Split Boolean component Ada_Sources_Present in two Boolean
32538         components Ada_Sources_Present and Other_Sources_Present.
32539         Minor reformatting
32540
32541         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32542         instead of Sources_Present.
32543         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32544
32545         * prj-nmsc.adb: Minor reformatting
32546         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32547         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32548         Check_Ada_Naming_Scheme.
32549         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32550         throughout.
32551
32552         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32553         In_Limited.
32554         Make sure that all cycles where there is at least one "limited with"
32555         are detected.
32556         (Parse_Single_Project): New Boolean parameter In_Limited
32557
32558         * prj-proc.adb (Recursive_Check): When Process_Languages is
32559         All_Languages, call first Prj.Nmsc.Ada_Check, then
32560         Prj.Nmsc.Other_Languages_Check.
32561
32562         * prj-proc.adb (Process): Use Ada_Sources_Present or
32563         Other_Sources_Present (instead of Sources_Present) depending on
32564         Process_Languages.
32565
32566         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32567         last switches.
32568
32569         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32570         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32571         False.
32572         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32573         False.
32574
32575         * lib.ads (Disable_Switch_Storing): New procedure.
32576
32577         * make.adb: Modifications to reduce nesting level of this package.
32578         (Check_Standard_Library): New procedure
32579         (Gnatmake.Check_Mains): New procedure
32580         (Gnatmake.Create_Binder_Mapping_File): New procedure
32581         (Compile_Sources.Compile): Add switch -gnatez as the last option
32582         (Display): Never display -gnatez
32583
32584         * Makefile.generic:
32585         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32586
32587         * gnatcmd.adb (Check_Project): New function
32588         (Process_Link): New procedure to reduce nesting depth
32589         (Check_Files): New procedure to reduce the nesting depth.
32590         For GNAT METRIC, include the inherited sources in extending projects.
32591         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32592         add the list of files from the sources of the project file. If this list
32593         is too long, put it in a temp text files and use switch -files=
32594         (Delete_Temp_Config_Files): Delete the temp text file that contains
32595         a list of source for gnatpp or gnatmetric, if one has been created.
32596         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32597         in the project file is too large, create a temporary text file that
32598         list them and pass it to the tool with "-files=<temp text file>".
32599         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32600
32601         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32602         generated file is in not in Ada.
32603
32604         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32605         (Scan_Ls_Arg): Add processing for -files=
32606         (Usage): Add line for -files=
32607
32608         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32609         (Normalize_Pathname): When on Windows and the path starts with a
32610         directory separator, make sure that the resulting path will start with
32611         a drive letter.
32612
32613         * clean.adb (Clean_Archive): New procedure
32614         (Clean_Project): When there is non-Ada code, delete the global archive,
32615         the archive dependency files, the object files and their dependency
32616         files, if they exist.
32617         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32618
32619 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32620
32621         * sinfo.ads: Fix typo in comment.
32622
32623         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32624         the TSS for remote access-to-subprogram types, since these TSS are
32625         always present once the type has been analyzed.
32626         (RAS_E_Dereference): Same.
32627
32628         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32629         reference raises Bad_Attribute, mark the reference as analyzed so the
32630         node (and any children resulting from rewrites that could have occurred
32631         during the analysis that ultimately failed) is not analyzed again.
32632
32633         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32634
32635         * exp_dist.adb: Minor comment fix.
32636
32637         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32638         type is an anonymous access type, no unchecked deallocation of the
32639         allocated object can occur. If the object is controlled, attach it with
32640         a count of 1. This allows attachment to the Global_Final_List, if
32641         no other relevant list is available.
32642         (Get_Allocator_Final_List): For an anonymous access type that is
32643         the type of a discriminant or record component, the corresponding
32644         finalisation list is the one of the scope of the type.
32645
32646 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32647
32648         * sem_ch3.adb (Replace_Type): When computing the signature of an
32649         inherited subprogram, use the first subtype if the derived type
32650         declaration has no constraint.
32651
32652         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32653         before applying previous optimization. Minor code cleanup.
32654
32655         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32656         placed at the beginning of an unpacked record without explicit
32657         alignment, a slice of it will be aligned and does not need a copy when
32658         used as an actual.
32659
32660 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32661
32662         PR ada/15591
32663         PR ada/15592
32664         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32665         reference is written with expressions mimicking parameters.
32666
32667 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32668
32669         PR ada/15589
32670         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32671         STEP 2a. The constraints of a full type declaration of a derived record
32672         type are checked for conformance with those declared in the
32673         corresponding private extension declaration. The message
32674         "not conformant with previous declaration" is emitted if an error is
32675         detected.
32676
32677 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32678
32679         * g-traceb.ads: Document the need for -E binder switch in the spec.
32680
32681         * g-trasym.ads: Document the need for -E binder switch in the spec.
32682
32683 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32684
32685         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32686
32687         * snames.h, snames.ads, snames.adb: Add entry for pragma
32688         Detect_Blocking.
32689
32690         * s-rident.ads: Change reference to pragma Detect_Blocking.
32691
32692         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32693         system.ads.
32694
32695         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32696         to indicate whether pragma Detect_Blocking is active.
32697
32698         * par-prag.adb: Add entry for pragma Detect_Blocking.
32699
32700         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32701         of not handling WITH.
32702         Note that this replaces the previous update which was incorrect.
32703
32704 2004-06-25  Javier Miranda  <miranda@gnat.com>
32705
32706         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32707         use-clauses to have a clean environment.
32708
32709         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32710         the installation of the use-clauses to stablish a clean environment in
32711         case of compilation of a separate unit; otherwise the call to
32712         use_one_package is protected by the barrier Applicable_Use.
32713
32714         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32715         the installation of the use-clauses to stablish a clean environment in
32716         case of compilation of a separate unit.
32717         (End_Use_Clauses): Minor comment cleanup.
32718
32719 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32720
32721         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32722
32723 2004-06-23  Richard Henderson  <rth@redhat.com>
32724
32725         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32726
32727 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32728
32729         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32730         now bool instead of int.
32731         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32732         * trans.c (gnu_switch_label_stack): New function.
32733         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32734         elaboration of renamed entity returns.
32735         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32736         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32737         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32738         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32739         DECL_SIZE_UNIT and simplify variable-sized case.
32740         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32741         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32742         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32743         (build_unit_elab): Disable for now.
32744         * utils.c (mark_visited): New function.
32745         (pushdecl): Walk tree to call it for global decl.
32746         (update_pointer_to): Update all variants of pointer and ref types.
32747         Add arg to COMPONENT_REF.
32748         (convert): Likewise.
32749         Move check for converting between variants lower down.
32750         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32751         (build_allocator): Don't force type of MODIFY_EXPR.
32752         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32753         put_var_into_stack.
32754
32755 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32756
32757         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32758         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32759         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32760         subprograms.
32761         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32762         all callers changed.
32763         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32764         the way that EXIT_STMT finds the loop label.
32765         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32766         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32767         (add_stmt): Use annotate_with_locus insted of setting directly.
32768         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32769         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32770         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32771         (build_vms_descriptor): Add extra args to ARRAY_REF.
32772         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32773         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32774         New cases.
32775         (build_binary_op): Don't make explicit CONVERT_EXPR.
32776         Add extra rgs to ARRAY_REF.
32777
32778 2004-06-14  Pascal Obry  <obry@gnat.com>
32779
32780         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32781         Windows.  Fix minor typo.
32782
32783         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32784         which is now supported on Windows. With this implementation using the
32785         Library Project feature is no different on Windows than on UNIX.
32786
32787 2004-06-14  Vincent Celier  <celier@gnat.com>
32788
32789         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32790         non-Ada sources.
32791
32792         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32793
32794         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32795         found, show the project name and the path of the previously parsed
32796         project file.
32797
32798 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32799
32800         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32801         array, avoid copying the actual before the call.
32802
32803 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32804
32805         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32806         Instead, allocate memory on worst-case alignment assumptions, and then
32807         return an aligned address within the allocated zone.
32808
32809 2004-06-14  Robert Dewar  <dewar@gnat.com>
32810
32811         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32812         elab entities in predefined units in No_Run_Time_Mode.
32813         (Gen_Adainit_C): Same fix
32814         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32815         units in No_Run_Time_Mode
32816         (Gen_Elab_Calls_C): Same fix
32817
32818         * symbols-vms-alpha.adb: Minor reformatting
32819
32820         * g-debpoo.ads: Minor reformatting
32821
32822         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32823
32824         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32825
32826         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32827         working on nodes.
32828
32829         * make.adb: Minor reformatting
32830
32831         * par-ch12.adb: Minor reformatting
32832
32833         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32834
32835         * prj-strt.adb: Minor reformatting
32836
32837         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32838         be more general.
32839
32840         * sem_attr.adb: Minor reformatting
32841
32842         * sem_ch7.adb: Minor reformatting
32843
32844         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32845         for type in the same unit as the object declaration.
32846
32847         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32848         static string expressions and not just string literals.
32849         Minor reformatting
32850         (Set_Warning): Reset restriction warning flag for restriction pragma
32851         Implement pragma Profile_Warnings
32852         Implement pragma Profile (Restricted)
32853         Give obolescent messages for old restrictions and pragmas
32854
32855         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32856         Profile_Warnings.
32857
32858         * s-rident.ads: Add declarations for restrictions required by profile
32859         Restricted and profile Ravenscar.
32860
32861         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32862
32863         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32864         configuration pragmas.
32865
32866 2004-06-11  Vincent Celier  <celier@gnat.com>
32867
32868         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32869         gnatsym, when symbol policy is Restricted.
32870
32871         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32872         gnatsym, when symbol policy is Restricted.
32873
32874         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32875         read the symbol file.
32876         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32877         symbol file is not in the object files. Do not create a new symbol file
32878         when symbol policy is Restricted.
32879
32880         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32881         in Scng.
32882
32883         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32884         Restricted.
32885         (Usage): Line for new switch -R
32886
32887         * make.adb (Initialize): When the platform is not VMS, add the
32888         directory where gnatmake is invoked in the front of the path, if
32889         gnatmake is invoked with directory information.  Change the Scan_Args
32890         while loop to a for loop.
32891         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32892         if Depth is equal or greater than the proposed depth, there is nothing
32893         to do.
32894         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32895         instead of 0.
32896
32897         * prj.ads: Add new symbol policy Restricted.
32898
32899         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32900         with the new parameters Check_All_Labels and Case_Location.
32901
32902         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32903         (Library_Symbol_File needs to be defined).
32904
32905         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32906         and Case_Location If Check_All_Labels is True, check that all values of
32907         the string type are used, and output warning(s) if they are not.
32908
32909         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32910         and Case_Location.
32911
32912         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32913
32914         * gnat_ugn.texi: Update documentation about the library directory in
32915         Library Projects.
32916
32917         * makegpr.adb (Display_Command): In verbose mode, also display the
32918         value of the CPATH env var, when the compiler is gcc.
32919         (Initialize): Change the Scan_Args while loop to a for loop
32920         (Compile_Individual_Sources): Change directory to object directory
32921         before compilations.
32922
32923         * symbols.ads: New symbol policy Restricted.
32924
32925 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32926
32927         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32928         is now taken care of internally in the Exception_Propagation package
32929         and does not require clients assistance any more.
32930
32931         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32932         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32933         functions. Helpers to maintain a predicate required in the handling of
32934         occurrence transfer between tasks.
32935         This is now handled internally and does not require clients assistance
32936         for the setup/propagate separation anymore.
32937         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32938         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32939         document.
32940
32941         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32942         raise_after_setup, now that everything is handled internally within the
32943         setup/propagation engine.
32944
32945 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32946
32947         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32948         Add additional conditions for the case of an actual being a simple
32949         name or literal. Improve inlining by preventing the generation
32950         of temporaries with a short lifetime (one use).
32951
32952 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32953
32954         PR ada/15587
32955         * einfo.ads: Minor comment updates for Has_Completion and
32956         E_Constant list of flags.
32957
32958         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32959         and constant redeclarations now set the Has_Completion flag of their
32960         defining identifiers.
32961
32962         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32963         Inspect_Deferred_Constant_Completion.
32964         Used to detect private deferred constants that have not been completed
32965         either by a constant redeclaration or pragma Import. Emits error message
32966         "constant declaration requires initialization expression".
32967
32968         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32969         completes a deferred constant.
32970
32971 2004-06-11  Geert Bosch  <bosch@gnat.com>
32972
32973         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32974
32975         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32976         calculating exponent for scaling denormal numbers.
32977         (Leading_Part): Properly raise Constraint_Error for zero or negative
32978         Adjustment.
32979         (Remainder): Properly raise Constraint_Error for zero divisor.
32980
32981 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32982
32983         * sem_util.adb: Minor reformatting.
32984
32985         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32986         dereference when accessing the entry parameter record.
32987         (Check_Array_Type): Always check for possible implicit dereference.
32988         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32989         Abort if a pointer is still present (denoting that an implicit
32990         dereference was left in the tree by the front-end).
32991
32992         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32993         dereference when accessing the entry parameter record.
32994         (Check_Array_Type): Always check for possible implicit dereference.
32995         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32996         Abort if a pointer is still present (denoting that an implicit
32997         dereference was left in the tree by the front-end).
32998
32999 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
33000
33001         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33002         message, like the compiler itself does. Easier to parse the output.
33003
33004         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33005
33006         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33007         be base names, and not includes directories.
33008
33009 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
33010
33011         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33012         so that dependencies are properly taken into account by make.
33013
33014 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
33015
33016         PR ada/15622
33017         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33018         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33019
33020 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
33021
33022         * Makefile.in (install-gnatlib): install target-specific run-time files.
33023
33024         * Make-lang.in: Remove obsolete targets.
33025
33026 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
33027
33028         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33029         specification, to catch misuses of program unit names.
33030
33031         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33032         superfluous conversions in an instance.
33033
33034 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
33035
33036         PR ada/15403
33037         * sem_ch12.adb (Save_References): If operator node has been folded to
33038         enumeration literal, associated_node must be discarded.
33039
33040 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
33041
33042         * s-stchop-vxworks.adb: Add required pragma Convention to
33043         Task_Descriptor because it is updated by a C function.
33044
33045 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
33046
33047         PR ada/15568
33048         * Makefile.in: Remove target specific SO_OPT on IRIX
33049
33050 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33051
33052         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33053         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33054         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33055         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33056         (STMT_STMT, USE_STMT): New statement codes.
33057         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33058         * ada-tree.h: Reflect above changes.
33059         (struct tree_loop_id): Deleted.
33060         (union lang_tree_node, struct lang_decl, struct lang_type):
33061         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33062         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33063         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33064         (IS_ADA_STMT): New macro.
33065         * decl.c (annotate_decl_with_node): New function.
33066         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33067         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33068         Call add_stmt_with_node to do needed assignments.
33069         Add call to update setjmp buffer directly, not via EXPR_STMT.
33070         (maybe_variable): Argment GNAT_NODE deleted.
33071         * gigi.h (maybe_variable): Likewise.
33072         (make_transform, add_stmt_with_node, set_block_for_group): New.
33073         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33074         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33075         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33076         (set_lineno, set_lineno_from_sloc): Likewise.
33077         (record_code_position, insert_code_for): Likewise.
33078         (gnat_poplevel): Now returns void.
33079         (end_subprog_body): Now takes argument.
33080         * misc.c (cgraph.h, tree-inline.h): New includes.
33081         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33082         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33083         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33084         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33085         (gnat_parse_file): Don't set immediate_size_expand.
33086         Call cgraph functions.
33087         (gnat_expand_expr): Remove most cases.
33088         (record_code_position, insert_code_for): Remove from here.
33089         * trans.c (toplev.h, tree-gimple.h): Now included.
33090         (discard_file_names): Deleted.
33091         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33092         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33093         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33094         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33095         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33096         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33097         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33098         (set_block_for_group, add_stmt_list): Likewise.
33099         (start_stmt_group): Renamed from start_block_stmt.
33100         (end_stmt_group): Likewise, from end_block_stmt.
33101         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33102         (gigi): Don't set discard_file_names or call set_lineno.
33103         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33104         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33105         Numerous changes throughout to reflect new names and complete
33106         function-at-a-time implementation.
33107         (gnat_expand_stmt): Delete or comment out all cases.
33108         (process_inlined_subprograms): Use add_stmt.
33109         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33110         call set_lineno; also remove unneeded block handling.
33111         (process_type): Remove unneeded block handling.
33112         (build_unit_elab): Remove calls to deleted functions.
33113         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33114         (tree-dump.h): Likewise.
33115         (struct ada_binding_level): Add field jmpbuf_decl.
33116         (gnat_define_builtin, gnat_install_builtins): New.
33117         (gnat_gimplify_function, gnat_finalize): Likewise.
33118         (gnat_poplevel): No longer return BLOCK, set it instead.
33119         Remove code dealing with nested functions.
33120         (gnat_init_decl_processing): Also set size_type_node.
33121         Call gnat_install_builtins.
33122         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33123         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33124         Remove special-case for "main".
33125         (end_subprog_body): Add arg and rework for tree-ssa.
33126         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33127         Add case for BOOLEAN_TYPE.
33128         * utils2.c (rtl.h): Now include.
33129         (build_call_raise): Test Debug_Flag_NN directly.
33130         (build_call_alloc_dealloc): Don't use local stack allocation for now.
33131         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33132         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33133
33134 2004-06-07  Robert Dewar  <dewar@gnat.com>
33135
33136         * a-direct.ads, einfo.ads: Minor comment updates
33137
33138         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33139         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33140         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33141         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33142         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33143
33144         * s-interr-sigaction.adb: Remove unreferenced variable
33145         (Attached_Interrupts).  Minor reformatting.
33146         Avoid use of variable I (replace by J).
33147
33148         * par-ch10.adb: Fix text of one error message
33149
33150         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33151         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33152         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33153         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33154         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33155         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33156         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33157         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33158         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33159         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33160         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33161         2005 support.
33162
33163 2004-06-07  Doug Rupp  <rupp@gnat.com>
33164
33165         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33166
33167         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33168
33169         * mlib-tgt-vms-ia64.adb: New file.
33170
33171         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33172         Add mlib-tgt-vms-ia64.adb
33173         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33174         Move to alpha specific ifeq section.
33175         Add VMS specific versions of symbols.adb
33176         Renaming of 5q vms files.
33177
33178         * 5qsystem.ads renamed to system-vms_64.ads.
33179
33180 2004-06-07  Vincent Celier  <celier@gnat.com>
33181
33182         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33183         explain that when a time of day corresponding to the non existing hour
33184         on the day switching to DST is specified, Split may return a different
33185         value for Seconds.
33186
33187         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33188         to GNAT PRETTY.
33189
33190         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33191         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33192
33193         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33194         to False.
33195         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33196         the linking options.
33197         (Build_Library.Check_Libs): On VMS, if there is a dependency on
33198         g-trasym.ads, set Gtrasymobj_Needed to True.
33199
33200         * prj-attr.adb: Add new package Metrics for gnatmetric
33201
33202         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33203         canonical case to take into account files with upper case characters on
33204         Windows.
33205         (Ada_Check): Load the reference symbol file name in the name buffer to
33206         check it, not the symbol file name.
33207
33208         * snames.ads, snames.adb: Add standard name Metrics (name of project
33209         file package for gnatmetric).
33210
33211         * vms_conv.ads: Add Metric to Comment_Type
33212
33213         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33214
33215         * vms_data.ads: Add qualifiers for GNAT METRIC
33216
33217         * makegpr.adb (Link_Executables): Take into account the switches
33218         specified in package Linker of the main project.
33219
33220 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
33221
33222         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33223         the index of the last element is Units.Last, not Units.Table'Last
33224         (which is usually not a valid index within the actually allocated
33225         storage for the table).
33226
33227         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33228         determines whether to generate a call to a checked storage pool
33229         Dereference action.
33230         Generate such a call only for a dereference that either comes from
33231         source, or is the result of rewriting a dereference that comes from
33232         source.
33233
33234 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
33235
33236         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33237
33238 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
33239
33240         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33241         file level, elaborate the stride for inner dimensions in alignment
33242         units, not bytes.
33243
33244         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33245         in a comment.
33246
33247 2004-06-07  Javier Miranda  <miranda@gnat.com>
33248
33249         * exp_ch6.adb: Correct wrong modification in previous patch
33250
33251 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
33252
33253         * g-trasym.ads: Corrected comment to properly reflect level of support
33254         on VMS.
33255
33256 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
33257
33258         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33259         includes case of a variable referenced on the left hand side of an
33260         assignment, therefore remove redundant code. Variables and prefixes of
33261         indexed or selected components are now marked as referenced on left
33262         hand side. Warnings are now properly emitted when variables or prefixes
33263         are assigned but not read.
33264
33265         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33266         left hand side referenced variables. Private access types do not
33267         produce the warning "variable ... is assigned but never read".
33268         Add also additional checks to left hand side referenced variables.
33269         Aliased, renamed objects and access types do not produce the warning
33270         "variable ... is assigned but never read" since other entities may read
33271         the memory location.
33272
33273 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
33274
33275         * Makefile.in: In the powerpc/vxworks-specific section, restore
33276         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33277         by mistake).
33278
33279 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
33280
33281         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33282         predefined operators.
33283         Removes spurious type errors from g-trasym-vms.adb.
33284
33285         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33286         distinct from the operator appearing in the source, call appropriate
33287         routine to insert conversions when needed, and complete resolution of
33288         node.
33289         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33290         interpretations for rewritten right operand.
33291         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33292         the other operand is overloaded and the context is a type conversion.
33293
33294 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33295
33296         * ada-tree.def (BLOCK_STMT): Now has two operands.
33297         (BREAK_STMT): New.
33298
33299         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33300
33301         * gigi.h: (gnat_poplevel): Now returns a tree.
33302
33303         * trans.c (end_block_stmt): Add arg; all callers changed.
33304         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33305         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33306         (add_stmt): Set TREE_TYPE.
33307         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33308         (gnat_expand_stmt, case BREAK_STMT): New case.
33309
33310         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33311
33312 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
33313
33314         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33315         procedure Set_Stack_Size that is not needed.
33316
33317 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
33318
33319         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33320         used for gnatpp input file and for the files upon which it depends
33321
33322 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
33323
33324         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33325
33326 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
33327
33328         * gnatvsn.ads: Bump version numbers appropriately.
33329         Add new build type.
33330
33331 2004-06-07  Pascal Obry  <obry@gnat.com>
33332
33333         * gnat_ugn.texi: Improve comments about imported names and link names
33334         on Windows. Add a note about the requirement to use -k gnatdll's option
33335         when working with a DLL which has stripped stdcall symbols (no @nn
33336         suffix).
33337
33338 2004-05-27  Vincent Celier  <celier@gnat.com>
33339
33340         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33341         COMMENTS_LAYOUT=UNTOUCHED
33342
33343         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33344         symbols-vms-alpha.adb
33345
33346 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
33347
33348         * sem.ads: Clarify documentation on checks suppression.
33349
33350         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33351
33352 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
33353
33354         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33355         the case of multiple derivations.
33356         (Is_Object_Reference): For a selected component, verify that the prefix
33357         is itself an object and not a value.
33358
33359         * sem_ch12.adb (Same_Instantiated_Constant): New name for
33360         Same_Instantiated_Entity.
33361         (Same_Instantiated_Variable): Subsidiary to
33362         Check_Formal_Package_Instance, to recognize actuals for in-out generic
33363         formals that are obtained from a previous formal package.
33364         (Instantiate_Subprogram_Body): Emit proper error when
33365         generating code and the proper body of a stub is missing.
33366
33367         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33368         has a universal interpretation, do the disambiguation here.
33369
33370         * exp_ch4.adb (Expand_N_Type_Conversion,
33371         Expand_N_Unchecked_Type_Conversion): Special handling when target type
33372         is Address, to avoid typing anomalies when Address is a visible integer
33373         type.
33374
33375         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33376         to determine whether a subprogram should not be marked Pure, even when
33377         declared in a pure package.
33378
33379 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
33380
33381         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33382
33383         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33384         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33385         Update the documentation about the Ravenscar profile, following the
33386         definition found in AI-249.
33387
33388         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33389         setting the Profile (Ravenscar). This must be done in addition to
33390         setting the required restrictions.
33391
33392         * rtsfind.ads: Add the set of operations defined in package
33393         Ada.Interrupts.
33394
33395         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33396         restriction.
33397
33398 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
33399
33400         lang-specs.h: Always require -c or -S and always redirect to /dev/null
33401         if -gnatc or -gnats is passed.
33402
33403 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
33404
33405         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33406         a significant reference. Warnings are now properly emitted when a
33407         discriminated type is not referenced.
33408
33409         * lib-xref.adb (Generate_Reference): A deferred constant completion,
33410         record representation clause or record type discriminant does not
33411         produce a reference to its corresponding entity. Warnings are now
33412         properly emitted when deferred constants and record types are not
33413         referenced.
33414
33415 2004-05-27  Geert Bosch  <bosch@gnat.com>
33416
33417         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33418         Fixes ACATS Annex G tests.
33419
33420 2004-05-27  Robert Dewar  <dewar@gnat.com>
33421
33422         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33423         handling WITH
33424
33425 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33426
33427         * s-interr.adb (Server_Task): Take into account case of early return
33428         from sigwait under e.g. linux.
33429
33430 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33431
33432         * gnat_ugn.texi: Add description for the new gnatpp options:
33433          -rnb - replace the original source without creating its backup copy
33434          -c0 - do not format comments
33435
33436 2004-05-24  Geert Bosch  <bosch@gnat.com>
33437
33438         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33439         with 192 bits of precision, sufficient to reduce a double-extended
33440         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33441         in -2.0**32 .. 2.0**32.
33442         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33443         reduction by the processor, which only uses a 68-bit approximation of
33444         Pi.
33445         (Tan): Always reduce arguments and compute function either using
33446         the processor's fptan instruction, or by dividing sin and cos as needed.
33447
33448 2004-05-24  Doug Rupp  <rupp@gnat.com>
33449
33450         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33451         gcc error on 32/64 bit VMS.
33452
33453 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33454
33455         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33456         since this is what we get for stack overflows although not documented
33457         as such.
33458         Document the issues which may require adjustments to our signal
33459         handlers.
33460
33461 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33462
33463         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33464         enclosing dynamic scope if the instantiation is within a generic unit.
33465
33466 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33467
33468         * exp_dbug.ads: Fix typo.
33469
33470         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33471         Rename it to its proper name: system-linux-ia64.ads
33472         (stamp-gnatlib1): Remove extra target specific run time files when
33473         setting up the rts directory.
33474
33475 2004-05-24  Javier Miranda  <miranda@gnat.com>
33476
33477         * einfo.ads, einfo.adb (Limited_Views): Removed.
33478         (Limited_View): New attribute that replaces the previous one. It is
33479         now a bona fide package with the limited-view list through the
33480         first_entity and first_private attributes.
33481
33482         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33483         limited-private-with clause.
33484         (Install_Limited_Withed_Unit): Install the private declarations of a
33485         limited-private-withed package. Update the installation of the shadow
33486         entities according to the new structure (see Build_Limited_Views)
33487         (Build_Limited_Views): Replace the previous implementation of the
33488         limited view by a package entity that references the first shadow
33489         entity plus the first shadow private entity (required for limited-
33490         private-with clause)
33491         (New_Internal_Shadow_Entity): Code cleanup.
33492         (Remove_Limited_With_Clause): Update the implementation to undo the
33493         new work carried out by Build_Limited_Views.
33494         (Build_Chain): Complete documentation.
33495         Replace Ada0Y by Ada 0Y in comments
33496         Minor reformating
33497
33498         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33499         types the level of accessibility depends on the enclosing type
33500         declaration.
33501
33502         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33503         entities. Complete documentation of previous change.
33504
33505 2004-05-24  Robert Dewar  <dewar@gnat.com>
33506
33507         * namet.adb: Minor reformatting
33508         Avoid use of name I (replace by J)
33509         Minor code restructuring
33510
33511         * sem_ch6.adb: Minor reformatting
33512
33513         * lib-writ.adb: Do not set restriction as active if this is a
33514         Restriction_Warning case.
33515
33516         * sem_prag.adb: Reset restriction warning flag if real pragma
33517         restriction encountered.
33518
33519         * s-htable.adb: Minor reformatting
33520         Change rotate count to 3 in Hash (improves hash for small strings)
33521
33522         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33523
33524         * gnat_ugn.texi: Add new section of documentation "Code Generation
33525         Control", which describes the use of -m switches.
33526
33527 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33528
33529         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33530         through the DECL_INITIAL for renamed variables.
33531
33532 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33533
33534         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33535
33536 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33537
33538         * exp_dbug.ads: Correct comments concerning handling of overloading,
33539         since we no longer use $ anymore.
33540
33541 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33542
33543         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33544         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33545         with illegal subunits.
33546
33547 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33548
33549         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33550         body with front-end inlining enabled, check whether an inline pragma
33551         appears immediately after the body and applies to it.
33552
33553         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33554         enabled and the pragma appears after the body of the subprogram.
33555
33556 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33557
33558         Part of function-at-a-time conversion
33559
33560         * misc.c (adjust_decl_rtl): Deleted.
33561         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33562         Define.
33563
33564         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33565         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33566         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33567
33568         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33569         when making a decl.
33570         (gnat_to_gnu_entity): Likewise.
33571         Use add_stmt to update setjmp buffer.
33572         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33573         flush_addressof.
33574         No longer call adjust_decl_rtl.
33575         (DECL_INIT_BY_ASSIGN_P): New macro.
33576         (DECL_STMT_VAR): Likewise.
33577
33578         * trans.c (gigi): Call start_block_stmt to make the outermost
33579         BLOCK_STMT.
33580         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33581         Call start_block_stmt and end_block_stmt temporarily.
33582         Use gnat_expand_stmt instead of expand_expr_stmt.
33583         (add_decl_stmt): New function.
33584         (tree_transform): Call it.
33585         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33586         (end_block_stmt): Set type and NULL_STMT.
33587         (gnat_expand_stmt): Make recursize call instead of calling
33588         expand_expr_stmt.
33589         (gnat_expand_stmt, case DECL_STMT): New case.
33590         (set_lineno_from_sloc): Do nothing if global.
33591         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33592         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33593         (build_block_stmt): Call them.
33594         (gnat_to_code): Don't expand NULL_STMT.
33595         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33596         args.
33597         (tree_transform): Likewise.
33598         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33599         (gnat_expand_stmt, case NULL_STMT): New case.
33600         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33601         IF_STMT_TRUE.
33602
33603         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33604         TREE_ADDRESSABLE.
33605
33606         * utils.c (create_var_decl): Do not call expand_decl or
33607         expand_decl_init.
33608         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33609         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33610         here.
33611         (struct e_stack): Add chain_next to GTY.
33612         (struct binding_level): Deleted.
33613         (struct ada_binding_level): New struct.
33614         (free_block_chain): New.
33615         (global_binding_level, clear_binding_level): Deleted.
33616         (global_bindings_p): Rework to see if no chain.
33617         (kept_level_p, set_block): Deleted.
33618         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33619         new data structure and work directly on BLOCK node.
33620         (gnat_poplevel): Similarly.
33621         (get_decls): Look at BLOCK_VARS.
33622         (insert_block): Work directly on BLOCK node.
33623         (block_has_var): New function.
33624         (pushdecl): Rework for new binding structures.
33625         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33626         poplevel.
33627         (build_subprog_body): Likewise.
33628         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33629
33630         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33631
33632         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33633         (DECL_STMT_VAR): Likewise.
33634
33635 2004-05-17  Robert Dewar  <dewar@gnat.com>
33636
33637         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33638         procedure
33639
33640         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33641         of restriction synonyums by using
33642         Restrict.Process_Restriction_Synonyms.
33643
33644         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33645
33646         * s-restri.ads (Tasking_Allowed): Correct missing comment
33647
33648         * s-rident.ads: Add entries for restriction synonyms
33649
33650         * ali.adb: Fix some problems with badly formatted ALI files that can
33651         result in infinite loops.
33652
33653         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33654         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33655         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33656         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33657         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33658         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33659         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33660         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33661         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33662         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33663         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33664         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33665         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33666         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33667         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33668         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33669         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33670         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33671         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33672         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33673         to Task_Id (minor cleanup).
33674
33675 2004-05-17  Vincent Celier  <celier@gnat.com>
33676
33677         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33678         directory separator.
33679
33680         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33681         project being extended, if Languages is not declared in extending
33682         project.
33683
33684 2004-05-17  Javier Miranda  <miranda@gnat.com>
33685
33686         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33687         limited view of a visible sibling.
33688
33689 2004-05-14  Robert Dewar  <dewar@gnat.com>
33690
33691         * gnat_ugn.texi: Minor change to -gnatS documentation
33692
33693         * sprint.adb: Remove some instances of Assert (False) and for this
33694         purpose replace them by output of a ??? string.
33695
33696         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33697         Assert (False).
33698
33699         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33700         flag processing. This was suppressing required dependencies in
33701         No_Run_Time mode and is not needed since the binder does not generate
33702         references for things in libgnat anyway.
33703
33704         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33705         warning.
33706
33707 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33708
33709         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33710         resolver library.
33711
33712         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33713         action for the case of an actual parameter in an init proc call.
33714
33715 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33716
33717         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33718         subtype, check visible entities in base type.
33719
33720         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33721         actions if the object is a renaming.
33722
33723         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33724         Check_Formal_Package_Instance, to determine more precisely when the
33725         formal and the actual denote the same entity.
33726
33727 2004-05-14  Javier Miranda  <miranda@gnat.com>
33728
33729         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33730
33731         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33732         corresponding to a private_with must be removed from visibility; it
33733         will be made visible later, just before we analyze the private part of
33734         the package.
33735         (Check_Private_Child_Unit): Allow private_with clauses in public
33736         siblings.
33737         (Install_Siblings): Make visible the private entities of private-withed
33738         siblings.
33739         (Install_Withed_Unit): Do not install the private withed unit if we
33740         are compiling a package declaration and the Private_With_OK flag was
33741         not set by the caller. These declarations will be installed later,
33742         just before we analyze the private part of the package.
33743
33744         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33745         during the evaluation of the expression that initializes the object,
33746         decorate it with the expected type to avoid cascade errors.
33747         Code cleanup.
33748
33749         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33750         subprogram we have to install the private_with clauses after its
33751         specification has been analyzed (as documented in AI-262.TXT).
33752
33753         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33754         current compilation unit has a private with on a given entity.
33755         (Find_Direct_Name): Detect the Beaujolais problem described in
33756         AI-262.TXT
33757
33758         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33759         provides the functionality of the function Is_Ancestor that was
33760         previously available in sem_ch10. It has been renamed to avoid
33761         overloading.
33762
33763         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33764
33765 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33766
33767         * utils.c (build_vms_descriptor): Use SImode pointers.
33768
33769 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33770
33771         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33772
33773 2004-05-14  GNAT Script  <nobody@gnat.com>
33774
33775         * Make-lang.in: Makefile automatically updated
33776
33777 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33778
33779         Renaming of target specific files for clarity
33780
33781         * Makefile.in: Rename GNAT target specific files.
33782
33783         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33784         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33785         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33786         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33787         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33788         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33789         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33790         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33791         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33792         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33793         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33794         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33795         51osinte.adb, 51osinte.ads, 51system.ads,
33796         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33797         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33798         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33799         56tpopsp.adb, 57system.ads, 58system.ads,
33800         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33801         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33802         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33803         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33804         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33805         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33806         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33807         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33808         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33809         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33810         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33811         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33812         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33813         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33814         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33815         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33816         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33817         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33818         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33819         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33820         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33821         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33822         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33823         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33824         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33825         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33826         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33827         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33828         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33829         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33830         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33831         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33832         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33833         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33834         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33835         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33836         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33837         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33838         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33839         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33840
33841         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33842         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33843         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33844         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33845         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33846         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33847         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33848         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33849         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33850         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33851         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33852         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33853         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33854         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33855         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33856         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33857         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33858         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33859         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33860         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33861         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33862         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33863         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33864         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33865         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33866         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33867         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33868         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33869         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33870         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33871         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33872         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33873         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33874         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33875         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33876         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33877         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33878         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33879         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33880         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33881         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33882         s-osinte-vms.ads, s-osinte-vxworks.adb,
33883         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33884         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33885         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33886         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33887         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33888         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33889         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33890         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33891         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33892         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33893         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33894         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33895         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33896         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33897         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33898         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33899         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33900         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33901         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33902         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33903         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33904         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33905         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33906         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33907         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33908         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33909         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33910         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33911         system-irix-o32.ads, system-linux-x86_64.ads,
33912         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33913         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33914         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33915         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33916         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33917         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33918         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33919         above.
33920
33921 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33922
33923         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33924
33925 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33926
33927         Merge from tree-ssa-20020619-branch.
33928
33929         * config-lang.in (boot_language, build_by_default): Set
33930         to no.
33931         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33932         (max_size): Add static chain op for call_expr.
33933
33934 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33935
33936         PR target/15331
33937         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33938
33939 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33940
33941         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33942         COND_EXPR.
33943
33944 2004-05-10  Doug Rupp  <rupp@gnat.com>
33945
33946         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33947         system.aux_dec.
33948
33949         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33950
33951         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33952
33953         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33954         Fixes undefined symbols in IA64 gnatlib.
33955
33956         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33957
33958         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33959         Short_Address). This will be moved to system.auxdec.
33960
33961 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33962
33963         * sem_util.adb: Replace test for presence of a node that is always
33964         present with a call to Discard_Node.
33965
33966         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33967         Analyze on the library unit node after generation of distribution stub
33968         constructs.  The call was a no-op because Unit_Node has already been
33969         Analyzed, and the tree fragments for the distribution stubs are
33970         analyzed as they are inserted in Exp_Dist.
33971         Update comment regarding to distribution stubs to reflect that we
33972         do not generate stub in separate files anymore.
33973
33974         * einfo.ads: Clarify the fact that a tagged private type has the
33975         E_Record_Type_With_Private Ekind.
33976
33977         * erroutc.adb: Minor reformatting
33978
33979         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33980         values if line length is increased using -gnatyM (noticed during code
33981         reading).
33982
33983         * eval_fat.adb: Minor reformatting
33984         Put spaces around exponentiation operator
33985
33986 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33987
33988         PR ada/15005
33989         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33990         has been rewritten as an explicit dereference, retrieve type of
33991         original node to check for possibly unconstrained record type.
33992
33993 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33994
33995         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33996         overriding, use the operation of the parent unconditionally.
33997
33998         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33999         operation when either operand is a literal, to avoid further
34000         ambiguities.
34001
34002         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34003         overridden by a previous explicit declaration, mark the previous entity
34004         as overriding.
34005
34006         * sem_disp.adb (Check_Dispatching_Operation): New predicate
34007         Is_Visibly_Controlled, to determine whether a declaration of a
34008         primitive control operation for a derived type overrides an inherited
34009         one. Add warning if the explicit declaration does not override.
34010
34011 2004-05-10  Vincent Celier  <celier@gnat.com>
34012
34013         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34014         some cases when the sources are no longer present.
34015
34016         * make.adb (Collect_Arguments): Fail if an external source, not part
34017         of any project need to be compiled, when switch -x has not been
34018         specified.
34019
34020         * makeusg.adb: Document new switch -x
34021
34022         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34023         defaulted to False.
34024
34025         * switch-m.adb (Scan_Make_Switches): New switch -x
34026
34027         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34028         gnatmake switch -x.
34029
34030         * gnat_ugn.texi: Document new gnatmake switch -x
34031
34032 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
34033
34034         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34035
34036         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34037         (process_attributes): Likewise.
34038
34039 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
34040
34041         * s-inmaop.ads: Fix spelling mistake in one of the comments.
34042
34043 2004-05-10  Robert Dewar  <dewar@gnat.com>
34044
34045         * gnat_ugn.texi: Document that for config pragma files, the maximum
34046         line length is always 32767.
34047
34048         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34049         literals is now allowed.
34050
34051         * gnat-style.texi: Remove statement about splitting long lines before
34052         an operator rather than after, since we do not follow this rule at all.
34053         Clarify rule (really lack of rule) for spaces around exponentiation
34054
34055         * sem_elim.adb: Allow concatenation of string literals as well as a
34056         single string literal for pragma arguments.
34057
34058         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34059
34060         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34061         written for append case.
34062
34063         * frontend.adb: Changes to avoid checking max line length in config
34064         pragma files.
34065
34066         * g-os_lib.ads: Minor reformatting
34067
34068         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34069         wrong in any case. Instead use standard value. Noticed during code
34070         reading.
34071
34072         * opt.ads (Max_Line_Length): New field, used to implement removal of
34073         limitation on length of lines when scanning config pragma files.
34074
34075         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34076         makeutl.ads, makeutl.adb: Minor reformatting
34077
34078         * scn.adb: Do not check line length while scanning config pragma files
34079         Do not check line length while scanning out license information
34080
34081         * scng.adb: Changes to avoid line length checks while parsing config
34082         pragma files.
34083
34084 2004-05-10  GNAT Script  <nobody@gnat.com>
34085
34086         * Make-lang.in: Makefile automatically updated
34087
34088 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
34089
34090         * osint.adb (Find_Program_Name): Fix handling of VMS version
34091         number.
34092
34093 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
34094
34095         * g-os_lib.ads (Invalid_Time): New constant
34096
34097         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34098         return OS_Time instead of time_t to match what is imported by Ada.
34099         Now return -1 if the file doesn't exist, instead of a random value
34100
34101 2004-05-05  Robert Dewar  <dewar@gnat.com>
34102
34103         * usage.adb: Add line for -gnatR?s switch
34104
34105         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34106
34107         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34108         and for Match (Data_First, Data_last)
34109
34110         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34111         written when we are dealing with multi-unit files.
34112
34113 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
34114
34115         * Makefile.in: Remove unused targets and variables.
34116
34117 2004-05-05  Vincent Celier  <celier@gnat.com>
34118
34119         * switch-m.adb: New gnatmake switch -eI
34120
34121         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34122         of new gnatmake switch -eInnn.
34123
34124         * makegpr.adb: Take into account new parameters Index and Src_Index in
34125         Prj.Util.
34126
34127         * clean.adb: Implement support for multi-unit sources, including new
34128         switch -i.
34129
34130         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34131         Src_Index.
34132
34133         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34134         (Extract_From_Q): New out parameter Index
34135         (Mark, Is_Marked): Subprograms moved to Makeutl
34136         (Switches_Of): New parameter Source_Index
34137         (Add_Switch): New parameter Index
34138         (Check): New parameter Source_Index
34139         (Collect_Arguments): New parameter Source_Index
34140         (Collect_Arguments_And_Compile): New parameter Source_Index
34141         (Compile): New parameter Source_Index
34142         Put subprograms in alphabetical order
34143         Add support for multi-source sources, including in project files.
34144
34145         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34146         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34147         Make.
34148
34149         * makeusg.adb: New gnatmake switch -eInnn
34150
34151         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34152         Prj.Util.Value_Of.
34153
34154         * opt.ads (Main_Index): New variable, defaulted to 0.
34155
34156         * osint.ads, osinte.adb (Add_File): New parameter Index
34157         (Current_Source_Index): New function
34158
34159         * prj.adb: Take into account new components Index and Src_Index
34160
34161         * prj.ads (String_Element): New component Index
34162         (Variable_Value): New component Index
34163         (Array_Element): New component Src_Index
34164
34165         * prj-attr.adb: Indicate that optional index may be specified for
34166         attributes Main, Executable, Spec, Body and some of Switches.
34167
34168         * prj-attr.ads (Attribute_Kind): New values for optional indexes
34169         (Attribute_Record): New component Optional_Index
34170
34171         * prj-com.ads (File_Name_Data): New component Index
34172
34173         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34174
34175         * prj-env.adb (Put): Output optional index
34176
34177         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34178         attributes Spec and Body.
34179
34180         * prj-nmsc.adb: Process optional indexes
34181
34182         * prj-pp.adb: Ouput "at" for optional indexes
34183
34184         * prj-proc.adb: Take into account optional indexes
34185
34186         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34187         Optional_Index. For string literal,
34188         process optional index when Optional_Index is True.
34189         (Parse_Expresion): New Boolean parameter Optional_Index
34190
34191         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34192         (Set_Source_Index_Of): New procedure
34193
34194         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34195         index.
34196
34197         * prj-util.ads (Executable_Of): New parameter Index
34198         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34199         New parameter Src_Index, defaulted to 0.
34200
34201 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34202
34203         PR ada/15257
34204         * sem_ch3.adb (Access_Definition): If this is an access parameter
34205         whose designated type is imported through a limited_with clause, do
34206         not add the enclosing subprogram to the list of private dependents of
34207         the type.
34208
34209 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34210
34211         PR ada/15258
34212         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34213         a limited_with clause, and the other is its non-limited view.
34214
34215 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
34216
34217         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34218
34219         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34220         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34221         Stand.Boolean_Literals to produce references to entities
34222         Standard_False and Standard_True from compile-time computed boolean
34223         values.
34224
34225         * stand.ads (Boolean_Literals): New variable, provides the entity
34226         values for False and True, for use by the expander.
34227
34228 2004-05-05  Doug Rupp  <rupp@gnat.com>
34229
34230         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34231         5vinmaop.adb: Unchecked convert Short_Address vice Address
34232
34233         * adaint.c, raise.c: Caste CRTL function return value
34234         to avoid gcc error on 32/64 bit IVMS.
34235
34236         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34237         target = IA64/VMS.
34238
34239         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34240
34241         * 5qsystem.ads (Address): Declare as Long_Integer
34242         (Short_Address): Declare as 32 bit subtype of Address
34243         Declare  abstract address operations to avoid gratuitous ambiguities.
34244
34245 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
34246
34247         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34248         instead of the old Boolean_Entry_Barriers.
34249         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34250
34251 2004-05-05  GNAT Script  <nobody@gnat.com>
34252
34253         * Make-lang.in: Makefile automatically updated
34254
34255 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34256
34257         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34258
34259 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
34260
34261         PR ada/15152
34262         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34263         alone. Replacing object references by literals is inappropriate in a
34264         so low level context.
34265
34266 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34267
34268         * a-exexpr.adb: Add comments
34269
34270 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
34271
34272         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34273         declare the Ancestor_Tags array in Type_Specific_Data with a small size
34274         without risking a bounds check error when accessing one of its
34275         components.
34276         (Type_Specific_Data): Define Ancestor_Tags as a small array.
34277         This prevents us from hitting a limitation during the debug info
34278         generation when using stabs.
34279
34280         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34281         small array.
34282         This prevents us from hitting a limitation during the debug info
34283         generation when using stabs.
34284
34285 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
34286
34287         lang-specs.h: Remove -gnatz* from specs.
34288
34289 2004-05-03  Vincent Celier  <celier@gnat.com>
34290
34291         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34292
34293         * Make-lang.in, Makefile.in: Add gprmake
34294
34295 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
34296
34297         * sem_aggr.adb: Fix typo in comment.
34298
34299 2004-05-03  Robert Dewar  <dewar@gnat.com>
34300
34301         * make.adb: Minor reformatting
34302
34303         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34304
34305         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34306         so that it works when address is not a private type.
34307
34308         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34309         properly with rewritten unchecked conversions. This prevents
34310         order-of-elaboration issues that can otherwise arise.
34311         (Minimum_Size): Don't check size of access types under VMS
34312
34313         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34314         interpretations of integer literals as type System.Address.
34315
34316         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34317         (Is_Descendent_Of): New function
34318
34319 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
34320
34321         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34322         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34323         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34324
34325         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34326         of the old Max_Entry_Queue_Depth.
34327
34328         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34329         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34330         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34331
34332         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34333         New entry for proper handling of Max_Entry_Queue_Depth.
34334         New entry for proper handling of No_Dynamic_Interrupts.
34335
34336         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34337         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34338         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34339         the GNAT specific restriction Max_Entry_Queue_Depth.
34340         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34341         the GNAT specific restriction No_Dynamic_Interrupts.
34342
34343         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34344         instead of the old Boolean_Entry_Barriers.
34345         Use the new restriction No_Dynamic_Attachment instead of the old
34346         No_Dynamic_Interrupts.
34347
34348         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34349         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34350
34351         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34352         of the old Max_Entry_Queue_Depth.
34353
34354 2004-05-03  GNAT Script  <nobody@gnat.com>
34355
34356         * Make-lang.in: Makefile automatically updated
34357
34358 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
34359
34360         * checks.adb (Enable_Range_Check): If the prefix of an index component
34361         is an access to an unconstrained array, perform check unconditionally.
34362
34363 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34364
34365         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34366         Component_Clause.
34367
34368 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
34369
34370         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34371         alternate stack setting. There was no support for the tasking cases
34372         and the changes eventually caused a number of side-effect failures in
34373         the non-tasking case too.
34374
34375 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
34376
34377         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34378         -gnats is passed.
34379
34380 2004-04-29  Vincent Celier  <celier@gnat.com>
34381
34382         * make.adb (Gnatmake): Increase max size of argument array for
34383         gnatbind for the potential addition of -F.
34384         If there are Stand-Alone Library projects, invoke gnatbind with -F to
34385         be sure that elaboration flags will be checked.
34386
34387         * switch-c.adb: Correct call to Scan_Pos for -gnateI
34388
34389 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
34390
34391         * sem_warn.adb (Check_References): Move '<access-variable> may be
34392         null' warning out of under Warn_On_No_Value_Assigned.
34393
34394 2004-04-29  Ed Falis  <falis@gnat.com>
34395
34396         * gnat_ugn.texi: Fixed texi error
34397
34398 2004-04-29  Robert Dewar  <dewar@gnat.com>
34399
34400         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34401         abstract operations if they come from predefined files.
34402
34403         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34404         Dynamic, not RM).
34405
34406         * s-addope.adb: Correct obvious error in mod function
34407
34408 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
34409
34410         * Makefile.in: Add target pairs for powerpc darwin*
34411         tasking support.
34412
34413         * a-intnam-darwin.ads, s-osinte-darwin.adb,
34414         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34415
34416 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34417
34418         * Makefile.in: Add target macro definitions for s390*-linux*.
34419         * system-linux-s390.ads: New file.
34420         * system-linux-s390x.ads: New file.
34421
34422 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34423
34424         * gnat_ugn.texi: Correct argument to @setfilename.
34425
34426 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34427
34428         * a-exexpr.adb (Unwind_Word): New data type.
34429         (Unwind_Exception): Use it as type of Private1 and Private2.
34430
34431         * raise.c (db_action_for): Fix debug printf.
34432
34433 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34434
34435         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34436         integer type.
34437
34438 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34439
34440         * decl.c (gnat_to_gnu_entity, case object): Call
34441         __builtin_update_setjmp_buf.
34442
34443         * gigi.h (update_setjmp_buf): Deleted.
34444         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34445
34446         * misc.c: (update_setjmp_buf): Deleted.
34447
34448         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34449         around block of RTL.
34450
34451         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34452
34453 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34454
34455         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34456         subprogram for which no pragma All_Calls_Remote applies, store the
34457         address of the real subprogram in the underlying record type, so local
34458         dereferences do not go through the PCS.
34459
34460 2004-04-26  Robert Dewar  <dewar@gnat.com>
34461
34462         * i-c.ads: Add some type qualifications to avoid ambiguities when
34463         compiling with s-auxdec.ads and a non-private address type.
34464
34465 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34466
34467         * Makefile.rtl: Fix error in previous check-in:
34468         Add s-addope.o to non tasking object list (rather than tasking object
34469         list).
34470
34471 2004-04-26  Javier Miranda  <miranda@gnat.com>
34472
34473         * sem_aggr.adb: Fix typo in comments
34474         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34475         Required to check the null-exclusion attribute.
34476
34477         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34478         case of anonymous access types in record and array components. For a
34479         component definition the level is the same of the enclosing composite
34480         type.
34481
34482         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34483         that are anonymous access types the level of accessibility depends on
34484         the enclosing type declaration. In order to have this information, set
34485         the scope of the anonymous access type to the enclosing record type
34486         declaration.
34487         (Array_Type_Declaration): In case of components that are anonymous
34488         access types the level of accessibility depends on the enclosing type
34489         declaration. In order to have this information, set the scope of the
34490         anonymous access type to the enclosing array type declaration.
34491
34492         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34493         access type.
34494
34495         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34496         renaming of anonymous access-to-constant types allowed if and only if
34497         the renamed object is access-to-constant.
34498
34499         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34500         that are component_definition or discriminants of a nonlimited type,
34501         the level is the same as that of the enclosing component type.
34502
34503 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34504
34505         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34506         misprint in the function name (File_Name_Match).
34507
34508 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34509
34510         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34511         install.
34512
34513 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34514
34515         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34516
34517 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34518
34519         * adaint.c (__gnat_try_lock): No longer requires that the parent
34520         directory be writable, the directory itself is enough.
34521         (gnat_is_absolute_path): Change profile, so that the call from
34522         GNAT.OS_Lib can be made more efficient.
34523
34524         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34525         from GNAT.OS_Lib can be made more efficient.
34526
34527         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34528         one copy of the file name. Found by code reading.
34529
34530 2004-04-23  Vincent Celier  <celier@gnat.com>
34531
34532         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34533         Correct documentation on gnatmake switches transmitted to the compiler
34534
34535         * ali.ads: Minor comment fix
34536
34537 2004-04-23  Javier Miranda  <miranda@gnat.com>
34538
34539         * sem_ch6.adb: (Confirming Types): Code cleanup
34540
34541         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34542         subprogram types: E_Anonymous_Access_Subprogram_Type and
34543         E_Anonymous_Access_Protected_Subprogram_Type.
34544
34545 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34546
34547         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34548         whether a pragma All_Calls_Remote applies to the subprogram on which
34549         'Access is taken.
34550         No functional change is introduced by this revision; the new parameter
34551         will be used to allow calls to local RCI subprograms to be optimized
34552         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34553         as is already done in the PolyORB implementation of the DSA.
34554
34555         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34556         whether a pragma All_Calls_Remote applies to the subprogram on which
34557         'Access is taken.
34558         No functional change is introduced by this revision; the new parameter
34559         will be used to allow calls to local RCI subprograms to be optimized
34560         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34561         as is already done in the PolyORB implementation of the DSA.
34562
34563 2004-04-23  Robert Dewar  <dewar@gnat.com>
34564
34565         * Makefile.rtl: Add entry for s-addope.o in run time library list
34566         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34567         * s-addope.ads, s-addope.adb: New files.
34568
34569         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34570         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34571         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34572         System.Address to be non-private and signed.
34573
34574         * sem_elim.adb: Minor reformatting (fairly extensive)
34575         Some minor code reorganization from code reading
34576         Add a couple of ??? comments
34577
34578 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34579
34580         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34581         (tree_transform, case N_If_Statement): Remove non-determinism.
34582
34583         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34584
34585 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34586
34587         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34588         Eliminate' section.
34589
34590         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34591         no longer used as a parameter name for Eliminate pragma).
34592
34593 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34594
34595         PR optimization/14984
34596         PR optimization/14985
34597         * trans.c (gigi): Fix non determinism leading to bootstrap
34598         comparison failures.
34599
34600 2004-04-21  Pascal Obry  <obry@gnat.com>
34601
34602         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34603         passed to spawnvp() to properly handle program pathname with spaces on
34604         Win32.
34605
34606 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34607
34608         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34609         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34610         unlocked in case of exceptions.
34611
34612 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34613
34614         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34615         This function does not exist anymore.
34616
34617 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34618
34619         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34620
34621         * link.c: Move variables to the __gnat name space.
34622
34623         * Makefile.in: list link.o explicitly when needed.
34624
34625         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34626
34627 2004-04-21  Javier Miranda  <miranda@gnat.com>
34628
34629         * einfo.adb (Original_Access_Type): New subprogram
34630         (Set_Original_Access_Type): New subprogram
34631         (Write_Field21_Name): Write the name of the new field
34632
34633         * einfo.ads (Original_Access_Type): New field present in access to
34634         subprogram types.
34635         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34636         E_Anonymous_Access_Protected_Subprogram_Type.
34637
34638         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34639         subprogram types.
34640
34641         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34642         to anonymous access to subprogram types.
34643
34644         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34645         to subprogram types.
34646
34647         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34648         corresponding to anonymous access to subprogram types.
34649         (Analyze_Component_Declaration): Add new actual to the call to
34650         subprogram replace_anonymous_access_to_protected_subprogram.
34651         (Array_Type_Declaration): Add new actual to the call to subprogram
34652         replace_anonymous_access_to_protected_subprogram.
34653         (Process_Discriminants): Add new actual to the call to subprogram
34654         replace_anonymous_access_to_protected_subprogram.
34655         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34656
34657         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34658         formal.
34659
34660         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34661         access to subprogram types.
34662
34663         * sem_util.adb (Has_Declarations): Addition of package_specification
34664         nodes.
34665
34666 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34667
34668         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34669         inlined flags to renamed entity only if in current unit.
34670
34671 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34672
34673         * s-parint.ads: Add DSA implementation marker.
34674
34675         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34676         value of System.Partition_Interface.DSA_Implementation to determine
34677         what version of the distributed systems annex is available (no
34678         implementation, GLADE, or PolyORB).
34679
34680 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34681
34682         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34683
34684 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34685
34686         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34687         with new type if alias sets differ.
34688         Fixes ACATS c41103b.
34689
34690 2004-04-21  Vincent Celier  <celier@gnat.com>
34691
34692         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34693         Add array Lang_Args for the language specific compiling argument
34694         switches.
34695
34696         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34697
34698 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34699
34700         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34701         according to the recent changes in the format of the parameters of the
34702         pragma (replacing Homonym_Number with Source_Location).
34703
34704 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34705
34706         * 5isystem.ads: Removed, unused.
34707
34708         * gnat_rm.texi: Redo 1.13 change.
34709
34710 2004-04-19  Robert Dewar  <dewar@gnat.com>
34711
34712         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34713         definition is cleaner, avoids the kludge of explicit Standard operator
34714         references, and also is consistent with a visible System.Address with
34715         no visible operations.
34716
34717         * s-geveop.adb: Add declarations to avoid assumption of visible
34718         operations on type System.Address (since these might not be available
34719         if Address is a non-private type for which the operations
34720         are made abstract).
34721
34722         * sem_eval.adb: Minor reformatting
34723
34724         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34725         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34726         reformatting (new function spec format).
34727
34728         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34729         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34730         s-caun64.adb: Add declarations to avoid assumption of visible
34731         operations on type System.Address (since these might not be available
34732         if Address is a non-private type for which the operations are made
34733         abstract).
34734
34735         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34736
34737         * exp_intr.adb: Minor comment update
34738
34739         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34740
34741         * 5omastop.adb: Add declarations to avoid assumption of visible
34742         operations on type System.Address (since these might not be available
34743         if Address is a non-private type for which the operations
34744         are made abstract).
34745
34746 2004-04-19  Vincent Celier  <celier@gnat.com>
34747
34748         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34749
34750         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34751         defaulted to Ada.
34752
34753         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34754         defaulted to Ada.
34755         Call Check with Process_Languages.
34756         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34757         with Process_Languages.
34758         (Recursive_Check): New Boolean parameter Process_Languages. Call
34759         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34760         Process_Languages.
34761
34762         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34763
34764         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34765         parameter Ada_Main, defaulted to True.
34766         Check for Ada specific characteristics only when Ada_Main is True.
34767
34768         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34769
34770         * prj.adb: (Project_Empty): Add new Project_Data components.
34771
34772         * prj.ads: New types and tables for non Ada languages.
34773         (Project_Data): New components Languages, Impl_Suffixes,
34774         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34775         Include_Path, Include_Data_Set.
34776
34777         * prj-env.ads, prj-env.adb: Minor reformatting
34778
34779         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34780         Put subprograms in alphabetical order
34781
34782         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34783         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34784         Opt.Follow_Links.
34785
34786         * mlib-prj.adb: Back out modification in last version, as they are
34787         incorrect.
34788         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34789
34790         * make.adb: (Mains): Moved to package Makeutl
34791         (Linker_Opts): Moved to package Makeutl
34792         (Is_External_Assignment): Moved to package Makeutl
34793         (Test_If_Relative_Path): Moved to package Makeutl
34794         (Gnatmake): Move sorting of linker options to function
34795         Makeutl.Linker_Options_Switches.
34796
34797         * makeutl.ads, makeutl.adb: New files.
34798
34799         * Makefile.in: Add makeutl.o to the object files for gnatmake
34800
34801         * makeusg.adb: Add line for new switch -eL.
34802
34803         * gnatls.adb (Image): New function.
34804         (Output_Unit): If in verbose mode, output the list of restrictions
34805         specified by pragmas Restrictions.
34806
34807         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34808         Text_IO.
34809
34810         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34811         needed, to put it in the range 1970 (included) - 2026 (excluded).
34812         (Time_Of): Do not shift Unix_Min_Year (1970).
34813         Shift the date by multiple of 56 years, if needed, to put it in the
34814         range 1970 (included) - 2026 (excluded).
34815
34816         * adaint.h, adaint.c (__gnat_set_executable): New function.
34817
34818 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34819
34820         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34821         and pop GC context.
34822         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34823         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34824         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34825         (tree_transform, case N_Code_Statement): Likewise.
34826         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34827         LABEL_STMT_FIRST_IN_EH.
34828         (gnat_expand_stmt, case ASM_STMT): New case.
34829
34830         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34831         UNCONSTRAINED_ARRAY_REF.
34832
34833         * utils.c (poplevel): Temporarily push/pop GC context around inline
34834         function expansion.
34835
34836         * decl.c (maybe_variable): Properly set TREE_READONLY of
34837         UNCONSTRAINED_ARRAY_REF.
34838         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34839
34840         * ada-tree.def: (ASM_STMT): New.
34841
34842         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34843         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34844         ASM_STMT_INPUT): New.
34845         (ASM_STMT_CLOBBER): Likewise.
34846
34847 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34848
34849         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34850         general rcheck mechanism to raise Program_Error for E.4(18), instead
34851         of a custom raiser in System.Partition_Interface.
34852         Part of general cleanup work before PolyORB integration.
34853
34854         * snames.ads, snames.adb: Add new runtime library entities and names
34855         for PolyORB DSA.
34856
34857         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34858         exp_dist.
34859         (Build_Subprogram_Id): New subprogram provided by exp_dist
34860         Code reorganisation in preparation for PolyORB integration.
34861
34862         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34863         exp_dist.
34864         (Build_Subprogram_Id): New subprogram provided by exp_dist
34865
34866         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34867         actual parameter types for call to dereference of an
34868         access-to-subprogram type.
34869
34870         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34871         DSA.
34872
34873         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34874         instead, which has the same behaviour here since we never pass it a
34875         NULL pointer.
34876
34877         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34878         platforms.
34879
34880         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34881         to account for new dependency upon Interfaces.C.Strings + link.o
34882         For x86 FreeBSD, use 86numaux.
34883
34884         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34885         from Mlib.Tgt to Mlib.
34886
34887         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34888         target-independent.
34889
34890         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34891         target-specific versions of this subprogram, now implemented as a
34892         target-independent function in Mlib.
34893
34894         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34895         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34896         (Linker_Library_Path_Option): Remove target-specific versions of this
34897         subprogram, now implemented as a target-independent function in Mlib.
34898
34899         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34900         Factors out node table slots allocation.
34901         (Fix_Parents): New subprogram.
34902         Encapsulate the pattern of fixing up parent pointers for syntactic
34903         children of a rewritten node.
34904         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34905         (Rewrite): Use New_Copy when creating saved copy of original node.
34906         (Replace): Use Copy_Node to copy nodes.
34907
34908 2004-04-19  Javier Miranda  <miranda@gnat.com>
34909
34910         * sprint.adb (Sprint_Node_Actual): Give support to the new
34911         Access_To_Subprogram node available in Access_Definition nodes. In
34912         addition, give support to the AI-231 node fields: null-exclusion,
34913         all-present, constant-present.
34914
34915         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34916
34917         * sinfo.ads, sinfo.adb:
34918         New field Access_To_Subprogram_Definition in Access_Definition nodes
34919
34920         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34921         decorates internal subtype declaration corresponding to the
34922         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34923         In addition, carry out some code cleanup on this code. In case of
34924         access to protected subprogram call
34925         Replace_Anonymous_Access_To_Protected_Subprogram.
34926         (Set_Actual_Subtypes): Code cleanup.
34927
34928         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34929         Find_Type in case of anonymous access renamings. Add warning in case of
34930         null-excluding attribute used in anonymous access renaming.
34931
34932         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34933         subprogram
34934
34935         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34936         subprogram.
34937         (Access_Definition): In case of anonymous access to subprograms call
34938         the corresponding semantic routine to decorate the node.
34939         (Access_Subprogram_Declaration): Addition of some comments indicating
34940         some code that probably should be added here. Detected by comparison
34941         with the access_definition subprogram.
34942         (Analyze_Component_Declaration): In case of access to protected
34943         subprogram call Replace_Anonymous_Access_To_Protected.
34944         (Array_Type_Declaration): In case of access to protected subprogram call
34945         Replace_Anonymous_Access_To_Protected_Subprogram.
34946         (Process_Discriminants): In case of access to protected subprogram call
34947         Replace_Anonymous_Access_To_Protected_Subprogram.
34948
34949         * par.adb (P_Access_Definition): New formal that indicates if the
34950         null-exclusion part was present.
34951         (P_Access_Type_Definition): New formal that indicates if the caller has
34952         already parsed the null-excluding part.
34953
34954         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34955         (P_Identifier_Declarations): Code cleanup and give support to renamings
34956         of anonymous access to subprogram types.
34957         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34958         (P_Array_Type_Definition): Give support to AI-254.
34959         (P_Component_Items): Give support to AI-254.
34960         (P_Access_Definition): New formal that indicates if the header was
34961         already parsed by the caller.
34962         (P_Access_Type_Definition): New formal that indicates if the caller has
34963         already parsed the null-excluding part.
34964
34965         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34966         call to P_Access_Definition.
34967
34968 2004-04-19  Geert Bosch  <bosch@gnat.com>
34969
34970         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34971         the delicate semantics of floating-point to integer conversion.
34972         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34973
34974         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34975         (Machine_Radix): New function.
34976
34977         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34978         conversion checks.
34979         (Machine_Radix): New function also for use in conversion checks.
34980
34981 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34982
34983         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34984
34985         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34986         to decorate the access-to-protected subprogram and the equivalent type.
34987
34988         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34989         to anonymous access to subprogram types.
34990
34991         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34992         constant-folding, for legality checks in contexts that require an RM
34993         static expression.
34994
34995         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34996         temporary but stack checking is not enabled, increment serial number
34997         to so that symbol generation is consistent with and without stack
34998         checking.
34999
35000         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35001         independent on whether stack checking is enabled, caller must check
35002         the corresponding flag.
35003
35004         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35005         range checks.
35006         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35007         parent if it has discriminants.
35008         (Build_Derived_Private_Type): Constructed full view does
35009         not come from source.
35010         (Process_Discriminants): Default discriminants on a tagged type are
35011         legal if this is the internal completion of a private untagged
35012         derivation.
35013
35014         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35015         no constraint checks, because it corresponds to an existing object.
35016
35017         * sem_prag.adb (Process_Convention): Pragma applies
35018         only to subprograms in the same declarative part, i.e. the same unit,
35019         not the same scope.
35020
35021         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35022         ignore type mismatch on a numeric conversion if expression comes from
35023         expansion.
35024
35025 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
35026
35027         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35028         Homonym_Number parameter, add processing for Source_Location parameter
35029         corresponding.
35030         (Check_Eliminated): Remove the check for homonym numbers, add the check
35031         for source location traces.
35032
35033         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35034         with Arg_Source_Location corresponding to the changes in the format of
35035         the pragma.
35036
35037         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35038         Eliminate pragma corresponding to the changes in the format of the
35039         pragma: Homonym_Number is replaced with Source_Location, two ways of
35040         distinguishing homonyms are mutially-exclusive.
35041
35042 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
35043
35044         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35045
35046         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35047         No_Dollar_In_Label, no longer necessary, as it is always True.
35048         (Strip_Suffixes): Likewise.
35049
35050 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
35051
35052         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35053         modulus for compatibility with size clause on targets with 16-bit
35054         Integer.
35055
35056         * layout.adb (Discrimify): In the case of private types, set Vtyp to
35057         full type to fix type mismatches on calls to size functions for
35058         discriminant-dependent array components.
35059
35060 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
35061
35062         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35063         lib.
35064
35065 2004-04-19  Pascal Obry  <obry@gnat.com>
35066
35067         * mdll-utl.adb (Locate): New version is idempotent.
35068
35069 2004-04-17  Laurent Guerby  <laurent@guerby.net>
35070
35071         PR ada/14988 (partial)
35072         * impunit.adb: Fix typo.
35073
35074 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35075
35076         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35077         and install-rts-cert targets.  Remove all gnatlib and gnattools
35078         targets and all other rts-* targets (moved to libada).  Remove (now)
35079         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35080         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35081
35082 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35083
35084         * trans.c (tree_transform): Shortcut returning error_mark_node for
35085         statements in annotate_only_mode.
35086         (tree_transform, case N_Label, case N_Return_Statement,
35087         N_Goto_Statement): Make statement tree instead of generating code.
35088         (tree_transform, case N_Assignment_Statement): No longer check
35089         type_annotate_only.
35090         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35091         RETURN_STMT): New.
35092         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35093         New fcns.
35094         (gnat_to_gnu): Collect any RTL generated and deal with it.
35095         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35096         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35097         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35098
35099         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35100
35101         * ada-tree.def (EXPR_STMT): Fix typo in name.
35102         (BLOCK_STMT, IF_STMT): New nodes.
35103
35104         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35105         LABEL_STMT_FIRST_IN_EH): New macros.
35106         (RETURN_STMT_EXPR): Likewise.
35107
35108         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35109         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35110
35111 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
35112
35113         * atree.ads: Correct documentation on extended nodes.
35114
35115         * link.c: Set run_path_option for FreeBSD.
35116
35117 2004-04-08  Vincent Celier  <celier@gnat.com>
35118
35119         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35120         one of the ALI file, do not link with DEC lib.
35121
35122         * par.adb Remove the last two characters ("%s" or "%b") when checking
35123         if a language defined unit may be recompiled.
35124
35125 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
35126
35127         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35128         removal of abstract operation leaves no possible interpretation for
35129         expression.
35130
35131         * sem_eval.adb (Eval_Qualified_Expression): Use
35132         Set_Raises_Constraint_Error on node when needed, so that it does not
35133         get optimized away by subsequent optimizations.
35134
35135         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35136         operands even when they are not wrapped in a type conversion.
35137
35138 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
35139
35140         * sem_prag.adb (Set_Exported): Warn about making static as result of
35141         export only when the export is coming from source. This may be not
35142         be true e.g. on VMS where we expand export pragmas for exception codes
35143         together with imported or exported exceptions, and we don't want the
35144         user to be warned about something he didn't write.
35145
35146 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
35147
35148         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35149         duplication between normal entities and those declared as renamings.
35150         No functional change.
35151
35152         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35153         inline functions returning an unconstrained result.
35154
35155 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
35156
35157         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35158         conform to what other front-ends do.
35159
35160 2004-04-08  Doug Rupp  <rupp@gnat.com>
35161
35162         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35163         libraries.
35164
35165 2004-04-06  Pascal Obry  <obry@gnat.com>
35166
35167         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35168
35169         * osint.adb (Program_Name): Do not look past a directory separator.
35170
35171 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
35172
35173         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35174
35175         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35176         requirement for preserving a copy of the original assignment node.
35177
35178         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35179
35180 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
35181
35182         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35183         when supported.
35184
35185 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
35186
35187         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35188         operator calls in functional notation, and apply
35189         Universal_Interpretation to operands, not to their type.
35190
35191 2004-04-06  Robert Dewar  <dewar@gnat.com>
35192
35193         * 5wdirval.adb: Minor reformatting
35194
35195 2004-04-06  Ed Falis  <falis@gnat.com>
35196
35197         * gnat_rm.texi: Improve a reference to the GCC manual
35198
35199 2004-04-05  Vincent Celier  <celier@gnat.com>
35200
35201         * adaint.h, adaint.c: Add function __gnat_named_file_length
35202
35203         * impunit.adb: Add Ada.Directories to the list
35204
35205         * Makefile.in: Add VMS and Windows versions of
35206         Ada.Directories.Validity package body.
35207
35208         * Makefile.rtl: Add a-direct and a-dirval
35209
35210         * mlib-tgt.ads: Minor comment update.
35211
35212         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35213         a-direct.ads, a-direct.adb: New files.
35214
35215 2004-04-05  Vincent Celier  <celier@gnat.com>
35216
35217         PR ada/13620
35218         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35219         just to the compiler.
35220
35221 2004-04-05  Robert Dewar  <dewar@gnat.com>
35222
35223         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35224         returned string is 1.
35225
35226         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35227
35228         * eval_fat.ads: Minor reformatting
35229
35230         * g-curexc.ads: Document that lower bound of returned string values
35231         is always one.
35232
35233         * gnatlink.adb: Add ??? comment for previous change
35234         (need to document why this is VMS specific)
35235
35236         * s-stoele.ads: Minor reformatting
35237
35238         * tbuild.ads: Minor reformatting throughout (new function specs)
35239
35240         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35241         after WITH.
35242
35243         * scng.adb: Minor reformatting
35244
35245 2004-04-05  Geert Bosch  <bosch@gnat.com>
35246
35247         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35248         (Leading_Part): Still perform truncation to machine number if the
35249         specified radix_digits is greater or equal to machine_mantissa.
35250
35251 2004-04-05  Javier Miranda  <miranda@gnat.com>
35252
35253         * par-ch3.adb: Complete documentation of previous change
35254         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35255         (aliased must appear before constant).
35256
35257         * par-ch4.adb: Complete documentation of previous change.
35258
35259         * par-ch6.adb: Complete documentation of previous change.
35260
35261         * sinfo.ads: Fix typo in commment.
35262
35263 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
35264
35265         * sem_ch3.adb (Inherit_Components): If derived type is private and has
35266         stored discriminants, use its discriminants to constrain parent type,
35267         as is done for non-private derived record types.
35268
35269         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35270         Ada 2005 AI-310: an abstract non-dispatching operation is not a
35271         candidate interpretation in an overloaded call.
35272
35273         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35274         expression is Null and target type is not an access type (e.g. a
35275         non-private address type).
35276
35277 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
35278
35279         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35280         statement whose right-hand side is an inlined call, save a copy of the
35281         original assignment subtree to preserve enough consistency for
35282         Analyze_Assignment to proceed.
35283
35284         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35285         complete assignment subtree which is now unnecessary, as the expansion
35286         of inlined call has been improved to preserve a consistent assignment
35287         tree.  Note_Possible_Modification must be called only
35288         after checks have been applied, or else unnecessary checks will
35289         be generated.
35290
35291         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35292         of explicit dereferences that do not Come_From_Source:
35293          - be selective on cases where we must go back to the dereferenced
35294            pointer (an assignment to an implicit dereference must not be
35295            recorded as modifying the pointer);
35296          - do not rely on Original_Node being present (Analyze_Assignment
35297            calls Note_Possible_Modification on a copied tree).
35298
35299         * sem_warn.adb (Check_References): When an unset reference to a pointer
35300         that is never assigned is encountered, prefer '<pointer> may be null'
35301         warning over '<pointer> is never assigned a value'.
35302
35303 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
35304
35305         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35306         the ABI.
35307
35308 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
35309
35310         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35311         libexc. We currently don't reference anything in this library and
35312         linking it in triggers linker warnings we don't want to see.
35313
35314         * init.c: Update comments.
35315
35316 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35317
35318         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35319         * utils.c (create_field_decl): Likewise.
35320         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35321
35322 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
35323
35324         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35325         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35326         Add info directory entry and category.
35327
35328 2004-04-02  Jan Hubicka  <jh@suse.cz>
35329
35330         * utils.c: Include function.h
35331         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35332
35333 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35334
35335         PR ada/14150
35336         * Make-lang.in: Clean up generation of documentation
35337
35338         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35339
35340         * xgnatug.adb: Removed, replaced by xgnatugn.adb
35341
35342         * xgnatugn.adb: Replaces xgnatug.adb
35343
35344         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35345
35346         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35347
35348         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35349         gnat_ug_wnt.texi: Removed.
35350
35351 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35352
35353         * utils2.c: Update copyright notice.
35354
35355 2004-04-01  Robert Dewar  <dewar@gnat.com>
35356
35357         * checks.adb: Minor reformatting throughout
35358         Note that prev checkin added RM reference to alignment warning
35359
35360 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
35361
35362         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35363         non-static when building aggregate for bit-packed array.
35364
35365         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35366         function call that is itself the actual in a procedure call, build
35367         temporary for it.
35368
35369         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35370         a string literal, create a temporary for it, constant folding only
35371         handles scalars here.
35372
35373 2004-04-01  Vincent Celier  <celier@gnat.com>
35374
35375         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35376         Error_Msg_SP): New empty procedures to instantiate the Scanner.
35377         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35378         tokens.
35379         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35380         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35381         and get the checksum.
35382
35383         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35384         already in the Q.
35385         Increase the Marking_Label at the end of the Multiple_Main_Loop,
35386         instead of at the beginning.
35387
35388         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35389         directly.
35390         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35391         on VMS.
35392
35393         * osint.ads (Multi_Unit_Index_Character): New Character global variable
35394
35395         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35396         not '~' directly.
35397
35398         * par.adb: Remove test on file name to detect language defined units.
35399         Add test on unit name, after parsing, to detect language defined units
35400         that are not compiled with -gnatg (except System.RPC and its children)
35401
35402         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35403         following units without style checking.
35404
35405         * switch-c.adb: Change -gnatC to -gnateI
35406
35407         * usage.adb: Document new switch -gnateInnn
35408
35409         * scng.adb (Accumulate_Token_Checksum): New procedure
35410         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35411         word or literal number.
35412         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35413         numbers.
35414
35415 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35416
35417         * a-tasatt.adb,
35418         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35419         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35420         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35421         5vtpopde.adb: Add missing 'constant' keywords.
35422
35423 2004-04-01  Javier Miranda  <miranda@gnat.com>
35424
35425         * par-ch4.adb: (P_Allocator): Code cleanup
35426
35427         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35428         attribute.
35429
35430         * sinfo.ads: Complete documentation of previous change
35431
35432 2004-04-01  Pascal Obry  <obry@gnat.com>
35433
35434         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35435         only on VMS.  This special handling was done because an old GNU/ld bug
35436         on Windows which has been fixed.
35437
35438 2004-04-01  GNAT Script  <nobody@gnat.com>
35439
35440         * Make-lang.in: Makefile automatically updated
35441
35442 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35443
35444         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35445         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35446         * trans.c (tree_transform, convert_with_check): Likewise.
35447         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35448         (build_vms_descriptor, unchecked_convert): Likewise.
35449         * utils2.c (nonbinary_modular_operation): Likewise.
35450
35451 2004-03-29  Javier Miranda  <miranda@gnat.com>
35452
35453         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35454         (Install_Null_Excluding_Check): Local subprogram that determines whether
35455         an access node requires a runtime access check and if so inserts the
35456         appropriate run-time check.
35457         (Apply_Access_Check): Call Install_Null_Excluding check if required
35458         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35459
35460         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35461
35462         * einfo.ads: Fix typo in comment
35463
35464         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35465         null-excluding type to force the corresponding run-time check.
35466         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35467         type to force the corresponding run-time check.
35468
35469         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35470         the null-excluding type to force the corresponding run-time check.
35471
35472         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35473         case of access types unless they have the null-excluding attribute.
35474
35475         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35476         part.
35477
35478         * exp_util.ads: Fix typo in comment
35479
35480         * par.adb (P_Null_Exclusion): New subprogram
35481         (P_Subtype_Indication): New formal that indicates if the null-excluding
35482         part has been scanned-out and it was present
35483
35484         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35485
35486         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35487         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35488         type to force the corresponding run-time check
35489         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35490         components
35491         (Resolve_Array_Aggregate): Carry out some static checks
35492         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35493
35494         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35495         attribute must be set only if specified by means of the null-excluding
35496         part. In addition, we must also propagate the access-constant attribute
35497         if present.
35498         (Access_Subprogram_Declaration, Access_Type_Declaration,
35499         Analyze_Component_Declaration, Analyze_Object_Declaration,
35500         Array_Type_Declaration, Process_Discriminants,
35501         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35502         and carry out some static checks.
35503         (Build_Derived_Access_Type): Set the null-excluding attribute
35504         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35505         checks.
35506
35507         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35508
35509         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35510
35511         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35512         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35513         null-excluding part was present; it is not required to be done here in
35514         case of anonymous access types.
35515         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35516         value.
35517
35518         * sem_res.adb (Resolve_Actuals): Carry out some static check
35519         (Resolve_Null): Allow null in anonymous access
35520
35521         * sinfo.adb: New subprogram Null_Exclusion_Present
35522         All_Present and Constant_Present available on access_definition nodes
35523
35524         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35525         object_declaration, derived_type_definition, component_definition,
35526         discriminant_specification, access_to_object_definition,
35527         access_function_definition, allocator, access_procedure_definition,
35528         access_definition, parameter_specification, All_Present and
35529         Constant_Present flags available on access_definition nodes.
35530
35531 2004-03-29  Robert Dewar  <dewar@gnat.com>
35532
35533         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35534         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35535         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35536         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35537         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35538         sem_prag.adb: Updates to handle multiple units/file
35539
35540         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35541
35542         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35543         sem_util.adb: Minor reformatting
35544
35545         * sem_ch12.adb: Add comment for previous change
35546
35547 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35548
35549         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35550         executable name when not initialized. Otherwise, use its current value.
35551
35552         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35553         initialize it to another executable name than the current one. This
35554         allows to configure paths for an executable name (gnatmake) different
35555         from the current one (gnatdist).
35556
35557 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35558
35559         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35560         current unit cannot be inlined if it appears in the body of a withed
35561         unit, to avoid order of elaboration problems in gigi.
35562
35563         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35564         information for protected (wrapper) operation as well, to simplify gdb
35565         use.
35566
35567         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35568         protected body, indicate that the entity for the generated spec comes
35569         from source, to ensure that references are properly generated for it.
35570         (Build_Body_To_Inline): Do not inline a function that returns a
35571         controlled type.
35572
35573         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35574         apply convention to homonyms that are declared explicitly.
35575
35576         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35577         that renames an equality operator and the operands are overloaded,
35578         resolve them with the declared formal types, before rewriting as an
35579         operator.
35580
35581 2004-03-29  GNAT Script  <nobody@gnat.com>
35582
35583         * Make-lang.in: Makefile automatically updated
35584
35585 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35586
35587         * memtrack.adb: Log realloc calls, which are treated as free followed
35588         by alloc.
35589
35590 2004-03-25  Vincent Celier  <celier@gnat.com>
35591
35592         * prj-makr.adb (Process_Directories): Detect when a file contains
35593         several units. Do not include such files in the config pragmas or
35594         in the naming scheme.
35595
35596         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35597         Resolve links only when not in Trusted_Mode.
35598         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35599         Do not resolve links for the display names.
35600
35601         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35602         resolve links when computing the display names.
35603
35604 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35605
35606         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35607         attribute reference does not denote a subtype, it can be any
35608         expression that has a classwide type, potentially after an implicit
35609         dereference.  In particular, the prefix can be a view conversion for
35610         a classwide type (for which Is_Object_Reference holds), but it can
35611         also be a value conversion for an access-to-classwide type. In the
35612         latter case, there is an implicit dereference, and the original node
35613         for the prefix does not verify Is_Object_Reference.
35614
35615         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35616         conversion of a discriminant-dependent component of a mutable object
35617         is one itself.
35618
35619 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35620
35621         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35622         inherited, has convention C, and has unconstrained array parameters,
35623         place the corresponding warning on the derived type declaration rather
35624         than the original subprogram.
35625
35626         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35627         indication on renaming declaration, if formal has a box and actual
35628         is absent.
35629
35630         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35631         determine whether to generate an implicit or explicit reference to
35632         the renamed entity.
35633
35634         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35635         subprogram renaming comes from a defaulted formal subprogram in an
35636         instance.
35637
35638 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35639
35640         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35641         value expressions to ensure that calls within a component definition
35642         will be checked (since those are evaluated during the record type's
35643         elaboration).
35644
35645 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35646
35647         * s-tpobop.adb: Code clean up:
35648         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35649         code.
35650         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35651
35652 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35653
35654         * Makefile.in: Clean up in the ravenscar run time.
35655
35656 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35657
35658         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35659         of No_Strict_Aliasing to build_pointer_type_for_mode.
35660         * utils.c (update_pointer_to): Walk pointer and ref chains.
35661
35662 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35663
35664         * ali.ads: Fix Comment about Dynamic_Elab.
35665
35666         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35667         Has_RACW, Is_Generic, etc.)
35668         (Output_Object, Gnatls): Take into account ALI files not attached to
35669         an object.
35670
35671 2004-03-22  Vincent Celier  <celier@gnat.com>
35672
35673         * gprep.adb: Change all String_Access to Name_Id
35674         (Is_ASCII_Letter): new function
35675         (Double_File_Name_Buffer): New procedure
35676         (Preprocess_Infile_Name): New procedure
35677         (Process_Files): New procedure
35678         (Gnatprep): Check if output and input are existing directories.
35679         Call Process_Files to do the real job.
35680
35681 2004-03-22  Robert Dewar  <dewar@gnat.com>
35682
35683         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35684         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35685
35686 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35687
35688         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35689         case when the source contains only comments.
35690
35691 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35692
35693         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35694         declaration for a child subprogram body that acts as a spec, indicate
35695         that the entity in the declaration needs debugging information.
35696
35697         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35698         full view if the subtype is created for a constrained record component;
35699         gigi has enough information to construct the record, and there is no
35700         place in the tree for the declaration.
35701
35702         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35703         serial number for the dummy body that is built for analysis, to avoid
35704         inconsistencies in the generation of internal names when compiling
35705         with -gnatN.
35706
35707 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35708
35709         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35710         object.
35711
35712 2004-03-22  GNAT Script  <nobody@gnat.com>
35713
35714         * Make-lang.in: Makefile automatically updated
35715
35716 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35717
35718         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35719         * trans.c (tree_transform, emit_index_check): Likewise.
35720         * utils.c (build_template): Likewise.
35721         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35722         (maybe_unconstrained_array, unchecked_convert): Likewise.
35723         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35724         (build_unary_op): Likewise.
35725         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35726         (fill_vms_descriptor): Likewise.
35727         (build_call_alloc_dealloc): Likewise.
35728         ALIGN is unsigned.
35729         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35730
35731 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35732
35733         PR other/14630
35734         * gnat_ug.texi: Add info directory category and entry.
35735         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35736         gnat_ug_wnt.texi: Regenerate.
35737
35738 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35739
35740         * ada-tree.h: Update copyright notice.
35741         Minor reformatting.
35742
35743 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35744
35745         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35746         as regular exception objects and not as mere integers representing the
35747         condition code.  The latter approach required some dynamics to mask off
35748         severity bits, which did not fit well into the GCC table based model.
35749         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35750         exception data objects. We don't it and it would conflict with the other
35751         external symbol we have to generate for such exceptions.
35752
35753         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35754         the special code for VMS exceptions, since these are now represented
35755         as regular exceptions objects.
35756
35757 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35758
35759         * decl.c (debug_no_type_hash): Remove.
35760         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35761         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35762
35763 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35764
35765         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35766         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35767
35768 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35769
35770         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35771         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35772         (TYPE_RM_SIZE_INT): Directly use type.values.
35773         (TREE_LOOP_ID): Clean up check.
35774         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35775         TYPE_VALUES, not TYPE_FIELDS.
35776         * trans.c (convert_with_check): Delay access of bounds of basetype
35777         until sure is numeric.
35778
35779 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35780
35781         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35782
35783         Code clean up:
35784         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35785         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35786         Specific.Set instead of direct call to e.g pthread_setspecific.
35787
35788 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35789
35790         * adaint.c: Update comments.
35791
35792         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35793         GNATLIB_SHARED for FreeBSD.
35794
35795 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35796
35797         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35798         When needed (stack checking) the stack size is retrieved
35799         from the VxWorks kernel.
35800
35801         * Makefile.in: Flag -nostdinc is required when building the run time
35802         for avoiding looking for files in the base compiler.
35803         Add the VxWorks specific version of the package body for
35804         System.Stack_checking.Operations (5zstchop.adb).
35805
35806         * Make-lang.in: Add the object file for
35807         System.Stack_Checking.Operations.
35808
35809         * Makefile.rtl: Add object file for the package
35810         System.Stack_Checking.Operations.
35811
35812         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35813
35814         * s-stache.ads, s-stache.adb: Move the operations related to stack
35815         checking from this package to package System.Stack_Checking.Operations.
35816         This way, stack checking operations are only linked in the final
35817         executable when using the -fstack-check flag.
35818
35819 2004-03-18  Doug Rupp  <rupp@gnat.com>
35820
35821         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35822         Reorganize ifeq's.
35823
35824         * 5qsystem.ads, 5xcrtl.ads: New files.
35825
35826 2004-03-18  Vincent Celier  <celier@gnat.com>
35827
35828         * prj.adb (Reset): Reset hash table Files_Htable
35829
35830         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35831         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35832         the procedures Add_To_Path_File.
35833         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35834         making sure that each directory is present only once and, for object
35835         dirs, when a directory already present is added, the duplicate is
35836         removed and the directory is always put as the last in the table.
35837         Write the path files at the end of these accumulations.
35838
35839         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35840         Files_Htable for all sources.
35841
35842         * prj-proc.adb (Process): Remove restrictions between not directly
35843         related extending projects.
35844
35845 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35846
35847         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35848         (Find_Sources): Minor speed optimization.
35849
35850         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35851         parameter Trusted_Mode.
35852
35853 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35854
35855         * scn.adb (Determine_License): Take into account a degenerated case
35856         when the source contains only comments.
35857
35858 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35859
35860         * sem_warn.adb (Check_References): For a warning on a selected
35861         component that does not come from source, locate an uninitialized
35862         component of the record type to produce a more precise error message.
35863
35864 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35865
35866         * 3zsoccon.ads: Fix multicast options.
35867
35868         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35869         in the spec.
35870
35871 2004-03-15  Robert Dewar  <dewar@gnat.com>
35872
35873         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35874         pragma used for a private type.
35875
35876         * lib-xref.adb (Generate_Reference): Do not generate warning if
35877         reference is in a different unit from the pragma Unreferenced.
35878
35879         * 5vtpopde.adb: Minor reformatting
35880         Fix casing of To_Task_ID
35881
35882         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35883         flag if we have an unchecked conversion to an access type in the same
35884         unit.
35885
35886 2004-03-15  Geert Bosch  <bosch@gnat.com>
35887
35888         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35889         imaginary parts, use Double precision throughout.
35890
35891         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35892         we want to be able to compile run-time with -gnata for testing, but
35893         this may also be instantiated in user code that is compiled with -gnata.
35894
35895 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35896
35897         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35898         codes. Having a separate type for this is useful to enforce consistency
35899         throughout the various run-time units.
35900         (Exception_Data): Use Exception_Code for Import_Code.
35901
35902         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35903         Natural and Integer in various places.
35904         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35905         with the severity bits masked off.
35906         (Register_VMS_Exception): Handle the additional exception data pointer
35907         argument.
35908
35909         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35910         component, now reflected by an exported accessor.
35911         (is_handled_by): New routine to compute whether the propagated
35912         occurrence matches some handler choice specification. Extracted out of
35913         get_action_description_for, and expanded to take care of the VMS
35914         specifities.
35915         (get_action_description_for): Use is_handled_by instead of an explicit
35916         complex condition to decide if the current choice at hand catches the
35917         propagated occurrence.
35918
35919         * raise.h (Exception_Code): New type for C.
35920
35921         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35922         System.Standard_Library.Exception_Code, to allow references from the
35923         pragma import/export expander.
35924
35925         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35926         New accessors to allow easy access to GNAT exception data
35927         characteristics.
35928         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35929         redundant Handled_By_Others component, helper for the personality
35930         routine which will now be able to call the appropriate exception data
35931         accessor instead.
35932
35933         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35934         component of Standard_Exception_Type to be the closest possible to
35935         Exception_Code in System.Standard_Library, that we cannot get at this
35936         point. Expand a ??? comment to notify that this type node should
35937         probably be rewritten later on.
35938
35939         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35940         registration call to include a pointer to the exception object in the
35941         arguments.
35942
35943         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35944         instead of int and explicit bitmasks.
35945
35946 2004-03-15  Vincent Celier  <celier@gnat.com>
35947
35948         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35949         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35950
35951         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35952         longer needed now that it is in the spec of
35953         System.Tasking.Task_Attributes.
35954
35955         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35956
35957         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35958
35959         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35960
35961         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35962         taken care of in Scan_Make_Arg.
35963         (Scan_Make_Arg): Add the executable suffix only if the argument
35964         following -o, in canonical case, does not end with the executable
35965         suffix.  When in verbose mode and executable file name does not end
35966         with executable suffix, output the executable name, in canonical case.
35967
35968         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35969         to avoid warnings when instantiating Ada.Task_Attributes.
35970         Minor reformating.
35971
35972         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35973         in the correct order.
35974
35975         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35976         redirect standard output and error to a file for the invocation of the
35977         compiler, then read the file.
35978
35979         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35980         directory, instead of the Value.
35981         (Find_Source_Dirs): Remove useless code & comments.
35982
35983 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35984
35985         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35986         tagged type is inherited, and the parent operation is not frozen yet,
35987         force generation of a freeze node for the inherited operation, so the
35988         corresponding dispatch entry is properly initialized.
35989         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35990         when looking for user-defined equality operation.
35991
35992         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35993         boolean when locating primitive equality of tagged component.
35994
35995         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35996         bit-aligned field and the right-hand side a string literal, introduce
35997         a temporary before expanding assignment into a loop.
35998
35999         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36000         priority in full, to ensure that any expanded subepxressions of it are
36001         elaborated in the scope of the init_proc.
36002
36003         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36004         after object declaration, skipping over code that may have been
36005         generated for validity checks.
36006
36007         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36008         discriminants, ignore the known discriminants of its full view, if
36009         any, to check legality.
36010
36011         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36012         component if type has unknown discriminants.
36013         (Analyze_Private_Extension_Declaration): Discriminant constraint is
36014         null if type has unknown discriminants.
36015
36016         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36017         for end label when present.
36018
36019         * s-fileio.adb (Open): When called with a C_Stream, use given name for
36020         temporary file, rather than an empty string.
36021
36022 2004-03-15  Ed Falis  <falis@gnat.com>
36023
36024         * s-thread.adb: Removed, no longer used.
36025
36026 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36027
36028         * decl.c (target.h): Now include.
36029         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36030         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36031         (validate_size): For POINTER_TYPE, get smallest size permitted on
36032         machine.
36033
36034         * fe.h: Sort Einfo decls and add Set_Mechanism.
36035
36036         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36037         (ada/decl.o): Depends on target.h.
36038
36039         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36040         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36041
36042 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
36043
36044         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36045
36046         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36047         Insert_Dereference_Action when rewriting an implicit dereference into
36048         an explicit one, this will be taken care of during expansion of the
36049         explicit dereference.
36050         (Expand_N_Slice): Same. Always do the rewriting, even for the case
36051         of non-packed slices, since the dereference action generated by
36052         expansion of the explicit dereference is needed in any case.
36053         (Expand_N_Selected_Component): When rewriting an implicit dereference,
36054         analyze and resolve the rewritten explicit dereference so it is seen
36055         by the expander.
36056         (Insert_Dereference_Action): This procedure is now called only for the
36057         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36058         dereferences that do not come from source (including explicit
36059         dereferences resulting from rewriting implicit ones), but do not
36060         recursively insert a check for the dereference nodes contained within
36061         the check.
36062         (Insert_Dereference_Action): Clarify and correct comment.
36063
36064 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
36065
36066         PR ada/14131
36067         Move language detection to the top level.
36068         * config-lang.in: Build by default.
36069
36070 2004-03-05  Robert Dewar  <dewar@gnat.com>
36071
36072         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36073
36074         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36075         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36076         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36077         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36078         unchecked conversion to spec to avoid warnings.
36079
36080         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36081         to Task_ID
36082
36083         * 7stpopsp.adb: Correct casing in To_Task_ID call
36084
36085         * a-strsea.ads, a-strsea.adb: Minor reformatting
36086
36087         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36088
36089         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36090         Adjust Max_Msg_Length to be clearly large enough.
36091
36092         * fe.h: Define In_Same_Source_Unit
36093
36094         * osint.adb: Add pragma Warnings Off to suppress warnings
36095         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36096         aliasing warnings.
36097
36098         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36099
36100         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36101
36102         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36103
36104         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36105
36106         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36107
36108         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36109         node. We now do generate them for gcc back end.
36110
36111         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36112         warning.
36113
36114         * sinput-c.adb: Fix bad name in header.
36115         Add pragma Warnings Off to suppress aliasing warning.
36116
36117         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36118
36119         * snames.h, snames.ads, snames.adb: Add entry for pragma
36120         No_Strict_Aliasing.
36121
36122 2004-03-05  Vincent Celier  <celier@gnat.com>
36123
36124         * prj-com.ads: Add hash table Files_Htable to check when a file name
36125         is already a source of another project.
36126
36127         * prj-nmsc.adb (Record_Source): Before recording a new source, check
36128         if its file name is not already a source of another project. Report an
36129         error if it is.
36130
36131         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36132         source file name, call gnatpp with all the sources of the main project.
36133
36134         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36135         of file names.
36136
36137         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36138         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36139         /RUNTIME_SYSTEM=, converted to --RTS=
36140         /NOTABS, converted to -notabs
36141
36142 2004-03-05  Pascal Obry  <obry@gnat.com>
36143
36144         * make.adb: Minor reformatting.
36145
36146 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
36147
36148         Part of implemention of AI-262.
36149         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36150
36151         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36152         procedure.
36153
36154         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36155         when component type is a partially constrained class-wide subtype.
36156         (Constrain_Discriminated_Type): If parent type has unknown
36157         discriminants, a constraint is illegal, even if full view has
36158         discriminants.
36159         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36160         with unknown discriminants whose full view is a discriminated record.
36161
36162         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36163         flag, to handle properly derivations of tagged types with unknown
36164         discriminants.
36165         (Analyze_Package_Spec, Analyze_Package_Body): Install
36166         Private_With_Clauses before analyzing private part or body.
36167
36168         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36169         Has_Discriminants can be true for a given type (documentation).
36170
36171 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
36172
36173         * s-restri.ads: Fix license (GPL->GMGPL).
36174
36175         * s-tassta.adb: Minor reformatting.
36176
36177         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36178         by calls to Exit_One_ATC_Level, since additional clean up is performed
36179         by this function.
36180
36181         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36182         by calls to Exit_One_ATC_Level, since additional clean up is performed
36183         by this function.
36184
36185 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36186
36187         * trans.c: Reflect GCC changes to fix bootstrap problem.
36188         Add warning for suspicious aliasing unchecked conversion.
36189
36190 2004-03-05  GNAT Script  <nobody@gnat.com>
36191
36192         * Make-lang.in: Makefile automatically updated
36193
36194 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
36195
36196         * ali.adb (Read_Instantiation_Instance): Do not modify the
36197         current_file_num when reading information about instantiations, since
36198         this corrupts files in later references.
36199
36200 2004-03-02  Vincent Celier  <celier@gnat.com>
36201
36202         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36203         before checking if it is read-only.
36204
36205         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36206         of SRC_DIRS and eliminate duplicates.
36207
36208         * gprcmd.adb: Replace command "path" with command "path_sep" to return
36209         the path separator.
36210         (Usage): Document path_sep
36211
36212         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36213         C++ compiler. No need for a script.
36214         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36215         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36216         subst.
36217
36218         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36219         where there are Ada sources.
36220         (Set_Ada_Paths): Only add to the include path the source dirs of project
36221         with Ada sources.
36222         (Add_To_Path): Add the Display_Values of the directories, not their
36223         Values.
36224
36225         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36226         data.
36227
36228         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36229         is not No_Name.
36230         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36231         Value is canonicalized.
36232         (Language_Independent_Check): Do not copy Value to Display_Value when
36233         canonicalizing Value.
36234
36235         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36236         path to find limited with cycles.
36237         (Parse_Single_Project): Use canonical cased path to find the end of a
36238         with cycle.
36239
36240 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
36241
36242         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36243         and not a child unit.
36244
36245         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36246         appear in a with_clause.
36247
36248         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36249         only happen in type_annotate mode, do not try to elaborate it.
36250
36251         * exp_util.adb (Force_Evaluation): If expression is a selected
36252         component on the left of an assignment, use a renaming rather than a
36253         temporary to remove side effects.
36254
36255         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36256         inlined instance body, which is analyzed before the end of the
36257         enclosing scope.
36258
36259 2004-03-02  Robert Dewar  <dewar@gnat.com>
36260
36261         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36262         sem_ch4.adb: Use new feature for substitution of keywords in VMS
36263
36264         * errout.ads, errout.adb: Implement new circuit for substitution of
36265         keywords in VMS.
36266
36267         * sem_case.adb (Analyze_Choices): Place message properly when case is
36268         a subtype reference rather than an explicit range.
36269
36270         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36271
36272 2004-03-02  Doug Rupp  <rupp@gnat.com>
36273
36274         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36275
36276 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
36277
36278         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36279
36280 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36281
36282         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36283         BLKmode bitfield.
36284
36285 2004-02-25  Robert Dewar  <dewar@gnat.com>
36286
36287         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36288         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36289         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36290         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36291         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36292         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36293         the defining instance of the type to avoid aliasing problems.
36294         Fix copyright header.  Fix bad comments in package header.
36295
36296         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36297
36298 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
36299
36300         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36301         rewritten as references when aliased through an address clause.
36302
36303         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36304         whether call can be interpreted as an indirect call to the result of a
36305         parameterless function call returning an access subprogram.
36306
36307 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
36308
36309         Code clean up:
36310         * exp_ch7.adb (Make_Clean): Remove generation of calls to
36311         Unlock[_Entries], since this is now done by Service_Entries directly.
36312
36313         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36314
36315         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36316         Requeue_Call for better code readability. Change spec and update calls:
36317         PO_Service_Entries now unlock the PO on exit.
36318         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36319         PO_Service_Entries.
36320
36321         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36322
36323         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36324
36325 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
36326
36327         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36328         protected subprogram call and analyzing the result of such expanding
36329         in case when the called protected subprogram is eliminated.
36330
36331         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36332         names.
36333
36334 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
36335
36336         * Makefile.in: Clean ups.
36337
36338 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
36339
36340         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36341         protected operations if original subprogram is flagged as eliminated.
36342         (Expand_N_Subprogram_Body): For a protected operation, create
36343         discriminals for next operation before checking whether the operation
36344         is eliminated.
36345
36346         * exp_ch9.adb (Expand_N_Protected_Body,
36347         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36348         for internal protected operations if the original subprogram is
36349         eliminated.
36350
36351         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36352         declared in a single protected object.
36353
36354 2004-02-23  Vincent Celier  <celier@gnat.com>
36355
36356         * prj-attr.adb: Make attribute Builder'Executable an associative array,
36357         case insensitive if file names are case insensitive, instead of a
36358         standard associative array.
36359
36360         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36361         them as case insensitive on platforms where the file names are case
36362         sensitive.
36363
36364         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36365         project file has already been parsed that canonical path are compared.
36366
36367 2004-02-23  Robert Dewar  <dewar@gnat.com>
36368
36369         * sinput-c.ads: Correct bad unit title in header
36370
36371         * freeze.adb: Minor reformatting
36372
36373 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36374
36375         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36376         nonaddressable COMPONENT_REF that is removing padding that we are
36377         taking the address of, take the address of the padded record instead
36378         if item is variable size.
36379
36380 2004-02-20  Robert Dewar  <dewar@gnat.com>
36381
36382         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36383
36384 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
36385
36386         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36387         itype references for the constrained designated type of a component
36388         whose base type is already frozen.
36389
36390 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
36391
36392         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36393         avoid GCC warnings.
36394
36395 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
36396
36397         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36398         identifier for a phantom package that rewrites the formal package
36399         declaration with a box. The Add semantic decorations for the defining
36400         identifier from the original node (that represents the formal package).
36401
36402 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
36403
36404         * Make-lang.in (ada/stamp-sdefault): Use the top level
36405         move-if-change.
36406
36407 2004-02-19  Richard Henderson  <rth@redhat.com>
36408
36409         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36410
36411 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
36412
36413         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36414         Scan_ALI can be used for multiple ALI files without reinitializing
36415         between calls.
36416
36417 2004-02-18  Robert Dewar  <dewar@gnat.com>
36418
36419         * debug.adb: Minor reformatting.
36420
36421 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36422
36423         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36424         to zero if there is an address clause.
36425
36426 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36427
36428         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36429
36430 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36431
36432         * layout.adb (Layout_Component_List): Revise generation of call to
36433         discriminant-checking function to pass selections of all of the type's
36434         discriminants rather than just the variant-controlling discriminant.
36435
36436 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36437
36438         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36439         fail in the current setup and triggers spurious system error messages.
36440         Pretend it occurred and failed instead.
36441
36442 2004-02-18  Vincent Celier  <celier@gnat.com>
36443
36444         * bld.adb: Mark FLDFLAGS as saved
36445         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36446         it is not the root project.  Put each directory to be
36447         extended between double quotes to prevent it to be expanded on Windows.
36448         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36449         the project file. Set them back to their initial values if they have not
36450         been set in the project file.
36451
36452         * gprcmd.adb: (Gprdebug, Debug): New global variables
36453         (Display_Command): New procedure
36454         (Usage): Document new command "linkopts"
36455         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36456         Implement new command "linkopts"
36457         Remove quotes that may be around arguments for "extend"
36458         Always call Normalize_Pathname with arguments formatted for the platform
36459
36460         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36461         Change @echo to @$(display) in target clean to be able to clean silently
36462
36463         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36464
36465         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36466         canonical case.
36467
36468         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36469         = Extending_All when current project is an extending all project.
36470
36471         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36472         set to True only for LINK command, after Unix switch -o.
36473         (Process_Arguments): Set Output_File_Expected to True for LINK command
36474         after Unix switch -o. When Output_File_Expected is True, never add an
36475         extension to a file name.
36476
36477         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36478         option file name, only to the --for-linker= switch.
36479         (Option_File_Name): If option file name do not end with ".opt", append
36480         "/OPTIONS".
36481
36482 2004-02-18  GNAT Script  <nobody@gnat.com>
36483
36484         * Make-lang.in: Makefile automatically updated
36485
36486 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36487
36488         * Make-lang.in (stamp-sdefault): Do not depend on
36489         move-if-change.
36490
36491 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36492
36493         * config-lang.in: Disable Ada by default until probe logic for
36494         a bootstrap Ada compiler can be moved to the top level configure
36495         script.
36496
36497 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36498
36499         * decl.c (components_to_record): Don't claim that the internal fields
36500         we make to hold the variant parts are semantically addressable, because
36501         they are not.
36502
36503         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36504         adjust the comment describing the modular type form when we can use it.
36505         (Install_PAT): Account for the Esiz renaming.
36506
36507         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36508         sc_onstack context indication before raising the exception to which
36509         the signal is mapped. Allows better handling of later signals possibly
36510         triggered by the resumed user code if the exception is handled.
36511
36512 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36513
36514         * 5zinit.adb: Removed, no longer used.
36515
36516 2004-02-12  Robert Dewar  <dewar@gnat.com>
36517
36518         * ali.adb: Remove separating space between parameters on R line. Makes
36519         format consistent with format used by the binder for Set_Globals call.
36520
36521         * atree.ads, atree.adb: Minor reformatting (new function header format)
36522
36523         * bindgen.adb: Add Run-Time Globals documentation section containing
36524         detailed documentation of the globals passed from the binder file to
36525         the run time.
36526
36527         * gnatls.adb: Minor reformatting
36528
36529         * init.c (__gnat_set_globals): Add note pointing to documentation in
36530         bindgen.
36531
36532         * lib-writ.ads, lib-writ.adb: Remove separating space between
36533         parameters on R line.
36534         Makes format consistent with format used by the binder for Set_Globals
36535         call.
36536
36537         * osint.ads: Add 2004 to copyright notice
36538         Minor reformatting
36539
36540         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36541         Noticed during code reading, documentation issue only
36542
36543         * usage.adb: Remove junk line for obsolete C switch
36544         Noticed during code reading
36545
36546 2004-02-12  Vincent Celier  <celier@gnat.com>
36547
36548         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36549         extend for each directory, so that multiple /** directories are
36550         extended individually.
36551         (Recursive_Process): Set the default for LANGUAGES to ada
36552
36553         * gprcmd.adb: Define new command "ignore", to do nothing.
36554         Implement new comment "path".
36555
36556         * Makefile.generic: Suppress output when SILENT is set
36557         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36558         used, so that the correct compiler is invoked.
36559         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36560         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36561
36562 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36563
36564         * Makefile.in: Clean ups and remove obsolete targets.
36565
36566 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36567
36568         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36569         predicate declared in exp_util.
36570
36571         * exp_util.adb: Add comments.
36572
36573         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36574         visibility before compiling context of the subunit.
36575
36576         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36577         value but the name is a procedure, do not attempt to analyze as a call,
36578         in order to obtain more telling diagnostics.
36579
36580         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36581         'Access on parameterless function calls.
36582         (Normalize_Actuals): For a parameterless function call with missing
36583         actuals, defer diagnostic until resolution of enclosing call.
36584
36585         * sem_util.adb (Wrong_Type): If the context type is an access to
36586         subprogram and the expression is a procedure name, suggest a missing
36587         'attribute.
36588
36589 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36590             Nathanael Nerode  <neroden@gcc.gnu.org>
36591
36592         PR ada/6637
36593         PR ada/5911
36594         Merge with libada-branch:
36595         * config-lang.in: Build libada only when ada is built.
36596
36597 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36598
36599         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36600         for a tagged type, verify that both formals have the same type.
36601
36602         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36603         temporary when the formal is an in-parameter and the actual a possibly
36604         unaligned slice.
36605
36606         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36607         when expansion is disabled, to ensure proper name capture with
36608         overloaded literals.  Condition can be of any boolean type, resolve
36609         accordingly.
36610
36611         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36612         renaming is for a formal subprogram with a default operator name, and
36613         there is a usable operator that is visible at the point of
36614         instantiation.
36615
36616 2004-02-09  Robert Dewar  <dewar@gnat.com>
36617
36618         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36619         rewrite to ignore errors in ali files, intended to allow tools downward
36620         compatibility with new versions of ali files.
36621
36622         * ali.ads: Add new parameter Ignore_Errors
36623
36624         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36625         duplicating the error message giving the file with restrictions.
36626
36627         * debug.adb: Add debug flag I for gnatbind
36628
36629         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36630         operators for the case where the operator is a defining operator.
36631
36632         * exp_ch3.adb: Minor reformatting (new function spec format).
36633
36634         * exp_ch4.adb: Add comment for previous change, and make minor
36635         adjustment to loop to always check for improper loop termination.
36636         Minor reformatting throughout (new function spec format).
36637
36638         * gnatbind.adb: Implement -di debug flag for gnatbind
36639
36640         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36641
36642         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36643
36644         * lib-load.adb: Fix bad assertion.
36645         Found by testing and code reading.
36646         Minor reformatting.
36647
36648         * lib-load.ads: Minor reformatting.
36649
36650         * lib-writ.adb: There is only one R line now.
36651
36652         * lib-writ.ads: Add documentation on making downward compatible changes
36653         to ali files so old tools work with new ali files.
36654         There is only one R line now.
36655         Add documentation on format incompatibilities (with special GPS note)
36656
36657         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36658
36659         * par-load.adb: Minor reformatting
36660
36661         * sem_ch8.adb: Fix to error message from last update
36662         Minor reformatting and restructuring of code from last update
36663
36664         * par-prag.adb, snames.adb, snames.ads, snames.h,
36665         sem_prag.adb: Implement pragma Profile.
36666
36667         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36668         options.
36669
36670         * usage.adb: Add line for -gnatyN switch
36671
36672         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36673
36674 2004-02-09  Albert Lee  <lee@gnat.com>
36675
36676         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36677
36678 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36679
36680         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36681         slices.
36682
36683         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36684         is nested in an instance that is not frozen yet, to avoid
36685         order-of-elaboration problems in gigi.
36686
36687         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36688         body the attribute is legal.
36689
36690 2004-02-09  Robert Dewar  <dewar@gnat.com>
36691
36692         * s-rident.ads: Minor comment correction
36693
36694         * targparm.adb: Remove dependence on uintp completely. There was
36695         always a bug in Make in that it called Targparm before initializing
36696         the Uint package. The old code appeared to get away with this, but
36697         the new code did not! This caused an assertion error in gnatmake.
36698
36699         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36700         are indeed fully supported.
36701
36702 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36703
36704         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36705
36706 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36707
36708         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36709         with targetm.calls.promote_prototypes.
36710
36711 2004-02-04  Robert Dewar  <dewar@gnat.com>
36712
36713         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36714         ali.ads, gprcmd.adb: Minor reformatting
36715
36716         * bindgen.adb: Output restrictions string for new style restrictions
36717         handling
36718
36719         * impunit.adb: Add s-rident.ads (System.Rident) and
36720         s-restri (System.Restrictions)
36721
36722         * lib-writ.adb: Fix bug in writing restrictions string (last few
36723         entries wrong)
36724
36725         * s-restri.ads, s-restri.adb: Change name Restrictions to
36726         Run_Time_Restrictions to avoid conflict with package name.
36727         Add circuit to read and acquire run time restrictions.
36728
36729 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36730
36731         * restrict.ads, restrict.adb: Use the new restriction
36732         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36733
36734         * sem_prag.adb: No_Task_Attributes is a synonym of
36735         No_Task_Attributes_Package.
36736
36737         * snames.ads, snames.adb: New entry for proper handling of
36738         No_Task_Attributes.
36739
36740         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36741         (AI-00249) that supersedes the GNAT specific restriction
36742         No_Task_Attributes.
36743
36744 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36745
36746         * sem_prag.adb:
36747         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36748          body, an identifier may be wrapped in an unchecked conversion.
36749
36750 2004-02-04  Vincent Celier  <celier@gnat.com>
36751
36752         * lib-writ.ads: Comment update for the W lines
36753
36754         * bld.adb: (Expression): An empty string list is static
36755
36756         * fname-uf.adb: Minor comment update
36757
36758         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36759
36760         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36761         restrictions on the target.
36762
36763 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36764
36765         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36766         gen_rtx.
36767
36768 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36769
36770         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36771
36772 2004-02-02  Vincent Celier  <celier@gnat.com>
36773
36774         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36775         comment before the usage.
36776         Gprcmd: Fail when command is not recognized.
36777         (Usage): Document command "prefix"
36778
36779         * g-md5.adb (Digest): Process last block.
36780         (Update): Do not process last block. Store remaining characters and
36781         length in Context.
36782
36783         * g-md5.ads (Update): Document that several call to update are
36784         equivalent to one call with the concatenated string.
36785         (Context): Add fields to allow new Update behaviour.
36786
36787         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36788         defaulted to False.
36789         When May_Fail is True and no existing file can be found, return No_File.
36790
36791         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36792         functions.
36793
36794         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36795         spec file name instead on the W line.
36796
36797 2004-02-02  Robert Dewar  <dewar@gnat.com>
36798
36799         * ali.adb: Read and acquire info from new format restrictions lines
36800
36801         * bcheck.adb: Add circuits for checking restrictions with parameters
36802
36803         * bindgen.adb: Output dummy restrictions data
36804         To be changed later
36805
36806         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36807         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36808         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36809         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36810         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36811
36812         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36813         the warning message on access to possibly uninitialized variable S)
36814         Minor changes for new restrictions handling.
36815
36816         * gnatbind.adb: Minor reformatting
36817         Minor changes for new restrictions handling
36818         Move circuit for -r processing here from bcheck (cleaner)
36819
36820         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36821
36822         * lib-writ.adb: Output new format restrictions lines
36823
36824         * lib-writ.ads: Document new R format lines for new restrictions
36825         handling.
36826
36827         * s-restri.ads/adb: New files
36828
36829         * Makefile.rtl: Add entry for s-restri.ads/adb
36830
36831         * par-ch3.adb: Fix bad error messages starting with upper case letter
36832         Minor reformatting
36833
36834         * restrict.adb: Major rewrite throughout for new restrictions handling
36835         Major point is to handle restrictions with parameters
36836
36837         * restrict.ads: Major changes in interface to handle restrictions with
36838         parameters. Also generally simplifies setting of restrictions.
36839
36840         * snames.ads/adb: New entry for proper handling of No_Requeue
36841
36842         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36843         restriction counting.
36844         Other minor changes for new restrictions handling
36845
36846         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36847         Restriction_Warnings now allows full parameter notation
36848         Major rewrite of Restrictions for new restrictions handling
36849
36850 2004-02-02  Javier Miranda  <miranda@gnat.com>
36851
36852         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36853         syntax rule for object renaming declarations.
36854         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36855         component definitions.
36856
36857         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36858         components.
36859         (Array_Type_Declaration): Give support to access components. In addition
36860         it was also modified to reflect the name of the object in anonymous
36861         array types. The old code did not take into account that it is possible
36862         to have an unconstrained anonymous array with an initial value.
36863         (Check_Or_Process_Discriminants): Allow access discriminant in
36864         non-limited types.
36865         (Process_Discriminants): Allow access discriminant in non-limited types
36866         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36867         node.  Change Ada0Y to Ada 0Y in comments
36868
36869         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36870         equality operators.
36871         Change Ada0Y to Ada 0Y in comments
36872
36873         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36874         renamings Change Ada0Y to Ada 0Y in comments
36875
36876         * sem_type.adb (Find_Unique_Type): Give support to the equality
36877         operators for universal access types
36878         Change Ada0Y to Ada 0Y in comments
36879
36880         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36881
36882         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36883         field.
36884         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36885         Change Ada0Y to Ada 0Y in comments
36886
36887         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36888         component definition and object renaming nodes
36889         Change Ada0Y to Ada 0Y in comments
36890
36891 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36892
36893         * restrict.adb: Use the new restriction identifier
36894         No_Requeue_Statements instead of the old No_Requeue for defining the
36895         restricted profile.
36896
36897         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36898         No_Requeue_Statements.
36899
36900         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36901         that supersedes the GNAT specific restriction No_Requeue. The later is
36902         kept for backward compatibility.
36903
36904 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36905
36906         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36907         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36908         pragma and fix incorrect ones.
36909
36910         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36911         warning if the pragma is redundant.
36912
36913 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36914
36915         * 5staprop.adb: Add missing 'constant' keywords.
36916
36917         * Makefile.in: use consistent value for SYMLIB on
36918         platforms where libaddr2line is supported.
36919
36920 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36921
36922         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36923         annotating types.
36924
36925 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36926
36927         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36928         handlers in the environment thread. This allows proper propagation of
36929         an exception on stack overflows in this thread even when the builtin
36930         ABI stack-checking scheme is used without support for a stack reserve
36931         region.
36932
36933         * utils.c (create_field_decl): Augment the head comment about bitfield
36934         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36935         here, because the former is not accurate enough at this point.
36936         Let finish_record_type decide instead.
36937         Don't make a bitfield if the field is to be addressable.
36938         Always set a size for the field if the record is packed, to ensure the
36939         checks for bitfield creation are triggered.
36940         (finish_record_type): During last pass over the fields, clear
36941         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36942         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36943         from DECL_BIT_FIELD.
36944
36945 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36946
36947         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36948         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36949         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36950
36951 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36952
36953         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36954
36955         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36956         (ZCX_By_Default): Likewise.
36957         (Front_End_ZCX_Support): Likewise.
36958
36959         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36960         (Initialize_Lock): Mark Level unreferenced.
36961         (Sleep): Mark Reason unreferenced.
36962         (Timed_Sleep): Likewise.
36963         (Wakeup): Likewise.
36964         (Exit_Task): Use Result.
36965         (Check_No_Locks): Mark Self_ID unreferenced.
36966
36967         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36968         (Bound_Thread_Attributes): Make Sproc constant.
36969         (New_Bound_Thread_Attributes): Likewise.
36970
36971 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36972
36973         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36974         one-dimensional array an slice assignments, when component type is
36975         controlled.
36976
36977         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36978         component type is controlled, and control_actions are in effect, use
36979         TSS procedure rather than generating inline code.
36980
36981         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36982         arrays with controlled components.
36983
36984 2004-01-26  Vincent Celier  <celier@gnat.com>
36985
36986         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36987         command line for the non VMS case.
36988
36989         * gnatlink.adb (Process_Binder_File): When building object file, if
36990         GNU linker is used, put all object paths between quotes, to prevent ld
36991         error when there are unusual characters (such as '!') in the paths.
36992
36993         * Makefile.generic: When there are sources in Ada and the main is in
36994         C/C++, invoke gnatmake with -B, instead of -z.
36995
36996         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36997         from VMS_Conversion.
36998         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36999         specification of argument file on the command line.
37000
37001 2004-01-26  Bernard Banner  <banner@gnat.com>
37002
37003         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37004
37005 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
37006
37007         * snames.adb: Update copyright notice.
37008         Add info on slice assignment for controlled arrays.
37009
37010 2004-01-23  Robert Dewar  <dewar@gnat.com>
37011
37012         * exp_aggr.adb: Minor reformatting
37013
37014         * exp_ch9.adb: Minor code clean up
37015         Minor reformatting
37016         Fix bad character in comment
37017
37018         PR ada/13471
37019         * targparm.adb (Get_Target_Parameters): Give clean abort error on
37020         unexpected end of file, along with more detailed message.
37021
37022 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37023
37024         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37025         PAT.
37026
37027         * decl.c (copy_alias_set): New function.
37028         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37029
37030 2004-01-23  Doug Rupp  <rupp@gnat.com>
37031
37032         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37033         lib$${file} in case subsequent character is not a separator.
37034
37035 2004-01-23  Vincent Celier  <celier@gnat.com>
37036
37037         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37038         when the GCC version is at least 3.
37039
37040         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37041         Remove all "Opt.", to prepare for opt split
37042
37043         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37044         Extends_All. Set to True when the project parsed is an extending all
37045         project. Fails for importing an extending all project only when the
37046         imported project is an extending all project.
37047         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37048         depending on the value of Extends_All returned.
37049
37050         * prj-proc.adb (Process): Check that no project shares its object
37051         directory with a project that extends it, directly or indirectly,
37052         including a virtual project.
37053         Check that no project extended by another project shares its object
37054         directory with another also extended project.
37055
37056         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37057         Kind = N_With_Clause
37058
37059         * prj-tree.ads: Minor reformatting
37060         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37061
37062 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
37063
37064         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37065         applies to a type with an incomplete view, use full view in Name of
37066         clause, for consistency with uses of Get_Attribute_Definition_Clause.
37067
37068 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
37069
37070         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37071         SCHED_RR, since other values are not supported by this policy.
37072         (Initialize): Move initialization of mutex attribute to package
37073         elaboration, to prevent early access to this variable.
37074
37075         * Makefile.in: Remove mention of Makefile.adalib, unused.
37076
37077         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37078         1ssecsta.ads: Removed, unused.
37079
37080 2004-01-21  Javier Miranda  <miranda@gnat.com>
37081
37082         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37083         entity if already built in the current scope.
37084
37085         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37086         reminder in internal scopes. Required for nested limited aggregates.
37087
37088 2004-01-21  Doug Rupp  <rupp@gnat.com>
37089
37090         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37091         VMS. Replace all occurences of libgnat- and libgnarl- with
37092         libgnat$(hyphen) and libgnarl$(hyphen).
37093         Fixed shared library build problem on VMS.
37094
37095 2004-01-21  Robert Dewar  <dewar@gnat.com>
37096
37097         * mlib-prj.adb: Minor reformatting
37098
37099 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
37100
37101         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37102         'constant' keywords for declaration of pointers that are not modified.
37103
37104         * exp_pakd.adb: Fix English in comment.
37105
37106 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
37107
37108         PR ada/10889
37109         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37110         copy all attributes of the parent, including the foreign language
37111         convention.
37112
37113 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
37114
37115         PR ada/10565
37116         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37117         for 'delay until' statement.
37118
37119 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
37120
37121         * Make-lang.in: Replace $(docdir) with doc.
37122         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37123         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37124         to use consistent MAKEINFO rule.
37125         (ada.man, ada.srcman): Dummy entry.
37126         (ADA_INFOFILES): Define.
37127         (ada.info, ada.srcinfo): New rules.
37128
37129 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
37130
37131         * utils.c: Update copyright notice, missed in previous change.
37132
37133 2004-01-19  Vincent Celier  <celier@gnat.com>
37134
37135         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37136         args if Bind is True. Set First_ALI, if not already done.
37137         (Build_Library): For Stand Alone Libraries, extract from one ALI file
37138         an eventual --RTS switch, for gnatbind, and all backend switches +
37139         --RTS, for linking.
37140
37141 2004-01-19  Robert Dewar  <dewar@gnat.com>
37142
37143         * sem_attr.adb, memtrack.adb: Minor reformatting
37144
37145 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
37146
37147         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37148         that rename enumeration literals. This is properly done in sem_eval.
37149
37150         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37151         to functions that rename enumeration literals.
37152
37153         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37154         functions that rename enumeration literals.
37155
37156 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
37157
37158         * Make-lang.in (utils.o): Depend on target.h.
37159         * utils.c: Include target.h.
37160         (process_attributes): Use targetm.have_named_sections instead
37161         of ASM_OUTPUT_SECTION_NAME.
37162
37163 2004-01-16  Andreas Jaeger  <aj@suse.de>
37164
37165         * Makefile.in: Add $(DESTDIR).
37166
37167 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
37168
37169         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37170         also when not defining if a Size clause applies. That information is
37171         not to be ignored.
37172
37173 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
37174
37175         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37176         symbolic links for the shared gnat run time when needed.
37177
37178 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
37179
37180         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37181         for writing, and terminate with an error message if not.
37182
37183 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
37184
37185         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37186         warning on an access to subprogram in an instance, when the target
37187         type is declared in the same generic unit.
37188         (Eval_Attribute): If 'access is known to fail accessibility check,
37189         rewrite as a raise statement.
37190
37191 2004-01-15  GNAT Script  <nobody@gnat.com>
37192
37193         * Make-lang.in: Makefile automatically updated
37194
37195 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
37196
37197         * Make-lang.in (ada.srcextra): Dummy entry.
37198
37199 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
37200
37201         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37202
37203 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
37204
37205         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37206         components that are initialized with aggregates.
37207
37208 2004-01-13  Vincent Celier  <celier@gnat.com>
37209
37210         * gnatlink.adb (Process_Binder_File): To find directory of shared
37211         libgcc, if "gcc-lib" is not a subdirectory, look for the last
37212         subdirectory "lib" in the path of the shared libgnat or libgnarl.
37213
37214         * make.adb (Gnatmake): If GCC version is at least 3, link with
37215         -shared-libgcc, when there is at least one shared library project.
37216
37217         * opt.ads (GCC_Version): New integer constant.
37218
37219         * adaint.c (get_gcc_version): New function.
37220
37221 2004-01-13  Robert Dewar  <dewar@gnat.com>
37222
37223         * sem_dist.adb, sem_res.adb, sem_util.adb,
37224         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37225         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37226
37227 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
37228
37229         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37230         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37231         declarations.
37232
37233 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
37234
37235         * misc.c: Remove trailing spaces.
37236         Update copyright notice missed in previous change.
37237
37238         PR ada/13572
37239         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37240         prefix/share/make
37241
37242         * Makefile.generic: Update copyright.
37243         Add license notice.
37244
37245         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37246         of prefix/share/make.
37247
37248         * Makefile.prolog: Update copyright.
37249         Add license notice.
37250
37251 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
37252
37253         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37254         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37255         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37256         instead of String.
37257
37258         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37259         signature.
37260
37261 2004-01-12  Javier Miranda  <miranda@gnat.com>
37262
37263         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37264         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37265         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37266         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37267         Component_Definition node.
37268
37269 2004-01-12  Ed Falis  <falis@gnat.com>
37270
37271         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37272
37273 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
37274
37275         * link.c: Change default libgnat kind to STATIC for FreeBSD.
37276
37277 2004-01-12  Bernard Banner  <banner@gnat.com>
37278
37279         * Makefile.in: map 86numaux to a-numaux for x86_64
37280
37281 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
37282
37283         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37284         generated to rename a generic actual, go to the actual itself, the
37285         subtype is not a user-visible entity.
37286
37287         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37288         part is a private subtype, reset the visibility of its full view, if
37289         any, to be consistent.
37290
37291         PR ada/13417
37292         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37293         to use a generic package G as a formal package for another generic
37294         declared within G.
37295
37296 2004-01-12  Robert Dewar  <dewar@gnat.com>
37297
37298         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37299
37300         * usage.adb: Remove mention of obsolete -gnatwb switch
37301         Noticed during code reading
37302
37303 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
37304
37305         * 1ssecsta.adb: Minor changes for -gnatwa warnings
37306
37307 2004-01-12  GNAT Script  <nobody@gnat.com>
37308
37309         * Make-lang.in: Makefile automatically updated
37310
37311 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
37312
37313         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37314
37315 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37316
37317         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37318
37319 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
37320
37321         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37322         Update comment and copyright date.
37323         * stamp-xgnatug: Delete.
37324
37325 2004-01-05  Robert Dewar  <dewar@gnat.com>
37326
37327         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37328         be modified by the binder generated main program if the -D switch is
37329         used.
37330
37331         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37332         imported functions (since now we expect this to be done for imported
37333         functions)
37334
37335         * 5vtaprop.adb: Add several ??? for sections requiring more comments
37336         Minor reformatting throughout
37337
37338         * 5zinit.adb: Minor reformatting
37339         Add 2004 to copyright date
37340         Minor changes to avoid -gnatwa warnings
37341         Correct some instances of using OR instead of OR ELSE (noted while
37342         doing reformatting)
37343
37344         * sprint.adb: Minor updates to avoid -gnatwa warnings
37345
37346         * s-secsta.ads, s-secsta.adb:
37347         (SS_Get_Max): New function to obtain high water mark for ss stack
37348         Default_Secondary_Stack is not a constant since it may be modified by
37349         the binder generated main program if the -D switch is used.
37350
37351         * switch-b.adb: New -Dnnn switch for binder
37352
37353         * switch-c.adb:
37354         Make -gnatg imply all warnings currently in -gnatwa
37355
37356         * vms_conv.adb: Minor reformatting
37357         Add 2004 to copyright notice
37358         Add 2004 to printed copyright notice
37359
37360         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37361         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37362         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37363         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37364         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37365         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37366         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37367         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37368         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37369         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37370         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37371         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37372         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37373         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37374         checks.adb, clean.adb, cstand.adb, einfo.ads,
37375         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37376         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37377         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37378         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37379         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37380         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37381         Minor reformatting and code clean ups.
37382         Minor changes to prevent -gnatwa warnings
37383
37384         * ali.adb: Minor reformatting and cleanup of code
37385         Acquire new SS indication of secondary stack use from ali files
37386
37387         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37388         (since now we expect this to be done for imported functions)
37389
37390         * bindgen.adb: Generate call to modify default secondary stack size if
37391         -Dnnn switch given
37392
37393         * bindusg.adb: Add line for new -D switch
37394
37395         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37396         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37397         Add circuitry for both records and arrays to avoid gigi
37398         processing if the type involved has non-bit-aligned components
37399
37400         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37401         N_String_Literal node always references an E_String_Literal_Subtype
37402         entity. This may not be true in the future.
37403         (Possible_Bit_Aligned_Component): Move processing of
37404         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37405
37406         * exp_ch6.adb (Expand_Thread_Body): Pick up
37407         Default_Secondary_Stack_Size as variable so that we get value modified
37408         by possible -Dnnn binder parameter.
37409
37410         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37411         (Type_May_Have_Bit_Aligned_Components): New function.
37412
37413         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37414         (Type_May_Have_Bit_Aligned_Components): New function.
37415
37416         * fe.h: (Set_Identifier_Casing): Fix prototype.
37417         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37418         Minor reformatting.
37419
37420         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37421         importing constant atomic/volatile objects.
37422         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37423         unless explicit Pure_Function pragma given, to avoid insidious bug of
37424         call to non-pure imported function getting eliminated.
37425
37426         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37427         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37428         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37429         Add 2004 to printed copyright notice
37430
37431         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37432         stack used.
37433
37434         * Makefile.rtl: Add entry for g-sestin.o
37435         g-sestin.ads: New file.
37436
37437         * mdll.adb: Minor changes to avoid -gnatwa warnings
37438
37439         * mlib-tgt.adb: Minor reformatting
37440
37441         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37442         New switch Sec_Stack_Used (GNAT, GNATBIND)
37443         Make Default_Secondary_Stack_Size a variable instead of a constant,
37444         so that it can be modified by the new -Dnnn bind switch.
37445
37446         * rtsfind.adb (Load_Fail): Give full error message in configurable
37447         run-time mode if all_errors mode is set. This was not done in the case
37448         of a file not found, which was an oversight.
37449         Note if secondary stack unit is used by compiler.
37450
37451         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37452         ineffective elaborate all pragmas on non-visible packages (this
37453         happened when a renamed subprogram was called). Now the elaborate all
37454         always goes on the package containing the renaming rather than the one
37455         containing the renamed subprogram.
37456
37457         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37458         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37459
37460         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37461         has an Etype that references an E_String_Literal.
37462         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37463         always references an E_String_Literal_Subtype entity. This may not
37464         be true in the future.
37465
37466         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37467         pragma location.
37468
37469         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37470         call.
37471
37472 2004-01-05  Ed Falis  <falis@gnat.com>
37473
37474         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37475         form.
37476
37477 2004-01-05  Vincent Celier  <celier@gnat.com>
37478
37479         * bld.adb: Minor comment updates
37480         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37481         of Item_Name).
37482
37483         * make.adb (Gnatmake): Special process for files to compile/check when
37484         -B is specified. Fail when there are only foreign mains in attribute
37485         Main of the project file and -B is not specified. Do not skip bind/link
37486         steps when -B is specified.
37487
37488         * makeusg.adb: Document new switch -B
37489
37490         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37491
37492         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37493
37494         * vms_data.ads: Add new GNAT PRETTY qualifier
37495         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37496
37497 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37498
37499         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37500         case.
37501
37502         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37503         Set_Identifier_Casing.
37504
37505         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37506         has size that overflows.
37507
37508 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37509
37510         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37511         -gnatwa warning on static condition.
37512
37513 2004-01-05  Doug Rupp  <rupp@gnat.com>
37514
37515         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37516
37517 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37518
37519         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37520         all attributes, including read-only attribute.
37521
37522 2004-01-05  Pascal Obry  <obry@gnat.com>
37523
37524         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37525         library naming scheme.
37526
37527         * mlib-prj.adb (Build_Library): Generate different names for the static
37528         or dynamic version of the GNAT runtime. This is needed to support the
37529         new shared library naming scheme.
37530         (Process_Binder_File): Add detection of shared library in binder file
37531         based on the new naming scheme.
37532
37533         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37534         scheme for the shared runtime libraries.
37535
37536         * Makefile.in:
37537         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37538         scheme.
37539         (install-gnatlib): Do not create symlinks for shared libraries.
37540         (gnatlib-shared-default): Idem.
37541         (gnatlib-shared-dual-win32): New target. Not used for now as the
37542         auto-import feature does not support arrays/records.
37543         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37544         (gnatlib-shared-vms): Fix shared runtime libraries names.
37545
37546         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37547         dependent runtime shared library name.
37548
37549 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37550
37551         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37552         than the object.
37553
37554 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37555
37556         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37557         protected objects when allocator has a subtype indication, not a
37558         qualified expression. Note that qualified expressions may have to be
37559         checked when limited aggregates are implemented.
37560
37561         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37562         pure, emit warning.
37563         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37564         subprogram is imported, remove warning.
37565
37566 2004-01-05  Geert Bosch  <bosch@gnat.com>
37567
37568         * s-poosiz.adb: Update copyright notice.
37569         (Allocate): Use Task_Lock to protect against concurrent access.
37570         (Deallocate): Likewise.
37571
37572 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37573
37574         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37575         comment.
37576
37577 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37578
37579         * gnat_ug.texi: Force a CVS commit by updating copyright.
37580         * gnat_ug_vxw.texi: Regenerate.
37581         * gnat_ug_wnt.texi: Regenerate.
37582         * gnat_ug_vms.texi: Regenerate.
37583         * gnat_ug_unx.texi: Regenerate.
37584
37585 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37586
37587         * trans.c: Remove uses of "register" specifier in
37588         declarations of local variables.
37589
37590 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37591
37592         * stamp-xgnatug: New stamp file.
37593         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37594         (ada/doctools/xgnatug): Add $(build_exeext).
37595         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37596         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37597
37598 2003-12-17  Ed Falis  <falis@gnat.com>
37599
37600         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37601         eliminate warning.
37602
37603         * a-exextr.adb: Add context clause for
37604         Ada.Exceptions.Last_Chance_Handler.
37605
37606 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37607
37608         * cstand.adb (Create_Standard): Change the way how the declaration of
37609         the Duration type is created (making it the same way as it is for all
37610         the other standard types).
37611
37612 2003-12-17  Robert Dewar  <dewar@gnat.com>
37613
37614         * s-crtl.ads: Fix header format
37615         Change Pure to Preelaborate
37616
37617 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37618
37619         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37620         the expression type only if it is declared in the current unit.
37621
37622         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37623         are universal and already analyzed, as can occur in constrained
37624         subcomponents that depend on discriminants, when one constraint is a
37625         subtype mark.
37626
37627         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37628         type Any_Fixed is legal as the argument of a conversion, if only one
37629         fixed-point type is in context.
37630
37631 2003-12-17  GNAT Script  <nobody@gnat.com>
37632
37633         * Make-lang.in: Makefile automatically updated
37634
37635 2003-12-15  Robert Dewar  <dewar@gnat.com>
37636
37637         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37638         sec stack size.
37639
37640 2003-12-15  Vincent Celier  <celier@gnat.com>
37641
37642         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37643         (Gnatchop): Do not set failure status when reporting the number of
37644         warnings.
37645
37646 2003-12-15  Doug Rupp  <rupp@gnat.com>
37647
37648         * s-ctrl.ads: New file.
37649
37650         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37651
37652         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37653         (GNATBIND_OBJS): Add ada/s-crtl.o.
37654
37655         * Makefile.in [VMS]: Clean up ifeq rules.
37656
37657         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37658         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37659         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37660         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37661         s-tasdeb.adb: Update copyright.
37662         Import System.CRTL.
37663         Make minor modifications to use System.CRTL declared functions instead
37664         of importing locally.
37665
37666 2003-12-15  GNAT Script  <nobody@gnat.com>
37667
37668         * Make-lang.in: Makefile automatically updated
37669
37670 2003-12-11  Ed Falis  <falis@gnat.com>
37671
37672         * 5zinit.adb: Clean up.
37673
37674         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37675         to __gnat_map_signal, imported from init.c to support
37676         signal -> exception mappings that depend on the vxWorks version.
37677
37678         * init.c:
37679         Created and exported __gnat_map_signal to support signal -> exception
37680         mapping that is dependent on the VxWorks version.
37681         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37682
37683 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37684
37685         * 5wosinte.ads: Link with -mthreads switch.
37686
37687 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37688
37689         * init.c (__gnat_install_handler [NetBSD]): Set
37690         __gnat_handler_installed, as done on all other platforms.
37691         Remove duplicated code.
37692
37693 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37694
37695         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37696
37697 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37698
37699         * sinfo.ads: Fix inconsistent example code in comment.
37700
37701 2003-12-11  Robert Dewar  <dewar@gnat.com>
37702
37703         * a-tiinau.adb: Add a couple of comments
37704
37705         * sem_ch3.adb: Minor reformatting
37706
37707         * sem_prag.adb:
37708         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37709         Minor reformatting throughout
37710
37711 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37712
37713         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37714         bounds of a loop, create a separate block in order to generate proper
37715         cleanup actions to prevent memory leaks.
37716
37717         * sem_res.adb (Resolve_Call): After a call to
37718         Establish_Transient_Scope, the call may be rewritten and relocated, in
37719         which case no further processing is needed.
37720
37721         * sem_util.adb: (Wrong_Type): Refine previous fix.
37722          Fixes ACATS regressions.
37723
37724         PR ada/13353
37725         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37726         be inlined.
37727
37728 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37729
37730         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37731         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37732         obsolete files.
37733
37734         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37735         (rts-zfp): Ditto.
37736
37737 2003-12-08  Robert Dewar  <dewar@gnat.com>
37738
37739         * 7sintman.adb: Minor reformatting
37740
37741         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37742         standard linker options to get standard libraries linked. We now plan
37743         to provide dummy versions of these libraries to match the appropriate
37744         configurable run-time (e.g. if a library is not needed at all, provide
37745         a dummy empty library).
37746
37747         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37748         options (-L parameters and standard libraries). What we plan to do is
37749         to provide dummy libraries where the libraries are not required.
37750
37751         * gnatbind.adb: Minor comment improvement
37752
37753 2003-12-08  Javier Miranda  <miranda@gnat.com>
37754
37755         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37756         aggregate in the parent. Otherwise constants with limited aggregates
37757         are not supported. Add new formal to pass the component type (Ctype).
37758         It is required to call the corresponding IP subprogram in case of
37759         default initialized components.
37760         (Gen_Assign): In case of default-initialized component, generate a
37761         call to the IP subprogram associated with the component.
37762         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37763         of aggregate with default initialized components.
37764         (Has_Default_Init_Comps): Improve implementation to recursively check
37765         all the present expressions.
37766
37767         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37768         to indicate that the initialization call corresponds to a
37769         default-initialized component of an aggregate.
37770         In case of default initialized aggregate with tasks this parameter is
37771         used to generate a null string (this is just a workaround that must be
37772         improved later). In case of discriminants, this parameter is used to
37773         generate a selected component node that gives access to the discriminant
37774         value.
37775
37776         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37777         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37778         allocated aggregates with default-initialized components.
37779
37780         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37781         the box notation is used in positional aggregates.
37782
37783 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37784
37785         * lib.ads: Fix typo in comment
37786
37787 2003-12-08  Vincent Celier  <celier@gnat.com>
37788
37789         * prj.adb (Project_Empty): New component Unkept_Comments
37790         (Scan): Remove procedure; moved to Prj.Err.
37791
37792         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37793         (Scan): Remove procedure; moved to Prj.Err.
37794
37795         * prj-dect.adb: Manage comments for the different declarations.
37796
37797         * prj-part.adb (With_Record): New component Node
37798         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37799         Set the scanner to return ends of line and comments as tokens, if
37800         Store_Comments is True.
37801         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37802         comments are associated with these nodes. Store the node IDs in the
37803         With_Records.
37804         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37805         With_Records.
37806         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37807         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37808         current project. Call Tree.Restore afterwards. Set the various nodes
37809         for comment storage (Next_End, End_Of_Line, Previous_Line,
37810         Previous_End).
37811
37812         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37813         defaulted to False.
37814
37815         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37816         to False. When Truncated is True, truncate the string, never go to the
37817         next line.
37818         (Write_End_Of_Line_Comment): New procedure
37819         (Print): Process comments for nodes N_With_Clause,
37820         N_Package_Declaration, N_String_Type_Declaration,
37821         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37822         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37823         Process nodes N_Comment.
37824
37825         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37826         without comments and there are some comments, set the flag
37827         Unkept_Comments to True.
37828         (Scan): If there are comments, set the flag Unkept_Comments to True and
37829         clear the comments.
37830         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37831         (Next_End_Nodes: New table
37832         (Comment_Zones_Of): New function
37833         (Scan): New procedure; moved from Prj. Accumulate comments in the
37834         Comments table and set end of line comments, comments after, after end
37835         and before end.
37836         (Add_Comments): New procedure
37837         (Save, Restore, Seset_State): New procedures
37838         (There_Are_Unkept_Comments): New function
37839         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37840         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37841         procedures.
37842         (First_Comment_After, First_Comment_After_End): New functions
37843         (First_Comment_Before, First_Comment_Before_End): New functions
37844         (Next_Comment): New function
37845         (End_Of_Line_Comment, Follows_Empty_Line,
37846         Is_Followed_By_Empty_Line): New functions
37847         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37848         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37849         (Set_Next_Comment): New procedure
37850         (Default_Project_Node): Associate comment before if the node can store
37851         comments.
37852
37853         * scans.ads (Token_Type): New enumeration value Tok_Comment
37854         (Comment_Id): New global variable
37855
37856         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37857         defaulted to False.
37858         (Scan): Store position of start of comment. If comments are tokens, set
37859         Comment_Id and set Token to Tok_Comment when scanning a comment.
37860         (Set_Comment_As_Token): New procedure
37861
37862         * sinput-p.adb: Update Copyright notice
37863         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37864         that no longer exists.
37865
37866 2003-12-08  Javier Miranda  <miranda@gnat.com>
37867
37868         * sem_aggr.adb: Add dependence on Exp_Tss package
37869         Correct typo in comment
37870         (Resolve_Aggregate): In case of array aggregates set the estimated
37871         type of the aggregate before calling resolve. This is needed to know
37872         the name of the corresponding IP in case of limited array aggregates.
37873         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37874         in case of default initialized array components.
37875
37876         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37877         types. Required to give support to limited aggregates in generic
37878         formals.
37879
37880 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37881
37882         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37883         inlined body functions like an instantiation.
37884         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37885         until bounds are analyzed, to diagnose premature use of type.
37886
37887         * sem_util.adb (Wrong_Type): Improve error message when the type of
37888         the expression is used prematurely.
37889
37890 2003-12-08  GNAT Script  <nobody@gnat.com>
37891
37892         * Make-lang.in: Makefile automatically updated
37893
37894 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37895
37896         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37897         they are automatically generated by Make-lang.in and cause nothing but
37898         maintenance troubles.
37899
37900 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37901
37902         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37903         version of this unit).
37904
37905 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37906
37907         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37908         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37909         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37910         the body of System.Interrupt_Management common to several targets.
37911         Update copyright notice when appropriate.
37912
37913         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37914         constant.
37915
37916         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37917         to ensure that the kernel fills in the interrupted context structure
37918         before calling a signal handler, which is necessary to be able to
37919         unwind past it. Update the copyright notice.
37920
37921 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37922
37923         * a-elchha.ads: New file.
37924
37925         * a-elchha.adb: New default last chance handler. Contents taken from
37926         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37927
37928         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37929         is moved to a-elchha.adb to provide a target-independent default last
37930         chance handler.
37931
37932         * Makefile.rtl: Add a-elchha.o
37933
37934         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37935
37936 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37937
37938         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37939         declared in an instance, do not inline the call if the instance is not
37940         frozen yet, to prevent order of elaboration problems.
37941
37942         * sem_prag.adb: Add comments for previous fix.
37943
37944 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37945
37946         * g-table.adb: Use the right variable in Set_Item.
37947         Update copyright notice.
37948
37949 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37950
37951         * Makefile.in: Remove unused rules.
37952
37953 2003-12-05  Vincent Celier  <celier@gnat.com>
37954
37955         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37956         -nostdlib. Not needed here after all.
37957
37958 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37959
37960         PR ada/11724
37961         * adaint.h, adaint.c, g-os_lib.ads:
37962         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37963         on some platforms (including FreeBSD), it is a 64 bit value.
37964         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37965
37966 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37967
37968         * gnatvsn.ads (Library_Version): Now contain only the relevant
37969         version info.
37970         (Verbose_Library_Version): New constant.
37971
37972         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37973         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37974         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37975
37976         * gnatlbr.adb: Clean up: replace Library_Version by
37977         Verbose_Library_Version.
37978
37979         * make.adb, lib-writ.adb, exp_attr.adb:
37980         Clean up: replace Library_Version by Verbose_Library_Version.
37981
37982         * 5lintman.adb: Removed.
37983
37984         * Makefile.in:
37985         Update and simplify computation of LIBRARY_VERSION.
37986         Fix computation of GSMATCH_VERSION.
37987         5lintman.adb is no longer used: replaced by 7sintman.adb.
37988
37989 2003-12-03  Robert Dewar  <dewar@gnat.com>
37990
37991         * exp_ch5.adb:
37992         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37993         name. Modified to consider small non-bit-packed arrays as troublesome
37994         and in need of component-by-component assigment expansion.
37995
37996 2003-12-03  Vincent Celier  <celier@gnat.com>
37997
37998         * lang-specs.h: Process nostdlib as nostdinc
37999
38000         * back_end.adb: Update Copyright notice
38001         (Scan_Compiler_Arguments): Process -nostdlib directly.
38002
38003 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
38004
38005         * Makefile.in:
38006         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38007         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38008         included in HIE_NONE_TARGET_PAIRS.
38009
38010 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
38011
38012         * sem_attr.adb:
38013         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38014         is legal in an instance, because legality is cheched in the template.
38015
38016         * sem_prag.adb:
38017         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38018         appplied to an unchecked conversion of a formal parameter.
38019
38020         * sem_warn.adb:
38021         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38022         variables.
38023
38024 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
38025
38026         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38027         routines. The second one is new functionality to deal with backtracing
38028         through signal handlers.
38029         (unwind): Split into the two separate subroutines above.
38030         Update the documentation, and deal properly with sizeof (REG) different
38031         from sizeof (void*).
38032
38033 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
38034
38035         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38036         so that the debugger can reliably access the value of the parameter,
38037         and therefore is able to display the exception name when an exception
38038         breakpoint is reached.
38039
38040 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
38041
38042         * fmap.adb: Fix typo in warning message.
38043
38044         * g-socket.ads, g-socket.adb: Make Free a visible instance of
38045         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38046
38047 2003-12-01  Vincent Celier  <celier@gnat.com>
38048
38049         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38050         ther is no Afile.
38051         (Build_Library): Get the switches only if Default_Switches is declared
38052         in package Binder.
38053
38054 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
38055
38056         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38057         actuals that are indexed components, reanalyze actual to ensure that
38058         packed array references are properly expanded.
38059
38060         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38061         attempted assignment to a discriminant.
38062
38063 2003-12-01  Robert Dewar  <dewar@gnat.com>
38064
38065         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38066         reformatting.
38067
38068         * switch-c.adb: Minor reformatting of comments
38069
38070 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
38071
38072         * Makefile.in: Clean ups.
38073
38074 2003-12-01  GNAT Script  <nobody@gnat.com>
38075
38076         * Make-lang.in: Makefile automatically updated
38077
38078 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
38079
38080         * 5wsystem.ads: Disable zero cost exception, not ready yet.
38081
38082 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
38083
38084         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38085         to force serialization.
38086
38087 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
38088
38089         * g-socket.ads, g-socket.adb:
38090         Clarify documentation of function Stream. Introduce a Free procedure
38091         to release the returned Stream once it becomes unused.
38092
38093         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38094
38095 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
38096
38097         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38098         since NT 4 cannot handle timeout values that are too large,
38099         e.g. DWORD'Last - 1.
38100
38101 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
38102
38103         * exp_ch4.adb:
38104         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38105         in procedure calls and whose expansion must be deferred.
38106
38107         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38108         is in exp_ch4.
38109
38110         * sem_ch3.adb:
38111         (Build_Derived_Array_Type): Create operator for unconstrained type
38112         if ancestor is unconstrained.
38113
38114 2003-11-26  Vincent Celier  <celier@gnat.com>
38115
38116         * make.adb (Project_Object_Directory): New global variable
38117         (Change_To_Object_Directory): New procedure
38118         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38119         of Change_Dir directly. Do not change working directory to object
38120         directory of main project after each compilation.
38121         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38122         directly.
38123         Change to object directory of main project before binding step.
38124         (Initialize): Initialize Project_Object_Directory to No_Project
38125
38126         * mlib-prj.adb:
38127         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38128         binding a Stand-Alone Library.
38129
38130         * output.adb: Update Copyright notice
38131         (Write_Char): Output buffer when full
38132
38133 2003-11-26  Robert Dewar  <dewar@gnat.com>
38134
38135         * sem_ch13.adb: (Check_Size): Reset size if size is too small
38136
38137         * sem_ch13.ads:
38138         (Check_Size): Fix documentation to include bit-packed array case
38139
38140         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38141
38142         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38143
38144         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38145
38146 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
38147
38148         PR ada/13142
38149         * utils.c (init_gigi_decls): Change name of built-in setjmp to
38150         __builtin_setjmp, since this is apparently needed by recent
38151         non Ada changes.
38152
38153 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38154
38155         * adadecode.c: Only include ctype.h if not IN_GCC.
38156         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38157
38158 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
38159
38160         * Makefile.in:
38161         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38162         signals and interrupts.
38163
38164         * 5zintman.ads: New File.
38165
38166         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38167         add exception signals to the set of unmasked signals.
38168
38169         * 5ztaprop.adb:
38170         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38171         between signals and interrupts.
38172         Add to Unblocked_Signal_Mask the set of signals that are in
38173         Keep_Unmasked.
38174
38175         * 7sinmaop.adb:
38176         Adding a check to see whether the Interrupt_ID we want to unmask is in
38177         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38178         reason is that the index type of the Keep_Unmasked array is not always
38179         Interrupt_ID; it may be a subtype of Interrupt_ID.
38180
38181 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
38182
38183         * exp_util.adb:
38184         (Remove_Side_Effects): Condition constantness of object created for a
38185          an unchecked type conversion on the constantness of the expression
38186          to ensure the correct value for 'Constrained when passing components
38187          of view-converted class-wide objects.
38188
38189 2003-11-24  Robert Dewar  <dewar@gnat.com>
38190
38191         * par-load.adb (Load): Improve handling of misspelled and missing units
38192         Removes several cases of compilation abandoned messages
38193
38194         * lib.adb: (Remove_Unit): New procedure
38195
38196         * lib.ads: (Remove_Unit): New procedure
38197
38198         * lib-load.adb: Minor reformatting
38199
38200 2003-11-24  Vincent Celier  <celier@gnat.com>
38201
38202         * make.adb:
38203         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38204         (Marking_Label): Label to mark processed source files. Incremented for
38205         each executable.
38206         (Gnatmake): Increase Marking_Labet for each executable
38207         (Is_Marked): Compare against marking label
38208         (Mark): Mark with marking label
38209
38210 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
38211
38212         * s-thread.ads:
38213         Move the declaration of the TSD for System.Threads to System.Soft_Links.
38214         Add some comments.
38215
38216         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38217         (rts-cert): build a single relocatable object for the run-time lib.
38218         Fix perms.
38219
38220 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
38221
38222         * Make-lang.in:
38223         Use gnatls rather than gcc to obtain the location of GNAT RTL for
38224         crosstools build.
38225
38226 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
38227
38228         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38229         can not use it as before (that is, as a variable) when dumping it into
38230         the tree file. Add a local variable to store the result of this
38231         function and to be used as the string to be written into the tree.
38232
38233         * scn.adb (Initialize_Scanner): Add comments explaining the recent
38234         changes.
38235
38236         * sinput.adb (Source_First, Source_Last): In case of
38237         Internal_Source_File, replace returning attributes of
38238         Internal_Source_Ptr (which is wrong) with returning attributes of
38239         Internal_Source.
38240
38241 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
38242
38243         * sem_ch3.adb:
38244         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38245         used for implicit concatenation operators.
38246         Code cleanup.
38247
38248         * sem_elab.adb:
38249         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38250         task bodies that are in the scope of a Suppress pragma.
38251         (Check_A Call): Use the flag to prevent spurious elaboration checks.
38252
38253         * sinfo.ads, sinfo.adb:
38254         New flag No_Elaboration_Check on function/procedure calls, to properly
38255         suppress checks on calls in task bodies that are within a local suppress
38256         pragma.
38257
38258         * exp_ch4.adb:
38259         (Expand_Concatenate_Other): Use the proper integer type for the
38260         expression for the upper bound, to avoid universal_integer computations
38261         when possible.
38262
38263 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
38264
38265         * .cvsignore: Delete.
38266
38267 2003-11-21  Andreas Schwab  <schwab@suse.de>
38268
38269         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38270
38271 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
38272
38273         * 5wsystem.ads: Enable zero cost exception.
38274
38275 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
38276
38277         * 5ztiitho.adb: Remove an unreferenced variable.
38278
38279 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
38280
38281         * adaint.c: For FreeBSD, use mkstemp.
38282
38283 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
38284
38285         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38286
38287 2003-11-21  Robert Dewar  <dewar@gnat.com>
38288
38289         * bld.adb: Remove useless USE of gnatvsn
38290
38291         * gnatchop.adb: Minor reformatting
38292         Clean up version handling to be more consistent
38293
38294         * gnatxref.adb: Minor reformatting
38295
38296         * gprcmd.adb: Minor reformatting
38297         Fix output of copyright to be more consistent with other tools
38298
38299 2003-11-21  Vincent Celier  <celier@gnat.com>
38300
38301         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38302
38303 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
38304
38305         * atree.adb (Initialize): Add initializations for global variables
38306         used in New_Copy_Tree.
38307
38308         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38309         Internal_Source_File as the actual).
38310         Put the set of statements creating Any_Character before the set of
38311         statements creating Any_Array to have Any_Character fully initialized
38312         when it is used in creating Any_Array.
38313
38314         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38315         not call Scan in case if the actual is Internal_Source_File
38316         Add 2003 to copyright note.
38317
38318         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38319         processing Internal_Source_File.
38320
38321         * types.ads: Add the constant Internal_Source_File representing the
38322         source buffer for artificial source-code-like strings created within
38323         the compiler (the definition of Source_File_Index is changed).
38324
38325 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
38326
38327         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38328         56system.ads: New file, FreeBSD version.
38329
38330 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38331
38332         * Make-lang.in (ada.extraclean): Delete.
38333
38334 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
38335
38336         * gnatmem.adb: Clean up verbose output.
38337
38338         * gprcmd.adb: Change copyright to FSF.
38339
38340 2003-11-19  Vincent Celier  <celier@gnat.com>
38341
38342         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38343         and Version (ignored).
38344
38345         * symbols.ads: (Policy): New type
38346         (Initialize): New parameter Reference, Symbol_Policy and
38347         Library_Version.
38348         Remove parameter Force.
38349         Minor reformatting.
38350
38351         * snames.ads, snames.adbadb: New standard names
38352         Library_Reference_Symbol_File and Library_Symbol_Policy
38353
38354         * mlib-prj.adb:
38355         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38356         project.
38357
38358         * mlib-tgt.adb:
38359         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38360
38361         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38362
38363         * prj.adb: (Project_Empty): New component Symbol_Data
38364
38365         * prj.ads: (Policy, Symbol_Record): New types
38366         (Project_Data): New component Symbol_Data
38367
38368         * prj-attr.adb:
38369         New attributes Library_Symbol_File, Library_Symbol_Policy and
38370         Library_Reference_Symbol_File.
38371
38372         * prj-nmsc.adb:
38373         (Ada_Check): When project is a Stand-Alone library project, process
38374         attribute Library_Symbol_File, Library_Symbol_Policy and
38375         Library_Reference_Symbol_File.
38376
38377         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38378         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38379         5sml-tgt.adb (Build_Dynamic_Library): New parameter
38380         Symbol_Data (ignored).
38381
38382         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38383         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38384         functions Option_File_Name and Version_String. Set new options of
38385         gnatsym related to symbol file, symbol policy and reference symbol
38386         file.
38387
38388         * 5vsymbol.adb:
38389         Extensive modifications to take into account the reference symbol file,
38390         the symbol policy, the library version and to put in the symbol file the
38391         minor and major IDs.
38392
38393         * bld.adb (Process_Declarative_Items): Put second argument of
38394         gprcmd to_absolute between single quotes, to avoid problems with
38395         Windows.
38396
38397         * bld-io.adb: Update Copyright notice.
38398         (Flush): Remove last character of a line, if it is a back slash, to
38399         avoid make problems.
38400
38401         * gnatsym.adb:
38402         Implement new scheme with reference symbol file and symbol policy.
38403
38404         * g-os_lib.ads: (Is_Directory): Clarify comment
38405
38406 2003-11-19  Robert Dewar  <dewar@gnat.com>
38407
38408         * atree.adb: Move New_Copy_Tree global variables to head of package
38409
38410         * errout.adb: Minor reformatting
38411
38412 2003-11-19  Javier Miranda  <miranda@gnat.com>
38413
38414         * sem_ch4.adb: (Diagnose_Call): Improve error message.
38415         Add reference to Ada0Y (AI-50217)
38416
38417         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38418         sem_util.adb: Add reference to AI-50217
38419
38420         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38421
38422         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38423
38424         * sem_aggr.adb: Complete documentation of AI-287 changes
38425
38426         * par-ch4.adb: Document previous changes.
38427
38428         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38429         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38430         Ada0Y (AI-50217)
38431
38432         * exp_aggr.adb: Add references to AI-287 in previous changes
38433
38434 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38435
38436         * exp_ch6.adb:
38437         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38438         in the rewriting is the result of an inlined call.
38439
38440         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38441         parameter is a type conversion, use original node to construct the
38442         post-call assignment, because expression may have been rewritten, e.g.
38443         if it is a packed array.
38444
38445         * sem_attr.adb:
38446         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38447         body, just as it is in an instance.
38448         Categorization routines
38449
38450         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38451         Instantiate_Object): Set proper sloc reference for message on missing
38452         actual.
38453
38454 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38455
38456         * Makefile.in: Add FreeBSD libgnat pairs.
38457
38458         * usage.adb: Fix typo in usage message.
38459
38460 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38461
38462         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38463         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38464         pragma Thread_Body.
38465         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38466
38467         * s-thread.adb: This file is now a dummy implementation of
38468         System.Thread.
38469
38470 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38471
38472         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38473
38474 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38475
38476         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38477         instanciation references in the parent type description.
38478
38479 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38480
38481         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38482
38483         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38484         TYPE_PRECISION directly from esize.
38485
38486 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38487
38488         * cstreams.c:
38489         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38490
38491         * init.c: Initialization routines for FreeBSD
38492
38493         * link.c: Link info for FreeBSD
38494
38495         * sysdep.c: Add the case of FreeBSD
38496
38497 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38498
38499         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38500         already called in System.Threads.
38501
38502         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38503         environment task, as it has been moved to System.Threads.Initialization.
38504
38505 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38506
38507         * adaint.c (__gnatlib_install_locks): Only reference
38508         __gnat_install_locks on VMS, since other platforms can avoid using
38509         --enable-threads=gnat
38510
38511 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38512
38513         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38514
38515         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38516         TYPE_PACKED_ARRAY_TYPE_P.
38517         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38518
38519         Part of PR ada/12806
38520         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38521         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38522
38523 2003-11-17  Vincent Celier  <celier@gnat.com>
38524
38525         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38526         to False.
38527         Do not set exit status to Failure when Warning is True.
38528         (Gnatchop): Make errors "no compilation units found" and
38529         "no source files written" warnings only.
38530
38531         * make.adb (Gnatmake): When using a project file, set
38532         Look_In_Primary_Dir to False.
38533         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38534         and Local_Configuration_Pragmas in the project where they are declared
38535         not an extending project which might have inherited them.
38536
38537         * osint.adb (Locate_File): If Name is already an absolute path, do not
38538         look for a directory.
38539
38540         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38541         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38542
38543         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38544         in objects of type Variable_Value.
38545
38546         * prj.ads: (Variable_Value): New component Project
38547
38548         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38549         is in a project extended by Project.
38550
38551         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38552         Project of Variable_Values to this new parameter value.
38553         (Expression): Set component Project of Variable_Values.
38554         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38555         Set the component Project in array elements.
38556
38557 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38558
38559         * errout.adb: (Initialize): Add initialization for error nodes.
38560
38561         * sem_ch12.adb (Initialize): Add missing initializations for
38562         Exchanged_Views and Hidden_Entities.
38563
38564 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38565
38566         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38567         already instantiated tree for use in subsequent inlining.
38568         (Analyze_Associations, Instantiate_Formal_Subprogram,
38569         Instantiate_Object): improve error message for mismatch in
38570         instantiations.
38571
38572         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38573         instantiations of subprograms declared in instances.
38574
38575 2003-11-17  Javier Miranda  <miranda@gnat.com>
38576
38577         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38578         executed only under the Extensions_Allowed flag.
38579
38580 2003-11-17  Robert Dewar  <dewar@gnat.com>
38581
38582         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38583         zeroes suppressed.
38584         (Address_Image): Fix bug of returning 0x instead of 0x0
38585         Minor reformatting (function specs).
38586
38587         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38588         (missed case of 33-63)
38589
38590         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38591
38592         * s-thread.adb: Add comments for pragma Restriction
38593
38594         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38595         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38596
38597 2003-11-17  Ed Falis  <falis@gnat.com>
38598
38599         * s-thread.adb: Added No_Tasking restriction for this implementation.
38600
38601 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38602
38603         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38604         instanciation references in the parent type description.
38605
38606 2003-11-17  GNAT Script  <nobody@gnat.com>
38607
38608         * Make-lang.in: Makefile automatically updated
38609
38610 2003-11-16  Jason Merrill  <jason@redhat.com>
38611
38612         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38613         and TAGS files that include them for each front end.
38614
38615 2003-11-14  Andreas Jaeger  <aj@suse.de>
38616
38617         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38618         is the canonical version.
38619         * misc.c (gnat_handle_option): Likewise.
38620
38621         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38622
38623         * 5nsystem.ads: New file for x86_64-linux-gnu.
38624
38625 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38626
38627         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38628
38629         * comperr.adb: Fix logic in previous change.
38630
38631 2003-11-13  Vincent Celier  <celier@gnat.com>
38632
38633         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38634         Osint.Include_Dir_Default_Prefix instead of
38635         Sdefault.Include_Dir_Default_Name.
38636
38637         * gnatlbr.adb: Update Copyright notice
38638         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38639         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38640         instead of Sdefault.Object_Dir_Default_Name
38641
38642         * gnatlink.adb:
38643         (Process_Binder_File): Never suppress the option following -Xlinker
38644
38645         * mdll-utl.adb:
38646         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38647         Sdefault.Object_Dir_Default_Name.
38648
38649         * osint.ads, osint.adb:
38650         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38651         Minor reformatting.
38652
38653         * vms_conv.ads: Minor reformating
38654         Remove GNAT STANDARD and GNAT PSTA
38655
38656         * vms_conv.adb:
38657         Allow GNAT MAKE to have several files on the command line.
38658         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38659         Sdefault.Object_Dir_Default_Name.
38660         Minor Reformating
38661         Remove data for GNAT STANDARD
38662
38663         * vms_data.ads:
38664         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38665         Remove data for GNAT STANDARD
38666         Remove options and documentation for -gnatwb/-gnatwB: these warning
38667         options no longer exist.
38668
38669 2003-11-13  Ed Falis  <falis@gnat.com>
38670
38671         * 5zthrini.adb: (Init_RTS): Made visible
38672
38673         * 5zthrini.adb:
38674         (Register): Removed unnecessary call to taskVarGet that checked whether
38675          an ATSD was already set as a task var for the argument thread.
38676
38677         * s-thread.adb:
38678         Updated comment to reflect that this is a VxWorks version
38679         Added context clause for System.Threads.Initialization
38680         Added call to System.Threads.Initialization.Init_RTS
38681
38682 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38683
38684         * 5zthrini.adb:
38685         (Init_RTS): New procedure, for the initialization of the run-time lib.
38686
38687         * s-thread.adb:
38688         Remove dependancy on System.Init, so that this file can be used in the
38689         AE653 sequential run-time lib.
38690
38691 2003-11-13  Robert Dewar  <dewar@gnat.com>
38692
38693         * bindgen.adb: Minor reformatting
38694
38695 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38696
38697         * checks.adb:
38698         (Apply_Discriminant_Check): Do no apply check if target type is derived
38699         from source type with no applicable constraint.
38700
38701         * lib-writ.adb:
38702         (Ensure_System_Dependency): Do not apply the style checks that may have
38703         been specified for the main unit.
38704
38705         * sem_ch8.adb:
38706         (Find_Selected_Component): Further improvement in error message, with
38707         RM reference.
38708
38709         * sem_res.adb:
38710         (Resolve): Handle properly the case of an illegal overloaded protected
38711         procedure.
38712
38713 2003-11-13  Javier Miranda  <miranda@gnat.com>
38714
38715         * exp_aggr.adb:
38716         (Has_Default_Init_Comps): New function to check the presence of
38717         default initialization in an aggregate.
38718         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38719         extension aggregate of a limited record. In addition, a new formal
38720         was added to do not initialize the record controller (if any) during
38721         this recursive expansion of ancestors.
38722         (Init_Controller): Add support for limited record components.
38723         (Expand_Record_Aggregate): In case of default initialized components
38724         convert the aggregate into a set of assignments.
38725
38726         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38727         describing the new syntax.
38728         Nothing else needed to be done because this subprogram delegates part of
38729         its work to P_Precord_Or_Array_Component_Association.
38730         (P_Record_Or_Array_Component_Association): Give support to the new
38731         syntax for default initialization of components.
38732
38733         * sem_aggr.adb:
38734         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38735         limited aggregates.
38736         (Resolve_Record_Aggregate): Give support to default initialized
38737         components.
38738         (Get_Value): In case of default initialized components, duplicate
38739         the corresponding default expression (from the record type
38740         declaration). In case of default initialization in the *others*
38741         choice, do not check that all components have the same type.
38742         (Resolve_Extension_Aggregate): Give support to limited extension
38743         aggregates.
38744
38745         * sem_ch3.adb:
38746         (Check_Initialization): Relax the strictness of the front-end in case
38747         of aggregate and extension aggregates. This test is now done in
38748         Get_Value in a per-component manner.
38749
38750         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38751         expression corresponds to a limited aggregate. This test is now done
38752         in Get_Value.
38753
38754         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38755         Box_Present flag.
38756
38757         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38758         present in an N_Component_Association node
38759
38760 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38761
38762         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38763         type-conformant entry only if they are homographs.
38764
38765 2003-11-13  GNAT Script  <nobody@gnat.com>
38766
38767         * Make-lang.in: Makefile automatically updated
38768
38769 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38770
38771         * adadecode.c: Use <> form of include for ctype.h.
38772         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38773
38774 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38775
38776         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38777         Works around PR middle-end/6552.
38778
38779 2003-11-10  Ed Falis  <falis@gnat.com>
38780
38781         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38782
38783         * 5zinit.adb: (Install_Handler): Moved back to spec
38784         (Install_Signal_Handlers): Deleted
38785
38786         * 5zthrini.adb: Added context clause for System.Storage_Elements
38787         (Register): Only handles creation of taskVar; initialization moved to
38788         Thread_Body_Enter.
38789         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38790         Added declaration of environment task secondary stack and
38791         initialization.
38792
38793         * s-thread.adb: Implement bodies for thread body processing
38794
38795         * s-thread.ads:
38796         Added comment identifying supported targets for pragma Thread_Body.
38797
38798 2003-11-10  Pascal Obry  <obry@gnat.com>
38799
38800         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38801         GNAT_MAX_PATH_LEN.
38802
38803         * s-fileio.adb:
38804         (Open): Properly check for string length before copying into the buffer.
38805         Raises Name_Error if buffer is too small. Note that this was a potential
38806         buffer overflow.
38807
38808 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38809
38810         * bindgen.adb, comperr.adb: Code clean ups.
38811         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38812
38813 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38814
38815         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38816
38817 2003-11-10  Vincent Celier  <celier@gnat.com>
38818
38819         * gprcmd.adb:
38820         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38821         installation.
38822
38823         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38824
38825         * prj.adb: (Project_Empty): Add new boolean component Virtual
38826
38827         * prj.ads: (Virtual_Prefix): New constant string
38828         (Project_Data): New boolean component Virtual
38829
38830         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38831         a library project is extended by a virtual extending project.
38832
38833         * prj-part.adb:
38834         Modifications throughout to implement extending-all project, including:
38835         (Virtual_Hash, Processed_Hash): New hash tables
38836         (Create_Virtual_Extending_Project): New procedure
38837         (Look_For_Virtual_Projects_For): New procedure
38838
38839         * prj-proc.adb:
38840         (Process): After checking the projects, if main project is an
38841         extending-all project, set the object directory of all virtual extending
38842         project to the object directory of the main project.
38843         Adjust error message when a virtual extending project has the same
38844         object directory as an project being extended.
38845         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38846         to True in the project data.
38847
38848         * prj-tree.adb:
38849         (Default_Project_Node): Add new boolean component Extending_All
38850         (Is_Extending_All): New function
38851         (Set_Is_Extending_All): New procedure
38852
38853         * prj-tree.ads: (Is_Extending_All): New function
38854         (Set_Is_Extending_All): New procedure
38855         (Project_Node_Record): New boolean component Extending_All
38856
38857         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38858
38859         * vms_data.ads:
38860         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38861
38862         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38863         "gprcmd prefix" to define it.
38864
38865 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38866
38867         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38868
38869         * lib-load.adb:
38870         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38871         created dummy package to Standard_Standard, not to itself, to
38872         defend other parts of the front-end against encoutering a cycle in
38873         the scope chain.
38874
38875         * sem_ch10.adb:
38876         (Analyze_With_Clause): When setting the entities for the successive
38877         N_Expanded_Names that constitute the name of a child unit, do not
38878         attempt to go further than Standard_Standard in the chain of scopes.
38879         This case arises from the placeholder units created by
38880         Create_Dummy_Package_Unit in the case of a with_clause for a
38881         nonexistent child unit.
38882
38883 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38884
38885         * exp_ch6.adb:
38886         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38887         declarations are given the proper scope.
38888
38889         * sem_ch13.adb:
38890         (Check_Expr_Constants): Reject an expression that contains a constant
38891         created during expansion, and that appears after the object to which
38892         the address clause applies.
38893
38894         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38895         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38896         that uses 'Range of a function call with controlled components, so
38897         that the function result can be finalized before starting the loop.
38898
38899         * sem_ch8.adb:
38900         (Find_Selected_Component): Improve error message when prefix is
38901         an implicit dereference of an incomplete type.
38902
38903 2003-11-10  Robert Dewar  <dewar@gnat.com>
38904
38905         * opt.ads: New Print_Standard flag for -gnatS switch
38906
38907         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38908
38909         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38910         switch set
38911
38912         * debug.adb: Update doc for -gnatds to discuss relationship with new
38913         -gnatS flag
38914
38915         * sinfo.adb: Add new field Entity_Or_Associated_Node
38916
38917         * sinfo.ads: Add new field Entity_Or_Associated_Node
38918         Update documentation for Associated_Node and Entity fields to clarify
38919         relationship and usage.
38920
38921         * sprint.adb:
38922         (Write_Id): Properly process Associated_Node field in generic template
38923
38924         * switch-c.adb:
38925         Recognize new -gnatS switch for printing package Standard
38926         This replaces gnatpsta
38927
38928         * usage.adb:
38929         Add line for  new -gnatS switch for printing package Standard
38930         This replaces gnatpsta
38931
38932 2003-11-10  Andreas Jaeger  <aj@suse.de>
38933
38934         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38935         integer.
38936
38937 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38938
38939         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38940         by gnat1.
38941
38942 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38943
38944         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38945         no longer needed.
38946
38947         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38948
38949         * sysdep.c: Add handling of cygwin.
38950
38951 2003-11-10  GNAT Script  <nobody@gnat.com>
38952
38953         * Make-lang.in: Makefile automatically updated
38954
38955 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38956
38957         PR 12950
38958         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38959         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38960         Replace GNAT_ROOT by GCC_ROOT.
38961
38962         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38963
38964 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38965
38966         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38967         and update for changed meaning of GET_MODE_BITSIZE.
38968
38969 2003-11-04  Doug Rupp  <rupp@gnat.com>
38970
38971         * sysdep.c: Problem discovered during IA64 VMS port.
38972         [VMS] #include <unixio.h> to get proper prototypes.
38973
38974         * adaint.c:
38975         Issues discovered/problems fixed during IA64 VMS port.
38976         [VMS] #define _POSIX_EXIT for proper semantics.
38977         [VMS] #include <unixio.h> for proper prototypes.
38978         [VMS] (fork): #define IA64 version.
38979         (__gnat_os_exit): Remove unnecessary VMS specific code.
38980
38981 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38982
38983         Part of PR ada/12806
38984         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38985         tree, not integer.
38986
38987         * decl.c:
38988         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38989         not integer.
38990
38991         * targtyps.c, decl.c, misc.c,
38992         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38993         routines to work around change in FP sizing semantics in GCC.
38994
38995         * utils.c:
38996         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38997
38998         * gigi.h: (enumerate_modes): New function.
38999
39000         * Make-lang.in: (ada/misc.o): Add real.h.
39001
39002         * misc.c: (enumerate_modes): New function.
39003
39004 2003-11-04  Robert Dewar  <dewar@gnat.com>
39005
39006         * 3vtrasym.adb: Minor reformatting
39007         Use terminology encoded/decoded name, rather than C++ specific notion
39008         of mangling (this is the terminology used throughout GNAT).
39009
39010         * einfo.h: Regenerated
39011
39012         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39013
39014         * exp_ch6.adb:
39015         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39016
39017         * par-prag.adb: Add dummy entry for Thread_Body pragma
39018
39019         * rtsfind.ads:
39020         Add entries for System.Threads entities for thread body processing
39021
39022         * sem_attr.adb:
39023         (Analyze_Pragma, Access attributes): Check these are not applied to a
39024         thread body, since this is not permitted
39025
39026         * sem_prag.adb: Add processing for Thread_Body pragma.
39027         Minor comment fix.
39028
39029         * sem_res.adb:
39030         (Resolve_Call): Check for incorrect attempt to call a thread body
39031          procedure with a direct call.
39032
39033         * snames.ads, snames.adb: Add entry for Thread_Body pragma
39034         Add names associated with thread body expansion
39035
39036         * snames.h: Add entry for Thread_Body pragma
39037
39038         * s-thread.adb: Add entries for thread body processing
39039         These are dummy bodies so far
39040
39041         * s-thread.ads: Add documentation on thread body handling.
39042         Add entries for thread body processing.
39043
39044 2003-11-04  Javier Miranda  <miranda@gnat.com>
39045
39046         * sem_ch10.adb:
39047         (Build_Limited_Views): Return after posting an error in case of limited
39048         with_clause on subprograms, generics, instances or generic renamings
39049         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39050         on subprograms, generics, instances or generic renamings
39051
39052 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
39053
39054         * raise.c (setup_to_install): Correct mistake in last revision; two
39055         arguments out of order.
39056
39057         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39058         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39059         notice, missed in previous change.
39060         Remove trailing blanks and other style errors introduced in previous
39061         change.
39062
39063 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
39064
39065         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39066         rid of the wrapper for a LJM type, ensuring we don't do that if the
39067         field is addressable.  This avoids potential low level type view
39068         mismatches later on, for instance in a by-reference argument passing
39069         process.
39070
39071 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39072
39073         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39074         aligned at byte boundary.
39075
39076 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
39077
39078         * decl.c (components_to_record): Do not delete the empty variants from
39079         the end of the union type.
39080
39081 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
39082
39083         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39084         operation for a derived type, an explicit declaration may use a local
39085         subtype of Boolean.
39086
39087 2003-11-04  Vincent Celier  <celier@gnat.com>
39088
39089         * make.adb (Gnatmake): Allow main sources on the command line with a
39090         library project when it is only for compilation (no binding or
39091         linking).
39092
39093 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39094
39095         * Makefile.in: Remove many duplicate variables.
39096
39097 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
39098
39099         * Make-lang.in (dvi): Move targets to $(docobjdir).
39100         (gnat_ug_vms.dvi): Simplify rule and adjust target.
39101         (gnat_ug_wnt.dvi): Likewise.
39102         (gnat_ug_unx.dvi): Likewise.
39103         (gnat_ug_vxw.dvi): Likewise.
39104         (gnat_rm.dvi): Likewise.
39105         (gnat-style.dvi): Likewise.
39106
39107 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
39108
39109         * gigi.h: Missed commit from update for C90.
39110
39111 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
39112
39113         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39114
39115 2003-10-31  Andreas Schwab  <schwab@suse.de>
39116
39117         * raise.c (get_action_description_for): Fix typo in last change.
39118
39119 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
39120
39121         PR ada/12761
39122         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39123         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39124
39125 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
39126
39127         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39128         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39129         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39130         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39131         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39132
39133 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
39134
39135         * 3vtrasym.adb:
39136         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39137         numbers when symbol name is too long.
39138
39139 2003-10-30  Ed Falis  <falis@gnat.com>
39140
39141         * g-signal.ads, g-signal.adb: New files
39142
39143         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39144
39145         * Makefile.rtl: Introduce GNAT.Signals
39146
39147 2003-10-30  Robert Dewar  <dewar@gnat.com>
39148
39149         * freeze.adb: Minor reformatting
39150
39151         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39152
39153         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39154         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39155         New handling of Id_Check parameter to improve recognition of keywords
39156         used as identifiers.
39157         Update copyright notice to include 2003
39158
39159 2003-10-29  Robert Dewar  <dewar@gnat.com>
39160
39161         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39162         sem_ch10.adb: Minor reformatting
39163
39164         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39165         (Expand_Assign_Record): Test right hand side for bit unaligned as well
39166
39167 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
39168
39169         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39170         Support for TBK$SYMBOLIZE-based symbolic traceback.
39171
39172 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
39173
39174         * exp_disp.adb:
39175         Revert previous change, that did not work well when pragma No_Run_Time
39176         was used in conjunction with a run-time other than ZFP.
39177
39178 2003-10-29  Vincent Celier  <celier@gnat.com>
39179
39180         * make.adb:
39181         (Gnatmake): When there are no Ada mains in attribute Main, disable the
39182          bind and link steps only is switch -z is not used.
39183
39184 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
39185
39186         * Makefile.generic: Remove duplicated setting of CC.
39187
39188         * Makefile.prolog: Set CC to gcc by default, to override make's
39189         default (cc).
39190
39191         * einfo.h: Regenerated.
39192
39193 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
39194
39195         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39196         current body, after compiling subunit.
39197
39198         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39199         when in deleted code, because gigi needs properly ordered freeze
39200         actions to annotate types.
39201
39202         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39203         prevent the premature freezing of record type that contains
39204         subcomponents with a private type that does not yet have a completion.
39205
39206 2003-10-29  Javier Miranda  <miranda@gnat.com>
39207
39208         * sem_ch12.adb:
39209         (Analyze_Package_Instantiation): Check that instances can not be used in
39210         limited with_clauses.
39211
39212         * sem_ch8.adb:
39213         (Analyze_Package_Renaming): Check that limited withed packages cannot
39214         be renamed. Improve text on error messages related to limited
39215         with_clauses.
39216
39217         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39218
39219         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39220         Update copyright notice.
39221
39222         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39223         (Install_Limited_Context_Clauses): New subprogram that isolates all the
39224         checks required for limited context_clauses and installs the limited
39225         view.
39226         (Install_Limited_Withed_Unit): Complete its documentation.
39227         (Analyze_Context): Check that limited with_clauses are only allowed in
39228         package specs.
39229         (Install_Context): Call Install_Limited_Context_Clauses after the
39230         parents have been installed.
39231         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39232         package as 'From_With_Type'; this mark indicates that the limited view
39233         is installed. Used to check bad usages of limited with_clauses.
39234         (Build_Limited_Views): Do not add shadow entities to the scope's list
39235         of entities. Do not add real entities to the Non_Limited_Views chain.
39236         Improve error notification.
39237         (Remove_Context_Clauses): Remove context clauses in two phases:
39238         limited views first and regular views later (to maintain the
39239         stack model).
39240         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39241         its visible entities.
39242
39243 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
39244
39245         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39246         with any type that Is_Fixed_Point_Type.
39247
39248         * sinfo.ads: Fix documentation for Associated_Node attribute.
39249
39250 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
39251
39252         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39253         both '-gnatc' and '-gnatt' are specified.
39254
39255         * atree.adb (Initialize): Add initialization for Node_Count (set to
39256         zero).
39257
39258 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39259
39260         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39261         do not consider as Pure.
39262
39263         Part of implementation of function-at-a-time:
39264
39265         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39266         (tree_transform): Add new argument to build_component_ref.
39267         (tree_transform, case N_Assignment_Statement): Make and return an
39268         EXPR_STMT.
39269         (tree_transform): If result IS_STMT, set flags and return it.
39270         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39271
39272         * utils2.c (build_simple_component_ref, build_component_ref): Add new
39273         arg, NO_FOLD_P.
39274         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39275         (build_allocator): Likewise.
39276
39277         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39278         Add new arg to build_component_ref.
39279         (maybe_unconstrained_array, unchecked_convert): Likewise.
39280
39281         * ada-tree.def (EXPR_STMT): New code.
39282
39283         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39284
39285         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39286         build_component_ref calls.
39287
39288         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39289
39290         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39291         (build_component_ref): Add new argument, NO_FOLD_P.
39292
39293 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
39294
39295         * Makefile.generic: Add missing substitution on object_deps handling.
39296
39297         PR ada/5909
39298         * Make-lang.in (check-ada): Enable ACATS test suite.
39299
39300 2003-10-27  Robert Dewar  <dewar@gnat.com>
39301
39302         * exp_ch3.adb:
39303         (Freeze_Array_Type): We do not need an initialization routine for types
39304         derived from String or Wide_String. They should be treated the same
39305         as String and Wide_String themselves. This caused problems with the
39306         use of Initialize_Scalars.
39307
39308         * exp_ch5.adb:
39309         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39310         composites. This allows use of component clauses that are not byte
39311         aligned.
39312
39313         * sem_prag.adb:
39314         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39315         is an attempt to pack an array of atomic objects.
39316
39317         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39318
39319 2003-10-27  Pascal Obry  <obry@gnat.com>
39320
39321         * g-dirope.adb:
39322         (Basename): Check for drive letters in a pathname only on DOS based OS.
39323
39324 2003-10-27  Vincent Celier  <celier@gnat.com>
39325
39326         * make.adb:
39327         (Gnatmake): When unable to change dir to the object dir, display the
39328         content of the parent dir of the obj dir, to try to understand why this
39329         happens.
39330
39331 2003-10-27  GNAT Script  <nobody@gnat.com>
39332
39333         * Make-lang.in: Makefile automatically updated
39334
39335 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
39336
39337         * sem_ch12.adb:
39338         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39339         should not be done in Save/Restore_Scope_Stack, because it is performed
39340         locally.
39341
39342         * sem_ch8.adb:
39343         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39344         whether use clauses should be removed/restored.
39345
39346         * sem_ch8.ads:
39347         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39348         whether use clauses should be removed/restored.
39349
39350 2003-10-26  Andreas Jaeger  <aj@suse.de>
39351
39352         * Makefile.in: Remove duplicated lines.
39353
39354 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39355
39356         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39357         minimize the differences with ACT tree.
39358
39359         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39360         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39361         Gnatvsn.Gnat_Static_Version_String to reduce differences between
39362         ACT and FSF trees.
39363
39364 2003-10-24  Pascal Obry  <obry@gnat.com>
39365
39366         PR ada/12014
39367         * adadecode.c (ostrcpy): New function.
39368         (__gnat_decode): Use ostrcpy of strcpy.
39369         (has_prefix): Set first parameter a const.
39370         (has_suffix): Set first parameter a const.
39371         Update copyright notice. Fix source name in header.
39372         Removes a trailing space.
39373
39374 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
39375
39376         * exp_disp.adb:
39377         Remove the test against being in No_Run_Time_Mode before generating a
39378         call to Register_Tag. It is redundant with the test against the
39379         availability of the function Register_Tag.
39380
39381 2003-10-24  Vincent Celier  <celier@gnat.com>
39382
39383         * g-catiio.adb: (Month_Name): Correct spelling of February
39384
39385         * make.adb: (Mains): New package
39386         (Initialize): Call Mains.Delete
39387         (Gnatmake): Check that each main on the command line is a source of a
39388         project file and, if there are several mains, each of them is a source
39389         of the same project file.
39390         (Gnatmake): When a foreign language is specified in attribute Languages,
39391         no main is specified on the command line and attribute Mains is not
39392         empty, only build the Ada main. If there is no Ada main, just compile
39393         the Ada sources and their closure.
39394         (Gnatmake): If a main is specified on the command line with directory
39395         information, check that the source exists and, if it does, that the path
39396         is the actual path of a source of a project.
39397
39398         * prj-env.adb:
39399         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39400         Full_Path is True, return the full path instead of the simple file name.
39401         (Project_Of): New function
39402
39403         * prj-env.ads:
39404         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39405         defaulted to False.
39406         (Project_Of): New function
39407
39408 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39409
39410         * Makefile.generic:
39411         Ensure objects of main project are always checked and rebuilt if needed.
39412         Set CC to gcc by default.
39413         Prepare new handling of link by creating a global archive (not activated
39414         yet).
39415
39416         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39417         stringt.h: Update copyright notice. Remove trailing blanks.
39418         Fix source name in header.
39419
39420 2003-10-24  Robert Dewar  <dewar@gnat.com>
39421
39422         * sem_ch12.adb: Minor reformatting
39423
39424         * sem_ch3.adb:
39425         Minor reformatting (including new function return style throughout)
39426
39427         * sem_ch3.ads:
39428         Minor reformatting (including new function return style throughout)
39429
39430 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39431
39432         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39433         stringt.h: Update copyright notice. Remove trailing blanks.
39434         Fix source name in header.
39435
39436 2003-10-24  GNAT Script  <nobody@gnat.com>
39437
39438         * Make-lang.in: Makefile automatically updated
39439
39440 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39441
39442         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39443         stringt.h: Convert to ISO C90 declarations and definitions.
39444
39445 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39446
39447         PR ada/11978
39448         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39449         External_Tag attribute definition clauses.
39450
39451 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39452
39453         PR ada/7613
39454         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39455         child unit, generate a fully qualified name to avoid spurious errors
39456         when the context contains renamings of different child units with
39457         the same simple name.
39458
39459         * exp_dbug.ads: Add documentation on name qualification for renamings
39460         of child units.
39461
39462 2003-10-23  Robert Dewar  <dewar@gnat.com>
39463
39464         * g-regpat.ads, g-regpat.adb: Minor reformatting
39465
39466 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39467
39468         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39469
39470 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39471
39472         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39473         Machine call.
39474
39475         * urealp.h: (Machine): Update to proper definition.
39476
39477 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39478
39479         * init.c, adaint.c: Minor reformatting.
39480
39481 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39482
39483         * adaint.c (w32_epoch_offset): Define static const at file level.
39484         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39485         rather than t_create, t_access in call to GetFileTime. Use union
39486         to convert between FILETIME and  unsigned long long.
39487         (__gnat_file_time_name): Test for invalid file handle.
39488         (__gnat_set_filetime_name): Support win32 targets using
39489         w32api SetFileTime.
39490
39491 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39492
39493         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39494
39495         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39496
39497         * decl.c (creat_concat_name):  Const-ify prefix.
39498
39499         * adaint.c: Include ctype.h if __MINGW32__.
39500         (__gnat_readlink): Mark arguments as possibly unused.
39501         (__gnat_symlink): Likewise.
39502         (__gnat_is_symbolic_link): Likewise.
39503         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39504         declaration
39505         (__gnat_file_time_name): Don't declare struct stat statbuf when
39506         not needed.
39507         (__gnat_is_absolute_path): Add parenthesis around condition of
39508         'if' statement to avoid warning.
39509         (__gnat_plist_init): Specify void as parameter.
39510         (plist_enter): Likewise.
39511         (plist_leave): Likewise.
39512         (remove_handle): Make static. Initialize prev.
39513
39514 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39515
39516         PR ada/10110
39517         * Makefile.in: Disable build of gnatpsta.
39518         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39519         of previous change.
39520
39521 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39522
39523         * tracebak.c (MAX): Avoid redefinition warning.
39524
39525         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39526         Change msg to const char *.
39527         (__gnat_install_handler): Remove ss, unused.
39528         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39529         to const char *.
39530         * cstreams.c (__gnat_full_name): Declare p only when used.
39531         (__gnat_full_name) [sgi] Return buffer.
39532
39533 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39534
39535         * mingw32.h: New file.
39536         * gnat_wrapper.adb: New file.
39537
39538 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39539
39540         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39541         string match a pre compiled regular expression (the corresponding
39542         version of the function working on a raw regular expression)
39543         Fix typos in various comments
39544         Update copyright notice in spec
39545
39546 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39547
39548         * exp_ch3.adb:
39549         (Component_Needs_Simple_Initialization): Return False when the type is a
39550         packed bit array. Revise spec comments to document this case.
39551
39552         * exp_prag.adb:
39553         (Expand_Pragma_Import): Set any expression on the imported object to
39554         empty to avoid initializing imported objects (in particular this
39555         covers the case of zero-initialization of bit arrays).
39556         Update copyright notice.
39557
39558 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39559
39560         * sem_ch12.adb:
39561         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39562         a subunit is missing.
39563         (Instantiate_Subprogram_Body): If body of function is missing, set type
39564         of return expression explicitly in dummy body, to prevent cascaded
39565         errors when a subunit is missing.
39566         Fixes PR 5677.
39567
39568         * sem_ch3.adb:
39569         (Access_Subprogram_Declaration): Verify that return type is valid.
39570         Fixes PR 8693.
39571
39572         * sem_elab.adb:
39573         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39574         generic.
39575         Fixes PR 12318.
39576
39577         * sem_util.adb:
39578         (Corresponding_Discriminant): If the scope of the discriminant is a
39579         private type without discriminant, use its full view.
39580         Fixes PR 8247.
39581
39582 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39583
39584         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39585         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39586         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39587         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39588         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39589         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39590         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39591         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39592         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39593         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39594         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39595         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39596         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39597         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39598         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39599         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39600         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39601         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39602         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39603         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39604         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39605         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39606         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39607         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39608         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39609         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39610         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39611         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39612         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39613         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39614         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39615         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39616         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39617         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39618         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39619         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39620         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39621         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39622         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39623         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39624         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39625         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39626         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39627         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39628         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39629         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39630         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39631         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39632         vms_conv.ads, vms_conv.adb, vms_data.ads,
39633         vxaddr2line.adb: Files added. Merge with ACT tree.
39634
39635         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39636         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39637         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39638         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39639         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39640         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39641         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39642         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39643         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39644         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39645
39646         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39647         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39648         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39649         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39650         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39651         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39652         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39653         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39654         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39655         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39656         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39657         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39658         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39659         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39660         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39661         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39662         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39663         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39664         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39665         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39666         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39667         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39668         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39669         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39670         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39671         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39672         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39673         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39674         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39675         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39676         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39677         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39678         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39679         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39680         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39681         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39682         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39683         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39684         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39685         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39686         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39687         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39688         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39689         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39690         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39691         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39692         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39693         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39694         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39695         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39696         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39697         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39698         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39699         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39700         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39701         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39702         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39703         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39704         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39705         checks.adb, checks.ads, cio.c, comperr.adb,
39706         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39707         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39708         einfo.adb, einfo.ads, errout.adb, errout.ads,
39709         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39710         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39711         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39712         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39713         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39714         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39715         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39716         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39717         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39718         fe.h, fmap.adb, fmap.ads, fname.adb,
39719         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39720         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39721         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39722         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39723         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39724         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39725         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39726         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39727         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39728         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39729         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39730         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39731         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39732         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39733         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39734         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39735         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39736         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39737         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39738         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39739         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39740         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39741         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39742         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39743         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39744         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39745         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39746         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39747         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39748         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39749         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39750         layout.adb, lib.adb, lib.ads, lib-list.adb,
39751         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39752         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39753         link.c, live.adb, make.adb, make.ads,
39754         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39755         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39756         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39757         misc.c, mkdir.c, mlib.adb, mlib.ads,
39758         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39759         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39760         namet.adb, namet.ads, namet.h, nlists.ads,
39761         nlists.h, nmake.adt, opt.adb, opt.ads,
39762         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39763         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39764         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39765         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39766         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39767         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39768         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39769         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39770         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39771         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39772         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39773         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39774         prj-util.adb, prj-util.ads, raise.c, raise.h,
39775         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39776         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39777         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39778         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39779         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39780         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39781         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39782         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39783         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39784         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39785         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39786         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39787         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39788         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39789         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39790         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39791         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39792         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39793         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39794         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39795         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39796         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39797         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39798         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39799         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39800         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39801         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39802         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39803         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39804         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39805         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39806         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39807         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39808         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39809         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39810         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39811         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39812         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39813         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39814         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39815         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39816         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39817         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39818         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39819         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39820         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39821         stringt.adb, stringt.ads, stringt.h, style.ads,
39822         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39823         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39824         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39825         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39826         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39827         table.adb, table.ads, targparm.adb, targparm.ads,
39828         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39829         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39830         ttypes.ads, types.ads, types.h, uintp.adb,
39831         uintp.ads, uintp.h, uname.adb, urealp.adb,
39832         urealp.ads, urealp.h, usage.adb, utils2.c,
39833         utils.c, validsw.adb, validsw.ads, widechar.adb,
39834         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39835         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39836         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39837         gnatvsn.ads: Merge with ACT tree.
39838
39839         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39840
39841 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39842
39843         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39844         (gnat_ug_vmx.info): Likewise.
39845         (gnat_ug_vxw.info): Likewise.
39846         (gnat_ug_wnt.info): Likewise.
39847         (gnat_rm.info): Likewise.
39848         (gnat-style.info): Likewise.
39849
39850         * Make-lang.in (ada.install-info): Remove target.
39851         (info): New target.
39852         (install-info): Likewise.
39853         (gnat_ug_unx.info): Simplify rule.
39854         (gnat_ug_vmx.info): Likewise.
39855         (gnat_ug_vxw.info): Likewise.
39856         (gnat_ug_wnt.info): Likewise.
39857         (gnat_rm.info): Likewise.
39858         (gnat-style.info): Likewise.
39859
39860 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39861
39862         * Make-lang.in: Replace uses of $(target_alias) with
39863         $(target_noncanonical).
39864         * ada/Makefile.in: Remove unused mention of $(target_alias).
39865
39866 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39867
39868         * Make-lang.in (ada.info): Replace with ...
39869         (info): ... this.
39870         (ada.dvi): Replace with ...
39871         (dvi): ... this.
39872
39873 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39874
39875         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39876         initialize dconstp5 and dconstmp5.
39877
39878 2003-09-28  Richard Henderson  <rth@redhat.com>
39879
39880         * trans.c (tree_transform): Update call to expand_asm_operands.
39881
39882 2003-09-21  Richard Henderson  <rth@redhat.com>
39883
39884         * trans.c, utils.c: Revert.
39885
39886 2003-09-21  Richard Henderson  <rth@redhat.com>
39887
39888         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39889         change to const.
39890
39891 2003-09-04  Michael Matz  <matz@suse.de>
39892
39893         * misc.c: Include "target.h".
39894         * Make-lang.in (misc.o): Add dependency on target.h.
39895
39896 2003-09-03  DJ Delorie  <dj@redhat.com>
39897
39898         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39899         hook.
39900
39901 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39902
39903         * Makefile.in: Update substitutions to match changes to
39904         configure.  Use include directives instead of @-insertions
39905         to read in host and target fragments.  Add a rule to
39906         regenerate ada/Makefile.
39907
39908 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39909
39910         * lang-options.h: Remove.
39911         * lang.opt: Add help text.
39912
39913 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39914
39915         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39916         calls.
39917
39918 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39919
39920         * misc.c (gnat_handle_option): Don't handle filenames.
39921
39922 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39923
39924         * Make-lang.in: Replace PWD with PWD_COMMAND.
39925         * Makefile.adalib: Likewise.
39926         * Makefile.in: Likewise.
39927
39928 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39929
39930         * misc.c (gnat_argv): Revert last change.
39931         (gnat_handle_option, gnat_init_options): Copy arguments.
39932
39933 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39934
39935         * misc.c (gnat_argv): Make const.
39936
39937 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39938
39939         * misc.c (save_argc, save_argv): Keep non-static!
39940
39941 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39942
39943         * misc.c (save_argc, save_argv): Make static.
39944         (gnat_init_options): New prototype.
39945         (gnat_init_options): Update.
39946
39947 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39948
39949         * gnat_ug.texi: Remove unlikely characters from @vars.
39950         * gnat_ug_vms.texi: Regenerate.
39951
39952 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39953
39954         * misc.c (record_code_position): Adjust emit_note call.
39955
39956 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39957
39958         * misc.c (gnat_handle_option): Don't check for missing arguments.
39959
39960 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39961
39962         * utils.c (end_subprog_body): Adjust expand_function_end call.
39963
39964 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39965
39966         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39967         Bind_Main_Program.
39968
39969 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39970
39971         * lang.opt: Declare Ada.
39972         * misc.c (gnat_init_options): Update.
39973
39974 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39975
39976         * utils.c (begin_subprog_body): Adjust init_function_start call.
39977
39978 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39979
39980         * Make-lang.in: Update to use options.c and options.h.
39981         * misc.c: Include options.h not aoptions.h.
39982         (gnat_handle_option): Abort on unrecognized switch.
39983         (gnat_init_options): Request Ada switches.
39984
39985 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39986
39987         * lang.opt: Add -Wall.
39988         * misc.c (gnat_handle_option): Handle it.
39989
39990 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39991
39992         * misc.c (gnat_handle_option): Fix warnings.
39993
39994 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39995
39996         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39997
39998 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39999
40000         * Make-lang.in: Update to handle command-line options.
40001         * lang.opt: New file.
40002         * misc.c: Include aoptions.h.
40003         (cl_options_count, cl_options): Remove.
40004         (gnat_handle_option): New.
40005         (gnat_decode_option): Remove.
40006         (LANG_HOOKS_DECODE_OPTION): Remove.
40007         (LANG_HOOKS_HANDLE_OPTION): Override.
40008
40009 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
40010
40011         * init.c, misc.c, trans.c, utils.c: Remove dead code.
40012
40013 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
40014
40015         * Makefile.in: Replace "host_canonical" with "host" for autoconf
40016         substitution.
40017
40018 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
40019
40020         * Make-lang.in: Update.
40021         * misc.c: Include opts.h. Define cl_options_count and cl_options.
40022
40023 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
40024
40025         * misc.c (gnat_init_options): Update.
40026
40027 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
40028
40029         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40030         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40031         __attribute__ ((__unused__)).
40032
40033 2003-06-05  Jan Hubicka  <jh@suse.cz>
40034
40035         * Make-lang.in:  Add support for stageprofile and stagefeedback
40036
40037 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
40038
40039         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40040         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40041
40042 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
40043
40044         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40045         Remove non-VMS directive.
40046         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40047         alternatives.
40048         (Examples of gnatls Usage): Remove VMS alternative.
40049
40050 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
40051
40052         PR ada/9953
40053         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40054         and turn ZCX_By_Default back to False since the underlying support
40055         is not quite there yet.
40056
40057 2003-06-01  Andreas Jaeger  <aj@suse.de>
40058
40059         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40060         and ROUND_TYPE_SIZE_UNIT.
40061
40062 2003-05-22   Geert Bosch  <bosch@gnat.com>
40063
40064         * gnat_rm.texi : Remove reference to Ada Core Technologies.
40065
40066 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
40067
40068         * trans.c (tree_transform): Use location_t and input_location
40069         directly.
40070         (build_unit_elab): Likewise.
40071         * utils.c (create_label_decl): Likewise.
40072
40073 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
40074
40075         * trans.c (tree_transform, build_unit_elab,
40076         set_lineno): Rename lineno to input_line.
40077         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40078         end_subprog_body): Likewise.
40079         * utils2.c (build_call_raise): Likewise.
40080
40081 2003-05-01  Laurent Guerby  <guerby@acm.org>
40082
40083         PR ada/10546
40084         * 5iosinte.ads: Increase pthread_cond_t size to match recent
40085         LinuxThread and NPTL version, merge from ACT.
40086
40087 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
40088
40089         * utils.c (convert): No need to clear TREE_CST_RTL.
40090
40091 2003-04-23   Geert Bosch  <bosch@gnat.com>
40092
40093         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40094         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40095         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40096         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40097         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40098         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40099         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40100         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40101         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40102         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40103         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40104         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40105         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40106         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40107         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40108         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40109         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40110         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40111         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40112         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40113         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40114         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40115         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40116         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40117         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40118         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40119         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40120         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40121         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40122         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40123         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40124         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40125         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40126         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40127         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40128         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40129         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40130         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40131         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40132         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40133         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40134         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40135         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40136         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40137         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40138         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40139         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40140         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40141         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40142         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40143         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40144         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40145         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40146         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40147         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40148         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40149         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40150         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40151         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40152         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40153         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40154         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40155         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40156         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40157         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40158         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40159         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40160         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40161         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40162         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40163         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40164         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40165         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40166         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40167         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40168         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40169         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40170         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40171         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40172         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40173         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40174         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40175         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40176         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40177         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40178         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40179         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40180         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40181         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40182         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40183         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40184         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40185         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40186         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40187         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40188         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40189         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40190         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40191         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40192         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40193         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40194         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40195         ali.adb, ali.ads, alloc.ads, argv.c,
40196         atree.adb, atree.ads, atree.h, aux-io.c,
40197         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40198         binde.adb, binde.ads, binderr.adb, binderr.ads,
40199         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40200         butil.adb, butil.ads, cal.c, calendar.ads,
40201         casing.adb, casing.ads, ceinfo.adb, checks.adb,
40202         checks.ads, cio.c, comperr.adb, comperr.ads,
40203         config-lang.in, csets.adb, csets.ads, csinfo.adb,
40204         cstand.adb, cstand.ads, cuintp.c, debug.adb,
40205         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40206         dec-io.ads, dec.ads, deftarg.c, directio.ads,
40207         einfo.adb, einfo.ads, elists.adb, elists.ads,
40208         elists.h, errno.c, errout.adb, errout.ads,
40209         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40210         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40211         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40212         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40213         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40214         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40215         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40216         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40217         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40218         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40219         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40220         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40221         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40222         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40223         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40224         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40225         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40226         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40227         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40228         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40229         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40230         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40231         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40232         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40233         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40234         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40235         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40236         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40237         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40238         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40239         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40240         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40241         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40242         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40243         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40244         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40245         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40246         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40247         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40248         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40249         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40250         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40251         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40252         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40253         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40254         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40255         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40256         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40257         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40258         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40259         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40260         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40261         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40262         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40263         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40264         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40265         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40266         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40267         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40268         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40269         lib.adb, lib.ads, live.adb, live.ads,
40270         machcode.ads, make.adb, make.ads, makeusg.adb,
40271         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40272         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40273         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40274         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40275         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40276         mlib.ads, namet.adb, namet.ads, nlists.adb,
40277         nlists.ads, opt.adb, opt.ads, osint-b.adb,
40278         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40279         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40280         osint.ads, output.adb, output.ads, par-ch10.adb,
40281         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40282         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40283         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40284         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40285         par-tchk.adb, par-util.adb, par.adb, par.ads,
40286         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40287         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40288         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40289         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40290         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40291         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40292         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40293         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40294         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40295         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40296         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40297         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40298         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40299         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40300         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40301         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40302         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40303         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40304         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40305         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40306         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40307         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40308         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40309         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40310         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40311         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40312         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40313         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40314         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40315         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40316         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40317         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40318         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40319         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40320         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40321         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40322         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40323         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40324         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40325         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40326         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40327         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40328         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40329         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40330         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40331         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40332         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40333         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40334         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40335         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40336         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40337         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40338         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40339         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40340         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40341         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40342         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40343         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40344         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40345         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40346         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40347         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40348         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40349         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40350         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40351         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40352         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40353         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40354         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40355         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40356         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40357         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40358         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40359         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40360         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40361         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40362         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40363         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40364         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40365         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40366         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40367         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40368         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40369         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40370         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40371         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40372         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40373         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40374         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40375         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40376         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40377         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40378         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40379         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40380         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40381         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40382         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40383         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40384         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40385         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40386         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40387         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40388         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40389         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40390         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40391         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40392         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40393         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40394         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40395         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40396         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40397         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40398         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40399         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40400         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40401         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40402         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40403         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40404         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40405         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40406         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40407         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40408         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40409         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40410         snames.ads, sprint.adb, sprint.ads, stand.adb,
40411         stand.ads, stringt.adb, stringt.ads, style.adb,
40412         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40413         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40414         switch-m.ads, switch.adb, switch.ads, system.ads,
40415         table.adb, table.ads, targparm.adb, targparm.ads,
40416         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40417         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40418         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40419         ttypef.ads, ttypes.ads, types.adb, types.ads,
40420         uintp.adb, uintp.ads, uname.adb, uname.ads,
40421         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40422         usage.adb, usage.ads, validsw.adb, validsw.ads,
40423         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40424         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40425         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40426         formatting and other trivial changes from ACT.
40427
40428 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40429
40430         * gigi.h, utils2.c (build_constructor):
40431         Rename gnat_build_constructor. Use build_constructor.
40432         * decl.c (gnat_to_gnu_entity)
40433         * trans.c (tree_transform, pos_to_constructor, extract_values)
40434         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40435         (unchecked_convert)
40436         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40437         (fill_vms_descriptor):
40438         Update to match.
40439
40440 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40441
40442         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40443         * misc.c (gnat_tree_size): New function.
40444         (LANG_HOOKS_TREE_SIZE): Override.
40445
40446 2003-04-03  Jason Merrill  <jason@redhat.com>
40447
40448         * misc.c (gnat_adjust_rli): #if 0.
40449
40450 2003-03-31   Geert Bosch  <bosch@gnat.com>
40451
40452         PR ada/10020
40453         * link.c : Fix misspelled "const" keyword
40454
40455 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40456
40457         PR c++/7086
40458         * utils2.c: Adjust calls to put_var_into_stack.
40459
40460 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40461
40462         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40463
40464 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40465
40466         * misc.c (gnat_init): Update for new prototype.
40467
40468 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40469
40470         ada/9961
40471         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40472         warning, and fix return type for the IN_RTS && !SJLJ case.
40473
40474 2003-03-04  Tom Tromey  <tromey@redhat.com>
40475
40476         * Make-lang.in (ada.tags): New target.
40477
40478 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40479
40480         ada/9911
40481         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40482         wrapper, which name remains constant whatever underlying GCC
40483         scheme.
40484
40485         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40486         the stable interface needed for a-except.
40487
40488 2003-03-02  Andreas Jaeger  <aj@suse.de>
40489
40490         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40491         gnat_ug_wnt.texi: Regenerate.
40492
40493 2003-03-02  Laurent Guerby  <guerby@acm.org>
40494
40495         * Makefile.in (install-gnatlib): Match previous change there
40496         so it works.
40497
40498 2003-02-28  Andreas Schwab  <schwab@suse.de>
40499
40500         * Make-lang.in (install-gnatlib): Change to ada directory before
40501         running make instead of using ada/Makefile directly.
40502
40503 2003-02-18  Ben Elliston  <bje@redhat.com>
40504
40505         Part of PR ada/9406
40506         * gnat_ug.texi (Binder output file): Grammar fix.
40507
40508 2003-02-18  Ben Elliston  <bje@redhat.com>
40509
40510         PR other/7350
40511         * 5qtaprop.adb (Sleep): Fix typo in comment.
40512
40513 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40514
40515         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40516         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40517         gnat_ug_wnt.texi: Regenerate.
40518
40519 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40520
40521         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40522         be created if necessary.
40523         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40524         if necessary.  Remove erroneous and redundant gnatchop
40525         installation commands.  Test for gnatdll before attempting
40526         to install it.
40527         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40528         and gnatdll from all plausible locations.
40529
40530 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40531
40532         * utils2.c (build_unary_op): Don't check flag_volatile.
40533         * gnat_ug.texi: Remove -fvolatile from example.
40534         * gnat_ug_vxw.texi: Likewise.
40535
40536 2003-01-29  Laurent Guerby  <guerby@acm.org>
40537
40538         PR ada/8344
40539         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40540         * Makefile.in: match previous change.
40541         * Make-lang.in: match previous change.
40542
40543 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40544
40545         * 5rosinte.ads: Add SIGXCPU.
40546         * 5rtpopsp.adb: New file.
40547         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40548         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40549         specific file 5rtpopsp.adb.
40550         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40551         is likely needed for all newlib targets.
40552         * init.c: Add RTEMS specific version of __gnat_initialize().
40553
40554 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40555
40556         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40557
40558 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40559
40560         * init.c (__gnat_error_handler): Make msg const.
40561
40562         * gmem.c (convert_addresses): Move declaration ...
40563         * adaint.h: ... here.
40564         * adaint.c (convert_addresses): Adapt addrs type to match
40565         prototype.
40566
40567         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40568
40569 2003-01-24  Andreas Schwab  <schwab@suse.de>
40570
40571         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40572         size_t to avoid warning.
40573
40574 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40575
40576         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40577
40578 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40579
40580         * gnat_rm.texi: Remove RCS version number.
40581
40582         * ada-tree.h (union lang_tree_node): Add chain_next option.
40583
40584 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40585
40586         * Make-lang.in (ada.install-info, ada.install-common,
40587         ada.uninstall): Prepend $(DESTDIR) to the destination
40588         directory in all (un)installation commands.
40589         * Makefile.in (install-gnatlib, install-rts): Ditto.
40590
40591 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40592
40593         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40594         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40595         gnat_ug_wnt.texi: Regenerate.
40596
40597 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40598
40599         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40600         only.
40601         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40602         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40603         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40604         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40605         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40606         $(srcdir)/doc/include/gcc-common.texi.
40607
40608 2002-12-15   Geert Bosch  <bosch@gnat.com>
40609
40610         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40611
40612 2002-12-14   Geert Bosch  <bosch@gnat.com>
40613
40614         PR ada/5690
40615         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40616         case of a body created for a Renaming_As_Body, on which
40617         conformance checks are not performed.
40618
40619 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40620
40621         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40622         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40623         not already included.
40624         * Make-lang.in: Update dependencies.
40625
40626 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40627         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40628         solution to buffer overflow bug on GNU/Linux.
40629
40630 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40631
40632         PR ada/5856
40633         PR ada/6919
40634         * bindgen.adb: Remove all references to Public_Version.
40635         * comperr.adb: Remove all references to Public_Version and
40636         GNATPRO_Version; correct bug reporting instructions.
40637         * comperr.ads: Change to match bug box.
40638         * gnatvsn.ads: Remove all references to Public version and
40639         GNATPRO version.
40640
40641 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40642
40643         PR ada/6919
40644         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40645         GNU/Linux.
40646
40647         PR ada/6558
40648         * config-lang.in: Remove diff_excludes.
40649
40650 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40651
40652         PR ada/8358
40653         * trans.c (gnu_pending_elaboration_lists): New GC root.
40654         (build_unit_elab): Use..
40655
40656 2002-10-30   Geert Bosch  <bosch@gnat.com>
40657
40658         PR ada/6558
40659         * misc.c : Include optabs.h
40660
40661         * Make-lang.in (misc.o): Add dependency on optabs.h
40662
40663 2002-10-29   Geert Bosch  <bosch@gnat.com>
40664
40665         PR ada/6558
40666         * Make-lang.in (gnatbind): Depend on CONFIG_H
40667
40668 2002-10-29  Geert bosch  <bosch@gnat.com>
40669
40670         PR ada/6558
40671         * misc.c: Unrevert misc.c (1.13)
40672
40673 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40674
40675         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40676         maintainership comments.
40677
40678 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40679
40680         PR ada/5904
40681         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40682         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40683         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40684         7staprop.adb: Correct statements in comments about
40685         maintainership of GNAT.
40686
40687         PR ada/5904
40688         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40689         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40690         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40691         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40692         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40693         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40694         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40695         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40696         comments about maintainership of GNAT.
40697
40698         PR ada/6919 (forward port of patch for PR ada/5904)
40699         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40700         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40701         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40702         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40703         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40704         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40705         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40706         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40707         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40708         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40709         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40710         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40711         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40712         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40713         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40714         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40715         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40716         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40717         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40718         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40719         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40720         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40721         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40722         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40723         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40724         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40725         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40726         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40727         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40728         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40729         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40730         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40731         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40732         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40733         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40734         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40735         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40736         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40737         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40738         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40739         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40740         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40741         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40742         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40743         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40744         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40745         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40746         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40747         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40748         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40749         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40750         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40751         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40752         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40753         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40754         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40755         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40756         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40757         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40758         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40759         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40760         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40761         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40762         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40763         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40764         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40765         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40766         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40767         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40768         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40769         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40770         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40771         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40772         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40773         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40774         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40775         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40776         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40777         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40778         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40779         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40780         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40781         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40782         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40783         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40784         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40785         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40786         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40787         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40788         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40789         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40790         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40791         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40792         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40793         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40794         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40795         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40796         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40797         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40798         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40799         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40800         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40801         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40802         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40803         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40804         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40805         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40806         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40807         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40808         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40809         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40810         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40811         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40812         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40813         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40814         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40815         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40816         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40817         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40818         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40819         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40820         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40821         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40822         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40823         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40824         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40825         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40826         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40827         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40828         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40829         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40830         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40831         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40832         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40833         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40834         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40835         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40836         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40837         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40838         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40839         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40840         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40841         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40842         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40843         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40844         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40845         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40846         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40847         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40848         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40849         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40850         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40851         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40852         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40853         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40854         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40855         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40856         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40857         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40858         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40859         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40860         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40861         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40862         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40863         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40864         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40865         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40866         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40867         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40868         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40869         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40870         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40871         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40872         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40873         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40874         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40875         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40876         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40877         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40878         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40879         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40880         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40881         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40882         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40883         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40884         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40885         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40886         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40887         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40888         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40889         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40890         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40891         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40892         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40893         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40894         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40895         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40896         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40897         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40898         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40899         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40900         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40901         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40902         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40903         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40904         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40905         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40906         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40907         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40908         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40909         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40910         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40911         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40912         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40913         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40914         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40915         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40916         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40917         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40918         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40919         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40920         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40921         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40922         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40923         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40924         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40925         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40926         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40927         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40928         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40929         stringt.ads stringt.h style.adb style.ads stylesw.adb
40930         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40931         table.adb table.ads targparm.adb targparm.ads targtyps.c
40932         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40933         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40934         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40935         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40936         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40937         usage.ads utils.c utils2.c validsw.adb validsw.ads
40938         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40939         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40940         xtreeprs.adb: Correct statements in comments about maintainership
40941         of GNAT.
40942
40943 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40944
40945         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40946         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40947         * gnatvsn.ads: Gnat_Version_String is now a function.
40948         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40949         copy the C version_string into a String and return it.
40950         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40951         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40952         Remove pragma Ident (Gnat_Version_String).  If this was the
40953         sole use of package Gnatvsn, remove the with statement too.
40954         * gnat1drv.adb: Tweak -gnatv output.
40955
40956 2002-09-17  Richard Henderson  <rth@redhat.com>
40957
40958         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40959         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40960         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40961         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40962         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40963         and real_2expN instead of a loop.
40964         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40965         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40966
40967 2002-08-25  Andre Leis  <a.leis@gmx.net>
40968             David Billinghurst  <David.Billinghurst@riotinto.com>
40969
40970         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40971
40972 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40973
40974         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40975         Remove $(CONFIG_H) dependency.
40976
40977 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40978
40979         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40980
40981 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40982
40983         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40984         xmalloc/strcpy.
40985         * misc.c (gnat_decode_option): Likewise.
40986
40987 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40988
40989         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40990         function approach did not work well because of a side effect (the
40991         function call could reallocate the table which was being indexed
40992         using its result). Fixes ada/4851. [RESURRECTED]
40993
40994 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40995
40996         * ada/utils.c (builtin_function): Accept an additional parameter.
40997
40998 2002-06-28  Andreas Jaeger  <aj@suse.de>
40999
41000         PR ada/7144
41001         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41002         <adi@thur.de>.
41003
41004 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41005
41006         * Makefile.in (SHELL): Set to @SHELL@.
41007
41008 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41009
41010         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41011         array size calculation.
41012
41013 2002-06-04  Andreas Jaeger  <aj@suse.de>
41014
41015         * Make-lang.in (gnatbind): Readd rule that has been lost in last
41016         patch.
41017
41018 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
41019
41020         Merge from pch-branch:
41021
41022         * config-lang.in (gtfiles): Add ada-tree.h.
41023         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41024         (SET_TYPE_MODULUS): New.
41025         (SET_TYPE_INDEX): New.
41026         (SET_TYPE_DIGITS_VALUE): New.
41027         (SET_TYPE_RM_SIZE): New.
41028         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41029         (SET_TYPE_ADA_SIZE): New.
41030         (SET_TYPE_ACTUAL_BOUNDS): New.
41031         (SET_DECL_CONST_CORRESPONDING_VAR): New.
41032         (SET_DECL_ORIGINAL_FIELD): New.
41033         (TREE_LOOP_ID): Correct typo.
41034         * decl.c: Use new macros.
41035         * utils.c: Include debug.h, use new macros.
41036         * utils2.c: Use new macros.
41037
41038         * ada-tree.h: Update all macros for new tree description.
41039         (struct tree_loop_id): New.
41040         (union lang_tree_node): New.
41041         (struct lang_decl): New.
41042         (struct lang_type): New.
41043         * misc.c (gnat_mark_tree): Delete.
41044         (LANG_HOOKS_MARK_TREE): Delete.
41045         * trans.c (tree_transform): No longer any need to cast
41046         for TREE_LOOP_ID.
41047
41048         * utils.c (struct language_function): New dummy structure.
41049
41050         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41051         (misc.o): Likewise.
41052         (utils.o): Likewise; also gtype-ada.h.
41053         * Make-lang.in (gnat1): Add dependency on s-gtype.
41054         (gnatbind): Add dependency on $(CONFIG_H).
41055         * utils.c: Correct last #include.
41056         (stuct e_stack): Remove unnecessary 'static'.
41057         (mark_e_stack): Remove unused prototype.
41058
41059         * scn-nlit.adb: Remove whitespace after version number to
41060         keep lines under 80 chars.
41061         * snames.adb: Likewise.
41062         * treepr.ads: Likewise.
41063
41064         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41065         (misc.o): Likewise.
41066         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41067         * config-lang.in (gtfiles): New.
41068         * decl.c: Use gengtype for roots.
41069         * gigi.h: Use gengtype for roots.
41070         * trans.c: Use gengtype for roots.
41071         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
41072
41073 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
41074
41075         * misc.c (gnat_init): Adjust setting of internal_error_function.
41076
41077 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
41078
41079         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41080         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41081         gnat_ug_wnt.texi: Regenerate.
41082
41083 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
41084
41085         * 5ntaprop.adb (with System.OS_Primitives): Remove.
41086
41087         * cstreams.c (max_path_len): Move from here ...
41088         * adaint.c (__gnat_max_path_len): ... to here.
41089         * adaint.c (__gnat_max_path_len): Declare.
41090         * g-dirope.adb (Max_Path): Adjust.
41091         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41092         * i-cstrea.ads (max_path_len): Adjust.
41093         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41094         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41095
41096         * Makefile.in, Make-lang.in: Documentation is now built in
41097         Make-lang.in.  Store Info and generated Texinfo files in the
41098         source directory.
41099         * gnat_ug.texi: Remove CVS keywords, correct version number.
41100         Set file name correctly.
41101
41102         * gnat_ug_*.texi: Add.
41103         * .cvsignore: Ignore generated Texinfo files.
41104
41105 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
41106
41107         * ada.h: Add MI guard macro.
41108         (SUBTYPE): Define constants with an anonymous enum, not static
41109         const variables.
41110         (IN): Cast constants to appropriate type before use.
41111
41112 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
41113
41114         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41115         (experimental)".
41116
41117 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41118
41119         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41120         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41121         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41122         (ALL_ADA_CFLAGS): Likewise.
41123         (ADA_INCLUDES): Likewise.
41124         Adapt for new working dir.
41125         (GNATBIND): Use Makefile.in version.
41126         (.SUFFIXES): Copy from Makefile.in.
41127         (ada-warn): Define.
41128         (.adb.o, .ads.o): Copy from Makefile.in.
41129         Added $(OUTPUT_OPTION).
41130         (GNAT1_C_OBJS): Moved from Makefile.in.
41131         Prefix with ada subdir.
41132         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41133         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41134         Adapt for new working dir.
41135         (EXTRA_GNATBIND_OBJS): Likewise.
41136         (ADA_BACKEND): Moved from Makefile.in.
41137         Renamed to avoid conflict with global BACKEND.
41138         Use that one.
41139         (TARGET_ADA_SRCS): Moved from Makefile.in.
41140         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41141         Use ADA_BACKEND.
41142         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41143         (ada_extra_files): Moved from Makefile.in.
41144         Prefix with ada subdir.
41145         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41146         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41147         (ada/nmake.ads): Likewise.
41148         (update-sources): Moved from Makefile.in.
41149         Prefix with ada subdir.
41150         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41151         (ADA_TREE_H): Likewise.
41152         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41153         (ada/memtrack.o): Likewise.
41154         (ada/adadecode.o): Likewise.
41155         Update dependencies.
41156         (ada/adaint.o): New.
41157         (ada/argv.o): Moved from Makefile.in.
41158         Prefix with ada subdir.
41159         Update dependencies.
41160         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41161         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41162         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41163         Prefix with ada subdir.
41164         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41165         (GNAT DEPENDENCIES): Regenerate.
41166         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41167         toplevel Makefile.in.
41168         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41169         (TARGET_ADA_SRCS): Removed.
41170         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41171         (GNATBIND_OBJS): Likewise.
41172         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41173         (BACKEND): Removed.
41174         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41175         (TREE_H): Likewise.
41176         (ada_extra_files): Likewise.
41177         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41178         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41179         (update-sources): Likewise.
41180         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41181         (ADA_TREE_H): Likewise.
41182         (adadecoce.o): Likewise.
41183         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41184         (GNAT DEPENDENCIES): Likewise.
41185
41186 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41187
41188         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41189         * Makefile.in: Likewise.
41190
41191 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41192
41193         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41194         Restore $(CONFIG_H) and prefix.o dependencies.
41195         (ada.stage[1-4]): Depend on stage?-start.
41196
41197         * Makefile.in (b_gnatb.c): Depend on interfac.o.
41198
41199 2002-05-02  Jim Wilson  <wilson@redhat.com>
41200
41201         * utils.c (finish_record_type): Change record_size to record_type.
41202
41203 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
41204
41205         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41206         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41207         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41208
41209 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41210
41211         * misc.c (gnat_parse_file): Update.
41212
41213 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41214
41215         * misc.c (gnat_init): Don't set lang_attribute_common.
41216
41217 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
41218
41219         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41220
41221 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
41222
41223         * gnat_ug.texi: New file.
41224
41225         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
41226         instead of gfdl.texi
41227
41228         * xgnatug.adb, ug_words: New files.
41229
41230         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
41231         gnat_rm and gnat-style manuals.
41232
41233 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41234
41235         * gigi.h (incomplete_type_error): Remove.
41236         * utils.c (incomplete_type_error): Remove.
41237
41238 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
41239
41240         * trans.c (tree_transform): Add has_scope argument to
41241         expand_start_stmt_expr.
41242
41243 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41244
41245         * gigi.h (truthvalue_conversion): Rename.
41246         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41247         * trans.c (tree_transform): Update.
41248         * utils2.c (truthvalue_conversion): Rename, update.
41249         (build_binary_op, build_unary_op): Update.
41250
41251 2002-04-04  Laurent Guerby  <guerby@acm.org>
41252
41253         * make.adb: Implement -margs, remove restriction about file name placement.
41254         * makeusg.adb: Documentation update.
41255         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41256         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41257
41258 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41259
41260         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41261         (builtin_function): Similarly.
41262
41263 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41264
41265         * decl.c (gnat_to_gnu_entity): Update.
41266         * gigi.h (mark_addressable): Rename.
41267         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41268         * trans.c (tree_transform): Update.
41269         * utils.c (create_var_decl): Update.
41270         * util2.c (build_binary_op, build_unary_op,
41271         fill_vms_descriptor): Update.
41272         (mark_addressable): Rename, update.
41273
41274 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41275
41276         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41277         Rename.
41278         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41279         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41280         * trans.c (tree_transform, convert_with_check): Update.
41281         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41282         Rename.
41283
41284 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
41285
41286         * gigi.h (finish_incomplete_decl): Rename.
41287         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41288         * utils.c (gnat_init_decl_processing): Don't set hook.
41289         (finish_incomplete_decl): Rename.
41290
41291 2002-03-29  Andreas Schwab  <schwab@suse.de>
41292
41293         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41294         directory.
41295
41296 2001-03-28  Robert Dewar  <dewar@gnat.com>
41297
41298         * checks.ads:
41299         (Remove_Checks): New procedure
41300
41301         * checks.adb:
41302         (Remove_Checks): New procedure
41303
41304         * exp_util.adb:
41305         Use new Duplicate_Subexpr functions
41306         (Duplicate_Subexpr_No_Checks): New procedure
41307         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41308         (Duplicate_Subexpr): Restore original form (checks duplicated)
41309         (Duplicate_Subexpr): Call Remove_Checks
41310
41311         * exp_util.ads:
41312         (Duplicate_Subexpr_No_Checks): New procedure
41313         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41314         Add 2002 to copyright notice
41315
41316         * sem_util.adb: Use new Duplicate_Subexpr functions
41317
41318         * sem_eval.adb:
41319         (Eval_Indexed_Component): This is the place to call
41320         Constant_Array_Ref and to replace the value. We simply merge
41321         the code of this function in here, since it is now no longer
41322         used elsewhere. This fixes the problem of the back end not
41323         realizing we were clever enough to see that this was
41324         constant.
41325         (Expr_Val): Remove call to Constant_Array_Ref
41326         (Expr_Rep_Val): Remove call to Constant_Array_Ref
41327         Minor reformatting
41328         (Constant_Array_Ref): Deal with string literals (patch
41329         suggested by Zack Weinberg on the gcc list)
41330
41331 2001-03-28  Ed Schonberg  <schonber@gnat.com>
41332
41333         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41334         Duplicate_Subexpr_Move_Checks.
41335
41336         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41337         Duplicate_Subexpr_Move_Checks.
41338
41339         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41340         value of array exists before retrieving it (it may a private
41341         protected component in a function).
41342
41343 2002-03-28   Geert Bosch  <bosch@gnat.com>
41344
41345         * prj-pp.adb : New file.
41346
41347         * prj-pp.ads : New file.
41348
41349 2002-03-28  Andreas Jaeger  <aj@suse.de>
41350
41351         * Makefile.in (stamp-sdefault): Fix path for Makefile.
41352
41353 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41354
41355         * misc.c (gnat_expand_expr): Move prototype.
41356
41357 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41358
41359         * misc.c (insert_default_attributes): Remove.
41360
41361 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41362
41363         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41364         (gnat_init): Don't set hook.
41365         (gnat_expand_expr): Fix prototype.
41366
41367 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41368
41369         * misc.c (ggc_p): Remove.
41370
41371 2002-03-27  Geert Bosch  <bosch@gnat.com>
41372
41373         * prj-makr.ads, prj-makr.adb : New files.
41374
41375 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
41376
41377         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41378         (lang_mark_tree): Make static, rename.
41379
41380 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41381
41382         * misc.c (maybe_build_cleanup): Remove.
41383
41384 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41385
41386         * gigi.h (yyparse): Remove.
41387
41388 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
41389
41390         From Ben Brosgol  <brosgol@gnat.com>
41391         * gnat_rm.texi: Sync with ACT version.
41392
41393 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
41394
41395         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41396         (gnat_init): Remove old hook.
41397
41398 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
41399
41400         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41401         (yyparse): Rename gnat_parse_file.
41402
41403 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
41404
41405         Delete all lines containing "$Revision:".
41406         * xeinfo.adb: Don't look for revision numbers.
41407         * xnmake.adb: Likewise.
41408         * xsinfo.adb: Likewise.
41409         * xsnames.adb: Likewise.
41410         * xtreeprs.adb: Likewise.
41411
41412 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41413
41414         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41415         gnat_tree_code_name): Delete.
41416         (tree_code_type, tree_code_length, tree_code_name): Define.
41417         (gnat_init): Don't try to copy into the various tree_code
41418         arrays.
41419
41420 2002-03-11  Richard Henderson  <rth@redhat.com>
41421
41422         * Makefile.in (.NOTPARALLEL): Add fake tag.
41423
41424 2002-03-07  Geert Bosch  <bosch@gnat.com>
41425
41426         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41427         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41428         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41429         switch-m.adb, switch-m.ads : New files.
41430
41431 2002-03-07  Geert Bosch  <bosch@gnat.com>
41432
41433         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41434         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41435         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41436         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41437         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41438         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41439         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41440         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41441         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41442         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41443         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41444         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41445         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41446         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41447         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41448         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41449         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41450         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41451         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41452         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41453         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41454         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41455         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41456         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41457         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41458         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41459         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41460         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41461         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41462         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41463         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41464         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41465         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41466         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41467         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41468         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41469         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41470         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41471         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41472         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41473         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41474         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41475         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41476         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41477         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41478         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41479         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41480         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41481         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41482         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41483         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41484         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41485         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41486         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41487         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41488         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41489         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41490         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41491         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41492         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41493         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41494         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41495         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41496         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41497         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41498         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41499         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41500         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41501         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41502         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41503         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41504         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41505         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41506         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41507         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41508         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41509         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41510         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41511         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41512         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41513         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41514         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41515         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41516         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41517         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41518         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41519         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41520         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41521         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41522         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41523         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41524         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41525         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41526         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41527         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41528         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41529         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41530
41531         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41532         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41533         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41534         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41535
41536         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41537         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41538
41539         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41540         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41541
41542         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41543         from mdllfile.ad[bs] and mdlltool.ad[bs]
41544
41545 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41546
41547         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41548         lieu of explicit sizeof/sizeof.
41549
41550 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41551
41552         * misc.c (copy_lang_decl): Remove.
41553
41554 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41555
41556         * misc.c: Delete traditional-mode-related code copied from the
41557         C front end but not used, or used only to permit the compiler
41558         to link.
41559
41560 2002-02-07  Richard Henderson  <rth@redhat.com>
41561
41562         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41563         * adaint.h (__gnat_to_gm_time): Update prototype.
41564
41565 2002-01-30  Richard Henderson  <rth@redhat.com>
41566
41567         * trans.c (tree_transform) [N_Loop_Statement]: Use
41568         expand_exit_loop_top_cond.
41569
41570 2001-12-23  Richard Henderson  <rth@redhat.com>
41571
41572         * utils.c (end_subprog_body): Push GC context around
41573         rest_of_compilation for nested functions.
41574
41575 2001-12-23  Richard Henderson  <rth@redhat.com>
41576
41577         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41578
41579 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41580
41581         * gnat-style.texi (Declarations and Types): Remove ancient style
41582         rule which was mandated by code generation issues.
41583
41584         * gnat-style.texi (header): Add @dircategory, @direntry.
41585         (title page): Remove date.
41586         (general) Add @./@: where approriate, and two spaces after the
41587         full stop at the end of a sentence.  Use @samp markup when
41588         referring concrete lexical entities (keywords, attribute names
41589         etc.), and @syntax for ARM grammar elements. Use @r for English
41590         text in comments.  Use @emph for emphasis.  Change "if-statements"
41591         etc. to "if statements" (without @samp). Break long lines.  Make
41592         casing of section names consistent.
41593         (Identifiers): Use @samp markup for variable names.
41594         (Comments): Use @samp markup for comment characters. Line-end
41595         comments may follow any Ada code, not just statements.  Fix
41596         misspelling of "Integer" as "integer".
41597         (Loop statements): Do not use variable name "I", use "J".
41598         (Subprogram Declarations): Document alignment.
41599         (Subprogram Bodies, Block statements): Document empty line before
41600         "begin".
41601
41602 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41603
41604         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41605         function approach did not work well because of a side effect (the
41606         function call could reallocate the table which was being indexed
41607         using its result). Fixes ada/4851.
41608
41609 2001-12-19  Robert Dewar  <dewar@gnat.com>
41610
41611         * bindgen.adb: Minor reformatting
41612
41613         * cstand.adb: Minor reformatting
41614
41615         * fmap.adb: Minor reformatting
41616         Change name from Add for Add_To_File_Map (Add is much too generic)
41617         Change Path_Name_Of to Mapped_Path_Name
41618         Change File_Name_Of to Mapped_File_Name
41619         Fix copyright dates in header
41620
41621         * fmap.ads:
41622         Change name from Add for Add_To_File_Map (Add is much too generic)
41623         Change Path_Name_Of to Mapped_Path_Name
41624         Change File_Name_Of to Mapped_File_Name
41625         Fix copyright dates in header
41626
41627         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41628         Add use clause for Fmap.
41629
41630         * make.adb: Minor reformatting
41631
41632         * osint.adb: Minor reformatting.  Change of names in Fmap.
41633         Add use clause for Fmap.
41634
41635         * prj-env.adb: Minor reformatting
41636
41637         * prj-env.ads: Minor reformatting
41638
41639         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41640         error found (there were odd exceptions to this general rule in
41641         -gnatec/-gnatem processing)
41642
41643 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41644
41645         * raise.c (__gnat_eh_personality): Exception handling personality
41646         routine for Ada.  Still in rough state, inspired from the C++ version
41647         and still containing a bunch of debugging artifacts.
41648         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41649         inspired from the C++ library.
41650
41651         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41652         exception handling integration.
41653
41654 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41655
41656         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41657         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41658         (HIE_OBJS): Add s-fat*.o
41659         (RAVEN_SOURCES): Remove files that are no longer required. Add
41660         interrupt handling files.
41661         (RAVEN_MOD): Removed, no longer needed.
41662
41663 2001-12-19  Robert Dewar  <dewar@gnat.com>
41664
41665         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41666         Add 2001 to copyright date
41667
41668         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41669         need to force universal inlining for these cases.
41670
41671 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41672
41673         * s-taprob.adb: Minor clean ups so that this unit can be used in
41674         Ravenscar HI.
41675
41676         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41677         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41678
41679 2001-12-19  Vincent Celier  <celier@gnat.com>
41680
41681         * prj-tree.ads (Project_Node_Record): Add comments for components
41682         Pkg_Id and Case_Insensitive.
41683
41684 2001-12-19  Pascal Obry  <obry@gnat.com>
41685
41686         * g-socket.adb: Minor reformatting. Found while reading code.
41687
41688 2001-12-19  Robert Dewar  <dewar@gnat.com>
41689
41690         * prj-tree.ads: Minor reformatting
41691
41692 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41693
41694         * config-lang.in (diff_excludes): Remove.
41695
41696 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41697
41698         * sem_res.adb (Resolve_Selected_Component): do not generate a
41699         discriminant check if the selected component is a component of
41700         the argument of an initialization procedure.
41701
41702         * trans.c (tree_transform, case of arithmetic operators): If result
41703         type is private, the gnu_type is the base type of the full view,
41704         given that the full view itself may be a subtype.
41705
41706 2001-12-17  Robert Dewar  <dewar@gnat.com>
41707
41708         * sem_res.adb: Minor reformatting
41709
41710         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41711         parameter in call to Machine (unknown horrible effects from this
41712         omission).
41713
41714         * urealp.h: Add definition of Round_Even for call to Machine
41715         Add third parameter for Machine
41716
41717 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41718
41719         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41720         predefined units in No_Run_Time mode.
41721
41722 2001-12-17  Richard Kenner  <kenner@gnat.com>
41723
41724         * misc.c (insn-codes.h): Now include.
41725
41726 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41727
41728         * a-except.adb: Preparation work for future integration of the GCC 3
41729         exception handling mechanism
41730         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41731         to factorize previous code sequences and make them externally callable,
41732         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41733         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41734         Use the new notification routines.
41735
41736 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41737
41738         * prj-tree.ads (First_Choice_Of): Document the when others case
41739
41740 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41741
41742         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41743         HI-E mode, in order to support Ravenscar profile properly.
41744
41745         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41746         mode on 32 bits targets.
41747
41748 2001-12-17  Vincent Celier  <celier@gnat.com>
41749
41750         * fmap.adb: Initial version.
41751
41752         * fmap.ads: Initial version.
41753
41754         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41755         If search is successfully done, add to mapping.
41756
41757         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41758
41759         * make.adb:
41760         (Gnatmake): Add new local variable Mapping_File_Name.
41761          Create mapping file when using project file(s).
41762          Delete mapping file before exiting.
41763
41764         * opt.ads (Mapping_File_Name): New variable
41765
41766         * osint.adb (Find_File): Use path name found in mapping, if any.
41767
41768         * prj-env.adb (Create_Mapping_File): New procedure
41769
41770         * prj-env.ads (Create_Mapping_File): New procedure.
41771
41772         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41773         (Mapping_File)
41774
41775         * usage.adb: Add entry for new switch -gnatem.
41776
41777         * Makefile.in: Add dependencies for fmap.o.
41778
41779 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41780
41781         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41782         is a package instantiation rewritten as a package body.
41783         (Install_Withed_Unit): Undo previous change, now redundant.
41784
41785 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41786
41787         * layout.adb:
41788         (Compute_Length): Move conversion to Unsigned to callers.
41789         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41790         Compute_Length and Determine_Range.
41791         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41792         Compute_Length and Determine_Range.
41793         Above changes fix problem with length computation for supernull arrays
41794         where Max (Len, 0) wasn't getting applied due to the Unsigned
41795         conversion used by Compute_Length.
41796
41797 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41798
41799         * rtsfind.ads:
41800         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41801          System.Secondary_Stack.
41802         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41803          in HI-E mode.
41804         Remove unused entity RE_Exception_Data.
41805
41806         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41807
41808         * rident.ads (No_Secondary_Stack): New restriction.
41809
41810 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41811
41812         * gnat_rm.texi: Fix minor typos. Found while reading the section
41813         regarding "Bit_Order Clauses" that was sent to a customer.
41814         Very interesting documentation!
41815
41816 2001-12-17  Robert Dewar  <dewar@gnat.com>
41817
41818         * sem_case.adb (Choice_Image): Avoid creating improper character
41819         literal names by using the routine Set_Character_Literal_Name. This
41820         fixes bombs in certain error message cases.
41821
41822 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41823
41824         * a-reatim.adb: Minor reformatting.
41825
41826 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41827
41828         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41829         case where the formal is an extension of another formal in the current
41830         unit or in a parent generic unit.
41831
41832 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41833
41834         * s-tposen.adb: Update comments.  Minor reformatting.
41835         Minor code clean up.
41836
41837         * s-tarest.adb: Update comments.  Minor code reorganization.
41838
41839 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41840
41841         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41842         when Java_VM.
41843
41844 2001-12-17  Robert Dewa  <dewar@gnat.com>
41845
41846         * exp_attr.adb: Minor reformatting
41847
41848 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41849
41850         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41851         derivations nested within a child unit: verify that the parent
41852         type is declared in an outer scope.
41853
41854 2001-12-17  Robert Dewar  <dewar@gnat.com>
41855
41856         * sem_ch12.adb: Minor reformatting
41857
41858 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41859
41860         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41861         warning if current unit is a predefined one, from which bodies may
41862         have been deleted.
41863
41864 2001-12-17  Robert Dewar  <dewar@gnat.com>
41865
41866         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41867         Fix header format. Add 2001 to copyright date.
41868
41869         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41870         which caused CE during compilation if checks were enabled.
41871
41872 2001-12-17  Vincent Celier  <celier@gnat.com>
41873
41874         * make.adb:
41875         (Switches_Of): New function
41876         (Test_If_Relative_Path): New procedure
41877         (Add_Switches): Use new function Switches_Of
41878         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41879         When using a project file, test if there are any relative
41880         search path. Fail if there are any.
41881         (Gnatmake): Only add switches for the primary directory when not using
41882         a project file. When using a project file, change directory to the
41883         object directory of the main project file. When using a project file,
41884         test if there are any relative search path. Fail if there are any.
41885         When using a project file, fail if specified executable is relative
41886         path with directory information, and prepend executable, if not
41887         specified as an absolute path, with the exec directory.  Make sure
41888         that only one -o switch is transmitted to the linker.
41889
41890         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41891
41892         * prj-nmsc.adb:
41893         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41894         when using a non standard naming scheme.
41895         (Check_Ada_Naming_Scheme): Make sure that error messages
41896         do not raise exceptions.
41897         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41898         (Language_Independent_Check): Check the exec directory.
41899
41900         * prj.adb (Project_Empty): Add new component Exec_Directory
41901
41902         * prj.ads:
41903         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41904         (Project_Data): Add component Exec_Directory
41905
41906         * snames.adb: Updated to match snames.ads revision 1.215
41907
41908         * snames.ads: Added Exec_Dir
41909
41910 2001-12-17  Robert Dewar  <dewar@gnat.com>
41911
41912         * make.adb: Minor reformatting
41913
41914         * prj-nmsc.adb: Minor reformatting
41915
41916         * snames.adb: Updated to match snames.ads
41917
41918         * snames.ads: Alphebetize entries for project file
41919
41920 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41921
41922         * trans.c (process_freeze_entity): Do nothing if the entity is a
41923         subprogram that was already elaborated.
41924
41925 2001-12-17  Richard Kenner  <kenner@gnat.com>
41926
41927         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41928         and Esize if object is referenced via pointer.
41929
41930 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41931
41932         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41933         is discrete before analyzing choices.
41934
41935 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41936
41937         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41938         containing the name of the Ada Main Program. This string is mainly
41939         intended for the debugger.
41940         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41941
41942 2001-12-17  Robert Dewar  <dewar@gnat.com>
41943
41944         * ali.adb: Set new Dummy_Entry field in dependency entry
41945
41946         * ali.ads: Add Dummy_Entry field to source dependency table
41947
41948         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41949
41950         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41951
41952         * lib-writ.ads: Document dummy D lines for missing files.
41953
41954         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41955
41956 2001-12-17  Robert Dewar  <dewar@gnat.com>
41957
41958         * ali.adb: Type reference does not reset current file.
41959
41960         * ali.adb: Recognize and scan renaming reference
41961
41962         * ali.ads: Add spec for storing renaming references.
41963
41964         * lib-xref.ads: Add documentation for handling of renaming references
41965
41966         * lib-xref.adb: Implement output of renaming reference.
41967
41968         * checks.adb:
41969         (Determine_Range): Document local variables
41970         (Determine_Range): Make sure Hbound is initialized. It looks as though
41971          there could be a real problem here with an uninitialized reference
41972          to Hbound, but no actual example of failure has been found.
41973
41974 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41975
41976         * g-socket.ads:
41977         Fix comment of Shutdown_Socket and Close_Socket. These functions
41978         should not fail silently because if they are called twice, this
41979         probably means that there is a race condition in the user program.
41980         Anyway, this behaviour is consistent with the rest of this unit.
41981         When an error occurs, an exception is raised with the error message
41982         as exception message.
41983
41984 2001-12-17  Robert Dewar  <dewar@gnat.com>
41985
41986         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41987         that it happens before modification of Sloc values for -gnatD.
41988
41989         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41990         so that it happens before modification of Sloc values for -gnatD.
41991
41992         * switch.adb: Minor reformatting
41993
41994 2001-12-15  Richard Henderson  <rth@redhat.com>
41995
41996         * sem_ch7.adb: Wrap comment.
41997
41998 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41999
42000         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42001         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42002         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42003         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42004         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42005         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42006         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42007         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42008         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42009         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42010         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42011         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42012         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42013         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42014         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42015         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42016         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42017         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42018         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42019         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42020         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42021         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42022         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42023         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42024         spelling errors.
42025
42026 2001-12-14  Vincent Celier  <celier@gnat.com>
42027
42028         * osint.adb(Create_Debug_File): When an object file is specified,
42029         put the .dg file in the same directory as the object file.
42030
42031 2001-12-14  Robert Dewar  <dewar@gnat.com>
42032
42033         * osint.adb: Minor reformatting
42034
42035         * lib-xref.adb (Output_Instantiation): New procedure to generate
42036         instantiation references.
42037
42038         * lib-xref.ads: Add documentation of handling of generic references.
42039
42040         * ali.adb (Read_Instantiation_Ref): New procedure to read
42041         instantiation references
42042
42043         * ali.ads: Add spec for storing instantiation references
42044
42045         * bindusg.adb: Minor reformatting
42046
42047         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42048
42049         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42050
42051         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42052
42053         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42054
42055         * csets.ads:
42056         Fix header format
42057         Add 2001 to copyright date
42058         Add entry for Latin-5 (Cyrillic ISO-8859-5)
42059
42060 2001-12-14  Matt Gingell  <gingell@gnat.com>
42061
42062         * adaint.c: mktemp is a macro on Lynx and can not be used as an
42063         expression.
42064
42065 2001-12-14  Richard Kenner  <kenner@gnat.com>
42066
42067         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42068         if operand is CONSTRUCTOR.
42069
42070 2001-12-14  Ed Schonberg  <schonber@gnat.com>
42071
42072         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42073         before emiting check on right-hand side, so that exception information
42074         is correct.
42075
42076 2001-12-14  Richard Kenner  <kenner@gnat.com>
42077
42078         * utils.c (create_var_decl): Throw away initializing expression
42079         if just annotating types and non-constant.
42080
42081 2001-12-14  Vincent Celier  <celier@gnat.com>
42082
42083         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42084         Default_Ada_...
42085
42086         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42087         Remove functions.
42088         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42089
42090         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42091         Remove functions.
42092         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42093
42094 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
42095
42096         * ChangeLog: Remove piece of diff output.
42097
42098 2001-12-14  Geert Bosch  <bosch@gnat.com>
42099
42100         * config-lang.in: Update copyright notice
42101
42102         * layout.adb: Remove commented out code.
42103
42104         * mdllfile.ads: Update copyright notice. Fix header format.
42105
42106         * sem_case.ads: Likewise.
42107
42108         * sem_ch3.adb: Minor reformatting.
42109
42110 2001-12-12  Geert Bosch  <bosch@gnat.com>
42111
42112         * freeze.ads: Update copyright date.
42113
42114         * g-comlin.ads: Minor reformatting.
42115
42116         * gnat-style.texi: Fix typo.
42117
42118 2001-12-12  Geert Bosch  <bosch@gnat.com>
42119
42120         *  einfo.h: Regenerate.
42121
42122 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42123
42124         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42125         on known node types, rather than untyped fields. Further cleanups.
42126
42127 2001-12-12  Robert Dewar  <dewar@gnat.com>
42128
42129         * sem_ch12.adb:
42130         (Save_Entity_Descendant): Minor comment update.
42131         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42132          of an N_Attribute_Reference node. As per note below, this does not
42133         eliminate need for Associated_Node in attribute ref nodes.
42134         (Associated_Node): Documentation explicitly mentions attribute
42135         reference nodes, since this field is used in such nodes.
42136
42137         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42138
42139 2001-12-12  Robert Dewar  <dewar@gnat.com>
42140
42141         * s-stalib.adb: Add more comments on with statements being needed
42142
42143         * par-ch12.adb: Minor reformatting
42144
42145         * prj-dect.ads: Fix copyright header
42146
42147         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42148         inputs fit in 32 bits, but the result still overflows.
42149
42150         * s-fatgen.ads: Minor comment improvement
42151
42152 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42153
42154         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42155         formal derived type, look for an inherited component from the full
42156         view of the parent, if any.
42157
42158 2001-12-12  Robert Dewar  <dewar@gnat.com>
42159
42160         * checks.ads (Apply_Alignment_Check): New procedure.
42161
42162         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42163         ensure that the alignment of objects with address clauses is
42164         appropriate, and raise PE if not.
42165
42166         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42167         Exp_Pakd.Known_Aligned_Enough
42168
42169         * mdllfile.ads: Minor reformatting
42170
42171         * mlib-fil.ads: Minor reformatting
42172
42173 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42174
42175         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42176         fix to any component reference if enclosing record has non-standard
42177         representation.
42178
42179 2001-12-12  Vincent Celier  <celier@gnat.com>
42180
42181         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42182         Iteration
42183
42184 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42185
42186         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42187         sem_attr.
42188
42189 2001-12-12  Robert Dewar  <dewar@gnat.com>
42190
42191         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42192
42193 2001-12-12  Emmanuel Briot  <briot@gnat.com>
42194
42195         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42196         and it adds dependencies to system.io.
42197
42198 2001-12-12  Pascal Obry  <obry@gnat.com>
42199
42200         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42201         variable name.
42202
42203 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42204
42205         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42206         that is the parent of other generics, the instance body replaces the
42207         instance node.  Retrieve the instance of the spec, which is the one
42208         that is visible in clients and within the body.
42209
42210 2001-12-11  Vincent Celier  <celier@gnat.com>
42211
42212         * gnatmain.adb: Initial version.
42213
42214         * gnatmain.ads: Initial version.
42215
42216         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42217
42218         * snames.adb: Updated to match snames.ads.
42219
42220         * snames.ads: Added Gnatstub.
42221
42222 2001-12-11  Vincent Celier  <celier@gnat.com>
42223
42224         * prj-attr.adb (Initialization_Data): Change name from
42225         Initialisation_Data.
42226
42227 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42228
42229         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42230         + and * applied to backslashed expressions like \r.
42231
42232 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
42233
42234         * g-os_lib.ads: String_List type added, Argument_List type is now
42235         subtype of String_List.
42236
42237 2001-12-11  Robert Dewar  <dewar@gnat.com>
42238
42239         * g-os_lib.ads: Change copyright to FSF
42240         Add comments for String_List type
42241
42242 2001-12-11  Vincent Celier  <celier@gnat.com>
42243
42244         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42245         string to the buffer).
42246
42247 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42248
42249         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42250         sem_attr.
42251
42252         * sem_attr.adb: Simplify previous fix for Address.
42253         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42254         to avoid anomalies where the bound of the type appears to raise
42255         constraint error.
42256
42257 2001-12-11  Robert Dewar  <dewar@gnat.com>
42258
42259         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42260         handled.
42261
42262 2001-12-11  Ed Schonber   <schonber@gnat.com>
42263
42264         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42265         renamed unit before checking for recursive instantiations.
42266
42267 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42268
42269         * prj.ads: Add comments for some of the fields.
42270
42271 2001-12-11  Robert Dewar  <dewar@gnat.com>
42272
42273         * lib-xref.adb (Output_Refs): Don't output type references outside
42274         the main unit if they are not otherwise referenced.
42275
42276 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42277
42278         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42279         code and diagnose additional illegal uses
42280
42281         * sem_util.adb (Is_Object_Reference): An indexed component is an
42282         object only if the prefix is.
42283
42284 2001-12-11  Vincent Celier  <celier@gnat.com>
42285
42286         * g-diopit.adb: Initial version.
42287
42288         * g-diopit.ads: Initial version.
42289
42290         * g-dirope.adb:
42291         (Expand_Path): Avoid use of Unbounded_String
42292         (Find, Wildcard_Iterator): Moved to child package Iteration
42293
42294         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42295
42296 2001-12-11  Robert Dewar  <dewar@gnat.com>
42297
42298         * sem_attr.adb: Minor reformatting
42299
42300 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42301
42302         * sem_ch3.adb: Clarify some ???.
42303
42304 2001-12-11  Robert Dewar  <dewar@gnat.com>
42305
42306         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42307         Exp_Pakd.Known_Aligned_Enough
42308
42309         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42310         version is moved to Exp_Ch13.
42311
42312 2001-12-11  Robert Dewar  <dewar@gnat.com>
42313
42314         * einfo.ads: Minor reformatting
42315
42316         * exp_ch5.adb: Add comment for previous.change
42317
42318         * ali.adb: New interface for extended typeref stuff.
42319
42320         * ali.ads: New interface for typeref stuff.
42321
42322         * checks.adb (Apply_Alignment_Check): New procedure.
42323
42324         * debug.adb: Add -gnatdM for modified ALI output
42325
42326         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42327
42328         * lib-xref.adb: Extend generation of <..> notation to cover
42329         subtype/object types. Note that this is a complete rewrite,
42330         getting rid of the very nasty quadratic algorithm previously
42331         used for derived type output.
42332
42333         * lib-xref.ads: Extend description of <..> notation to cover
42334         subtype/object types. Uses {..} for these other cases.
42335         Also use (..) for pointer types.
42336
42337         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42338
42339         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
42340         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42341
42342 2001-12-11  Vincent Celier  <celier@gnat.com>
42343
42344         * gnatcmd.adb:
42345         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42346         Changed /BIND_ONLY to /ACTIONS=BIND
42347         Changed /LINK_ONLY to /ACTIONS=LINK
42348
42349 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42350
42351         * sem_ch8.adb (Find_Selected_Component): improved search for a
42352         candidate package in case of error.
42353
42354         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42355         chain back on scope stack before reinstalling use clauses.
42356
42357         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42358         is enabled, do not kill the code for the condition, to preserve
42359         warning.
42360
42361 2001-12-11  Robert Dewar  <dewar@gnat.com>
42362
42363         * checks.adb (Insert_Valid_Check): Apply validity check to expression
42364         of conversion, not to result of conversion.
42365
42366 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42367
42368         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42369         before freezing parent. If the declarations are mutually recursive,
42370         an access to the current record type may be frozen before the
42371         derivation is complete.
42372
42373 2001-12-05  Vincent Celier  <celier@gnat.com>
42374
42375         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42376         -c /COMPILE_ONLY, -l /LINK_ONLY
42377
42378         * opt.ads:
42379         (Bind_Only): New Flag
42380         (Link_Only): New flag
42381
42382         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42383         and -l (Link_Only)
42384
42385         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42386
42387         * make.adb:
42388         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42389         (Gnatmake): Set the step flags. Only perform a step if the
42390         corresponding step flag is True.
42391         (Scan_Make_Arg): Reset the bind and link step flags when -u
42392         or -gnatc has been specified.
42393
42394 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42395
42396         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42397         get bounds from right operand.
42398
42399         * sem_eval.adb: Minor reformatting
42400
42401         * exp_util.adb (Make_Literal_Range): use bound of literal rather
42402         than Index'First, its lower bound may be different from 1.
42403
42404         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42405         and C48009J
42406
42407 2001-12-05  Vincent Celier  <celier@gnat.com>
42408
42409         * prj-nmsc.adb Minor reformatting
42410
42411         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42412         set and libraries are not supported.
42413
42414 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42415
42416         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42417         private view explicitly, so the back-end can treat as a global
42418         when appropriate.
42419
42420 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42421
42422         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42423          unit, always replace instance node with new body, for ASIS use.
42424
42425 2001-12-05  Vincent Celier  <celier@gnat.com>
42426
42427         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42428         libraries are not supported and both attributes Library_Name and
42429         Library_Dir are specified.
42430
42431         * prj-proc.adb (Expression): Set location of Result to location of
42432         first term.
42433
42434         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42435         (prj-nmsc is now importing MLib.Tgt)
42436
42437         * prj-proc.adb: Put the change indicated above that was forgotten.
42438
42439 2001-12-05  Robert Dewar  <dewar@gnat.com>
42440
42441         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42442
42443 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42444
42445         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42446         constraint, introduce explicit subtype declaration and derive from it.
42447
42448         * sem_ch3.adb: Minor reformatting
42449
42450 2001-12-05  Robert Dewar  <dewar@gnat.com>
42451
42452         * checks.adb (Determine_Range): Increase cache size for checks.
42453         Minor reformatting
42454
42455         * exp_ch6.adb: Minor reformatting
42456         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42457         a parameter whose root type is System.Address, since treating such
42458         subprograms as pure in the code generator is almost surely a mistake
42459         that will lead to unexpected results.
42460
42461         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42462         change handling of conversions.
42463
42464         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42465
42466 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42467
42468         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42469         aggregate with static wrong size, attach generated Raise node to
42470         declaration.
42471
42472 2001-12-05  Robert Dewar  <dewar@gnat.com>
42473
42474         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42475         Fixes compilation abandoned bomb in B24009B.
42476
42477 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42478
42479         * sem_ch12.adb:
42480         Document use of Associated_Node on Selected_Components.
42481         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42482         to clarify use of untyped descendant fields.
42483
42484 2001-12-05  Robert Dewar  <dewar@gnat.com>
42485
42486         * prj-dect.ads: Add ??? comment
42487         Add 2001 to copyright notice (was not done in after all)
42488
42489         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42490
42491         * prj.ads: Minor reformatting throughout, and add some ??? comments
42492
42493         * snames.ads: Minor reformatting
42494
42495 2001-12-05  Geert Bosch  <bosch@gnat.com>
42496
42497         * snames.adb: Autoupdate
42498
42499 2001-12-05  Vincent Celier  <celier@gnat.com>
42500
42501         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42502
42503         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42504
42505         * prj-env.adb: Minor comment changes (modifying -> extends).
42506
42507         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42508
42509         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42510         Tok_Extends.
42511
42512         * prj.adb (Initialize): Change Modifying to Extends.
42513
42514         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42515
42516         * prj.ads: Minor comment change (Modifying -> extending).
42517
42518         * snames.ads: Change modifying to extends.
42519
42520 2001-12-05  Robert Dewar  <dewar@gnat.com>
42521
42522         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42523         do this after all.
42524
42525         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42526         do this after all.  Add 2001 to copyright notice
42527
42528 2001-12-04  Geert Bosch  <bosch@gnat.com>
42529
42530         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42531
42532 2001-12-04  Robert Dewar  <dewar@gnat.com>
42533
42534         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42535         location if we already have errors. Stops some cases of cascaded
42536         errors.
42537
42538         * errout.adb: Improve comment.
42539
42540 2001-12-04  Robert Dewar  <dewar@gnat.com>
42541
42542         * sem_ch12.adb:
42543         (Analyze_Formal_Type_Definition): Defend against Error.
42544         (Analyze_Formal_Subprogram): Defend against Error.
42545
42546         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42547         remove following semicolon if present. Removes cascaded error.
42548
42549 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42550
42551         * bindgen.adb:
42552         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42553          exceptions equals 0.
42554         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42555         Fixes PIWG E tests (which have to be run with -gnatL).
42556
42557 2001-12-04  Robert Dewar  <dewar@gnat.com>
42558
42559         * einfo.ads: Minor reformatting
42560
42561 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42562
42563         * einfo.ads: Block_Node points to the identifier of the block, not to
42564         the block node itself, to preserve the link when the block is
42565         rewritten, e.g. within an if-statement with a static condition.
42566
42567         * inline.adb (Cleanup_Scopes): recover block statement from block
42568         entity using new meaning of Block_Node.
42569
42570         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42571         identifier of block node, rather than to node itself.
42572
42573 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42574
42575         * layout.adb:
42576         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42577         (Discrimify): Go back to setting the Etypes of the selected component
42578         because the Vname component does not exist at this point and will
42579         fail name resolution. Also set Analyzed.
42580         Remove with and use of Sem_Res.
42581
42582 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42583
42584         * Makefile.in: (HIE_SOURCES): add s-fat*.
42585
42586 2001-12-04  Robert Dewar  <dewar@gnat.com>
42587
42588         * sem_attr.adb:
42589         (Compile_Time_Known_Attribute): New procedure.
42590         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42591          proper range check.
42592
42593 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42594
42595         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42596         processing discriminants to diagnose illegal default values.
42597
42598 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42599
42600         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42601         access discriminant within a type extension that constrains its
42602         parent discriminants.
42603
42604 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42605
42606         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42607         is malformed, use instance of Any_Id to allow analysis to proceed.
42608
42609         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42610         type definition is illegal.
42611         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42612         misplaced.
42613
42614 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42615
42616         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42617         constants.
42618
42619 2001-12-04  Robert Dewar  <dewar@gnat.com>
42620
42621         * errout.adb: Minor reformatting
42622
42623 2001-12-04  Robert Dewar  <dewar@gnat.com>
42624
42625         * exp_util.adb: Minor reformatting from last change
42626
42627         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42628         which is a rewriting of an expression, traverse the original
42629         expression to remove warnings that may have been posted on it.
42630
42631 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42632
42633         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42634         record that has other packed components.
42635
42636 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42637
42638         * adaint.c: Minor cleanups.
42639
42640 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42641
42642         * adaint.c: Do not use utime.h on vxworks.
42643
42644 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42645
42646         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42647         more confusion than it solves.
42648
42649 2001-12-04  Geert bosch  <bosch@gnat.com>
42650
42651         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42652
42653 2001-12-04  Geert Bosch  <bosch@gnat.com>
42654
42655         * Makefile.in (update-sources): New target.
42656         For use by gcc_release script.
42657
42658 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42659
42660         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42661         a configuration pragma, it is now legal wherever a pragma can appear.
42662
42663 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42664
42665         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42666         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42667         is now @CROSS@ -DIN_GCC; update comment.
42668
42669 2001-12-04  Robert Dewar  <dewar@gnat.com>
42670
42671         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42672         Fix problem that stopped ceinfo from working
42673
42674         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42675
42676         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42677
42678 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42679
42680         * gnatchop.adb:
42681         (File_Time_Stamp): New procedure.
42682         (Preserve_Mode): New boolean.
42683         (Write_Unit): Pass time stamp.
42684         Implement -p switch (preserve time stamps).
42685
42686         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42687
42688         * gnatchop.adb: Do usage info for -p switch
42689
42690         * adaint.h (__gnat_set_file_time_name): New function
42691
42692         * adaint.c (__gnat_set_file_time_name): Implement
42693
42694         * adaint.h: Fix typo
42695
42696 2001-12-03  Robert Dewar  <dewar@gnat.com>
42697
42698         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42699         have Associated_Node.
42700
42701 2001-12-03  Robert Dewar  <dewar@gnat.com>
42702
42703         * prj-proc.adb: Minor reformatting
42704
42705         * make.adb: Minor reformatting
42706
42707 2001-12-03  Geert Bosch  <bosch@gnat.com>
42708
42709         * make.adb: Minor reformatting.
42710
42711 2001-12-03 Robert Dewar  <dewar@gnat.com>
42712
42713         * sem_ch12.adb: Minor reformatting
42714
42715 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42716
42717         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42718         push Standard on the stack before analyzing the instance body,
42719         in order to have a clean visibility environment.
42720
42721         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42722
42723 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42724
42725         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42726         instantiation of a body that contains an inlined body.
42727
42728 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42729
42730         * sem_ch12.adb:
42731         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42732         to prevent freezing within formal packages.
42733         (Freeze_Subprogram_Body): If body comes from another instance that
42734         appeared before its own body, place freeze node at end of current
42735         declarative part, to prevent a back-end crash.
42736         (Inline_Instance_Body): Handle properly a package instance within
42737         a subprogram instance that is a child unit.
42738
42739 2001-12-01  Graham Stott  <grahams@redhat.com>
42740
42741         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42742         and add optabs.h dependency.
42743
42744         * misc.c: Include optabs.h
42745         (gnat_tree_code_type): Make static and const.
42746         (gnat_tree_code_length): Likewise.
42747         (gnat_tree_code_name): Likewise.
42748         (update_setjmp_buf): Obtain operands mode from insn_data.
42749
42750 2001-11-29  Richard Henderson  <rth@redhat.com>
42751
42752         * init.c: Remove obsolete dwarf2 frame.h section.
42753
42754 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42755
42756         * Make-lang.in (ada.generated-manpages): New dummy target.
42757
42758 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42759
42760         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42761         into Command, an array conversion is illegal here. Uncovered by
42762         ACATS B460005.
42763
42764 2001-11-28  Geert Bosch  <bosch@gnat.com>
42765
42766         * init.c: Minor whitespace changes.
42767
42768 2001-11-28  Doug Rupp  <rupp@gnat.com>
42769
42770         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42771         signal stack.
42772
42773 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42774
42775         * misc.c (gnat_expand_constant): Move declaration above
42776         definition of lang_hooks.
42777         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42778         (gnat_init): lang_expand_constant no longer exists.
42779
42780         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42781         always have vprintf.
42782         (gnat_init): Always call set_internal_error_function.
42783
42784 2001-11-27  Andreas Jaeger  <aj@suse.de>
42785
42786         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42787
42788 2001-11-27  Laurent Guerby  <guerby@acm.org>
42789
42790         * Makefile.in: Regenerate Ada dependencies.
42791
42792 2001-11-26  Richard Henderson  <rth@redhat.com>
42793
42794         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42795         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42796         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42797
42798 2001-11-25  Laurent Guerby  <guerby@acm.org>
42799
42800         * sysdep.c (rts_get_*): Fix style.
42801
42802 2001-11-19  Laurent Guerby  <guerby@acm.org>
42803
42804         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42805         since it is of no apparent use and cause warnings.
42806
42807 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42808
42809         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42810         static too.
42811         (gnat_init): Don't return NULL.
42812         (finish_parse): Remove.
42813
42814 2001-11-17  Laurent Guerby  <guerby@acm.org>
42815
42816         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42817         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42818         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42819         * lang-spec.h: Add missing struct field to silence warnings.
42820         * sysdep.c (rts_get_*): Provide K&R prototype.
42821         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42822         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42823         * tracebak.c (__gnat_backtrace): Remove unused variable.
42824         * utils.c (end_subprog_body): Move to K&R style.
42825
42826 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42827
42828         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42829
42830 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42831
42832         * misc.c (gnat_init): Change prototype.  Include the
42833         functionality of the old init_parse and init_decl_processing.
42834         (gnat_init_decl_processing): New prototype.
42835         (init_parse): Remove.
42836         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42837
42838 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42839
42840         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42841         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42842         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42843         set_yydebug): Remove.
42844
42845 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42846
42847         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42848         (struct lang_hooks): Constify.
42849         (language_string, lang_identify): Remove.
42850         * utils.c (init_decl_processing): Update.
42851
42852 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42853
42854         * misc.c: Include langhooks-def.h.
42855         * Makefile.in: Update.
42856
42857 2001-10-30  Robert Dewar  <dewar@gnat.com>
42858
42859         * style.adb:
42860         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42861         in the upper half of ASCII.
42862         (Check_Identifier): Minor reformatting
42863
42864 2001-10-30  Geert Bosch  <bosch@gnat.com>
42865
42866         * (Associated_Node, Set_Associated_Node): Do not check for
42867         Freeze_Entity.
42868
42869 2001-10-30  Robert Dewar  <dewar@gnat.com>
42870
42871         * a-reatim.ads: Minor reformatting
42872
42873 2001-10-30  Robert Dewar  <dewar@gnat.com>
42874
42875         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42876         undocumented declarations.
42877
42878 2001-10-30  Pascal Obry  <obry@gnat.com>
42879
42880         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42881         to the binder and linker.
42882         Minor style fix.
42883
42884         * mdll.ads: Fix layout.  Update copyright notice.
42885
42886         * mdll.adb: Fix layout.  Update copyright notice.
42887
42888 2001-10-30  Robert Dewar  <dewar@gnat.com>
42889
42890         * usage.adb: Minor fix to output for -gnaty.
42891
42892 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42893
42894         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42895         to accommodate all its possible values.
42896
42897         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42898         and of small absolute values of T.
42899
42900 2001-10-30  Richard Kenner  <kenner@gnat.com>
42901
42902         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42903         set_mem_attributes since not needed and wrong if RESULT if a REG;
42904         fixes ACATS failures.
42905
42906 2001-10-30  Geert Bosch  <bosch@gnat.com>
42907
42908         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42909         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42910
42911 2001-10-30  Robert Dewar  <dewar@gnat.com>
42912
42913         * bindusg.adb: Undocument -f switch.
42914
42915         * gnatcmd.adb: Remove /FULL_ELABORATION.
42916
42917         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42918         obsolescent.
42919
42920         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42921
42922         * gnatbind.adb: Minor update of warning msg.
42923
42924 2001-10-30  Vincent Celier  <celier@gnat.com>
42925
42926         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42927         for project file switches (-P (/PROJECT_FILE=),
42928          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42929         or MEDIUM or HIGH)
42930
42931 2001-10-30  Geert Bosch  <bosch@gnat.com>
42932
42933         * decl.c: Minor whitespace fixes.
42934
42935 2001-10-30  Richard Kenner  <kenner@gnat.com>
42936
42937         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42938
42939 2001-10-30  Geert Bosch  <bosch@gnat.com>
42940
42941         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42942         Found due to GCC 3.0 warning of using uninitialized value.
42943
42944         * layout.adb:
42945         (Get_Max_Size): Use variant record for tracking value/expression.
42946          Makes logic clearer and prevents warnings for uninitialized variables.
42947         (Layout_Array_Type): Use variant record for tracking value/expression.
42948          Makes logic clearer and prevents warnings for uninitialized variables.
42949
42950 2001-10-30  Robert Dewar  <dewar@gnat.com>
42951
42952         * lib.adb: Minor reformatting
42953
42954         * s-taprop.ads: Minor reformatting
42955
42956 2001-10-29  Laurent Guerby  <guerby@acm.org>
42957
42958         * init.c:
42959         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42960         const.
42961         (_gnat_error_handler): Make MSG const.
42962
42963 2001-10-29  Richard Kenner  <kenner@gnat.com>
42964
42965         * sysdep.c: Fix localtime_r problem on LynxOS.
42966         Also remove #elif to avoid warnings.
42967
42968         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42969         used by this.
42970
42971         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42972
42973 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42974
42975         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42976         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42977         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42978         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42979         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42980         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42981         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42982         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42983         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42984         types.ads, urealp.adb: Fix spelling errors.
42985
42986 2001-10-27  Laurent Guerby  <guerby@acm.org>
42987
42988         * trans.c (gigi): Fix non determinism leading to bootstrap
42989         comparison failures for debugging information.
42990
42991 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42992
42993         * gnat_rm.texi: Use @./@: where appropriate.
42994
42995 2001-10-26  Robert Dewar  <dewar@gnat.com>
42996
42997         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42998
42999 2001-10-26  Richard Kenner  <kenner@gnat.com>
43000
43001         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43002
43003 2001-10-26  Richard Kenner  <kenner@gnat.com>
43004
43005         * decl.c (validate_size): Modify message for bad size to avoid
43006         implication that compiler is modifying the size.
43007
43008 2001-10-26  Robert Dewar  <dewar@gnat.com>
43009
43010         * prj-util.adb: Minor reformatting. Fix bad header format.
43011
43012 2001-10-26  Robert Dewar  <dewar@gnat.com>
43013
43014         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
43015
43016         * sinfo.ads: Clarify use of Associated_Node (documentation only).
43017
43018         * sem_ch12.adb: Change Node4 to Associated_Node. Change
43019         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
43020         much more narrowly in places where needed. These are cleanups.
43021
43022 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
43023
43024         * 5zosinte.ads (null_pthread): new constant.
43025
43026         * 5ztaprop.adb:
43027         (Initialize_TCB): Initialize thread ID to null, to be able to verify
43028          later that this field has been set.
43029         (Finalize_TCB): ditto.
43030         (Suspend_Task): Verify that the thread ID is not null before using it.
43031         (Resume_Task): ditto.
43032
43033         * s-tasdeb.adb:
43034         (Resume_All_Tasks): Lock the tasks list before using it.
43035         (Suspend_All_Tasks): ditto.
43036
43037 2001-10-26  Richard Kenner  <kenner@gnat.com>
43038
43039         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43040         Make constant variant of designated type for Is_Access_Constant.
43041         Call update_pointer_to with main variant.
43042
43043         * trans.c (process_freeze_entity, process_type):
43044         Call update_pointer_to on main variant.
43045
43046         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43047         If main variant, update all other variants.
43048
43049         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43050         TREE_STATIC.
43051
43052 2001-10-26  Robert Dewar  <dewar@gnat.com>
43053
43054         * prj-util.adb: Minor reformatting
43055
43056 2001-10-26  Robert Dewar  <dewar@gnat.com>
43057
43058         * prj-util.adb: Minor reformatting
43059
43060 2001-10-26  Robert Dewar  <dewar@gnat.com>
43061
43062         * prj-attr.adb: Minor reformatting throughout
43063
43064 2001-10-26  Robert Dewar  <dewar@gnat.com>
43065
43066         * prj-attr.ads: Minor reformatting
43067         Add ??? comment (this whole spec has almost no comments)
43068
43069 2001-10-26  Vincent Celier  <celier@gnat.com>
43070
43071         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43072         ("//") that precede the drive letter on Interix.
43073
43074 2001-10-26  Geert Bosch  <bosch@gnat.com>
43075
43076         * gnat_rm.texi: Add GNAT Reference Manual.
43077
43078 2001-10-25  Robert Dewar  <dewar@gnat.com>
43079
43080         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43081         is Error. Similar change for other renaming cases.
43082
43083 2001-10-25  Robert Dewar  <dewar@gnat.com>
43084
43085         * s-atacco.ads: Add pragma Inline_Always for functions.
43086         Fix header format. Add copyright 2001
43087
43088 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43089
43090         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43091         return Error rather than Empty so that analysis can proceed.
43092
43093 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43094
43095         * sem_util.adb (Enter_Name): better handling of cascaded error
43096         messages when a unit appears in its own context.
43097
43098 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43099
43100         * sem_util.adb (Defining_Entity): in case of error, attach created
43101         entity to specification, so that semantic analysis can proceed.
43102
43103 2001-10-25  Robert Dewar  <dewar@gnat.com>
43104
43105         * sem_util.adb
43106         (Defining_Entity): Deal with Error.
43107         (Process_End_Label): Deal with bad end label for.
43108
43109 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43110
43111         * sem_elab.adb (Check_A_Call): refine message when call is in an
43112         instance but callee is not declared in the generic unit.
43113
43114 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43115
43116         * sem_elab.adb (Check_A_Call): check for renaming before finding the
43117         enclosing unit, which may already be different from the calling unit.
43118
43119 2001-10-25  Geert Bosch  <bosch@gnat.com>
43120
43121         * 4gintnam.ads: fix header format.
43122
43123 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43124
43125         * sem_res.adb (Resolve_Call): if the call is actually an indexing
43126         operation on the result of a parameterless call, perform elaboration
43127         check after the node has been properly rewritten.
43128
43129         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43130         inlined within the generic tree, the defining identifier is not a
43131         compilation_unit.
43132
43133 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43134
43135         * sem_res.adb (Resolve): special-case resolution of Null in an
43136          instance or an inlined body to avoid view conflicts.
43137
43138         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43139          compatibility by retrieving the access type of the generic copy.
43140
43141 2001-10-25  Robert Dewar  <dewar@gnat.com>
43142
43143         * sem_ch3.adb:
43144         (Analyze_Number_Declaration): Handle error expression.
43145         (Signed_Integer_Type_Declaration): Handle error bound.
43146         (Analyze_Subtype_Indication): Handle error range.
43147
43148         * sem_util.adb (Get_Index_Bounds): Check for Error.
43149
43150 2001-10-25  Robert Dewar  <dewar@gnat.com>
43151
43152         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43153         in no run time mode.
43154
43155 2001-10-25  Pascal Obry  <obry@gnat.com>
43156
43157         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43158         mode case for ALLOC case.
43159
43160         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43161         all platforms. Improvement of last change.
43162
43163 2001-10-25  Robert Dewar  <dewar@gnat.com>
43164
43165         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43166
43167 2001-10-25  Geert Bosch  <bosch@gnat.com>
43168
43169         * osint.adb (Is_Relative): Remove duplicate.
43170
43171 2001-10-25  Pascal Obry  <obry@gnat.com>
43172
43173         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43174         pathnames in UNIX and DOS style with drive letter.
43175         (Is_Relative): new routine.
43176
43177         * osint.adb: Minor reformatting
43178
43179         * osint.adb (Is_Relative): implementation using
43180         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43181
43182 2001-10-25  Pascal Obry  <obry@gnat.com>
43183
43184         * g-dirope.adb (Basename): correctly compute offset between the
43185         original Path and the translated one.
43186
43187         * g-dirope.adb: (Base_Name): add some comments.
43188
43189 2001-10-25  Robert Dewar  <dewar@gnat.com>
43190
43191         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43192         in HIE mode, avoids compilation abandoned message
43193
43194         * exp_imgv.adb: Correct typo in previous change
43195
43196         * exp_imgv.adb: Correct typo in previous change (not my day!)
43197
43198 2001-10-25  Robert Dewar  <dewar@gnat.com>
43199
43200         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43201
43202 2001-10-25  Pascal Obry  <obry@gnat.com>
43203
43204         * g-awk.ads: Move all pragma inlines next to the routine
43205          declarations. This is more uniform with other GNAT spec.
43206
43207 2001-10-22  Geert Bosch  <bosch@gnat.com>
43208
43209         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43210
43211 2001-10-19  Geert Bosch  <bosch@gnat.com>
43212
43213         * Makefile.in (tools, gnattools): Remove gnatmem.
43214
43215 2001-10-17  Richard Henderson  <rth@redhat.com>
43216
43217         * Makefile.in (misc.o): Depend on langhooks.h.
43218         * misc.c: Include it.
43219         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43220         (LANG_HOOKS_DECODE_OPTION): New.
43221         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43222
43223 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
43224
43225         * trans.c (tree_transform): Adjust to recent change in
43226         expand_asm_operands to implement named asm operands.
43227
43228 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43229
43230         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43231         renaming of discriminant for mutable record type.
43232
43233 2001-10-11  Robert Dewar  <dewar@gnat.com>
43234
43235         * validsw.adb: Properly save -gnatVn status.
43236
43237 2001-10-11  Robert Dewar  <dewar@gnat.com>
43238
43239         * usage.adb: Add lines for V switch.
43240
43241         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43242         (/VALIDITY_CHECKING).
43243
43244 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43245
43246         * sem_type.adb (Add_One_Interp): an operator for a type declared in
43247         an extension of System is known to be visible.
43248
43249 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43250
43251         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43252         properly. Fixes regression on ACATS C34005G.
43253
43254 2001-10-11  Robert Dewar  <dewar@gnat.com>
43255
43256         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43257         loop in generic instance, since this is likely not very useful.
43258
43259 2001-10-11  Robert Dewar  <dewar@gnat.com>
43260
43261         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43262         the error message for high integrity mode.
43263
43264         * rtsfind.adb (RTE): Give message if we try to find an entity that
43265         is not available in high integrity mode.
43266
43267         * rtsfind.ads:
43268         (OK_To_Use_In_HIE_Mode): New array.
43269         (RTE): May return Empty in high integrity mode.
43270
43271         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43272         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43273
43274         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43275         unit if not inlined always and in no runtime mode. Fixes problem
43276         caused by new Rtsfind changes.
43277
43278         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43279         body is deleted.
43280
43281         * rtsfind.adb (RTE): Make sure we do not try to load unit after
43282         giving message for entity not available in high integrity mode.
43283
43284 2001-10-11  Pascal Obry  <obry@gnat.com>
43285
43286         * impunit.adb: Add GNAT.CRC32.
43287
43288 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43289
43290         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43291         properly the case where one universal operand in a non-static
43292         exponentiation of a real literal.
43293
43294 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43295
43296         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43297         clause, return the gobal finalization list, for lack of anthing else.
43298
43299 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43300
43301         * exp_ch7.adb (Make_Transient_Block): if statement is within
43302         exception handler, always use new transient scope to place Clean
43303         procedure.
43304
43305 2001-10-11  Pascal Obry  <obry@gnat.com>
43306
43307         * Makefile.in:
43308         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43309         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43310         (GNATLS_RTL_OBJS): add g-crc32.o
43311         (GNATMAKE_RTL_OBJS): add g-crc32.o
43312
43313         * ali-util.adb:
43314         (CRC_Match): new function.
43315         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43316         instead of the previous simple checksum algorithm.
43317         (Time_Stamp_Mismatch): use CRC_Match for comparison.
43318         (Set_Source_Table): idem.
43319
43320         * ali-util.ads:
43321         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43322         instead of simple checksum.
43323         (CRC_Match): new function.
43324         (CRC_Error): new constant.
43325
43326         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43327         a CRC now and not a simple checksum. A CRC uses lower-case hex
43328         letters, fixes ambiguity in parsing.
43329
43330         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43331         is what this variable will store.
43332
43333         * bcheck.adb: Change reference to chechsum in comments by CRC.
43334         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43335         rename All_Checksum_Match to All_CRC_Match. Change due to API
43336         renaming since now GNAT does not use a simple checksum but a
43337         CRC using GNAT.CRC32.
43338
43339         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43340         now and not anymore a simple checksum.
43341
43342         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43343         places.
43344
43345         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43346
43347         * scans.adb:
43348         (Restore_Scan_State): rename Checksum to CRC.
43349         (Save_Scan_State): idem.
43350
43351         * scans.ads:
43352         With GNAT.CRC32.
43353         (Checksum): rename to CRC.
43354         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43355
43356         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43357         GNAT.CRC32).  Update copyright notice.
43358
43359         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43360         GNAT.CRC32).  Update copyright notice.
43361
43362         * scn.adb:
43363         (Accumulate_Checksum): removed.
43364         (Update): new procedure. Add a wide-character into the CRC.
43365
43366         * sinput-l.adb:
43367         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43368         (Load_File): fix initialization of S (change Source_Checksum to
43369         Source_CRC)
43370
43371         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43372         Source_CRC in S initialization.
43373
43374         * sinput.adb (Source_Checksum): renamed to Source_CRC.
43375
43376         * sinput.ads (Source_Checksum): renamed to Source_CRC.
43377         Update comments for the CRC.
43378
43379         * types.adb (Hex): Use lowercase for the letter part.
43380
43381         * types.ads (Get_Hex_String): Returns the hexadecimal representation
43382         for a word. This is currently used only for CRC. In previous version,
43383         the checksum was using a representation with all letter being
43384         upper-case. With the new implementation (using CRC) we do not remove
43385         the 32th bit of the CRC, so we can have an upper-case starting letter
43386         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43387         It is ambigous since the CRC was optional and could be followed by
43388         options like EB, EE. So now this routines uses lower-case letter for
43389         the hexadecimal representation. Strange enough only lower case letters
43390         where checked in Scan_ALI (even if this was not a possible case).
43391
43392         * gnatvsn.ads (Library_Version): changed to 3.15a.
43393
43394         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43395         for the compiler.
43396
43397         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43398         for the compiler.
43399
43400         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43401         Add 2001 to copyright notice
43402         (Accumulate_Checksum): Modify to use System.CRC32.
43403
43404         * ali-util.ads: Redo changes of previous revision to continue to use
43405         the word Checksum. Add 2001 to copyright notice.
43406
43407         * ali.adb: Undo some of previous changes, not needed.
43408         Keep the change for lower case letters in the checksum.
43409
43410         * ali.ads: Undo previous change not needed.
43411
43412         * bcheck.adb: Undo most of previous change, not needed.
43413         But do use Checksums_Match for checksum comparison.
43414
43415         * gnatls.adb: Undo most of previous change, not needed.
43416         But do use Checksums_Match for comparing checksums.
43417
43418         * lib-load.adb: Undo previous change, not needed.
43419
43420         * lib-writ.adb: Undo previous change, not needed.
43421
43422         * lib-writ.ads: Document that checksums use lower case,
43423         not upper case letters.
43424
43425         * scans.adb: Undo previous change, not needed
43426
43427         * scans.ads: Undo previous change, not needed.
43428
43429         * scn-nlit.adb: Undo previous changes, not needed.
43430
43431         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43432
43433         * scn.adb:
43434         (Accumulate_Checksum): Use System.CRC32.
43435         (Initialize_Checksum): New procedure.
43436         Remove other changes of previous revision.
43437
43438         * sinput-p.adb: Undo previous change, not needed.
43439
43440         * sinput.adb: Undo previous change, not needed.
43441
43442         * sinput-l.adb: Undo previous change, not needed.
43443
43444         * sinput.ads: Undo previous change, not needed.  Keep only comment
43445         on new checksum algorithm
43446
43447         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43448         Also remove a-tags and a-stream from GNAT sources.
43449
43450         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43451
43452         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43453
43454 2001-10-11  Geert Bosch  <bosch@gnat.com>
43455
43456         * einfo.h: Regenerate.
43457
43458         * nmake.ads: Regenerate.
43459
43460         * nmake.adb: Regenerate.
43461
43462         * sinfo.h: Regenerate.
43463
43464         * treeprs.adb: Regenerate.
43465
43466 2001-10-10  Geert Bosch  <bosch@gnat.com>
43467
43468         * gnat-style.texi: New file describing coding guidelines for Ada.
43469
43470 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43471
43472         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43473         is Flag174.
43474
43475 2001-10-10  Geert Bosch  <bosch@gnat.com>
43476
43477         * snames.ads: Add new names for project facility.
43478
43479         * snames.adb: Update to reflect snames.ads changes.
43480
43481         * snames.h: Update to reflect snames.ads changes.
43482
43483 2001-10-10  Vincent Celier  <celier@gnat.com>
43484
43485         * make.adb:
43486         (Add_Switches): reflect the changes for the switches attributes
43487         Default_Switches indexed by the programming language,
43488         Switches indexed by the file name.
43489         (Collect_Arguments_And_Compile): Idem.
43490         Reflect the attribute name changes.
43491
43492         * prj-attr.adb:
43493         (Initialisation_Data): Change the names of some packages and
43494         attributes.
43495         (Initialize): process case insensitive associative arrays.
43496
43497         * prj-attr.ads:
43498         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43499
43500         * prj-dect.adb:
43501         (Parse_Attribute_Declaration): For case insensitive associative
43502          arrays, set the index string to lower case.
43503
43504         * prj-env.adb:
43505         Reflect the changes of the project attributes.
43506
43507         * prj-nmsc.adb:
43508         Replace Check_Naming_Scheme by Ada_Check and
43509         Language_Independent_Check.
43510
43511         * prj-nmsc.ads:
43512         Replaced Check_Naming_Scheme by 2 procedures:
43513         Ada_Check and Language_Independent_Check.
43514
43515         * prj-proc.adb:
43516         (Process_Declarative_Items): For case-insensitive associative
43517         arrays, set the index string to lower case.
43518         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43519         Prj.Nmsc.Check_Naming_Scheme.
43520
43521         * prj-tree.adb:
43522         (Case_Insensitive): New function
43523         (Set_Case_Insensitive): New procedure
43524
43525         * prj-tree.ads:
43526         (Case_Insensitive): New function
43527         (Set_Case_Insensitive): New procedure
43528         (Project_Node_Record): New flag Case_Insensitive.
43529
43530         * prj-util.adb:
43531         (Value_Of): new function to get the string value of a single
43532         string variable or attribute.
43533
43534         * prj-util.ads:
43535         (Value_Of): new function to get the string value of a single
43536         string variable or attribute.
43537
43538         * prj.adb:
43539         (Ada_Default_Spec_Suffix): New function
43540         (Ada_Default_Impl_Suffix): New function
43541         Change definitions of several constants to reflect
43542         new components of record types.
43543
43544         * prj.ads:
43545         (Naming_Data): Change several components to reflect new
43546         elements of naming schemes.
43547         (Project_Data): New flags Sources_Present and
43548         Language_Independent_Checked.
43549         (Ada_Default_Spec_Suffix): New function.
43550         (Ada_Default_Impl_Suffix): New function.
43551
43552         * snames.ads:
43553         Modification of predefined names for project manager: added
43554         Implementation, Specification_Exceptions, Implementation_Exceptions,
43555         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43556         Default_Switches, _Languages, Builder, Cross_Reference,
43557         Finder. Removed Body_Part, Specification_Append, Body_Append,
43558         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43559         Gnatlink.
43560
43561         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43562         Add comments.
43563
43564         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43565         not that it is Nil_Variable_Value.
43566
43567         * prj.ads: Add ??? for uncommented declarations
43568
43569 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43570
43571         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43572         constant, do not indicate possible modification, so that gigi can
43573         treat it as a bona fide constant.
43574
43575 2001-10-10  Robert Dewar  <dewar@gnat.com>
43576
43577         * sem_prag.adb: Add processing for pragma External.
43578
43579         * snames.ads: Add entry for pragma External.
43580
43581         * par-prag.adb: Add pragma External.
43582
43583         * snames.adb: Updated to match snames.ads.
43584
43585 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43586
43587         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43588         a dynamic task if the allocator appears in an indexed assignment
43589         or selected component assignment.
43590
43591         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43592         For a dynamic task in an assignment statement, use target of
43593         assignment to generate meaningful name.
43594
43595 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43596
43597         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43598         a generic package.
43599
43600         * einfo.ads: Body_Entity is also defined for generic package.
43601         Documentation change only
43602
43603         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43604         others_choice for a discriminated component initialization,
43605         convert discriminant references into the corresponding discriminals.
43606
43607         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43608         only if original type is private and expression has to be wrapped
43609         in a conversion.
43610
43611         * checks.adb:
43612         (Apply_Constraint_Check): Do not perform length check
43613         if expression is an aggregate with only an others_choice.
43614         (Length_N_Cond): two references to the same in_parameter
43615         (typically the discriminal in an init_proc) denote the same value.
43616         Two useful optimization uncovered by bugfixes above.
43617
43618 2001-10-10  Robert Dewar  <dewar@gnat.com>
43619
43620         * xeinfo.adb: Change int to char in translation of enumeration types.
43621         This fixes a problem in the C representation of component alignment.
43622         Add 2001 to copyright notice
43623
43624 2001-10-10  Richard Kenner  <kenner@gnat.com>
43625
43626         * decl.c: (validate_size): Do check size of object of integral type
43627         if it is a packed array type.
43628
43629 2001-10-10  Richard Kenner  <kenner@gnat.com>
43630
43631         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43632         VAR_DECL for constant if not Is_Public but -O0.
43633
43634 2001-10-10  Richard Kenner  <kenner@gnat.com>
43635
43636         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43637
43638 2001-10-10  Geert Bosch  <bosch@gnat.com>
43639
43640         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43641         use '/' as switch character, allowing for absolute file names.
43642
43643 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43644
43645         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43646         FSF address.
43647
43648 2001-10-08  Geert Bosch  <bosch@gnat.com>
43649
43650         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43651         Automatically build utilities when files need to be regenerated.
43652
43653 2001-10-08  Geert Bosch  <bosch@gnat.com>
43654
43655         * xsnames.adb: New utility for updating snames.ads and snames.adb
43656
43657 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43658
43659         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43660         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43661         (gnat1): Also depend on attribs.o.
43662         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43663         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43664         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43665         (ADAFLAGS): Add -W -Wall.
43666         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43667         take out CFLAGS.
43668
43669         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43670         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43671         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43672         Use $(ADAC), not $(CC), as compilation command.
43673
43674         (gnattools): Depend directly on tools to build, don't use
43675         recursive make.
43676         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43677
43678         * einfo.h, sinfo.h: New files (autogenerated).
43679
43680 2001-10-08  Richard Henderson  <rth@redhat.com>
43681
43682         * comperr.adb (Abort_In_Progress): New.
43683         (Compiler_Abort): Use it to prevent recursion.
43684
43685 2001-10-08  Robert Dewar  <dewar@gnat.com>
43686
43687         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43688
43689         * par-endh.adb (Output_End_Expected): We should also not test
43690         Error_Posted on the Error node, since now it is always set.
43691
43692         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43693         to help error recovery. Part of general work on 9407-004.
43694
43695         * par.adb: Add ??? for misuse of error
43696
43697         * sem_res.adb:
43698         (Resolve): Defend against Error, fixes 9407-003.
43699         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43700
43701         * sinfo.ads (N_Error): Now has Etype field (which will be set
43702         to Any_Type to help error recovery).
43703
43704 2001-10-08  Richard Kenner  <kenner@gnat.com>
43705
43706         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43707         Consistently set MEM attributes from expression; fixes
43708         bootstrap failure on x86.
43709
43710 2001-10-08  Geert Bosch  <bosch@gnat.com>
43711
43712         * 5oosinte.adb: Add 2001 to copyright notice.
43713
43714 2001-10-08  Geert Bosch  <bosch@gnat.com>
43715
43716         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43717
43718         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43719
43720 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43721
43722         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43723
43724 2001-10-05  Geert Bosch  <bosch@gnat.com>
43725
43726         * adaint.h: Small formatting fix.
43727
43728 2001-10-04  Geert Bosch  <bosch@gnat.com>
43729
43730         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43731         Arg is int, not FILE *, in dummy version of functions.
43732
43733         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43734         Arg is int, not FILE *.
43735
43736 2001-10-04  Geert Bosch  <bosch@gnat.com>
43737
43738         * 3lsoccon.ads: Added file, missed with initial check ins.
43739
43740         * 4lintnam.ads: Fix header format.
43741         Change Linux to GNU/Linux.
43742
43743         * 5iosinte.adb: Change Linux to GNU/Linux.
43744
43745         * 5iosinte.ads: Change Linux to GNU/Linux.
43746
43747         * 5itaprop.adb: Change Linux to GNU/Linux.
43748
43749         * 5itaspri.ads: Change Linux to GNU/Linux.
43750         Update copyright notice.
43751
43752         * 5lintman.adb: Change Linux to GNU/Linux.
43753
43754         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43755
43756         * 5losinte.ads: Change Linux to GNU/Linux.
43757
43758         * 5lsystem.ads: Change Linux to GNU/Linux.
43759
43760         * 5qosinte.adb: Change Linux to GNU/Linux.
43761
43762         * 5qosinte.ads: Change Linux to GNU/Linux.
43763
43764         * 5qparame.ads: Change Linux to GNU/Linux.
43765
43766         * 5qtaprop.adb: Change Linux to GNU/Linux.
43767
43768         * 5qtaspri.ads: Change Linux to GNU/Linux.
43769         Add 2001 to copyright notice.
43770
43771         * 5vintman.ads: Change Linux to GNU/Linux.
43772         Fix header format.  Add 2001 to copyright notice.
43773
43774         * g-soccon.ads: Change Linux to GNU/Linux.
43775
43776         * g-trasym.ads: Change Linux to GNU/Linux.
43777         Add 2001 to copyright notice.
43778
43779         * memtrack.adb: Change Linux to GNU/Linux.
43780
43781         * s-intman.ads: Change Linux to GNU/Linux.
43782         Add 2001 to copyright notice.  Fix header format.
43783
43784         * s-stache.adb: Change Linux to GNU/Linux.
43785
43786         * adaint.c: Change Linux to GNU/Linux.
43787
43788         * cio.c: Change Linux to GNU/Linux.
43789
43790         * cstreams.c: Change Linux to GNU/Linux.
43791
43792         * init.c: Change Linux to GNU/Linux.
43793
43794         * gmem.c: Change Linux to GNU/Linux.
43795
43796         * tracebak.c: Change Linux to GNU/Linux.
43797
43798
43799 2001-10-02  Geert Bosch  <bosch@gnat.com>
43800
43801         * misc.c (insert_default_attributes): Add dummy version.