OSDN Git Service

* alias.h (record_alias_subset): Declare.
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-02-10  Olivier Hainque  <hainque@adacore.com>
2             Eric Botcazou  <ebotcazou@adacore.com>
3
4         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
5         (copy_alias_set): Rename into...
6         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
7         underlying array of unconstrained arrays for the new type as well.
8         If the old and new alias sets don't conflict, make one a subset of
9         the other as per the OP parameter.
10         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11         <E_Record_Type>: Do not copy the alias set for derived types.
12         For all types, make the alias set of derived types a superset of
13         that of their parent type.
14         (make_aligning_type): Adjust calls to copy_alias_set.
15         (make_packable_type): Likewise.
16         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
17         Check for alias set conflict instead of strict equality to issue the
18         warning.
19
20 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21
22         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
23         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
24         (copy_alias_set): Assert that arrays have the same aliasing settings.
25         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
26
27 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
28
29         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
30         Set TYPE_NONALIASED_COMPONENT on the array type.
31
32 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
33
34         * gcc-interface/Makefile.in: Fix mipsel linux handling.
35         
36 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
37
38         * gcc-interface/Makefile.in: Fix multilib handling for
39         powerpc64-linux.
40
41 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
42
43         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
44         only useless conversions around renamed objects.
45
46 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
47
48         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
49         the _Tag field before any discriminants in the field list.
50         (components_to_record): Remove obsolete comment.
51
52 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
53
54         PR ada/38450
55         * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
56         * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
57         Likewise.
58
59 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
60
61         PR bootstrap/38262
62         * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
63
64 2008-11-29  Eric Botcazou  <ebotcazou@adacore.com>
65
66         PR ada/30827
67         * g-comver.adb (Ver_Len_Max): Fix inconsistency.
68
69 2008-11-27  Eric Botcazou  <ebotcazou@adacore.com>
70
71         * gcc-interface/decl.c: Fix various nits.
72
73 2008-11-20  Eric Botcazou  <ebotcazou@adacore.com>
74
75         * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
76
77 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
78
79         PR ada/38127
80         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
81         special-case boolean types.  Propagate  the name.
82         * gcc-interface/targtyps.c: Tweak comment.
83
84 2008-11-15  Geert Bosch  <bosch@adacore.com>
85
86         * gcc-interface/trans.c (emit_check): Put back a final save_expr
87         to prevent exponential expansion during gimplification.
88
89 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
90
91         * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
92
93 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
94
95         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
96         initialized to a static constant to be statically allocated even if
97         they are of a padding type, provided the original type also has
98         constant size.
99
100 2008-11-15  Laurent Guerby  <laurent@guerby.net>
101
102         PR ada/37993
103         * gcc-interface/Makefile.in: Add multilib handling for x86_64
104         on darwin.
105         * system-darwin-x86_64.ads: New file.
106
107 2008-11-13  Olivier Hainque  <hainque@adacore.com>
108
109         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
110         Turn Ada Pure on subprograms back into GCC CONST when eh constructs
111         are explicit to the middle-end.  Tidy.
112
113 2008-11-09  Eric Botcazou  <ebotcazou@adacore.com>
114
115         * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
116         (MINUS_NOMOD_EXPR): Likewise.
117         * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
118         unreachable.
119         <PLUS_NOMOD_EXPR>: New case.
120         <MINUS_NOMOD_EXPR>: Likewise.
121         * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
122         assignment statement instead of using an increment operator.
123
124 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
125
126         * system-irix-n64.ads: New file.
127         * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
128         multilibs.
129
130 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
131
132         PR ada/37681
133         * system-solaris-x86_64.ads: New file.
134         * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
135
136 2008-11-07  Bechir Zalila  <bechir.zalila@gmail.com>
137             Eric Botcazou  <ebotcazou@adacore.com>
138
139         PR ada/34289
140         * lib.ads: (Enable_Switch_Storing): Declare.
141         * lib.adb: (Enable_Switch_Storing): New procedure.
142         * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
143         * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
144         (Display): Never display -gnatea
145         * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
146
147 2008-11-07  Thomas Quinot  <quinot@adacore.com>
148
149         * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
150         for empty range in original base type, not converted result type.
151
152 2008-11-07  Geert Bosch  <bosch@adacore.com>
153
154         * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
155         and result for call to __gnat_mulv64.
156
157 2008-11-07  Eric Botcazou  <ebotcazou@adacore.com>
158
159         * gcc-interface/trans.c: Fix formatting nits.
160
161 2008-11-07  Geert Bosch  <bosch@adacore.com>
162
163         * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
164         overflow check for constant result.
165
166 2008-11-07  Geert Bosch  <bosch@adacore.com>
167
168         * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
169         overflow check for addition/subtraction if neither operand is constant.
170
171 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
172
173         * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
174         files for the target-dependent part of the runtime.
175         (SPARC/Linux): Likewise.
176
177 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
178
179         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
180         optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
181         purposes.
182
183 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
184
185         * gcc-interface/misc.c (gnat_printable_name): Always return a copy
186         in GC memory.
187
188 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
189
190         PR ada/19419
191         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
192         Generate a call to memmove for an assignment between overlapping
193         array slices.
194
195 2008-11-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
196
197         PR target/37977
198         * gcc-interface/Makefile.in: Add multilib handling for
199         s390-linux and s390x-linux.
200
201 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
202
203         * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
204         check-acats-subtargets and check-gnat-subtargets.
205         (check_acats_targets): New variable.
206         (check-acats-subtargets, check-acats%): New targets.
207         (check-acats): If -j is used and CHAPTERS is empty, run the testing
208         in multiple make goals, possibly parallel, and afterwards run
209         dg-extract-results.sh to merge the sum and log files.
210
211 2008-10-17  Geert Bosch  <bosch@adacore.com>
212
213         * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
214         to use only a single check instead of three, and avoid unnecessary
215         COMPOUND_EXPR.
216         (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
217         creating more opportunities for optimizations.
218
219 2008-10-13  Jakub Jelinek  <jakub@redhat.com>
220
221         PR middle-end/37601
222         * gcc-interface/utils.c (gnat_types_compatible_p): Handle
223         NULL TYPE_DOMAIN.
224
225 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
226
227         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
228         dealing with volatileness to after code dealing with renaming.
229
230 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
231
232         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
233         * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
234
235 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
236
237         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
238         (unchecked_convert): Use it to disable problematic folding with
239         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
240         special VIEW_CONVERT_EXPR built for integral types and cope with
241         its addressability issues by preserving the first conversion.
242
243 2008-10-01  Andreas Schwab  <schwab@suse.de>
244
245         * system-linux-ppc64.ads: New file.
246         * gcc-interface/Makefile.in: Add multilib handling for
247         powerpc-linux.
248
249 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
250
251         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
252         to that of ptr_mode instead of word_mode.
253
254 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
255
256         PR ada/5911
257         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
258
259 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
260
261         PR ada/37641
262         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
263         instead of deprecated FILE_WRITE_PROPERTIES.
264
265 2008-09-22  Olivier Hainque  <hainque@adacore.com>
266
267         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
268         are never assigned, volatile entities are not constant for code
269         generation purposes.
270
271 2008-09-21  Laurent Guerby  <laurent@guerby.net>
272
273         PR ada/5911
274         * gcc-interface/Makefile.in: Add multilib handling for x86_64
275         and sparc.
276         * system-linux-sparcv9.ads: New file.
277
278 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
279
280         * exp_dbug.ads: Document new convention for the XVZ variable.
281         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
282         debug info if necessary for the type padding the component type.
283         <E_Array_Subtype>: Likewise.
284         (maybe_pad_type): Emit the XVZ variable in units.
285         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
286         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
287         on statements generated to initialize the parameter attributes cache.
288         Set the source line of the end label of the body on the special return
289         statement built for a procedure with copy-in copy-out parameters.
290
291 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
292
293         PR ada/37585
294         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
295         inlined external functions if they contain a nested function not
296         declared inline.
297
298 2008-09-18  Jan Hubicka  <jh@suse.cz>
299
300         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
301         (end_subprog_body): Do not set DECL_INLINE.
302
303 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
304
305         PR ada/21327
306         * gnat_ugn.texi: Use proper format in direntry.
307
308 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
309
310         * gcc-interface/trans.c (gigi): Declare the name of the compilation
311         unit as the first global name.
312
313 2008-09-14  Jan Hubicka  <jh@suse.cz>
314
315         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
316
317 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
318
319         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
320         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
321         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
322         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
323         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
324         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
325         gcc-interface/gigi.h, gcc-interface/trans.c,
326         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
327         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
328         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
329         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
330         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
331         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
332         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
333         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
334         comments.
335         * gnathtml.pl: Fix typos.
336
337 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
338
339         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
340         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
341         layer. RTEMS binds to OS provided adapter routines so there are
342         no modifications to s-osinte-rtems.adb.
343
344 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
345             Joel Sherrill  <joel.sherrill@oarcorp.com>
346
347        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
348
349        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
350
351        * s-interr-hwint.adb: New file.
352
353         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
354         needed by s-interr-hwint.adb.
355
356         * s-osinte-vxworks-kernel.adb: New file.
357
358 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
359
360         * s-stchop-rtems.adb: Add file missed in early commit.  Already
361         referenced in gcc-interface/Makefile.in.
362
363 2008-08-30  Thomas Quinot  <quinot@adacore.com>
364
365         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
366         be built even without a separate libada directory.
367
368 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
369
370         * lib-xref.ads: Fix typo in subprogram reference definition.
371
372 2008-08-22  Robert Dewar  <dewar@adacore.com>
373
374         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
375         to avoid warning.
376
377         * g-trasym.adb: Ditto
378
379         * s-utf_32.adb (Get_Category): Fix obvious typo
380
381         * s-wwdcha.adb: Minor code reorganization
382         Remove dead code
383
384 2008-08-22  Robert Dewar  <dewar@adacore.com>
385
386         * checks.adb (Determine_Range): Deal with values that might be invalid
387
388         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
389         configuration switches.
390
391         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
392
393         * sem_prag.adb: Implement pragma Assume_No_Default_Values
394
395         * snames.adb, snames.ads, snames.h:
396         Add entries for pragma Assume_No_Invalid_Values
397
398         * switch-c.adb: Add processing for -gnatB switch
399
400         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
401
402 2008-08-22  Javier Miranda  <miranda@adacore.com>
403
404         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
405         init procedure all the expanded code associated with the spec of
406         task types and protected types.
407
408 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
409
410         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
411         component expression copies rather than directly setting Etype and
412         Is_Static_Expression.
413
414 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
415
416         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
417         private types to allow for types derived from a private type with
418         preelaborable initialization, but return False for a private extension
419         (unless it has the pragma).
420
421 2008-08-22  Robert Dewar  <dewar@adacore.com>
422
423         * opt.ads: Minor code reorganization (put entries in alpha order)
424
425 2008-08-22  Pascal Obry  <obry@adacore.com>
426
427         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
428         spawn.
429
430 2008-08-22  Geert Bosch  <bosch@adacore.com>
431
432         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
433         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
434
435 2008-08-22  Doug Rupp  <rupp@adacore.com>
436
437         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
438         __gnat_set_features.
439
440         * init.c
441         (__gnat_set_features): New function.
442         (__gnat_features_set): New tracking variable.
443         (__gl_no_malloc_64): New feature global variable
444
445 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
446
447         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
448         use_type_clause in an instance.
449
450 2008-08-22  Bob Duff  <duff@adacore.com>
451
452         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
453
454 2008-08-22  Robert Dewar  <dewar@adacore.com>
455
456         * exp_ch6.adb: Minor reformatting
457
458         * exp_ch7.adb: Minor reformatting
459
460         * exp_ch7.ads: Put routines in proper alpha order
461
462         * exp_dist.adb: Minor reformatting
463
464 2008-08-22  Vincent Celier  <celier@adacore.com>
465
466         * prj.ads: Minor comment update
467
468 2008-08-22  Robert Dewar  <dewar@adacore.com>
469
470         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
471
472 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
473
474         * exp_tss.adb:
475         (Base_Init_Proc): For a protected subtype, use the base type of the
476         corresponding record to locate the propoer initialization procedure.
477
478 2008-08-22  Robert Dewar  <dewar@adacore.com>
479
480         * checks.adb:
481         (In_Subrange_Of): New calling sequence
482         (Determine_Range): Prepare for new processing using base type
483
484         * exp_ch4.adb:
485         (Compile_Time_Compare): Use new calling sequence
486
487         * exp_ch5.adb:
488         (Compile_Time_Compare): Use new calling sequence
489
490         * sem_eval.adb:
491         (Compile_Time_Compare): New calling sequence allows dealing with
492         invalid values.
493         (In_Subrange_Of): Ditto
494
495         * sem_eval.ads:
496         (Compile_Time_Compare): New calling sequence allows dealing with
497         invalid values.
498         (In_Subrange_Of): Ditto
499
500 2008-08-22  Pascal Obry  <obry@adacore.com>
501
502         * adaint.c: Fix possible race condition on win32_wait().
503
504 2008-08-22  Bob Duff  <duff@adacore.com>
505
506         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
507         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
508         exp_intr.adb, exp_ch3.adb: Rename:
509         Exp_Ch7.Controlled_Type => Needs_Finalization
510         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
511         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
512          Has_Controlled_Parts
513         (Has_Some_Controlled_Component): Fix bug in array case.
514
515 2008-08-22  Robert Dewar  <dewar@adacore.com>
516
517         * sem_ch8.adb: Minor reformatting
518
519 2008-08-22  Kevin Pouget  <pouget@adacore.com>
520
521         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
522         Shared_Var_Close procedure specifications from package spec to package body.
523
524         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
525         RE_Shared_Var_WOpen entries.
526
527         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
528         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
529
530 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
531
532         * init.c: adjust EH support code on Alpha/Tru64 as well.
533
534         * raise-gcc.c: Add back a couple of comments.
535
536 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
537
538         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
539         involved and the return type is class-wide, use the type of the expression
540         for the generated access type. Suppress useless discriminant checks on the
541         allocator.
542
543 2008-08-22  Bob Duff  <duff@adacore.com>
544
545         * exp_ch7.adb: Minor comment fix
546
547         * exp_ch6.ads: Minor comment fix
548
549 2008-08-22  Thomas Quinot  <quinot@adacore.com>
550
551         * sem_ch8.adb: Minor reformatting
552         Minor code reorganization (introduce subprogram to factor duplicated
553         code).
554
555 2008-08-22  Sergey Rybin  <rybin@adacore.com>
556
557         * gnat_ugn.texi: Change the description of gnatcheck default rule
558         settings.
559
560 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
561
562         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
563         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
564         do not adjust the PC anymore.
565         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
566         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
567
568         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
569         instead of _Unwind_GetIP.
570
571 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
572
573         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
574         with a range is transformed into a positional aggregate, any copied
575         component literals should be marked Is_Static_Expression.
576
577         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
578         not being known at at compile time when Configurable_Run_Time_Mode is
579         true.
580
581 2008-08-22  Robert Dewar  <dewar@adacore.com>
582
583         * exp_attr.adb:
584         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
585         Read or Input attribute.
586
587 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
588
589         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
590         clauses in related units is redundant, if one of the units is a package
591         instantiation, use its instance_spec to determine which unit is the
592         ancestor of the other.
593
594 2008-08-22  Javier Miranda  <miranda@adacore.com>
595
596         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
597         attributes add missing support to handle designated types that come
598         from the limited view.
599
600         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
601
602 2008-08-22  Sergey Rybin  <rybin@adacore.com>
603
604         * vms_data.ads: Add entry for new gnatcheck -mNNN option
605
606         * gnat_ugn.texi: Add description for gnatcheck option '-m'
607
608 2008-08-22  Sergey Rybin  <rybin@adacore.com>
609
610         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
611         acoording to the latest changes in the metric rule interface
612
613 2008-08-22  Vincent Celier  <celier@adacore.com>
614
615         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
616         (Check): Check if the file names registered in the ALI file for the
617         spec, the body and each of the subunits are the ones expected.
618
619 2008-08-22  Robert Dewar  <dewar@adacore.com>
620
621         * g-catiio.adb: Code cleanup.
622
623 2008-08-20  Vincent Celier  <celier@adacore.com>
624
625         * make.adb (Gnatmake): Remove extra space in version line
626
627         * ali.adb:
628         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
629         as the name may already have been entered in the table by the Project
630         Manager.
631
632 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
633
634         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
635         weak symbols so we use the version provided by MaRTE when available.
636
637 2008-08-20  Emmanuel Briot  <briot@adacore.com>
638
639         * g-catiio.ads, g-catiio.adb:
640         (Value): Avoid an unnecessary system call to Clock in most cases.
641         This call is only needed when only the time is provided in the string,
642         and ignored in all other cases. This is more efficient.
643
644 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
645
646         * raise-gcc.c: Fix formatting nits.
647
648 2008-08-20  Robert Dewar  <dewar@adacore.com>
649
650         * sem_ch13.adb:
651         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
652         non-existing component clause.
653
654         * exp_ch5.adb: Minor reformatting
655
656         * g-comlin.adb: Minor reformatting
657
658         * make.adb: Minor reformatting
659
660         * prj-proc.adb: Minor reformatting
661
662         * stylesw.ads: Minor reformatting
663
664 2008-08-20  Vincent Celier  <celier@adacore.com>
665
666         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
667         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
668         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
669          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
670         and a switch is not recognized by gnatmake.
671         (Gnatmake): Implement new scheme for gnatmake switches and global
672         compilation switches.
673         (Switches_Of): Try successively Switches (<file name>),
674         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
675
676 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
677
678         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
679         implement style check that overriding operations are explicitly marked
680         at such.
681
682         * style.ads (Missing_Overriding): new procedure that provides interface
683         to previous one.
684
685         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
686         that the declaration or body of overriding operations carries an
687         explicit overriding indicator.
688
689         * sem_ch8.adb
690         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
691         explicit indicator should be present.
692
693         * sem_ch6.adb (Verify_Overriding_Indicator,
694         Check_Overriding_Indicator): If operation is overriding, check whether
695         declaration and/or body of subprogram should be present
696
697 2008-08-20  Vincent Celier  <celier@adacore.com>
698
699         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
700         gprbuild when casing is MixedCase, whatever the casing of the letters
701         in the file name.
702
703 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
704
705         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
706         creating dummy init proc.
707         (Requires_Init_Proc): Return False in the case No_Default_Initialization
708         is in force and the type does not have associated default
709         initialization. Move test of Is_Public (with tests of restrictions
710         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
711         for default initialization.
712
713 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
714
715         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
716         of any alias or prefix but having attached parameters (as \"-O2\").
717
718 2008-08-20  Robert Dewar  <dewar@adacore.com>
719
720         * s-fileio.adb: Minor reformatting
721
722 2008-08-20  Thomas Quinot  <quinot@adacore.com>
723
724         * exp_strm.adb (Build_Elementary_Input_Call,
725         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
726         selects the stream attribute routines for long float types.
727
728 2008-08-20  Vincent Celier  <celier@adacore.com>
729
730         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
731
732         * prj.ads (Array_Data): Add a component Location
733
734 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
735
736         * sem_prag.adb:
737         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
738         argument for ASIS and navigation use.
739
740 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
741
742         * einfo.ads: Add comment.
743
744 2008-08-20  Bob Duff  <duff@adacore.com>
745
746         * sem_eval.ads: Minor comment fix.
747
748 2008-08-20  Bob Duff  <duff@adacore.com>
749
750         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
751         folding. We were folding things like "False and then ...", but not
752         "X and then ..." where X is a constant whose value is known at compile
753         time.
754
755 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
756
757         * exp_ch5.adb (Controlled_Type): New routine.
758         (Expand_N_Extended_Return_Statement): When generating a move of the
759         final list in extended return statements, check the type of the
760         function and in the case of double expanded return statements, the type
761         of the returned object.
762         (Expand_Simple_Function_Return): Perform an interface conversion when
763         the type of the returned object is an interface and the context is an
764         extended return statement.
765
766 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
767
768         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
769         and the full view is visible, set flag on full view as well.
770
771 2008-08-20  Thomas Quinot  <quinot@adacore.com>
772
773         * g-comlin.adb: Minor reformatting
774         Minor code reorganization.
775
776         * freeze.adb: Minor reformatting
777
778 2008-08-20  Vincent Celier  <celier@adacore.com>
779
780         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
781         source of another project.
782
783 2008-08-20  Pascal Obry  <obry@adacore.com>
784
785         * s-os_lib.ads: Minor reformatting.
786
787 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
788
789         * gnatvsn.ads: Minor reformatting.
790
791 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
792
793         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
794         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
795         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
796         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
797         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
798         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
799         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
800         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
801         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
802         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
803         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
804         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
805         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
806         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
807         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
808         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
809         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
810         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
811         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
812         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
813         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
814         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
815         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
816         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
817         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
818         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
819         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
820         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
821         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
822         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
823         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
824         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
825         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
826         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
827         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
828         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
829         s-poosiz.adb, link.c: Fix copyright notice.
830
831 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
832
833         * g-comlin.ads: Update comments.
834
835 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
836
837         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
838
839 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
840
841         * exp_ch11.adb:
842         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
843         Make_Implicit_Exception_Handler when rewriting an exception handler with
844         a choice parameter, and pass the handler's Sloc instead of that of the
845         handled sequence of statements. Make_Implicit_Exception_Handler sets the
846         Sloc to No_Location (unless debugging generated code), which we don't
847         want for the case of a user handler.
848
849 2008-08-20  Robert Dewar  <dewar@adacore.com>
850
851         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
852
853         * sem_ch13.adb:
854         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
855         now labeled as info msgs, not warnings.
856
857         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
858
859         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
860
861         * a-textio.adb: Remove redundant test.
862
863         * a-witeio.adb: Minor code reorganization
864         Remove redundant test found working on another issue
865
866         * a-ztexio.adb: Minor code reorganization
867         Remove redundant test found working on another issue
868
869 2008-08-20  Thomas Quinot  <quinot@adacore.com>
870
871         * s-fileio.adb (Open) Use C helper function to determine whether a
872         given errno value corresponds to a "file not found" error.
873
874         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
875
876 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
877
878         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
879         to get access to the per-task errno variable.
880         (__set_errno for MaRTE): Do not redefine this function here since it is
881         already defined in MaRTE.
882
883 2008-08-20  Tristan Gingold  <gingold@adacore.com>
884
885         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
886
887 2008-08-20  Robert Dewar  <dewar@adacore.com>
888
889         * freeze.adb: Minor reformatting
890
891         * g-comlin.adb: Minor reformatting
892
893         * g-socket.adb: Minor reformatting
894
895         * g-socthi-mingw.adb: Minor reformatting
896
897         * g-stheme.adb: Minor reformatting
898
899 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
900
901         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
902         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
903         confusion between partial and full views of an ancestor of the context
904         type when the parent is a private extension declared in a parent unit,
905         and full views are available for the context type.
906
907 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
908             Robert Dewar  <dewar@adacore.com>
909
910         PR ada/30827
911         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
912         version string.
913         Move comment in the right place.
914         * g-comver.adb (Version): Look for a zero-termination in
915         addition to a closing parenthesis.
916
917 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
918
919         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
920         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
921         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
922         Is_Package_Or_Generic_Package instead of hand-crafted tests.
923
924 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
925
926         PR ada/15808
927         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
928         as well.
929
930 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
931
932         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
933
934 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
935
936         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
937         for back-copy statements in lieu of that of the actual.
938
939 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
940
941         PR ada/20548
942         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
943         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
944         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
945         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
946
947 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
948
949         PR ada/36777
950         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
951         * sem_attr.adb (Check_Type): The current instance of a protected
952         object is not a type name.
953         (Analyze_Access_Attribute): Accept instances of protected objects.
954         (Analyze_Attribute, Attribute_Address clause): Ditto.
955         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
956         the prefix as being the current instance if needed.
957
958 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
959
960         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
961         Remove duplicate s-win32.o. Add s-winext.o.
962
963 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
964
965         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
966         with SOSC.SOCK__STREAM.
967         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
968         SOSC.MSG_OOB.
969
970 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
971
972         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
973         * gsocket.h, socket.c: Update to support RTEMS.
974         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
975
976 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
977             Robert Dewar <dewar@adacore.com>
978
979         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
980         left argument even when right argument is 0.
981         (Expand_N_Op_Mod): Ditto when right argument is 1.
982         (Expand_N_Op_Multiply): Ditto when any argument is 0.
983         (Expand_N_Op_Rem): Ditto when right argument is 1.
984
985 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
986
987         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
988         by warn_unused.
989
990 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
991
992         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
993         from Freeze_Entity. Used to generate cross-reference information for
994         types declared in generic packages.
995
996 2008-08-08  Thomas Quinot  <quinot@adacore.com>
997
998         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
999         compatibility shim.
1000
1001 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1002
1003         * gsocket.h:
1004         On Windows, include <errno.h> and redefine only selected errno values
1005         from their <winsock2.h> definitions.
1006
1007         * s-osinte-freebsd.ads: Minor reformatting
1008
1009         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1010
1011         * g-soccon.ads: New file.
1012
1013         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1014         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1015         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1016         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1017         unit, to allow building software that depends on this internal unit
1018         with both older and newer compilers.
1019
1020 2008-08-08  Robert Dewar  <dewar@adacore.com>
1021
1022         * s-strxdr.adb: Minor reformatting
1023
1024 2008-08-08  Bob Duff  <duff@adacore.com>
1025
1026         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1027         checking for integer operations (including division by zero)", which
1028         is wrong -- divide by zero is not part of overflow checking.
1029         Also added misc clarification about what check-suppression means.
1030
1031         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1032
1033 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
1034
1035         * g-comlin.adb (Add_Switch): Handle addition of switches at the
1036         begining of the command line.
1037         (Append, Add): Renaming of Append to Add as this now allows addition
1038         at the begining of the list.
1039
1040         * g-comlin.ads (Add_Switch): Handle addition of switches at the
1041         begining of the command line.
1042
1043 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1044
1045         * g-sercom.ads:
1046         (Name): Document application scope (only legacy PC serial ports on
1047         Linux and Windows).
1048
1049 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1050
1051         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1052         previous change, not needed after all.
1053
1054 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
1055
1056         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1057         exclusion indicator is present
1058
1059 2008-08-08  Robert Dewar  <dewar@adacore.com>
1060
1061         * g-comlin.adb: Minor code reorganization
1062         Minor reformatting
1063
1064         * g-comlin.ads: Minor reformatting
1065
1066         * s-fileio.adb: Minor reformatting
1067
1068         * sem_attr.adb: Minor code reorganization (use Nkind_In)
1069         Minor reformatting
1070
1071 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
1072
1073         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1074         with s-oscons-tmplt.i.
1075
1076 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
1077
1078         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1079
1080 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1081
1082         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1083         of incomplete type.
1084
1085         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1086         of a formal parameter of an incomplete type. Improve error message for
1087         other improper uses of incomplete types.
1088
1089 2008-08-06  Robert Dewar  <dewar@adacore.com>
1090
1091         * gnat_ugn.texi: Clarify -gnato documentation
1092
1093 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1094
1095         * gcc-interface/Makefile.in,
1096         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1097         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1098         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1099         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1100         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1101         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1102         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1103         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1104         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1105         Remove GNAT.Sockets.Constants. This internal package is replaced by
1106         System.OS_Constants.
1107
1108 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1109
1110         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1111         Remove obsolete targets referencing gen-soccon
1112         When generating s-oscons.ads, use a file name that includes the
1113         THREAD_KIND, to ensure that the (potentially different) version from a
1114         previous build with a different threads flavour does not get reused.
1115
1116 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1117
1118         * sem_res.adb: Minor reformatting
1119
1120         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1121         only when the operating system reports a non-existing file or directory
1122         (ENOENT), otherwise raise Name_Error.
1123
1124         * exp_ch11.adb: Minor reformatting
1125
1126 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1127
1128         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1129         incomplete, add the access_to_subprogram type to the list of private
1130         dependents only if the incomplete type will be completed in the current
1131         scope.
1132         (Build_Discriminant_Constraints): If the type of the discriminant is
1133         access_to_variable, reject a constraint that is access_to_constant.
1134
1135 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1136
1137         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1138         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1139         g-sttsne-dummy.ads: New files.
1140
1141         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1142         with pragma Unimplemented_Unit for sockets packages on Nucleus.
1143
1144 2008-08-06  Pascal Obry  <obry@adacore.com>
1145
1146         * adaint.c: Another fix for ACL support on Windows.
1147
1148 2008-08-06  Javier Miranda  <miranda@adacore.com>
1149
1150         * exp_disp (Expand_Interface_Actuals): Adds missing support for
1151         expansion of calls to subprograms using selected components.
1152
1153 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1154
1155         * sem_res.adb (Resolve_Call): Use base type to determine whether a
1156         dereference is needed because a subtype of an access_to_subprogram is
1157         simply an access-subtype
1158
1159 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1160
1161         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1162         parameters, always specify the expected separator.
1163
1164 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1165
1166         * xnmake.adb: Use new XUtil package for platform independent text
1167         output.
1168
1169 2008-08-06  Vincent Celier  <celier@adacore.com>
1170
1171         * gnat_ugn.texi: Document compiler switch -gnateG
1172
1173 2008-08-06  Quentin Ochem  <ochem@adacore.com>
1174
1175         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1176         in the case of an empty pattern size.
1177         (Compute_Result): Do not do any computation in the case of an empty
1178         pattern size.
1179         (Report_Result): Fixed computation of the overflow guard.
1180
1181 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1182
1183         * g-awk.adb (Finalize): Do not use directly objects of the type in the
1184         finalization routine to prevent elaboration order anomalies in new
1185         finalization scheme.
1186
1187 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1188
1189         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1190         declaration for the same type.
1191
1192 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1193
1194         * sem.adb: Minor rewording (comment)
1195
1196 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1197
1198         * g-comlin.adb (Define_Switch, Get_Switches): New.
1199         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1200         ungrouping switches.
1201         (For_Each_Simple_Switch): Allow more control over parameters handling.
1202         This generic method now allows ungrouping of switches with parameters
1203         and switches with more than one letter after the prefix.
1204         (Set_Command_Line): Take care of switches that are prefixed with a
1205         switch handling parameters without delimiter (-gnatya and -gnaty3 for
1206         example).
1207         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1208         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1209         the operation.
1210         (Start, Alias_Switches, Group_Switches): Take care of parameters
1211         possibly present inside a group.
1212
1213         * g-comlin.ads (Define_Switch): New method used to define a list of
1214         expected switches, that are necessary for correctly ungrouping switches
1215         with more that one character after the prefix.
1216         (Get_Switches): Method that builds a getopt string from the list of
1217         switches as set previously by Define_Switch.
1218         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1219         status of the operation. Also allow the removal of switches with
1220         parameters only.
1221         (Command_Line_Configuration_Record): Maintain a list of expected
1222         switches.
1223
1224 2008-08-06  Doug Rupp  <rupp@adacore.com>
1225
1226         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1227         TARGET_MALLOC64 clear.
1228
1229         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1230         if TARGET_MALLOC64 clear.
1231
1232         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1233         (TARGET_MALLC64): New macro. Default to clear.
1234
1235 2008-08-06  Doug Rupp  <rupp@adacore.com>
1236
1237         * gcc-interface/utils2.c (snames.h) Include
1238         (TARGET_ABI_OPEN_VMS): Initialize.
1239         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1240         for Convention C.
1241
1242 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1243
1244         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1245         null exclusion in a discriminant declaration
1246
1247         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1248         indicators when type is not an access type.
1249
1250         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1251         indicators when type is not an access type.
1252
1253 2008-08-06  Javier Miranda  <miranda@adacore.com>
1254
1255         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1256         with the target interface before expanding the code of the interface
1257         conversion.
1258
1259 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1260
1261         * freeze.adb:
1262         (Freeze_Entity): A deferred constant does not violate the restriction
1263         No_Default_Initialization,
1264
1265         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1266         can carry a null exclusion indicator, and on which an error may be
1267         posted if the indicator is redundant.
1268
1269         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1270         does not apply to a subtype mark that already excludes null.
1271
1272         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1273         exclusion does not apply to a subtype mark that already excludes null.
1274
1275 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1276
1277         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1278
1279 2008-08-05  Doug Rupp  <rupp@adacore.com>
1280
1281         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1282
1283 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1284
1285         * gsocket.h: Make this file includable in a Nucleus environment, which
1286         does not support sockets.
1287
1288         * socket.c: Remove Nucleus-specific hack.
1289
1290 2008-08-05  Pascal Obry  <obry@adacore.com>
1291
1292         * adaint.c: Remove support for readable attribute on vxworks and nucleus
1293
1294 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1295
1296         * sem_attr.adb:
1297         (Analyze_Attribute, case 'Result): handle properly the case where some
1298         operand of the expression in a post-condition generates a transient
1299         block.
1300
1301         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1302         right-hand side when it is an anonymous access_to_subprogram, to force
1303         static accessibility check when needed.
1304
1305 2008-08-05  Sergey Rybin  <rybin@adacore.com>
1306
1307         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1308         rule according to the change in the rule option.
1309         Add documentation for -gnatw.b/-gnatw.B
1310
1311 2008-08-05  Robert Dewar  <dewar@adacore.com>
1312
1313         * ug_words: Add entries for -gnatw.b/-gnatw.B
1314
1315         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1316
1317 2008-08-05  Vincent Celier  <celier@adacore.com>
1318
1319         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1320         (File).
1321
1322         * a-ztdeio.adb: Ditto.
1323
1324 2008-08-05  Pascal Obry  <obry@adacore.com>
1325
1326         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1327         readable attribute.
1328
1329 2008-08-05  Vincent Celier  <celier@adacore.com>
1330
1331         * s-wchwts.adb:
1332         (Wide_String_To_String): Returns a String with the same 'First as its
1333         parameter S.
1334         (Wide_Wide_String_To_String): Ditto
1335
1336         * s-wchwts.ads:
1337         (Wide_String_To_String): Document that the lowest index of the returned
1338         String is equal to S'First.
1339
1340 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1341
1342         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1343
1344         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1345         s-oscons.ads
1346
1347 2008-08-05  Robert Dewar  <dewar@adacore.com>
1348
1349         * opt.ads (Warn_On_Biased_Representation): New flag
1350
1351         * sem_ch13.adb:
1352         (Analyze_Attribute_Definition_Clause): Issue warning when biased
1353         representation is required.
1354         (Minimum_Size): Don't allow biasing if enum rep clause case
1355
1356         * sem_warn.adb:
1357         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1358         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1359
1360         * usage.adb: Add lines for -gnatw.b/B switches
1361
1362 2008-08-05  Pascal Obry  <obry@adacore.com>
1363
1364         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1365
1366         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1367
1368 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1369
1370         * socket.c: Minor reformatting.
1371
1372 2008-08-05  Robert Dewar  <dewar@adacore.com>
1373
1374         * sem_ch3.adb: Minor reformatting
1375
1376         * prj-nmsc.adb: Minor reformatting
1377
1378 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1379
1380         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1381         visibility check on the component type if the simple test fails.
1382
1383 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1384
1385         * init.c (__gnat_install_handler for linux): If we are building the
1386         Xenomai run time then we need to do two additional things: avoid
1387         memory swapping and transform the Linux environment task into a native
1388         Xenomai task.
1389
1390         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1391         time): Use interface to Xenomai native skin and avoid linux-specific
1392         way of setting CPU affinity.
1393         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1394
1395 2008-08-05  Bob Duff  <duff@adacore.com>
1396
1397         * checks.ads: Minor comment fix
1398
1399 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1400
1401         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1402         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1403         CS8.
1404
1405 2008-08-05  Robert Dewar  <dewar@adacore.com>
1406
1407         * mlib.adb: Minor code reorganization
1408         Minor reformatting
1409
1410         * make.adb: Minor reformatting
1411
1412         * prj-attr.ads: Minor reformatting
1413
1414         * s-os_lib.adb: Minor reformatting
1415
1416         * s-fileio.adb: Minor code reorganization
1417         Minor reformatting
1418
1419         * prj.ads: Minor reformatting
1420
1421 2008-08-05  Bob Duff  <duff@adacore.com>
1422
1423         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1424         unresolved initial value of "null", because it causes implicitly
1425         generated "=" operators to be ambiguous, and because this type should
1426         not be passed to gigi.
1427
1428 2008-08-05  Vincent Celier  <celier@adacore.com>
1429
1430         * mlib.adb: Update comments.
1431
1432         * make.adb (Switches_Of): Check for Switches (others), before checking
1433         for Default_Switches ("Ada").
1434         (Gnatmake): Use Builder'Switches (others) in preference to
1435         Builder'Default_Switches ("Ada") if there are several mains.
1436
1437         * prj-attr-pm.adb:
1438         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1439         aggregate.
1440
1441         * prj-attr.adb:
1442         Add markers to indicates that attributes Switches allow others as index
1443         (Others_Allowed_For): New Boolean function, returning True for
1444         attributes with the mark.
1445         (Initialize): Recognize optional letter 'O' as the marker for
1446         associative array attributes where others is allowed as the index.
1447
1448         * prj-attr.ads:
1449         (Others_Allowed_For): New Boolean function
1450         (Attribute_Record): New Boolean component Others_Allowed
1451
1452         * prj-dect.adb:
1453         (Parse_Attribute_Declaration): For associative array attribute where
1454         others is allowed as the index, allow others as an index.
1455
1456         * prj-nmsc.adb:
1457         (Process_Binder): Skip associative array attributes with index others
1458         (Process_Compiler): Ditto
1459
1460         * prj-util.adb:
1461         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1462         index is All_Other_Names.
1463
1464         * prj.ads:
1465         (All_Other_Names): New constant
1466
1467         * prj-proc.adb:
1468         (Process_Declarative_Items): Skip associative array attribute when index
1469         is reserved word "others".
1470
1471 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1472
1473         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1474
1475 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1476
1477         * a-rttiev.adb: Minor reformatting (comments)
1478
1479         * gen-soccon.c: Rename to gen-oscons.c
1480
1481         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1482         GNAT.Sockets.Constants.
1483         Add new constants for GNAT.Serial_Communications and System.File_IO.
1484
1485 2008-08-05  Javier Miranda  <miranda@adacore.com>
1486
1487         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1488         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1489         implementation of this routine has been simplified.
1490
1491 2008-08-05  Pascal Obry  <obry@adacore.com>
1492
1493         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1494         Set_Read_Only Win32 implementation.
1495
1496 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1497
1498         * exp_strm.adb: Minor reformatting (comments)
1499
1500         * sem_ch12.adb: Minor reformatting.
1501
1502 2008-08-05  Robert Dewar  <dewar@adacore.com>
1503
1504         * sem_ch3.adb: Minor reformatting
1505
1506         * checks.adb: Minor reformatting
1507
1508 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1509
1510         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1511         restriction on Prefix.
1512
1513 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1514
1515         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1516         methods needed to handle switch sections when building a command line.
1517         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1518         Current_Section): New public methods or methods modified to handle
1519         building command lines with sections.
1520         (Set_Command_Line): Take into account sections when analysing a switch
1521         string.
1522         (Start): Sort the switches by sections before iterating the command line
1523         elements.
1524
1525         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1526         Is_New_Section, Current_Section): New methods or methods modified to
1527         handle building command lines with sections.
1528
1529 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1530
1531         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1532         discriminants, indicate that the corresponding object declaration has
1533         no initialization, to prevent spurious warnings when the access type is
1534         null-excluding.
1535
1536 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1537
1538         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1539         Abort_Task, warn if the call appears within a protected operation.
1540
1541 2008-08-04  Robert Dewar  <dewar@adacore.com>
1542
1543         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1544
1545 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1546
1547         * sem_ch3.adb:
1548         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1549         anonymous access to protected subprogram that is the return type of the
1550         specification of a subprogram body.
1551
1552         * sem_ch6.adb:
1553         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1554         subprogram, freeze it now to prevent access anomalies in the back-end.
1555
1556         * exp_ch9.adb: Minor code cleanup.
1557         Make sure that new declarations are inserted into the tree before
1558         analysis (from code reading).
1559
1560 2008-08-04  Robert Dewar  <dewar@adacore.com>
1561
1562         * exp_ch5.adb:
1563         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1564         at point of return.
1565
1566 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1567
1568         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1569
1570 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1571
1572         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1573
1574 2008-08-04  Javier Miranda  <miranda@adacore.com>
1575
1576         * sem_prag.adb (Process_Convention): Add missing support for
1577          N_Private_Extension_Declaration nodes.
1578
1579 2008-08-04  Robert Dewar  <dewar@adacore.com>
1580
1581         * exp_ch4.adb: Minor reformatting
1582
1583 2008-08-04  Pascal Obry  <obry@adacore.com>
1584
1585         * adaint.h: Add missing prototype.
1586
1587         * adaint.c: Refine support for Windows file attributes.
1588
1589 2008-08-04  Robert Dewar  <dewar@adacore.com>
1590
1591         * sem_res.adb:
1592         (Valid_Conversion): Catch case of designated types having different
1593         sizes, even though they statically match.
1594
1595 2008-08-04  Javier Miranda  <miranda@adacore.com>
1596
1597         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1598         added in previous patch to handle access to subprograms.
1599
1600 2008-08-04  Robert Dewar  <dewar@adacore.com>
1601
1602         * freeze.adb:
1603         (Freeze_Entity): Only check No_Default_Initialization restriction for
1604         constructs that come from source
1605
1606 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1607
1608         * exp_ch6.adb: Minor comment fix.
1609
1610         * sem_ch4.adb: Minor reformatting.
1611
1612 2008-08-04  Robert Dewar  <dewar@adacore.com>
1613
1614         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1615
1616 2008-08-04  Pascal Obry  <obry@adacore.com>
1617
1618         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1619         file attributes.
1620
1621 2008-08-04  Javier Miranda  <miranda@adacore.com>
1622
1623         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1624         for N_Formal_Object_Declaration nodes. Adding kludge required by
1625         First_Formal to provide its functionality with access to functions.
1626         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1627         for anonymous access types returned by functions.
1628
1629         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1630         conversion of null-excluding access types (required only once to force
1631         the generation of the required runtime check).
1632
1633         * sem_type.adb (Covers): minor reformating
1634
1635         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1636         with internally generated nodes. Avoid generating the error inside init
1637         procs.
1638
1639         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1640         (Resolve_Null): Generate the null-excluding check in case of assignment
1641         to a null-excluding object.
1642         (Valid_Conversion): Add missing support for anonymous access to
1643         subprograms.
1644
1645         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1646         anonymous access types whose designated type is an itype. This case
1647         occurs with anonymous access to protected subprograms types.
1648         (Analyze_Return_Type):  Add missing support for anonymous access to
1649         protected subprogram.
1650
1651         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1652         subprograms addition of missing check on matching convention. Required
1653         to properly handle access to protected subprogram types.
1654
1655         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1656         null excluding access types.
1657
1658 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1659
1660         * sem_ch12.adb: Add comments
1661
1662         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1663         access type and the allocator is not initialized, warn rather than
1664         reporting an error.
1665
1666 2008-08-04  Robert Dewar  <dewar@adacore.com>
1667
1668         * exp_ch4.adb: Minor reformatting
1669
1670         * exp_dist.adb: Minor reformatting
1671
1672         * g-comlin.adb: Minor reformatting
1673
1674 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1675
1676         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1677         target to the type of the aggregate in the case where the target object
1678         is class-wide.
1679
1680         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1681         result type is class-wide and inherently limited, and the expression
1682         has a specific type, create a return object of the specific type, for
1683         more efficient handling of returns of build-in-place aggregates (avoids
1684         conversions of the class-wide return object to the specific type on
1685         component assignments).
1686
1687         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1688         about a type mismatch for a class-wide function with a return object
1689         having a specific type when the object declaration doesn't come from
1690         source. Such an object can result from the expansion of a simple return.
1691
1692 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1693
1694         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1695
1696         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1697         compiling for 64bit windows.
1698
1699 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1700
1701         * g-comlin.adb (Group_Switches): Preserve the switch order when
1702         grouping and allow switch grouping of switches with more than one
1703         character extension (e.g. gnatw.x).
1704         (Args_From_Expanded): Remove this now obsolete method.
1705
1706 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1707
1708         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1709         chain at once, to ensure that type is properly decorated for back-end,
1710         when allocator appears within a loop.
1711
1712 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1713
1714         * snames.h, snames.adb, snames.ads:
1715         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1716
1717         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1718         Build_To_Any_Call and Build_TypeCode_Call procedures.
1719
1720         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1721
1722         * rtsfind.ads: Add corresponding names.
1723
1724         * tbuild.adb: Update prefix restrictions to allow '_' character.
1725
1726 2008-08-04  Doug Rupp  <rupp@adacore.com>
1727
1728         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1729         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1730         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1731         use it.  Calculate pointer range overflow using 64bit types.
1732
1733 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1734
1735         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1736         legal context for an anonymous access to subprogram.
1737
1738         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1739         indirect call, report success to the caller to include possible
1740         interpretation.
1741
1742         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1743         check when the type
1744         of the extended return is an anonymous access_to_subprogram type.
1745
1746         * sem_res.adb:
1747         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1748         access_to_subprogram and the context requires its return type, and a
1749         dereference has not been introduced previously.
1750
1751 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1752
1753         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1754         gnatcheck support in GPS.
1755
1756 2008-08-04  Vincent Celier  <celier@adacore.com>
1757
1758         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1759         requested
1760
1761 2008-08-04  Vincent Celier  <celier@adacore.com>
1762
1763         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1764         variable, but don't check the resulting value as it has no impact on
1765         the processing.
1766
1767         * opt.ads:
1768         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1769         when switch -gnateG is used.
1770
1771         * prep.adb:
1772         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1773         when the source is modified by the preprocessor and there is no
1774         preprocessing errors.
1775
1776         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1777
1778         * sinput-l.adb:
1779         (Load_File): Output the result of preprocessing if the source text was
1780         modified.
1781
1782         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1783
1784         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1785
1786         * ug_words: Add VMS equivalent for -gnateG
1787
1788         * vms_data.ads:
1789         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1790
1791 2008-08-04  Doug Rupp  <rupp@adacore.com>
1792
1793         * gcc-interface/utils2.c:
1794         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1795         in 32bit descriptor.
1796
1797 2008-08-04  Robert Dewar  <dewar@adacore.com>
1798
1799         * par-ch10.adb: Minor reformatting
1800
1801         * i-cobol.adb: Minor reformatting.
1802
1803 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1804
1805         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1806         anonymous access return type of a regular function that is not a
1807         compilation unit.
1808
1809 2008-08-04  Vincent Celier  <celier@adacore.com>
1810
1811         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1812
1813         * snames.adb: New standard name Global_Compilation_Switches
1814
1815         * snames.ads: New standard name Global_Compilation_Switches
1816
1817         * make.adb: Correct spelling error in comment
1818
1819 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1820
1821         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1822         target.
1823
1824 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1825
1826         * sem_ch10.adb: Minor comment fix.
1827
1828 2008-08-04  Robert Dewar  <dewar@adacore.com>
1829
1830         * restrict.adb: Improved messages for restriction warnings
1831
1832         * restrict.ads: Improved messages for restriction messages
1833
1834         * s-rident.ads (Profile_Name): Add No_Profile
1835
1836 2008-08-04  Robert Dewar  <dewar@adacore.com>
1837
1838         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1839
1840 2008-08-04  Robert Dewar  <dewar@adacore.com>
1841
1842         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1843
1844 2008-08-04  Vincent Celier  <celier@adacore.com>
1845
1846         * prj-proc.adb:
1847         (Copy_Package_Declarations): When inheriting package Naming from a
1848         project being extended, do not inherit source exception names.
1849
1850 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1851
1852         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1853         list of declaration to find previous subprogram, do not go to the
1854         original node of a generic unit.
1855
1856 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1857
1858         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1859         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1860
1861 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1862
1863         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1864         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1865         and adjust for above renaming.
1866         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1867         gnu_expr_alt_type parameter.  Convert the expression to it instead
1868         of changing its type in place.
1869         (build_function_stub): Adjust call to above function.
1870
1871 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1872
1873         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1874         code.  Do not get full definition of deferred constants with address
1875         clause for a use.  Do not ignore deferred constant definitions with
1876         address clause.  Ignore constant definitions already marked with the
1877         error node.
1878         <object>: Remove obsolete comment.  For a deferred constant with
1879         address clause, get the initializer from the full view.
1880         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1881         Rework and remove obsolete comment.
1882         <N_Object_Declaration>: For a deferred constant with address clause,
1883         mark the full view with the error node.
1884         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1885         formatting nits.
1886
1887 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1888
1889         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1890
1891         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1892         sem_prag.adb, snames.adb, snames.ads, snames.h,
1893         par-prag.adb: Undo previous stream related changes.
1894
1895         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1896
1897         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1898         Define enumeration type to designate different IO mechanisms.
1899         Enchance generic package Stream_Ops_Internal to include an
1900         implementation of Input and Output.
1901
1902         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1903         No_Stream_Optimization is active, choose the default byte IO
1904         implementations of stream attributes for Strings.
1905         Otherwise use the corresponding block IO version.
1906
1907 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1908
1909         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1910         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1911
1912 2008-08-01  Robert Dewar  <dewar@adacore.com>
1913
1914         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1915         convert plain identifier into defining identifier.
1916
1917 2008-08-01  Robert Dewar  <dewar@adacore.com>
1918
1919         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1920         warnings
1921
1922         * lib-xref.adb: Add error defense.
1923
1924 2008-08-01  Bob Duff  <duff@adacore.com>
1925
1926         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1927
1928 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1929
1930         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1931         correct accessibility levels. In the "when others" case, retrieve the
1932         access level of the Etype of Prev rather than Prev_Orig, because the
1933         original exression has not always been analyzed.
1934
1935 2008-08-01  Robert Dewar  <dewar@adacore.com>
1936
1937         * prj-nmsc.adb: Minor reformatting
1938
1939         * sem_ch4.adb: Minor reformatting
1940         Minor code reorganization
1941
1942         * prj.ads: Minor reformatting
1943
1944         * s-os_lib.adb: Minor reformatting
1945
1946         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1947         half encodings
1948
1949         * scans.ads: Minor reformatting.
1950
1951         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1952         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1953
1954         * sem_res.adb:
1955         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1956
1957         * sem_ch12.adb: Minor comment reformatting
1958
1959         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1960         keyword
1961
1962 2008-08-01  Robert Dewar  <dewar@adacore.com>
1963
1964         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1965         generating code
1966
1967 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1968
1969         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1970         converted is a real literal and the target type has static bounds,
1971         perform the conversion exactly to prevent floating-point anomalies on
1972         some targets.
1973
1974 2008-08-01  Vincent Celier  <celier@adacore.com>
1975
1976         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1977
1978         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1979
1980         * prj.adb (Object_Exist_For): Use Object_Generated, not
1981         Objects_Generated that is removed and was never modified anyway.
1982
1983         * prj.ads:
1984         (Path_Syntax_Kind): New enumeration type
1985         (Language_Config): New component Path_Syntax, defaulted to Host.
1986         Components PIC_Option and Objects_Generated removed, as they are not
1987         used.
1988
1989         * snames.adb: New standard name Path_Syntax
1990
1991         * snames.ads: New standard name Path_Syntax
1992
1993 2008-08-01  Vincent Celier  <celier@adacore.com>
1994
1995         * mlib-utl.adb:
1996         (Adalib_Path): New variable to store the path of the adalib directory
1997         when procedure Specify_Adalib_Dir is called.
1998         (Lib_Directory): If Adalib_Path is not null, return its value
1999         (Specify_Adalib_Dir): New procedure
2000
2001         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2002
2003 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2004
2005         * sem_prag.adb:
2006         (Check_Precondition_Postcondition): If not generating code, analyze the
2007         expression in a postcondition that appears in a subprogram body, so that
2008         it is properly decorated for ASIS use.
2009
2010 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
2011
2012         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2013         Orig_Prev to Prev in the case where the actual is N_Function_Call or
2014         N_Identifier. This was interfering with other cases that are rewritten
2015         as N_Identifier, such as allocators, resulting in passing of the wrong
2016         accessibility level, and based on testing this code is apparently no
2017         longer needed at all.
2018
2019 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2020
2021         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2022         procedure call whose prefix
2023         is a parameterless function call that returns an access_to_procedure.
2024
2025 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2026
2027         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2028         for RTX. Adding a suffix that is incremented at each iteration.
2029
2030 2008-08-01  Robert Dewar  <dewar@adacore.com>
2031
2032         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2033         Raise_Exception
2034
2035 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
2036
2037         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2038         paths, which are authorized by Windows but can lead to errors when used
2039         elsewhere.
2040
2041 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2042
2043         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2044         a pending instantiation for the body of a subprogram that is to be
2045         inlined.
2046
2047         * sem_ch12.adb:
2048         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2049
2050         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2051         create a pending instance for its body, so that calls to the subprogram
2052         can be inlined by the back-end.
2053
2054 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2055
2056         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2057         rts-rtx-w32).
2058
2059 2008-08-01  Robert Dewar  <dewar@adacore.com>
2060
2061         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2062
2063 2008-08-01  Doug Rupp  <rupp@adacore.com>
2064
2065         * gnat_rm.texi: Document new mechanism Short_Descriptor.
2066
2067         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2068         mechanism values.
2069
2070         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2071         mechanism and Short_Descriptor mechanism values.
2072
2073         * snames.adb (preset_names): Add short_descriptor entry.
2074
2075         * snames.ads: Add Name_Short_Descriptor.
2076
2077         * types.h: Add new By_Short_Descriptor mechanism values.
2078
2079         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2080         mechanism and Short_Descriptor mechanism values.
2081
2082         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2083         values.
2084         (Descriptor_Codes): Modify range for new mechanism values.
2085
2086         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2087         mechanism values.
2088
2089         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2090         (gnat_to_gnu_param): Handle By_Short_Descriptor.
2091
2092         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2093         (build_vms_descriptor32): New prototype.
2094         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2095
2096         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2097         argument in call fill_vms_descriptor.
2098
2099         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2100         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2101         (build_vms_descriptor): Renamed from build_vms_descriptor64.
2102         (convert_vms_descriptor32): New function.
2103         (convert_vms_descriptor64): New function.
2104         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2105         descriptors.
2106
2107         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2108         no longer needed.
2109
2110 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2111
2112         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2113         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2114         name.
2115
2116 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2117
2118         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2119         current directory so only fully qualified names are allowed.
2120
2121 2008-08-01  Robert Dewar  <dewar@adacore.com>
2122
2123         * gnat_ugn.texi:
2124         Minor editing, remove uncomfortable use of semicolon
2125
2126         * s-ststop.adb: Add some ??? comments
2127
2128         * sem_ch10.adb: Minor reformatting
2129
2130         * snames.ads:
2131         Minor comment fixes, some pragmas were not properly
2132         categorized in the comments, documentation change only
2133
2134         * xref_lib.adb: Minor reformatting
2135
2136         * sinput.adb: Minor reformatting
2137
2138         * gnatchop.adb: Minor reformatting
2139
2140         * sem_util.ads: Minor reformatting.
2141
2142         * opt.ads: Minor documentation fix
2143
2144         * scng.adb: Minor reformatting
2145
2146         * prj-part.adb: Update comments
2147
2148 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2149
2150         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2151         tagged synchronized type, use corresponding record type.
2152
2153 2008-08-01  Doug Rupp  <rupp@adacore.com>
2154
2155         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2156         dummy transfer address for debugging.
2157
2158         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2159
2160         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2161
2162 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2163
2164         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2165         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2166
2167 2008-07-31  Pascal Obry  <obry@adacore.com>
2168
2169         * prj-nmsc.adb: Keep Object and Exec directory casing.
2170
2171 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
2172
2173         * system-rtx-rtss.ads
2174         Change the default stack size. It is important to set the commit part.
2175
2176         * s-taprop-rtx.adb
2177         (Initialize): Get the clock resolution.
2178         (RT_Resolution): Return the clock resolution that is indicated by the
2179         system.
2180
2181         * s-parame-vxworks.adb
2182         Document that this body is used for RTX in RTSS (kernel) mode.
2183
2184         * gcc-interface/Makefile.in
2185         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2186         s-parame-vxworks.adb body in order to have reasonable stack sizes in
2187         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2188         cannot ask for too big values.
2189
2190 2008-07-31  Robert Dewar  <dewar@adacore.com>
2191
2192         * exp_aggr.adb: Minor reformatting
2193
2194         * makeutl.adb: Minor reformatting
2195
2196         * prj-env.adb: Minor reformatting
2197
2198 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2199
2200         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2201         tagged type is completed by a concurrent type.
2202
2203 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2204
2205         * sem_aggr.adb:
2206         (Resolve_Record_Aggregate): Bypass error that a type without
2207         components must have a "null record" aggregate when compiling for Ada
2208         2005, since it's legal to give an aggregate of form (others => <>)
2209         for such a type.
2210
2211 2008-07-31  Javier Miranda  <miranda@adacore.com>
2212
2213         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2214         handle synchronized types. Required to handle well the object.operation
2215         notation applied to synchronized types.
2216
2217 2008-07-31  Quentin Ochem  <ochem@adacore.com>
2218
2219         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2220         anymore - just used internally.
2221         Added handling of very small tasks - when the theoretical size is
2222         already full at the point of the call.
2223         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2224         not need to be added to the result.
2225
2226 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2227
2228         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2229         corresponding spec is a primitive wrapper. Update comment.
2230
2231 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2232
2233         * bindgen.adb Comment reformatting. Update the list of run-time globals.
2234         (Gen_Adainit_Ada): Add the declaration, import and value set for
2235         configuration flag Canonical_Streams.
2236         (Gen_Adainit_C): Add the declaration and initial value of external
2237         symbol __gl_canonical_streams.
2238
2239         * init.c: Update the list of global values computed by the binder.
2240
2241         * opt.ads: Add flag Canonical_Streams.
2242
2243         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2244         semantically handled pragmas.
2245
2246         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2247         (Analyze_Pragma): Add case for pragma Canonical_Streams.
2248
2249         * snames.adb: Add character value for name Canonical_Streams.
2250
2251         * snames.ads:
2252         Add Name_Canonical_Streams to the list of configuration pragmas.
2253         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2254
2255         * snames.h: Add a definition for Pragma_Canonical_Streams.
2256
2257         * s-ststop.adb:
2258         Add a flag and import to seize the value of external symbol
2259         __gl_canonical_streams. Update comment and initial value of constant
2260         Use_Block_IO.
2261
2262         * gnat_rm.texi: Add section of pragma Canonical_Streams.
2263
2264         * gnat_ugn.texi:
2265         Add pragma Canonical_Streams to the list of configuration pragmas.
2266
2267 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2268
2269         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2270         has the form A.B.C and B is a unit renaming, analyze its compilation
2271         unit and add a with_clause on A.b to the context.
2272
2273 2008-07-31  Vincent Celier  <celier@adacore.com>
2274
2275         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2276         return the empty string, instead of raising Constraint_Error.
2277
2278 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2279
2280         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2281
2282         * checks.adb (Apply_Accessibility_Check): Insert the check on
2283         Insert_Node.
2284
2285         * exp_attr.adb:
2286         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2287         to new parameter Insert_Node on call to Apply_Accessibility_Check.
2288         Necessary to distinguish the insertion node because the dereferenced
2289         formal may come from a rename, but the check must be inserted in
2290         front of the attribute.
2291
2292         * exp_ch4.adb:
2293         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2294         call to Apply_Accessibility_Check.
2295         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2296         on call to Apply_Accessibility_Check.
2297         Minor reformatting
2298
2299 2008-07-31  Javier Miranda  <miranda@adacore.com>
2300
2301         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2302         types when the candidate type is a synchronized type.
2303
2304         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2305         types, and complete management of synchronized types adding missing
2306         code to handle formal that is a synchronized type.
2307
2308         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2309         are not available and cause the compiler to blowup. Found compiling
2310         test with switch -gnatc
2311
2312         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2313         Has_Correct_Formal_Mode plus code cleanup.
2314
2315 2008-07-31  Bob Duff  <duff@adacore.com>
2316
2317         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2318         recognized as two end-of-lines, but it should be just one.
2319
2320 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2321
2322         * exp_ch9.adb: Minor reformatting
2323
2324         * tbuild.ads: Fix several occurrences of incorrectly referring to
2325         Name_Find as Find_Name.
2326
2327 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2328
2329         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2330         and the context is an object declaration with non-static bounds, treat
2331         the aggregate as non-static.
2332
2333 2008-07-31  Vincent Celier  <celier@adacore.com>
2334
2335         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2336         Move back spec of Parse_Single_Project to body, as it is not called
2337         outside of package Prj.Part.
2338         (Project_Data): Remove components Linker_Name, Linker_Path and
2339         Minimum_Linker_Options as they are no longer set.
2340         Remove function There_Are_Ada_Sources from package Prj and move code
2341         in the only place it was used, in Prj.Env.Set_Ada_Paths.
2342
2343 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2344
2345         * mlib-utl.ads: Fix typo.
2346
2347 2008-07-31  Robert Dewar  <dewar@adacore.com>
2348
2349         * sem_ch12.adb: Minor reformatting
2350
2351 2008-07-31  Sergey Rybin  <rybin@adacore.com>
2352
2353         * gnat_ugn.texi: Change the description of the
2354         Overly_Nested_Control_Structures: now the rule always requires a
2355         positive parameter for '+R' option
2356
2357 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2358
2359         * g-pehage.adb: Minor reformatting
2360
2361 2008-07-31  Pascal Obry  <obry@adacore.com>
2362
2363         * s-finimp.ads: Minor reformatting.
2364
2365 2008-07-31  Vincent Celier  <celier@adacore.com>
2366
2367         * s-regexp.ads: Minor comment fix
2368
2369 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2370
2371         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2372         so that we can compile this file successfully with -gnatc.
2373
2374 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2375
2376         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2377         of the type when looking for stream subprograms for type String,
2378         Wide_String and Wide_Wide_String.
2379
2380         * s-ststop.adb: Change the initialization expression of constant
2381         Use_Block_IO.
2382
2383 2008-07-31  Geert Bosch  <bosch@adacore.com>
2384
2385         * arit64.c:
2386         New file implementing __gnat_mulv64 signed integer multiplication with
2387         overflow checking
2388
2389         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2390
2391         * gcc-interface/gigi.h:
2392         (standard_types): Add ADT_mulv64_decl
2393         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2394
2395         * gcc-interface/utils.c:
2396         (init_gigi_decls): Add initialization of mulv64_decl
2397
2398         * gcc-interface/trans.c:
2399         (build_unary_op_trapv): New function
2400         (build_binary_op_trapv): New function
2401         (gnat_to_gnu): Use the above functions instead of
2402         build_{unary,binary}_op
2403
2404         * gcc-interface/Makefile.in
2405         (LIBGNAT_SRCS): Add arit64.c
2406         (LIBGNAT_OBJS): Add arit64.o
2407
2408 2008-07-31  Vincent Celier  <celier@adacore.com>
2409
2410         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2411         Linker'Default_Switches are declared. Warn if they are declared.
2412
2413 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2414
2415         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2416         Insert_Actions to place the pointer declaration in the code, rather
2417         than Insert_Before_And_Analyze, so that insertions of temporaries are
2418         kept in the proper order when transient scopes are present.
2419
2420
2421 2008-07-31  Robert Dewar  <dewar@adacore.com>
2422
2423         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2424
2425         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2426
2427         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2428         subprogram case
2429
2430 2008-07-31  Vincent Celier  <celier@adacore.com>
2431
2432         * s-os_lib.adb: Minor comment fix
2433
2434 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2435
2436         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2437         transfer pre/postconditions from generic copy to original tree, so that
2438         they will appear in each instance.
2439         (Process_PPCs): Do not transform postconditions into a procedure in a
2440         generic context, to prevent double expansion of check pragmas.
2441
2442         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2443         can be the renaming of the
2444         current instance, so check validity of the name accordingly.
2445
2446 2008-07-31  Robert Dewar  <dewar@adacore.com>
2447
2448         * mlib-utl.ads: Minor reformatting
2449
2450 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2451
2452         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2453         from context. This attribute must be usable in Ada95 mode.
2454         The attribute can appear in the body of a function marked
2455         Inline_Always, but in this case the postocondition is not enforced.
2456
2457         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2458         of an inlined call pre- and postconditions are legal
2459
2460 2008-07-31  Vincent Celier  <celier@adacore.com>
2461
2462         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2463         were for gprmake only
2464
2465 2008-07-31  Robert Dewar  <dewar@adacore.com>
2466
2467         * gnat_ugn.texi: Update -gnatN documentation.
2468
2469         * gnat_rm.texi: Add note about pre/postcondition
2470         pragmas not checked in conjunction with front-end inlining.
2471
2472 2008-07-31  Robert Dewar  <dewar@adacore.com>
2473
2474         * g-pehage.adb, g-pehage.ads: Minor reformatting
2475
2476 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2477
2478         * mlib-utl.ads, prj-makr.ads: Add comments.
2479
2480 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2481
2482         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2483         [WINDOWS]: Add s-winext.o.
2484
2485 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2486
2487         PR ada/36554
2488         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2489         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2490         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2491         Set precision to 1 for subtype of BOOLEAN_TYPE.
2492         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2493         (make_type_from_size): Deal with BOOLEAN_TYPE.
2494         * gcc-interface/misc.c (gnat_print_type): Likewise.
2495         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2496         Set boolean_type_node as its translation in the table, as well
2497         as boolean_false_node for False and boolean_true_node for True.
2498         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2499         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2500         (create_param_decl): Deal with BOOLEAN_TYPE.
2501         (build_vms_descriptor): Likewise.
2502         (build_vms_descriptor64): Likewise.
2503         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2504
2505 2008-07-30  Robert Dewar  <dewar@adacore.com>
2506
2507         * exp_ch9.adb: Minor reformatting
2508
2509         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2510         if no primitive operation is found.
2511
2512         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2513
2514         * sem_ch8.adb: Minor reformatting
2515
2516 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2517
2518         * g-pehage.adb:
2519         Remove a limitation on the length of the words handled by the minimal
2520         perfect hash function generator.
2521
2522         * g-pehage.ads:
2523         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2524         Fix some typos.
2525
2526 2008-07-30  Robert Dewar  <dewar@adacore.com>
2527
2528         * gnatlink.adb: Minor reformatting
2529
2530 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2531
2532         * rtsfind.adb (Check_RPC): Check version consistency even when not
2533         generating RCI stubs. Provide more detailed error message in case of
2534         mismatch.
2535
2536 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2537
2538         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2539         as a actual in an instance, check for a missing attribute to prevent
2540         program_error on an illegal program.
2541
2542         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2543         error if primitive is not found, so that exception can be handled
2544         elsewhere on illegal programs.
2545
2546 2008-07-30  Robert Dewar  <dewar@adacore.com>
2547
2548         * uintp.adb (UI_GCD): Fix potential overflow
2549
2550 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2551
2552         * einfo.adb: Flag245 is now used.
2553         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2554         check to include functions.
2555         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2556         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2557         include functions.
2558         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2559         to the list of displayed flags.
2560
2561         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2562         Wrapped_Entity. These two flags are now present in functions.
2563         New flag Is_Private_Primitive.
2564         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2565
2566         * exp_ch9.adb:
2567         (Build_Wrapper_Bodies): New subprogram.
2568         (Build_Wrapper_Body): The spec and body have been moved to in
2569         Build_Wrapper_ Bodies. Code cleanup.
2570         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2571         Wrappers are now generated for primitives declared between the private
2572         and full view of a concurrent type that implements an interface.
2573         (Build_Wrapper_Specs): New subprogram.
2574         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2575         creation mechanism with a call to Build_Wrapper_Bodies.
2576         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2577         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2578         (Expand_N_Task_Body): Replace the wrapper body creation
2579         mechanism with a call to Build_Wrapper_Bodies.
2580         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2581         creation mechanism with a call to Build_Wrapper_Specs.
2582         (Is_Private_Primitive_Subprogram): New subprogram.
2583         (Overriding_Possible): Code cleanup.
2584         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2585
2586         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2587
2588         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2589         (Process_Full_View): Build wrapper specs for all primitives
2590         that belong to a private view completed by a concurrent type
2591         implementing an interface.
2592
2593         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2594         is a primitive of a
2595         concurrent type with a private view that implements an interface, try to
2596         find the proper spec.
2597         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2598         primitive if the type of its first parameter is a non-generic tagged
2599         private type.
2600         (Analyze_Subprogram_Specification): Code reformatting.
2601         (Disambiguate_Spec): New routine.
2602         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2603         (Is_Private_Concurrent_Primitive): New routine.
2604
2605         * sem_ch6.ads:
2606         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2607
2608 2008-07-30  Doug Rupp  <rupp@adacore.com>
2609
2610         * gigi.h (build_vms_descriptor64): New function prototype.
2611         (fill_vms_descriptor): Modified function prototype.
2612
2613         * utils.c (build_vms_descriptor64): New function.
2614
2615         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2616
2617         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2618         argument.
2619
2620         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2621         64bit and 32bit descriptor and save the 64bit version as an alternate
2622         TREE_TYPE in the parameter.
2623         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2624         thin pointer.
2625
2626         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2627
2628 2008-07-30  Robert Dewar  <dewar@adacore.com>
2629
2630         * make.adb: Minor reformatting
2631
2632         * mlib-utl.adb: Minor reformatting
2633
2634         * osint.ads: Minor reformatting
2635
2636 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2637
2638         * adaint.c
2639         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2640         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2641         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2642
2643         * cio.c
2644         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2645         the function RtPrintf for console output.
2646
2647         * argv.c Do not use the environ variable for RTX.
2648
2649         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2650         been moved before the call to Osint.Add_Default_Search_Dirs in order
2651         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2652         from the appropriate run time.
2653
2654         * targparm.ads
2655         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2656         target is a RTSS module for RTX.
2657
2658         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2659         RTX_RTSS_Kernel_Module
2660         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2661
2662         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2663         exception handling mechanism for Windows and RTX in Win32 mode, but
2664         not for RTX in kernel mode (RTSS).
2665         (LIBGNAT_SRCS): Remove ada.h
2666
2667 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2668
2669         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2670         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2671         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2672         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2673         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2674         ALL_ADA_CFLAGS): Remove.
2675         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2676         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2677         (GCC_CFLAGS): Remove X_CFLAGS.
2678         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2679         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2680         (ADA_CFLAGS): Substitute.
2681
2682 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2683
2684         PR ada/5911
2685         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2686         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2687         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2688         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2689         by stamp-gnatlib2-rts.
2690
2691 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2692
2693         PR documentation/15479
2694         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2695         statement for GNAT.  Add @copying stanza, use it.  Update to
2696         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2697         title as Front-Cover Text.
2698         * gnat_rm.texi: Likewise.
2699         * gnat_ugn.texi: Likewise.
2700
2701 2008-07-29  Jan Hubicka  <jh@suse.cz>
2702
2703         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2704         check.
2705
2706 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2707
2708         * gcc-interface: New directory.
2709
2710         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2711         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2712         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2713         to gcc-interface subdirectory.
2714
2715 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2716
2717         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2718
2719 2008-07-28  Jan Hubicka  <jh@suse.cz>
2720
2721         * misc.c (gnat_post_options): Do not set flag_no_inline.
2722
2723 2008-07-28  Richard Guenther  <rguenther@suse.de>
2724
2725         Merge from gimple-tuples-branch.
2726
2727         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2728
2729         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2730         this is called for an elab proc to be discarded if empty.
2731         * utils.c (end_subprog_body): Honor ELAB_P.
2732         (build_function_stub): Adjust call to end_subprog_body.
2733         * trans.c (Subprogram_Body_to_gnu): Likewise.
2734         (gigi): Reorganize processing of elab procs to prevent
2735         gimplifying twice, using the new end_subprog_body argument.
2736
2737         2008-07-19  Richard Guenther  <rguenther@suse.de>
2738
2739         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2740         (utils.o): Likewise.
2741         * trans.c: Include tree-iterator.h.
2742         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2743         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2744         (set_expr_location_from_node): Likewise.
2745         (gigi): Tuplify.
2746         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2747         of GENERIC_NEXT.
2748         * utils.c: Include tree-iterator.h.
2749         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2750
2751         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2752
2753         * trans.c: Include gimple.h instead of tree-gimple.h.
2754         * utils.c: Same.
2755
2756         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2757
2758         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2759
2760 2008-07-25  Jan Hubicka  <jh@suse.cz>
2761
2762         * utils.c (end_subprog_body): Remove inline trees check.
2763         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2764
2765 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2766
2767         * raise-gcc.c: Move tsystem.h before tm.h.
2768
2769 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2770
2771         * gnathtml.pl: New file.
2772
2773 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2774
2775         * targtyps.c (get_target_default_allocator_alignment): Use
2776         MALLOC_ABI_ALIGNMENT.
2777
2778 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2779
2780         * adaint.c (__MINGW32__ section): Include ctype.h and define
2781         a fallback ISALPHA if IN_RTS.
2782         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2783
2784 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2785
2786         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2787         argument, to apply to references in addition to definitions.  Prevent
2788         setting TREE_STATIC on externals.
2789         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2790
2791 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2792
2793         PR documentation/15479
2794         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2795         Replace backets around optional parameters with @ovar
2796         where possible, use @r{[}, @r{]} otherwise.
2797         Replace some @r, @i, and @emph with @var where appropriate.
2798
2799 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2800
2801         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2802
2803 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2804
2805         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2806         -Wc++-compat warnings.
2807         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2808         __gnat_locate_exec_on_path): Likewise.
2809         * decl.c (annotate_value): Likewise.
2810         * misc.c (gnat_handle_option): Likewise.
2811         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2812         post_error_ne_tree): Likewise.
2813
2814 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2815
2816         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2817         version of its type, attempt to first convert its elements.
2818
2819 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2820
2821         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2822
2823 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2824
2825         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2826
2827 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2828
2829         * utils2.c (known_alignment): Derive the alignment from pointed-to
2830         types only if it is otherwise unknown.
2831         <INTEGER_CST>: Tidy.
2832         <MULT_EXPR>: Likewise.
2833         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2834         that of the base.
2835
2836 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2837
2838         PR ada/36573
2839         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2840
2841 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842
2843         * gnat_rm.texi (Implementation Defined Characteristics)
2844         (Standard Library Routines): Use @smallexample for indented
2845         text.  Drop Indentation outside examples.
2846         * gnat_ugn.texi: Likewise.
2847
2848 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2849
2850         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2851         if undefined.
2852         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2853         realignment with force_align_arg_pointer attribute on foreign
2854         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2855
2856 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2857
2858         * utils.c (rest_of_record_type_compilation): When computing
2859         encodings for the components of a variable size type, early
2860         strip conversions on the current position expression to make
2861         sure it's shape is visible.  Use remove_conversions for this
2862         purpose.
2863
2864 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2865
2866         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2867         constrained subtype of a discriminated type, discard the fields that
2868         are beyond its limits according to its size.
2869
2870 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2871
2872         * utils.c (create_subprog_decl): If this is for the 'main' entry
2873         point according to the asm name, redirect main_identifier_node.
2874
2875 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2876
2877         * decl.c (components_to_record): Adjust the packedness for the
2878         qualified union as well.
2879
2880 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2881
2882         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2883         checks non fatal.
2884
2885 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2886
2887         * sem_res.adb (Large_Storage_Type): A type is large if it
2888         requires as many bits as Positive to store its values and its
2889         bounds are known at compile time.
2890         * sem_ch13.adb (Minimum_Size): Note that this function returns
2891         0 if the size is not known at compile time.
2892
2893 2008-06-06  Nicolas Setton  <setton@adacore.com>
2894             Olivier Hainque  <hainque@adacore.com>
2895
2896         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2897         attribute, parallel descriptive type attached to another
2898         type for debug info generation purposes.
2899         * utils.c (add_parallel_type): New function, register
2900         parallel type to be attached to a type.
2901         (get_parallel_type): New function, fetch a registered
2902         parallel type, if any.
2903         (rest_of_record_type_compilation): Register the parallel
2904         type we make for variable size records.
2905         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2906         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2907         parallel debug types we make.
2908         * trans.c (extract_encoding, decode_name): New functions.
2909         (gigi): If the DWARF attribute extensions are available, setup
2910         to use them.
2911         * lang.opt: Register language specific processing request
2912         for -gdwarf+.
2913         * misc.c (gnat_dwarf_extensions): New global variable. How much
2914         do we want of our DWARF extensions. 0 by default.
2915         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2916         (gnat_post_options): Map gnat_dwarf_extensions to the
2917         commonuse_gnu_debug_info_extensions for later processing.
2918
2919 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2920
2921         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2922
2923 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2924
2925         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2926         * gnat_ugn.texi (Style Checking)
2927         (Adding the Results of Compiler Checks to gnatcheck Output)
2928         (Example of Binder Output File): Fix typos.
2929         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2930         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2931         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2932         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2933         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2934         sinfo.ads, utils.c: Fix typos in comments.
2935         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2936
2937 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2938
2939         * sem_eval.adb: Minor reformatting
2940
2941 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2942
2943         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2944         is abstract, do not apply abstractness check on subprogram if this is
2945         a renaming declaration.
2946
2947 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2948
2949         PR ada/864
2950         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2951         allow recognition of program suffix in addition to prefix.
2952
2953         * gnatchop.adb (Locate_Executable): Add support for prefix.
2954
2955         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2956         mlib-utl.adb: Adjust calls to Program_Name.
2957
2958 2008-05-29  Robert Dewar  <dewar@adacore.com>
2959
2960         * sem_ch3.adb: Minor reformatting
2961         * sem_prag.adb: Minor reformatting
2962         * sem_res.adb: Minor reformatting
2963         * sinput-p.ads: Minor reformatting
2964
2965 2008-05-29  Javier Miranda  <miranda@adacore.com>
2966
2967         * sem_util.adb:
2968         (Abstract_Interface_List): Add missing support for full type-declaration
2969         associated with synchronized types.
2970
2971 2008-05-29  Robert Dewar  <dewar@adacore.com>
2972
2973         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2974
2975 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2976
2977         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2978         access type, wrap the expression in a conversion to force an
2979         accessibility check.
2980
2981         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2982         accessibility checks even when expansion is disabled in order to
2983         generate messages in the presence of previous errors or in
2984         semantics-only mode.
2985
2986 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2987
2988         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2989         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2990
2991 2008-05-28  Vincent Celier  <celier@adacore.com>
2992
2993         PR ada/34446
2994         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2995         preprocessing expressions
2996
2997 2008-05-28  Vincent Celier  <celier@adacore.com>
2998
2999         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3000         for preprocessing
3001
3002         * sinput-p.ads: Minor comment update and reformatting
3003
3004 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3005
3006         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3007         type has a deeper level than any master only when it is the type of an
3008         access parameter.
3009
3010 2008-05-28  Javier Miranda  <miranda@adacore.com>
3011
3012         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3013
3014 2008-05-28  Javier Miranda  <miranda@adacore.com>
3015
3016         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3017         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3018         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3019         Add code that was previously located in
3020         Find_Overridden_Synchronized_Primitive because it is only used here.
3021
3022 2008-05-28  Sergey Rybin  <rybin@adacore.com>
3023
3024         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3025         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3026
3027 2008-05-28  Robert Dewar  <dewar@adacore.com>
3028
3029         * restrict.ads:
3030         Add missing restrictions, and properly label all GNAT defined ones
3031
3032         * rtsfind.ads:
3033         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3034         Add entry for Ada.Task_Termination.Set_Specific_Handler
3035         Add entry for Ada.Task_Termination.Specific_Handler
3036
3037         * s-rident.ads:
3038         Add missing restrictions and properly mark all gnat defined ones
3039
3040         * sem_ch3.adb:
3041         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3042
3043         * sem_res.adb:
3044         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3045
3046         * gnat_rm.texi: Add missing restrictions, and properly label all
3047         GNAT defined ones
3048
3049 2008-05-28  Robert Dewar  <dewar@adacore.com>
3050
3051         * restrict.adb:
3052         (Check_Restriction): violation of restriction No_Finalization is
3053         treated as a serious error to stop expansion
3054
3055 2008-05-28  Robert Dewar  <dewar@adacore.com>
3056
3057         * exp_util.adb: Minor reformatting
3058         * exp_util.ads: Minor reformatting.
3059
3060 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
3061
3062         * Make-lang.in: Remove gprmake.
3063
3064         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3065
3066 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3067
3068         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3069         improper progenitor names, and avoid cascaded errors.
3070
3071 2008-05-28  Robert Dewar  <dewar@adacore.com>
3072
3073         * gnat_rm.texi: Add note on Old giving warning when applied to constant
3074
3075         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3076         a constant
3077
3078 2008-05-28  Robert Dewar  <dewar@adacore.com>
3079
3080         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3081         size
3082
3083 2008-05-28  Robert Dewar  <dewar@adacore.com>
3084
3085         * exp_ch5.adb:
3086         (Expand_Simple_Function_Return): Copy unaligned result into temporary
3087
3088 2008-05-28  Javier Miranda  <miranda@adacore.com>
3089
3090         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3091         for user-defined predefined primitives.
3092
3093         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3094         (Find_Overridden_Synchronized_Primitive): Ditto.
3095
3096         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3097
3098 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3099
3100         * a-ststio.adb, s-direio.adb:
3101         Further code clean up of previous change.
3102         Update comments.
3103
3104 2008-05-27  Vincent Celier  <celier@adacore.com>
3105
3106         * prj-nmsc.adb: Minor reformatting
3107
3108 2008-05-27  Bob Duff  <duff@adacore.com>
3109
3110         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3111         untagged private type with a tagged full type, where the full type has
3112         a self reference, create the corresponding class-wide type early, in
3113         case the self reference is "access T'Class".
3114
3115 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3116
3117         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3118         tasks and context is an object declaration. create master entity before
3119         expansion.
3120
3121 2008-05-27  Robert Dewar  <dewar@adacore.com>
3122
3123         * mlib-prj.adb: Minor reformatting
3124
3125         * prj-part.adb: Minor reformatting
3126
3127         * prj.ads: Minor reformatting
3128
3129         * exp_ch3.adb: Minor reformatting.
3130
3131         * sem_ch3.ads: Minor reformatting
3132
3133         * sem_eval.adb: Minor reformatting
3134
3135 2008-05-27  Vincent Celier  <celier@adacore.com>
3136
3137         * gnatcmd.adb:
3138         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3139
3140 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3141
3142         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3143         tasks, create an activation chain now, before the expansion into
3144         assignments and build-in-place calls that require the presence of an
3145         activation chain.
3146         (Backend_Processing_Possible): If the component type is inherently
3147         limited, the aggregate must be expanded into individual built-in-place
3148         assignments.
3149
3150         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3151         determine whether an allocation extra parameter must be built, to
3152         handle case of a private type whose full type is a discriminated type
3153         with defaults.
3154
3155 2008-05-27  Bob Duff  <duff@adacore.com>
3156
3157         * gnat_rm.texi:
3158         Document the new behavior regarding trampolines.
3159
3160 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3161
3162         * a-direio.adb, a-sequio.adb: Replace address clause by
3163         unrestricted_access, simpler and compatible with .NET.
3164
3165 2008-05-27  Vincent Celier  <celier@adacore.com>
3166
3167         * prj-part.adb:
3168         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3169         a project file, so that symbolic links are not resolved.
3170
3171 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3172
3173         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3174         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3175         portable across GNAT targets, since this kind of address clause is not
3176         supported by VM back-ends (.NET/JGNAT).
3177
3178 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3179
3180         * bindgen.adb: Update comments.
3181
3182         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3183
3184 2008-05-27  Vincent Celier  <celier@adacore.com>
3185
3186         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3187         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3188         mlib-tgt.adb, prj-env.adb, prj-env.ads:
3189         (Path_Information): New record type
3190         Use component of type Path_Information when there are two paths, one in
3191         canonical format and one in display format.
3192         Update the project manager to these new components.
3193
3194 2008-05-27  Robert Dewar  <dewar@adacore.com>
3195
3196         * makeutl.adb: Minor reformatting
3197         * prj-nmsc.adb: Minor reformatting
3198         * s-stausa.adb: Minor reformatting
3199         * s-stausa.ads: Minor reformatting
3200         * sem_ch6.adb: Minor reformatting
3201
3202 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3203
3204         * sem_res.adb: Minor comment fixes
3205
3206 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3207
3208         * makeutl.adb: Minor code reorganization
3209
3210         * exp_aggr.adb: Add ??? comment
3211         Fix typo
3212
3213         * exp_ch6.adb: Minor reformatting
3214
3215 2008-05-27  Quentin Ochem  <ochem@adacore.com>
3216
3217         * s-stausa.adb (Initialize): Updated result initialization, and
3218         initialization of environment stack.
3219         (Fill_Stack): Improved computation of the pattern zone, taking into
3220         account already filled at the calling point.
3221         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3222         Measure and Overflow_Guard.
3223         (Report_Result): Fixed computation of the result using new fields of
3224         Stack_Analyzer.
3225
3226         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3227         params by more explicit Stack_Size / Max_Pattern_Size params.
3228         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3229         Added Stack_Used_When_Filling field.
3230         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3231         Min_Measure and Max_Measure fields.
3232
3233         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3234
3235 2008-05-27  Vincent Celier  <celier@adacore.com>
3236
3237         * prj-nmsc.adb:
3238         (Check_File): Make sure that a unit that replaces the same unit in a
3239          project being extended is properly processed.
3240
3241 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3242
3243         * sem_ch3.adb:
3244         (Get_Discr_Value): Remove obsolete code that failed to find the value
3245         of a discriminant for an inherited task component appearing in a type
3246         extension.
3247
3248 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3249
3250         (System.File_IO.{Close, Delete, Reset}):
3251         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3252
3253         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3254         Pass File parameter by reference.
3255
3256 2008-05-27  Vincent Celier  <celier@adacore.com>
3257
3258         * prj-nmsc.adb:
3259         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3260         sources of the same project that have the same object file name.
3261         (Find_Explicit_Sources): Always remove a source exception that was not
3262         found.
3263
3264 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3265
3266         * sem_ch3.adb: Minor reformatting
3267
3268 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3269
3270         * sem_ch6.adb:
3271         (Is_Interface_Conformant): Handle properly a primitive operation that
3272         overrides an interface function with a controlling access result.
3273         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3274         inherited and overriding operations, omit as well the conformance check
3275         on result types, to prevent spurious errors.
3276
3277 2008-05-27  Vincent Celier  <celier@adacore.com>
3278
3279         * makeutl.ads, makeutl.adb:
3280         (Set_Location): New procedure
3281         (Get_Location): New function
3282         (Update_Main): New procedure
3283
3284 2008-05-27  Vincent Celier  <celier@adacore.com>
3285
3286         * prj-nmsc.adb:
3287         (Check_Library): Allow standard project to be extended as a static
3288         library project.
3289         (Get_Mains): Do not inherit attribute Main in an extending library
3290         project.
3291
3292 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3293
3294         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3295         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3296         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3297         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3298         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3299         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3300         * system-mingw.ads (Always_Compatible_Rep): Likewise.
3301         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3302         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3303         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3304
3305 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3306
3307         * sem_attr.adb: add guard to previous patch.
3308
3309 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3310
3311         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3312         a synchronized tagged type, do not attempt to build dispatch table for
3313         full view. The table is built for the corresponding record type, which
3314         has its own declaration.
3315
3316 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
3317
3318         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3319         to the known type entity E, rather than setting it to Any_Type. Fixes
3320         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3321         for objects whose type had an illegal constraint.
3322
3323 2008-05-27  Vincent Celier  <celier@adacore.com>
3324
3325         * gnat_ugn.texi:
3326         Add succinct documentation for attribute Excluded_Source_List_File
3327
3328 2008-05-27  Vincent Celier  <celier@adacore.com>
3329
3330         * prj-attr.adb: Add new project level attribute Map_File_Option
3331
3332         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3333
3334         * prj.ads: Minor reformatting and comment update
3335         (Project_Configuration): New component Map_File_Option
3336
3337         * snames.adb: New standard name Map_File_Option
3338
3339         * snames.ads: New standard name Map_File_Option
3340
3341 2008-05-27  Vincent Celier  <celier@adacore.com>
3342
3343         * xsnames.adb: Remove unused variable Oname
3344
3345 2008-05-27  Doug Rupp  <rupp@adacore.com>
3346
3347         * exp_ch6.adb:
3348         (Expand_N_Function_Call): Fix comments. Minor reformatting.
3349
3350         * exp_vfpt.ads:
3351         (Expand_Vax_Foreign_Return): Fix comments.
3352
3353 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3354
3355         * exp_dist.adb: Minor reformating
3356
3357 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3358
3359         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3360         No_Default_Initialization, which is now delayed until the freeze point
3361         of the object. Add a comment about deferral of the check.
3362
3363         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3364         on objects is moved here.
3365
3366 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3367
3368         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3369         (Compare_Array_S16): Adjust for above change.
3370         * s-casi32.adb (Uword): Likewise.
3371         (Compare_Array_S32): Likewise.
3372         * s-casi64.adb (Uword): Likewise.
3373         (Compare_Array_S64): Likewise.
3374         * s-caun16.adb (Uhalf): Likewise.
3375         (Compare_Array_U16): Likewise.
3376         * s-caun32.adb (Uword): Likewise.
3377         (Compare_Array_U32): Likewise.
3378         * s-caun64.adb (Uword): Likewise.
3379         (Compare_Array_U64): Likewise.
3380
3381 2008-05-26  Robert Dewar  <dewar@adacore.com>
3382
3383         * exp_ch6.adb: Add ??? comment for previous change
3384
3385         * exp_vfpt.adb: Minor reformatting
3386
3387         * exp_vfpt.ads: Add ??? comment for last change
3388
3389         * sem_attr.adb: Add some ??? comments for previous change
3390
3391         * s-vaflop.ads: Add comments for previous change
3392
3393 2008-05-26  Doug Rupp  <rupp@adacore.com>
3394
3395         * s-vaflop-vms-alpha.adb:
3396         Remove System.IO use clause, to prevent spurious ambiguities when
3397         package is access through rtsfind.
3398
3399 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3400
3401         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3402         made in front-end
3403
3404 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3405
3406         * sem_attr.adb:
3407         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3408         converted to S (A)'address only if A .. B is known to be a non-null
3409         range.
3410
3411 2008-05-26  Doug Rupp  <rupp@adacore.com>
3412
3413         * s-vaflop.adb:
3414         (Return_D, Return_F, Return_G): New functions.
3415
3416         * s-vaflop.ads:
3417         (Return_D, Return_F, Return_G): New functions.
3418
3419         * exp_vfpt.adb:
3420         (Expand_Vax_Foreign_Return): New procedure
3421
3422         * exp_vfpt.ads:
3423         (Expand_Vax_Foreign_Return): New procedure
3424
3425         * rtsfind.ads:
3426         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3427         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3428
3429         * exp_ch6.adb:
3430         Import Exp_Vfpt
3431         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3432
3433         * s-vaflop-vms-alpha.adb:
3434         (Return_D, Return_F, Return_G): New functions.
3435
3436 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3437
3438         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3439         init proc entity when there is actual default initialization associated
3440         with the component type, to avoid spurious errors on objects of scalar
3441         array types that are marked Is_Public when No_Default_Initialization
3442         applies.
3443
3444 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3445
3446         * rtsfind.ads, rtsfind.adb:
3447         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3448         (Check_RPC): Support per-PCS-kind API versioning.
3449
3450         exp_dist.ads, exp_dist.adb:
3451         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3452         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3453          library function Get_RACW.
3454         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3455         library function Get_Reference.
3456         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3457         through an intermediate Any.
3458         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3459         going through an intermediate Any.
3460
3461         * sem_dist.adb: Minor reformatting.
3462
3463 2008-05-26  Javier Miranda  <miranda@adacore.com>
3464
3465         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3466         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3467         (Is_Internal): Adding documentation on internal entities that have
3468         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3469
3470         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3471         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3472         Added assertion to force entities with this attribute to have
3473         attribute Is_Internal set to True.
3474         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3475
3476         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3477         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3478         a new implementation.
3479         (Add_Interface_Tag_Components): Remove special management of
3480         synchronized interfaces.
3481         (Analyze_Interface_Declaration): Minor reformating
3482         (Build_Derived_Record_Type): Minor reformating
3483         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3484         predefined primitive inherited from interface type because the body of
3485         internally generated predefined primitives of tagged types are generated
3486         later by Freeze_Type
3487         (Derive_Subprogram): Avoid generating an internal name if the parent
3488         subprogram overrides an interface primitive.
3489         (Derive_Subprograms): New implementation that keeps separate the
3490         management of tagged types not implementing interfaces, from tagged
3491         types that implement interfaces.
3492         (Is_Progenitor): New implementation.
3493         (Process_Full_View): Add documentation
3494         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3495         by call to Derive_Progenitor_Subprograms.
3496
3497         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3498         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3499         Skip_Controlling_Formals.
3500
3501         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3502         (Check_Conventions): New implementation. Remove local subprogram
3503         Skip_Check. Remove formal Search_From of routine Check_Convention.
3504         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3505         Skip_Controlling_Formals.
3506         (New_Overloaded_Entity): Enable addition of predefined dispatching
3507         operations.
3508
3509         * sem_disp.ads
3510         (Find_Primitive_Covering_Interface): New subprogram.
3511
3512         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3513         the task body procedure as a primitive of the corresponding tagged
3514         type.
3515         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3516         to the list of primitives.
3517         (Find_Primitive_Covering_Interface): New subprogram.
3518         (Override_Dispatching_Operation): Add documentation.
3519
3520         * sem_type.adb (Covers): Minor reformatings
3521
3522         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3523         Collect_Interfaces.
3524         Rename formal.
3525         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3526         (Implements_Interface): New subprogram.
3527         (Is_Parent): Removed.
3528         (Primitive_Names_Match): New subprogram.
3529         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3530         (Ultimate_Alias): New subprogram.
3531
3532         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3533         Collect_Interfaces.
3534         Remove special management for synchronized types. Rename formal. Remove
3535         internal subprograms Interface_Present_In_Parent and Add_Interface.
3536         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3537         on non-record types by code to return false in such case.
3538         (Implements_Interface): New subprogram.
3539         (Is_Parent): Removed. No special management is now required for
3540         synchronized types covering interfaces.
3541         (Primitive_Names_Match): New subprogram.
3542         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3543         (Ultimate_Alias): New subprogram.
3544
3545         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3546         Add internal entities associated with secondary dispatch tables to
3547         the list of tagged type primitives that are not interfaces.
3548         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3549         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3550         the management of predefined equality operator. In addition, if
3551         the type has an equality function corresponding with a primitive
3552         defined in an interface type, the inherited equality is abstract
3553         as well, and no body can be created for it.
3554
3555         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3556         exp_util to exp_disp.
3557         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3558         an entity corresponds with one of the predefined primitives required
3559         to implement interfaces.
3560         Update copyright notice.
3561
3562         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3563         final check on abstract subprograms all the primitives associated with
3564         interface primitives because they must be visible in the public and
3565         private part.
3566         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3567         interface type. This allows the use of this routine, for debugging
3568         purposes, when the tagged type is not fully decorated.
3569         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3570         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3571         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3572         entity corresponds with one of the predefined primitives required to
3573         implement interfaces.
3574
3575         * exp_util.adb (Find_Interface_ADT): New implementation
3576         (Find_Interface): Removed.
3577
3578         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3579         list of interfaces associated with nodes
3580         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3581
3582 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3583
3584         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3585         condition for assignment to temporary.
3586
3587 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3588
3589         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3590         checks on the upper bound if the index type is a modular type, to
3591         prevent wrap-around computations when size is close to upper bound of
3592         type.
3593
3594 2008-05-26  Robert Dewar  <dewar@adacore.com>
3595
3596         * sem_ch3.adb: Minor reformatting
3597
3598 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3599
3600         * sem_ch12.adb (Remove_Parent): Use specification of instance
3601         to retrieve generic parent,
3602         to handle properly the case where the instance is a child unit.
3603         Add guard to handle properly wrapper packages.
3604         Minor reformatting
3605
3606 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3607
3608         * sinfo.ads: Minor reformatting
3609
3610 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3611
3612         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3613         Generate a tag check when the result subtype of a function, defined by
3614         an access definition, designates a specific tagged type.
3615         (Make_Tag_Check): New routine.
3616
3617 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3618
3619         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3620
3621 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3622
3623         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3624         (builtin_decl_for): Likewise.
3625         * trans.c (gigi): Likewise.
3626         * utils.c (def_builtin_1): Fix formatting.
3627
3628 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3629
3630         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3631         Create the statements which map a string name to protected or task
3632         entry indix.
3633
3634         * exp_ch9.adb: Add with and use clause for Stringt.
3635         Minor code reformatting.
3636         (Build_Entry_Names): New routine.
3637         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3638         for flag Build_Entry_Names which controls the allocation of the data
3639         structure for the string names of entries.
3640
3641         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3642
3643         * exp_util.adb (Entry_Names_OK): New function.
3644
3645         * exp_util.ads (Entry_Names_OK): New function.
3646
3647         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3648         enumerations RE_Id and RE_Unit_Table.
3649
3650         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3651         (Free_Entry_Names_Array): New routine.
3652
3653         * s-taskin.ads: Comment reformatting.
3654         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3655         Add component Entry_Names to record Ada_Task_Control_Block.
3656         (Free_Entry_Names_Array): New routine.
3657
3658         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3659         dynamically allocate an array
3660         of string pointers. This structure holds string entry names.
3661         (Free_Entry_Names): New routine.
3662         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3663         (Set_Entry_Names): New routine.
3664
3665         * s-tassta.ads:
3666         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3667         control the allocation of the data structure which stores entry names.
3668         (Set_Entry_Name): New routine.
3669
3670         * s-tpoben.adb:
3671         Add with and use clause for Ada.Unchecked_Conversion.
3672         (Finalize): Deallocate the entry names array.
3673         (Free_Entry_Names): New routine.
3674         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3675         create an array of string pointers to hold the entry names.
3676         (Set_Entry_Name): New routine.
3677
3678         * s-tpoben.ads:
3679         Add field Entry_Names to record Protection_Entries.
3680         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3681         (Set_Entry_Name): New routine.
3682
3683 2008-05-26  Vincent Celier  <celier@adacore.com>
3684
3685         * prj-nmsc.adb:
3686         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3687
3688         * prj.ads:
3689         (Project_Configuration): New component Shared_Lib_Driver
3690
3691 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3692
3693         * inline.adb:
3694         (Cleanup_Scopes): For a protected operation, transfer finalization list
3695         to protected body subprogram, to force cleanup actions when needed.
3696
3697 2008-05-26  Robert Dewar  <dewar@adacore.com>
3698
3699         * sem_cat.adb: Minor reformatting
3700
3701         * gnatname.adb: Minor reformatting
3702
3703         * osint.ads: Minor reformatting
3704
3705         * s-carun8.ads: Minor reformatting
3706
3707         * g-heasor.ads: Minor comment fix (unit is now pure)
3708
3709 2008-05-26  Robert Dewar  <dewar@adacore.com>
3710
3711         * exp_ch2.adb:
3712         (Expand_Current_Value): Properly type generated integer literal
3713
3714 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3715
3716         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3717         Separate_Numeric_Error_Handlers.
3718
3719 2008-05-26  Pascal Obry  <obry@adacore.com>
3720
3721         * sem_aggr.adb: Minor reformatting.
3722
3723 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3724
3725         * s-osinte-aix.adb:
3726         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3727         the scheduling policy to FIFO within priorities or round-robin
3728         respectively.
3729         Hence, the priority must be set in this case to the one selected by the
3730         user.
3731
3732 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3733
3734         * sem_ch12.adb:
3735         (Remove_Parent): If the enclosing scope is an instance whose generic
3736         parent is declared within some parent scope of the just completed
3737         instance, make full views of the entities in that parent visible, when
3738         applicable.
3739
3740 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3741
3742         * mingw32.h (STD_MINGW): Set to true for target w64.
3743
3744 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3745
3746         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3747         instead of TREE_STATIC on the ADDR_EXPR.
3748
3749 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3750
3751         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3752         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3753         GNAT standard locations.
3754
3755 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3756
3757         * gigi.h (mark_visited): Declare.
3758         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3759         only the topmost node of expressions.
3760         (elaborate_expression_1): Look deeper for read-only variables.
3761         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3762         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3763         (mark_visited_r): New function.
3764
3765 2008-05-23  Vincent Celier  <celier@adacore.com>
3766
3767         * snames.adb: New standard name Excluded_Source_List_File.
3768
3769         * snames.ads: New standard name Excluded_Source_List_File.
3770
3771         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3772
3773         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3774         Get excluded sources from
3775         file indicated by attribute Excluded_Source_List_File, when present and
3776         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3777
3778 2008-05-23  Robert Dewar  <dewar@adacore.com>
3779
3780         * exp_dist.adb: Minor reformatting
3781
3782 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3783
3784         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3785         slice, convert it to an indexed component, which is equivalent, more
3786         efficient, and usable even if the slice itself is not addressable.
3787
3788 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3789
3790         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3791         convention also allows access to named compiler built-in subprograms
3792         such as the GCC __builtin family.
3793
3794 2008-05-23  Vincent Celier  <celier@adacore.com>
3795
3796         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3797         sep. If there are several possibilities, choose the one with the
3798         longer prefix.
3799
3800 2008-05-23  Vincent Celier  <celier@adacore.com>
3801
3802         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3803         back end switches when executable specified with --GCC= is same as
3804         default, even if there are additional options.
3805
3806         * gnat_ugn.texi:
3807         Document when the back end switches from the ALI file are taken into
3808         account when gnatlink is invoked with --GCC=
3809
3810 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3811
3812         * s-os_lib.adb:
3813         (copy_File): Do not open destination file if source file is unreadable.
3814
3815 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3816
3817         * utils.c (handle_type_generic_attribute): Adjust to accept
3818         fixed arguments before an elipsis.
3819
3820 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3821
3822         * g-sothco.ads, g-sothco.adb: New files.
3823
3824 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3825
3826         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3827
3828         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3829         Add missing "with" of Ada.Unchecked_Conversion
3830
3831         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3832         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3833         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3834         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3835         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3836         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3837         Move common code out of GNAT.Sockets.Thin implementations and into
3838         Thin_Common.
3839         New constant SIZEOF_fd_set
3840         New flag Has_Sockaddr_Len
3841         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3842
3843         * g-stsifd-sockets.adb
3844         (Create): Remove call to Set_Length; use Set_Family to set the family
3845         and (on appropriate platforms) length fields in struct sockaddr.
3846
3847         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3848         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3849         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3850         Move common code out of GNAT.Sockets.Thin implementations and into
3851         Thin_Common.
3852
3853         * g-socket.ads, g-socket.adb:
3854         Move common code out of GNAT.Sockets.Thin implementations and into
3855         Thin_Common.
3856         (Connect_Socket, Accept_Socket): Provide new versions of these two
3857         routines that operate with a user specified timeout.
3858         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3859         this is now handled automatically by Set_Family on platforms that
3860         require it.
3861
3862         * gen-soccon.c:
3863         Move common code out of GNAT.Sockets.Thin implementations and into
3864         Thin_Common.
3865         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3866         this constant to 0 (not -1) because we use it to initialize an
3867         unsigned_char value.
3868         Align values for numeric constants only.
3869         Handle the case of systems that do not support AF_INET6.
3870         New constant SIZEOF_fd_set
3871         New flag Has_Sockaddr_Len
3872         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3873
3874         * gsocket.h: New flag Has_Sockaddr_Len
3875         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3876
3877 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3878
3879         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3880
3881 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3882
3883         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3884         the underlying issue with malloc/free has been fixed. Remove associated
3885         comments.
3886         Minor reformatting.
3887         Related to PR ada/24533
3888
3889 2008-05-20  Robert Dewar  <dewar@adacore.com>
3890
3891         * ali.adb: Correct casing of ASCII.NUL
3892
3893         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3894         properly.
3895
3896 2008-05-20  Robert Dewar  <dewar@adacore.com>
3897             Gary Dismukes  <dismukes@adacore.com>
3898
3899         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3900         overflow if result converted to wider integer type.
3901         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3902         discriminated types when discriminant checks are suppressed.
3903
3904 2008-05-20  Vincent Celier  <celier@adacore.com>
3905
3906         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3907         Wide_Wide_Character.
3908
3909 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3910
3911         * decl.c: Do not emit a variable for a object that has an address
3912         representation clause whose value is known at compile time.
3913         When a variable has an address clause whose value is known at compile
3914         time, refer to this variable by using directly the address instead of
3915         dereferencing a pointer.
3916
3917 2008-05-20  Robert Dewar  <dewar@adacore.com>
3918
3919         PR ada/30740
3920         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3921         subtypes, always False for non-modular types.
3922         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3923         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3924         for Shared_Storage package.
3925         (Is_RACW_Stub_Type): New entity flag.
3926
3927         * exp_ch4.adb
3928         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3929         case where we have a modular type with a non-binary modules.
3930         Comments reformattings.
3931
3932         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3933         all types.
3934
3935 2008-05-20  Javier Miranda  <miranda@adacore.com>
3936
3937         * exp_aggr.adb
3938         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3939         tests did not covered the case in which the type of the aggregate has
3940         no progenitors but some its parents has progenitors.
3941
3942 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3943             Hristian Kirtchev  <kirtchev@adacore.com>
3944
3945         * exp_ch3.adb
3946         (Expand_N_Object_Declaration): Correct the condition which triggers the
3947         generation of a call to Displace when initializing a class-wide object.
3948         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3949         when Frontend_Layout_On_Target is true to ensure that they're available
3950         for calling when a record variant size function is built in Layout.
3951
3952 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3953
3954         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3955         procedure for a derived type retrieve the discriminant values from the
3956         parent using the corresponding discriminant.
3957         (Expand_N_Assignment_Statement): Skip generation of implicit
3958         if-statement associated with controlled types if we are
3959         compiling with restriction No_Finalization.
3960
3961 2008-05-20  Vincent Celier  <celier@adacore.com>
3962
3963         * prj.adb (Hash (Project_Id)): New function
3964         (Project_Empty): Add new component Interfaces_Defined
3965
3966         * prj.ads (Source_Data): New component Object_Linked
3967         (Language_Config): New components Object_Generated and Objects_Linked
3968         (Hash (Project_Id)): New function
3969         (Source_Data): New Boolean components In_Interfaces and
3970         Declared_In_Interfaces.
3971         (Project_Data): New Boolean component Interfaces_Defined
3972
3973         * prj-attr.adb:
3974         New project level attribute Object_Generated and Objects_Linked
3975         Add new project level attribute Interfaces
3976
3977         * prj-dect.adb: Use functions Present and No throughout
3978         (Parse_Variable_Declaration): If a string type is specified as a simple
3979         name and is not found in the current project, look for it also in the
3980         ancestors of the project.
3981
3982         * prj-makr.adb:
3983         Replace procedure Make with procedures Initialize, Process and Finalize
3984         to implement H414-023: process different directories with different
3985         patterns.
3986         Use functions Present and No throughout
3987
3988         * prj-makr.ads:
3989         Replace procedure Make with procedures Initialize, Process and Finalize
3990
3991         * prj-nmsc.adb
3992         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3993         the language configuration.
3994         (Process_Project_Level_Array_Attributes): Process new attributes
3995         Object_Generated and Object_Linked.
3996         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3997         False, to indicate that the erreor/warning is a continuation.
3998         (Check): Call Report_No_Sources with Contnuation = True after the first
3999         call.
4000         (Error_Msg): Process successively contnuation character and warning
4001         character.
4002         (Find_Explicit_Sources): Check that all declared sources have been found
4003         (Check_File): Indicate in hash table Source_Names when a declared source
4004         is found.
4005         (Check_File): Set Other_Part when found
4006         (Find_Explicit_Sources): In multi language mode, check if all exceptions
4007         to the naming scheme have been found. For Ada, report an error if an
4008         exception has not been found. Otherwise, disregard the exception.
4009         (Check_Interfaces): New procedure
4010         (Add_Source): When Other_Part is defined, set mutual pointers in spec
4011         and body.
4012         (Check): In multi-language mode, call Check_Interfaces
4013         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4014         for an excluded source.
4015         (Remove_Source): A source replacing a source in the interfaces is also
4016         in the interfaces.
4017
4018         * prj-pars.adb: Use function Present
4019
4020         * prj-part.adb: Use functions Present and No throughout
4021         (Parse_Single_Project): Set the parent project for child projects
4022         (Create_Virtual_Extending_Project): Register project with no qualifier
4023         (Parse_Single_Project): Allow an abstract project to be extend several
4024         times. Do not allow an abstract project to extend a non abstract
4025         project.
4026
4027         * prj-pp.adb: Use functions Present and No throughout
4028         (Print): Take into account the full associative array attribute
4029         declarations.
4030
4031         * prj-proc.adb: Use functions Present and No throughout
4032         (Expression): Call itself with the same From_Project_Node for the
4033         default value of an external reference.
4034
4035         * prj-strt.adb: Use functions Present and No throughout
4036         (Parse_Variable_Reference): If a variable is specified as a simple name
4037         and is not found in the current project, look for it also in the
4038         ancestors of the project.
4039
4040         * prj-tree.ads, prj-tree.adb (Present): New function
4041         (No): New function
4042         Use functions Present and No throughout
4043         (Parent_Project_Of): New function
4044         (Set_Parent_Project_Of): New procedure
4045
4046         * snames.ads, snames.adb:
4047         Add new standard names Object_Generated and Objects_Linked
4048
4049 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4050
4051         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4052         and the derived type are of the same kind.
4053         (Expand_Call): Generate type conversions for actuals of
4054         record or array types when the parent and the derived types differ in
4055         size and/or packed status.
4056
4057 2008-05-20  Javier Miranda  <miranda@adacore.com>
4058             Ed Schonberg  <schonberg@adacore.com>
4059
4060         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4061         generating dispatch tables of locally defined tagged types statically.
4062         Remove implicit if-statement that is no longer required.
4063         (Expand_Dispatching_Call): If this is a call to an instance of the
4064         generic dispatching constructor, the type of the first argument may be
4065         a subtype of Tag, so always use the base type to recognize this case.
4066
4067 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4068
4069         * exp_dist.adb
4070         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4071         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4072         assigning NULL into the result, to avoid a spurious warning.
4073         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4074         is not frozen.
4075         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4076         type.
4077         (Build_From_Any_Function, Build_To_Any_Function,
4078         Build_TypeCode_Function): For a type that has user-specified stream
4079         attributes, use an opaque sequence of octets as the representation.
4080
4081 2008-05-20  Kevin Pouget  <pouget@adacore.com>
4082
4083         * exp_smem.ads, exp_smem.adb: Construction of access and assign
4084         routines has been replaced by an instantiation of
4085         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4086         shared variable declaration.
4087         Calls to access and assign routines have been replaced by calls to
4088         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4089         instantiated package.
4090
4091         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4092         It identifies the new generic package added in s-shasto.
4093
4094         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4095         is instantiated for each shared passive variable. It provides
4096         supporting procedures called upon each read or write access by the
4097         expanded code.
4098
4099         * sem_attr.adb:
4100         For this runtime unit (always compiled in GNAT mode), we allow
4101         stream attributes references for limited types for the case where
4102         shared passive objects are implemented using stream attributes,
4103         which is the default in GNAT's persistent storage implementation.
4104
4105 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4106
4107         * freeze.adb
4108         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4109         convention from its base type, do not set the type to that of integer,
4110         because it may inherit a size clause.
4111         Warn on a size clause with a size different
4112         from that of Integer, if the type has convention C.
4113
4114 2008-05-20  Vincent Celier  <celier@adacore.com>
4115
4116         * gnatname.adb
4117         (Scan_Args): Rewrite to take into account new switch --and to separate
4118         arguments into sections.
4119         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4120         section, then Finalize.
4121
4122 2008-05-20  Tristan Gingold  <gingold@adacore.com>
4123
4124         * init.c: Enable stack probing on ppc-linux.
4125
4126         * tracebak.c: Add symbolic traceback for ppc-linux.
4127
4128         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4129
4130 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4131
4132         * Makefile.in
4133         (common-tools): New rule, to avoid parallel build failure on gnat tools.
4134         Reenable parallel builds on this Makefile.
4135
4136         * Make-lang.in: Update dependencies.
4137
4138 2008-05-20  Robert Dewar  <dewar@adacore.com>
4139
4140         * opt.ads (Treat_Restrictions_As_Warnings): New switch
4141
4142         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4143         Treat_Restrictions_As_Warnings.
4144
4145         * switch-c.adb: Recognize new switch -gnatr
4146
4147         * usage.adb: Add line for -gnatr
4148
4149 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4150
4151         * par-ch3.adb
4152         (P_Access_Definition): Change the error message when parsing "access
4153         all" in Ada 95 mode. The message no longer forces the user to recompile
4154         in 05 mode only to discover that anonymous access types are not allowed
4155         to have "all".
4156
4157 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4158
4159         * par-ch9.adb
4160         (P_Protected): Update the error message on missing "-gnat05" switch when
4161         using interfaces in conjunction with protected types. Remove the
4162         incorrect error message associated with the presence of "private" after
4163         a "with".
4164
4165 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4166
4167         * sem_aggr.adb: Update comments.
4168         Improve previous change for PR ada/17985
4169
4170 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4171
4172         * sem_cat.adb
4173         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4174         the visible part of the spec of a remote types unit.
4175         (Validate_Remote_Access_Object_Type_Declaration):
4176         New local subprogram Is_Valid_Remote_Object_Type, replaces
4177         Is_Recursively_Limited_Private.
4178         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4179         non-controlling formals (and the return type, even though this is not
4180         explicit in the standard) must support external streaming.
4181         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4182         as above for of RAS types and RCI subprograms. (The return type is not
4183         checked yet).
4184         Update comments related to RACWs designating limited interfaces per
4185         ARG ruling on AI05-060.
4186
4187         * sem_util.ads, sem_util.adb
4188         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4189         Is_Remote_Call_Interface to identify RACW types in a stable and
4190         consistent way. We used to rely in this predicate on the privateness of
4191         the designated type and its ancestors, but depending on the currently
4192         visible private parts, this caused false negatives. We now uniformly
4193         rely on checks made at the point where the RACW type is declared.
4194         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4195
4196 2008-05-20  Javier Miranda  <miranda@adacore.com>
4197             Ed Schonberg  <schonberg@adacore.com>
4198             Hristian Kirtchev  <kirtchev@adacore.com>
4199
4200         * sem_ch3.adb
4201         (Analyze_Object_Declaration): Fix over-conservative condition
4202         restricting use of predefined assignment with tagged types that have
4203         convention CPP.
4204         (Analyze_Object_Declaration): Relax the check regarding deferred
4205         constants declared in scopes other than packages since they can be
4206         completed with pragma Import.
4207         Add missing escaping of all-caps word 'CPP' in error messages.
4208         (Build_Discriminated_Subtype): Do not inherit representation clauses
4209         from parent type if subtype already carries them, because they are
4210         inherited earlier during derivation and already include those that may
4211         come from a partial view.
4212
4213         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4214         Check the declarations of a subprogram body for proper deferred
4215         constant completion.
4216
4217         * sem_ch7.ads, sem_ch7.adb
4218         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4219
4220 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4221             Thomas Quinot  <quinot@adacore.com>
4222
4223         * sem_ch4.adb
4224         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4225         F is a parameterless function that returns an array, and S is a subtype
4226         mark.
4227         (Analyze_Call): Insert dereference when the prefix is a parameterless
4228         function that returns an access to subprogram and the call has
4229         parameters.
4230         Reject a non-overloaded call whose name resolves to denote
4231         a primitive operation of the stub type generated to support a remote
4232         access-to-class-wide type.
4233
4234 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4235
4236         * sem_ch8.adb
4237         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4238         when there is a use clause for the same entity in the context.
4239         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4240         created for a stream attribute of an abstract type or interface type.
4241
4242 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4243
4244         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4245         subprogram.
4246
4247         * sem_type.adb
4248         (Add_One_Interp): Ignore any interpretation that is a primitive
4249         operation of an RACW stub type (these primitives are only executed
4250         through dispatching, never through static calls).
4251         (Collect_Interps): When only one interpretation has been found, set N's
4252         Entity and Etype to that interpretation, otherwise Entity and Etype may
4253         still refer to an interpretation that was ignored by Add_One_Interp,
4254         in which case would end up with being marked as not overloaded but with
4255         an Entity attribute not pointing to its (unique) correct interpretation.
4256
4257 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4258
4259         * sem_eval.adb
4260         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4261         denotes the whole array of its prefix.
4262
4263 2008-05-20  Robert Dewar  <dewar@adacore.com>
4264
4265         * sem_res.adb (Resolve_Op_Not): Warn on double negation
4266
4267 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4268
4269         * sprint.adb
4270         (Print_Itype): Do not modify the sloc of the component type of a
4271         (packed) array itype, because it is an unrelated type whose source
4272         location is independent of the point of creation of the itype itself.
4273
4274 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4275
4276         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4277         Append.
4278
4279 2008-05-20  Robert Dewar  <dewar@adacore.com>
4280             Vincent Celier  <celier@adacore.com>
4281
4282         * vms_data.ads: Add entry for -gnatr
4283         Put GNAT SYNC section in proper alpha order
4284         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4285
4286         * gnat_ugn.texi: Add documentation for new gnatname switch --and
4287         Update the style checks section
4288         Add documentation of -gnatr
4289         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4290         subsection the explanation how compiler checks should be disabled for
4291         gnatcheck.
4292         Update the list of Ada 95 reserved words used by in the project language
4293         Add documentation for project qualifiers.
4294         Document that abstract projects may be extended by different projects in
4295         the same project tree.
4296         Add documentation for gnatmake switch -d
4297
4298         * ug_words: Add -gnatyy VMS equivalence string.
4299         Add entry for -gnatr
4300
4301 2008-05-20  Bob Duff  <duff@adacore.com>
4302
4303         * a-rttiev.adb
4304         (Set_Handler): Remove code from both of these that implements
4305         RM-D.15(15/2), because it causes a race condition and potential
4306         deadlock.
4307         (Process_Queued_Events): Add comment explaining "exception when others
4308         => null". Add clarifying ".all", even though implicit .all is legal
4309         here.
4310
4311 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4312
4313         * s-winext.ads: Replace representation clause by pragma Pack. Gives
4314         equivalent representation, but has the advantage of allowing
4315         compilation of this file under 64 bits platforms.
4316
4317         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4318
4319         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4320
4321         * adaint.c:
4322         Don't define dummy implementation of convert_addresses on ppc-linux.
4323
4324 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4325
4326         * exp_ch7.adb
4327         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4328         if expression is aggregate component.
4329
4330 2008-05-20  Robert Dewar  <dewar@adacore.com>
4331
4332         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4333         sem_ch12.adb: Update comments. Minor reformatting.
4334
4335         * exp_ch2.adb: Typo
4336
4337         * s-unstyp.ads: Fixed some typos in comments.
4338
4339 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4340
4341         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4342         type/constant.
4343
4344         * g-socthi-vxworks.ads: Update to latest socket changes.
4345
4346         * a-caldel-vms.adb: Resync with a-caldel spec.
4347
4348         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4349         Update comments.
4350
4351 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4352
4353         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4354         for dummy types pointed to by the converted pointer types.
4355
4356 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4357
4358         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4359         of records and unions.
4360         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4361
4362 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
4363             Robert Dewar <dewar@adacore.com>
4364
4365         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4366         restrictions to the prefix of 'Old.
4367         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4368         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4369         variables.
4370
4371 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4372
4373         PR ada/24880
4374         PR ada/26635
4375         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4376         expression to an integral type with lower precision, use NOP_EXPR
4377         directly in a couple of special cases.
4378
4379 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4380             Ed Schonberg <schonberg@adacore.com>
4381
4382         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4383         constraint expressions.
4384
4385 2008-05-12  Tomas Bily  <tbily@suse.cz>
4386
4387         * utils2.c (known_alignment, contains_save_expr_p)
4388         (gnat_mark_addressable): Use CASE_CONVERT.
4389         * decl.c (annotate_value): Likewise.
4390         * trans.c (maybe_stabilize_reference): Likewise.
4391         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4392         * utils.c (rest_of_record_type_compilation): Likewise.
4393         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4394         (protect_multiple_eval): Likewise.
4395
4396 2008-05-08  Andreas Schwab  <schwab@suse.de>
4397
4398         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4399         DECL_IS_PURE to DECL_PURE_P.
4400
4401 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4402
4403         * decl.c (maybe_pad_type): Add ??? comment.
4404
4405 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4406
4407         * decl.c (components_to_record): Zero the alignment of the qualified
4408         union built for the variant part upon creating it.
4409
4410 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4411
4412         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4413         mode even if the alignment is not a factor of the original size.  But
4414         make sure to create the inner field with the original size.  Reorder.
4415         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4416         record as always addressable.
4417         * utils.c (convert): Deal specially with conversions between original
4418         and packable versions of a record type.
4419         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4420         recognizing an assignment between padded objects.
4421
4422 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4423
4424         * decl.c (make_packable_type): Resize the last component to its RM size
4425         only if it is of an aggregate type.
4426         * trans.c (call_to_gnu): Fix nit in comment.
4427         (gnat_to_gnu): Likewise.
4428
4429 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4430
4431         * Makefile.in: Adapt sh4-linux target.
4432
4433 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4434
4435         PR ada/35792
4436         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4437         tagged type by an untagged protected or task type.
4438
4439 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4440             Tristan Gingold  <gingold@adacore.com>
4441
4442         PR ada/36007
4443         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4444         of aliased objects with an unconstrained nominal subtype.
4445         Cap the promotion to the effective alignment of the word mode.
4446
4447 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4448
4449         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4450         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4451         Use '&&' instead of ';'.
4452
4453 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4454
4455         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4456         doesn't require signed arithmetic anymore.
4457
4458 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4459
4460         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4461         (call_to_gnu): Don't set TREE_INVARIANT.
4462         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4463
4464 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4465
4466         * s-osinte-rtems.adb: Add sigalstack function.
4467         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4468         function. Add Alternate_Stack and Alternate_Stack_Size.
4469         Add missing process_shared field to pthread_condattr_t
4470         and change ss_low_priority to int from timespec.
4471
4472 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4473
4474         * i-forbla.adb: Link against -llapack and -lblas by default
4475         instead of the private -lgnalasup.
4476
4477 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4478
4479         Access to most C builtins from Ada
4480         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4481         (handle_pure_attribute, handle_novops_attribute,
4482         handle_nonnull_attribute, handle_sentinel_attribute,
4483         handle_noreturn_attribute, handle_malloc_attribute,
4484         handle_type_generic_attribute): New attribute handlers, from C fe.
4485         (gnat_internal_attribute_table): Map the new handlers.
4486         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4487         (init_gigi_decls): ... here.
4488         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4489         Move to a section dedicated to builtins processing.
4490         (build_void_list_node, builtin_type_for_size): New functions.
4491         (def_fn_type, get_nonnull_operand): Likewise.
4492         (install_builtin_elementary_type, install_builtin_function_types,
4493         install_builtin_attributes): Likewise.
4494         (fake_attribute_handler): Fake handler for attributes we don't
4495         support in Ada.
4496         (def_builtin_1): New function, worker for DEF_BUILTIN.
4497         (install_builtin_functions): New function.
4498         (gnat_install_builtins): Move to the builtins processing section.
4499         Now calling the newly introduced installers.
4500
4501 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4502
4503         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4504         constant objects, but not exceptions.
4505         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4506         compatibility test.
4507         * utils.c (create_var_decl_1): Likewise.
4508         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4509         the type when copying to padded object and the source is a constructor.
4510
4511 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4512
4513         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4514         alignment, reset it to zero if it would end up not being greater
4515         than that of the type.
4516
4517 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4518
4519         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4520         the padded type has a variable size.
4521
4522 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4523
4524         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4525         target pointer mechanism as soon as the size is not constant.
4526
4527 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4528
4529         * gigi.h (create_var_decl_1): Declare.
4530         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4531         (create_true_var_decl): Likewise.
4532         * utils.c (create_var_decl_1): Make global and reorder parameters.
4533         (create_var_decl): Delete.
4534         (create_true_var_decl): Likewise.
4535
4536 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4537
4538         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4539         objects by default.
4540         * fe.h (Debug_Flag_Dot_A): Delete.
4541         * debug.adb (-gnatd.a): Update documentation.
4542
4543 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4544
4545         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4546         "not null" parameter.
4547
4548 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4549
4550         * g-socket.adb: Add a message "IPv6 not supported" to the
4551         Socket_Error exception.
4552
4553 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4554
4555         PR ada/29015
4556         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4557         the type is known instead of the underlying type.
4558
4559 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4560
4561         PR ada/22387
4562         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4563         procedure for a derived type retrieve the discriminant values from
4564         the parent using the corresponding discriminant.
4565
4566 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4567             Gary Dismukes  <dismukes@adacore.com>
4568
4569         PR ada/28733
4570         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4571         which is not an entity (and hence not a package).
4572         (End_Use_Package): Ditto.
4573
4574 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4575
4576         PR ada/16086
4577         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4578         protected operation that matches the signature, not only an entry, a
4579         regular subprogram or a literal.
4580
4581 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4582
4583         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4584         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4585         if a size or alignment is specified.  Do not take into account
4586         alignment promotions for the computation of the object's size.
4587         <type>: Call maybe_pad_type only if a size or alignment is specified.
4588         (maybe_pad_type): Really reuse the RM_Size of the original type if
4589         requested.
4590         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4591         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4592         statements.  Use the padded view of the type when copying between
4593         padded objects of the same underlying type.
4594
4595 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4596
4597         * vms_data.ads: Fix typo in constant.
4598         * gen-soccon.c: Fix typo in error string.
4599         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4600         Fix typos.
4601         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4602         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4603         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4604         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4605         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4606         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4607         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4608         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4609         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4610         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4611         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4612         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4613         sinfo.ads: Fix typos in comments.
4614
4615 2008-04-14  Robert Dewar  <dewar@adacore.com>
4616
4617         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4618         to every non-object and change error message.
4619
4620 2008-04-14  Robert Dewar  <dewar@adacore.com>
4621
4622         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4623         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4624         directly.
4625
4626 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4627
4628         PR ada/18680
4629         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4630         apply pragma Linker_Section on type.
4631
4632 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4633
4634         PR ada/16098
4635         * sem_prag.adb (Error_Pragma_Ref): New.
4636         (Process_Convention): Specialized message for non-local
4637         subprogram renaming. Detect the problem in homonyms as well.
4638
4639 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4640
4641         PR ada/15915
4642         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4643         * sem_ch12.adb (Instantiate_Object): Use it.
4644         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4645         storage pool denotes a variable as per RM 13.11(15).
4646
4647 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4648
4649         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4650         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4651
4652 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4653
4654         PR ada/20822
4655         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4656         line endings even on non-Unix platforms.
4657
4658 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4659
4660         PR ada/35050
4661         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4662         renaming information.
4663
4664 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
4665
4666         PR ada/17985
4667         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4668         itself.
4669
4670 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4671
4672         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4673         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4674         snames.ads, sprint.adb, stand.ads, stringt.ads,
4675         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4676         switch.ads, sysdep.c, table.adb, table.ads,
4677         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4678         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4679         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4680         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4681         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4682         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4683         Fix comment typos.
4684
4685         * sem_ch10.adb, sem_ch10.ads,
4686         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4687         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4688         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4689         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4690         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4691         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4692         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4693         sem_warn.ads: Fix comment typos.
4694
4695         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4696         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4697         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4698         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4699         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4700         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4701         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4702         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4703         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4704         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4705         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4706         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4707         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4708         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4709         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4710         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4711         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4712         sem_cat.adb, sem_cat.ads: Fix comment typos.
4713
4714 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4715
4716         PR ada/35825
4717         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4718
4719 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4720
4721         * s-linux-hppa.ads: Fix syntax errors.
4722
4723 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4724
4725         * gnat_ugn.texi: Fix typos.
4726         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4727         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4728         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4729         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4730         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4731         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4732         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4733         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4734         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4735         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4736         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4737         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4738         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4739         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4740         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4741         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4742         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4743         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4744         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4745         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4746         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4747         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4748         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4749         s-rident.ads: Fix comment typos.
4750
4751 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4752
4753         PR ada/28305
4754         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4755         environment if generic instance is a top-level one.
4756
4757 2008-04-09  Doug Rupp  <rupp@adacore.com>
4758
4759         * decl.c (validate_size): Set minimum size for fat pointers same as
4760         access types. Code clean ups.
4761
4762         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4763         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4764
4765         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4766
4767         * s-crtl.ads (malloc32) New function, alias for malloc
4768         (realloc32) New function, alias for realloc
4769
4770         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4771
4772         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4773         allocator size is 32 and default pointer size is 64.
4774         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4775         lhs type if smaller, whatever the modes.
4776
4777         * gigi.h (malloc32_decl): New macro definition
4778
4779         * utils.c (init_gigi_decls): New malloc32_decl
4780         Various code clean ups.
4781
4782         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4783         Task_Address vice System.Address.
4784
4785         * s-taspri-vms.ads: Import System.Aux_DEC
4786         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4787         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4788
4789         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4790         Task_Address vice System.Address.
4791
4792         * s-inmaop-vms.adb: Import System.Task_Primitives
4793         (To_Address): Unchecked convert to Task_Address vice System.Address
4794
4795         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4796         expires now.
4797         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4798         (To_Address) Unchecked convert to Task_Address vice System.Address
4799
4800         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4801
4802         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4803
4804 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4805
4806         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4807         (fdesc_type_node): Define.
4808         (null_fdesc_node): Likewise.
4809         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4810         uses descriptors for vtables and the type comes from a dispatch table,
4811         return the descriptor type.
4812         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4813         uses descriptors for vtables and the type comes from a dispatch table,
4814         build a descriptor in the static case and copy the existing one in the
4815         non-static case.
4816         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4817         the type is a pointer-to-subprogram coming from a dispatch table,
4818         return the null descriptor.
4819         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4820         vtables, the source type is the descriptor type and the target type
4821         is a pointer type, first build the pointer.
4822         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4823         build the descriptor type and the null descriptor.
4824
4825 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4826
4827         * decl.c (prepend_attributes): Fix typo.
4828         * trans.c (Pragma_to_gnu): Likewise.
4829         * utils.c (gnat_genericize): Likewise.
4830
4831 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4832             Richard Kenner  <kenner@adacore.com>
4833
4834         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4835         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4836         <E_Record_Type>: Try to get a better form of the component for
4837         packing, even if it has an integral mode.
4838         <E_Record_Subtype>: Likewise.
4839         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4840         exception suppressing the final conversion between record types.
4841
4842 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4843
4844         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4845         alignment for space, promote the alignment of non-scalar variables with
4846         no size and alignment.
4847         * gigi.h (gnat_types_compatible_p): Declare.
4848         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4849         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4850         * utils.c (gnat_types_compatible_p) : New predicate.
4851         (convert): Use it throughout to test for cases where a mere view
4852         conversion is sufficient.
4853         * utils2.c (build_binary_op): Minor tweaks.
4854         (build_unary_op): Likewise.
4855
4856 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4857
4858         * decl.c (adjust_packed): Expand comment.
4859
4860 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4861
4862         * s-tasuti.ads: Use Task_Address instead of System.Address.
4863
4864         * makeutl.adb (Path_Or_File_Name): New function
4865
4866         * nlists.ads, itypes.ads: Update comments.
4867
4868         * s-crtl.ads (malloc32, realloc32): New functions.
4869
4870         * s-auxdec.ads (Short_Address_Size): New constant.
4871
4872         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4873
4874         * s-ststop.ads, s-ststop.adb: New file.
4875
4876         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4877         Minor reformatting.
4878
4879 2008-04-08  Pascal Obry  <obry@adacore.com>
4880
4881         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4882         (Stop_Bits_Number): New type.
4883         (Parity_Check): Likewise.
4884         (Set): Add parameter to set the number of stop bits and
4885         the parity. Parameter timeout is now a duration instead
4886         of a plain integer.
4887
4888         * g-sercom-linux.adb:
4889         Implement the stop bits and parity support for GNU/Linux.
4890         Fix handling of timeout, it must be given in tenth of seconds.
4891
4892         * g-sercom-mingw.adb:
4893         Implement the stop bits and parity support for Windows.
4894         Use new s-win32.ads unit instead of declaring Win32 services
4895         directly into this body.
4896         Update handling of timeout as now a duration.
4897
4898         * s-win32.ads, s-winext.ads: New files.
4899
4900 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4901             Arnaud Charlet  <charlet@adacore.com>
4902
4903         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4904
4905         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4906         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4907
4908         * s-osinte-lynxos-3.ads,
4909         (Alternate_Stack): Remove when not needed. Simplify declaration
4910         otherwise.
4911         (Alternate_Stack_Size): New constant.
4912
4913         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4914         'Unrestricted_Access.
4915
4916         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4917         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4918         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4919         s-osinte-solaris.ads, s-osinte-vms.ads
4920         (SA_ONSTACK): New constant.
4921         (stack_t): New record type.
4922         (sigaltstack): New imported function.
4923         (Alternate_Stack): New imported variable.
4924         (Alternate_Stack_Size): New constant.
4925
4926         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4927
4928         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4929         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4930         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4931         (Task_Address_Size): New constant size of System.Address
4932         (Alternate_Stack_Size): New constant.
4933
4934         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4935         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4936         Establish the alternate stack if the platform makes use of n alternate
4937         signal stack for stack overflows.
4938         (Create_Task): Take into account the alternate stack in the stack size.
4939         (Initialize): Save the address of the alternate stack into the ATCB for
4940         the environment task.
4941         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4942
4943         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4944
4945         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4946
4947         * s-intman-posix.adb:
4948         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4949         alternate signal stack for stack overflows.
4950
4951         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4952         x86-64, adjust the saved value of the stack pointer if the signal was
4953         raised by a stack checking probe.
4954         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4955         stack and only for SIGSEGV.
4956         (Linux section): Likewise on x86 and x86-64.
4957         [VxWorks section]
4958         (__gnat_map_signal): Now static.
4959         (__gnat_error_handler): Not static any more.
4960         (__gnat_adjust_context_for_raise): New function. Signal context
4961         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4962         propagation circuitry.
4963         (__gnat_error_handler): Second argument of a sigaction handler is a
4964         pointer, not an int, and is unused.
4965         Adjust signal context before mapping to exception.
4966         Install signal handlers for LynxOS case.
4967
4968         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4969         (Task_Id): Set size to Task_Address_Size
4970         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4971         (To_Address): Unchecked convert to Task_Address vice System.Address
4972
4973         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4974         address into the ATCB if the platform makes use of an alternate signal
4975         stack for stack overflows.
4976         (Free_Task): Add call to Finalize_Attributes_Link.
4977         Add argument Relative_Deadline to pass the value specified for
4978         the task. This is not yet used for any target.
4979
4980         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4981         the value specified for the task.
4982
4983 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4984
4985         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4986         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4987         s-vxwext-rtp.adb): New files.
4988
4989         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4990         Minor updates to accomodate changes above.
4991
4992 2008-04-08  Pascal Obry  <obry@adacore.com>
4993
4994         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4995         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4996         Use new s-win32.ads unit instead of declaration
4997         from s-osinte-mingw.ads.
4998
4999         * s-osinte-mingw.ads:
5000         Move all non tasking based interface to s-win32.ads.
5001
5002         * s-osprim-mingw.adb:
5003         Remove duplicated declarations and use s-win32.ads
5004         unit instead.
5005
5006 2008-04-08  Vincent Celier  <celier@adacore.com>
5007             Arnaud Charlet  <charlet@adacore.com>
5008
5009         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5010         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5011         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5012         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5013         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5014
5015         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5016         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5017         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5018         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5019         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5020         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5021         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5022         mlib-tgt-specific-mingw.adb: New names.
5023
5024         * Makefile.in:
5025         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5026         Get rid of gnatbl.
5027         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5028         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5029         Minor updates for VMS
5030
5031         * gnatbl.c: Removed.
5032
5033 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5034
5035         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5036         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5037         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5038         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5039         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5040         ASCII.NUL throughout.
5041
5042 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5043             Matthew Heaney  <heaney@adacore.com>
5044
5045         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5046         renaming.
5047
5048         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5049         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5050         to convention for non-RM specs.
5051         Add descriptive header, and documented each operation
5052         document each operation
5053
5054 2008-04-08  Robert Dewar  <dewar@adacore.com>
5055             Bob Duff  <duff@adacore.com>
5056             Gary Dismukes  <dismukes@adacore.com>
5057             Ed Schonberg  <schonberg@adacore.com>
5058
5059         * alloc.ads: Add entries for Obsolescent_Warnings table
5060
5061         * einfo.ads, einfo.adb: Minor reformatting.
5062         (Is_Discriminal): New subprogram.
5063         (Is_Prival): New subprogram.
5064         (Is_Protected_Component): New subprogram.
5065         (Is_Protected_Private): Removed.
5066         (Object_Ref, Set_Object_Ref): Removed.
5067         (Prival, Set_Prival): Change assertion.
5068         (Privals_Chain, Set_Privals_Chain): Removed.
5069         (Prival_Link, Set_Prival_Link): New subprogram.
5070         (Protected_Operation, Set_Protected_Operation): Removed.
5071         (Protection_Object, Set_Protection_Object): New subprogram.
5072         (Write_Field17_Name): Remove case for Object_Ref.
5073         (Write_Field20_Name): Add case for Prival_Link.
5074         (Write_Field22_Name): Remove case for Protected_Operation,
5075         Privals_Chain.
5076         Add case for Protection_Object.
5077         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5078         so clients
5079         (Overlays_Constant): New flag
5080         (Is_Constant_Object): New predicate
5081         (Is_Standard_Character_Type): New predicate
5082         (Optimize_Alignment_Space): New flag
5083         (Optimize_Alignment_Time): New flag
5084         (Has_Postconditions): New flag
5085         (Obsolescent_Warrning): Field removed
5086         (Spec_PPC_List): New field
5087         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5088         subprograms to get and set the relative deadline associated to a task.
5089
5090         * exp_attr.adb (May_Be_External_Call): Account for the case where the
5091         Access attribute is part of a named parameter association.
5092         (Expand_Access_To_Protected_Op): Test for the attribute occurring
5093         within an init proc and use that directly as the scope rather than
5094         traversing up to the protected operation's enclosing scope. Only apply
5095         assertion on Is_Open_Scopes in the case the scope traversal is done.
5096         For the init proc case use the address of the first formal (_init) as
5097         the protected object reference.
5098         Implement Invalid_Value attribute
5099         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5100         contents of the dispatch table there is no need to duplicate the
5101         itypes associated with record types (i.e. the implicit full view
5102         of private types).
5103         Implement Enum_Val attribute
5104         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5105         within _Postconditions procedure
5106         (Expand_N_Attribute_Reference, case Result): Implement new attribute
5107
5108         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5109         a return statement calls a function that is not available in
5110         configurable runtime.
5111         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5112         (Expand_Non_Function_Return): Generate call to _Postconditions proc
5113         (Expand_Simple_Function_Return): Ditto
5114
5115         * frontend.adb: Add call to Sem_Aux.Initialize
5116
5117         * sem_aux.ads, sem_aux.adb: New file.
5118
5119         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5120         Add new Pragma_Relative_Deadline.
5121         Add support for pragmas Check and Check_Policy
5122
5123         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5124         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5125         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5126         missing check because they are not allowed in CPP tagged types.
5127         Add Sure parameter to Note_Possible_Modification calls
5128         Add implementation of Invalid_Value attribute
5129         Implement new attribute Has_Tagged_Values
5130         Implement Enum_Val attribute
5131         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5132         generated attributes.
5133         (Analyze_Attribute, case Result): If prefix of the attribute is
5134         overloaded, it always resolves to the enclosing function.
5135         (Analyze_Attribute, case Result): Properly deal with analysis when
5136         Postconditions are not active.
5137         (Resolve_Attribute, case Result): Properly deal with appearence during
5138         preanalysis in spec.
5139         Add processing for attribute Result
5140
5141         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5142         for operators.
5143         (Analyze_Subprogram_Body): Install private_with_clauses when the body
5144         acts as a spec.
5145         (Check_Inline_Pragma): recognize an inline pragma that appears within
5146         the subprogram body to which it applies.
5147         (Analyze_Function_Return): Check that type of the expression of a return
5148         statement in a function with a class-wide result is not declared at a
5149         deeper level than the function.
5150         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5151         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5152         user- defined operators.
5153         (Install_Formals): Moved to spec to allow use from Sem_Prag for
5154         analysis of precondition/postcondition pragmas.
5155         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5156         Last_Formal, along with lots of comments on what this is about
5157         (Analyze_Subprogram_Body): Fix case where we move entities from the
5158         spec to the body when there are no body entities (now possible with
5159         precondition and postcondition pragmas).
5160         (Process_PPCs): New procedure
5161         (Analyze_Subprogram_Body): Add call to Process_PPCs
5162
5163         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5164         clause.
5165         (Pop_Scope): Restore Check_Policy_List on scope exit
5166         (Push_Scope): Save Check_Policy_List on scope entry
5167         Change name In_Default_Expression      => In_Spec_Expression
5168         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5169         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5170         (Analyze_Object_Renaming): Allow 'Reference as object
5171         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5172         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5173         of restriction identifier.
5174         Add Sure parameter to Note_Possible_Modication calls
5175
5176         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5177         Don't check for primitive operations when calling Rep_Item_Too_Late.
5178         (Process_Import_Or_Interface): Do not place flag on formal
5179         subprograms.
5180         (Analyze_Pragma, case Export): If the entity is a deferred constant,
5181         propagate information to full view, which is the one elaborated by the
5182         back-end.
5183         (Make_Inline): the pragma is effective if it applies to an internally
5184         generated subprogram declaration for a body that carries the pragma.
5185         (Analyze_Pragma, case Optimize_Alignment): Set new flag
5186         Optimize_Alignment_Local.
5187         (Analyze_PPC_In_Decl_Part): New procedure
5188         (Get_Pragma_Arg): Moved to outer level
5189         (Check_Precondition_Postcondition): Change to allow new visibility
5190         rules for package spec
5191         (Analyze_Pragma, case Check_Policy): Change placement rules to be
5192         same as pragma Suppress/Unsuppress.
5193         Change name In_Default_Expression      => In_Spec_Expression
5194         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5195         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5196         (Check_Precondition_Postcondition): Do proper visibility preanalysis
5197         for the case of these pragmas appearing in the spec.
5198         (Check_Enabled): New function
5199         (Initialize): New procedure
5200         (Tree_Read): New procedure
5201         (Tree_Write): New procedure
5202         (Check_Precondition_Postcondition): New procedure
5203         Implement pragmas Check and Check_Policy
5204         Merge Assert processing with Check
5205
5206         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5207         New warning flag -gnatw.e
5208
5209         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5210         returning whether a task (or main procedure) has a pragma
5211         Relative_Deadline.
5212         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5213         (or main procedure) has a pragma Relative_Deadline.
5214         Add Next_Pragma field to N_Pragma node
5215         (PPC_Enabled): New flag
5216         (Next_Pragma): Now used for Pre/Postcondition processing
5217
5218         * snames.h, snames.ads, snames.adb: New standard name
5219         Inherit_Source_Path
5220         Add entry for 'Invalid_Value attribute
5221         Add entry for new attribute Has_Tagged_Values
5222         Add entry for Enum_Val attribute
5223         Add new standard names Aggregate, Configuration and Library.
5224         Add _Postconditions
5225         Add _Result
5226         Add Pragma_Precondition
5227         Add Pragma_Postcondition
5228         Add Attribute_Result
5229         New standard name Archive_Builder_Append_Option
5230         (Preset_Names): Add _relative_deadline and relative_deadline definitions
5231         There was also a missing non_preemptive_within_priorities.
5232         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5233         Relative_Deadline.
5234         Add support for pragmas Check and Check_Policy
5235
5236         * tree_gen.adb: Call Sem_Aux.Tree_Write
5237
5238         * tree_in.adb: Call Sem_Aux.Tree_Read
5239
5240         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5241         sequence
5242
5243         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5244         sequence
5245
5246         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5247         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5248         Relative_Deadline.
5249         (Expand_Pragma_Check): New procedure
5250
5251         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5252         buffer.
5253
5254         * sinfo.adb (PPC_Enabled): New flag
5255
5256 2008-04-08  Robert Dewar  <dewar@adacore.com>
5257             Gary Dismukes  <dismukes@adacore.com>
5258             Javier Miranda  <miranda@adacore.com>
5259             Ed Schonberg  <schonberg@adacore.com>
5260
5261         * fe.h: Remove global Optimize_Alignment flag, no longer used
5262
5263         * layout.adb: Test Optimize_Alignment flags rather than global switch
5264
5265         * lib.ads, lib.adb: New OA_Setting field in library record
5266
5267         * lib-load.adb: New OA_Setting field in library record
5268
5269         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5270         units mentioned in limited_with_ clauses in the ali file, with an
5271         'Y' marker.
5272         New Ox fields in U line
5273
5274         * opt.adb: New flag Optimize_Alignment_Local
5275         (Check_Policy_List[_Config]): New flags
5276
5277         * opt.ads (Invalid_Value_Used): New flag
5278         New switch Optimize_Alignment_Local
5279         (Warn_On_Parameter_Order): New flag
5280         (Check_Policy_List[_Config]): New flags
5281
5282         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5283         limited_with clauses.
5284         New data structures for Optimize_Alignment
5285
5286         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5287         New procedure
5288         (Check_Consistent_Optimize_Alignment): Rework for new structure
5289         (Check_Consistent_Restrictions): Fix incorrect error message
5290
5291         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5292         created class-wide type (to the Parent field of the specific type).
5293         (Install_Siblings): Handle properly private_with_clauses on subprogram
5294         bodies and on generic units.
5295         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5296         illegal limited_with_clause that names a non-existent package.
5297         (Check_Body_Required): Determine whether a unit named a limited_with
5298         clause needs a body.
5299         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5300         Capture Optimize_Alignment settings to set new OA_Setting field in
5301         library record.
5302         (Build_Limited_Views): Include task and protected type declarations.
5303
5304         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5305         case of a possible constant redeclaration where the current object is
5306         an entry index constant.
5307         (Analyze_Object_Declaration): Generate an error in case of CPP
5308         class-wide object initialization.
5309         (Analyze_Object_Declaration): Add extra information on warnings for
5310         declaration of unconstrained objects.
5311         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5312         conflicts with the setting of Stored_Constraint in the case where the
5313         access type entity has already been created as an E_Incomplete_Type due
5314         to a limited with clause.
5315         Use new Is_Standard_Character_Type predicate
5316         (Analyze_Object_Declaration): Apply access_constant check only after
5317         expression has been resolved, given that it may be overloaded with
5318         several access types.
5319         (Constant_Redeclaration): Additional legality checks for deferred
5320         constant declarations tha involve anonymous access types and/or null
5321         exclusion indicators.
5322         (Analyze_Type_Declaration): Set Optimize_Alignment flags
5323         (Analyze_Subtype_Declaration): Ditto
5324         (Analyze_Object_Declaration): Ditto
5325         (Analyze_Object_Declaration): Don't count tasks in generics
5326         Change name In_Default_Expression      => In_Spec_Expression
5327         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5328         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5329         (Process_Discriminants): Additional check for illegal use of default
5330         expressions in access discriminant specifications in a type that is not
5331         explicitly limited.
5332         (Check_Abstract_Overriding): If an inherited function dispaches on an
5333         access result, it must be overridden, even if the type is a null
5334         extension.
5335         (Derive_Subprogram): The formals of the derived subprogram have the
5336         names and defaults of the parent subprogram, even if the type is
5337         obtained from the actual subprogram.
5338         (Derive_Subprogram): In the presence of interfaces, a formal of an
5339         inherited operation has the derived type not only if it descends from
5340         the type of the formal of the parent operation, but also if it
5341         implements it. This is relevant for the renamings created for the
5342         primitive operations of the actual for a formal derived type.
5343         (Is_Progenitor): New predicate, to determine whether the type of a
5344         formal in the parent operation must be replaced by the derived type.
5345
5346         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5347         predicate recursive to handle components that have a user-defined
5348         Initialize procedure. Handle controlled derived types whose ancestor
5349         has a user-defined Initialize procedured.
5350         (Note_Possible_Modification): Add Sure parameter, generate warning if
5351         sure modification of constant
5352         Use new Is_Standard_Character_Type predicate
5353         (Find_Parameter_Type): when determining whether a protected operation
5354         implements an interface operation, retrieve the type of the formal from
5355         the entity when the formal is an access parameter or an
5356         anonymous-access-to-subprogram.
5357         Move Copy_Parameter_List to sem_util, for use when building stubbed
5358         subprogram bodies.
5359         (Has_Access_Values): Tagged types now return False
5360         (Within_HSS_Or_If): New procedure
5361         (Set_Optimize_Alignment_Flags): New procedure
5362         Change name In_Default_Expression      => In_Spec_Expression
5363         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5364         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5365
5366 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5367
5368         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5369
5370 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5371
5372 PR ada/10768
5373
5374         * cuintp.c: Fix 16 bits issue for AVR.
5375         On AVR, integer is 16 bits, so it can't be used to do math with
5376         Base (=32768).
5377         So use long_integer instead.
5378
5379 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5380
5381         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5382         System.OS_Primitives.
5383         Change type of various constants, parameters and local variables from
5384         Time to representation type OS_Time.
5385         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5386         Remove the declaration of constant Mili_F from several routines. New
5387         body for internal package Conversions_Operations.
5388         (Time_Of): Add default parameters for several formals.
5389
5390         * a-caldel.adb: Minor reformatting
5391
5392         * a-calend.ads, a-calend.adb: New body for internal package
5393         Conversions_Operations.
5394         (Time_Of): Add default parameters for several formals.
5395
5396         * Makefile.rtl: Add a-ststop
5397         Add Ada.Calendar.Conversions to the list of runtime files.
5398         Add g-timsta
5399
5400         * a-calcon.adb, a-calcon.ads: New files.
5401
5402 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5403             Tristan Gingold  <gingold@adacore.com>
5404
5405         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5406         (Install_Restricted_Handlers): New procedure
5407         which is a simplified version of Install_Handlers that does not store
5408         previously installed.
5409
5410         * s-interr-vxworks.adb: Fix ACATS cxc3001
5411         On VxWorks interrupts can't be detached.
5412         (Install_Restricted_Handlers): New procedure.
5413
5414         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5415         procedure.
5416
5417 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5418
5419         * s-intman-vxworks.ads, s-intman-vxworks.adb
5420         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5421         required services already implemented elsewhere.
5422         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5423         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5424         argument passed to the handler, which we need for ZCX propagation
5425         purposes.
5426
5427 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5428
5429         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5430
5431         * g-timsta.adb, g-timsta.ads: New files.
5432
5433 2008-04-08  Robert Dewar  <dewar@adacore.com>
5434
5435         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5436         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5437         (Raise_Exception_Always): Fix documentation accordingly
5438
5439 2008-04-08  Robert Dewar  <dewar@adacore.com>
5440
5441         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5442         Stream_Convert)
5443
5444         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5445         FOnly
5446
5447 2008-04-08  Javier Miranda  <miranda@adacore.com>
5448             Robert Dewar  <dewar@adacore.com>
5449             Ed Schonberg  <schonberg@adacore.com>
5450
5451         * a-tags.adb (Register_Interface_Offset): New subprogram.
5452         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5453         (To_Predef_Prims_Table_Ptr): Removed.
5454         (Acc_Size): Removed.
5455         (To_Acc_Size): Removed.
5456         (Parent_Size): Modified to the call the subprogram returning the size of
5457         the parent by means of the new TSD component Size_Func.
5458
5459         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5460         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5461         code referencing the Offset_To_Top component of the dispatch table's
5462         prologue.
5463         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5464         use of 'address to initialize dispatch table slots.
5465         (Size_Func): New component of the TSD. Used by the run-time to call the
5466         size primitive of the tagged type.
5467
5468         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5469         Offset_To_Top component of a dispatch table.
5470         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5471         deferred constant declaration. do not add a null expression, to prevent
5472         spurious errors when full declaration is analyzed.
5473         (Apply_Discriminant_Check): If both discriminant constraints share a
5474         node which is not static but has no side effects, do not generate a
5475         check for that discriminant.
5476         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5477         subexpr, since the prefix of an attribute is a name.
5478
5479         * checks.ads: Fix nit in comment.
5480
5481         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5482         and body of predefined primitives in case of CPP tagged type
5483         derivations.
5484         (Freeze_Type): Deal properly with no storage pool case
5485         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5486         primitive Deep_Adjust if a nonlimited interface is derived from a
5487         limited interface.
5488         (Build_Dcheck_Functions): Create discriminant-checking functions only
5489         for variants that have some component(s).
5490         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5491         properly the case where the slice bounds extend to the last value of the
5492         underlying representation.
5493         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5494         (Is_Variable_Size_Record): An array component has a static size if
5495         index bounds are enumeration literals.
5496
5497         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5498         an external tag has been specified for the type.
5499         (Building_Static_DT): Add missing support for private types.
5500         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5501         to the entity associated with the parent of Typ. This is done to
5502         avoid wrong access when the parent is a private type.
5503         (Expand_Interface_Conversion): Improve error message when the
5504         configurable runtime has no support for dynamic interface conversion.
5505         (Expand_Interface_Thunk): Add missing support to interface types in
5506         configurable runtime.
5507         (Expand_Dispatching_Call): remove obsolete code.
5508         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5509         ensure that all subtypes and aggregates associated with dispatch
5510         tables have the attribute Is_Dispatch_Table_Entity set to true.
5511         (Register_Primitive): Rename one variable to improve code reading.
5512         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5513         of the pointer to the 'size primitive in the TSD.
5514
5515         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5516         (RE_Offset_To_Top_Ptr): New entity.
5517         (RE_Register_Interface_Offset): New entity.
5518         (RE_Set_Dynamic_Offset_To_Top): New entity.
5519         (RE_Set_Offset_To_Top): Removed entity.
5520         (RE_Prim_Ptr): New entity
5521         (RE_Size_Func): New entity
5522         (RE_Size_Ptr): New entity
5523         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5524         (Ada_Dispatching_Child): Define this new subrange.
5525         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5526          RE_Time_Span, and RE_Time_Span_Zero).
5527         (RE_Unit_Table): Add new required run-time calls
5528
5529         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5530         children.
5531
5532         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5533         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5534          initializes the Offset_To_Top component of a dispatch table.
5535         (Build_Predef_Prims): Removed.
5536         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5537          its actual code.
5538         (Build_Set_Size_Function): New subprogram.
5539
5540         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5541         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5542
5543 2008-04-08  Robert Dewar  <dewar@adacore.com>
5544
5545         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5546         computing Fore when Exp > 0
5547
5548 2008-04-08  Robert Dewar  <dewar@adacore.com>
5549
5550         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5551
5552         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5553         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5554
5555         * fmap.adb: Remove Big_String declarations (now in Types)
5556         (No_Mapping_File): New Boolean global variable
5557         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5558         False.
5559         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5560         tables were empty before adding entries, open the mapping file
5561         with Truncate = True, instead of delete/re-create.
5562
5563         * fname-sf.adb: Remove Big_String declarations (now in Types)
5564
5565         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5566         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5567         big pointer types
5568
5569         * table.ads: Add for Table_Ptr'Storage_Size use 0
5570
5571         * types.ads: Add Big_String declarations
5572         Add Size_Clause of zero for big pointer types
5573
5574 2008-04-08  Vincent Celier  <celier@adacore.com>
5575
5576         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5577         (Usage): Add line for switch --subdirs=
5578         Add new switch -eL, to follow symbolic links when processing project
5579         files.
5580
5581         * gnatcmd.adb: Process switches -eL and --subdirs=
5582         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5583         Program_Name to get proper tool names when AAMP_On_Target is set.
5584         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5585         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5586         Osint.Program_Name).
5587
5588         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5589         (Usage): Add lines for switches -eL and --subdirs=
5590
5591         * makeusg.adb: Add line for switch --subdirs=
5592
5593         * prj.ads:
5594         (Source_Data): New Boolean component Compiled, defaulted to True
5595         (Empty_File_Name: New global variable in private part, initialized in
5596         procedure Initialize.
5597         (Subdirs_Option): New constant string
5598         (Subdirs): New String_Ptr global variable
5599         (Language_Config): New component Include_Compatible_Languages
5600         (Project_Qualifier): New type for project qualifiers
5601         (Project_Data): New component Qualifier
5602         (Project_Configuration): New component Archive_Builder_Append_Option
5603
5604         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5605         another imported project indicate the name of this imported project.
5606         (Check_File): When a unit is in two project files, indicate the project
5607         names and the paths of the source files for each project.
5608         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5609         set object, dependency and switches file names if Compiled is True.
5610         (Process_Compiler): Allow the empty string for value of attribute Driver
5611         (Get_Directories): When Subdirs is not null and Object_Dir is not
5612          specified, locate and create if necessary the actual object dir.
5613         (Locate_Directory): When Subdirs is not empty and Create is not the
5614         empty string, locate and create if necessary the actual directory
5615         as a subdirectory of directory Name.
5616         (Check_Library_Attributes.Check_Library): Allow a project where the only
5617         "sources" are header files of file based languages to be imported by
5618         library projects, in multi-language mode (gprbuild).
5619         (Check_Library_Attributes.Check_Library): In multi-language mode
5620         (gprbuild), allow a library project to import a project with no
5621         sources, even when this is not declared explicitly.
5622         (Check_If_Externally_Built): A virtual project extending an externally
5623         built project is also externally built.
5624         (Check_Library_Attributes): For a virtual project extending a library
5625         project, inherit the library directory.
5626         (Process_Project_Level_Array_Attributes): Process new attribute
5627         Inherit_Source_Path.
5628         For projects with specified qualifiers "standard", "library" or
5629         "abstract", check that the project conforms to the qualifier.
5630         (Process_Project_Level_Simple_Attributes): Process new attribute
5631          Archive_Builder_Append_Option.
5632
5633         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5634         (Normalize_Compiler_Switches): Only keep compiler switches that are
5635         passed to gnat1 by the gcc driver and that are stored in the ALI file
5636         by gnat1.
5637         Do not take into account switc -save-temps
5638
5639         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5640         gprmake is called with -eL.
5641         (Scan_Arg): Recognize switch -eL
5642         (Usage): Add line for switch -eL
5643
5644         * prj.adb (Initialize): Initialize Empty_File_Name
5645         (Project_Empty): New component Qualifier
5646
5647         * prj-attr.ads, prj-attr.adb: New project level attribute
5648         Inherit_Source_Path.
5649         New project level attribute Archive_Builder_Append_Option
5650
5651         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5652
5653         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5654         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5655         upward compatibility.
5656
5657         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5658         each Trying ..." on different lines.
5659         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5660         is "configuration" when not in configuration. Fail when in configuration
5661         when a specified qualifier is other than "configuration".
5662
5663         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5664         full associative array together.
5665         (Recursive_Process): Put the project qualifier in the project data
5666
5667         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5668         (Set_Project_Qualifier_Of): New procedure
5669
5670 2008-04-08  Robert Dewar  <dewar@adacore.com>
5671
5672         * errout.ads: Update comments for new handling of info: messages
5673
5674         * erroutc.adb (Matches): New procedure
5675         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5676         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5677          info messages as well as style messages.
5678
5679         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5680
5681         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5682         subprograms.
5683         (Check_A_Call): Special "info: " warnings now have ? in the text
5684         (Elab_Warning): Use info message in static case
5685
5686 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5687
5688         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5689         whether an array aggregate with static bounds and scalar components
5690         should be expanded into a static constant.
5691
5692 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5693             Ed Schonberg  <schonberg@adacore.com>
5694             Robert Dewar  <dewar@adacore.com>
5695
5696         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5697         Has_Stream_Attribute_ Definition when checking for available stream
5698         attributes on parameters of a limited type in Ada 2005. Necessary for
5699         proper recognition of visible stream attribute clauses.
5700         (Has_Stream_Attribute_Definition): If the type is derived from a
5701         private type, then use the derived type's underlying type for checking
5702         whether it has stream attributes.
5703         (Validate_Object_Declaration): The check for a user-defined Initialize
5704         procedure applies also to types with controlled components or a
5705         controlled ancestor.
5706         Reject an object declaration in a preelaborated unit if the type is a
5707         controlled type with an overriding Initialize procedure.
5708         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5709         checking when the parent of a dereference is a selected component and
5710         the name has not been analyzed.
5711
5712         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5713         prefixes that are invalid explicit dereferences of remote
5714         access-to-class-wide values, first checking whether the selected
5715         component is a prefixed form of call to a tagged operation.
5716         (Analyze_Call): Remove code that issues an error for limited function
5717         calls in illegal contexts, as we now support all of the contexts that
5718         were forbidden here.
5719         Allow a function call that returns a task.and appears as the
5720         prefix of a selected component.
5721         (Analyze_Reference): Give error message if we try to make a 'Reference
5722         for an object that is atomic/aliased without its type having the
5723         corresponding attribute.
5724         (Analyze_Call): Remove condition checking for attributes to allow
5725         calls to functions with inherently limited results as prefixes of
5726         attributes. Remove related comment about Class attributes.
5727         (Analyze_Selected_Component): If the prefix is a remote type, check
5728         whether this is a prefixed call before reporting an error.
5729         (Complete_Object_Operation): If the controlling formal is an access to
5730         variable reject an actual that is a constant or an access to one.
5731         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5732         primitive operations from base type.
5733
5734         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5735         build-in-place
5736         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5737         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5738         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5739         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5740         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5741         (Analyze_Call): Remove code that issues an error for limited function
5742         calls in illegal contexts, as we now support all of the contexts that
5743         were forbidden here.
5744         New calling sequence for Get_Simple_Init_Val
5745         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5746         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5747
5748 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5749             Ed Schonberg  <schonberg@adacore.com>
5750             Robert Dewar  <dewar@adacore.com>
5751
5752         * exp_ch2.adb: Minor reformatting.
5753         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5754         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5755         (Expand_Protected_Component): New routine.
5756         (Expand_Protected_Private): Removed.
5757         Add Sure parameter to Note_Possible_Modification calls
5758
5759         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5760         generated subprogram declaration must inherit the overriding indicator
5761         from the instantiation node.
5762         (Validate_Access_Type_Instance): If the designated type of the actual is
5763         a limited view, use the available view in all cases, not only if the
5764         type is an incomplete type.
5765         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5766         and the actual subtype does not exclude null.
5767         (Process_Default): Handle properly abstract formal subprograms.
5768         (Check_Formal_Package_Instance): Handle properly defaulted formal
5769         subprograms in a partially parameterized formal package.
5770         Add Sure parameter to Note_Possible_Modification calls
5771         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5772         actual cannot be limited.
5773         (Collect_Previous_Instances): Generate instance bodies for subprograms
5774         as well.
5775
5776         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5777         try to set RM_Size.
5778         Add Sure parameter to Note_Possible_Modification calls
5779         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5780         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5781         constant overlaid by variable and issue warning.
5782         Use new Is_Standard_Character_Type predicate
5783         (Analyze_Record_Representation_Clause): Check that the specified
5784         Last_Bit is not less than First_Bit - 1.
5785         (Analyze_Attribute_Definition_Clause, case Address): Check for
5786         self-referential address clause
5787
5788         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5789         detection mechanism when the lhs is a prival.
5790         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5791         assignment of a pointer to protected data, to an object declared
5792         outside of the protected object.
5793         (Analyze_Loop_Statement): Check for unreachable code after loop
5794         Add Sure parameter to Note_Possible_Modication calls
5795         Protect analysis from previous syntax error such as a scope mismatch
5796         or a missing begin.
5797         (Analyze_Assignment_Statement): The assignment is illegal if the
5798         left-hand is an interface.
5799
5800         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5801         violation of restriction No_Implicit_Conditionals
5802         Add Sure parameter to Note_Possible_Modication calls
5803         Use new Is_Standard_Character_Type predicate
5804         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5805         call as operator. Fixes problems (e.g. validity checking) which
5806         come from the result looking as though it does not come from source).
5807         (Resolve_Call): Check case of name in named parameter if style checks
5808         are enabled.
5809         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5810         from the checking that such calls should not occur from an entry body.
5811         (Resolve_Call): If the return type of an Inline_Always function
5812         requires the secondary stack, create a transient scope for the call
5813         if the body of the function is not available for inlining.
5814         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5815         that are actuals for in-out formals.
5816         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5817         primitive operations from base type.
5818         (Analyze_Selected_Component): If the context is a call to a protected
5819         operation the parent may be an indexed component prior to expansion.
5820         (Resolve_Actuals): If an actual is of a protected subtype, use its
5821         base type to determine whether a conversion to the corresponding record
5822         is needed.
5823         (Resolve_Short_Circuit): Handle pragma Check
5824
5825         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5826         Use new Is_Standard_Character_Type predicate
5827         (Eval_Relational_Op): Catch more cases of string comparison
5828
5829 2008-04-08  Robert Dewar  <dewar@adacore.com>
5830             Gary Dismukes  <dismukes@adacore.com>
5831
5832         * s-rident.ads: Add No_Default_Initialization restriction
5833
5834         * exp_tss.adb:
5835         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5836         (Set_TSS): Handle No_Default_Initialization case
5837
5838         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5839         No_Default_Initialization
5840         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5841         parameters when Normalize_Scalars is active.
5842         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5843         Fix casing error in formal parameter name in call
5844         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5845         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5846         dispatching call on VM targets.
5847
5848 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5849             Thomas Quinot  <quinot@adacore.com>
5850
5851         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5852         selected component from an access type's Associated_Final_Chain to
5853         check for the presence of that field, rather than assuming it exists
5854         for all named access types.
5855         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5856         procedure to call at the end of the generated cleanup procedure.
5857         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5858         and an At_End_Proc already exists in the handled sequence of statements
5859         for which cleanup actions are being expanded, the original cleanup
5860         action must be preserved.
5861
5862 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5863             Ed Schonberg  <schonberg@adacore.com>
5864             Robert Dewar  <dewar@adacore.com>
5865             Gary Dismukes  <dismukes@adacore.com>
5866
5867         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5868         Build_Unprotected_Subprogram_Body): Generate debug info for
5869         declarations related to the handling of private data in task and
5870         protected types.
5871         (Debug_Private_Data_Declarations): New subprogram.
5872         (Install_Private_Data_Declarations): Remove all debug info flagging.
5873         This is now done by Debug_Private_Data_Declarations at the correct
5874         stage of expansion.
5875         (Build_Simple_Entry_Call): If the task name is a function call, expand
5876         the prefix into an object declaration, and make the surrounding block a
5877         task master.
5878         (Build_Master_Entity): An internal block is a master if it wraps a call.
5879         Code reformatting, update comments. Code clean up.
5880         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5881         (Replicate_Entry_Formals): If the formal is an access parameter or
5882         anonymous access to subprogram, copy the original tree to create new
5883         entities for the formals of the subprogram.
5884         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5885         for tasks to store the value passed using pragma Relative_Deadline.
5886         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5887         run-time call to create a task.
5888         (Build_Wrapper_Spec): If the controlling argument of the interface
5889         operation is an access parameter with a non-null indicator, use the
5890         non-null indicator on the wrapper.
5891
5892         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5893         present, which it may not be in the case where the type entity is an
5894         incomplete view brought in by a limited with.
5895         (Analyze_Task_Type): Only retrieve the full view when present, which it
5896         may not be in the case where the type entity is an incomplete view brought
5897         in by a limited with.
5898         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5899         private components of a protected type, to prevent the generation of freeze
5900         nodes for which there is no proper scope of elaboration.
5901
5902         * exp_util.ads, exp_util.adb
5903         (Remove_Side_Effects): If the expression is a function call that returns a
5904         task, expand into a declaration to invoke the build_in_place machinery.
5905         (Find_Protection_Object): New routine.
5906         (Remove_Side_Effects): Also make a copy of the value
5907         for attributes whose result is of an elementary type.
5908         (Silly_Boolean_Array_Not_Test): New procedure
5909         (Silly_Boolean_Array_Xor_Test): New procedure
5910         (Is_Volatile_Reference): New function
5911         (Remove_Side_Effects): Use Is_Volatile_Reference
5912         (Possible_Bit_Aligned_Component): Handle slice case properly
5913
5914         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5915         case test to Exp_Util
5916         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5917
5918 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5919
5920         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5921         in call
5922         (Add_RACW_Features): When processing an RACW in another unit than the
5923         main unit, set Body_Decls to No_List to indicate that the bodies of
5924         the type's TSS must not be generated.
5925         (GARLIC_Support.Add_RACW_Read_Attribute,
5926         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5927         Body_Decls is No_List.
5928         (PolyORB_Support.Add_RACW_Read_Attribute,
5929         PolyORB_Support.Add_RACW_Write_Attribute,
5930         PolyORB_Support.Add_RACW_From_Any,
5931         PolyORB_Support.Add_RACW_To_Any,
5932         PolyORB_Support.Add_RACW_TypeCode): Same.
5933         (Transmit_As_Unconstrained): New function.
5934         (Build_Ordered_Parameters_List): Use the above to order parameters.
5935         (GARLIC_Support.Build_General_Calling_Stubs):
5936         Use the above to determine which parameters to unmarshall using 'Input
5937         at the point where their temporary is declared (as opposed to later on
5938         with a 'Read call).
5939         (PolyORB_Support.Build_General_Calling_Stubs):
5940         Use the above to determine which parameters to unmarshall using From_Any
5941         at the point where their temporary is declared (as opposed to later on
5942         with an assignment).
5943
5944 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5945
5946         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5947         an Input function for an access type, do not perform default
5948         initialization on the local variable that receives the value, to
5949         prevent spurious warnings when the type is null-excluding.
5950
5951 2008-04-08  Robert Dewar  <dewar@adacore.com>
5952             Ed Schonberg  <schonberg@adacore.com>
5953
5954         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5955         units.
5956         (Size_Known): Generic formal scalar types have known at compile
5957         time size, so remove check.
5958         Fix casing error in formal parameter name in call
5959         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5960         recheck its overriding indication.
5961
5962 2008-04-08  Vincent Celier  <celier@adacore.com>
5963
5964         * gnat1drv.adb: Send all messages indicating an error to standard error
5965
5966 2008-04-08  Robert Dewar  <dewar@adacore.com>
5967
5968         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5969         (List_Applicable_Restrictions): Do not list existing restrictions
5970
5971 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5972
5973         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5974         add a pointer to generic sockets literature
5975         do not mention that the given example is "typical" usage.
5976         Remove obsolete comment about multicast not being supported on Windows.
5977         (Connect_Socket): Make Server mode IN rather than IN OUT
5978         since this formal is never modified.
5979
5980 2008-04-08  Robert Dewar  <dewar@adacore.com>
5981
5982         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5983         the declaration for some different entity.
5984         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5985         list is precent (following the parent subtype indication), display
5986         appropriate "and" keyword.
5987
5988         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5989         Remove unnecessary calls to Init_Size_Align and Init_Esize.
5990         Add notes on use of Parent field of an Itype
5991
5992 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5993             Robert Dewar  <dewar@adacore.com>
5994             Gary Dismukes  <dismukes@adacore.com>
5995
5996         * lib-xref.adb (Is_On_LHS): Remove dead code
5997         (Output_Overriden_Op): If the overridden operation is itself inherited,
5998         list the ancestor operation, which is the one whose body or absstract
5999         specification is actually being overridden. For source navigation
6000         purposes.
6001
6002         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6003         operation is primitive for the type.
6004         (Declare_Inherited_Private_Subprograms): If the new operation overrides
6005         an inherited private subprogram, set properly the Overridden_Operation
6006         attribute, for better cross-reference information.
6007         (Analyze_Package_Specification): Do late analysis of spec PPCs
6008         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6009         properly the full view and underlying full views of a private type in a
6010         child unit, whose full view is derived from a private type in a parent
6011         unit, and whose own full view becomes visible in the child body.
6012
6013         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6014         primitive operation after the type has been frozen, add an explicit
6015         reference to the type and the operation, because other primitive
6016         references have been emitted already.
6017         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6018         dispatching call on VM targets.
6019
6020 2008-04-08  Vincent Celier  <celier@adacore.com>
6021             Thomas Quinot  <quinot@adacore.com>
6022
6023         * make.adb: (Gnatmake_Called): Remove, no longer necessary
6024         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6025         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6026         (Insert_Project_Sources): Take into account index in multi-unit source
6027         files.
6028         After building a library project, delete all temporary files.
6029         (Initialize): Reset current output after parsing project file.
6030         (Collect_Arguments_And_Compile): Never insert in the queue the sources
6031         of library projects that are externally built.
6032         Put file name in error and inform messages if -df is used
6033         (Display): If invoked with -d7, do not display path names, but only
6034         file names.
6035
6036         * makeutl.ads (Path_Or_File_Name): New function
6037         (Path_Or_File_Name): New function
6038
6039 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
6040
6041         * Make-lang.in: Disable warnings during first stage of bootstrap
6042         Get rid of gnatbl.
6043         Update dependencies.
6044
6045 2008-04-08  Vincent Celier  <celier@adacore.com>
6046
6047         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6048         case to decide if ALI object file is included in library.
6049         (Build_Library): Never attempt to build a library if the project is
6050         externally built.
6051
6052 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6053
6054         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6055         (No_List) is defined to return Empty.
6056
6057 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
6058
6059         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6060         documentation.
6061         Update comments.
6062         (Read_Default_Search_Dirs): Do not consider spaces as path separators
6063         because spaces may be part of legal paths.
6064
6065 2008-04-08  Robert Dewar  <dewar@adacore.com>
6066
6067         * par-ch11.adb (P_Exception_Handler): Check indentation level for
6068         handler
6069
6070 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6071
6072         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6073         in a type declaration, if this is not an interface declaration or
6074         private type extension.
6075
6076 2008-04-08  Vincent Celier  <celier@adacore.com>
6077
6078         * prj-util.adb (Executable_Of): New String parameter Language. When
6079         Ada_Main is False and Language is not empty, attempt to remove the body
6080         suffix or the spec suffix of the language to get the base of the
6081         executable file name.
6082         (Put): New Boolean parameter Lower_Case, defauilted to False. When
6083         Lower_Case is True, put the value in lower case in the name list.
6084         (Executable_Of): If there is no executable suffix in the configuration,
6085         then do not modify Executable_Extension_On_Target.
6086
6087         * prj-util.ads (Executable_Of): New String parameter Language,
6088         defaulted to the empty string.
6089         (Put): New Boolean parameter Lower_Case, defauilted to False
6090
6091 2008-04-08  Robert Dewar  <dewar@adacore.com>
6092
6093         * scng.adb (Scan_Identifier): Handle case of identifier starting with
6094         wide character using UTF-8 encoding.
6095
6096 2008-04-08  Javier Miranda  <miranda@adacore.com>
6097
6098         * sem.adb (Analyze): Consider case in which we analyze an empty node
6099         that was generated by a call to a runtime function that is not
6100         available under the configurable runtime.
6101
6102         * sem.ads (Inside_Freezing_Actions): New flag.
6103         (Save_Check_Policy_List): New field in scope stack entry
6104
6105 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6106             Robert Dewar  <dewar@adacore.com>
6107
6108         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6109         the ancestor part of an extension aggregate for a limited type.
6110         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6111         enumeration index bounds.
6112         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6113         when array is too short.
6114         (Check_Expr_OK_In_Limited_Aggregate): Move function
6115         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6116         change name).
6117         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6118         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6119         component associations.
6120         (Check_Non_Limited_Type): Moved to outer level and renamed.
6121         (Resolve_Record_Aggregate): In an extension aggregate, an association
6122         with a box initialization can only designate a component of the
6123         extension, not a component inherited from the given ancestor
6124
6125         * sem_case.adb: Use new Is_Standard_Character_Type predicate
6126
6127 2008-04-08  Robert Dewar  <dewar@adacore.com>
6128
6129         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6130         negative scale
6131         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6132         Properly handle case where Aft > Scale and input number is less than
6133         one.
6134
6135 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6136
6137         * s-stoele.ads, s-soflin.ads: Move the location of
6138         Dummy_Communication_Block from System.Storage_Elements to
6139         System.Soft_Links.
6140
6141         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6142         emulate Communication_Block in certain scenarios.
6143
6144 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6145
6146         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6147         subprogram.
6148         Add new subtype S_WWC, unchecked conversion routines From_WWC and
6149         To_WWC.
6150         (I_WWC, O_WWC): New routines for input and output of
6151         Wide_Wide_Character.
6152
6153 2008-04-08  Robert Dewar  <dewar@adacore.com>
6154
6155         * stringt.adb (Write_String_Table_Entry): Handle wide characters
6156         properly
6157
6158 2008-04-08  Robert Dewar  <dewar@adacore.com>
6159
6160         * styleg.adb (Check_Comment): Allow special char after -- in
6161         non-end-of-line case
6162
6163 2008-04-08  Robert Dewar  <dewar@adacore.com>
6164
6165         * stylesw.adb: Implement -gnaty + - y options
6166         (Set_GNAT_Style_Check_Options): Includ I in style check string
6167
6168         * stylesw.ads: Add comments for new style switch options
6169
6170 2008-04-08  Sergey Rybin  <rybin@adacore.com>
6171
6172         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6173         to the set of the GNAT components needed by ASIS.
6174
6175 2008-04-08  Bob Duff  <duff@adacore.com>
6176
6177         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6178
6179 2008-04-08  Tristan Gingold  <gingold@adacore.com>
6180
6181         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6182         Improve error message generation.
6183
6184 2008-04-08  Vincent Celier  <celier@adacore.com>
6185
6186         * a-direct.adb (Start_Search): Check for Name_Error before checking for
6187         Use_Error, as specified in the RM. Check if directory is open and raise
6188         Use_Error if it is not.
6189
6190 2008-04-08  Vincent Celier  <celier@adacore.com>
6191             Robert Dewar  <dewar@adacore.com>
6192
6193         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6194         AAMP_On_Target is set.
6195
6196         * vms_data.ads: Add NOxxx to style check switch list
6197         Add entry COMPONENTS for -gnatVe
6198         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6199         (/SUBDIRS=).
6200         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6201         Add qualifiers for gnatmetric coupling options
6202         Add note that -gnata enables all checks
6203         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6204         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6205         New warning flag -gnatw.e
6206
6207         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6208         Add entry for -gnatyN (forgotten before)
6209         Line for new warning switch -gnatw.p
6210         New warning flag -gnatw.e
6211
6212         * gnat_ugn.texi: Add documentation fpr project file switch -aP
6213         Document -gnaty - + y
6214         Replace occurences of "package specification" with "package spec"
6215         Define preprocessing symbols in documentation of gnatprep
6216         Clarify reason for distinguishing overflow checking
6217         Add documentation for project-aware tool switches -eL and --subdirs=
6218         Complete list of configuration pragmas
6219         Specify that, even when gnatmake switch -x is used, mains on the command
6220         line need to be sources of project files.
6221         Editing of gnatcheck/gnatmetric doc.
6222         Add documentation for -gnatw.p/-gnatw.P
6223         Add missing documentation for -fno-inline-functions.
6224         Add documentation for -gnatw.e
6225
6226         * gnat_rm.texi: Add documentation for No_Default_Initialization
6227         Replace occurences of "package specification" with "package spec"
6228         Document use of * in Warnings Off string
6229         Update documentation of alignment/component clauses.
6230         Add documentation for Invalid_Value
6231         Document new consistency rule for Optimize_Alignment
6232         Add documentation for Precondition and Postcondition pragmas
6233         Add documentation for Check and Check_Policy pragmas
6234         Document new Enum_Val attribute
6235         Remove requirement for static string in pragma Assert
6236         Add documentation on GNAT.Time_Stamp
6237
6238         * ug_words: add entry for -gnatVe
6239         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6240         Add entry for -gnatw.e
6241
6242         * debug.adb: Add missing documentation for d.a flag
6243         Document new -gnatd.a switch.
6244         Add documentation for new gnatmake debug switch -df
6245
6246 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6247
6248         * gen-soccon.c: Bump year in copyright notices.
6249
6250         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6251
6252 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6253
6254         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6255         Minor reformatting.
6256
6257 2008-04-08  Robert Dewar  <dewar@adacore.com>
6258             Bob Duff  <duff@adacore.com>
6259
6260         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6261         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6262
6263         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6264
6265         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6266
6267         * g-trasym.ads: Minor comment improvements
6268
6269         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6270
6271         * a-sequio.ads, a-direio.ads: improve message for tagged type
6272
6273         * a-strunb.ads: Minor reformatting
6274
6275         * a-tifiio.adb: Minor reformatting
6276
6277         * atree.adb (Fix_Parents): Use clearer names for formals
6278         Cleanup and simplify code
6279         Use named notation in calls
6280
6281         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6282         confusing calls
6283
6284         * uintp.adb: Used named notation for some confusing calls
6285
6286         * bindusg.adb: Minor change in one line of output
6287
6288         * cstand.adb: Minor reformatting of src representation of Standard
6289
6290         * a-assert.ads: Add comment.
6291
6292         * g-decstr.adb: Fix bad indentation
6293
6294         * expander.ads, expander.adb: Code clean up.
6295
6296         * sem_dist.ads: Minor comment improvement
6297
6298         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6299         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6300
6301         * i-cstrin.adb: Fix casing error in formal parameter name in call
6302
6303 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6304
6305         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6306         mentioned in limited_with_clauses to do create semantic dependencies
6307         even though they appear in the ali file.
6308
6309 2008-04-08  Emmanuel Briot  <briot@adacore.com>
6310
6311         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6312         statement.
6313         (Get_Configuration): New subprogram.
6314
6315         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6316         These optional parameters help preserve the casing of the project's name
6317         when pretty-printing.
6318
6319 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
6320             Arnaud Charlet  <charlet@adacore.com>
6321
6322         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6323         then use __gnat_set_exit_status to report the returned status code.
6324
6325         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6326         messages on .NET, since some constructs of the language are not
6327         properly supported.
6328
6329         * gnatlink.adb (Gnatlink): In case the command line is too long for the
6330         .NET linker, gnatlink now concatenate all .il files and pass this to
6331         ilasm.
6332
6333 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6334             Xavier Grave  <grave@ipno.in2p3.fr>
6335
6336         * Makefile.in: Add make ifeq define for mips/mipsel support.
6337         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6338         system-linux-mips.ads: New files.
6339
6340 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6341
6342         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6343         detect systems using GNU libc.
6344         * gsocket.h: ditto.
6345         * socket.c: ditto.
6346         * adaint.c: ditto.
6347         * link.c: ditto.
6348
6349 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6350
6351         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6352         constant constant for sysconf call.
6353         (bit_field): New packed boolean type used by cpu_set_t.
6354         (cpu_set_t): New type corresponding to the C type with
6355         the same name. Note that on the Ada side we use a bit
6356         field array for the affinity mask. There is not need
6357         for the C macro for setting individual bit.
6358         (pthread_setaffinity_np): New imported routine.
6359         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6360         on GNU/kFreeBSD.
6361
6362 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6363
6364         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6365
6366 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6367
6368         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6369         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6370         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6371         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6372         Return by Depressed Stack Pointer.
6373
6374 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6375
6376         * decl.c (is_variable_size): Do not unconditionally return false
6377         on non-strict alignment platforms.
6378
6379 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6380
6381         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6382         used to process all the variants of the specified type.
6383         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6384         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6385         (rest_of_type_decl_compilation): Likewise.
6386         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6387
6388 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6389
6390         * gigi.h (insert_block): Kill.
6391         * utils.c (insert_block): Kill.
6392
6393 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6394
6395         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6396         type has self-referential size, get the size from the initializing
6397         expression directly if it is also a constant whose nominal type
6398         has self-referential size.
6399
6400 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6401
6402         PR ada/33688
6403         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6404
6405         PR ada/33857
6406         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6407         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6408
6409 2008-04-01  Andreas Jaeger  <aj@suse.de>
6410
6411         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6412         IP_PKTINFO.
6413
6414 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6415
6416         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6417         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6418         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6419         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6420         gnatlink.adb, gnatmem.adb, gprep.adb,
6421         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6422         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6423         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6424         lib-xref.ads, lib.adb, link.c, live.ads,
6425         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6426         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6427         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6428         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6429         namet.adb, namet.h, nlists.adb, nlists.ads,
6430         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6431         osint-c.ads, osint.adb, osint.ads, output.ads,
6432         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6433         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6434         par-endh.adb, par-labl.adb, par-prag.adb,
6435         par-sync.adb, par-tchk.adb, par-util.adb,
6436         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6437         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6438         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6439         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6440
6441 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6442
6443         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6444         size if it has overflowed.
6445
6446 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6447             Eric Botcazou  <ebotcazou@adacore.com>
6448
6449         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6450         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6451
6452 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6453
6454         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6455         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6456         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6457         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6458         exp_tss.ads, exp_util.adb, exp_util.ads,
6459         exp_vfpt.adb, freeze.adb, freeze.ads,
6460         frontend.adb, g-alleve.adb, g-altcon.adb,
6461         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6462         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6463         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6464         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6465         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6466         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6467         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6468         g-except.ads, g-expect.ads, g-heasor.adb,
6469         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6470         g-locfil.ads, g-md5.adb, g-md5.ads,
6471         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6472         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6473         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6474         g-soccon-aix.ads, g-soccon-darwin.ads,
6475         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6476         g-soccon-hpux.ads, g-soccon-irix.ads,
6477         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6478         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6479         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6480         g-soccon-solaris.ads, g-soccon-tru64.ads,
6481         g-soccon-vms.ads, g-soccon-vxworks.ads,
6482         g-soccon.ads, g-socket.adb, g-socket.ads,
6483         g-socthi-mingw.adb, g-socthi-vms.adb,
6484         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6485         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6486         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6487         typos.
6488
6489 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6490
6491         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6492         if the procedure is imported.
6493
6494 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6495
6496         * adaint.c: Fix warnings.
6497
6498 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6499
6500         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6501
6502 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6503
6504         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6505         Fix problem of status check for null file
6506
6507 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6508
6509         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6510         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6511         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6512         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6513         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6514         comments.
6515
6516 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6517
6518         PR ada/33688
6519         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6520         Get_Socket_Option): Add support for Receive_Packet_Info.
6521
6522         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6523         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6524         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6525         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6526         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6527         new constants SO_REUSEPORT and IP_PKTINFO
6528
6529 2008-03-26  Robert Dewar  <dewar@adacore.com>
6530
6531         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6532         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6533         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6534         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6535         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6536         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6537         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6538         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6539         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6540         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6541         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6542         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6543         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6544         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6545         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6546         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6547         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6548         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6549         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6550         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6551         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6552         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6553         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6554         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6555         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6556         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6557         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6558         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6559         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6560         s-tasloc.adb: Minor reformatting.
6561         Update comments.
6562         Remove "used for" sections from comments.
6563
6564 2008-03-26  Robert Dewar  <dewar@adacore.com>
6565
6566         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6567         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6568         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6569         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6570         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6571         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6572         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6573         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6574         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6575         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6576         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6577         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6578         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6579         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6580         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6581         double spaced if it fits on one line and otherwise single spaced.
6582
6583 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6584
6585         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6586         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6587         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6588         or task info if the thread could not be created.
6589
6590 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6591
6592         * gnatvsn.ads (Library_Version): Bump to 4.4.
6593         (Current_Year): Bump to 2008.
6594
6595 2008-03-26  Robert Dewar  <dewar@adacore.com>
6596
6597         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6598
6599         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6600
6601         * debug.adb: Add debug flags d.r and d.v
6602         Add debug flag .T (Optimize_Alignment (Time))
6603         Add debug flag .S (Optimize_Alignment (Space))
6604
6605         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6606         depending on setting of relevant debug flags.
6607         Replace use of Warnings_Off by Has_Warnings_Off
6608         (Freeze_Entity): In circuit for warning on suspicious convention
6609         actuals, do not give warning if subprogram has same entity as formal
6610         type, or if subprogram does not come from source.
6611         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6612         if Optimize_Alignment set to Space.
6613
6614         * frontend.adb: Add call to Sem_Warn.Initialize
6615         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6616         Reset Optimize_Alignment mode from debug switches .S and .T
6617
6618         * layout.adb (Layout_Composite_Object): Rewritten for
6619         Optimize_Aligment pragma.
6620
6621         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6622         mode.
6623
6624         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6625
6626         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6627         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6628         this change. Add entry for pragma Optimize_Alignment
6629
6630         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6631         (Pragma_Identifier (..
6632         instead, adjustments throughout to accomodate this change.
6633         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6634         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6635         Add implementation of pragma Optimize_Alignment
6636
6637 2008-03-26  Vincent Celier  <celier@adacore.com>
6638
6639         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6640         Improve memory usage to avoid use of stack.
6641
6642 2008-03-26  Robert Dewar  <dewar@adacore.com>
6643
6644         * a-teioed.ads: Correct value of Default_Fill
6645
6646         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6647
6648 2008-03-26  Robert Dewar  <dewar@adacore.com>
6649
6650         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6651         with Current_Output (introduce Self).
6652
6653 2008-03-26  Robert Dewar  <dewar@adacore.com>
6654
6655         * checks.adb (Ensure_Valid): Capture valid status if possible
6656         (eliminate checks)
6657
6658 2008-03-26  Robert Dewar  <dewar@adacore.com>
6659
6660         * stand.ads: Deal with reordering of package standard declarations
6661
6662         * cstand.adb: Put package Standard declarations in proper order
6663
6664 2008-03-26  Robert Dewar  <dewar@adacore.com>
6665
6666         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6667         (Pragma_Identifier (.. instead.
6668         (OK_To_Reorder_Components): New flag
6669         (Has_Entries): Code cleanup.
6670         (Warnings_Off_Used): New flag
6671         (Warnings_Off_Used_Unmodified): New flag
6672         (Warnings_Off_Used_Unreferenced): New flag
6673         (Has_Warnings_Off): New function
6674         (Has_Unmodified): New function
6675         (Has_Unreferenced): New function
6676         (Is_Trivial_Subprogram): New flag
6677         (Is_Static_Dispatch_Table_Entity): New attribute.
6678         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6679         (more consistent with other similar names)
6680         (Access_Subprogram_Type): New classification function
6681
6682 2008-03-26  Robert Dewar  <dewar@adacore.com>
6683
6684         * errout.ads: Document new !! insertion sequence
6685
6686         * errout.adb (N_Pragma): Chars field removed, use Chars
6687         (Pragma_Identifier (..  instead.
6688         Replace use of Warnings_Off by Has_Warnings_Off
6689         (Error_Msg_Internal): Don't delete warning ending in !!
6690
6691 2008-03-26  Robert Dewar  <dewar@adacore.com>
6692
6693         * par.adb (Check_No_Right_Paren): Removed no longer used
6694
6695         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6696         (Pragma_Identifier (..  instead.
6697
6698         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6699
6700         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6701         par-ch4.adb: Minor improvements in error recovery and messages.
6702
6703         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6704         non-serious
6705
6706         * par-ch9.adb: Minor improvements in error recovery and messages
6707         (P_Protected): Better error recovery for "protected type x;"
6708
6709         * par-util.adb: Minor improvements in error recovery and messages
6710         (Check_No_Right_Paren): Removed no longer used
6711
6712 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6713
6714         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6715         that the prefix of an attribute is the type of the aggregate being
6716         expanded.
6717
6718 2008-03-26  Javier Miranda  <miranda@adacore.com>
6719             Robert Dewar  <dewar@adacore.com>
6720
6721         * exp_attr.adb (N_Pragma): Chars field removed.
6722         (Expand_N_Attribute_Reference): If the designated type associated with
6723         attribute 'Unrestricted_Access is a subprogram entity then replace it
6724         by an E_Subprogram_Type itype.
6725         Implement attribute Old
6726
6727         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6728
6729         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6730         Replace call to
6731         New_Internal_Entity by call to Create_Itype to centralize calls
6732         building itypes, ad propagate the convention of the designated
6733         subprogram. In addition, disable the machinery cleaning constant
6734         indications from all entities in current scope when 'Unrestricted_Access
6735         corresponds with a node initializing a dispatch table slot.
6736         (Analyze_Attribute): Parameterless attributes returning a string or a
6737         type will not be called with improper arguments, so we can remove junk
6738         code that was dealing with this case.
6739         Implement attribute Old
6740
6741         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6742         Add entry for pragma Optimize_Alignment
6743         New standard names Sync and Synchronize
6744
6745 2008-03-26  Robert Dewar  <dewar@adacore.com>
6746             Arnaud Charlet  <charlet@adacore.com>
6747
6748         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6749         stmt.
6750         (No_Exception_Propagation_Active): New function.
6751         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6752         Update comments, and review all uses of No_Exception_Propagation, which
6753         are now correct and in sync with what gigi expects.
6754
6755         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6756         function.
6757         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6758         Update comments, and review all uses of No_Exception_Propagation, which
6759         are now correct and in sync with what gigi expects.
6760
6761 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6762
6763         * sem_ch3.adb (Access_Definition): If the access type is the return
6764         result of a protected function, create an itype reference for it
6765         because usage will be in an inner scope from the point of declaration.
6766         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6767         OK_To_Reorder_Components.
6768         (Make_Index): If an overloaded range includes a universal integer
6769         interpretation, resolve to Standard.Integer.
6770         (Analyze_Subtype_Indication): Copy Convention to subtype
6771         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6772         limited an synchronized progenitors in type declaration and private
6773         extension declarations.
6774
6775         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6776         protected subprogram body, determine proper scope from subprogram
6777         declaration.
6778
6779 2008-03-26  Robert Dewar  <dewar@adacore.com>
6780
6781         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6782         No_Run_Time_Mode
6783
6784 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6785
6786         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6787         of a heap allocator for a limited unconstrained function return when
6788         resstriction No_Allocators is active.
6789         (Analyze_Allocator): The restriction No_Allocators is now only checked
6790         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6791
6792         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6793         of a heap allocator for a limited unconstrained function return when
6794         resstriction No_Allocators is active.
6795         (Analyze_Allocator): The restriction No_Allocators is now only checked
6796         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6797         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6798         operands are fixed-point types, the universal_fixed predefined operation
6799         is used, regardless of whether the operand type (s) have a primitive
6800         operation of the same name.
6801
6802 2008-03-26  Javier Miranda  <miranda@adacore.com>
6803
6804         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6805         Is_Static_Dispatch_Table
6806         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6807         to Exchange_Declarations to exchange the private and full-view. Bug
6808         found working in this issue.
6809         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6810         to the subprogram pointer type.
6811         (Make_Secondary_DT): Replace generation of Prim'Address by
6812         Address (Prim'Unrestricted_Access)
6813         (Make_DT): Replace generation of Prim'Address by
6814         Address (Prim'Unrestricted_Access)
6815         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6816         simple call form for single entry.
6817         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6818         tables of predefined primitives).
6819         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6820         predefined primitives.
6821         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6822         access to dispatch tables containing predefined primitives.
6823
6824         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6825         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6826         this change.
6827         (Register_Predefined_DT_Entry): Updated to handle the new contents
6828         of attribute Access_Disp_Table (pointers to dispatch tables containing
6829         predefined primitives).
6830
6831         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6832         subprogram.
6833         (Find_Interface_ADT): Updated to skip the new contents of attribute
6834         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6835         primitives).
6836
6837         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6838         concurrent types.
6839         (Set_Convention): Use new function Is_Access_Subprogram_Type
6840         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6841         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6842         primitives).
6843
6844         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6845         expanded code avoiding calls to Build_Predef_Prims.
6846         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6847         call to Build_Get_Predefined_Prim_Op_Address.
6848
6849 2008-03-26  Javier Miranda  <miranda@adacore.com>
6850
6851         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6852         subprogram Corresponding_Runtime_Package to know the runtime package
6853         that will provide support to a given protected type.
6854
6855         * exp_ch9.adb (Add_Private_Declarations,
6856         Build_Protected_Subprogram_Call,
6857         Build_Protected_Entry, Build_Simple_Entry_Call,
6858         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6859         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6860         cleanup using the new centralized subprogram Corresponding_Runtime
6861         Package to know the runtime package that provides support to
6862         a given protected type.
6863
6864 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6865
6866         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6867         assignment is within the initialization procedure for a packed array,
6868         and Initialize_Scalars is enabled, compile right-hand side with checks
6869         off, because the value is purposely out of range.
6870
6871 2008-03-26  Vincent Celier  <celier@adacore.com>
6872
6873         * gnatcmd.adb: Add processing for GNAT SYNC
6874
6875         * vms_conv.ads: (Command_Type): Add command Sync
6876
6877         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6878
6879         * vms_data.ads: Add entries for -gnatw.w
6880         Add qualifier for gnatstub --header-file option
6881         Add switches for GNAT SYNC
6882
6883         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6884         (Add_Package_Name): New procedure
6885         (Package_Name_List): New function
6886         (Initialize): Add known package names to the list
6887         (Register_New_Package): Add the new package name to the list
6888
6889 2008-03-26  Robert Dewar  <dewar@adacore.com>
6890
6891         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6892         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6893         Raise_Exception by "raise with" construct.
6894
6895 2008-03-26  Pascal Obry  <obry@adacore.com>
6896
6897         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6898         supported platforms.
6899
6900         * Makefile.rtl: Add g-sercom.o.
6901
6902         * impunit.adb: Add g-sercom.adb.
6903
6904         * s-crtl.ads (open): New routine.
6905         (close): Likewise.
6906         (write): Likewise.
6907
6908         * s-osinte-mingw.ads (BYTE): New type.
6909         (CHAR): Likewise.
6910         (OVERLAPPED): Likewise.
6911         (GENERIC_READ): New constant.
6912         (GENERIC_WRITE): Likewise.
6913         (OPEN_EXISTING): Likewise.
6914         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6915         type instead.
6916         (CreateFile): New routine.
6917         (WriteFile): Likewise.
6918         (ReadFile): Likewise.
6919         (CloseHandle): Move next to the other file oriented routines.
6920
6921         * g-sercom.ads: New unit.
6922
6923         * g-sercom.adb: Default implementation, calls to this unit will raise
6924         a program error exception.
6925
6926         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6927         GNU/Linux implementations.
6928
6929 2008-03-26  Robert Dewar  <dewar@adacore.com>
6930
6931         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6932
6933         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6934         unchecked conversion for different conventions only for subprogram
6935         pointers or on VMS.
6936
6937 2008-03-26  Vincent Celier  <celier@adacore.com>
6938
6939         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6940         to check if the specified object file is correct.
6941
6942 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6943
6944         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6945         Comes_From_Source to exclude primitives from being checked. We want to
6946         exclude predefined primitives only, so use the appropriate specific
6947         predicate. Also, flag a formal parameter of an anonymous
6948         access-to-subprogram type as illegal for a primitive operation of a
6949         remote access to class-wide type.
6950
6951 2008-03-26  Vincent Celier  <celier@adacore.com>
6952
6953         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6954         known, check if it may be a missspelling of a known package name. In
6955         not verbose, not mode, issue warnings only if the package name is a
6956         possible misspelling.
6957         In verbose mode, always issue a warning for a not known package name,
6958         plus a warning if the name is a misspelling of a known package name.
6959
6960         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6961         limited withs or limited withs are parse during one call.
6962         (Parse_Single_Project): Post parse context clause in two passes: non
6963         limited withs before current project and limited withs after current
6964         project.
6965
6966         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6967         project with the name With_Name, even if it is only extended indirectly.
6968         (Recursive_Process): Process projects in order: first single withs, then
6969         current project, then limited withs.
6970
6971         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6972         project with the name With_Name, even if it is only extended indirectly.
6973
6974 2008-03-26  Robert Dewar  <dewar@adacore.com>
6975
6976         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6977
6978 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6979
6980         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6981         a generic subprogram that is imported, do not attempt to compile
6982         non-existent body.
6983
6984         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6985         imported, do not generate a raise_program_error for the non-existent
6986         body.
6987         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6988         perform minimal name resolution on the generic to avoid spurious
6989         warnings.
6990         (Find_Actual_Type): the designated type of the actual in a child unit
6991         may be declared in a parent unit without being an actual.
6992
6993 2008-03-26  Robert Dewar  <dewar@adacore.com>
6994
6995         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6996         * sinfo.ads, sinfo.adb (From_At_End): New flag
6997
6998 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6999
7000         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7001         operations that have an interface parameter.
7002         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7003         Don't treat No_Return call as raise.
7004
7005         * sem_disp.adb (Check_Dispatching_Operations): apply check for
7006         non-primitive interface primitives to access parameters, not to all
7007         parameters of an access type.
7008
7009 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
7010
7011         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7012         declarations of a parent unit are made visible when compiling a child
7013         instance, the parent is not a hidden open scope, even though it may
7014         contain other pending instance.
7015
7016         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7017         hidden open scope for some child instance, it does affect the
7018         visibility status of other stach entries.
7019         (Analyze_Object_Renaming): Check that a class-wide object cannot be
7020         renamed as an object of a specific type.
7021
7022 2008-03-26  Robert Dewar  <dewar@adacore.com>
7023
7024         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7025         recursion and raise SE directly.
7026         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7027         set for formal type for IN mode parameter.
7028
7029 2008-03-26  Robert Dewar  <dewar@adacore.com>
7030
7031         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7032         (Initialize): New procedure
7033         (Output_Warnings_Off_Warnings): New procedure
7034         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7035         (Output_Non_Modifed_In_Out_Warnings): Ditto
7036         (Warn_On_Unreferenced_Entity): Ditto
7037
7038 2008-03-26  Vincent Celier  <celier@adacore.com>
7039
7040         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7041         readable.
7042
7043 2008-03-26  Matthew Heaney  <heaney@adacore.com>
7044
7045         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7046         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7047         Marked with clauses as private, and controlled operations as overriding
7048
7049 2008-03-26  Robert Dewar  <dewar@adacore.com>
7050
7051         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7052
7053 2008-03-26  Robert Dewar  <dewar@adacore.com>
7054
7055         * back_end.adb, back_end.ads: Minor reformatting
7056
7057         * bindgen.adb: Minor clarification of comments
7058
7059         * fname.ads: Minor comment fixes
7060
7061         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7062         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7063
7064         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7065         xsnames.adb: Remove warnings off pragma no longer needed
7066
7067         * a-catizo.ads, a-calari.ads, a-calfor.adb,
7068         a-calfor.ads: Fix header.
7069
7070 2008-03-26  Tristan Gingold  <gingold@adacore.com>
7071
7072         * init.c: Do not adjust pc for HPARITH on alpha/vms.
7073
7074 2008-03-26  Robert Dewar  <dewar@adacore.com>
7075
7076         * lib-xref.adb: (OK_To_Set_Reference): New function
7077         (Generate_Reference): Don't set referenced from occurrence in Warnings,
7078         Unmodified, or Unreferenced pragma
7079
7080 2008-03-26  Robert Dewar  <dewar@adacore.com>
7081
7082         * alloc.ads: Add entries for Warnings_Off_Pragmas table
7083
7084 2008-03-26  GNAT Script  <nobody@adacore.com>
7085
7086         * Make-lang.in: Makefile automatically updated
7087
7088 2008-03-26  Robert Dewar  <dewar@adacore.com>
7089
7090         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7091         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7092         removed, use Chars (Pragma_Identifier (..  instead, adjustments
7093         throughout to accomodate this change.
7094
7095         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7096
7097         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7098         Einfo.Set_Needs_Debug_Info)
7099
7100 2008-03-26  Robert Dewar  <dewar@adacore.com>
7101
7102         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7103         Add description for the new gnatstub option '--header-file'
7104         clarification of -gnatwz/-gnatwZ
7105         Add a "Irix-Specific Considerations" section to document the need to
7106         set LD_LIBRARY_PATH when using the default shared runtime library.
7107         Added documentation for both gcov and gprof.
7108
7109         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7110         messages that are not suppressed when clients are compiled.
7111         Add documentation of s-pooglo s-pooloc
7112         Document the new GNAT.Serial_Communications API.
7113         Add documentation for 'Old attribute
7114         Add description of pragma Optimize_Alignment
7115
7116         * ug_words: Add entries for -gnatw.w -gnatw.W
7117
7118         * usage.adb: Add line for -gnatw.w (warn on warnings off)
7119
7120 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7121
7122         Revert
7123         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7124         PR ada/35186
7125         * decl.c (maybe_pad_type): Avoid padding an integral type when
7126         bumping its alignment is sufficient.
7127
7128 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
7129
7130         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7131         Fix wrong formatting (lines too long)
7132
7133 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7134
7135         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7136         a-calend-vms.adb, a-calend.adb, a-calend.ads,
7137         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7138         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7139         a-cohama.ads, a-comlin.ads, a-coorse.adb,
7140         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7141         a-except-2005.ads, a-except.adb, a-except.ads,
7142         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7143         a-exextr.adb, a-filico.ads, a-finali.ads,
7144         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7145         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7146         a-sequio.ads, a-strbou.ads, a-strfix.adb,
7147         checks.adb, exp_ch3.adb, exp_ch4.adb,
7148         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7149         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7150         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7151         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7152         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7153
7154 2008-03-24  Robert Dewar  <dewar@adacore.com>
7155
7156         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7157         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7158         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7159         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7160         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7161         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7162         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7163         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7164         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7165         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7166         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7167         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7168         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7169         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7170         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7171         double spaced if it fits on one line and otherwise single spaced.
7172
7173 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7174
7175         PR documentation/15479
7176         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7177         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7178         (doc/gnat_ugn.info): Renamed from ...
7179         (doc/gnat_ugn_unw.info): ... this.
7180         (doc/gnat_ugn.dvi): Renamed from ...
7181         (doc/gnat_ugn_unw.dvi): ... this.
7182         (doc/gnat_ugn.pdf): Renamed from ...
7183         (doc/gnat_ugn_unw.pdf): ... this.
7184         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7185         Adjusted.
7186         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7187         unconditionally to gnat_ugn.info.  Fix cross references to the
7188         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
7189         and GNU make manuals to be proper texinfo links.
7190         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7191
7192 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7193
7194         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7195         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7196
7197 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
7198
7199         * trans.c (addressable_p): Add notes on addressability issues.
7200
7201 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7202             Ed Schonberg  <schonberg@adacore.com>
7203
7204         * trans.c (addressable_p): Accept COND_EXPR when both arms
7205         are addressable.
7206         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7207         (call_to_gnu): Do not use name reference in the error message
7208         for a misaligned by_reference_parameter. The actual may be a
7209         general expression.
7210
7211 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7212
7213         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7214
7215 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7216
7217         * gnat_rm.texi (Implementation Defined Characteristics)
7218         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7219         appropriate.
7220         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7221         (Switches for gnatchop, Installing a library): Likewise.
7222
7223 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
7224
7225         * trans.c (emit_range_check): Do not emit the check if the base type
7226         of the expression is the type against which its range must be checked.
7227
7228 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7229
7230         * decl.c (maybe_pad_type): Use value_factor_p.
7231
7232 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7233
7234         * lang.opt (nostdlib): Move around.
7235         * misc.c (gnat_handle_option): Fix formatting.
7236         (gnat_dwarf_name): Move around.
7237         * trans.c (Case_Statement_to_gnu): Fix formatting.
7238         (gnat_to_gnu): Likewise.
7239         * utils.c (aggregate_type_contains_array_p): Likewise.
7240         (create_subprog_decl): Likewise.
7241
7242 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7243
7244         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7245         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7246
7247 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7248
7249         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7250         BIGGEST_ALIGNMENT when capping the alignment of records with
7251         strict alignment and size clause.
7252
7253 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7254
7255         * lang-specs.h: Pass -gnatwa if -Wall is passed.
7256         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7257         and -Wuninitialized.
7258         (gnat_post_options): Clear warn_unused_parameter.
7259
7260 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7261
7262         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7263         aligned bit-fields, bumping the alignment of the record type if deemed
7264         profitable.
7265         (value_factor_p): Return false instead of 0.
7266
7267 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7268
7269         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7270         for scalar types with small alignment.
7271
7272 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7273
7274         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7275         from that of the front-end's end label.
7276         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7277         from that of the loop label.
7278
7279 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7280
7281         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7282         comment for the packed array type case.
7283         * utils.c (build_template): Use a loop to strip padding or
7284         containing records for justified modular types.
7285
7286 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7287
7288         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7289         large alignments specified for types.
7290         (validate_alignment): Minor cleanup.
7291
7292 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7293
7294         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7295         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7296         the component for packing, if possible, as well as if a component
7297         size clause is specified.
7298         <E_Record_Subtype>: For an array type used to implement a packed
7299         array, get the component type from the original array type.
7300         Try to get a smaller form of the component for packing, if possible,
7301         as well as if a component size clause is specified.
7302         (round_up_to_align): New function.
7303         (make_packable_type): Add in_record parameter.
7304         For a padding record, preserve the size.  If not in_record and the
7305         size is too large for an integral mode, attempt to shrink the size
7306         by lowering the alignment.
7307         Ditch the padding bits of the last component.
7308         Compute sizes and mode manually, and propagate the RM size.
7309         Return a BLKmode record type if its size has shrunk.
7310         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7311         Use Original_Array_Type to retrieve the type in case of an error.
7312         Adjust call to make_packable_type.
7313         (gnat_to_gnu_field): Likewise.
7314         (concat_id_with_name): Minor tweak.
7315         * trans.c (larger_record_type_p): New predicate.
7316         (call_to_gnu): Compute the nominal type of the object only if the
7317         parameter is by-reference.  Do the conversion actual type -> nominal
7318         type if the nominal type is a larger record.
7319         (gnat_to_gnu): Do not require integral modes on the source type to
7320         avoid the conversion for types with identical names.
7321         (addressable_p): Add gnu_type parameter.  If it is specified, do not
7322         return true if the expression is not addressable in gnu_type.
7323         Adjust recursive calls.
7324         * utils.c (finish_record_type): Remove dead code.
7325
7326 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7327
7328         PR ada/35186
7329         * decl.c (maybe_pad_type): Avoid padding an integral type when
7330         bumping its alignment is sufficient.
7331
7332 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7333
7334         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7335         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7336         statement.
7337         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7338         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7339         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7340         code output strings.
7341         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7342         system-vms_64.ads: Fix typos in ada source code comments.
7343         * sinfo-cn.adb: Remove incomplete sentence.
7344
7345         PR documentation/15479
7346         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7347
7348 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7349
7350         PR ada/22255
7351         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7352
7353 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7354
7355         PR ada/34799
7356         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7357         that underlying type is present.
7358
7359 2008-02-26  Tom Tromey  <tromey@redhat.com>
7360
7361         * misc.c (internal_error_function): Remove test of
7362         USE_MAPPED_LOCATION.
7363         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7364         (Sloc_to_locus): Remove old location code.
7365
7366 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7367
7368         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7369         `i.e.' by adding comma or `@:' as appropriate.
7370         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7371         plain characters `C', use `@samp{C}'.
7372         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7373         (Krunching Method): Likewise.
7374
7375         * gnat_ugn.texi (Conventions): List environment variables and
7376         metasyntactic variables.
7377         (Compiling Programs): Fix notation of metasyntactic variables.
7378         Add @file where appropriate.  Use @file for file extensions,
7379         @samp for strings.
7380         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7381         instead of @file, @env instead of @code.
7382
7383 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7384
7385         PR documentation/15479
7386         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7387         and `...' with `@dots{}' or `@enddots{}'.
7388
7389         PR documentation/15479
7390         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7391         use @command instead of @code, @option instead of @samp or @code,
7392         @code instead of @var, @samp instead of @file.
7393
7394         PR documentation/15479
7395         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7396         in Makefile rules, by using `&&' rather than `;'.
7397
7398 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7399
7400         PR documentation/15479
7401         * gnat_ugn.texi: In non-code, avoid space before colon.
7402         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7403         (Examples of gnatxref Usage): Use @command{vi} instead of
7404         @file{vi}.
7405         (Character Set Control): Do not use @code for UTF-8.
7406         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7407         use @code for IEEE.
7408         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7409         sample.
7410         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7411
7412 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7413
7414         PR ada/35143
7415         * env.c: Add __rtems__ to if defined.
7416         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7417         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7418         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7419         pragma Convention as required.
7420         * gsocket.h: Make compile in and out of RTS.
7421         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7422         Use g-soccon-rtems.ads.
7423         * g-soccon-rtems.ads, system-rtems.ads: New files.
7424
7425 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7426
7427         PR other/35107
7428         * Make-lang.in (gnat1): Add $(GMPLIBS).
7429
7430 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7431
7432         * decl.c (components_to_record): Improve comment.
7433
7434 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7435
7436         * decl.c (components_to_record): Do not reuse the empty union type
7437         if there is a representation clause on the record.
7438         * trans.c (addressable_p): Return true for INTEGER_CST.
7439
7440 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7441
7442         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7443         in pointer arithmetics.
7444         * utils2.c (build_allocator): Likewise.
7445
7446 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7447
7448         * utils.c (build_function_stub): Properly build the call expression.
7449
7450 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7451
7452         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7453         before converting the expression to the type of the object.
7454         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7455         Stabilize constructors for special wrapping types.
7456
7457 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7458
7459         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7460         when necessary.  Merge some conditional statements.  Update comments.
7461         Rename unchecked_convert_p local variable to suppress_type_conversion.
7462         Do not suppress conversions in the In case.
7463         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7464         into account on non strict-alignment platforms.
7465
7466 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7467
7468         * utils.c (aggregate_type_contains_array_p): New predicate.
7469         (create_field_decl): In a packed record, force byte alignment
7470         for fields without specified position that contain an array.
7471
7472 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7473
7474         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7475
7476 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7477
7478         PR ada/34466
7479         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7480         sysconf call.
7481         (bit_field): New packed boolean type used by cpu_set_t.
7482         (cpu_set_t): New type corresponding to the C type with
7483         the same name. Note that on the Ada side we use a bit
7484         field array for the affinity mask. There is not need
7485         for the C macro for setting individual bit.
7486         (pthread_setaffinity_np): New imported routine.
7487
7488 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7489
7490         PR ada/34647
7491         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7492         on OpenBSD as is done on other BSD systems.
7493
7494         PR ada/34645
7495         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7496         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7497         I/O.
7498
7499         PR ada/34644
7500         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7501         clearenv().
7502
7503         PR ada/34646
7504         * init.c (__gnat_error_handler, __gnat_install_handler,
7505         __gnat_init_float): Define for OpenBSD.
7506
7507         * initialize.c (__gnat_initialize): Define for OpenBSD.
7508
7509 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7510
7511         PR ada/34553
7512         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7513         instead of mktemp() or tmpnam() on NetBSD.
7514
7515 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7516
7517         * trans.c (call_to_gnu): Make the temporary for non-addressable
7518         In parameters passed by reference.
7519         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7520
7521 2007-12-19  Robert Dewar  <dewar@adacore.com>
7522
7523         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7524         Add pragma Warnings (Off) for unassigned IN OUT arguments
7525
7526         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7527         (Check_References): Extensive changes to tune up warnings
7528         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7529         (Has_Pragma_Unmodifed_Check_Spec): New function
7530         (Check_References): Implement pragma Unmodified
7531         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7532
7533         * par-prag.adb: Dummy entry for pragma Unmodified
7534
7535         * sem_prag.adb: Implement pragma Unmodified
7536
7537         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7538         (Proc_Next_Component_Or_Discriminant): Fix typo.
7539         Update comments.
7540
7541         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7542         Unmodified.
7543         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7544         because the former already takes care of discarding the result.
7545         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7546         Add comment.
7547
7548         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7549
7550 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7551
7552         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7553         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7554         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7555         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7556         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7557         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7558         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7559         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7560         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7561         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7562         (Dynamic_Trampolines_Used): Delete.
7563
7564         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7565         Turn on stack probing mechanism on LynxOS.
7566
7567 2007-12-19  Bob Duff  <duff@adacore.com>
7568
7569         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7570         the resulting tail recursion by hand. This prevents running out of
7571         memory on deeply nested concatenations, since Field2 is where the left
7572         operand of concatenations is stored.
7573         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7574         clarify that it can only return OK or Abandon.
7575
7576         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7577         operand by iteration, in order to avoid running out of memory on
7578         deeply-nested concatenations. Use the Parent pointer to get back up the
7579         tree.
7580         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7581          Resolve_Op_Concat_Rest): New procedures split out of
7582         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7583         clearer.
7584
7585         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7586         Traverse_Func, because the former already takes care of discarding the
7587         result.
7588
7589         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7590         because the former already takes care of discarding the result.
7591         (Remove_Warning_Messages): Use appropriate subtype for Status and
7592         Discard
7593
7594 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7595
7596         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7597         discriminants forces expansion of the aggregate into assignments.
7598         (Init_Record_Controller):  If the type of the aggregate is untagged and
7599         is not inherently limited, the record controller is not limited either.
7600
7601 2007-12-19  Robert Dewar  <dewar@adacore.com>
7602
7603         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7604         handling compile time known size of record or array (case of front end
7605         layout active, e.g. in GNAAMP).
7606
7607 2007-12-19  Javier Miranda  <miranda@adacore.com>
7608
7609         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7610         that forces the construction of static dispatch tables in case of
7611         record subtypes.
7612
7613 2007-12-19  Robert Dewar  <dewar@adacore.com>
7614
7615         * exp_ch9.adb (Null_Statements): Moved to library level
7616         (Trivial_Accept_OK): New function
7617         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7618         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7619
7620 2007-12-19  Robert Dewar  <dewar@adacore.com>
7621
7622         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7623         in complex case where array is Volatile.
7624
7625 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7626
7627         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7628         properly the Ada2005 rules concerning when the current instance of a
7629         record type is aliased.
7630
7631 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7632
7633         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7634         mangled declaration
7635         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7636         declarations.
7637         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7638
7639 2007-12-19  Vincent Celier  <celier@adacore.com>
7640
7641         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7642         package is not known
7643
7644         * prj-attr.ads (Unknown_Package): New constant
7645         Do not crash when an unknown package is in several projects
7646
7647         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7648         ignored
7649
7650         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7651         existing package Language_Processing.
7652
7653 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7654             Gary Dismukes  <dismukes@adacore.com>
7655             Samuel Tardieu  <sam@rfc1149.net>
7656
7657         PR ada/15803, ada/15805
7658         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7659         illegal access subtypes when there is a constrained partial view.
7660         (Check_For_Premature_Usage): New procedure inside
7661         Access_Subprogram_Declaration for checking that an access-to-subprogram
7662         type doesn't reference its own name within any formal parameters or
7663         result type (including within nested anonymous access types).
7664         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7665         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7666         context is an access_to_variable, the expression cannot be an
7667         access_to_constant.
7668
7669 2007-12-19  Bob Duff  <duff@adacore.com>
7670
7671         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7672         (Analyze_Concatenation): Use iteration instead of recursion in order
7673         to avoid running out of stack space for deeply nested concatenations.
7674
7675 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7676             Gary Dismukes  <dismukes@adacore.com>
7677
7678         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7679         whose renamed entity is a subprogram that requires overriding.
7680         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7681         issuing an error for premature usage and issue a message that says
7682         'type' rather than 'object'.
7683
7684 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7685
7686         PR ada/34149
7687         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7688         presence of a statically tagged operand (Present (Static_Tag)) with
7689         test for Indeterm_Ancestor_Call when determining whether to propagate
7690         the static tag to tag-indeterminate operands (which forces dispatching
7691         on such calls).
7692         (Check_Controlling_Formals): Ada2005, access parameters can have
7693         defaults.
7694         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7695         not insert subprogram in list of primitive operations if already there.
7696
7697 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7698
7699         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7700         global variable.
7701
7702 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7703
7704         Part of PR ada/33688
7705         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7706         datagram info on Linux.
7707
7708 2007-12-19  Vincent Celier  <celier@adacore.com>
7709
7710         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7711         that the source path name is always found in the dependencies.
7712
7713 2007-12-19  Robert Dewar  <dewar@adacore.com>
7714
7715         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7716         Fix name of Wide_Wide_Latin_1/9 file names
7717         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7718         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7719         Add missing documentation for Ada.Command_Line.Response_File
7720         Update list of warning letters for Warnings pragma
7721         Add documentation for pragma Unmodified
7722
7723 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7724
7725         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7726
7727 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7728
7729         * s-vxwork-alpha.ads: Removed, no longer used.
7730
7731 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7732
7733         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7734
7735 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7736
7737         PR ada/34360
7738         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7739         mlib-tgt-specific.adb.
7740
7741 2007-12-13  Bob Duff  <duff@adacore.com>
7742
7743         * trans.c (Attribute_to_gnu): Check for violations of the
7744         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7745         the front end, but is moved here so we can make it more accurate.
7746
7747 2007-12-13  Pascal Obry  <obry@adacore.com>
7748
7749         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7750          version is provided for older GNU/Linux distribution not
7751          supporting thread affinity sets.
7752
7753         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7754         call.
7755         (bit_field): New packed boolean type used by cpu_set_t.
7756         (cpu_set_t): New type corresponding to the C type with
7757         the same name. Note that on the Ada side we use a bit
7758         field array for the affinity mask. There is not need
7759         for the C macro for setting individual bit.
7760         (pthread_setaffinity_np): New imported routine.
7761
7762         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7763         no null.
7764         (Create_Task): Set the processor affinity mask if information
7765         is present.
7766
7767         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7768
7769 2007-12-13  Robert Dewar  <dewar@adacore.com>
7770
7771         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7772         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7773         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7774         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7775         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7776         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7777         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7778         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7779         for subprogram pointers.
7780
7781         * g-ctrl_c.adb: New file.
7782
7783         * g-ctrl_c.ads (Install_Handler): New body.
7784
7785         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7786         instead of obsolete function Is_Always_Inlined.
7787         (Freeze_Entity): check for tagged type in imported C subprogram
7788         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7789         (Freeze_Entity): check for convention Ada subprogram pointer in
7790         imported C subprogram.
7791         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7792         bound would be chopped off and go from negative to zero, force
7793         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7794         bound) so that the size computation for the base type will take
7795         negative values into account.
7796
7797 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7798             Bob Duff  <duff@adacore.com>
7799             Tristan Gingold  <gingold@adacore.com>
7800
7801         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7802         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7803         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7804         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7805         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7806         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7807         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7808         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7809         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7810         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7811         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7812         (Always_Compatible_Rep): New flag to control trampolines globally.
7813         (Dynamic_Trampolines_Used): New flag for implementing the
7814         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7815         and not yet set correctly for some targets).
7816
7817         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7818         Simply indirectly call s-stchop when a task is created.
7819
7820         * ali.ads:
7821         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7822         appears as an argument (entries A) in an ALI file.
7823
7824         * fe.h (Stack_Check_Limits): Declare new target parameter.
7825         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7826
7827         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7828         This variable is declared in C to be sure not subject to elaboration
7829         code.
7830         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7831         Storage_Error.
7832
7833         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7834         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7835
7836         * s-stchop.ads: Add comments.
7837
7838         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7839         limit method of stack checking.
7840
7841         * s-stchop-limit.ads: New file.
7842
7843 2007-12-13  Robert Dewar  <dewar@adacore.com>
7844
7845         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7846         a-cihama.adb, g-awk.adb,
7847         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7848         warnings
7849
7850         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7851
7852         * sem.adb: Update handling of assigned value/unreferenced warnings
7853
7854         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7855
7856         * lib-xref.ads: Improve documentation for k xref type
7857
7858         * lib-xref.adb:
7859         Update handling of assigned value/unreferenced warnings
7860         (Generate_Reference): Warning for reference to entity for which a
7861         pragma Unreferenced has been given should be unconditional.
7862         If the entity is a discriminal, mark the original
7863         discriminant as referenced.
7864
7865         * sem_warn.ads, sem_warn.adb
7866         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7867         no entities referenced in package
7868         (Check_One_Unit): Don't give message about no entities referenced in
7869         a package if a pragma Unreferenced has appeared.
7870         Handle new warning flag -gnatw.a/-gnatw.A
7871         Update handling of assigned value/unreferenced warnings
7872
7873         * atree.h: Add flags up to Flag247
7874         (Flag231): New macro.
7875
7876 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7877
7878         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7879
7880         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7881         RTX systems.
7882
7883         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7884         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7885         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7886         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7887
7888         * mingw32.h:
7889         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7890
7891         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7892         since we only have problems with Windows 95/98, which are not
7893         supported by RTX.
7894         (__gnat_ttyname): Return the empty string on Nucleus, just as
7895         done on vxworks.
7896
7897 2007-12-13  Robert Dewar  <dewar@adacore.com>
7898
7899         * a-textio.adb, a-textio.ads:
7900         Extensive changes to private part for wide character encoding
7901
7902         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7903         (Look_Ahead): Fix mishandling of encoded sequences
7904         Move declaration of Wch_Con to private part (should not be visible)
7905
7906         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7907         UTF-8. Probably this is never used, but if it is, brackets is
7908         clearly correct.
7909
7910         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7911         setting wide character encoding for no main program case and when
7912         encoding is specified using -W?
7913         Initialize stack limit of environment task if stack limit method of
7914         stack checking is enabled.
7915         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7916         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7917         (Get_Main_Unit_Name): New function.
7918         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7919         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7920
7921         * bindusg.adb: Add line for -Wx switch
7922
7923         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7924         Add comments
7925         Add new useful constant WC_Longest_Sequences
7926
7927         * switch-b.adb: Clean up handling of -Wx switch
7928         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7929
7930         * switch-c.adb: -gnatg activates warning on assertion errors
7931         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7932
7933         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7934
7935 2007-12-13  Robert Dewar  <dewar@adacore.com>
7936             Ed Schonberg  <schonberg@adacore.com>
7937
7938         * a-ngcoty.adb: New pragma Fast_Math
7939
7940         * opt.adb: New pragma Fast_Math
7941
7942         * par-prag.adb:
7943         Add Implemented_By_Entry to the list of pragmas which do not require any
7944         special processing.
7945         (Favor_Top_Level): New pragma.
7946         New pragma Fast_Math
7947
7948         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7949         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7950         Expand_Allocator_Expression): Take into account VM_Target
7951         (Expand_Attribute, case 'Identity):  Handle properly the case where
7952         the prefix is a task interface.
7953         New pragma Fast_Math
7954
7955         * par.adb (Next_Token_Is): New function
7956         (P_Pragma): Add Skipping parameter
7957         (U_Left_Paren): New procedure
7958         (U_Right_Paren): New procedure
7959         New pragma Fast_Math
7960
7961         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7962         subunit
7963         New pragma Fast_Math
7964
7965         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7966         Implemented_By_Entry.
7967         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7968         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7969         items, since it can apply to more than one overloadable entity. Set
7970         new flag Has_Pragma_Inline_Always for Inline_Always case.
7971         (Analyze_Pragma, case Complex_Representation): Improve error message.
7972         (Analyze_Pragma, case Assert): When assertions are disabled build the
7973         rewritten code with Sloc of expression rather than pragma, so new
7974         warning about failing is not deleted.
7975         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7976         protected types and update error message to reflect that. Test whether
7977         the protected type is allowed for the pragma (an error is issued if the
7978         type has any entries, or components that do not have preelaborable
7979         initialization).
7980         New pragma Fast_Math
7981         (Analyze_Pragma, case No_Return): Handle generic instance
7982
7983         * snames.h, snames.ads, snames.adb:
7984         Add new predefined name for interface primitive _Disp_Requeue.
7985         New pragma Fast_Math
7986
7987         * a-tags.ads, a-tags.adb: New calling sequence for
7988         String_To_Wide_[Wide_]String
7989         (Secondary_Tag): New subprogram.
7990
7991         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7992         from Exp_Attr
7993         New calling sequence for String_To_Wide_[Wide_]String
7994         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7995         the use of the secondary stack for image routines.
7996
7997         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7998         calling sequence for String_To_Wide_[Wide_]String
7999
8000         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8001         Ada 95 mode
8002         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8003         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8004
8005         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8006         (P_Formal_Part): Use Skipping parameter in P_Pragma call
8007         to improve error recovery
8008
8009         * par-util.adb (Next_Token_Is): New function
8010         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8011
8012         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8013         semicolon if missing
8014         (P_Pragma): Implement new Skipping parameter
8015         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8016         Fix location of flag for unrecognized pragma message
8017
8018         * par-tchk.adb (U_Left_Paren): New procedure
8019         (U_Right_Paren): New procedure
8020
8021 2007-12-13  Geert Bosch  <bosch@adacore.com>
8022
8023         * a-tifiio.adb:
8024         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8025         the second or later Scaled_Divide would omit leading zeroes,
8026         resulting in too few digits produced and a Layout_Error as result.
8027         (Put): Initialize Pos.
8028
8029 2007-12-13  Robert Dewar  <dewar@adacore.com>
8030
8031         atree.ads, atree.adb (Flag231..Flag247): New functions
8032         (Set_Flag231..Set_Flag247): New procedures
8033         (Basic_Set_Convention): Rename Set_Convention to be
8034         Basic_Set_Convention
8035         (Nkind_In): New functions
8036         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8037
8038         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8039         instead
8040          of obsolete function Is_Always_Inlined
8041         (Register_Predefined_DT_Entry): Initialize slots of the second
8042         secondary dispatch table.
8043         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8044         (Expand_N_Function_Call): Remove special provision for stack checking.
8045
8046         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8047         Include _Disp_Requeue in the list of predefined operations.
8048         (Find_Interface_ADT): Modified to fulfill the new specification.
8049         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8050
8051         * par-ch4.adb, nlists.ads, nlists.adb:
8052         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8053
8054         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8055         Fix location of flag for unrecognized pragma message
8056
8057         * sem_ch7.adb: Use Nkind_In
8058
8059 2007-12-13  Vincent Celier  <celier@adacore.com>
8060
8061         * opt.ads:
8062         Indicate what flags are used by the Project Manager, gprbuild and
8063         gprclean.
8064         (Opt.Follow_Links_For_Dirs): New flag
8065         (Warn_On_Assertion_Failure): New flag
8066         (Wide_Character_Encoding_Method_Specified): New flag
8067         (Suppress_All_Inlining): New switch set by -fno-inline
8068         (Real_VMS_Target): New flag
8069         New pragma Fast_Math
8070
8071 2007-12-13  Robert Dewar  <dewar@adacore.com>
8072
8073         * back_end.adb: Recognize -fno-inline
8074
8075 2007-12-13  Robert Dewar  <dewar@adacore.com>
8076
8077         * checks.adb: Fix optimization problem with short-circuited form
8078
8079 2007-12-13  Bob Duff  <duff@adacore.com>
8080
8081         * clean.adb (Usage): Add line for -aP
8082         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8083         with a parameter "procedure Usage", instead of passing a pointer to a
8084         procedure. This is to eliminate trampolines (since the Usage procedure
8085         is often nested in a main procedure, and it would be inconvenient to
8086         unnest it).
8087
8088         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8089         to be generic, with a parameter "procedure Callback (...)", instead of
8090         passing a pointer to a procedure. This is to eliminate trampolines
8091         (since the Callback procedure is usually nested).
8092
8093         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8094         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8095         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8096
8097         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8098         Use the generic Heap_Sort_G instead of Heap_Sort_A.
8099
8100 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8101
8102         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8103         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8104         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8105         (Renamed_In_Spec): New flag
8106         (Has_Pragma_Inline_Always): New flag
8107         Add missing doc for pragma Obsolescent_Warning
8108         Add missing doc for 17 additional unused flags (230-247)
8109         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8110         Alphabetize with clauses.
8111         Separate Is_Thunk and Has_Thunks flags
8112         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8113         (Related_Interface): Renamed to Related_Type.
8114         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8115         (Set_Is_Flag): Restrict the assertion.
8116
8117 2007-12-13  Vincent Celier  <celier@adacore.com>
8118
8119         * errout.adb (Output_Source_Line): Do not keep a trailing space after
8120         the source line number if the source line is empty.
8121
8122 2007-12-13  Geert Bosch  <bosch@adacore.com>
8123
8124         * eval_fat.adb (Decompose_Int): Handle argument of zero.
8125         (Compose): Remove special casing of zero.
8126         (Exponent): Likewise.
8127         (Fraction): Likewise.
8128         (Machine): Likewise.
8129         (Decompose): Update comment.
8130
8131 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8132
8133         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8134         limited ancestor part, initialize controllers of enclosing record
8135         before expanding ancestor aggregate.
8136         (Gen_Assign): If a component of the aggregate is box-initialized, add
8137         code to call Initialize if the component is controlled, and explicit
8138         assignment of null if the component is an access type.
8139
8140         Handle properly aggregates for limited types that appear in object
8141         declarations when the aggregate contains controlled values such as
8142         protected types.
8143         When expanding limited aggregates into individual components, do not
8144         call Adjust on controlled components that are limited.
8145
8146 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8147
8148         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8149
8150 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8151
8152         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8153         predefined primitive _Disp_Requeue.
8154         (Make_Predefined_Primitive_Specs): Create the spec for predefined
8155         primitive _Disp_Requeue.
8156         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8157         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8158         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8159         an interface type. In case of limited interfaces we now declare all the
8160         predefined primitives associated with synchronized interfaces as
8161         abstract.
8162         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8163         declarations.
8164         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8165         tagged type is an interface type and there is no user-defined equality
8166         function.
8167         Add also bodies of predefined primitives associated with synchronized
8168         interfaces.
8169         (Freeze_Record_Type): Do not build bodies of predefined primitives of
8170         interface types because they are now defined abstract.
8171         Add missing documentation.
8172         (Expand_Record_Controller): Update occurrence of Related_Interface
8173         to Related_Type.
8174         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8175         (Expand_N_Object_Declaration): Take into account VM_Target when handling
8176         class wide interface object declaration.
8177         (Expand_Previous_Access_Type): Do not create a duplicate master entity
8178         if the access type already has one.
8179         (Expand_N_Object_Declaration): Defend against attempt to validity check
8180         generic types. Noticed for -gnatVcf specified with previous errors.
8181
8182 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8183
8184         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8185         Expand_Allocator_Expression): Take into account VM_Target
8186
8187         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8188         secondary stack when VM_Target /= No_VM
8189
8190 2007-12-13  Javier Miranda  <miranda@adacore.com>
8191             Ed Schonberg  <schonberg@adacore.com>
8192
8193         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8194         Is_Complation_Unit by Is_Library_Level_Entity in the code
8195         that decides if the static dispatch tables need to be built.
8196         (Wrap_Transient_Declaration): Do not generate a finalization call if
8197         this is a renaming declaration and the renamed object is a component
8198         of a controlled type.
8199
8200 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8201
8202         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8203         In the case where the renamed subprogram is a dereference, call
8204         Force_Evaluation on the prefix.
8205
8206 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8207             Ed Schonberg  <schonberg@adacore.com>
8208
8209         * exp_ch9.adb (Expand_N_Asynchronous_Select,
8210         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8211         comment reformatting.
8212         (Set_Privals): Inherit aliased flag from formal. From code reading.
8213         (Build_Simple_Entry_Call): Out parameters of an access type are passed
8214         by copy and initialized from the actual. This includes entry parameters.
8215         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8216         and Ada 2005 models of requeue.
8217         (Null_Statements): Still connsider do-end block null if it contains
8218         Unreferenced and Warnings pragmas.
8219         (Expand_N_Accept_Statement): Do not optimize away null do end if
8220         dispatching policy is other than defaulted.
8221         (Expand_N_Timed_Entry_Call): When the triggering statement is a
8222         dispatching call, manually analyze the delay statement.
8223         (Find_Parameter_Type): Move subprogram to Sem_Util.
8224
8225 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8226             Javier Miranda  <miranda@adacore.com>
8227
8228         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8229         _Disp_Requeue occupies dispatch table slot number 15. Move
8230         _Disp_Timed_Select to slot 16.
8231         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8232         generate the spec and body of _Disp_Reqeueue.
8233         (Make_DT): Build and initialize the second dispatch table.
8234         Handle initialization of RC_Offset when the parent
8235         is a private type with variable size components.
8236         (Make_Secondary_DT): Complete documentation. Add support to
8237         initialize the second dispatch table.
8238         (Make_Tags): Generate the tag of the second dispatch table.
8239         (Register_Primitive): Add support to register primitives in the
8240         second dispatch table.
8241
8242 2007-12-13  Pascal Obry  <obry@adacore.com>
8243
8244         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8245         Windows. This signal is used by gnatmake to kill child processes for
8246         example.
8247
8248 2007-12-13  Javier Miranda  <miranda@adacore.com>
8249
8250         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8251         support for generic dispatching constructor calls in which we need to
8252         locate the tag of a secondary dispatch table associated with an
8253         interface type to properly dispatch the call.
8254         (Expand_N_Attribute_Reference [case Address],
8255         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8256         handling of VM targets.
8257
8258 2007-12-13  Robert Dewar  <dewar@adacore.com>
8259             Ed Schonberg  <schonberg@adacore.com>
8260
8261         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8262         assert fail
8263
8264         * ug_words: Add entries for -gnatw.a -gnatw.A
8265
8266         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8267         literal is a subtype with non-static constraints, use the base type of
8268         the context as the base of the string subtype, to prevent type
8269         mismatches in gigi.
8270         (Resolve_Actuals): If the actual is an entity name, generate a
8271         reference before the actual is resolved and expanded, to prevent
8272         spurious warnings on formals of enclosing protected operations.
8273         (Analyze_Overloaded_Selected_Component): If type of prefix if
8274         class-wide, use visible components of base type.
8275         (Resolve_Selected_Component): Ditto.
8276         (Resolve_Short_Circuit): Detect case of pragma Assert argument
8277         evaluating to False, and issue warning message.
8278
8279         * usage.adb: Add lines for -gnatw.a and -gnatw.A
8280
8281 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8282
8283         * g-calend.ads (No_Time): New constant, to represent an uninitialized
8284         time value
8285
8286         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8287         formats.
8288         (Month_Name_To_Number): New subprogram
8289
8290         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8291         letter to upper-case.
8292
8293 2007-12-13  Robert Dewar  <dewar@adacore.com>
8294             Ed Schonberg  <schonberg@adacore.com>
8295
8296         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8297
8298         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8299         context is a limited view, use non-limited view when available. If the
8300         non-limited view is an unconstrained array, this enforces consistency
8301         requirements in 3.10.2 (27).
8302         (Layout_Type): For an access type whose designated type is a limited
8303         view, examine its declaration to determine if it is an unconstrained
8304         array, and size the access type accordingly.
8305         (Layout_Type): Do not force 32-bits for convention c subprogram
8306         pointers in -gnatdm mode, only if real vms target.
8307
8308         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8309         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8310         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8311         violations of the No_Implicit_Dynamic_Code restriction.
8312         (Resolve_Attribute, case 'Access): If designated type of context is a
8313         limited view, use non-limited view when available. If the non-limited
8314         view is an unconstrained array, this enforces consistency requirements
8315         in 3.10.2 (27).
8316         (Layout_Type): For an access type whose designated type is a limited
8317         view, examine its declaration to determine if it is an unconstrained
8318         array, and size the access type accordingly.
8319
8320 2007-12-13  Vincent Celier  <celier@adacore.com>
8321
8322         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8323         object directory of main project does not exist.
8324         On VMS, correctly set then environment variable for the source
8325         directories.
8326
8327 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8328
8329         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8330         set to True this procedure will create the value of type REG_EXPAND_SZ.
8331         It was only possible to create REG_SZ values before.
8332
8333 2007-12-13  Robert Dewar  <dewar@adacore.com>
8334
8335         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8336         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8337         namet-sp.adb, namet-sp.ads: New files.
8338
8339         * g-speche.adb: Use generic routine in g-spchge
8340
8341         * s-wchcnv.ads, s-wchcnv.adb:
8342         Minor code cleanup (make formal type consistent with spec)
8343
8344         * namet.adb: Update comments.
8345
8346         * par-endh.adb (Evaluate_End_Entry): Use new
8347         Namet.Sp.Is_Bad_Spelling_Of function
8348
8349         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8350
8351         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8352         ancestor is an access type initialized with a box, set its type
8353         explicitly, for use in subsequent expansion.
8354         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8355         function
8356
8357 2007-12-13  Robert Dewar  <dewar@adacore.com>
8358
8359         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8360         access Vstring)
8361
8362 2007-12-13  Robert Dewar  <dewar@adacore.com>
8363
8364         * inline.adb (Back_End_Cannot_Inline): Use new flag
8365         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8366
8367         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8368         Has_Pragma_Inline_Always instead.
8369         of obsolete function Is_Always_Inlined
8370         (Build_Body_To_Inline): Same change
8371         (Cannot_Inline): Same change
8372         Do not give warning on exception raise in No_Return function
8373
8374         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8375         component has two inconsistent component clauses in the same record
8376         representation clause, favor the message that complains about
8377         duplication rather than inconsistency.
8378         Update comments.
8379         (Record_Representation_Clause): Do not warn on missing component
8380         clauses for inherited components of a type extension.
8381         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8382         an overloadable item if it is a pragma that can apply to multiple
8383         overloadable entities (e.g. Inline) because a pragma cannot be on
8384         more than one chain at a time.
8385         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8386         conversion where one of the operands is Ada.Calendar.Time.
8387         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8388         For now, ignore Component_Size clause on VM targets, as done for
8389         pragma Pack.
8390
8391 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8392             Vincent Celier  <celier@adacore.com>
8393
8394         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8395         string
8396         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8397         prj.ads
8398         (Hash): Move instantiation of System.HTable.Hash from spec to body
8399         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8400         systems, since we do not need to recompute the Name_Id for the canonical
8401         file name.
8402         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8403         as a parameter. This parameter is in fact always "ada" in all calls, and
8404         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8405         while loading a project with 40000 files
8406
8407         * prj-attr.adb: Fix name of attribute Dependency_Driver
8408         Change the kind of indexing for attribute Root
8409
8410         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8411         variables already declared, in case constructions.
8412
8413         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8414         Current_Object_Path_File to No_Path.
8415
8416         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8417         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8418
8419         * prj-makr.adb: new parameter Current_Dir
8420
8421         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8422         Ada sources when language is not Ada.
8423         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8424         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8425         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8426         (Locate_Directory): Always resolve links when computing Canonical_Path
8427         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8428         in Source_Files before checking for the presence of a directory
8429         separator.
8430         Optimize calls to Name_Find when on case sensitive systems.
8431         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8432         as a parameter.
8433         (Prj.Nmsc.Check): new parameter Current_Dir
8434         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8435         cannot be empty and the spec suffix cannot be the same as the body or
8436         separate suffix.
8437         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8438         subunit), always consider the longest suffix.
8439         (Check_Configuration): Do not issue an error if there is no compiler
8440         for a language. Just issue a warning and ignore the sources for the
8441         language.
8442         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8443         not empty.
8444         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8445         (Unit_Exceptions): New hash table
8446         (Check_Naming_Schemes): Check if a file that could be a unit because of
8447         the naming scheme is not in fact a source because there is an exception
8448         for the unit.
8449         (Look_For_Sources): Put the unit exceptions in hash table
8450         Unit_Exceptions
8451         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8452         Other_Part to avoid exception when code is compiled with validity
8453         checking.
8454         (Get_Sources_From_File): Check that there is no directory information
8455         in the file names.
8456         (Look_For_Sources): Check that there is no directory information in the
8457         list of file names in Source_Files.
8458         (Look_For_Sources): In multi-language mode, do not allow exception file
8459         names that are excluded.
8460         (Excluded_Sources_Htable): New hash table
8461         (Search_Directories.Check_File): New procedure to simplify
8462         Search_Directories.
8463         (Search_Directories): Do not consider excluded sources
8464         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8465         Search_Directories.
8466         (Get_Exceptions): Set component Lang_Kind of Source_Data
8467         (Get_Unit_Exceptions): Ditto
8468         (Search_Directories): Ditto
8469
8470         * prj-pars.adb: new parameter Current_Dir
8471
8472         * prj-part.ads, prj-part.adb:
8473         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8474         (Opt.Follow_Links_For_Dirs): New flag
8475         (Project_Path_Name_Of): Cache information returned by this routine as
8476         Locate_Regular_File is a costly routine. The code to output a log
8477         information and the effective call to Locate_Regular_File is now
8478         factorized into a routine (code clean-up).
8479         (Parse, Parse_Single_Project): new parameter Current_Dir
8480         When main project file cannot be found, indicate in the error
8481         message the project path that was used to do the search.
8482
8483         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8484         (Prj.Proc.Process*): new parameter Current_Dir
8485
8486         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8487
8488 2007-12-13  Bob Duff  <duff@adacore.com>
8489
8490         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8491         procedure to be called from the back end to check the
8492         No_Implicit_Dynamic_Code restriction.
8493
8494 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8495
8496         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8497         Fixes another case where RTE_Available_Call was ignored instead of being
8498         taken into account.
8499         (Load_Fail): Ditto.
8500
8501         * rtsfind.ads: Add new entries.
8502
8503 2007-12-13  Robert Dewar  <dewar@adacore.com>
8504
8505         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8506         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8507
8508         * scn.adb: Implement BOM recognition
8509
8510 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8511             Ed Schonberg  <schonberg@adacore.com>
8512
8513         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8514         subprogram body that acts as its own spec may not have a non-private
8515         WITH clause on a private sibling.
8516         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8517         child unit is a renaming, create an implicit with_clause on that
8518         parent, and not on the unit it renames, to prevent visibility errors
8519         in the current unit.
8520
8521 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8522
8523         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8524         renaming declaration, use the Slocs of the formal parameters from the
8525         declaration of the formal subprogram when creating the formal parameter
8526         entities in the renaming declaration.
8527         (Analyze_Formal_Type_Declaration): Change the placement of the error
8528         message concerning illegal known discriminants. It is now posted on the
8529         type rather than on the first discriminant. This change ensures early
8530         error report.
8531         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8532         the package body that contains the instance, do not generate an
8533         out-of-place freeze node for the enclosing package.
8534         (Collect_Previous_Instantiations): Ignore internal instantiations
8535         generated for formal packages.
8536         (Validate_Derived_Type_Instance): Add a check that when a formal
8537         derived type is Known_To_Have_Preelab_Init then the actual type must
8538         have preelaborable initialization, and issue an error when this
8539         condition is violated.
8540
8541 2007-12-13  Robert Dewar  <dewar@adacore.com>
8542
8543         * s-imenne.adb, s-imenne.ads: New files.
8544
8545         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8546         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8547         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8548         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8549         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8550         stack usage.
8551
8552 2007-12-13  Javier Miranda  <miranda@adacore.com>
8553             Ed Schonberg  <schonberg@adacore.com>
8554
8555         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8556         generation of spurious error if parent is an interface type; caused
8557         because predefined primitive bodies will be generated later by
8558         Freeze_Record_Type.
8559         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8560         flag.
8561         (Derive_Subprograms): Handle derivations of predefined primitives
8562         after all the user-defined primitives to ensure that they are
8563         found in proper order in instantiations.
8564         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8565         of Related_Interface to Related_Type.
8566         (Record_Type_Declaration): Minor reordering of calls to decorate the
8567         Tag component because the entity must have set its Ekind attribute
8568         before setting its Is_Tag attribute.
8569         (Analyze_Subtype_Declaration): In the case of subtypes with
8570         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8571
8572 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8573             Ed Schonberg  <schonberg@adacore.com>
8574
8575         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8576         statement to the list of contexts where a selected component with a
8577         concurrent tagged type prefix should yield a primitive operation.
8578         (Find_Primitive_Operation): Handle case of class-wide types.
8579         (Analyze_Overloaded_Selected_Component): If type of prefix is
8580         class-wide, use visible components of base type.
8581         (Resolve_Selected_Component): Ditto.
8582         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8583         formal of a generic subprogram. find candidate interpretations by
8584         scanning the list of generic formal declarations.:
8585         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8586         type from a limited_with_clause, and the full view is available, use it
8587         for subsequent semantic checks.
8588         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8589         (Find_Primitive_Operation): New function.
8590         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8591         only once if several interpretations of the prefix yield an access type.
8592         (Try_Object_Operation): Code and comment cleanup.
8593         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8594         code reformatting. When the type of the prefix is tagged concurrent, a
8595         correct interpretation might be available in the primitive and
8596         class-wide operations of the type.
8597
8598 2007-12-13  Robert Dewar  <dewar@adacore.com>
8599             Ed Schonberg  <schonberg@adacore.com>
8600
8601         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8602         renaming entry as subprogram using rename-as-body if subprogram spec
8603         frozen.
8604         (Use_One_Type): The clause is legal on an access type whose designated
8605         type has a limited view.
8606         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8607         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8608         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8609         operation denoted by a selected component.
8610         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8611         it can be an expression, possibly overloaded, that returns a task or
8612         an access to one.
8613
8614 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8615             Gary Dismukes  <dismukes@adacore.com>
8616
8617         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8618         requeue statement is dispatching. Do not emit an error when the name is
8619         not an entry and the context is a dispatching select. Add code to
8620         perform subtype conformance between the formals of the current entry
8621         and those of the target interface primitive.
8622         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8623         Timed_Entry_Call): Analyze the triggering statement as the first step of
8624         the processing. If this is a dispatching select, postpone the analysis
8625         of all select statements until the Expander transforms the select. This
8626         approach avoids generating duplicate identifiers after the Expander has
8627         replicated some of the select statements. In case the Expander is
8628         disabled, perform regular analysis.
8629         (Check_Triggering_Statement): New routine.
8630         (Analyze_Requeue): Exclude any interpretations that are not entries when
8631         checking overloaded names in a requeue. Also test type conformance for
8632         matching interpretations rather than requiring subtype conformance at
8633         that point to conform with the RM's resolution rule for requeues.
8634
8635 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8636
8637         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8638         inherited operation is a defaulted tag-indeterminate call, and there is
8639         a statically tagged actual, use the static tag as a controlling actual
8640         for the defaulted actual.
8641
8642 2007-12-13  Geert Bosch  <bosch@adacore.com>
8643
8644         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8645         context, so do not call Check_Non_Static_Context.
8646
8647 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8648
8649         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8650         whether formal E is an entity which may have parameters.
8651
8652 2007-12-13  Bob Duff  <duff@adacore.com>
8653             Javier Miranda  <miranda@adacore.com>
8654             Robert Dewar  <dewar@adacore.com>
8655
8656         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8657         (Set_Convention): New procedure to set the Convention flag, and in
8658         addition make sure the Favor_Top_Level flag is kept in sync (all
8659         foreign-language conventions require Favor_Top_Level = True).
8660         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8661         to Related_Type.
8662         (Collect_Interfaces_Info): Minor update to handle the two secondary
8663         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8664         (Generate_Parent_Ref): Add parameter to specify entity to check
8665         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8666         initialize a component of a type with preelaborable initialization.
8667         This includes the case of a discriminal used in such a context.
8668         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8669         latest Ada 2005 rules about renaming and 'Access of
8670         discriminant-dependent components.
8671         (Check_Nested_Access): Add handling when there are no enclosing
8672         subprograms (e.g. case of a package body).
8673         (Find_Parameter_Type): Factor routine from several other compiler files.
8674         Remove routine from Find_Overridden_Synchronized_Primitive.
8675
8676 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8677
8678         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8679         an invalid access to an uninitialized slot in the
8680         Source_File_Index_Table.
8681
8682 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8683
8684         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8685
8686 2007-12-13  Bob Duff  <duff@adacore.com>
8687
8688         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8689         access-to-subprogram types in this package.
8690
8691 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8692
8693         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8694         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8695         Stack_Overlay_Address and document that we are using an internal
8696         abstraction.
8697         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8698         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8699         consistently throughout the various implementation pieces.
8700
8701         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8702         overlay we are using to fill the stack area with patterns.
8703         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8704         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8705         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8706
8707 2007-12-13  Robert Dewar  <dewar@adacore.com>
8708
8709         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8710
8711 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8712
8713         * s-tassta.adb:
8714         (Create_Task): Take into account tasks created by foreign threads.
8715         Code clean up: use constants instead of hard coded values.
8716
8717 2007-12-13  Robert Dewar  <dewar@adacore.com>
8718
8719         * styleg.adb (Check_Comment): More liberal rules for comment placement
8720
8721 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8722
8723         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8724         of Procedure Value instead of Frame Pointer as the invocation
8725         identifier associated with the instruction pointer in each traceback
8726         entry.
8727
8728         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8729         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8730         Pointer as the invocation identifier passed to tbk$symbolize.
8731
8732         * s-traent-vms.ads, s-traent-vms.adb
8733         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8734         Procedure Value instead of Frame Pointer as the invocation identifier
8735         passed to tbk$symbolize.
8736
8737 2007-12-13  Robert Dewar  <dewar@adacore.com>
8738
8739         * tbuild.ads, tbuild.adb:
8740         Fix location of flag for unrecognized pragma message
8741
8742 2007-12-13  Robert Dewar  <dewar@adacore.com>
8743
8744         * treepr.ads, treepr.adb: (pl): implement use of positive value
8745         shorthands
8746
8747 2007-12-13  Robert Dewar  <dewar@adacore.com>
8748
8749         * xeinfo.adb: Remove warnings
8750         * xnmake.adb: Remove warnings
8751         * xsinfo.adb: Remove warnings
8752         * xtreeprs.adb: Remove warnings
8753         * xsnames.adb: Remove warnings
8754
8755         * a-ngcoar.adb: Fix typo.
8756         * s-interr.adb: Minor reformatting
8757         * env.c: Minor reformatting.
8758         * g-bytswa.adb: Minor reformatting.
8759         * g-rannum.ads: Minor documentation improvements
8760         * s-tasinf-mingw.adb: Minor header fix
8761         * a-clrefi.adb: Minor reformatting
8762         * g-sttsne.ads: Minor documentation improvement
8763         * g-sttsne-locking.ads: Minor documentation improvement
8764         * g-soliop-solaris.ads: Minor documentation improvement
8765         * g-soliop-mingw.ads: Minor documentation improvement
8766         * g-soliop.ads: Minor documentation improvement
8767         * exp_aggr.ads: Minor reformatting
8768         * debug.adb: Add documentation for the gprbuild debug flags
8769         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8770         * exp_pakd.adb: Minor reformatting
8771
8772         * g-altive.ads, g-alleve.adb: Remove assertions.
8773         Add comment about minor differences between targets regarding
8774         floating-point operations.
8775
8776         * g-thread.adb: Remove pragma unreferenced.
8777         * lib.ads: Minor reformatting
8778         * par-ch9.adb: Minor reformatting of error messages
8779         * sem_case.adb: Minor reformatting
8780         * s-fileio.adb: Minor reformattinng
8781         * s-vmexta.ads: Minor typo
8782         * vxaddr2line.adb:
8783         Take into account 'Success' value as per new GNAT warning.
8784
8785 2007-12-13  Vincent Celier  <celier@adacore.com>
8786
8787         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8788         even on Windows
8789
8790 2007-12-13  Robert Dewar  <dewar@adacore.com>
8791             Bob Duff  <duff@adacore.com>
8792
8793         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8794         Document that suffixes may be terminations of each others
8795         Add doc for -gnatw.a and -gnatw.A
8796         Document gnatbind -Wx switch
8797         Document BOM recognition
8798         Document pragma Implemented_By_Entry.
8799         Document new units.
8800
8801         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8802         Add doc for pragma Unreferenced suppressing no entities referenced msg
8803         Add documentation of GNAT.Directory_Operations.Iteration
8804         Add documentation of GNAT.Random_Numbers
8805         Add documentation for pragma Shared.
8806         Correct documentation for Bit_Order
8807         Add documentation for the Pool_Address attribute.
8808         Fix and improve documentation of pragma machine_attribute.
8809         New pragma Fast_Math
8810         Document BOM recognition
8811
8812         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8813         Add /Wide_Character_Encoding for binder
8814         Add qualifier for the new gnatpp option --no-separate-loop-then
8815
8816 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8817
8818         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8819         which generic formal operations are called for each operation.
8820
8821 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8822
8823         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8824         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8825
8826 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8827
8828         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8829         Reference_Dir unless we actually need it.
8830
8831 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8832             Tristan Gingold  <gingold@adacore.com>
8833
8834         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8835
8836         * s-osprim-vms.adb,
8837         a-calend-vms.adb: Remove pragma warning off and add pragma
8838         unreferenced.
8839
8840 2007-12-13  Robert Dewar  <dewar@adacore.com>
8841
8842         * impunit.adb: Add entries for missing units
8843
8844         * Makefile.rtl: Add new run-time units.
8845
8846         * Make-lang.in:  Update dependencies.
8847
8848 2007-12-13  Bob Duff  <duff@adacore.com>
8849
8850         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8851         types, set Can_Use_Internal_Rep appropriately, based on
8852         Always_Compatible_Rep_On_Target.
8853
8854 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8855             Arnaud Charlet  <charlet@adacore.com>
8856
8857         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8858         it to the front end and setting the aamp_target environment variable
8859         to the switch's argument to ensure that gnaampbind and gnaamplink will
8860         take the specified library into account.
8861         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8862         target, since the CIL compiler supports an "object" file (.il files).
8863
8864 2007-12-13  Vincent Celier  <celier@adacore.com>
8865
8866         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8867         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8868
8869 2007-12-13  Geert Bosch  <bosch@adacore.com>
8870
8871         * s-parame-vxworks.adb:
8872         Update comments to reflect usage of this package by Nucleus.
8873
8874 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8875
8876         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8877         spec would break code.
8878
8879         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8880
8881         * system-vxworks-alpha.ads: Removed.
8882
8883 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8884
8885         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8886
8887 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8888
8889         PR ada/34366
8890         * sem_ch3.adb (Designates_T): New function.
8891         (Mentions_T): Factor reusable part of the logic into Designates_T.
8892         Consider non-access parameters and access and non-access result.
8893         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8894         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8895
8896         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8897
8898 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8899
8900         PR ada/34361
8901         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8902         the new implementation of target-specific calls.
8903
8904 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8905
8906         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8907         the designated full view, only follow a second level Full_View link
8908         for Non_Limited_Views of from_limited_with references.
8909
8910 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8911
8912         PR ada/15805
8913         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8914         to be initialized with an access to constant object.
8915
8916         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8917         when an access to constant is used to initialize an access
8918         value.
8919
8920         PR ada/21346
8921         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8922
8923 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8924
8925         PR ada/34173
8926         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8927         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8928         this is from an alignment clause on the GNAT entity.
8929         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8930         to distinguish the case where we set it from the type's alignment.
8931         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8932         whether this alignment was set from an explicit alignment clause.
8933
8934 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8935
8936         * decl.c (make_packable_type): Revert last change.
8937         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8938         * utils.c (finish_record_type): Retrieve the real name of the type.
8939
8940 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8941
8942         * trans.c (lvalue_required_p): Take base node directly instead
8943         of its parent.  Rename second parameter to 'gnu_type'.
8944         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8945         <N_Slice>: Likewise.
8946         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8947         Adjust calls to lvalue_required_p.
8948
8949 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8950
8951         PR ada/21489
8952         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8953         parameters of an entry call.
8954
8955 2007-12-03  Robert Dewar  <dewar@adacore.com>
8956             Samuel Tardieu  <sam@rfc1149.net>
8957
8958         PR ada/34287
8959         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8960         of variables declared in a library-level package.
8961
8962 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8963
8964         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8965         of Empty_String'Unchecked_Access.
8966
8967         * Makefile.in: Add support for sh4-linux.
8968
8969         * system-linux-sh4.ads: New file.
8970
8971 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8972
8973         PR ada/33722
8974         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8975         and its argument must not be free()ed.
8976
8977 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8978
8979         * decl.c (make_packable_type): Retrieve the real name of the type.
8980         (maybe_pad_type): Simplify similar code.
8981
8982 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8983
8984         PR ada/15804
8985         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8986         than an identifier is used after "case" in a variant_part.
8987
8988         PR ada/17318
8989         * par-ch4.adb (Is_Parameterless_Attribute): New map.
8990         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8991         attribute name or not depending on the new map.
8992
8993         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8994         returning a string or a type will not be called with improper
8995         arguments.
8996
8997         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8998
8999         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9000
9001         PR ada/32792
9002         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9003         Signal an error when attribute argument is a fixed-point value of
9004         an unknown type.
9005
9006         PR ada/22559
9007         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9008         a derived ordinary fixed point type.
9009
9010         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9011         RM_Size when a Small clause is found.
9012
9013 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
9014
9015         PR 34081/C++
9016         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9017         Pass 'false' for the new allocate_struct_function parameter.
9018         * utils.c (build_function_stub): Likewise.
9019
9020 2007-11-25  Richard Guenther  <rguenther@suse.de>
9021
9022         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9023         (gnat_poplevel): Likewise.
9024
9025 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
9026
9027         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9028         strict alignment, no alignment clause and a known static size, cap
9029         the type alignment to the greatest power of 2 factor of the size.
9030         (gnat_to_gnu_field): If the field has a component clause, is aliased
9031         or of a type with strict alignment, require that its size be equal to
9032         that of the type.
9033         (validate_size): Use the type size as the minimum size for a type with
9034         strict alignment.
9035
9036 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
9037
9038         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9039         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9040         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9041         Use 'Access instead of 'Unchecked_Access in second and third
9042         arguments of pthread_sigmask.
9043
9044 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
9045
9046         * decl.c (ceil_alignment): New function.
9047         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9048         (make_packable_type): Likewise.
9049
9050 2007-11-22  Olivier Hainque  <hainque@adacore.com>
9051
9052         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9053         to fit in 80 columns.
9054
9055 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
9056
9057         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9058         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9059
9060 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
9061
9062         PR ada/34098
9063         * misc.c (gnat_adjust_rli): Delete.
9064         (gnat_init): Do not initialize the translation code here.
9065         Do not call set_lang_adjust_rli.
9066         * trans.c (init_code_table): Make static.
9067         (gnat_init_stmt_group): Delete.
9068         (gigi): Initialize the translation code entirely here.
9069         Emit debug info for the common types here instead of...
9070         * utils.c (gnat_init_decl_processing): ...here.
9071         * gigi.h (init_code_table): Delete.
9072         (gnat_init_stmt_group): Likewise.
9073
9074 2007-11-16  Olivier Hainque  <hainque@adacore.com>
9075
9076         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9077         retrieving an allocator return value from a super-aligned address from
9078         here to ...
9079         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9080         expect a super-aligned address for a fat or thin pointer.
9081
9082 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
9083
9084         * trans.c (call_to_gnu): Always set the source location on the call
9085         expression.  If the function returns-by-target, also set it on the
9086         address expression.
9087
9088 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
9089
9090         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9091         sections of non-supported Interix target.
9092
9093         * s-osinte-interix.ads: Removed.
9094
9095         * i-cstrin.ads (chars_ptr): Make it a C convention type.
9096
9097 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
9098
9099         * a-tasatt.adb: Add a comment at the beginning of the package
9100         explaining why in general 'Unchecked_Access must be used instead
9101         of 'Access.
9102
9103         * sem_prag.adb (Process_Convention): Move the test for the
9104         entity on which the Convention pragma applies down to also
9105         forbid pragma Convention on enumeration literals reached
9106         through renamings.
9107
9108 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
9109
9110         * a-tasatt.adb: Revert previous change for this file as it will
9111         generate an error when this package is instantiated from a
9112         local context.
9113
9114 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
9115
9116         * a-tasatt.adb: Type Wrapper should be declared in comment instead
9117         of already declared type Node_Access.
9118         Use 'Access instead of 'Unchecked_Access when applicable. Local
9119         lifetime is the one of the package.
9120         (Set_Value): W is allocated on the heap.
9121
9122         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9123         applicable.
9124         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9125         access type.
9126         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9127         access type.
9128
9129         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9130         applicable.
9131         (elaboration code): Timer_Queue lifetime is the one of the
9132         package.
9133
9134         * tracebak.c (i386 alternative): Remove useless comparaison
9135         which is always false; LOWEST_ADDRESS is 0 and is never greater
9136         than an unsigned integer.
9137
9138         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9139         embedded check for "Ada_Version >= Ada_05".
9140
9141 2007-11-07  Olivier Hainque  <hainque@adacore.com>
9142
9143         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9144         craft and expand comment.
9145
9146 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
9147
9148         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9149
9150 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
9151
9152         * misc.c (gnat_handle_option): Replace call to abort with
9153         call to gcc_unreachable.
9154         (gnat_init): Likewise.
9155         (gnat_expand_expr): Likewise.
9156         (fp_prec_to_size): Likewise.
9157         (fp_size_to_prec): Likewise.
9158
9159 2007-10-23  Richard Guenther  <rguenther@suse.de>
9160
9161         PR bootstrap/33608
9162         * tracebak.c: #undef abort after including system.h.
9163
9164 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
9165
9166         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9167         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9168         for win32 targets.
9169         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9170
9171 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
9172
9173         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9174         Set the protection status of the guard page based on the value of On.
9175
9176         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9177
9178         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9179         (Exit_Task): Pass False to Hide_Yellow_Zone.
9180
9181 2007-10-15  Robert Dewar  <dewar@adacore.com>
9182
9183         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9184         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9185         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9186         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9187         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9188         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9189         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9190         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9191         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9192         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9193         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9194         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9195         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9196         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9197         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9198         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9199         Minor reformatting.
9200         Add Unreferenced and Warnings (Off) pragmas for cases of
9201         variables modified calls where they are IN OUT or OUT parameters and
9202         the resulting values are not subsequently referenced. In a few cases,
9203         we also remove redundant code found by the new warnings.
9204
9205         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9206         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9207         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9208         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9209         warning controlled by -gnatw.o that warns on cases of out parameter
9210         values being ignored.
9211
9212 2007-10-15  Geert Bosch  <bosch@adacore.com>
9213
9214         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9215
9216         * expect.c: Initial port to arm-mentor-nucleus.
9217         Use kill for __gnat_kill() on VMS.
9218
9219 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9220
9221         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9222         value.
9223         (Xref_Record): Change type for Line, since in the case of a reference to
9224         a predefined entity (as happens for array index types), the line is set
9225         to 0.
9226         Add support for parsing multiple array index types info, or
9227         multiple inherited interfaces info. This information cannot be stored
9228         in Xref_Entity_Record, which only supports a single instance of Tref_*,
9229         and is therefore stored in the list of references instead. It has a
9230         special treatement later on in tools that use this information.
9231
9232 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9233
9234         * debug.adb: Document use of -gnatd.a and -gnatd.I
9235
9236         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9237
9238 2007-10-15  Javier Miranda  <miranda@adacore.com>
9239
9240         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9241         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9242         care of access to class-wide interface types plus removal of bizarre
9243         conversion of tagged object to access type (reported by Gary
9244         Dismukes). After this patch there is no need to perform any
9245         additional management on these nodes in Expand_Interface_Actuals.
9246
9247         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9248         that handles use of 'Access and 'Unchecked_Access applied to
9249         actuals covering interface types. Such code is now
9250         centralized in Expand_N_Attribute_Reference.
9251
9252 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9253
9254         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9255         of tagged types whose ultimate ancestor is a CPP type.
9256         (Freeze_Array_Type): For a packed array type, generate an initialization
9257         procedure if the type is public, to handle properly a client that
9258         specifies Normalize_Scalars.
9259
9260 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9261
9262         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9263         inside a generic body, retrieve the full view of the entry family
9264         discrete subtype if available.
9265
9266 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9267
9268         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9269         attempt to generate stubs for hidden primitive operations.
9270
9271 2007-10-15  Vincent Celier  <celier@adacore.com>
9272
9273         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9274         returning None, used when there is no platform specific body for
9275         MLib.Tgt.Specific.
9276
9277 2007-10-15  Bob Duff  <duff@adacore.com>
9278
9279         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9280         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9281         the generic Heap_Sort_G, in order to avoid trampolines.
9282
9283 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
9284             Jose Ruiz  <ruiz@adacore.com>
9285
9286         * vx_stack_info.c: New file.
9287
9288         * i-forbla-unimplemented.ads: New file.
9289
9290         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9291         for unsupported configurations; use it on VMS targets instead of the
9292         real one.
9293         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9294         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9295         used by VxWorks targets to have access to task-specific data and be
9296         able to extract the stack boundaries for stack checking.
9297         Use system-vms-ia64.ads on ivms.
9298
9299         * Make-lang.in: Update dependencies.
9300
9301         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9302         (vx_stack_info.c).
9303
9304 2007-10-15  Vincent Celier  <celier@adacore.com>
9305
9306         * snames.adb, snames.ads: Add new standard name runtime_library_dir
9307
9308         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9309
9310         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9311
9312         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9313         the source is unknown.
9314
9315         * prj-ext.adb: Spelling error fix
9316
9317         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9318         95 reserved word in its name.
9319         (Process_Project_Level_Array_Attributes): Process new attribute
9320         Runtime_Library_Dir.
9321
9322         * prj-part.adb (Parse_Single_Project): Do not check the name of the
9323         config project against the user project names.
9324
9325         * prj-proc.adb (Expression): In multi-language mode, indexes that do
9326         not include a dot are always case insensitive.
9327         (Process_Declarative_Items): Ditto
9328         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9329         detected.
9330
9331         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9332         True, compare both indexes in lower case.
9333
9334 2007-10-15  Robert Dewar  <dewar@adacore.com>
9335
9336         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9337
9338 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9339
9340         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9341         association for an access component, add an association with null as
9342         the expression. Remove testing for array subtypes and the setting in
9343         that case of Ctyp to the array component type, which prevented proper
9344         inclusion of an association for null-initialized arrays. Collapse
9345         condition that tests for array subtypes into just a test of
9346         Is_Partially_Initialized_Type (which already covers arrays anyway).
9347
9348 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9349
9350         * sem_ch12.adb: Minor code reformatting.
9351         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9352         find the parent package which may have been hidden by local
9353         declarations.
9354
9355 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9356
9357         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9358         flag of derived concurrent types, taking into account the flag setting
9359         on the parent subtype and any new set of discriminants.
9360
9361 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9362
9363         * sem_ch4.adb: Minor code and comment reformatting.
9364         (Analyze_Allocator): When the designated type of an unconstrained
9365         allocator is a record with unknown discriminants or an array with
9366         unknown range bounds, emit a detailed error message depending on the
9367         compilation mode and whether the designated type is limited.
9368
9369 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9370
9371         * system-vms-ia64.ads: New file.
9372
9373         * system-vms_64.ads: Minor comment fix.
9374
9375 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9376
9377         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9378         body generated for a function with a controlling result that is a null
9379         extension, discard the generated body in favor of the current explicit
9380         one.
9381
9382 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9383
9384         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9385         examining its original form, to handle properly operator calls that
9386         have been rewritten.
9387
9388 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9389
9390         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9391         instead of a procedure value in each traceback entry.
9392
9393         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9394         instead of procedure value to TBK$SYMBOLIZE.
9395
9396         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9397         field.
9398         (TB_Entry_For): Account for the PV/FP renaming.
9399
9400         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9401         add comment.
9402         (Null_TB_Entry): Account for change of component name.
9403         (PV_For): Rename as FP_For.
9404
9405 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9406
9407         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9408         This optimize assignment to over-aligned record.
9409
9410 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9411
9412         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9413         interfaces.
9414
9415         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9416         type, for dispatching calls.
9417
9418 2007-10-15  Vincent Celier  <celier@adacore.com>
9419             Robert Dewar  <dewar@adacore.com>
9420
9421         * gnat_ugn.texi: Add documentation for switches --version and --help
9422         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9423         gnatxref, gnatfind, gnatls, and gnatclean.
9424         Document -gnatw.o.
9425         Mention attribute Excluded_Source_Dirs
9426         Replace obsolescent attribute Locally_Removed_Files with attribute
9427         Excluded_Source_Files.
9428         Improve documentation of -u (gnatbind)
9429         Document how to do reliable stack checking for the environmental task
9430         on iVMS.
9431
9432         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9433         Document attribute Excluded_Source_Files and indicate that attribute
9434         Locally_Removed_Files is obsolescent.
9435
9436 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9437
9438         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9439
9440         * gen-soccon.c:
9441         Update documentation to note that OpenVMS 8.3 or later must be used
9442         to generate g-soccon-vms.ads.
9443
9444         * atree.adb: Add ??? comment
9445
9446         * exp_util.adb: Minor reformatting.
9447         Add ??? comment in Kill_Dead_Code.
9448
9449 2007-10-15  Robert Dewar  <dewar@adacore.com>
9450
9451         * errout.ads: Comment clarification
9452
9453         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9454         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9455
9456         * lib.ads: Comment update
9457
9458         * init.c: Minor reformatting.
9459
9460         * sem_attr.adb: Minor formatting
9461
9462         * osint-b.ads: Minor reformatting
9463
9464         * sem_ch9.adb: Implement -gnatd.I switch
9465
9466         * g-comlin.adb: (Start): Fix handling of empty command line.
9467
9468         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9469         even when -rules follows the -cargs section.
9470
9471 2007-10-08  Ollie Wild  <aaw@google.com>
9472
9473         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9474         gnat_return_tree.
9475         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9476         gnat_return_tree.
9477         (gnat_eh_runtime_type): Removed.
9478         (gnat_return_tree): New function.
9479
9480 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9481
9482         PR ada/33454
9483         Revert:
9484         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9485
9486         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9487         when compiling for powerpc64-*-linux.
9488         * system-linux-ppc64.ads: New file.
9489
9490 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9491
9492         Mapped location support
9493         * back_end.adb (Call_Back_End): Pass information about source
9494         files instead of units to gigi.
9495         * gigi.h (struct File_Info_Type): New.
9496         (gigi): Rename and change type of number_units parameter, change
9497         type of file_info_ptr parameter.
9498         * trans.c (number_files): New global variable.
9499         (gigi): Rename and change type of number_units parameter, change
9500         type of file_info_ptr parameter.
9501         If mapped location support is enabled, create the isomorphic mapping
9502         between source files and line maps.
9503         (Sloc_to_locus): If mapped location support is enabled, translate
9504         source location into mapped location.
9505         (annotate_with_node): Rename into set_expr_location_from_node.
9506         Call set_expr_location instead of annotate_with_locus.
9507         (Pragma_to_gnu): Adjust for above change.
9508         (Loop_Statement_to_gnu): Likewise.
9509         (call_to_gnu): Likewise.
9510         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9511         (gnat_to_gnu): Likewise.
9512         (add_stmt_with_node): Likewise.
9513         (add_cleanup): Likewise.
9514         * utils.c (gnat_init_decl_processing): Do not set input_line.
9515
9516 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9517
9518         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9519         (Applicable_Use): Emit a warning when a package tries to use itself.
9520         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9521         is already in use or the package where it is declared is in use or is
9522         declared in the current package.
9523         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9524
9525         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9526         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9527         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9528
9529 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9530
9531         * a-calend-vms.adb, a-calend.adb:
9532         Add a section on leap seconds control along with two entities used to
9533         enable and disable leap seconds support. The array Leap_Second_Times is
9534         now constant and contains hard time values pre-generated. Remove
9535         all elaboration code used to populate the table of leap seconds.
9536
9537         * bindgen.adb:
9538         Add entity Leap_Seconds_Support to the list of global run-time variables
9539         along with a comment on its usage and values.
9540         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9541         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9542         or one (enabled) depending on the presence of binder switch "-y".
9543         (Gen_Adainit_C): Add code to generate the declaration of external int
9544         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9545         (enabled) depending on the presence of binder switch "-y".
9546
9547         * init.c: Add __gl_leap_seconds_support to the list of global values
9548         computed by the binder.
9549
9550 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9551
9552         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9553         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9554          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9555         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9556
9557         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9558
9559         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9560         function which can be called by the debugger to interrupt the tasks of
9561         an Ada application asynchronously, as needed on VxWorks.
9562         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9563
9564         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9565         renamed from Stop_All_Tasks. Update comments.
9566         (Stop_All_tasks): New function declaration.
9567
9568 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9569
9570         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9571         #include <utime.h> and #define GCC_RESOURCE_H before
9572         #include <sys/wait.h>.
9573         Add more protections in __gnat_translate_vms.
9574
9575         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9576         #include <sys/wait.h>.
9577
9578 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9579             Sergey Rybin  <rybin@adacore.com>
9580
9581         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9582
9583         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9584         where it belongs.
9585
9586         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9587
9588         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9589         where it belongs.
9590
9591         * sem_dist.ads: Minor comment fix
9592
9593         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9594
9595 2007-09-26  Javier Miranda  <miranda@adacore.com>
9596             Eric Botcazou  <ebotcazou@adacore.com>
9597
9598         * a-tags.adb:
9599         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9600          indirection added to the HT_Link component of the TSD. This is required
9601          to statically allocate the TSD.
9602
9603         * a-tags.ads:
9604         Minor reordering of the declarations in the private part. Required to
9605         add a level of indirection to the contents of the TSD component HT_Link.
9606         This is required to statically allocate the TSD.
9607
9608         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9609         Is_Statically_Allocated set from constant objects.
9610         Do not make exported constants created by the compiler volatile.
9611         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9612         as read-only.
9613
9614         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9615         before returning them.
9616
9617         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9618         public part of the package.
9619         (Make_DT): Move HT_Link component out of the TSD record. For this
9620         purpose Make_DT now declares a separate object that stores the
9621         HT_Link value, and initializes the TSD component with the address
9622         of this new object. The addition of this level of indirection is
9623         required to statically allocate the TSD because the TSD cannot
9624         have variable components.
9625         (Expand_Interface_Conversion): Improve the expanded code.
9626         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9627
9628         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9629         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9630         if we are building static dispatch tables then we must not generate
9631         extra code to register the primitive because the dispatch table will
9632         be built at the end of the library package; otherwise we notify that
9633         we cannot build the static dispatch table.
9634
9635 2007-09-26  Robert Dewar  <dewar@adacore.com>
9636
9637         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9638         overlays.
9639
9640         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9641         (Analyze_Record_Representation_Clause): Suppress junk warning for
9642         missing component clause.
9643         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9644         tests for controlled type overlay to composites with controlled
9645         components.
9646         (Analyze_Record_Representation_Clause): Add reference for component name
9647
9648 2007-09-26  Javier Miranda  <miranda@adacore.com>
9649             Gary Dismukes  <dismukes@adacore.com>
9650
9651         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9652         for thunks associated with interface types.
9653
9654         * einfo.ads: Improve documentatation of Is_Internal
9655         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9656         associated with interface types.
9657         Extensive comment fixes regarding flags that appear in all entities. The
9658         documentation is now consistent for all such flags (there were a number
9659         of errors in the documentation in this regard).
9660
9661         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9662
9663         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9664         of these procedures are passed a function call that already has
9665         build-in-place actuals (testing new flag
9666         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9667         the case where processing continues.
9668         (Expand_Call): If the call is generated from a thunk body then we
9669         propagate the extra actuals associated with the accessibility
9670         level of the access type actuals.
9671
9672         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9673         of each extra formal of a protected operation to reference the
9674         corresponding extra formal of the subprogram denoted by the
9675         operation's Protected_Body_Subprogram.
9676
9677         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9678         N_Function_Call nodes.
9679
9680 2007-09-26  Robert Dewar  <dewar@adacore.com>
9681
9682         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9683
9684         * debug.adb: Add d.s flag.
9685
9686 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9687
9688         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9689         debug variable so that it won't be initialized when pragma
9690         Initialize_Scalars is in effect.
9691
9692 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9693
9694         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9695         initialization of a full view. This is moved to
9696         Analyze_Package_Specification.
9697
9698         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9699         preelaborable initialization of a full view in entity loop.
9700         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9701         its child units are use-visible only if they are visible child units.
9702
9703         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9704         whether an expression can be used within a type declaration that
9705         requires preelaborable init.
9706         (Check_Components): Replace inline code that does partial checking for
9707         preelaborable default expressions with call to
9708         Is_Preelaborable_Expression.
9709         (Has_Preelaborable_Initialization): In the case of a generic actual
9710         subtype, (that is, Is_Generic_Actual is True), return the result of
9711         applying Has_Preelaborable_Initialization to the generic actual's base
9712         type.
9713
9714 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9715
9716         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9717         call to Jan_1_Day _Of_Week to optimize its performance.
9718         (Is_Leap): Move the routine to the scope of Week_In_Year.
9719         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9720         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9721         avoids calling Time_Of and Split, thus making it more efficent.
9722         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9723
9724         * g-calend.ads (Week_In_Year): Change comment to reflect new
9725         implementation.
9726
9727 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9728
9729         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9730         Command_Line): New types
9731         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9732         support for defining how switches can be grouped on a command line (as
9733         is the case for -gnatw... for GNAT), and how simple switches can be
9734         used as aliases for more complex switches (-gnatwa is same as
9735         -gnatwbcef...)
9736         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9737         (Start, Current_*): New subprograms
9738         Added support for parsing an array of strings in addition to the real
9739         command line.
9740         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9741          be moved from the body to the private part of the spec.
9742         (*): All subprograms now have an extra parameter with default value to
9743         specify which parser should be used. For backward compatibility, it
9744         defaults to parsing the command line of the application. They were also
9745         modified to properly handle cases where each of the argument does not
9746         start at index 1 (which is always true for Ada.Command_Line, but not
9747         when processing any Argument_List).
9748         (Free): New subprogram
9749         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9750         Argument): New subprograms
9751         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9752         special characters like ':', '=',... are now handled in a single place,
9753         which makes the code more extensible eventually.
9754         (Getopt, Full_Switch): When the switch was returned as part of the
9755         special character '*', make sure it is prepended by the switch character
9756         ('-' in general), so that the application knows whether "foo" or "-foo"
9757         was specified on the command line.
9758
9759 2007-09-26  Florian Villoing  <villoing@adacore.com>
9760
9761         * g-dirope.adb (Remove_Dir): In case we are removing directories
9762         recursively, make sure that if an exception is raised during the
9763         processing, the current working directory is reset to its initial
9764         value before propagating the exception.
9765
9766 2007-09-26  Vincent Celier  <celier@adacore.com>
9767
9768         * gnatbind.adb: If there are several ALI files specified and there is
9769         a main program to bind, the first ALI is expected to contain the main
9770         subprogram and the names of the binder generated files will be derived
9771         from the first ALI file name.
9772         (Gnatbind): Fix insertion character in invocation of Error_Msg
9773
9774 2007-09-26  Vincent Celier  <celier@adacore.com>
9775
9776         * gnatcmd.adb (Check_Files): Do not include sources that have been
9777         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9778
9779 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9780
9781         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9782         information about each of its index types, following the type
9783         reference for its component type.
9784
9785 2007-09-26  Vincent Celier  <celier@adacore.com>
9786
9787         * make.adb: (Kill): New procedure (__gnat_kill imported)
9788         (Running_Compile, Outstanding_Compiles): Global variables that
9789         were previously local to procedure Compile_Sources.
9790         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9791         compilation processes.
9792
9793         (Gnatmake): If project files are used, create the mapping of all the
9794         sources, so that the correct paths will be found.
9795
9796         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9797
9798 2007-09-26  Vincent Celier  <celier@adacore.com>
9799
9800         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9801
9802         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9803         Replace components Compiler_Min_Options and Binder_Min_Options with
9804         Compiler_Required_Switches and Binder_Required_Switches in record
9805         Language_Config.
9806         Remove components Default_Language and Config in Project_Tree_Data,
9807         no longer used.
9808
9809         * prj-attr.adb: New attributes Required_Switches (<language>) in
9810         packages Compiler and Binder.
9811
9812         * prj-nmsc.adb: Major rewrite of the processing of configuration
9813         attributes for gprbuild. No impact on GNAT tools.
9814
9815         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9816         process configuration attributes: this is done in Prj.Nmsc.Check.
9817         (Recursive_Process): Make a full copy of packages inherited from project
9818         being extended, instead of a shallow copy.
9819         (Process_Project_Tree_Phase_1): New procedure
9820         (Process_Project_Tree_Phase_1): New procedure
9821         (Process): Implementation now uses the two new procedures
9822
9823         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9824         from the project config, not the tree config that no longer exists.
9825
9826 2007-09-26  Vincent Celier  <celier@adacore.com>
9827
9828         * Make-lang.in: Update dependencies..
9829
9830 2007-09-26  Vincent Celier  <celier@adacore.com>
9831
9832         * osint.adb, osint.ads: Minor reformatting
9833
9834         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9835
9836 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9837
9838         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9839         message to cite use of <> in aggregate component associations rather
9840         than wrongly indicating use of limited aggregates.
9841
9842 2007-09-26  Robert Dewar  <dewar@adacore.com>
9843
9844         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9845         Address_Taken.
9846
9847 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9848
9849         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9850         ancestor of the derived type, the operations are inherited from the
9851         primary dispatch table of the parent.
9852         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9853         when the context is an explicit type conversion.
9854
9855 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9856
9857         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9858         rule for qualified expressions properly, to detect improper conversions
9859         and resolve some cases of overloading.
9860
9861 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9862
9863         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9864         proper kind of reference to the primitive operation, for better source
9865         navigation.
9866         (Valid_Conversion): A tagged conversion is legal if both operands are
9867         tagged.
9868
9869 2007-09-26  Robert Dewar  <dewar@adacore.com>
9870
9871         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9872         packages.
9873
9874 2007-09-26  Vincent Celier  <celier@adacore.com>
9875
9876         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9877
9878 2007-09-26  Robert Dewar  <dewar@adacore.com>
9879
9880         * s-wchstw.adb: provide messages for run time unit exceptions
9881
9882         * a-witeio.adb: Minor reformatting
9883
9884         * exp_ch13.adb: Minor reformatting
9885
9886 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9887
9888         * vms_data.ads: Revise gnatmetric qualifiers.
9889         Add qualified for the new gnatbind option '-y'
9890
9891         * gnat_ugn.texi: Revise the gnatmetric section.
9892         Add entry for new gnatbind option '-y'.
9893
9894         * gnat_rm.texi: Minor spelling correction.
9895         Document restriction on overlaying controlled types
9896
9897 2007-09-26  Vincent Celier  <celier@adacore.com>
9898
9899         * makegpr.adb (Link_Executables): Do not fail when the root project has
9900         no sources, but is an extending project.
9901
9902 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9903
9904         * trans.c: Fix misplaced #define.
9905
9906 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9907
9908         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9909         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9910
9911 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9912
9913         * utils.c (type_for_nonaliased_component_p): Return false for
9914         all AGGREGATE_TYPEs.
9915
9916 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9917
9918         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9919         object covered by 13.3(19) volatile.
9920
9921 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9922
9923         PR ada/26797
9924         PR ada/32407
9925         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9926         in the special VIEW_CONVERT_EXPR case.
9927
9928 2007-09-12  Robert Dewar  <dewar@adacore.com>
9929
9930         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9931
9932         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9933         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9934         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9935         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9936         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9937         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9938         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9939         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9940         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9941         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9942         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9943         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9944         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9945         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9946         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9947         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9948         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9949         pragma Compiler_Unit and adds it to relevant library units.
9950
9951 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9952
9953         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9954         a box need not correspond to any component.
9955
9956 2007-09-12  Robert Dewar  <dewar@adacore.com>
9957
9958         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9959         the tasking version of the Ada run time when foreign threads are
9960         present and there are no explicit Ada tasks or tasking constructs.
9961
9962         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9963
9964 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9965
9966         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9967         the usage of switch -y.
9968
9969         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9970         when switch -y is present.
9971
9972         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9973         leap seconds in Ada.Calendar and its children.
9974
9975 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9976
9977         * a-extiti.ads (Timer): The discriminant is a "not null access
9978         constant" in the Reference Manual.
9979         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9980
9981 2007-09-12  Robert Dewar  <dewar@adacore.com>
9982
9983         * a-swuwha.adb: Remove junk RM header
9984
9985 2007-09-12  Vincent Celier  <celier@adacore.com>
9986
9987         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9988         indicator
9989
9990         * g-bytswa.ads: Minor reformatting
9991
9992 2007-09-12  Thomas Quinot  <quinot@adacore.com>
9993
9994         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9995         Add new constant Thread_Blocking_IO, always True by default, set False
9996         on a per-runtime basis.
9997         (Need_Netdb_Buffer): New constant.
9998
9999 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
10000
10001         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10002         Added renames for corresponding functions in System.Partition_Interface.
10003
10004 2007-09-12  Doug Rupp  <rupp@adacore.com>
10005
10006         * Makefile.in: Remove VMS specific System.CRTL packages which are no
10007         longer needed.
10008
10009         * s-crtl-vms64.ads: Removed.
10010
10011 2007-09-12  Olivier Hainque  <hainque@adacore.com>
10012
10013         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10014         with discriminant constraints, generalize the code for BIT_FIELDs
10015         to PACKED fields of constant size and propagate DECL_PACKED.
10016
10017 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
10018
10019         * decl.c (array_type_has_nonaliased_component): New predicate.
10020         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10021         set the TYPE_NONALIASED_COMPONENT flag on the type.
10022         <E_Array_Subtype>: Likewise.
10023         * gigi.h (type_for_nonaliased_component_p): Declare.
10024         * utils.c (type_for_nonaliased_component_p): New predicate.
10025         (create_field_decl): Invoke the above predicate to set the
10026         DECL_NONADDRESSABLE_P flag on the field.
10027
10028 2007-09-11  Javier Miranda  <miranda@adacore.com>
10029
10030         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10031         in library level record type entities if we are generating statically
10032         allocated dispatch tables.
10033
10034         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10035         importing/exporting the _tag declaration by new code
10036         importing/exporting the dispatch table wrapper. This change allows us
10037         to statically allocate of the TSD.
10038         (Make_DT.Export_DT): New procedure.
10039         (Build_Static_DT): New function.
10040         (Has_DT): New function.
10041
10042         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10043         True_Constant and Current_Value. Required to statically
10044         allocate the dispatch tables.
10045         (Check_Allocator): Make function iterative instead of recursive.
10046         Also return inner allocator node, when present, so that we do not have
10047         to look for that node again in the caller.
10048
10049 2007-09-11  Jan Hubicka  <jh@suse.cz>
10050
10051         * misc.c (gnat_expand_body): Kill.
10052         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10053
10054 2007-09-10  Robert Dewar  <dewar@adacore.com>
10055
10056         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10057         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10058         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10059         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10060         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10061         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10062         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10063         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10064         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10065         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10066         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10067         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10068         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10069         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10070         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10071         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10072         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10073         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10074         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10075         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10076         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10077         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10078         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10079         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10080         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10081         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10082         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10083         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10084         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10085         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10086         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10087         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10088         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10089         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10090         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10091         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10092         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10093         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10094         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10095         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10096         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10097         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10098         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10099         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10100         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10101         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10102         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10103         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10104         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10105         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10106         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10107         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10108         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10109         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10110         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10111         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10112         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10113         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10114         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10115         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10116         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10117         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10118         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10119         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10120         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10121         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10122         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10123         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10124         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10125         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10126         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10127         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10128         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10129         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10130         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10131         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10132         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10133         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10134         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10135         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10136         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10137         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10138         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10139
10140 2007-09-10  Emmanuel Briot  <briot@adacore.com>
10141
10142         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10143         classes ("[]").
10144
10145 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
10146
10147         * adaint.c (__gnat_translate_vms): new function.
10148
10149 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
10150             Thomas Quinot  <quinot@adacore.com>
10151
10152         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10153         create an abstract subprogram in the case of 'Input. For 'Output we now
10154         create a real spec/body when the type is abstract, since it can
10155         potentially be called.
10156         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10157         body for 'Output when the type is abstract (only the creation of the
10158         body for 'Input is excluded when the type is abstract).
10159         (Stream_Operation_OK): Add an additional condition in the return
10160         statement, so that False will be returned for TTS_Stream_Input if the
10161         associated tagged type is an abstract extension. Add comments for
10162         return statement.
10163         (Expand_N_Object_Declaration): For the case of a shared passive
10164         variable, insert init proc call only after the shared variable
10165         procedures have been processed, because the IP call needs to undergo
10166         shared passive variable reference expansion, which requires these
10167         procedures to be available (and elaborated).
10168
10169 2007-09-10  Vincent Celier  <celier@adacore.com>
10170
10171         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10172         parameter Runtime_Project.
10173
10174 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10175
10176         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10177         given a box association, the type of the component is discriminated,
10178         and the value of the discriminant is the discriminant of the enclosing
10179         type, retrieve its value from the aggregate itself, where it must have
10180         been supplied.
10181
10182         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10183         to remove other spurious ambiguities on arithmetic operations involving
10184         literals and addresses, on systems where Address is a visible integer
10185         type, when the operator is called in functional notation.
10186         (Try_Primitive_Operation): Within an instance, a call in prefixed form
10187         is legal when the types match, even if the operation is currently
10188         hidden.
10189
10190 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10191
10192         * sem_ch12.adb (Build_Local_Package): A formal package with no
10193         associations is legal if all formals have defaults. It is not
10194         equivalent to a formal declared with a box.
10195
10196 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10197
10198         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10199
10200 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10201
10202         * gnat_ugn.texi: Add description of the new '-lratio' option
10203         Update 7.3.1 section about availability of the feature.
10204
10205 2007-09-10  Thomas Quinot  <quinot@adacore.com>
10206
10207         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10208         inserted node.
10209
10210 2007-09-10  Olivier Hainque  <hainque@adacore.com>
10211
10212         * Makefile.in: (mips-irix section): Activate build of libgmem.
10213
10214 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10215
10216         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10217         x87 registers.
10218
10219 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10220
10221         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10222         a debug renaming declaration specially.
10223
10224 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10225
10226         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10227         which a constant renaming is treated as a normal object declaration.
10228         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10229         the N_Indexed_Component case.
10230         <N_Indexed_Component>: Fall through to above case.
10231         <N_Object_Renaming_Declaration>: Return true for all composite types.
10232
10233 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10234
10235         * decl.c (make_packable_type): If the new type has been given BLKmode,
10236         try again to get an integral mode for it.
10237
10238 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
10239
10240         Re-apply accidentally reverted change:
10241
10242         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10243
10244         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10245         get_action_description_for): Replace _Unwind_Word with _uleb128_t
10246         and _Unwind_SWord with _sleb128_t.
10247
10248 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10249
10250         * trans.c (convert_with_check): Update call to real_2expN.
10251
10252 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
10253
10254         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10255         * utils.c (end_subprog_body): Likewise.
10256
10257 2007-09-03  Nick Clifton  <nickc@redhat.com>
10258
10259         * Make-lang.in: Change copyright header to refer to version 3 of
10260         the GNU General Public License and to point readers at the
10261         COPYING3 file and the FSF's license web page.
10262         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10263         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10264         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10265         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10266         Likewise.
10267
10268 2007-08-31  Vincent Celier  <celier@adacore.com>
10269
10270         PR ada/4720
10271
10272         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10273         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10274         (Check_Version_And_Help): New procedure in package Switch to process
10275         switches --version and --help.
10276         Use Check_Version_And_Help in GNAT tools
10277
10278         * make.adb:  Ditto.
10279         (Compile_Sources): Make sure that sources that are "excluded" are not
10280         compiled.
10281         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10282         project file is used.
10283         (Version_Switch): Remove, moved to Switch
10284         (Help_Switch): Remove, moved to Switch
10285         (Display_Version): Remove, moved to Switch
10286
10287         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10288         package Switch to process switches --version and --help.
10289         (Display_Version): New procedure
10290
10291         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10292
10293 2007-08-31  Javier Miranda  <miranda@adacore.com>
10294
10295         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10296         internal tags.
10297
10298 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10299
10300         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10301         (Mark_Non_Null): If the node for which we just generated an access check
10302         is a reference to an *in* parameter and the reference appears in the
10303         declarative part of a subprogram body, mark the node as known non null.
10304
10305 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10306
10307         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10308         structure of E_Exception to reflect the new flag.
10309         (Is_Raised, Set_Is_Raised): New inlined routines.
10310         Update the usage of available flag to reflect the addition of Is_Raised.
10311         (Is_Raised, Set_Is_Raised): Bodies of new routines.
10312         (Write_Entity_Flags): Write the status of flag Is_Raised.
10313         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10314         spurious ambiguities when integer literals appear in the context of an
10315         address type that is a visible integer type.
10316
10317         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10318         exceptions never being raised.
10319         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10320         explicitly raised.
10321
10322 2007-08-31  Javier Miranda  <miranda@adacore.com>
10323
10324         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10325         statement when compiling under restriction No_Exceptions_Proparation.
10326
10327 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10328
10329         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10330         initialization aggregate for the type, generate itype references for
10331         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10332
10333 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
10334
10335         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10336         library-level package renaming, pass the declaration associated with
10337         the renaming's special debug variable to Qualify_Entity_Names to ensure
10338         that its encoded name is properly qualified.
10339
10340         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10341         occurring in the list of entities to qualify, and do not attempt to
10342         traverse an entity list in that case. Variables associated with
10343 `       library-level package renamings can now occur in the table.
10344
10345         * exp_dbug.ads: Revise documentation of the encoding for renaming
10346         declarations.
10347
10348 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10349
10350         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10351         access type points to an unconstrained array.
10352
10353 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10354
10355         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10356         conversion.
10357
10358         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10359         simple redundant qualifications. The check is performed whenever the
10360         expression is a non-overloaded identifier.
10361         (Resolve_Type_Conversion): Enchance the redundant type conversion check
10362         to include loop parameters.
10363         (Valid_Conversion): Avoid generation of spurious error message.
10364
10365 2007-08-31  Bob Duff  <duff@adacore.com>
10366
10367         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10368         concatenations of string literals into a single literal, in order to
10369         avoid very deep recursion in the front end, which was causing stack
10370         overflow.
10371
10372         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10373         string, and the right operand is a string literal (the case of "" &
10374         "..."), optimize by avoiding copying the right operand -- just use the
10375         value of the right operand directly.
10376
10377         * stringt.adb (Store_String_Chars): Optimize by growing the
10378         String_Chars table all at once, rather than appending characters one by
10379         one.
10380         (Write_String_Table_Entry): If the string to be printed is very long,
10381         just print the first few characters, followed by the length. Otherwise,
10382         doing "pn(n)" in the debugger can take an extremely long time.
10383
10384         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10385         Store_String_Char with Store_String_Chars.
10386
10387 2007-08-31  Vincent Celier  <celier@adacore.com>
10388
10389         * prj-attr.adb: Add new attribute Excluded_Source_Files
10390
10391         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10392         Locally_Removed_Files.
10393
10394         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10395
10396 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10397
10398         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10399         clauses of subunits, ignore limited_with_clauses that are illegal and
10400         have not been fully analyzed.
10401
10402 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10403
10404         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10405         flag, for effiency. It is called when analyzing arithmetic operators
10406         and also for actuals in calls that are universal_integers. The flag is
10407         set for the predefined type address, and for any type or subtype
10408         derived from it.
10409
10410         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10411         Universal_Integer, when the formal is a descendent of address and the
10412         call appears in user code.
10413         (Analyze_Selected_Component): if the prefix is a private extension, the
10414         tag component is visible.
10415
10416         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10417         entity flag.
10418
10419 2007-08-31  Robert Dewar  <dewar@adacore.com>
10420
10421         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10422         sensitive file name systems to avoid unexpected mismatch in Vista.
10423
10424 2007-08-31  Vincent Celier  <celier@adacore.com>
10425
10426         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10427
10428 2007-08-31  Vincent Celier  <celier@adacore.com>
10429
10430         * symbols-vms.adb (Initialize): Read symbol files with continuation
10431         lines
10432         (Finalize): If symbol is long, split the line
10433
10434 2007-08-31  Vincent Celier  <celier@adacore.com>
10435
10436         * fmap.ads: Minor comment updates
10437
10438 2007-08-31  GNAT Script  <nobody@adacore.com>
10439
10440         * Make-lang.in: Makefile automatically updated
10441
10442 2007-08-31  Bob Duff  <duff@adacore.com>
10443
10444         * sinfo.ads: Minor comment fix.
10445
10446 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10447
10448         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10449         with implementation.
10450         Documentation cleanup only.
10451
10452 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10453
10454         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10455         gnatpp '--separate-stmt-name' option.
10456         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10457         option.
10458
10459         * gnat_ugn.texi: Add description for the new gnatpp
10460         '--separate-stmt-name' and '--use-on-new-line' options.
10461
10462 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10463
10464         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10465         when compiling for powerpc64-*-linux.
10466         * system-linux-ppc64.ads: New file.
10467
10468 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10469
10470         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10471         NetBSD.
10472
10473 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10474
10475         * misc.c (gnat_type_max_size): Constify.
10476
10477 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10478
10479         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10480         associated with Standard_Debug_Renaming_Type, to be used as the type of
10481         the special variables whose names provide debugger encodings for
10482         renaming declarations.
10483
10484         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10485         (Set_Debug_Renaming_Link): Change to set Node25.
10486         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10487         (Write_Field25_Name): Add case for E_Variable to output
10488         "Debug_Renaming_Link".
10489         (Write_Field23_Name): Correct the output string for "Limited_View".
10490
10491         * exp_dbug.adb: Add with and use of Tbuild.
10492         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10493         and literal with creation of a variable of type
10494         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10495         and the entity of the renaming declaration.
10496         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10497         part of the name of a variable that has a Debug_Renaming_Link.
10498
10499         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10500         special type to be associated with variables that provide debugger
10501         encodings for renaming declarations.
10502
10503 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10504             Ed Schonberg  <schonberg@adacore.com>
10505             Javier Miranda  <miranda@adacore.com>
10506
10507         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10508         ancestor part given by an aggregate to test for an unchecked conversion,
10509         since this can occur in some cases when the ancestor part is a function
10510         call, and we don't want to fall into the recursive call to this
10511         procedure in that case.
10512
10513         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10514         stream attributes on limited types to account for user-specified
10515         attributes as well as whether Input (resp. Output) becomes available
10516         due to Read (resp. Write) being available for the type. Change Boolean
10517         variable to the more accurate name
10518         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10519         double-"not" predicate at beginning of return statement to more
10520         understandable form.
10521
10522         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10523         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10524         in a block statement and use that as the first statement of the
10525         expanded return rather than incorrectly using the handled sequence as
10526         the first statement.
10527
10528         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10529         operation, generate an explicit freeze node for it rather than
10530         generating extra formals, to ensure that gigi has the proper order of
10531         elaboration for anonymous subtypes in the signature of the subprograms.
10532         (Build_In_Place_Formal): Move assertion to beginning of loop.
10533         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10534         applied to a function call (occurs for some cases of 'Input).
10535         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10536         applied to a function call (occurs for some cases of 'Input).
10537
10538         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10539         2005, generate an extended return statement enclosing the result object
10540         and 'Read call.
10541
10542         * freeze.adb (Freeze_Record_Type): Extend the current management of
10543         components that are access type with an allocator as default value: add
10544         missing support to the use of qualified expressions of the
10545         allocator (which also cause freezing of the designated type!)
10546         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10547         dispatching operation, since extra formals may be needed by calls to
10548         build-in-place functions (such as stream 'Input).
10549
10550         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10551         formals for 'Constrained and accessibility level in the case of a
10552         predefined dispatching operation.
10553
10554         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10555         point, no need to find the parent node.
10556
10557 2007-08-16  Javier Miranda  <miranda@adacore.com>
10558
10559         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10560         and entry barriers.
10561
10562 2007-08-16  Javier Miranda  <miranda@adacore.com>
10563
10564         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10565         is not really required and can introduce regression with the debugger.
10566         The original problem is fixed with the patch written for checks.adb.
10567
10568 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10569
10570         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10571         Range_Check on Allocated_Table.
10572
10573 2007-08-16  Vincent Celier  <celier@adacore.com>
10574
10575         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10576         Including_Non_Switch set to False.
10577         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10578         Including_Non_Switch set to False.
10579
10580         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10581         parameter Including_Non_Switch, defaulted to True. When
10582         Including_Non_Switch is False, options that are not switches and
10583         appear as relative path are not converted to absolute paths.
10584
10585 2007-08-16  Nicolas Roche  <roche@adacore.com>
10586
10587         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10588         makefiles
10589
10590         * Make-lang.in: Update dependencies
10591
10592 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10593
10594         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10595         currently inspected is a selected component, retrieve the entity of
10596         its selector.
10597         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10598         from the immediate ancestor of Main_Unit_Entity.
10599         (Install_Limited_Withed_Unit): Do not install the limited view of
10600         package P if P is reachable through an ancestor chain from package C
10601         and C also has a with clause for P in its body.
10602         (Has_Limited_With_Clause): New routine.
10603         (Has_With_Clause): New routine.
10604
10605 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10606
10607         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10608         generic for an enclosing instance is a global reference, even though
10609         its scope is the enclosing instance.
10610
10611 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10612             Javier Miranda  <miranda@adacore.com>
10613
10614         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10615         initialize a limited object.
10616         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10617         13/2 and 14/2.
10618         Make sure Has_Complex_Representation is inherited by derived type.
10619
10620 2007-08-16  Robert Dewar  <dewar@adacore.com>
10621
10622         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10623         exception case
10624
10625 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10626
10627         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10628         implements an operation inherited from a progenitor interface, verify
10629         that they are subtype-conformant.
10630
10631 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10632             Bob Duff  <duff@adacore.com>
10633             Nicolas Setton  <setton@adacore.com>
10634
10635         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10636         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10637         the statement which is being resolved comes from a predefined library
10638         unit, all non-predefined library interpretations are skipped.
10639         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10640         but the "&" is user defined, give an error, because the folding would
10641         be wrong.
10642
10643         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10644         the parser has folded a long sequence of concatenations of string
10645         literals.
10646
10647         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10648         and "JMP_BUF" variables as artificial.
10649         (N_String_Literal): Do not use alloca for very long string literals. Use
10650         xmalloc/free instead. Otherwise the stack might overflow.
10651
10652         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10653         compiler.
10654
10655 2007-08-16  Vincent Celier  <celier@adacore.com>
10656
10657         * vms_conv.adb (Process_Argument): Ensure that project related options
10658         are not put in the -cargs section when using GNAT COMPILE.
10659
10660 2007-08-16  Robert Dewar  <dewar@adacore.com>
10661
10662         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10663
10664 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10665
10666         * a-tags.adb: Minor reformatting.
10667
10668 2007-08-16  Bob Duff  <duff@adacore.com>
10669
10670         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10671
10672 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10673
10674         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10675         s-osinte-interix.ads, system-interix.ads: Removed.
10676
10677 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10678
10679         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10680         calls to Check_Within_Time_Bounds.
10681         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10682         (Difference): Account for possible rounding of the resulting difference
10683
10684 2007-08-14  Robert Dewar  <dewar@adacore.com>
10685
10686         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10687         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10688         s-osinte-solaris.adb, s-osinte-solaris.ads,
10689         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10690
10691         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10692         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10693
10694 2007-08-14  Robert Dewar  <dewar@adacore.com>
10695             Ed Schonberg  <schonberg@adacore.com>
10696
10697         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10698         Suppress unmodified in-out parameter warning in some cases
10699         This patch is a also fairly significant change to the way suppressible
10700         checks are handled.
10701
10702         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10703         needed for access to concurrent record types generated by the expander.
10704         (Generate_Range_Check): When generating a temporary to capture the
10705         value of a conversion that requires a range check, set the type of the
10706         temporary before rewriting the node, so that the type is always
10707         properly placed for back-end use.
10708         (Apply_Float_Conversion_Check): Handle case where the conversion is
10709         truncating.
10710         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10711         for a protected type in order to examine its discriminants.
10712
10713 2007-08-14  Robert Dewar  <dewar@adacore.com>
10714             Gary Dismukes  <dismukes@adacore.com>
10715             Ed Schonberg  <schonberg@adacore.com>
10716             Thomas Quinot  <quinot@adacore.com>
10717
10718         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10719         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10720         tests optimized out.
10721
10722         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10723         (Get_Allocator_Final_List): For the case of an anonymous access type
10724         that has a specified Associated_Final_Chain, do not go up to the
10725         enclosing scope.
10726         (Expand_N_Type_Conversion): Test for the case of renamings of access
10727         parameters when deciding whether to apply a run-time accessibility
10728         check.
10729         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10730         aggregate code before allocator, and ahead of declaration for
10731         temporary, to prevent access before elaboration when the allocator is
10732         an actual for an access parameter.
10733         (Expand_N_Type_Conversion): On an access type conversion involving an
10734         access parameter, do not apply an accessibility check when the
10735         operand's original node was an attribute other than 'Access. We now
10736         create access conversions for the expansion of 'Unchecked_Access and
10737         'Unrestricted_Access in certain cases and clearly accessibility should
10738         not be checked for those.
10739
10740         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10741         includes a type conversion of a packed component that has been expanded,
10742         recover the original expression for the object, and use this expression
10743         in the post-call assignment statement, so that the assignment is made
10744         to the object and not to a back-end temporary.
10745         (Freeze_Subprogram): In case of primitives of tagged types not defined
10746         at the library level force generation of code to register the primitive
10747         in the dispatch table. In addition some code reorganization has been
10748         done to leave the implementation clear.
10749         (Expand_Call): When expanding an inherited implicit conversion,
10750         preserve the type of the inherited function after the intrinsic
10751         operation has been expanded.
10752
10753         * exp_ch2.ads, exp_ch2.adb
10754         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10755         of an entry formal appearing in an assignment statement does not assign
10756         to the formal.
10757         (Expand_Current_Value): Instead of calling a routine to determine
10758         whether the prefix of an attribute reference should be optimized or
10759         not, prevent the optimization of such prefixes all together.
10760
10761         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10762         component whose prefix is known to be of an access type is an implicit
10763         dereference and does not assign to the prefix.
10764
10765 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10766             Robert Dewar  <dewar@adacore.com>
10767
10768         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10769         itype is visited, make an entry into table to link associated node and
10770         new itype.
10771         Add comments and correct harmless error in Build_NCT_Hash_Tables
10772         (Array_Aggr_Subtype): Associate each itype created for an index type to
10773         the corresponding range construct, and not to the aggregate itself. to
10774         maintain a one-to-one correspondence between itype and its associated
10775         node, to prevent errors when complex expression is copied.
10776         Fix mishandling of multiple levels of parens
10777
10778         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10779         treatment of limited views uniform for all visible declarations in a
10780         limited_withed package.
10781         (New_Copy_Tree): If hash table is being used and itype is visited,
10782         make an entry into table to link associated node and new itype.
10783         (Resolve_Record_Aggregate): Do not add an others box association for a
10784         discriminated record component that has only discriminants, when there
10785         is a box association for the component itself.
10786
10787         * par-ch4.adb: Fix mishandling of multiple levels of parens
10788
10789 2007-08-14  Robert Dewar  <dewar@adacore.com>
10790
10791         * comperr.adb: Fix problem with suppressing warning messages from gigi
10792
10793         * erroutc.ads, erroutc.adb, errout.ads,
10794         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10795         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10796         possible trailing spaces.
10797         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10798         Fix problem with suppressing warning messages from back end
10799         Improve handling of deleted warnings
10800
10801         * gnat1drv.adb:
10802         Fix problem with suppressing warning messages from back end
10803         Handle setting of Static_Dispatch_Tables flag.
10804
10805         * prepcomp.adb:
10806         Fix problem with suppressing warning messages from back end
10807
10808         * exp_intr.adb: Improve handling of deleted warnings
10809
10810 2007-08-14  Robert Dewar  <dewar@adacore.com>
10811
10812         * debug.adb: Improve -gnatdI to cover all cases of serialization
10813         Add documentation of dZ, d.t
10814
10815         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10816         serialization.
10817         (Sprint_Node_Actual): Generate new output associated with implicit
10818         importation and implicit exportation of object declarations.
10819
10820 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10821             Robert Dewar  <dewar@adacore.com>
10822             Javier Miranda  <miranda@adacore.com>
10823             Gary Dismukes  <dismukes@adacore.com>
10824
10825         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10826         to make treatment of limited views uniform for all visible declarations
10827         in a limited_withed package.
10828         Improve warnings for in out parameters
10829         (Set_Related_Interaface/Related_Interface): Allow the use of this
10830         attribute with constants.
10831         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10832         Warn on duplicate pragma Preelaborable_Initialialization
10833
10834         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10835         generation of a freezing node to ensure proper management of null
10836         excluding access types in the backend.
10837         (Create_Extra_Formals): Test base type of the formal when checking for
10838         the need to add an extra accessibility-level formal. Pass the entity E
10839         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10840         originally being done in a couple of cases), to ensure that the
10841         Extra_Formals list gets set on the entity E when the first entity is
10842         added.
10843         (Conforming_Types): Add missing calls to Base_Type to the code that
10844         handles anonymous access types. This is required to handle the
10845         general case because Process_Formals builds internal subtype entities
10846         to handle null-excluding access types.
10847         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10848         functions that need it, even when not marked Requires_Overriding.
10849         Improve warnings for in out parameters
10850         (Analyze_Function_Return): Warn for disallowed null return
10851         Warn on return from procedure with unset out parameter
10852         Ensure consistent use of # in error messages
10853         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10854         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10855         the implicit conversion of the expression done for anonymous access
10856         types. This is required to generate the code of the null excluding
10857         check (if required).
10858
10859         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10860         A formal parameter is never publicly referenceable outside of its body.
10861         (Check_References): For an unreferenced formal parameter in an accept
10862         statement, use the same warning circuitry as for subprogram formal
10863         parameters.
10864         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10865         Output_Unreferenced_Messages, containing the part of that routine that
10866         is now reused for entry formals as described above.
10867         (Goto_Spec_Entity): New function
10868         (Check_References): Do not give IN OUT warning for dispatching operation
10869         Improve warnings for in out parameters
10870         (Test_Ref): Check that the entity is not undefinite before calling
10871         Scope_Within, in order to avoid infinite loops.
10872         Warn on return from procedure with unset out parameter
10873         Improved warnings for unused variables
10874
10875 2007-08-14  Robert Dewar  <dewar@adacore.com>
10876             Javier Miranda  <miranda@adacore.com>
10877             Gary Dismukes  <dismukes@adacore.com>
10878
10879         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10880         (Expand_N_Attribute_Reference): Further unify the handling of the
10881         three forms of access attributes, using common code now for all three
10882         cases. Add a test for the case of applying an access attribute to
10883         an explicit dereference when the context is an access-to-interface
10884         type. In that case we need to apply the conversion to the prefix
10885         of the explicit dereference rather than the prefix of the attribute.
10886         (Attribute_Version, UET_Address): Set entity as internal to ensure
10887         proper dg output of implicit importation.
10888         (Expand_Access_To_Type): Removed.
10889         (Expand_N_Attribute_Reference): Merge the code from the three cases
10890         of access attributes, since the processing is largely identical for
10891         these cases. The substantive fix here is to process the case of a
10892         type name prefix (current instance case) before handling the case
10893         of interface prefixes.
10894
10895 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10896             Ed Schonberg  <schonberg@adacore.com>
10897             Javier Miranda  <miranda@adacore.com>
10898             Robert Dewar  <dewar@adacore.com>
10899
10900         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10901         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10902         type that is an anonymous access to controlled object, establish
10903         an associated finalization chain to avoid corrupting the global
10904         finalization list when a dynamically allocated object designated
10905         by such a component is deallocated.
10906         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10907         functions that need it, even when not marked Requires_Overriding.
10908         (Initialize_Tag): Replace call to has_discriminants by call to
10909         Is_Variable_Size_Record in the circuitry that handles the
10910         initialization of secondary tags.
10911         (Is_Variable_Size_Record): New implementation.
10912         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10913         Suppress_Initialization pragma for a derived type.
10914         (Is_Variable_Size_Record): New subprogram.
10915         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10916         initial version of this routine and also fixes problems causing
10917         incomplete initialization of the table of interfaces.
10918         (Build_Init_Procedure): Improve the generation of code to initialize the
10919         the tag components of secondary dispatch tables.
10920         (Init_Secondary_Tags): New implementation that simplifies the previous
10921         version of this routine.
10922         (Make_DT): Add parameter to indicate when type has been frozen by an
10923         object declaration, for diagnostic purposes.
10924         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10925         diagnose attemps to freeze a subprogram when some untagged type of its
10926         profile is a private type whose full view has not been analyzed yet.
10927         (Freeze_Array_Type): Generate init proc for packed array if either
10928         Initialize or Normalize_Scalars is set.
10929         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10930         constructing the new profile, copy the null_exclusion indicator for each
10931         parameter, to ensure full conformance of the new body with the spec.
10932
10933         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10934         Create wrappers for constructor functions that need it, even when not
10935         marked Requires_Overriding.
10936         (Covers): Handle properly designated types of anonymous access types,
10937         whose non-limited views are themselves incomplete types.
10938         (Add_Entry): Use an entity to store the abstract operation which hides
10939         an interpretation.
10940         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10941         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10942         initialization aggregate.
10943         (Function_Interp_May_Be_Hidden): Rename to
10944         Function_Interp_Has_Abstract_Op.
10945         (Has_Compatible_Type): Remove machinery that skips interpretations if
10946         they are labeled as potentially hidden by an abstract operator.
10947         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10948         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10949         (Write_Overloads): Output the abstract operator if present.
10950         (Add_Entry): Before inserting a new entry into the interpretation table
10951         for a node, determine whether the entry will be disabled by an abstract
10952         operator.
10953         (Binary_Op_Interp_May_Be_Hidden): New routine.
10954         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10955         aggregate.
10956         (Function_Interp_May_Be_Hidden): New routine.
10957         (Has_Compatible_Type): Do not consider interpretations hidden by
10958         abstract operators when trying to determine whether two types are
10959         compatible.
10960         (Has_Hidden_Interp): New routine.
10961         (Set_May_Be_Hidden_Interp): New routine.
10962         (Write_Overloads): Write the status of flag May_Be_Hidden.
10963
10964 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10965             Javier Miranda  <miranda@adacore.com>
10966
10967         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10968         types declared in the declarative part of a nested package body or in
10969         the proper body of a stub.
10970         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10971         of the same dispatch table slot to renamed primitives.
10972         (Make_Select_Specific_Data_Table): Handle private types.
10973         (Tagged_Kind): Handle private types.
10974         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10975         output of implicit importation and exportation.
10976         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10977         first formal of the thunk is always associated with the controlling
10978         type. In addition perform the following code cleanup: remove formal
10979         Thunk_Alias which is no longer required, cleanup evaluation of the
10980         the controlling type, and update the documentation.
10981         Replace occurrence of Default_Prim_Op_Count by
10982         Max_Predef_Prims. Addition of compile-time check to verify
10983         that the value of Max_Predef_Prims is correct.
10984         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10985         (Make_DT): Add parameter to indicate when type has been frozen by an
10986         object declaration, for diagnostic purposes.
10987         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10988         construction of statically allocated dispatch tables.
10989         (Make_DT): In case of library-level tagged types export the declaration
10990         of the primary tag. Remove generation of tags (now done by Make_Tags).
10991         Additional modifications to handle non-static generation of dispatch
10992         tables. Take care of building tables for asynchronous interface types
10993         (Make_Tags): New subprogram that generates the entities associated with
10994         the primary and secondary tags of Typ and fills the contents of Access_
10995         Disp_Table. In case of library-level tagged types imports the forward
10996         declaration of the primary tag that will be declared later by Make_DT.
10997         (Expand_Interface_Conversion): In case of access types to interfaces
10998         replace an itype declaration by an explicit type declaration to avoid
10999         problems associated with the scope of such itype in transient blocks.
11000
11001 2007-08-14  Robert Dewar  <dewar@adacore.com>
11002             Ed Schonberg  <schonberg@adacore.com>
11003             Javier Miranda  <miranda@adacore.com>
11004
11005         * exp_util.ads, exp_util.adb:
11006         This patch replaces a number of occurrences of explicit tests for N_Null
11007         with calls to Known_Null. This improves tracking of null values, since
11008         Known_Null also catches null constants, and variables currently known to
11009         be null, so we get better tracking.
11010         (Ensure_Defined): create an itype reference only in the scope of the
11011         itype.
11012         (Side_Effect_Free): A selected component of an access type that
11013         denotes a component with a rep clause must be treated as not
11014         side-effect free, because if it is part of a linked structure its
11015         value may be affected by a renaming.
11016         (Expand_Subtype_From_Expr): For limited objects initialized with build
11017         in place function calls, do nothing; otherwise we prematurely introduce
11018         an N_Reference node in the expression initializing the object, which
11019         breaks the circuitry that detects and adds the additional arguments to
11020         the called function. Bug found working in the new patch for statically
11021         allocated dispatch tables.
11022         (Is_Library_Level_Tagged_Type): New subprogram.
11023         (Remove_Side_Effects): If the expression of an elementary type is an
11024         operator treat as a function call.
11025         (Make_Literal_Range): If the index type of the array is not integer, use
11026         attributes properly to compute the constraint on the resulting aggregate
11027         which is a string.
11028
11029         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11030         class-wide type whose base type is an incomplete private type, leave
11031         class-wide type unfrozen so that freeze nodes can be generated
11032         properly at a later point.
11033         (Freeze_Entity, array case): Handle case of pragma Pack and component
11034         size attributre clause for same array.
11035
11036 2007-08-14  Vincent Celier  <celier@adacore.com>
11037
11038         * prj.ads, prj.adb: Update Project Manager to new attribute names for
11039         gprbuild.
11040         Allow all valid declarations in configuration project files
11041         (Reset): Initialize all tables and hash tables in the project tree data
11042         Major update of the Project Manager and of the project aware tools,
11043         including gprmake, so that the same sources in the GNAT repository
11044         can be used by gprbuild.
11045         (Slash_Id): Change type to be Path_Name_Type
11046         (Slash): Return a Path_Name_Type instead of a File_Name_Type
11047
11048         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11049         gprbuild.
11050         Update Project Manager to new attribute names for ghprbuild
11051         Allow all valid declarations in configuration project files
11052         Major update of the Project Manager and of the project aware tools,
11053         including gprmake, so that the same sources in the GNAT repository
11054         can be used by gprbuild.
11055
11056         * prj-com.ads:
11057         Major update of the Project Manager and of the project aware tools,
11058         including gprmake, so that the same sources in the GNAT repository
11059         can be used by gprbuild.
11060
11061         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11062         insensitive flag for attributes with optional index.
11063         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11064         array attribute, put the index in lower case.
11065         Update Project Manager to new attribute names for ghprbuild
11066         Allow all valid declarations in configuration project files
11067         Major update of the Project Manager and of the project aware tools,
11068         including gprmake, so that the same sources in the GNAT repository
11069         can be used by gprbuild.
11070
11071         * prj-env.ads, prj-env.adb:
11072         Major update of the Project Manager and of the project aware tools,
11073         including gprmake, so that the same sources in the GNAT repository
11074         can be used by gprbuild.
11075         (Get_Reference): Change type of parameter Path to Path_Name_Type
11076
11077         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11078         removing '-' from the path to start with the first character of the
11079         next directory.
11080         Major update of the Project Manager and of the project aware tools,
11081         including gprmake, so that the same sources in the GNAT repository
11082         can be used by gprbuild.
11083         Major update of the Project Manager and of the project aware tools,
11084         including gprmake, so that the same sources in the GNAT repository
11085         can be used by gprbuild.
11086
11087         * prj-nmsc.ads, prj-nmsc.adb:
11088         Update Project Manager to new attribute names for ghprbuild
11089         Allow all valid declarations in configuration project files
11090         (Search_Directories): Detect subunits that are specified with an
11091         attribute Body in package Naming. Do not replace a source/unit in the
11092         same project when the order of the source dirs are known. Detect
11093         duplicate sources/units in the same project when the order of the
11094         source dirs are not known.
11095         (Check_Ada_Name): Allow all identifiers that are not reserved words
11096         in Ada 95.
11097         Major update of the Project Manager and of the project aware tools,
11098         including gprmake, so that the same sources in the GNAT repository
11099         can be used by gprbuild.
11100         (Look_For_Sources): If the list of sources is empty, set the object
11101         directory of non extending project to nil.
11102         Change type of path name variables to be Path_Name_Type
11103         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11104         otherwise creating missing directories will fail.
11105
11106         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11107         prj-part.ads, prj-part.adb:
11108         Major update of the Project Manager and of the project aware tools,
11109         including gprmake, so that the same sources in the GNAT repository
11110         can be used by gprbuild.
11111
11112         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11113         insensitive flag for attributes with optional index.
11114         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11115         array attribute, put the index in lower case.
11116         (Parse_Variable_Reference): Allow the current project name to be used in
11117         the prefix of an attribute reference.
11118
11119         * prj-util.ads, prj-util.adb
11120         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11121         defaulted to False. When True, always check against indexes in lower
11122         case.
11123
11124         * snames.ads, snames.h, snames.adb:
11125         Update Project Manager to new attribute names for gprbuild
11126         Allow all valid declarations in configuration project files
11127
11128 2007-08-14  Robert Dewar  <dewar@adacore.com>
11129             Ed Schonberg  <schonberg@adacore.com>
11130
11131         * opt.ads: Warning for non-local exception propagation now off by
11132         default
11133         New switch -gnatI to disable representation clauses
11134         Implement new pragma Implicit_Packing
11135
11136         * usage.adb:
11137         Warning for non-local exception propagation now off by default
11138         Add warning for unchecked conversion of pointers wi different
11139         conventions.
11140         New switch -gnatI to disable representation clauses
11141
11142         * usage.adb: new switch -gnatyS
11143
11144         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11145         note that aggregates of anonymous array types are not flagged.
11146         -gnatwc now includes membership tests optimized away
11147         -gnatw.x warnings are now off by default
11148         Added conditional compilation Appendix
11149         Add documentation of -gnatI
11150         Add documentation for new -gnatyS style check
11151         Update documentation about SAL and auto-init on Windows.
11152
11153         * gnat_rm.texi:
11154         Add documentation for pragma Check_Name and 'Enabled attribute
11155         Document that Eliminate on dispatching operation is ignored
11156         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11157         Document pragma Main
11158         Document pragma Implicit_Packing
11159
11160         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11161         different conventions
11162         New switch -gnatI to disable representation clauses
11163
11164         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11165         recognized, report the invalid characters including "-gnat" instead of
11166         just the first character in the switch.
11167         New switch -gnatI to disable representation clauses
11168         Set Warn_On_Object_Renames_Function true for -gnatg
11169
11170         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11171         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11172         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11173         to switch -aP (add directory to project search dir).
11174
11175         * par-prag.adb: Implement new pragma Implicit_Packing
11176
11177         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11178         type as having a non-standard representation, to force expansion on
11179         conversion to related types.
11180         (Analyze_Pragma): Warn on misspelled pragma
11181         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11182         Ensure consistent use of # in error messages
11183         Implement pragma Implicit_Packing
11184
11185 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11186             Eric Botcazou  <ebotcazou@adacore.com>
11187
11188         * targtyps.c (get_target_maximum_default_alignment): New function.
11189         Maximum alignment
11190         that the compiler might choose by default for a type or object.
11191         (get_target_default_allocator_alignment): New function. Alignment known
11192         to be honored by the target default allocator.
11193         (get_target_maximum_allowed_alignment): New function. Maximum alignment
11194         we might accept for any type or object on the target.
11195         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11196
11197         * gigi.h (get_target_maximum_default_alignment): Declare new function.
11198         (get_target_default_allocator_alignment): Likewise.
11199         (get_target_maximum_allowed_alignment): Likewise.
11200
11201         PR ada/19037
11202         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11203         result of a function call, first try to use a stabilized reference for
11204         a constant renaming too.
11205         (validate_alignment): Use target_maximum_allowed_alignment instead of
11206         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11207         (gnat_to_gnu_entity): Use common nodes directly.
11208         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11209         alignment and size for the object.
11210         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11211         and N_Procedure_Call_Statement.
11212         (takes_address): Rename to lvalue_required_p, add third parameter
11213         'aliased' and adjust recursive calls.
11214         <N_Indexed_Component>: Update 'aliased' from the array type.
11215         <N_Selected_Component>: New case.
11216         <N_Object_Renaming_Declaration>: New Likewise.
11217         (Identifier_to_gnu): Adjust for above changes.
11218         (maybe_stabilize_reference) <CONST_DECL>: New case.
11219
11220         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11221         between type variants.
11222         (build_simple_component_ref): Likewise.
11223         (build_call_alloc_dealloc): Use target_default_allocator_alignment
11224         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11225         aligning type circuitry for allocations from the default storage pool.
11226         (build_allocator): Likewise.
11227         (build_simple_component_ref): Manually fold the reference for a
11228         constructor if the record type contains a template.
11229
11230         * utils.c (value_zerop): Delete.
11231         (gnat_init_decl_processing): Emit debug info for common types.
11232         (rest_of_record_type_compilation): If a union contains a field
11233         with a non-constant qualifier, treat it as variable-sized.
11234         (finish_record_type): Give the stub TYPE_DECL a name.
11235         (rest_of_record_type_compilation): Likewise.
11236         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
11237         types are equivalent array types.
11238         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11239         even if the type is not passed by reference.
11240         (static_ctors, static_dtors): Delete.
11241         (end_subprog_body): Do not record constructors and destructors.
11242         (build_global_cdtor): Delete.
11243         (gnat_write_global_declarations): Do not call build_global_cdtor.
11244
11245         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11246         -fRTS=rtp is specified.
11247         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11248         specified.
11249
11250         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11251         of the personality function with SJLJ exceptions.
11252
11253         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11254         the name of the personality function with SJLJ exceptions.
11255
11256 2007-08-14  Robert Dewar  <dewar@adacore.com>
11257             Ed Schonberg  <schonberg@adacore.com>
11258
11259         * par.ads, par.adb: Improve handling of extra right parens.
11260         (Par): Remove flag From_Limited_With_Clause.
11261
11262         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11263         Improve handling of extra right parens.
11264
11265 2007-08-14  Robert Dewar  <dewar@adacore.com>
11266
11267         * par-tchk.adb (TF_Semicolon): Improve error recovery
11268
11269 2007-08-14  Robert Dewar  <dewar@adacore.com>
11270             Ed Schonberg  <schonberg@adacore.com>
11271
11272         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11273         enumeration type, mark all literals as referenced.
11274         (Eval_Attribute, case 'Image): If the argument is an enumeration
11275         literal and names are available, constant-fold but mark nevertheless as
11276         non-static.
11277         Clean up function names.
11278         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11279         comment.
11280         (Requires_Simple_Name_Prefix): Removed.
11281
11282 2007-08-14  Robert Dewar  <dewar@adacore.com>
11283             Ed Schonberg  <schonberg@adacore.com>
11284
11285         * sem_ch11.adb: Improved warnings for unused variables
11286
11287         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11288         is a synchronized interface, the derived type is limited.
11289         (Analyze_Object_Declaration): Mark the potential coextensions in the
11290         definition and expression of an object declaration node.
11291         (Build_Derived_Type): For the completion of a private type declaration
11292         with a derived type declaration, chain the parent type's representation
11293         items to the last representation item of the derived type (not the
11294         first one) if they are not present already.
11295         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11296         object declaration of forward references to tags.
11297         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11298         subprogram types can appear as access discriminants of synchronized
11299         types.
11300         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11301         given in prefixed form as a selected component.
11302         (Process_Discriminants): If not all discriminants have defaults, place
11303         error message on a default that is present.
11304         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11305         extend a synchronized tagged type.
11306         Improved warnings for unused variables
11307         (Is_Visible_Component): Fix a visibility hole on a component inherited
11308         by a private extension when parent is itself declared as a private
11309         extension, and the derivation is in a child unit.
11310         (Find_Hidden_Interface): Move spec from the package body.
11311
11312 2007-08-14  Robert Dewar  <dewar@adacore.com>
11313             Ed Schonberg  <schonberg@adacore.com>
11314
11315         * sem_ch5.adb: Improve warnings on redundant assignments
11316
11317         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11318         parameter
11319         (Is_Synchronized_Tagged_Type): New subprogram that returns true
11320         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11321         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11322         is set to False. Improves handling of Known_[Not_]Null.
11323         (Wrong_Type): Special case address arithmetic attempt
11324         (Collect_Abstract_Interfaces): Add new formal to allow collecting
11325         abstract interfaces just using the partial view of private types.
11326         (Has_Abstract_Interfaces): Add new formal to allow checking types
11327         covering interfaces using the partial view of private types.
11328         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11329         component still needs to be defined in this case, but is never
11330         initialized as VMs are using other dispatching mechanisms.
11331         (Abstract_Interface_List): For a protected type, use base type to get
11332         proper declaration.
11333         Improve warnings on redundant assignments
11334         (Is_Variable): Handle properly an implicit dereference of a prefixed
11335         function call.
11336         (Build_Actual_Subtype): If this is an actual subtype for an
11337         unconstrained formal parameter, use the sloc of the body for the new
11338         declaration, to prevent anomalises in the debugger.
11339
11340 2007-08-14  Robert Dewar  <dewar@adacore.com>
11341
11342         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11343         dispatching operation
11344
11345 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11346             Gary Dismukes  <dismukes@adacore.com>
11347
11348         * exp_aggr.ads,
11349         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11350         expanded aggregate code before allocator, and ahead of declaration for
11351         temporary, to prevent access before elaboration when the allocator is
11352         an actual for an access parameter.
11353         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11354         the TSD and the table of interfaces.
11355         (Convert_To_Assignments): Augment the test for delaying aggregate
11356         expansion for limited return statements to include the case of extended
11357         returns, to prevent creation of an unwanted transient scope.
11358         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11359         (Expand_Array_Aggregate): Handle aggregates associated with
11360         statically allocated dispatch tables.
11361         (Expand_Record_Aggregate): Handle aggregates associated with
11362         statically allocated dispatch tables.
11363         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11364         of anonymous access type.
11365
11366 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11367
11368         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11369         is a variable that renames a slice, use the variable itself in the
11370         expannsion when the renamed expression itself may be modified between
11371         the declaration of the renaming and the array assignment.
11372
11373 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11374
11375         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11376         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11377         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11378         New functions; dummy implementations.
11379
11380         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11381         functions, used to implement the multi-tasks mode routines on VxWorks.
11382
11383         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11384         New functions, thin
11385         binding to the VxWorks routines which have changed between VxWorks 5
11386         and 6.
11387         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11388         which are not callable from a RTP.
11389
11390         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11391         implemented for the multi-tasks mode on VxWorks 5 and 6.
11392
11393         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11394
11395         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11396         functions.
11397
11398 2007-08-14  Vincent Celier  <celier@adacore.com>
11399
11400         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11401         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11402         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11403         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11404         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11405         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11406         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11407         procedure.
11408         (Major_Id_Name): New function.
11409         mlib-tgt.ads/mlib.tgt.adb:
11410         (Library_Major_Minor_Id_Supported): New function, default returns True
11411         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11412         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11413         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11414         Implementation of Library_Major_Minor_Id_Supported returns False
11415         clean.adb:
11416         (Clean_Library_Directory): If major/minor ids are supported, clean all
11417         library files.
11418         Major update of the Project Manager and of the project aware tools,
11419         including gprmake, so that the same sources in the GNAT repository
11420         can be used by gprbuild.
11421
11422 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11423
11424         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11425         (GCC_ZCX_Support): Switch to True.
11426
11427         * s-intman-solaris.adb (Notify_Exception): Call
11428         Adjust_Context_For_Raise before raising, as expected for signal
11429         handlers in general.
11430
11431         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11432         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11433         to other implementation bodies.
11434
11435         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11436         be visible by multiple implementation bodies.
11437
11438         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11439         only for conditions coming from hardware.
11440         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11441         adjustments to signal context prior to exception raise from signal
11442         handler.
11443         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11444         mode.
11445         Solaris section: (__gnat_adjust_context_for_raise): New function.
11446         Implementation of the machine context adjustments to perform prior to
11447         raise from a signal handler. Version for both sparc and x86.
11448         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11449         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11450         prior to raising as expected for any handler, before possible nested
11451         faults to make sure all the contexts in a chain have been adjusted by
11452         the time we propagate.
11453
11454 2007-08-14  Pascal Obry  <obry@adacore.com>
11455
11456         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11457         (SYSTEM_INFO): New record.
11458         (SetThreadIdealProcessor): New imported routine needed for supporting
11459         task_info pragma on Windows.
11460
11461         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11462         info can be applied to the current host.
11463         (Create_Task): Set the ideal processor if information is present.
11464
11465         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11466         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11467
11468 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11469
11470         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11471         stack size and initial stack pointer value for a given task.
11472         (Enter_Task): Get the stack attributes of the task we are entering and
11473         let the stack checking engine know about them.
11474
11475         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11476         Let the stack-checking engine know about the initial sp value and stack
11477         size associated with the current task.
11478         (Set_Stack_Info): If a stack base has been notified for the current
11479         task, honor it. Fallback to the previous less accurate method otherwise.
11480
11481         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11482
11483 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11484
11485         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11486         treatment of limited views uniform for all visible declarations in a
11487         limited_withed package.
11488         Set flag indicating that a subprogram body for a child unit has a
11489         generated spec.
11490         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11491         separate declaration, remove the unit name from visibility after
11492         compilation, so that environment is clean for subsequent compilations.
11493         (Install_Limited_Context_Clauses): Do not install a
11494         limited_private_with_clause unless the current unit is a body or a
11495         private child unit.
11496         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11497         in the same fashion.
11498         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11499         it applies to the declaration of the current package body.
11500         (Remove_Private_With_Clauses): If there is a regular with_clause for
11501         the unit, delete Private_With_Clause from context, to prevent improper
11502         hiding when processing subsequent nested packages and instantiations.
11503
11504 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11505
11506         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11507         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11508         representing absolute path names.
11509         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11510
11511         * cstreams.c (__gnat_full_name for VxWorks): Use
11512         __gnat_is_absolute_path to detect whether we need to add the current
11513         directory to normalize the path.
11514
11515 2007-08-14  Javier Miranda  <miranda@adacore.com>
11516
11517         * a-tags.ads,
11518         a-tags.adb (Displace): Associate a message with the raised CE
11519         exception.
11520         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11521         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11522         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11523         spec.
11524         (Default_Prim_Op_Count): Removed.
11525         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11526         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11527         Remove pragma Inline_Always.
11528
11529         * rtsfind.ads (Default_Prim_Op_Count): Removed
11530         (Max_Predef_Prims): New entity
11531         (RE_Expanded_Name): Removed
11532         (RE_HT_Link): Removed
11533         (RE_Iface_Tag): Remmoved
11534         (RE_Ifaces_Table): Removed
11535         (RE_Interfaces_Array): Removed
11536         (RE_Interface_Data_Element): Removed
11537         (RE_Nb_Ifaces): Removed
11538         (RE_RC_Offset): Removed
11539         (RE_Static_Offset_To_Top): Removed
11540
11541         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11542         formal.
11543         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11544         Prim_Op_Count by Max_Predef_Prims.
11545
11546 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11547             Vincent Celier  <celier@adacore.com>
11548
11549         * binde.adb (Elab_All_Links): Remove unnecessary call to
11550         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11551         won't be an associated Afile).
11552         (Elab_All_Links): Fail if a referenced unit cannot be found
11553
11554         * bindgen.adb:
11555         Fix comments in bindgen regarding consistency checks done in Bcheck:
11556         the checks are made across units within a partition, not across several
11557         partitions.
11558         Fix generation of C binder file for VxWorks.
11559
11560         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11561         Generic_May_Lack_ALI, more descriptive of the current use of the
11562         predicate, and update documentation.
11563
11564         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11565         reorganization and documentation update for the case of predefined
11566         library generics (for which we do not reference an Afile).
11567
11568 2007-08-14  Robert Dewar  <dewar@adacore.com>
11569
11570         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11571         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11572         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11573         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11574         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11575         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11576         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11577         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11578         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11579         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11580         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11581         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11582         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11583         g-altcon.adb: Minor reformatting
11584
11585         ada-tree.h: Delete empty line.
11586
11587         ali.ads: Minor reformatting
11588         Clarification of comments.
11589         Minor spelling correction
11590
11591         * exp_dbug.adb: Add Warnings Off to suppress new warning
11592
11593         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11594         formal
11595
11596         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11597         value
11598
11599         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11600
11601         * a-textio.ads: Reorder the standard input/output/error declarations
11602         for consistency.
11603
11604         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11605
11606         * par-ch2.adb: Recognize RM specially in errout
11607         Change 'R'M to RM in all error messages
11608
11609         * scng.adb: Recognize RM specially in errout
11610
11611         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11612         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11613
11614         * s-direio.adb: Add missing routine header box.
11615
11616         * sem_attr.ads: Add ??? comments
11617
11618         * sem_eval.adb: Recognize RM specially in errout
11619         Change 'R'M to RM in all error messages
11620
11621         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11622
11623         * s-tasinf.ads: Fix minor comment typo.
11624
11625         * a-cihama.adb: Minor comment addition
11626
11627         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11628         formal
11629
11630         * s-tasinf-tru64.ads: Fix minor comment typo.
11631
11632         * itypes.ads: Comment update.
11633
11634         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11635         anymore.
11636
11637         * argv.c: Added protection against null gnat_argv and gnat_envp.
11638
11639         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11640         warning message when Tolerate_Consistency_Errors is True.
11641
11642         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11643         Any_Id, as this subprogram is only applicable to *type* entities (it
11644         sets RM_Size). Instead initialize just Esize and Alignment.
11645
11646 2007-08-14  Bob Duff  <duff@adacore.com>
11647
11648         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11649         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11650         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11651         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11652         a-coorse.ads (Next): Applied pragma Inline.
11653         Make all Containers packages Remote_Types (unless they are already
11654         Pure).
11655         (Previous): applied pragma Inline
11656         (Elements_Type): is now a record instead of an array
11657
11658 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11659
11660         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11661         of Set_Item.
11662         (Set_Item): When the new item is an element of the currently allocated
11663         table passed by reference, save a copy on the stack if we're going
11664         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11665         variable to determine whether to call Set_Last.
11666
11667         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11668         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11669         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11670         some occurrences of the pattern
11671            T.Increment_Last;
11672            T.Table (T.Last) := Value;
11673         with a cleaner call to
11674            T.Append (Value);
11675
11676 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11677             Gary Dismukes  <dismukes@adacore.com>
11678             Thomas Quinot  <quinot@adacore.com>
11679
11680         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11681         derived type with interface progenitors use the analyzed formal as the
11682         parent of the actual, to create renamings for all the inherited
11683         operations in Derive_Subprograms.
11684         (Collect_Previous_Instances): new procedure within of
11685         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11686         unit being loaded, to ensure that the generation of global symbols is
11687         consistent in different compilation modes.
11688         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11689         takes progenitor types into account.
11690         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11691         traversing over the primitives of the formal and actual types to locate
11692         any abstract subprograms of the actual type that correspond to a
11693         nonabstract subprogram of the formal type's ancestor type(s), and issue
11694         an error if such is found.
11695         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11696         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11697         Remove bogus guard around calls to Inherit_Context.
11698         (Reset_Entity): If the entity is the selector of a selected component
11699         that denotes a named number, propagate constant-folding to the generic
11700         template only if the named number is global to the generic unit.
11701         (Set_Instance_Env): Only reset the compilation switches when compiling
11702         a predefined or internal unit.
11703
11704 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11705
11706         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11707         parameter to determine whether operation applies to the prefix.
11708         (Complete_Object_Operation): If actual has an access type and
11709         controlling formal is not an in_parameter, reject the actual if it is
11710         an access_to_constant type.
11711         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11712         type, the candidate operations are found in the scope of declaration of
11713         the type, because the type has no primitive subprograms.
11714         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11715         a private extension, only examine visible components before trying to
11716         analyze as a prefixed call.
11717         Change Entity_List to Type_To_Use, for better readability.
11718         (Has_Fixed_Op): Use base type when checking whether the type of an
11719         operator has a user-defined multiplication/division
11720         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11721         user-defined operators are available for fixed-point types.
11722
11723 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11724             Ed Schonberg  <schonberg@adacore.com>
11725
11726         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11727         formal At_Any_Place indicating, when True, that we want to test for
11728         availability of the stream attribute at any place (as opposed to the
11729         current visibility context only).
11730         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11731         purpose of enforcing E.2.2(8) only if it is not available at any place.
11732         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11733         when checking the legality of an extension aggregate in a preelaborable
11734         package. Treat the literal null as a valid default expression in a
11735         component declaration for a type with preelaborable initialization.
11736         A limited interface is a legal progenitor for the designated type of a
11737         remote access to class-wide type.
11738
11739 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11740             Ed Schonberg  <schonberg@adacore.com>
11741
11742         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11743         reference): Use correct entity as denoted entity for the selector of
11744         the rewritten node.
11745         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11746         setting the Referenced_As_LHS flag for entities that are implicitly
11747         dereferenced.
11748         (Find_Type): If the type is an internally generated incomplete type,
11749         mark the full view as referenced, to prevent spurious warnings.
11750         (Find_Selected_Component, Has_Components): Handle properly non-limited
11751         views that are themselves incomplete types.
11752         Handle interfaces visible through limited-with clauses.
11753         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11754         subprogram generic actual for which we have generated a renaming.
11755         Warn when the renaming introduces a homonym of
11756         the renamed entity, and the renamed entity is directly visible.
11757
11758 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11759             Hristian Kirtchev  <kirtchev@adacore.com>
11760
11761         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11762         appear in the subtree to the current allocator if it is not a static
11763         coextension.
11764         (Resolve_Allocator): Perform cleanup if resolution has determined that
11765         the allocator is not a coextension.
11766         (Resolve): Skip an interpretation hidden by an abstract operator only
11767         when the type of the interpretation matches that of the context.
11768         (Resolve): When looping through all possible interpretations of a node,
11769         do not consider those that are hidden by abstract operators.
11770         (Resolve_Actuals): When verifying that an access to class-wide object
11771         is an actual  for a controlling formal, ignore anonymous access to
11772         subprograms whose return type is an access to class_wide type.
11773         (Resolve_Slice): If the prefix of the slice is a selected component
11774         whose type depends on discriminants, build its actual subtype before
11775         applying range checks on the bounds of the slice.
11776         (Valid_Conversion): In an instance or inlined body, compare root types,
11777         to prevent anomalies between private and public views.
11778         (Resolve): Improve error message for ambiguous fixed multiplication
11779         expressions that involve universal_fixed multiplying operations.
11780
11781 2007-08-14  Javier Miranda  <miranda@adacore.com>
11782             Hristian Kirtchev  <kirtchev@adacore.com>
11783
11784         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11785         location to allow the correct generation of errors in case of
11786         restrictions applied to the expanded code.
11787         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11788         function if the condition does not reference them.
11789         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11790         valid value.
11791
11792 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11793             Pablo Oliveira  <oliveira@adacore.com>
11794
11795         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11796         typecode parameters for a union (in a variant record), remove
11797         extraneous layer of Any wrapping for member label.
11798         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11799         elabration statements, register the package with the name server
11800         at the beginning, not at the end, of the elaboration statements so
11801         that they can create remote access to subprogram values that designate
11802         remote subprograms from the package.
11803
11804 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11805
11806         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11807         values to compute the number of seconds since the Unix Epoc in order to
11808         account for Daylight Savings Time. Perform special processing for dates
11809         that are earlier than the Unix Epoc to obtain a negative number.
11810
11811 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11812
11813         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11814         switches.
11815
11816 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11817
11818         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11819         binder-generated file is not in Ada.
11820         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11821         recorded in the ALI file.
11822         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11823
11824 2007-08-14  Vincent Celier  <celier@adacore.com>
11825
11826         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11827         (Output_Source): Do nothing if parameter is No_Sdep_Id
11828
11829         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11830         shared library it imports has a later time stamp.
11831         (Check): Resolve the symbolic links in the path name of the object
11832         directory.
11833         Check that the ALI file is in the correct object directory
11834         Check if a file name does not correspond to the mapping of units
11835         to file names.
11836         (Display_Version): New procedure
11837         (Initialize): Process switches --version and --help
11838         Use type Path_Name_Type for path name
11839
11840 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11841
11842         * impunit.adb: Re-organize System.Random_Numbers and
11843         GNAT.Random_Numbers and add to builds.
11844
11845         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11846
11847         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11848
11849         * a-assert.ads, a-assert.adb: New files.
11850
11851 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11852
11853         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11854         if AAMP_On_Target is True, then the size of the type encompasses two
11855         addresses (a static link and a subprogram address), except in the case
11856         of library-level access types.
11857
11858 2007-08-14  Vincent Celier  <celier@adacore.com>
11859
11860         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11861         writing the line.
11862         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11863         possible trailing spaces.
11864         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11865
11866 2007-08-14  Javier Miranda  <miranda@adacore.com>
11867
11868         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11869         null-excluding access types.
11870
11871 2007-08-14  Javier Miranda  <miranda@adacore.com>
11872
11873         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11874         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11875         of private types add missing check on matching interfaces in the
11876         partial and full declarations.
11877         (Analyze_Protected_Type): Code cleanup.
11878         (Analyze_Task_Type): Code cleanup.
11879
11880 2007-08-14  Javier Miranda  <miranda@adacore.com>
11881
11882         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11883         generated interface thunk.
11884
11885 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11886
11887         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11888         obsolescent warning on application of 'Class to an incomplete type.
11889
11890         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11891         prevent obsolescent warning on application of 'Class to an incomplete
11892         type.
11893
11894 2007-08-14  Pascal Obry  <obry@adacore.com>
11895
11896         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11897         file stream.
11898
11899 2007-08-14  Cyrille Comar  <comar@adacore.com>
11900
11901         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11902         since it is potentially used in cases implying double finalization of
11903         the same object.
11904
11905 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11906
11907         * s-tasini.adb (Get_Stack_Info): Move this function to
11908         System.Soft_Links.Tasking because it is common to the full and the
11909         restricted run times.
11910         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11911         in SSL.Tasking.Init_Tasking_Soft_Links.
11912
11913         * s-solita.adb (Get_Stack_Info): Function moved from
11914         System.Tasking.Initialization because it is common to the full and the
11915         restricted run times.
11916         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11917
11918 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11919
11920         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11921         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11922         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11923         parameter.
11924
11925         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11926         guard to 12K.
11927
11928 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11929
11930         * s-veboop.adb (SU): New named number initialized to
11931         System.Storage_Unit.
11932         (True_Val): The initialization expression is revised to use SU (=
11933         Storage_Unit) rather than assuming 8 for the component size of an
11934         unpacked Boolean array.
11935
11936 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11937
11938         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11939
11940         * tb-ivms.c: New file.
11941
11942         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11943
11944 2007-08-14  Geert Bosch  <bosch@adacore.com>
11945
11946         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11947         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11948         Add required linker pragmas for automatically linking with the gnalasup
11949         linear algebra support library, and the systems math library.
11950         Rename cdot to cdotu and zdot to zdotu.
11951         Update header comment to describe purpose of package.
11952
11953 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11954
11955         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11956         an explicitly specified Associated_Final_Chain, use that list.
11957         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11958         types.
11959         (Expand_N_Package_Declaration): Build dispatch tables of library level
11960         tagged types. Minor code cleanup.
11961
11962 2007-08-14  Vincent Celier  <celier@adacore.com>
11963
11964         * gnatchop.adb (Terminate_Program): Remove exception and use
11965         Types.Terminate_Program instead.
11966
11967         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11968         (Find_Program_Name): Added protection against empty name.
11969         (OS_Exit_Through_Exception): New procedure
11970
11971         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11972         (OS_Exit_Default): New procedure that contains the previous
11973         implementation of procedure OS_Exit.
11974         (Final_Value): Remove obsolete Interix stuff.
11975
11976 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11977
11978         * g-socket.ads: Reorganize example code so that it also works on
11979         Windows XP.
11980
11981 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11982
11983         * g-trasym.ads: AIX now supports symbolic backtraces.
11984
11985 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11986
11987         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11988         units being loaded to detect circularities. A circularity may be
11989         present even if the current chain of pending units to load starts from
11990         a limited_with_clause.
11991
11992         * lib-load.ads: Change profile of Load_Unit to use a with_clause
11993         rather than a boolean flag, in order to detect circularities in
11994         with_clauses.
11995
11996         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11997         than propagating the From_Limited_With flag, in order to handle
11998         properly circularities involving with_clauses.
11999
12000 2007-08-14  Nicolas Setton  <setton@adacore.com>
12001
12002         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12003         warnings.
12004
12005 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
12006
12007         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12008         to build for libgnala.
12009         libgnat: Add rules to build libgnala.a
12010         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12011         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12012         Add s-osinte-vxworks-kernel.adb to the target pairs of the
12013         kernel run-time lib for VxWorks 6, which would provide a different
12014         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12015         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12016         running ZCX by default.
12017         Add g-sttsne-locking to LynxOS version.
12018         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12019         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12020
12021         * system-darwin-x86.ads: New file.
12022
12023         * Make-lang.in: Delete files before copying onto them, so if they are
12024         read-only, the copy won't fail.
12025         Update dependencies
12026
12027 2007-08-14  Pascal Obry  <obry@adacore.com>
12028
12029         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12030         naming scheme.
12031
12032 2007-08-14  Vincent Celier  <celier@adacore.com>
12033
12034         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12035         (Gcc): Initialize Gcc_Name at the first call
12036
12037 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
12038
12039         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12040         with_clauses of the enclosing unit when analyzing the package
12041         specification of a nested instance.
12042
12043 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
12044
12045         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12046         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12047         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12048         layout of N_Allocator.
12049
12050 2007-08-14  Thomas Quinot  <quinot@adacore.com>
12051
12052         * rtsfind.adb (Check_RPC): Add PCS version check.
12053
12054         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12055         (Gnat_Free_Software): New function.
12056
12057         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12058         the PCS_Version value from s-parint, used to check that it is consistent
12059         with what exp_dist expects.
12060
12061         * s-parint.ads (PCS_Version): New entity for checking consistency
12062         between exp_dist and PCS.
12063
12064         * gen-soccon.c: (SO_REUSEPORT): New constant.
12065
12066 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
12067
12068         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12069         variable Sub_Second to Duration in order to accomodate a larger range
12070         of arithmetic operations.
12071
12072 2007-08-14  Bob Duff  <duff@adacore.com>
12073
12074         * g-sttsne-locking.ads: Move comments from spec to body.
12075         * g-sttsne-locking.adb: Move comments from spec to body.
12076         * g-sttsne-vxworks.ads: Removed.
12077         * g-sttsne-vxworks.adb: Removed.
12078
12079 2007-08-11  Ian Lance Taylor  <iant@google.com>
12080
12081         * misc.c (gnat_get_alias_set): Change return type to
12082         alias_set_type.
12083
12084 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12085
12086         * decl.c, utils2.c: Fix whitespace in last change.
12087
12088 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12089
12090         * decl.c (compare_field_bitpos): Constify.
12091         * utils2.c (compare_elmt_bitpos): Likewise.
12092
12093 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
12094
12095         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12096         anonymous access type.
12097         (pthread_sigmask): Now take an access sigset_t.
12098
12099 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
12100
12101         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12102
12103 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
12104
12105         PR tree-optimization/25737
12106         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12107
12108 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12109
12110         * trans.c (Attribute_to_gnu): When subtracting an
12111         offset from a pointer, use POINTER_PLUS_EXPR with
12112         NEGATE_EXPR instead of MINUS_EXPR.
12113         (gnat_to_gnu): Likewise.
12114         * utils.c (convert): When converting between
12115         thin pointers, use POINTER_PLUS_EXPR and sizetype
12116         for the offset.
12117         * utils2.c (known_alignment): POINTER_PLUS_EXPR
12118         have the same semantics as PLUS_EXPR for alignment.
12119         (build_binary_op): Add support for the semantics of
12120         POINTER_PLUS_EXPR's operands.
12121         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12122
12123 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
12124
12125         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12126         of get_signed_or_unsigned_type.
12127         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12128
12129 2007-06-11  Bob Duff  <duff@adacore.com>
12130             Thomas Quinot  <quinot@adacore.com>
12131
12132         * g-stsifd-sockets.adb (Create): Work around strange behavior of
12133         'bind' on windows that causes 'connect' to fail intermittently, by
12134         retrying the 'bind'.
12135         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12136
12137 2007-06-10  Duncan Sands  <baldrick@free.fr>
12138
12139         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12140         than to void, for the fields when making a new fat pointer type.
12141         (gnat_substitute_in_type): Now substitute_in_type.
12142         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
12143         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12144         * utils.c (update_pointer_to): Update fat pointers by updating the
12145         dummy node pointers used for the fields.
12146
12147 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12148             Bob Duff  <duff@adacore.com>
12149
12150         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12151         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12152         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
12153         constant Thread_Blocking_IO, always True by default, set False
12154         on a per-runtime basis.
12155         (Need_Netdb_Buffer): New constant.
12156
12157         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12158         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12159         files.
12160
12161         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12162         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12163         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12164         child package Task_Safe_NetDB
12165         (Host_Error_Messages): Add stub body.
12166         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12167
12168         * g-soccon-mingw.ads: Add Windows-specific constants.
12169         (Need_Netdb_Buffer): New constant.
12170         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12171         wrapper and import inet_addr(3) from the standard sockets library
12172         directly instead.
12173         (In_Addr): Add alignment clause.
12174         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12175
12176 2007-06-06  Robert Dewar  <dewar@adacore.com>
12177
12178         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12179         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12180         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12181         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12182         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12183         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12184         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12185         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12186         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12187         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12188         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12189         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12190         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12191         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12192         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12193         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12194         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12195         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12196         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12197         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12198         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12199         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12200         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12201         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12202         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12203         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12204         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12205         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12206         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12207         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12208         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12209         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12210         Unchecked_* by Ada.Unchecked_*
12211
12212 2007-06-06  Robert Dewar  <dewar@adacore.com>
12213
12214         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12215         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12216         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12217         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12218         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12219         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12220
12221         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12222         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12223         s-tasloc.adb, s-tasloc.ads: New files.
12224
12225 2007-06-06  Bob Duff  <duff@adacore.com>
12226
12227         * g-expect-vms.adb:
12228         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12229         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12230         (Send_Signal, Close): Raise Invalid_Process if the process id is
12231         invalid.
12232         (Pattern_Matcher_Access): Is now a general access type to be able to
12233         use aliased string.
12234
12235 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12236             Arnaud Charlet  <charlet@adacore.com>
12237
12238         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12239         (SIGEMT is now used instead of SIGTERM on AIX).
12240
12241         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12242         (Time_Slice_Supported): Set to True.
12243         Use SIGEMT instead of SIGTERM as SIGADAABORT.
12244
12245 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12246
12247         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12248         (Time, Time)): Use To_Relative_Time rather than manual calculation to
12249         express the bounds of Duration as Time. Raise Time_Error when the
12250         result is greater or equal to the higher bound of Duration (on the
12251         margin case).
12252         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12253         Ada_High_And_Leaps.
12254         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12255         Ada_High_And_Leaps.
12256         ("-" (Time, Time)): Reorder code.
12257         (All_Leap_Seconds): Removed.
12258         (Arithmetic_Operations.Add): Remove sign related kludge.
12259         (Arithmetic_Operations.Difference): Control the leaps seconds processing
12260         with flag Leap_Support.
12261         (Arithmetic_Operations.Subtract): Remove sign related kludge.
12262         (Check_Within_Time_Bounds): New procedure.
12263         (Clock): Control the leap seconds processing with flag Leap_Support.
12264         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12265         (Formatting_Operations.Split): Control the leap seconds processing with
12266         flag Leap_Support.
12267         (Formatting_Operations.Time_Of): Control the leaps seconds processing
12268         with flag Leap_Support. Adjust the year, month and day (if applicable)
12269         when the value of day seconds designates a new day.
12270         (Split): Use parameter associations for better readability. Integrate
12271         flag Is_Ada_05.
12272         (Time_Of): Use parameter associations for better readability. Integrate
12273         flag Is_Ada_05.
12274
12275         * a-calfor.adb (Split): Use parameter associations for better
12276         readability. Integrate flag Is_Ada_05.
12277         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12278         better readability. Integrate flag Is_Ada_05.
12279
12280 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12281
12282         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12283         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12284         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12285         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12286         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12287         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12288         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12289         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12290         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12291         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12292         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12293         time when entering this routine to detect a backward clock setting
12294         (manual setting or DST adjustment), to avoid waiting for a longer delay
12295         than needed.
12296         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12297         Remove handling of deferred priority change, and replace by setting the
12298         task priority directly, as required by AI-188.
12299         Update comments.
12300         (Max_Task_Image_Length): New constant.
12301         Replace Warnings (Off) by Unreferenced pragma, cleaner.
12302         (Dynamic_Priority_Support): Removed, no longer needed.
12303         (Poll_Base_Priority_Change): Ditto.
12304         (Set_Ceiling): Add this procedure to change the ceiling priority
12305         associated to a lock. This is a dummy implementation because dynamic
12306         priority ceilings are not supported by the underlying system.
12307
12308         * a-dynpri.adb (Set_Priority): Take into account case where Target is
12309         accepting a RV with its priority boosted.
12310         Remove handling of deferred priority change, and replace by setting the
12311         task priority directly, as required by AI-188.
12312
12313         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12314         Succeeded = True.
12315         Remove handling of deferred priority change, and replace by setting the
12316         task priority directly, as required by AI-188.
12317         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12318         of Self_Id earlier.
12319
12320         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12321         (Poll_Base_Priority_Change): Removed.
12322         Code clean up: use SSL.Current_Target_Exception.
12323
12324         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12325         to run as this is a potentially dispatching point.
12326         (Call_Synchronous): Use Local_Defer_Abort.
12327         (Callable): Relax assertion.
12328         (Selective_Wait): Relax assertion in case abort is not allowed.
12329         Remove handling of deferred priority change, and replace by setting the
12330         task priority directly, as required by AI-188.
12331
12332         * s-tasuti.adb (Make_Passive): Adjust assertions.
12333         Remove handling of deferred priority change, and replace by setting the
12334         task priority directly, as required by AI-188.
12335
12336 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12337
12338         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12339         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12340         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12341         system-vxworks-mips.ads, system-vxworks-alpha.ads,
12342         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12343         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12344         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12345         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12346         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12347         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12348         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12349         This patch changes the largest non-binary modulus from 2**31-1 to
12350         2**32-1.
12351         (Compiler_System_Version): Removed, no longer used.
12352         Clean up system files by removing flags only used on a single target.
12353         Also remove obsolete flags, only used during bootstrap from system.ads
12354         (Address): Add a pragma Preelaborable_Initialization.
12355
12356         * system-aix.ads:  Ditto.
12357         (GCC_ZCX_Support): Set to true.
12358         Update priority range on AIX and map Ada priorities to target
12359         priorities appropriately for different scheduling policies.
12360
12361         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12362
12363 2007-06-06  Vincent Celier  <celier@adacore.com>
12364
12365         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12366         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12367
12368         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12369         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12370         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12371         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12372         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12373         MLib.Tgt, containing the default versions of the exported subprograms.
12374         For each platform, create a specific version of the body of new child
12375         package MLib.Tgt.Specific that contains only the body of subprograms
12376         that are different from the default.
12377         (Archive_Builder_Append_Options): New function.
12378
12379 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12380
12381         * s-osinte-aix.adb: Map Ada priorities to target priorities
12382         appropriately for different scheduling policies.
12383
12384 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12385
12386         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12387         its C counterpart.
12388         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12389         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12390
12391 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12392
12393         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12394         Noop on VMS, added for interface commonality.
12395
12396 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12397             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12398             Olivier Hainque  <hainque@adacore.com>
12399
12400         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12401         renamed expression of a full renaming at toplevel.
12402         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12403         the values the constant is initialized to if it is an N_Allocator.
12404         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12405         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12406         (make_aligning_type): Accept an extra ROOM argument for storage to be
12407         made available before the aligned field, and an extra BASE_ALIGN
12408         argument for callers to pass the alignment guaranteed to be honored for
12409         the whole aligning object. Avoid call to finish_record_type, which only
12410         interferes with the sizes we want to set.
12411         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12412         make_aligning_type for super-aligned objects on stack.
12413         (components_to_record): Pass the adjusted size of the type when creating
12414         fields in the qualified union for the variant part.
12415         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12416         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12417         packed array type.
12418         (maybe_pad_type): Set TYPE_USER_ALIGN.
12419         (make_aligning_type): Likewise.
12420         ALIGN argument is unsigned int.
12421         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12422         (gnat_to_gnu_param): Likewise, for parameters.
12423         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12424         if it is constant and stems from a function call.
12425         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12426         of the record is specified.  Adjust accordingly.
12427         (adjust_packed): New static function.
12428         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12429         (components_to_record): Likewise.
12430         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12431         side-effects if the object is deemed constant.
12432         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12433         type instead of merely finalizing it.  Tidy.
12434         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12435         <E_Access_Type>: Likewise.
12436         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12437         (defer_debug_level): Delete.
12438         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12439         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12440         type.
12441         <E_Record_Type>: Do not explicitly defer finalizing the type.
12442         Adjust for write_record_type_debug_info renaming.
12443         <E_Subprogram_Type>: Likewise.
12444         Finalize deferred types right after deferred incomplete types are
12445         expanded.
12446         (rest_of_type_decl_compilation): New global function.
12447         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12448         (components_to_record): Propagate the packedness to the fields of the
12449         qualified union type if there is a variant part.
12450         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12451         instead of inline code to adjust the XUT field offsets.
12452         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12453         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12454         and write the debug info if the type derives from a discriminated one.
12455         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12456         <E_Array_Subtype>: Likewise.
12457         <E_String_Literal_Subtype>: Likewise.
12458         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12459         an alignment clause.
12460         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12461         before giving warning.
12462         (prepend_one_attribute_to): New function, helper to prepend an attribute
12463         to an attribute list.
12464         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12465         (prepend_attributes): Likewise.
12466         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12467         <E_Array_Type>: Declare the padding type for the element type, if any.
12468         <E_Array_Subtype>: Likewise.
12469         (defer_limited_with): New variable.
12470         (Gigi_Equivalent_Type): New function.
12471         (gnat_to_gnu_entity): Use it at start and use result throughout.
12472         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12473         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12474         indirection, precompute if unconstrained array to simplify logic, and
12475         use defer_limited_with to defer elaboration of some types from limited
12476         with.
12477         (finalize_from_with_types): New function.
12478
12479 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12480             Eric Botcazou  <ebotcazou@adacore.com>
12481             Tristan Gingold  <gingold@adacore.com>
12482             Olivier Hainque  <hainque@adacore.com>
12483
12484         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12485         adding guard that the entity is an E_Constant before testing presence
12486         of Full_view (and remove unnecessary test that entity is not a type).
12487         For a CONST_DECL used by reference, manually retrieve
12488         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12489         (struct language_function): Move from utils.c to here.
12490         (struct parm_attr): New structure.
12491         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12492         (f_parm_attr_cache): New macro.
12493         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12494         expressions for the 'First, 'Last and 'Length attributes of the
12495         unconstrained array IN parameters.
12496         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12497         Allocate the information structure for the function earlier, as well
12498         as the language-specific part.
12499         If the parameter attributes cache has been populated, evaluate the
12500         cached expressions on entry.
12501         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12502         N_Procedure_Call_Statement and N_Indexed_Component.
12503         (Pragma_to_gnu): Translate inspection_point to an asm statement
12504         containaing a comment and a reference to the object (either its address
12505         for BLKmode or its value).
12506         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12507         to go to DECL_INITIAL. Together with the size constraint relaxation
12508         in create_var_decl, enlarges the set of situations in which an
12509         identifier may be used as an initializer without implying elaboration
12510         code.
12511         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12512         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12513         node.
12514         (maybe_stabilize_reference): Remove lvalues_only parameter.
12515         (gnat_stabilize_reference): Adjust for above change.
12516         (gnat_to_gnu): Do not set location information on the result
12517         if it is a reference.
12518         (add_cleanup): Add gnat_node parameter and set the location of the
12519         cleanup to it.
12520         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12521         (Exception_Handler_to_gnu_zcx): Likewise.
12522         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12523         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12524         the former right after the latter.
12525         (start_stmt_group): Make global.
12526         (end_stmt_group): Likewise.
12527         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12528         vars.
12529         (gnu_program_error_label_stack): Likewise.
12530         (gigi): Initialize them.
12531         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12532         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12533         New cases.
12534         (push_exception_label_stack): New function.
12535         (takes_address): New function.
12536
12537         * utils.c (struct language_function): Move to trans.c from here.
12538         (unchecked_convert): Do not wrap up integer constants in
12539         VIEW_CONVERT_EXPRs.
12540         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12541         the latter for aggregate types, unexpected by later passes, and relax an
12542         arbitrary size constraint on the former.
12543         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12544         to compare the sizes.
12545         (convert_vms_descriptor): When converting to a fat pointer type, be
12546         prepared for a S descriptor at runtime in spite of a SB specification.
12547         (shift_unc_components_for_thin_pointers): New function.
12548         (write_record_type_debug_info): For variable-sized fields, cap the
12549         alignment of the pointer to the computed alignment.
12550         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12551         If REP_LEVEL is 2, do not compute the sizes.
12552         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12553         (build_unc_object_type): Likewise.
12554         (declare_debug_type): New function.
12555
12556         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12557
12558         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12559         no statement is expandable anymore.
12560         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12561         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12562         when the user requested it explicitely.
12563         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12564         to 0 for Ada.
12565         (get_alias_set): Return alias set 0 for a type if
12566         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12567
12568         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12569         (DECL_FUNCTION_STUB): New accessor macro.
12570         (SET_DECL_FUNCTION_STUB): New setter macro.
12571
12572         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12573
12574         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12575         declarations.
12576
12577 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12578
12579         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12580         Rename to Abort_Task_Interrupt to be able to keep the same interface
12581         as the rest of the targets.
12582
12583         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12584         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12585
12586         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12587         New files.
12588
12589 2007-06-06  Robert Dewar  <dewar@adacore.com>
12590
12591         * a-chahan.ads: Remove obsolescent pragmas
12592
12593         * a-chlat1.ads: Minor reformatting
12594
12595 2007-06-06  Robert Dewar  <dewar@adacore.com>
12596
12597         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12598         for Errout
12599
12600         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12601         implementation
12602
12603         * errout.ads (Finalize): Changed interface
12604         (Output_Messages): New procedure
12605         (Compilation_Errors): New Interface
12606
12607         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12608         Finalize/Output_Messages interface for Errout
12609         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12610         Errout.
12611
12612 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12613             Olivier Hainque  <hainque@adacore.com>
12614             Robert Dewar  <dewar@adacore.com>
12615
12616         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12617         check.
12618         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12619         propagation starts, to let debuggers know about the event in a reliable
12620         fashion.
12621         (Local_Raise): Moved to System.Exceptions
12622         More convenient to have this as a separate unit
12623
12624         * s-except.adb, s-except.ads: New files.
12625
12626         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12627         Debug_Unhandled_Exception in System.Exceptions where it belongs
12628         together with a couple of other debug helpers.
12629         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12630         the former Unhandled_Exception.
12631
12632         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12633         (Warn_No_Exception_Propagation): New procedure
12634         (Warn_If_No_Propagation): Rewritten for new warning generation
12635         (Expand_Exception_Handlers): New warning generation
12636         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12637         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12638         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12639         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12640         even if restriction is set (makes life easier in Check_Returns)
12641         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12642         checking exception identities.
12643         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12644         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12645         block for handler (used by Check_Returns)
12646         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12647         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12648         remove all exception handlers when optimizing local raise statements.
12649         (Find_Local_Handler): Use Get_Renamed_Entity
12650         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12651         marked analyzed after expanding exception handlers, do not generate
12652         redundant cleanup actions, because they have been constructed already.
12653
12654 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12655
12656         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12657         presence of this categorization pragma is mandated by the language.
12658         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12659         for this type.
12660
12661 2007-06-06  Vincent Celier  <celier@adacore.com>
12662             Robert Dewar  <dewar@adacore.com>
12663
12664         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12665         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12666         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12667         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12668         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12669         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12670         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12671         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12672         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12673         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12674         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12675         ali.ads, ali.adb:
12676         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12677         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12678         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12679         Use variables of types File_Name_Type and Unit_Name_Type in error
12680         messages.
12681         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12682         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12683         here.
12684         Define flags Flag217-Flag230 with associated subprograms
12685         (Flag_Word5): New record type.
12686         (Flag_Word5_Ptr): New access type.
12687         (To_Flag_Word5): New unchecked conversion.
12688         (To_Flag_Word5_Ptr): Likewise.
12689         (Flag216): New function.
12690         (Set_Flag216): New procedure.
12691
12692 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12693
12694         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12695         instead of 'Size.
12696
12697         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12698
12699 2007-06-06  Javier Miranda  <miranda@adacore.com>
12700
12701         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12702         the package.
12703         (Object_Specific_Data_Array): This is now internal to the package.
12704         (Object_Specific_Data): This is now internal to the package.
12705         (Select_Specific_Data_Element): This is now internal to the package.
12706         (Select_Specific_Data_Array): This is now internal to the package.
12707         (Select_Specific_Data): This is now internal to the package.
12708         (Offset_To_Top_Function_Ptr): This is now public.
12709         (To_Offset_To_Top_Function_Ptr): Removed.
12710         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12711          local to subprogram Offset_To_Top.
12712         (Predefined_DT): Removed.
12713         (Typeinfo_Ptr): Removed.
12714         (OSD): This function is now internal to this package.
12715         (SSD): This function is now internal to this package.
12716         (DT): New function that displaces the pointer to the table of primitives
12717          to get access to the enclosing wrapper record.
12718         (IW_Membership): Code cleanup.
12719         (Offset_To_Top): Code cleanup.
12720         (Predefined_DT): Removed.
12721         (Register_Interface_Tag): Removed.
12722         (Set_Interface_Table): Removed.
12723         (Set_Offset_Index): Removed.
12724         (Set_Offset_To_Top): Code cleanup.
12725         (Set_OSD): Removed.
12726         (Set_Signature): Removed.
12727         (Set_SSD): Removed.
12728         (Set_Tagged_Kind): Removed.
12729         (Typeinfo_Ptr): Removed.
12730         (TSD): Removed.
12731         (Displace): Add missing check on null actual.
12732
12733         * exp_disp.ads, exp_disp.adb
12734         (Select_Expansion_Utilities): Removed.
12735         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12736         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12737         the interface requires a new parameter.
12738         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12739         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12740         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12741         Done to remove package Select_Expansion_Utilities.
12742         (Make_DT): New implementation for statically allocated dispatch tables.
12743         (Make_Secondary_DT): Moved to the scope of Make_DT.
12744         (Register_Primitive): Code cleanup plus incoporate the use of the new
12745         function DT_Address_Attribute.
12746         (Expand_Interface_Thunk): The profile of this subprogram has been
12747         changed to return the Thunk_Id and the corresponding code.
12748         (Fill_DT_Entry): Removed. Its functionality is now provided by
12749         subprogram Register_Primitive.
12750         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12751         subprogram Register_Primitive.
12752         (Register_Primitive): New subprogram that incorporates the previous
12753         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12754         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12755         was only required to call Make_DT_Access_Action, which is now removed.
12756         (Ada_Actions): Removed
12757         (Action_Is_Proc): Removed
12758         (Action_Nb_Arg): Removed
12759         Replace all the calls to Make_DT_Access_Action by direct calls to
12760         Make_Procedure_Call_Statement or Make_Function_Call.
12761         (Set_DTC_Entity_Value): New subprogram.
12762         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12763         (Expand_Interface_Thunk): Add missing support for primitives that are
12764         functions with a controlling result (case in which there is no need
12765         to generate the thunk).
12766
12767         * exp_atag.ads, exp_atag.adb
12768         (Build_DT): New subprogram that displaces the pointer to reference the
12769         base of the wrapper record.
12770         (Build_Typeinfo_Offset): Removed.
12771         (RTE_Tag_Node): Removed.
12772         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12773         (Build_Get_RC_Offset): Removed.
12774         (Build_Inherit_Predefined_Prims): Removed.
12775         (Build_Inherit_TSD: Removed.
12776         (Build_New_TSD): Removed.
12777         (Build_Set_External_Tag): Removed.
12778         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12779         (Build_Set_Prim_Op_Address): Add documentation.
12780         (Build_Set_TSD): Removed.
12781
12782         * rtsfind.ads, rtsfind.adb
12783         (Load_Fail): If load fails and we are not in configurable run-time
12784         mode, then raise Unrecoverable_Error.
12785         (Text_IO_Kludge): Generate an error message if a run-time library is
12786         not available in a given run-time (ie. zfp run-time).
12787         (RTE_Record_Component): Add code to check that the component we search
12788         for is not found in two records in the given run-time package.
12789         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12790         (RE_DT_Predef_Prims_Offset): New entity
12791         (RE_Static_Offset_To_Top): New entity
12792         (RE_HT_Link): New entity.
12793         (System_Address_Image): Addition of this run-time package.
12794         (RE_Address_Image): New entity.
12795         (RE_Abstract_Interface): Removed.
12796         (RE_Default_Prim_Op_Count): Removed.
12797         (RE_DT_Entry_Size): Removed.
12798         (RE_DT_Min_Prologue_Size): Removed.
12799         (RE_DT_Prologue_Size): Removed.
12800         (RE_Ifaces_Table_Ptr): Removed.
12801         (RE_Interface_Data_Ptr): Removed.
12802         (RE_Type_Specific_Data): Removed.
12803         (RE_Primary_DT): Removed.
12804         (RE_Register_Interface_Tag): Removed.
12805         (RE_Set_Offset_Index): Removed.
12806         (RE_Set_OSD): Removed.
12807         (RE_Set_SSD): Removed.
12808         (RE_Set_Signature): Removed.
12809         (RE_Set_Tagged_Kind): Removed.
12810         (RE_Address_Array): New entity.
12811         (RE_DT): New entity.
12812         (RE_Iface_Tag): New entity.
12813         (RE_Interfaces_Table): New entity.
12814         (RE_No_Dispatch_Table): New entity.
12815         (RE_NDT_Prims_Ptr): New entity.
12816         (RE_NDT_TSD): New entity.
12817         (RE_Num_Prims): New entity.
12818         (RE_Offset_To_Top_Function_Ptr): New entity.
12819         (RE_OSD_Table): New entity.
12820         (RE_OSD_Num_Prims): New entity.
12821         (RE_Predef_Prims): New entity
12822         (RE_Predef_Prims_Table_Ptr): New entity.
12823         (RE_Primary_DT): New entity.
12824         (RE_Signature): New entity.
12825         (RE_SSD): New entity.
12826         (RE_TSD): New entity.
12827         (RE_Type_Specific_Data): New entity.
12828         (RE_Tag_Kind): New entity.
12829
12830 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12831
12832         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12833         C imported variable.
12834         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12835         on entry.
12836
12837 2007-06-06  Robert Dewar  <dewar@adacore.com>
12838
12839         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12840         character
12841
12842 2007-06-06  Vincent Celier  <celier@adacore.com>
12843
12844         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12845         is room for at least one digit and the minus sign.
12846         (Put.Put_Character): Never put a character outside of the range of
12847         string To.
12848
12849 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12850             Eric Botcazou  <ebotcazou@adacore.com>
12851
12852         * utils2.c (build_allocator): Provide the extra arguments to
12853         make_aligning_type for super-aligned objects allocated from the default
12854         pool. Leave enough room for a pointer before the aligning field, and
12855         store the system's allocator return value there.
12856         (build_call_alloc_dealloc): When releasing a super-aligned object,
12857         retrieve the system's allocator return value from where build_allocator
12858         has stored it, just ahead of the adjusted address we are passed.
12859         (build_call_raise): Handle properly the generation of line numbers when
12860         the node is marked No_Location.
12861         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12862         by using DECL_UID on ties.
12863         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12864         main variant.
12865         (build_call_raise): Handle converting exception into goto; support new
12866         argument KIND.
12867         (build_component_ref): Add new arg to build_call_raise.
12868
12869 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12870
12871         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12872         "." in the case of nnn.xxx when nnn terminates with an underscore.
12873         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12874
12875 2007-06-06  Robert Dewar  <dewar@adacore.com>
12876
12877         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12878
12879 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12880             Vincent Celier  <celier@adacore.com>
12881             Robert Dewar  <dewar@adacore.com>
12882
12883         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12884         needed.
12885         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12886         ((destructor)) for adafinal, even when switch -a is used.
12887         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12888         used.
12889         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12890         Output_Linker_Option_List is set. Suppress this formatting when
12891         Zero_Formatting is set.
12892         Add case for CLI_Target.
12893         (System_Restrictions_Used): New flag, used to avoid generating with of
12894         System_Restrictions and initialization of the data unless there is
12895         some use of System.Restrictions in the partition.
12896         (Check_System_Restrictions_Used): New procedure
12897
12898         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12899         since we only with this unit in the binder file if it is used elsewhere
12900         in the partition.
12901
12902 2007-06-06  Vincent Celier  <celier@adacore.com>
12903
12904         * bindusg.adb: Add line for @<response file>
12905         Add lines for new switches -R and -Z
12906
12907         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12908         hierarchy in the list of files of the closure when -R is used
12909         (Gnatbind): Accept arguments starting with '@' to indicate response
12910         files and take the arguments from the response files.
12911         If List_Closure is set, display the referenced files
12912
12913 2007-06-06  Javier Miranda  <miranda@adacore.com>
12914             Robert Dewar  <dewar@adacore.com>
12915             Ed Schonberg  <schonberg@adacore.com>
12916
12917         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12918         which the address-clause is applied to in-mode actuals (allowed by
12919         13.1(22)).
12920         (Apply_Discriminant_Check): Do not generate a check if the type is
12921         constrained by a current instance.
12922         (Activate_Division_Check): New procedure
12923         (Activate_Overflow_Check): New procedure
12924         (Activate_Range_Check): New procedure
12925         Call these new Activate procedures instead of setting flags directly
12926         (Apply_Array_Size_Check): Removed, no longer needed.
12927         Code clean up: remove obsolete code related to GCC 2.
12928         (Get_E_Length): Protect against bomb in case scope is standard
12929         (Selected_Range_Checks): If the node to be checked is a conversion to
12930         an unconstrained array type, and the expression is a slice, use the
12931         bounds of the slice to construct the required constraint checks.
12932         Improve NOT NULL error messages
12933         (Apply_Constraint_Check): If the context is a null-excluding access
12934         type, diagnose properly the literal null.
12935
12936 2007-06-06  Pascal Obry  <obry@adacore.com>
12937
12938         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12939         and the corresponding .deps file.
12940         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12941         src directory. Minor code-clean-up. Use untouched casing for files
12942         read into the library src dir.
12943         (Clean_Library_Directory): Idem.
12944         (Parse_Cmd_Line): Accept new switch -aP
12945
12946 2007-06-06  Javier Miranda  <miranda@adacore.com>
12947             Ed Schonberg  <schonberg@adacore.com>
12948             Robert Dewar  <dewar@adacore.com>
12949             Eric Botcazou  <ebotcazou@adacore.com>
12950             Arnaud Charlet  <charlet@adacore.com>
12951
12952         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12953         applicable to types that have the With_Type flag set. Returns the
12954         non-limited view of the type, if available, otherwise the type itself.
12955         For class-wide types, there is no direct link in the tree, so we have
12956         to retrieve the class-wide type of the non-limited view of the Etype.
12957         New attributes Static_Initialization and Static_Elaboration_Desired.
12958         Remove the pragma Thread_Body, and the associated flag
12959         Is_Thread_Body in entities, and all related code.
12960         (Suppress_Value_Tracking_On_Call): New flag
12961         E_Exception has Esize and Alignment fields
12962         (Universal_Aliasing): New function.
12963         (Set_Universal_Aliasing): New procedure.
12964         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12965         (Check_Nested_Access): New procedure.
12966         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12967         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12968         (Related_Interface): New attribute. Present in dispatch table pointer
12969         components of records. Set to point to the entity of the corresponding
12970         interface type.
12971         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12972         (Original_Access_Type): Remove, not needed.
12973         (Root_Type): Handle properly subtypes of class-wide-types.
12974         Update comments.
12975
12976         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12977         class-wide types visible through limited-with clauses.
12978         (Try_Primitive_Operation): When examining all primitive operations of a
12979         tagged type, do not consider subprograms labeled as hidden unless they
12980         belong to a private generic type with a tagged parent.
12981         (Try_Object_Operation): Extensive rewriting, to handle properly various
12982         overloading cases, when several ancestors may have class-wide operations
12983         that are possible candidates, and when the overloaded functions return
12984         array types and have defaulted parameters so that the call may be
12985         interpreted as an indexing.
12986         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12987         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12988         successive actuals before analyzing the call itself.
12989         (Try_Primitive_Operation): A primitive operation is compatible with the
12990         prefix if the prefix has a synchronized type and the type of the formal
12991         is its corresponding record, as can be the case when the primitive
12992         operation is declared outside of the body of the type.
12993         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12994         perform homonym traversal, looking for class-wide operation matches
12995         (formerly done in statements of Try_Class_Wide_Operation). Matches on
12996         access parameters are now restricted to anonymous access types.
12997         (Mark_Allocator): An allocator with a discriminant association parent is
12998         a coextension.
12999         (Try_One_Prefix_Interpretation): If the type of the object is
13000         incomplete, as can be happen when it is a limited view obtained through
13001         a limited_with_clause, the selected component is not part of a prefixed
13002         call.
13003         (Complete_Object_Operation): Diagnose properly an object that is not
13004         aliased when the corresponding controlling formal is an access
13005         parameter.
13006         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13007         ambiguous calls in prefixed notation, where two primitives differ only
13008         in that the controlling argument of one is an access parameter.
13009
13010         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13011         whether a function that returns an unconstrained type can be inlined.
13012         (Process_Formals): Diagnose properly the illegal use of an incomplete
13013         type in the profile of an access_to_subprogram declaration.
13014         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13015         operations are attached to the corresponding record.
13016         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13017         When processing a primitive of a concurrent type which implements an
13018         interface change the type of all controlling formals to that of the
13019         corresponding record type.
13020         (Check_Synchronized_Overriding): Relax the conditional logic when trying
13021         to determine the tagged type to which a primitive belongs.
13022         (Check_Conventions): Capture condition to ignore a primitive operation
13023         (which is shared between the loop in Check_Conventions and the one in
13024         Check_Convention) in a new local function Skip_Check.
13025         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13026         confusion with Check_Conventions' own Prim_Op local variable.
13027         (Create_Extra_Formals): Test for a tagged result type rather than a
13028         controlling result when determining whether to add a BIP_Alloc_Form
13029         formal and a BIP_Final_List formal to the function.
13030         (Check_Conformance); For parameters that are anonymous access types,
13031         subtype conformance requires that the not null and the constant
13032         indicators must match
13033         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13034         to retrieve the appropriate type when processing a concurrent type
13035         declared within a generic. Minor comment reformatting. Change invocation
13036         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13037         mitive.
13038         (Analyze_Subprogram_Body): If the return type of a function is an
13039         anonymous access to the limited view of a class-wide type, and the
13040         non-limited view of the type is available, update the type of the
13041         function so that code can be generated.
13042         (Process_Formals): In case of access-subtype itype whose designated
13043         type is also an itype (situation that happens now with access to
13044         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13045         attribute to avoid backend problems.
13046         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13047         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13048         anonymous types' designated types are same before testing
13049         Subtypes_Statically_Match.
13050         (Create_Extra_Formals): Test for a named access parameter that is a
13051         controlling formal as an additional condition for adding an
13052         accessibility level formal. This can occur in the subp type created for
13053         dispatching calls in Expand_Dispatching_Call, and allows calling
13054         Create_Extra_Formals from that procedure rather than special-casing the
13055         extra formals there.
13056         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13057         when the function has a controlling result.
13058         (Check_Returns): Add much more knowledge of the optimization of local
13059         raise statements to gotos, to retain proper warnings in this case.
13060         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13061         nodes when looking for last statement.
13062
13063         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13064         class-wide types visible through limited with clauses.
13065         (Add_One_Interp): If the operands are anonymous access types, the
13066         predefined operator on universal_access is immediately visibles
13067         (Find_Unique_Type): Handle anonymous access to subprogram types just as
13068         other anonymous access types.
13069         (Disambiguate): Take into account CIL convention.
13070         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13071
13072 2007-06-06  Robert Dewar  <dewar@adacore.com>
13073
13074         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13075         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13076         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13077         Fix lower bound of tables.
13078         Add rep clauses.
13079
13080         * nlists.adb: Ditto.
13081         (Prev_Node, Next_Node): Change index type to Int so that it properly
13082         covers the range First_Node_Id - 1 up.
13083
13084 2007-06-06  Javier Miranda  <miranda@adacore.com>
13085             Ed Schonberg  <schonberg@adacore.com>
13086             Bob Duff  <duff@adacore.com>
13087             Hristian Kirtchev  <kirtchev@adacore.com>
13088
13089         * exp_aggr.ads, exp_aggr.adb:
13090         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13091         in extension aggregates.
13092         (Flatten): Other conditions being met, an aggregate is static if the
13093         low bound given by component associations is different from the low
13094         bound of the base index type.
13095         (Packed_Array_Aggregate_Handled): If the component type is itself a
13096         packed array or record, the front-end must expand into assignments.
13097         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13098         Init_Pr, instead of Ancestor_Is_Expression.
13099         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13100         coextension chain root, either generate a list controller or use the
13101         already existing one.
13102         (Static_Array_Aggregate): New procedure to construct a positional
13103         aggregate that can be handled by the backend, when all bounds and
13104         components are compile-time known constants.
13105         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13106         types covering interface types into assignments.
13107         (Replace_Type): move to Build_Record_Aggr_Code.
13108         (Expand_Record_Aggr_Code): if the target of the aggregate is an
13109         interface type, convert to the definite type of the aggregate itself,
13110         so that needed components are visible.
13111         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13112         components and the context is an extended return statement do not
13113         create a transient block for it, to prevent premature finalization
13114         before the return is executed.
13115         (Gen_Assign): Do not generate a call to deep adjust routine if the
13116         component type is itself an array of controlled (sub)-components
13117         initialized with an inner aggregate.
13118         (Component_Check): New name for Static_Check. This name is now more
13119         appropriate, and documentation is added which was missing.
13120         (Component_Check): Add test for bit aligned component value
13121         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13122         Tagged_Comps, name is more appropriate given added function below.
13123         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13124
13125 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13126             Javier Miranda  <miranda@adacore.com>
13127             Robert Dewar  <dewar@adacore.com>
13128
13129         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13130         Terminated: Add unchecked type conversion from System.Address to
13131         System.Tasking.Task_Id when calling the predefined primitive
13132         _disp_get_task_id.
13133         Disable new Ada 05 accessibility check for JVM.NET targets, which
13134         cannot be implemented in a practical way.
13135         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13136         the sources always references the tag of the actual object. Therefore,
13137         if 'Tag is applied in the sources to class-wide interface objects we
13138         generate code that displaces "this" to reference the base of the object.
13139         (Expand_N_Attribute_Reference, case Size): Return specified size if
13140         known to front end.
13141         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13142         has code that displaces the pointer of the object to manage interface
13143         types. However this code must not be executed when the prefix is a
13144         subprogram. This bug caused the wrong expansion of the internally
13145         generated assignment that fills the dispatch table when the primitive
13146         is a function returning a class-wide interface type.
13147         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13148         Set_Attribute_Name for Name_Unaligned_Valid.
13149
13150 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13151             Gary Dismukes  <dismukes@adacore.com>
13152
13153         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13154         If the initialization is the equivalent aggregate of the initialization
13155         procedure of the type, do not remove it.
13156         (Expand_N_Attribute_Definition_Clause): Exclude access variables
13157         initialized to null from having their expression reset to empty and
13158         note this exception in the comment.
13159
13160 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13161             Robert Dewar  <dewar@adacore.com>
13162             Ed Schonberg  <schonberg@adacore.com>
13163             Gary Dismukes  <dismukes@adacore.com>
13164
13165         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13166         Add "with" and "use" clauses for Sem_Attr.
13167         (Expand_Current_Value): Do not replace occurences of attribute
13168         references where the prefix must be a simple name.
13169
13170         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13171         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13172         Attribute_Requires_Simple_Name_Prefix.
13173         (Name_Modifies_Prefix): Body of new function.
13174         (Requires_Simple_Name_Prefix): Body of new function.
13175         (Resolve_Attribute, case Access): Improve error message for case of
13176         mismatched conventions.
13177         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13178         incomplete type.
13179         (Analyze_Attribute, case 'Access): If the type of the prefix is a
13180         constrained subtype for a nominal unconstrained type, use its base type
13181         to check for conformance with the context.
13182         (Resolve_Attribute): Remove test of the access type being associated
13183         with a return statement from condition for performing accessibility
13184         checks on access attributes, since this case is now captured by
13185         Is_Local_Anonymous_Access.
13186         (Analyze_Access_Attribute): Set Address_Taken on entity
13187         (Analyze_Attribute, case Address): Set Address_Taken on entity
13188         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13189         validating an access attribute whose prefix is a current instance.
13190         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13191         applied to dispatching operations, if freezing is required then we set
13192         the attribute Has_Delayed_Freeze in the prefix's entity.
13193         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13194         current scope if access of local subprogram taken
13195         (Analyze_Access_Attribute): Check legality of self-reference even if the
13196         expression comes from source, as when a single component association in
13197         an aggregate has a box association.
13198         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13199         the prefix if it is a protected operation and the attribute is
13200         Unrestricted_Access.
13201         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13202         reference to the base type of the context, to force a constraint check
13203         when the context is an access subtype with an explicit constraint.
13204         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13205         node is rewritten as an interface conversion. leave unanalyzed after
13206         resolution, to ensure that type checking against the context will take
13207         place.
13208
13209 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13210             Javier Miranda  <miranda@adacore.com>
13211             Robert Dewar  <dewar@adacore.com>
13212
13213         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13214         wrapper when the full view of the controlling type of an inherited
13215         function that dispatches on result implements interfaces.
13216         (Expand_N_Object_Declaration): In cases where the type of the
13217         declaration is anonymous access, create finalization list for it.
13218         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13219         if the object has no explicit initialization, to match description of
13220         functionality of pragam Persistent_BSS.
13221         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13222         new function to build static aggregates, to replace initialization call
13223         when static initialization is desired.
13224         (Freeze_Type): Generate a list controller for an access type whenever
13225         its designated type has controlled anonymous access discriminants.
13226         (Build_Equivalent_Aggregate): New procedure to compute a static
13227         aggregate to be used as default initialization for composite types,
13228         instead of a generating a call to the initialization procedure for the
13229         type.
13230         (Build_Initialization_Call): When available, replace a call to the
13231         initialization procedure with a copy of the equivalent static aggregate
13232         for the type.
13233         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
13234         declarations for objects of a class-wide interface type, rather than
13235         just identifiers, to prevent visibility problems.
13236         (Expand_N_Object_Declaration): When expanding the declaration for an
13237         object of a class-wide interface type, preserve the homonym chain of
13238         the original entity before exchanging it with that of the generated
13239         renaming declaration.
13240         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13241         active, because there is no way to handle the exception.
13242         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13243         to do a minimum decoration of the Access_Disp_Table list.
13244         (Expand_Record_Controller): Avoid the addition of the controller between
13245         the component containing the tag of a secondary dispatch table and its
13246         adjacent component that stores the offset to the base of the object.
13247         This latter component is only generated when the parent type has
13248         discriminants ---documented in Add_Interface_Tag_Components).
13249         (Apply_Array_Size_Check): Removed, no longer needed.
13250         (Expand_N_Full_Type_Declaration): If the type has anonymous access
13251         components, create a Master_Entity for it only if it contains tasks.
13252         (Build_Init_Procedure): Suppress the tag assignment compiling under
13253         no run-time mode.
13254         (Freeze_Record_Type): Remove code associated with creation of dispatch
13255         table.
13256         (Init_Secondary_Tags): Update type of actuals when generating calls to
13257         Ada.Tags.Set_Offset_To_Top
13258         (Stream_Operation_OK): Disable use of streams compiling under no
13259         run-time mode
13260         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13261         if Has_Init_Expression set.
13262         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13263         Register_Primitive, which provides the same functionality.
13264         (Requires_Init_Proc): Return false in case of interface types.
13265         (Add_Secondary_Tables): Use the new attribute Related_Interface to
13266         cleanup the code.
13267         (Predefined_Primitive_Freeze): Do not assume that an internal entity
13268         is always associated with a predefined primitive because the internal
13269         entities associated with interface types are not predefined primitives.
13270         Therefore, the call to Is_Internal is replaced by a call to the
13271         function Is_Predefined_Dispatching_Operation.
13272         (Make_Eq_If): When generating the list of comparisons for the
13273         components of a given variant, omit the controller component that is
13274         present if the variant has controlled components.
13275
13276 2007-06-06  Javier Miranda  <miranda@adacore.com>
13277             Hristian Kirtchev  <kirtchev@adacore.com>
13278             Bob Duff  <duff@adacore.com>
13279
13280         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13281         handle the creation of finalization lists and calls for nested
13282         coextensions when the root of the chains is part of a return statement.
13283         (Inside_A_Return_Statement): New function inside Complete_Coextension_
13284         Finalization.
13285         (Expand_Record_Equality): Skip components that are interface types.
13286         (Displace_Allocator_Pointer): Add missing support for interface subtypes
13287         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13288         with Rewrite_Coextension. Change the condition for detecting coextension
13289         root nodes.
13290         (Is_Local_Access_Discriminant): Removed.
13291         (Rewrite_Coextension): New routine which rewrites a static coextension
13292         as a temporary and uses its unrestricted access in the construction of
13293         the outer object.
13294         (Complete_Coextension_Finalization): New routine. Generate finalization
13295         attachment calls to all delayed coextensions.
13296         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13297         the allocator is not a coextension itself and has delayed coextensions.
13298         If the current allocator is controlled, but also a coextension, delay
13299         the generation of the finalization attachment call.
13300         Rename local variable "Node" to "Nod" in order to avoid confusion with
13301         "Elists.Node".
13302         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13303         limited types that are not inherently limited. Such an allocator is
13304         illegal, but is generated by the expander for a return statement, to
13305         copy the result onto the secondary stack. This is the only case where a
13306         limited object can be copied. Generate code to displace the pointer
13307         to the object if the qualified expression is a class-wide interface
13308         object. Such displacement was missing and hence the copy of the object
13309         was wrong.
13310         (Apply_Accessibility_Check): Handle allocated objects initialized in
13311         place.
13312         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13313         and Expand_Allocator_Expression. Allocating class-wide interface objects
13314         this routine displaces the pointer to the allocated object to reference
13315         the component referencing the corresponding secondary dispatch table.
13316         Expand_Allocator_Expression): Add missing support to allocate class-wide
13317         interface objects initialized with a qualified expression.
13318         (Get_Allocator_Final_List): Test for an anonymous access type that is a
13319         function result type, and use the finalization list associated with the
13320         function scope in that case (such an anonymous type should not be
13321         treated like an access parameter's type).
13322
13323 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13324             Gary Dismukes  <dismukes@adacore.com>
13325             Javier Miranda  <miranda@adacore.com>
13326
13327         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13328         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13329         required exception handler.
13330         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13331         properly the case of a function whose return type is a limited
13332         class-wide interface type. Modify the code of the accessibility
13333         check to handle class-wide interface objects. In this case we need to
13334         displace "this" to reference the primary dispatch table to get access
13335         to the TSD of the object (to evaluate its accessibility level).
13336         (Expand_N_Extended_Return_Statement): Test for a tagged result type
13337         rather than a controlling result as one of the conditions for
13338         generating tests of the implicit BIP_Alloc_Form formal. The
13339         initialization assignment is also handled according to whether the
13340         result is tagged instead of controlling.
13341         In the case where the init assignment is inserted in the "then" part of
13342         the allocation conditional, rewrite the target to be a dereference of
13343         the implicit BIP_Object_Access formal.
13344         If the returned value is unconstrained and created on the secondary
13345         stack, mark the enclosing block and function so that the secondary
13346         stack is not reclaimed on return.
13347         Treat returns from functions with controlling results similarly to
13348         returns from functions with unconstrained result subtypes.
13349         If the object returned is unconstrained, and an allocator must be
13350         created for it, analyze the allocator once the block for the extended
13351         return is installed, to ensure that finalizable components
13352         of the expression use the proper finalization list. Guard the call to
13353         Move_Final_List with a check that there is something to finalize.
13354         (Make_Tag_Ctrl_Assignment): Use "old" handling
13355         of controlled type assignment for virtual machines, since new code uses
13356         unsupported features (such as direct access to bytes in memory).
13357
13358 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
13359             Ed Schonberg  <schonberg@adacore.com>
13360
13361         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13362         accessibility actual, check for the case of an aliased object that has
13363         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13364         we fall into processing for the attribute rather than the name of the
13365         object.
13366         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13367         formal has its address taken in the body, create a temporary to capture
13368         value.  If the return type is a limited interface, do not treat the
13369         return value as Controlled.
13370         (Is_In_Place_Function):  If the return type is a limited interface,
13371         treat as returning in place. The actual returned object may not always
13372         be limited, but the caller has to assume that it is returned in place.
13373         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13374         context of an allocator, use the correct finalization chain (that is,
13375         the chain belonging to the access type, rather than the chain belonging
13376         to the current scope).
13377         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13378         result type rather than a controlling result as a precondition for
13379         adding an allocation form actual to a build-in-place call.
13380         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13381         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13382         primitive in the dispatch tables. This work is now done by Make_DT when
13383         the type is frozen.
13384         (Register_Predefined_DT_Entry): Removed.
13385         (Add_Return): If end label is not present, use sloc of last statement
13386         for generated return statement in procedure, for better gdb behavior
13387         on expanded code.
13388         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13389         object address nodes to ensure proper processing by routines like
13390         Insert_After*.
13391         (Expand_Call): Fix generation of validity check for parameter
13392         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13393         the allocation form parameter if the result subtype is constrained,
13394         except when the function has a controlling result.
13395         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13396         rather than Is_Controlled and Has_Controlled_Component, since we want to
13397         include class-wide result types in this treatment. Also test for a
13398         controlling result, since that also requires passing a finalization
13399         list.
13400         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13401         even when the result subtype is constrained, to handle calls involving
13402         controlling results.
13403         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13404         is now called even when the result subtype is constrained, to handle
13405         calls involving controlling results.
13406         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13407         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13408         now performs the test).
13409         (Make_Build_In_Place_Call_In_Object_Declaration):
13410         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13411         constrained, to handle calls involving controlling results.
13412         (Add_Return): Accomodate rewritten pattern from local raise to goto
13413         transformation, so that we still recognize an transfer statement
13414         and do the right thing here in that case.
13415         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13416         and end of subprogram code.
13417         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13418         support for primitives that are functions (without formals) with a
13419         controlling result.
13420         (Inherited_From_Formal): If the actual subtype has not generic parent
13421         type, it is not an actual for a formal derived type, and there is no
13422         operation to inherit from the formal.
13423
13424 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13425             Thomas Quinot  <quinot@adacore.com>
13426
13427         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13428         inserted cleanup code appropriately for GDB use.
13429         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13430         exception handler for Deep_Adjust or Deep_Finalize.
13431         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13432         Raise_From_Controlled_Operation is available, use a call to that
13433         subprogram instead of a plain "raise Program_Error" node to raise
13434         Program_Error if an exception is propagated from an Adjust or Finalize
13435         operation.
13436         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13437         appears in the optional statement list of a triggering alternative, the
13438         scope actions can be inserted directly there, and not in the list that
13439         includes the asynchronous select itself.
13440
13441 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13442             Robert Dewar  <dewar@adacore.com>
13443             Hristian Kirtchev  <kirtchev@adacore.com>
13444
13445         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13446         generated exception handler appropriately when debugging generated code.
13447         Deal properly with No_Exception_Propagation restriction mode.
13448         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13449         System.Address to System.Tasking.Task_Id when processing the result of
13450         the predefined primitive _disp_get_task_id.
13451         (Expand_N_Asynchronous_Select): Clarify comment.
13452         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13453         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13454         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13455         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13456         privals and for generated call to Complete_Entry_Body, for better gdb
13457         behavior.
13458         (Copy_Result_Type): Utility to construct a parameter and result profile
13459         for protected functions whose return type is an anonymous access to
13460         subprogram.
13461         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13462         call the above.
13463         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13464         point when the local-raise-to-goto transformation has taken place.
13465
13466 2007-06-06  Javier Miranda  <miranda@adacore.com>
13467             Nicolas Setton  <setton@adacore.com>
13468
13469         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13470         functionality when the backend is generating code.
13471         Otherwise any serious error
13472         reported by the backend calling the frontend routine Error_Msg
13473         changes the Compilation_Mode to Check_Semantics, disables the
13474         functionality of this routine and causes the generation of
13475         spureous additional errors.
13476
13477         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13478         debugging information now generated by the compiler for fat-pointer
13479         types.
13480         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13481         DWARF2/3.
13482         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13483
13484 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13485
13486         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13487         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13488         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13489         For a remote call to a function with a classwide return type, apply an
13490         E.4(18) check to the returned value.
13491         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13492         stream attributes of the designated type of an RACW, as they are not
13493         dispatching primitive operations.
13494
13495 2007-06-06  Geert Bosch  <bosch@adacore.com>
13496
13497         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13498         negative literal
13499         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13500         positive
13501         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13502         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13503         positive
13504         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13505
13506 2007-06-06  Javier Miranda  <miranda@adacore.com>
13507
13508         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13509         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13510
13511 2007-06-06  Javier Miranda  <miranda@adacore.com>
13512
13513         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13514         deallocation of class-wide interface objects.
13515         (Expand_Dispatching_Constructor_Call): Take into account that if the
13516         result of the dispatching constructor is an interface type, the
13517         function returns a class-wide interface type; otherwise the returned
13518         object would be actual. The frontend previously accepted returning
13519         interface types because Expand_Interface_Actuals silently performed
13520         the management of the returned type "as if" it were a class-wide
13521         interface type.
13522         (Expand_Dispatching_Constructor_Call): Replace call to
13523         Make_DT_Access_Action by direct call to Make_Function_Call.
13524
13525 2007-06-06  Robert Dewar  <dewar@adacore.com>
13526             Ed Schonberg  <schonberg@adacore.com>
13527
13528         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13529         compute masking constant, since we now set Esize properly to the
13530         underlying size.
13531         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13532         to match the alignment.
13533         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13534         packed arrays of 8 bits or less.
13535
13536         * freeze.adb (Freeze_Entity): When freezing the formals of a
13537         subprogram, freeze the designated type of a parameter of an access type
13538         only if it is an access parameter.
13539         Increase size of C convention enumeration object
13540         (Freeze_Entity, array type case): Make sure Esize value is properly
13541         adjusted for the alignment if it is known.
13542         (Freeze_Entity, array type case): When checking bit packed arrays for
13543         the size being incorrect, check RM_Size, not Esize.
13544         (Freeze_Record_Type): Check for bad discriminated record convention
13545         (In_Exp_Body): Return true if the body is generated for a subprogram
13546         renaming, either an attribute renaming or a renaming as body.
13547         (Check_Itype): If the designated type of an anonymous access component
13548         is a non-protected subprogram type, indicate that it is frozen, to
13549         prevent out-of-scope freeze node at some subsequent call.
13550         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13551         only if the subprogram is neither imported nor exported, as well as the
13552         NCA descriptor class if the subprogram is exported.
13553
13554 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13555             Arnaud Charlet  <charlet@adacore.com>
13556             Robert Dewar  <dewar@adacore.com>
13557             Gary Dismukes  <dismukes@adacore.com>
13558
13559         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13560         default initialization on an imported object, when there is no
13561         initialization call generated for it.
13562         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13563         restriction
13564
13565         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13566         Static_Elaboration_Desired.
13567         Remove pragma Thread_Body.
13568         Implement a new pragma No_Body
13569         Removes the Explicit_Overriding pragma
13570         Remove Optional_Overriding pragma
13571         (Prag): Deal with Universal_Aliasing.
13572         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13573         Pragma_CIL_Constructor): New names.
13574
13575         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13576         uses the equivalent aggregate of a type must be treated as an implicit
13577         initialization.
13578         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13579         has none of the other categories.
13580         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13581         to apply Import to an object renaming declaration.
13582
13583         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13584         from a C++ class should be declared as limited and that it will be
13585         considererd limited.
13586         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13587         should be declared as limited and that it will be considererd limited.
13588         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13589         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13590         (Analyze_Pragma): Deal with Universal_Aliasing.
13591         (Sig_Flags): Likewise.
13592         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13593         (Overflow_Checks_Unsuppressed): New flag.
13594         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13595         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13596         case of JVM or .NET targets, and compiling user code.
13597         Add debugging convenience routine rv
13598
13599 2007-06-06  Robert Dewar  <dewar@adacore.com>
13600
13601         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13602         are interface type.
13603         (Build_Elementary_Input_Call): For floating-point use right type in the
13604         absence of strange size or stream size clauses.
13605         (Build_Elementary_Write_Call): Same fix
13606         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13607         set to value that does not match base type size.
13608
13609 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13610
13611         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13612         object of a limited type can be initialized with a call to a function
13613         that returns in place. If the limited type has unknown discriminants,
13614         and the underlying type is a constrained composite type, build an actual
13615         subtype from the function call, as is done for private types.
13616         (Side_Effect_Free): An expression that is the renaming of an object or
13617         whose prefix is the renaming of a object, is not side-effect free
13618         because it may be assigned through the renaming and its value must be
13619         captured in a temporary.
13620         (Has_Controlled_Coextensions): New routine.
13621         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13622         as is done for other limited types.
13623         (Non_Limited_Designated_Type): new predicate.
13624         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13625         objects.
13626         Remove all handling of with_type clauses.
13627
13628         * par-ch10.adb: Remove all handling of with_type clauses.
13629
13630         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13631         checksum if the main source could not be parsed.
13632         (Loat_Unit): When processing a child unit, determine properly whether
13633         the parent unit is a renaming when the parent is itself a child unit.
13634         Remove handling of with_type clauses.
13635
13636         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13637         (Set_Is_Static_Coextension): New procedure.
13638         (Has_Local_Raise): New function
13639         (Set_Has_Local_Raise): New procedure
13640         (Renaming_Exception): New field
13641         (Has_Init_Expression): New flag
13642         (Delay_Finalize_Attach): Remove because flag is obsolete.
13643         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13644         Remove all handling of with_type clauses.
13645         (Exception_Junk): Can now be set in N_Block_Statement
13646
13647 2007-06-06  Vincent Celier  <celier@adacore.com>
13648             Robert Dewar  <dewar@adacore.com>
13649
13650         * frontend.adb (Frontend): Return immediately if the main source could
13651         not be parsed, because of preprocessing errors.
13652
13653         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13654         (Gnat1drv): Exit with errors if the main source could not be parsed,
13655         because of preprocessing errors.
13656         (Check_Rep_Info): New procedure
13657
13658 2007-06-06  Robert Dewar  <dewar@adacore.com>
13659
13660         * g-hesorg.ads, g-heasor.ads,
13661         g-busorg.ads, g-bubsor.ads: Update documentation
13662         GNAT.Heap/Bubble_Sort_G is now pure
13663
13664 2007-06-06  Robert Dewar  <dewar@adacore.com>
13665
13666         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13667
13668 2007-06-06  Robert Dewar  <dewar@adacore.com>
13669             Ed Schonberg  <schonberg@adacore.com>
13670
13671         * g-comlin.ads, g-comlin.adb:
13672         Add new warning for renaming of function return objects
13673
13674         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13675         (Tree_Read): Use size of object instead of type'object_size, since the
13676         latter is incorrect for packed array types.
13677         (Tree_Write): Same fix
13678
13679         * opt.ads: Add new warning for renaming of function return objects
13680         (Generating_Code): New boolean variable used to indicate that the
13681         frontend as finished its work and has called the backend to process
13682         the tree and generate the object file.
13683         (GCC_Version): Is now private
13684         (Static_Dispatch_Tables): New constant declaration.
13685         (Overflow_Checks_Unsuppressed): New flag.
13686         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13687         (List_Closure): New flag for gnatbind (-R)
13688         Zero_Formatting: New flag for gnatbind (-Z)
13689         (Special_Exception_Package_Used): New flag.
13690         (Warn_On_Unrepped_Components): New flag.
13691
13692         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13693         unit is a compilation unit, rather than relying on its scope, so that
13694         Standard can be renamed.
13695         (Analyze_Object_Renaming): Add new warning for renaming of function
13696         return objects.
13697         Also reject attempt to rename function return object in Ada 83 mode.
13698         (Attribute_Renaming): In case of tagged types, add the body of the
13699         generated function to the freezing actions of the type.
13700         (Find_Type): A protected type is visible right after the reserved word
13701         "is" is encountered in its type declaration. Set the entity and type
13702         rather than emitting an error message.
13703         (New_Scope): Properly propagate Discard_Names to inner scopes
13704         (Check_Nested_Access): New procedure.
13705         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13706         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13707
13708         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13709         Add new warning for renaming of function return objects
13710         (Check_References): Suppress warnings for objects whose type or
13711         base type has Warnings suppressed.
13712         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13713         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13714
13715 2007-06-06  Vincent Celier  <celier@adacore.com>
13716             Emmanuel Briot  <briot@adacore.com>
13717             Olivier Hainque  <hainque@adacore.com>
13718
13719         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13720         absolute value of Header.Block_Size when displaying the freed physical
13721         memory in traces.
13722         (Allocate): Compute Storage_Address using Integer_Address, not
13723         Storage_Offset, because the range of Storage_Offset may not be large
13724         enough.
13725         (Configure): New parameter Low_Level_Traces
13726         (Allocate, Deallocation, Free_Physically): Added low-level traces
13727         (Configure): new parameter Errors_To_Stdout.
13728         (Output_File): new subprogram
13729         (Deallocate, Dereference): Send error messages to the proper stream
13730         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13731         documented. Previous code would send it to the current output file
13732         defined in GNAT.IO, which might not be stdout
13733         (Is_Valid): Adjust comment to mention that a positive reply means that
13734         Header_Of may be used to retrieve the allocation header associated with
13735         the subprogram Storage address argument. Return False early if this
13736         address argument is misaligned.
13737
13738 2007-06-06  Vincent Celier  <celier@adacore.com>
13739
13740         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13741         switch -P
13742         (ASIS_Main): New global variable
13743         (Get_Closure): New procedure
13744         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13745         check, metric or pretty. Call Get_Closure in this case.
13746         (Check_Files): For GNAT LIST, check all sources of all projects when
13747         All_Projects is True.
13748         (GNATCmd): Accept -U for GNAT LIST
13749
13750 2007-06-06  Vincent Celier  <celier@adacore.com>
13751
13752         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13753         has been specified
13754         Correct error message when invocation of the linker fails
13755         Add explicit size clause for the C imported variables
13756         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13757         we expect char size.
13758         Read target parameters earlier, since this is needed to set
13759         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13760         targets.
13761
13762 2007-06-06  Vincent Celier  <celier@adacore.com>
13763
13764         * gnatls.adb:
13765         Add 3 spaces before the default project directory when displaying
13766         the project search path.
13767         Add new command line switch '-l' to display license information.
13768
13769 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13770
13771         * gmem.c: Add support for timestamps on memory operations.
13772
13773         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13774         operations (not used currently, just foundation for future
13775         enhancements). Add possibility to perform full dump of gmem.out file.
13776         (Print_Back_Traces): Declare accesses to root arrays constants since
13777         they aren't modified.
13778         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13779
13780 2007-06-06  Vincent Celier  <celier@adacore.com>
13781
13782         * gnatsym.adb: Update Copyright notice
13783         (Parse_Cmd_Line): Accept new switch -D
13784         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13785          file.
13786
13787         * prj.ads (Policy): New policy Direct
13788         (Yes_No_Unknown): New enumeration type
13789         (Project_Data): New component Libgnarl_Needed
13790
13791         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13792         use the untouched pathname casing.
13793         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13794         proper casing on non case-sensitive platforms like Windows.
13795         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13796         on all platforms, as it is not possible to know which one is allowed
13797         before processing the project files.
13798         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13799         specified when symbol policy is Direct. Check that when there is a
13800         symbol file defined (either by default or with attribute
13801         Library_Symbol_File) it is not the same as the reference symbol file.
13802         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13803         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13804         extending projects.
13805         (Record_Ada_Source): Record a source that has been locally removed in an
13806         imported project.
13807
13808         * symbols.ads (Policy): New policy Direct
13809
13810         * symbols-vms.adb (Initialize): Take new policy Direct in case
13811         statement
13812
13813 2007-06-06  Vincent Celier  <celier@adacore.com>
13814
13815         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13816         Correct obvious bug (return Dir; instead of return Directory;).
13817         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13818
13819 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13820
13821         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13822         they have UNIX line endings (LF only) even on Windows, and thus pass
13823         all GNAT style checks.
13824
13825 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13826
13827         * g-regpat.adb (Quote): Fix improper quoting of '.'
13828
13829 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13830
13831         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13832         default, set False on a per-runtime basis.
13833         (Need_Netdb_Buffer): New constant.
13834
13835         * g-socket.ads, g-socket.adb: Import new package
13836         GNAT.Sockets.Thin.Task_Safe_NetDB.
13837         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13838         binding to obtain proper message.
13839         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13840         Replace various occurrences of Arry (Arry'First)'Address with the
13841         equivalent Arry'Address (GNAT always follows implementation advice from
13842         13.3(14)).
13843         (Get_Host_By_Address, Get_Host_By_Name,
13844         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13845         instead, rely on platform-specific task safe netdb operations provided
13846         by g-socthi.
13847
13848         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13849         parameter Process_Blocking_IO.
13850         (Host_Error_Messages): Add stub body.
13851         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13852         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13853         Safe_Getservbyport): Move functions into new child package
13854         Task_Safe_NetDB.
13855         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13856         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13857         (In_Addr): Add alignment clause.
13858
13859 2007-06-06  Robert Dewar  <dewar@adacore.com>
13860
13861         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13862         Add note about symbolic traceback
13863
13864 2007-06-06  Pascal Obry  <obry@adacore.com>
13865
13866         * hostparm.ads (Normalized_CWD): Use the host directory separator
13867         instead of the hardcoded forward slash which is not the proper
13868         character on Windows for example.
13869         (Java_VM): Removed.
13870
13871 2007-06-06  Vincent Celier  <celier@adacore.com>
13872             Arnaud Charlet  <charlet@adacore.com>
13873
13874         * a-clrefi.adb, a-clrefi.ads: New files
13875
13876         * impunit.adb: Add s-os_lib in the list of user visible units.
13877         (Non_Imp_File_Names_95): Add a-clrefi to this list
13878         Remove obsolete run-time entries.
13879         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13880          "a-exetim" -- Ada.Execution_Time
13881          "a-extiti" -- Ada.Execution_Time.Timers
13882
13883         * mlib-prj.ads, mlib-prj.adb
13884         (Build_Library): Use untouched object dir and library dir. At the
13885         same time makes sure that the checks are done using the canonical
13886         form. Removes hard-coded directory separator and use the proper host
13887         one instead.
13888         (Process_Project): Do not look in object directory to check if libgnarl
13889         is needed for a library, if there is no object directory.
13890         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13891         linking.
13892         (Build_Library): When invoking gnatbind, use a response file if the
13893         total size of the arguments is too large.
13894
13895         * Makefile.rtl: (g-sttsne): New object file.
13896         Add entry for a-clrefi, s-utf_32, System.Exceptions
13897
13898         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13899         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13900         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13901         Change g-string to s-string, g-os_lib to s-os_lib
13902         Change all g-utf_32 references to s-utf_32
13903
13904 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13905             Olivier Hainque  <hainque@adacore.com>
13906
13907         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13908         LIB$STOP is called to raise an exception and the IP of the exception
13909         is the instruction right after the call.
13910         (__gnat_adjust_context_for_raise, AIX): Implement.
13911         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13912          adjust_context_for_raise before Raise_From_Signal_Hanler.
13913         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13914         siginfo is passed to the handler, necessary to let the zcx propagation
13915         engine unwind past it.
13916
13917 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13918
13919         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13920         on the ZCX support, using different sets of crtstuff objects than with
13921         GCC 3.4.
13922
13923 2007-06-06  Robert Dewar  <dewar@adacore.com>
13924
13925         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13926         spec from body
13927         (Layout_Type): Fix recomputation of size from alignment.
13928
13929 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13930             Javier Miranda  <miranda@adacore.com>
13931
13932         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13933         association in an instance.
13934         (Copy_Generic_Node): If the node is a string literal, no need to copy
13935         its descendants.
13936         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13937         grandparent of the entity.
13938         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13939         to simplify handling of formal interfaces that derive from other formal
13940         interfaces.
13941         (Instantiate_Subprogram_Body): The defining unit name of the body of
13942         the instance should be a defining identifier.
13943         (Install_Formal_Packages): make global to the package, for use in
13944         instantiations of child units.
13945         (Analyze_Package_Instantiation): Do not attempt to set information on an
13946         enclosing master of an entry when expansion is disabled.
13947         (Instantiate_Type): If the actual is a tagged synchronized type and the
13948         generic ancestor is an interface, create a generic actual for the
13949         corresponding record.
13950         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13951         declaration, to ensure that the interface list is processed correctly.
13952         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13953         its entities from visibiility as well.
13954         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13955         given with a named association, analyze the expression only, not the
13956         discriminant association itself.
13957         (Reset_Entity): If the analysis of a selected component is transformed
13958         into an expanded name in the prefix of a call with parameters, do not
13959         transform the original node into an expanded name, to prevent visibility
13960         errors in the case of nested generics.
13961         (Check_Private_View): For an array type, check whether the index types
13962         may need exchanging.
13963
13964 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13965             Vincent Celier  <celier@adacore.com>
13966
13967         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13968         since both are separated.
13969         Add support for imported CIL packages.
13970         Add further special handling of "value_type" for CIL.
13971         Add special handling of pragma Import for CIL.
13972
13973         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13974         standard output instead of standard error, except errors.
13975         (Absolute_Path): Use untouched casing for the parent directory.
13976         (Add_Library_Search_Dir): Use the untouched directory name.
13977         (Add_Source_Search_Dir): Idem.
13978         (Change_To_Object_Directory): Update output to use proper casing.
13979         (Create_Binder_Mapping_File): Use the untouched filename to set
13980         ALI_Name.
13981         (Gnatmake): Use untouched library and executable directory names.
13982         (Insert_Project_Sources): Use untouched filename for spec and body.
13983         (Is_In_Object_Directory): Use untouched object directory.
13984         (Mark_Directory): Idem.
13985         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13986         contains the non-canonical filename in all cases.
13987         (Change_To_Object_Directory): In verbose mode, display the name of the
13988         object directory we're changing to.
13989         (Compile_Sources): Make sure, when a project file is used, to compile
13990         the body of the unit, when there is one, even when only the spec is
13991         recorded in an ALI file.
13992         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13993         spec to the body.
13994         (Report_Compilation_Failed): New procedure
13995         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13996         procedures moved from the spec to the body.
13997         (Extract_Failure): Removed, not used
13998         Replace explicit raises of exception Bind_Failed and Link_Failed with
13999         calls to Make_Failed with the proper message.
14000         Replace explicit raises of exception Compilation_Failed with calls to
14001         procedure Report_Compilation_Failed.
14002         (Initialize): Create mapping files unconditionally when using project
14003         files.
14004
14005         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14006         Pragma_CIL_Constructor): New names.
14007
14008         * targparm.ads, targparm.adb
14009         (Compiler_System_Version): Removed, no longer used.
14010         (Get_Target_Parameters): Relax checks on system.ads validity. Add
14011         handling of two new system flags: JVM and CLI.
14012
14013 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14014             Arnaud Charlet  <charlet@adacore.com>
14015
14016         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14017         time, use the default s-interr body that provides interrupt support
14018         based on signals.
14019         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14020         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14021         g-soccon.ads, and s-taprop.adb for the marte run time.
14022         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14023         timers are supported on marte.
14024         (EH_MECHANISM for marte): Do not use ZCX.
14025         (THREADSLIB for marte): Use -lmarte.
14026         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14027         Add mlib-tgt-specific.o to gnatmake objects
14028         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14029         longer of MLib.Tgt.
14030         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14031         6, either kernel or rtp, use a specialized version of s-osinte.ads.
14032
14033 2007-06-06  Pascal Obry  <obry@adacore.com>
14034
14035         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14036
14037 2007-06-06  Vincent Celier  <celier@adacore.com>
14038
14039         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14040         separator, use instead the proper host directory separator.
14041         (Copy_ALI_Files): Make sure that an already existing ALI file in the
14042         ALI copy dir is writable, before doing the copy.
14043
14044         * mlib-utl.ads, mlib-utl.adb:
14045         (Gcc): If length of command line is too long, put the list of object
14046         files in a response file, if this is supported by the platform.
14047         (Ar): If invocation of the archive builder is allowed to be done in
14048         chunks and building it in one shot would go above an OS dependent
14049         limit on the number of characters on the command line, build the archive
14050         in chunks.
14051
14052 2007-06-06  Vincent Celier  <celier@adacore.com>
14053
14054         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14055         of specified object file is not equal to base name of source.
14056
14057 2007-06-06  Javier Miranda  <miranda@adacore.com>
14058             Hristian Kirtchev  <kirtchev@adacore.com>
14059             Ed Schonberg  <schonberg@adacore.com>
14060
14061         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14062         the full type declaration.
14063         (Analyze_Component_Declaration): Add local variable E to capture the
14064         initialization expression of the declaration. Replace the occurences of
14065         Expression (N) with E.
14066         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14067         limited interface object with a function call.
14068         (Array_Type_Declaration): If the declaration lacks subtype marks for
14069         indices, create a simple index list to prevent cascaded errors.
14070         (Is_Null_Extension): Ignore internal components created for secondary
14071         tags when checking whether a record extension is a null extension.
14072         (Check_Abstract_Interfaces): Add missing support for interface subtypes
14073         and generic formals.
14074         (Derived_Type_Declaration): Add missing support for interface subtypes
14075         and generic formals.
14076         (Analyze_Object_Declaration): If an initialization expression is
14077         present, traverse its subtree and mark all allocators as static
14078         coextensions.
14079         (Add_Interface_Tag_Component): When looking for components that may be
14080         secondary tags, ignore pragmas that can appear within a record
14081         declaration.
14082         (Check_Abstract_Overriding): an inherited function that dispatches on
14083         result does not need to be overriden if the controlling type is a null
14084         extension.
14085         (Mentions_T): Handle properly a 'class attribute in an anonymous access
14086         component declaration, when the prefix is an expanded name.
14087         (Inherit_Component): If the derivation is for a private extension,
14088         inherited components remain visible and their ekind should not be set
14089         to Void.
14090         (Find_Type_Of_Object): In the case of an access definition, always set
14091         Is_Local_Anonymous_Access. We were previously not marking the anonymous
14092         access type of a return object as a local anonymous type.
14093         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14094         range with character literal bounds.
14095         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14096         (Access_Subprogram_Declaration): Indicate that the type declaration
14097         depends on an incomplete type only if the incomplete type is declared
14098         in an open scope.
14099         (Analyze_Subtype_Declaration): Handle properly subtypes of
14100         synchronized types that are tagged, and that may appear as generic
14101         actuals.
14102         (Access_Subprogram_Declaration): An anonymous access to subprogram can
14103         appear as an access discriminant in a private type declaration.
14104         (Add_Interface_Tag_Components): Complete decoration of the component
14105         containing the tag of a secondary dispatch table and the component
14106         containing the offset to the base of the object (this latter component
14107         is only generated when the parent type has discriminants --as documented
14108         in this routine).
14109         (Inherit_Components): Use the new decoration of the tag components to
14110         improve the condition that avoids inheriting the components associated
14111         with secondary tags of the parent.
14112         (Build_Discriminanted_Subtype): Indicate to the backend that the
14113         size of record types associated with dispatch tables is known at
14114         compile time.
14115         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14116         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14117         to include task, protected, and synchronized interfaces as limited
14118         interfaces.
14119         (Process_Discriminants): Remove the setting of
14120         Is_Local_Anonymous_Access on the type of (anonymous) access
14121         discriminants of nonlimited types.
14122         (Analyze_Interface_Type_Declaration): Complete the decoration of the
14123         class-wide entity it is is already present. This situation occurs if
14124         the limited-view has been previously built.
14125         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14126         field.
14127         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14128         Related_Interface.
14129
14130 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14131
14132         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14133         of the type that specify the position of interface tags when the type
14134         inherits discriminated array components from the parent type.
14135         If a component is initialized with a box, check for the presence of a
14136         default expression in its declaration before using its default
14137         initialization procedure.
14138         (Resolve_Record_Aggregate): If a component is box-initialized, and the
14139         component type has a discriminants, create a partial aggregate for it
14140         by copying the discriminants of the component subtype.
14141         Reject attempt to initialize a discriminant with a box.
14142         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14143         associated with dispatch tables is known at compile time.
14144         (Get_Value): If an association in a record aggregate has a box
14145         association, and the corresponding record component has a default
14146         expression, always copy the default expression, even when the
14147         association has a single choice, in order to create a proper
14148         association for the expanded aggregate.
14149
14150 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14151             Robert Dewar  <dewar@adacore.com>
14152
14153         * par-ch12.adb (P_Generic_Associations): The source position of an
14154         Others association is that of the others keyword, not that of the token
14155         that follows the box.
14156         (P_Formal_Type_Definition): Handle formal access types that carry a
14157         not null indicator.
14158
14159         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14160         multiple identifier are present, save Scan_State before scanning the
14161         colon, to ensure that separate trees are constructed for each
14162         declaration.
14163         (P_Identifier_Declarations): For object declaration, set new flag
14164         Has_Init_Expression if initialization expression present.
14165         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14166         Improve NOT NULL error messages
14167
14168 2007-06-06  Robert Dewar  <dewar@adacore.com>
14169
14170         * par-ch4.adb: (P_Name): Recover from literal used as name
14171
14172 2007-06-06  Vincent Celier  <celier@adacore.com>
14173
14174         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14175         defaulted to False.
14176         In the "not" case, recursive call with Complemented set to True.
14177         Do not allow "or" or "and" operators when Complemented is True.
14178
14179 2007-06-06  Vincent Celier  <celier@adacore.com>
14180
14181         * prj.adb (Project_Empty): Gives default value for new component
14182         Libgnarl_Needed
14183
14184         * prj-attr.ads: Minor reformatting
14185
14186         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14187         directory using the untouched casing.
14188         (For_All_Source_Dirs): Idem.
14189
14190         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14191         directories specified with switches -aP.
14192         (Add_Search_Project_Directory): New procedure
14193         (Initialize_Project_Path): Put the directories in table
14194         Search_Directories in the project search path.
14195         (Initialize_Project_Path): For VMS, transform into canonical form the
14196         project path.
14197
14198 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14199
14200         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14201         true if configurable run-time or No_Run_Time is set.
14202         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14203         processing an unit which is not the one being compiled.
14204
14205 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14206
14207         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14208         Replace UC by Ada.UC
14209
14210         * s-bitops.adb: Get rid of System.Pure_Exceptions.
14211         Replace UC by Ada.UC
14212
14213 2007-06-06  Robert Dewar  <dewar@adacore.com>
14214
14215         * scng.adb: (Check_End_Of_Line): Deal with very long lines
14216
14217 2007-06-06  Robert Dewar  <dewar@adacore.com>
14218
14219         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14220         Remove no longer used nodes.
14221
14222 2007-06-06  Javier Miranda  <miranda@adacore.com>
14223             Ed Schonberg  <schonberg@adacore.com>
14224             Robert Dewar  <dewar@adacore.com>
14225
14226         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14227         on obsolescent withed unit in case of limited-withed units.
14228         (Analyze_Compilation_Unit): Add guard to code that removed an
14229         instantiation from visibility, to prevent compiler aborts when
14230         instantiation is abandoned early on.
14231         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14232         current unit being analyzed, and Distinguish local incomplete types
14233         from limited views of types declared elsewhere.
14234         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14235         to state that the class-wide entity is shared by the limited-view
14236         and the full-view.
14237         (Analyze_With_Clause): Improve placement of flag for case of
14238         unimplemented unit.
14239         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14240         manner similar to GNAT.Current_Exception. This is a violation of
14241         restriction (No_Exception_Propagation), and also inhibits the
14242         optimization of local raise to goto.
14243         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14244         and if so set Most_Recent_Exception_Used flag in Opt, and also check
14245         for violation of restriction No_Exception_Propagation.
14246
14247 2007-06-06  Javier Miranda  <miranda@adacore.com>
14248             Hristian Kirtchev  <kirtchev@adacore.com>
14249             Gary Dismukes  <dismukes@adacore.com>
14250
14251         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14252         use of entity Exception_Occurrence if it is not available in the
14253         target run-time.
14254
14255         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14256         concurrent types are declared within an Ada 2005 generic, build their
14257         corresponding record types since they are needed for overriding-related
14258         semantic checks.
14259         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14260         protected type does not implement a task interface or a nonlimited
14261         interface.
14262         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14263         type does not implement a protected interface or a nonlimited interface.
14264         (Single_Task_Declaration, Single_Protected_Declaration): use original
14265         entity for variable declaration, to ensure that debugging information
14266         is correcty generated.
14267         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14268         routines if the expander is not active.
14269         (Analyze_Task_Body): Mark all handlers to stop optimization of local
14270         raise, since special things happen for task exception handlers.
14271
14272         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14273         concurrent types declared within a generic.
14274         (Check_Dispatching_Operation): Do not emit warning about late interface
14275         operations in the context of an instance.
14276         (Check_Dispatching_Call): Remove restriction against calling a
14277         dispatching operation with a limited controlling result.
14278         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14279         Register_Interface_DT_Entry by calls to Register_Primitive.
14280         (Check_Dispatching_Formals): Handle properly a function with a
14281         controlling access result.
14282
14283 2007-06-06  Robert Dewar  <dewar@adacore.com>
14284             Arnaud Charlet  <charlet@adacore.com>
14285
14286         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14287         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14288         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14289         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14290         message when using a VM, since this attribute is not supported.
14291         (Analyze_Record_Representation_Clause): Give unrepped component warnings
14292
14293         * usage.adb: Add new warning for renaming of function return objects
14294         Indicate that -gnatwp and -gnatwP concern front-end inlining
14295         Add line for -gnatyg
14296         Add usage information for -gnatw.c/C
14297
14298 2007-06-06  Robert Dewar  <dewar@adacore.com>
14299             Ed Schonberg  <schonberg@adacore.com>
14300
14301         * sem_ch5.adb
14302         (Find_Var): Do not consider function call in test for infinite loop
14303         warning if warnings set off for function entity.
14304         (One_Bound): Do not create a temporary for a loop bound if it is a
14305         character literal.
14306         (Analyze_Assignment): Traverse the right hand side of an assignment and
14307         mark all allocators as static coextensions.
14308         (Analyze_Assignment): Exempt assignments involving a dispatching call
14309         to a function with a controlling access result from the check requiring
14310         the target to be class-wide.
14311
14312 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14313             Ed Schonberg  <schonberg@adacore.com>
14314             Robert Dewar  <dewar@adacore.com>
14315             Javier Miranda  <miranda@adacore.com>
14316
14317         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14318         chain of coextensions when an allocator serves as the root of such a
14319         chain.
14320         (Propagate_Coextensions): Remove the test for the root being an
14321         allocator.
14322         (Resolve_Allocator): Add condition to ensure that all future decoration
14323         occurs on an allocator node. Add processing and cleanup for static
14324         coextensions.
14325         (Valid_Conversion): If the operand type is the limited view of a
14326         class-wide type, use the non-limited view is available to determine
14327         legality of operation.
14328         (Ambiguous_Character): move to spec, for use elsewhere.
14329         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14330         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14331         character literals.
14332         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14333         Do_Division_Check flag explicitly.
14334         (Resolve_Actuals): If the actual is of a synchronized type, and the
14335         formal is of the corresponding record type, this is a call to a
14336         primitive operation of the type, that is declared outside of the type;
14337         the actual must be unchecked-converted to the type of the actual
14338         (Resolve_Call): Kill all current values for any subprogram call if
14339         flag Suppress_Value_Tracking_On_Call is set.
14340         (Resolve_Type_Conversion): Generate error message the the operand
14341         or target of interface conversions come from a limited view.
14342         (Check_Infinite_Recursion): Ignore generated calls
14343         (Check_Allocator_Discrim_Accessibility): New procedure for checking
14344         that an expression that constrains an access discriminant in an
14345         allocator does not denote an object with a deeper level than the
14346         allocator's access type.
14347         (Resolve_Allocator): In the case of an allocator initialized by an
14348         aggregate of a discriminated type, check that associations for any
14349         access discriminants satisfy accessibility requirements by calling
14350         Check_Allocator_Discrim_Accessibility.
14351         (Resolve_Equality_Op): Handle comparisons of anonymous access to
14352         subprogram types in the same fashion as other anonymous access types.
14353         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14354         message that is not a continuation message.
14355         (Resolve_Type_Conversion): Add missing support for conversion to
14356         interface type.
14357         (Resolve_Actuals): Introduce a transient scope around the call if an
14358         actual is a call to a function returning a limited type, because the
14359         resulting value must be finalized after the call.
14360         (Resolve_Actuals): If the call was given in prefix notations, check
14361         whether an implicit 'Access reference or implicit dereference must be
14362         added to make the actual conform to the controlling formal.
14363
14364 2007-06-06  Robert Dewar  <dewar@adacore.com>
14365             Javier Miranda  <miranda@adacore.com>
14366
14367         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14368         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14369         overriding of an inherited private subprogram now there is no need to
14370         inherit its dispatching slot and reduce the size of the dispatch table.
14371         Set_All_DT_Position now ensures that the same slot is now assigned to
14372         both entities. This is required to statically build the dispatch table.
14373         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14374         of calling Set_All_DT_Position to re-evaluate the position of the
14375         entries in the dispatch table. Such reevaluation is not desired if
14376         the tagged type is already frozen.
14377
14378 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14379             Gary Dismukes  <dismukes@adacore.com>
14380             Robert Dewar  <dewar@adacore.com>
14381             Javier Miranda  <miranda@adacore.com>
14382
14383         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14384         reference acts as an lvalue when the attribute name modifies the prefix
14385         (Is_Coextension_Root): New routine.
14386         (Mark_Static_Coextensions): New routine.
14387         (Type_Access_Level): Revise code for checking the level of the
14388         anonymous access type of a return object.
14389         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14390         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14391         retrieval of the corresponding controlling record type.
14392         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14393         concurrent types declared within a generic as well as class wide types.
14394         Emit a mode incompatibility error whenever a protected entry or routine
14395         override an interface routine whose first parameter is not of mode
14396         "out", "in out" or access to variable.
14397         (Overrides_Synchronized_Primitive): Rename to
14398         Find_Overridden_Synchronized_Primitive.
14399         (Collect_Interface_Components): New subprogram that collects all the
14400         components of a tagged record containing tags of secondary dispatch
14401         tables.
14402         (Add_Global_Declaration): New procedure
14403         (Abstract_Interface_List): Handle properly the case of a subtype of a
14404         private extension.
14405         (Type_Access_Level): In the case of a type whose parent scope is a
14406         return statement, call Type_Access_Level recursively on the enclosing
14407         function's result type to determine the level of the return object's
14408         type.
14409         (Build_Elaboration_Entity): Build name of elaboration entity from the
14410         scope chain of the entity, rather than the unit name of the file name.
14411         (Check_Nested_Access): New procedure.
14412         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14413         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14414         (Get_Renamed_Entity): Utility routine for performing common operation
14415         of chasing the Renamed_Entity field of an entity.
14416
14417 2007-06-06  Robert Dewar  <dewar@adacore.com>
14418
14419         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14420         elaboration model
14421         (Check_A_Call): Add check for entry call which was causing blowup
14422
14423 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14424
14425         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14426         special code on ia64-vms to handle major incompatibilities between the
14427         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14428         this routine with a very different set of arguments and expectations on
14429         the return value.
14430
14431 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14432
14433         * socket.c (__gnat_close_signalling_fd): New function.
14434         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14435         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14436         New supporting functions for task safe Netdb operations.
14437
14438 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14439             Olivier Hainque  <hainque@adacore.com>
14440
14441         * a-except-2005.ads, a-except-2005.adb
14442         (Raise_From_Controlled_Operation): New procedure in
14443         (private part of) Ada.Exceptions (standard runtime version). Used to
14444         provide informational exception message when Program_Error is raised as
14445         a result of an Adjust or Finalize operation propagating an exception.
14446         (Rmsg_28): Fix description for E.4(18) check.
14447         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14448         propagation starts, to let debuggers know about the event in a reliable
14449         fashion.
14450         Take the address of E and dereference to make sure it is homed on stack
14451         and prevent the stores from being deleted, necessary for proper
14452         debugger behavior on "break exception" hits.
14453         (Local_Raise): Moved to System.Exceptions
14454
14455         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14456         exception message from the current occurrence and raise Program_Error
14457         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14458
14459 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14460             Arnaud Charlet  <charlet@adacore.com>
14461
14462         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14463         lock, if needed.
14464
14465         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14466         priority associated to a lock.
14467
14468         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14469         assertion to take into account case of no abort restriction.
14470         (Initialize_Protection_Entries): Add initialization for the field
14471         New_Ceiling associated to the protected object.
14472         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14473         needed.
14474
14475         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14476         since this function needs to be set consistently with Update_Exception.
14477
14478         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14479         since this function needs to be set consistently with Update_Exception.
14480
14481         * s-taskin.ads: Update comments on
14482         Interrupt_Server_Blocked_On_Event_Flag.
14483         (Unbind_Handler): Fix handling of server_task wakeup
14484         (Server_Task): Set self's state so that Unbind_Handler can take
14485         appropriate actions.
14486         (Common_ATCB): Now use a constant from System.Parameters to determine
14487         the max size of the Task_Image field.
14488
14489         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14490         Initialize_Analyzer function.
14491         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14492         take into account case of no abort restriction.
14493         ([Vulnerable_]Complete_Master): Modify assertion.
14494
14495         * s-tataat.adb (Finalize): Use the nestable versions of
14496         Defer/Undefer_Abort.
14497
14498         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14499
14500         * s-tpobop.ads: Update comments.
14501
14502         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14503         of locking the object manually, to avoid inconsistencies between
14504         Lock/Unlock_Entry assertions.
14505
14506         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14507         terminating
14508         application and System.Parameters.No_Abort is True.
14509         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14510         (Unbind_Handler): Fix handling of server_task wakeup
14511         (Server_Task): Set self's state so that Unbind_Handler can take
14512         appropriate actions.
14513
14514 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14515
14516         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14517         declarations instead of an explicit null body, for conciseness.
14518
14519 2007-06-06  Robert Dewar  <dewar@adacore.com>
14520
14521         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14522         illegal aggregate and the type is still Any_Composite.
14523         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14524
14525 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14526
14527         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14528         to prevent subsequent expansion.
14529
14530 2007-06-06  Robert Dewar  <dewar@adacore.com>
14531
14532         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14533
14534 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14535             Robert Dewar  <dewar@adacore.com>
14536
14537         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14538         exceptions.
14539         (Write_Itype): Handle case of string literal subtype, which
14540         comes up in this context.
14541         (Update_Itype): when debugging expanded code, update sloc of itypes
14542         associated with defining_identifiers and ranges, for gdb use.
14543         (Sprint_Node_Actual): Add static keyword to object or exception
14544         declaration output if Is_Statically_Allocated is True.
14545         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14546         or task body, so that the tree carries the proper Sloc information for
14547         debugging use.
14548         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14549
14550 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14551
14552         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14553         compile time, to avoid dynamic memory allocation
14554         (Elaboration code): Only use dynamic memory allocation when needed.
14555
14556 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14557
14558         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14559         "Overflow_Guard".
14560         (Stack_Analyzer): Added field "Overflow_Guard"
14561         (Task_Result): Added field "Overflow_Guard".
14562         (Index_Str): New constant.
14563         (Task_Name_Str): New constant.
14564         (Actual_Size_Str): New constant.
14565         (Pattern_Array_Element_Size): New constant.
14566         (Get_Usage_Range): New subprogram.
14567         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14568         Now align the output.
14569         Added comments.
14570         (Initialize): Added value for Overflow_Guard.
14571         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14572         Update the value of the overflow guard according to the actual
14573         beginning of the pattern array.
14574         (Initialize_Analyzer): Added parameter Overflow_Guard.
14575         Take this parameter into accound when computing the max size.
14576         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14577         (Report_Result): Removed extra useless procedure.
14578         Updated call to Output_Result.
14579         Moved full computation of the Task_Result here.
14580
14581 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14582
14583         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14584         Thread_Blocking_IO, always True by default, set False on a per-runtime
14585         basis.
14586         Add Windows-specific constants
14587         Add new constant Need_Netdb_Buffer.
14588         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14589         not, whether to use getXXXbyYYY_r.
14590
14591         * gsocket.h: Add new constant Need_Netdb_Buffer.
14592         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14593         not, whether to use getXXXbyYYY_r.
14594
14595 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14596
14597         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14598         than their first call.
14599         Add type Dummy_Communication_Block used in the generation of the pre-
14600         defined dispatching primitive _disp_asynchronous_select.
14601         (Storage_Element): Put Pragma Universal_Aliasing on it.
14602
14603 2007-06-06  Vincent Celier  <celier@adacore.com>
14604
14605         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14606         function.
14607
14608         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14609         letter if it is not followed by a '/' or a '\'.
14610         (Windows): New Boolean function
14611
14612         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14613         Ada 2005.
14614         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14615         drive letter.
14616         (Containing_Directory): Raise Use_Error when the directory is a root
14617         directory.
14618         (Extension): When returning the result, use a conversion to Result_Type,
14619         not a qualification.
14620
14621 2007-06-06  Robert Dewar  <dewar@adacore.com>
14622
14623         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14624         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14625
14626         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14627         Warn_On_Non_Local_Exception to False, to turn off warnings for
14628         No_Exception_Propagation in ZFP runtime.
14629         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14630         back-ends.
14631         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14632
14633 2007-06-06  Vincent Celier  <celier@adacore.com>
14634
14635         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14636         switches -R and -Z
14637
14638         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14639         (Scan_Make_Switches): Recognize new switch -aP
14640
14641 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14642             Jose Ruiz  <ruiz@adacore.com>
14643
14644         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14645         VxWorks task descriptor in the Ada run time, call a C subprogram
14646         (__gnat_get_stack_info) that extracts the required information.
14647
14648         * sysdep.c: Back out temporary lynxos workaround.
14649         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14650         time the stack information associated to the currently executing task.
14651         Only VxWorks systems require this function.
14652
14653 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14654
14655         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14656         add the stack bias if the offset is computed from a frame address.
14657         (__gnat_backtrace): Adjust for above change.
14658
14659 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14660
14661         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14662         PE_Non_Transportable_Actual.
14663         (By_Descriptor_Last): New constant.
14664         (By_Copy_Return): Likewise.
14665
14666 2007-06-06  Vincent Celier  <celier@adacore.com>
14667
14668         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14669         is.
14670
14671         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14672         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14673         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14674         Add missing comment for /OPTIMIZE=SPACE
14675         Add entry for OPTIMIZE=SPACE
14676         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14677         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14678
14679 2007-06-06  Vincent Celier  <celier@adacore.com>
14680             Robert Dewar  <dewar@adacore.com>
14681
14682         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14683         -gnatw.C)
14684
14685         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14686         Document gnatbind switch -a
14687         (case Constructions): Document that variables declarations are allowed
14688         for previously declared variables.
14689         Fix external lib project example
14690         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14691         Indicate that "#if not X or Y then" is not allowed in input files to
14692         gnatprep.
14693         Document gnatw.x and gnatw.X warning flags
14694         Mention -Winline switch to activate warnings when back-end inlining is
14695         ineffective.
14696         Add gnatcheck rule descriptions
14697         Describe how to use the GNAT driver to call a tool on a closure.
14698         Describe how to run project-wide checks or metrics.
14699         Document gnatbind's -R option
14700         Updated to account for Ada 2005 support
14701
14702         * gnat_rm.texi (Case Construction): Allow variable declarations for
14703         previously declared variables.
14704         (Representation Clauses and Pragmas): Lift restriction on alignment
14705         clauses for record types.
14706         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14707         Document No_Exception_Propagation restriction
14708         Document No_Body pragma
14709         Updated to account for Ada 2005 support; corrected some typos
14710         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14711
14712         * gnat-style.texi: Make it clear that we never use mode IN for
14713         procedures or functions
14714
14715         * ug_words: Add entries for -gnatw.x and -gnatw.X
14716         Add entries for -gnatw.c/.C
14717
14718 2007-06-06  Pascal Obry  <obry@adacore.com>
14719             Vincent Celier  <celier@adacore.com>
14720
14721         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14722         dirs and library name.
14723         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14724         comments.
14725         (Build_Library): Idem.
14726         (Compile_Individual_Sources): Idem.
14727         (Compile_Link_With_Gnatmake): Idem.
14728         (Compile_Sources): Idem.
14729         (Get_Imported_Directories): Idem.
14730         (Link_Executables): Idem. Same change for the executable dir.
14731         (Check_Compilation_Needed): C_Source_Path new variable containing
14732         the canonical form of Source_Path to check against the source names
14733         in the dependency file.
14734         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14735         verbose mode, display the name of the object directory we're changing
14736         to.
14737         (Saved_Switches): New name of table X_Switches
14738         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14739         (Usage): New line for switch -aP
14740         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14741         testing if a directory should be added to the search path.
14742
14743 2007-06-06  Javier Miranda  <miranda@adacore.com>
14744
14745         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14746         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14747         declaration after freezing point of all its associated tagged types;
14748         otherwise such types are frozen too early.
14749
14750 2007-06-06  Robert Dewar  <dewar@adacore.com>
14751
14752         * a-reatim.adb: Documentation addition
14753
14754         * g-cgideb.adb: Minor code reorganization
14755
14756         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14757         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14758         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14759
14760         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14761         function.  Change name New_Scope to Push_Scope
14762         (Get_Debug_Flag_K): Remove unused obsolete function.
14763
14764         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14765         Push_Scope.
14766
14767         * makeusg.adb: Update Copyright notice
14768         Add line for switch -aP
14769
14770         * makeusg.adb: Fix wording of some usage messages
14771
14772         * s-assert.adb (Raise_Assert_Failure): Add call to
14773         Debug_Raise_Assert_Failure.
14774
14775         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14776         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14777         is restricted to 1).
14778
14779         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14780
14781         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14782         node location to No_Location when we're not debugging the expanded
14783         code.
14784
14785 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14786
14787         * misc.c (enumerate_modes): Consider log2_b to always be one.
14788
14789 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
14790
14791         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14792
14793 2007-05-02  Pascal Obry  <obry@adacore.com>
14794
14795         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14796         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14797         encoding support of Stream_IO.
14798         (Write_Unit): Idem.
14799
14800         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14801         filename and corresponding encoding to match the OS requirement.
14802         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14803         routine will fail on specific devices like CON: AUX: ...
14804
14805         PR ada/29856: Add missing braces
14806
14807 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14808
14809         PR ada/31660
14810         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14811
14812 2007-04-21  Jan Hubicka  <jh@suse.cz>
14813
14814         * misc.c (gnat_expand_body): Don't call target for destructors,
14815         avoid redundant check on syntax errors.
14816
14817 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14818
14819         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14820         instead of checking GIMPLE_STMT_P in chain_next.
14821
14822 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14823
14824         PR ada/31576
14825         * system-linux-alpha.ads: Disable constant condition warning for the
14826         Default_Bit_Order variable.
14827         * system-linux-s390.ads: Likewise.
14828         * system-linux-s390x.ads: Likewise.
14829         * system-linux-sparc.ads: Likewise.
14830
14831 2007-04-06  Javier Miranda  <miranda@adacore.com>
14832             Matt Heaney  <heaney@adacore.com>
14833             Robert Dewar  <dewar@adacore.com>
14834
14835         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14836         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14837         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14838         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14839         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14840         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14841         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14842         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14843         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14844         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14845         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14846         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14847         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14848         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14849         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14850         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14851         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14852         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14853         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14854         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14855         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14856         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14857         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14858         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14859         s-taprop-tru64.adb, s-taprop-irix.adb,
14860         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14861         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14862         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14863         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14864         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14865         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14866         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14867         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14868         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14869         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14870         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14871         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14872         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14873         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14874         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14875         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14876         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14877         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14878         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14879         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14880         access types.
14881         Update documentation.
14882         Minor rewording.
14883
14884 2007-04-06  Robert Dewar  <dewar@adacore.com>
14885
14886         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14887         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14888         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14889         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14890         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14891         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14892         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14893         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14894         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14895         system-hpux-ia64.ads, targparm.adb,
14896         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14897
14898         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14899         kept for bootstrap purposes only.
14900
14901 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14902
14903         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14904         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14905         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14906         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14907
14908 2007-04-06  Robert Dewar  <dewar@adacore.com>
14909
14910         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14911         (Local_Raise): New dummy procedure called when a raise is converted
14912         to a local goto. Used for debugger to detect that the exception
14913         is raised.
14914
14915         * debug.adb: Document new d.g flag (expand local raise statements to
14916         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14917
14918         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14919
14920         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14921         suppress warnings for unused handlers.
14922         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14923         warnings for raise statements not handled locally.
14924         (Get_RT_Exception_Entity): New function
14925         (Get_Local_Call_Entity): New function
14926         (Find_Local_Handler): New function
14927         (Warn_If_No_Propagation): New procedure
14928         (Expand_At_End_Handler): Call Make_Implicit_Handler
14929         (Expand_Exception_Handlers): Major additions to deal with local handlers
14930         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14931         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14932         for local raise
14933
14934         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14935         (Get_Local_Call_Entity): New function
14936
14937         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14938         of restrictions that the binder will never suggest adding.
14939
14940         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14941         to No_Elist.
14942
14943         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14944         be with'ed in the presence of pragma Restriction
14945         (No_Exception_Propagation).
14946
14947         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14948
14949         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14950         parameter, then the handler is not a suitable target for a local raise,
14951         and this is a violation of restriction No_Exception_Propagation.
14952         (Analyze_Handled_Statements): Analyze choice parameters in exception
14953         handlers before analyzing statement sequence (needed for proper
14954         detection of local raise statements).
14955         (Analyze_Raise_Statement): Reraise statement is a violation of the
14956         No_Exception_Propagation restriction.
14957
14958         * s-rident.ads: Add new restriction No_Exception_Propagation
14959
14960         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14961         function, like Make_Exception_Handler but sets Local_Raise_Statements
14962         to No_List.
14963         (Add_Unique_Serial_Number): Deal with case where this is called during
14964         processing of configuration pragmas.
14965
14966 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14967             Pat Rogers  <rogers@adacore.com>
14968             Pascal Obry  <obry@adacore.com>
14969
14970         * g-stsifd-sockets.adb: New file.
14971
14972         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14973         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14974         g-socthi-vms.adb: Move signalling
14975         fd management to a nested package, so that they can conveniently be
14976         moved to a subunit that is shared across Windows, VMS, and VxWorks
14977         (Ada implementation) or completed with imported bodies from socket.c
14978         (UNIX case).
14979         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14980         subprograms.
14981         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14982         the signalling file descriptor.
14983         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14984         signalling file descriptor.
14985         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14986         instead of creating a pair of sockets for signalling here.
14987
14988         * g-socthi.adb: Ditto.
14989         Set the runtime process to ignore SIGPIPEs on platforms that support
14990         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14991
14992         * g-socthi-mingw.adb: Ditto.
14993         (WS_Version): Use Windows 2.2.
14994         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14995
14996         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14997         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14998
14999         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15000         added GNAT byte swapping facility
15001         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15002
15003         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15004
15005         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15006         New subprograms.
15007         (__gnat_create_signalling_fds): New subprogram.
15008         Set the runtime process to ignore SIGPIPEs on platforms that support
15009         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15010
15011 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
15012             Vincent Celier  <celier@adacore.com>
15013
15014         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15015         New version of Ada.Calendar which supports the new upper bound of Ada
15016         time (2399-12-31 86_399.999999999).
15017         The following modifications have been made to the package:
15018          - New representation of time as count of nanoseconds since the start of
15019            Ada time (1901-1-1 0.0).
15020          - Target independent Split and Time_Of routines which service both
15021            Ada 95 and Ada 2005 code.
15022          - Target independent interface to the Ada 2005 children of Calendar.
15023          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15024          - Handling of non-leap centenial years.
15025          - Updated clock function.
15026          - Updated arithmetic and comparison operators.
15027
15028         * a-caldel.adb (To_Duration): Add call to target independent routine in
15029         Ada.Calendar to handle the conversion of time to duration.
15030
15031         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15032         (UTC Offset).
15033         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15034         set off to 0.
15035         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15036         targets do not have a natural time zone, GMT is used as a default.
15037         (__gnat_get_task_options): New.
15038
15039         * a-direct.adb (Modification_Time): Add with and use clauses for
15040         Ada.Calendar and Ada.
15041         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15042         since it is no longer needed.
15043         (Duration_To_Time): Removed.
15044         (OS_Time_To_Long_Integer): Removed.
15045         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15046         Formatting Time_Of routines which automatically handle time zones,
15047         buffer periods and leap seconds.
15048
15049         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15050         target independent routines in Ada.Calendar.
15051
15052         * a-calfor.ads, a-calfor.adb:
15053         Code cleanup and addition of validity checks in various routines.
15054         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15055         Ada.Calendar.
15056
15057         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15058         independent routine in Ada.Calendar.
15059
15060 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15061
15062         * adaint.c:
15063         (convert_addresses): Adjust prototype and dummy definition to expect an
15064          extra file_name argument.
15065
15066         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15067         filling the now expected file_name argument with the appropriate
15068         argv[0] expansion.
15069         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15070         (tracebk): Array of void * instead of char *, corresponding to what
15071          convert_addresses expects.
15072         (exename): New static global, to hold the executable file name to be
15073         used in all convert_addresses invocations.
15074         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15075         change.
15076         (__gnat_gmem_a2l_initialize): Resolve exename.
15077         (__gnat_convert_addresses): Use exename as the convert_addresses
15078         file_name argument.
15079
15080         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15081         "convert_addresses", now expecting a filename argument. Import the
15082         necessary entities to compute the filename to use and pass it to
15083         convert_addresses.
15084
15085 2007-04-06  Matt Gingell  <gingell@adacore.com>
15086
15087         * system-aix.ads: Back out previous change.
15088         (Functions_Return_By_DSP): Removed
15089
15090 2007-04-06  Pascal Obry  <obry@adacore.com>
15091
15092         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15093         or the monotonic used by Ada.Real_Time) to compute the sleep duration
15094         on Windows.
15095
15096 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15097
15098         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15099         function. Its value changes in different VxWorks versions, and it is
15100         now handled by the function __gnat_get_task_options.
15101
15102         * s-taprop-vxworks.adb (Create_Task): Call the function
15103         __gnat_get_task_options to get the required options for creating a task.
15104
15105 2007-04-06  Pascal Obry  <obry@adacore.com>
15106             Thomas Quinot  <quinot@adacore.com>
15107
15108         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15109         dealing with filename.
15110         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15111         filename from a standard string to a wide-string depending on the
15112         encoding value.
15113         (__gnat_freopen): Idem.
15114         (__gnat_current_time): New function (wrapper for time(3) standard C
15115         function).
15116
15117         * g-os_lib.ads (Current_Time): New function. Returns the current
15118         system time as an OS_Time value.
15119
15120         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15121         (Monotonic_Clock): Same.
15122
15123 2007-04-06  Quentin Ochem  <ochem@adacore.com>
15124
15125         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15126         not on a natural.
15127         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15128
15129 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15130
15131         * a-retide.adb: Add elaboration code to ensure that the tasking run
15132         time is initialized when using delay operations even when no task is
15133         created.
15134
15135 2007-04-06  Javier Miranda  <miranda@adacore.com>
15136
15137         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15138         component Num_Prim_Ops.
15139         (Set_Num_Prim_Ops): Removed.
15140         Remove all the assertions because all the routines of this
15141         package are inline always.
15142         (Get_Offset_Index): Add support to primary dispatch tables.
15143         Move the documentation about the dispatch table to a-tags.ads
15144         (Set_External_Tag): Removed
15145         (Inherit_TSD): Removed.
15146         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15147         moved to a-tags.ads
15148         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15149         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15150         of the TSD field "Table" because this field has been renamed to
15151         "Ifaces_Table".
15152         (Inherit_CPP_DT): Removed.
15153         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15154         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15155         declarations have been moved to a-tags.ads
15156         (Check_Size): Removed.
15157         (Expanded_Name): Updated to get access to the new field of TSD
15158         containing the address of the expanded name.
15159         (Get_Access_Level/Set_Access_Level): Removed.
15160         (Get_Predefined_Prim_Op_Address): Removed.
15161         (Set_Predefined_Prim_Op_Address): Removed.
15162         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15163         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15164         (Set_Expanded_Name): Removed.
15165         (Inherit_DT): Removed.
15166         (Inherit_CPP_DT): Removed.
15167         (Set_RC_Offset): Removed.
15168         (Set_TSD): Removed.
15169         (Base_Address): New function that displaces "this" to point to the base
15170         of the object (that is, to point to the primary tag of the object).
15171
15172 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15173             Javier Miranda  <miranda@adacore.com>
15174
15175         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15176         anonymous access component, do not create a master_id if type already
15177         has one, as may happen if the type is a subcomponent of a packed array
15178         type.
15179         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15180         Initialize_Tag): Remove code associated with the old CPP pragmas.
15181         CPP_Virtual and CPP_Vtable are no longer supported.
15182         (Build_Offset_To_Top_Internal): Add support for concurrent record types
15183         (Build_Offset_To_Top_Functions): Add support for concurrent record types
15184         (Freeze_Record_Type): Remove call to
15185         Init_Predefined_Interface_Primitives.
15186         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15187         code required to initialize the tags of the secondary dispatch tables.
15188         This leaves the algoritm more clear.
15189         (Init_Secondary_Tags): Add support for concurrent record types
15190         (Make_Predefined_Primitive_Specs): Code cleanup.
15191         (Predefined_Primitive_Bodies): Code cleanup.
15192         (Build_Master_Renaming): New local subprogram.
15193         (Expand_N_Full_Type_Declaration): Build the master_id associated with
15194         anonymous access to task type components.
15195         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15196         subtype indication are resolved during analysis, and must not be done
15197         here.
15198         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15199
15200 2007-04-06  Geert Bosch  <bosch@adacore.com>
15201             Ed Schonberg  <schonberg@adacore.com>
15202             Javier Miranda  <miranda@adacore.com>
15203             Bob Duff  <duff@adacore.com>
15204
15205         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15206         for conversion of a Float_Type'Truncation to integer.
15207
15208         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15209         check if a node is an attribute that can be handled directly by the
15210         back end.
15211         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15212         attributes that can be handled directly by the back end.
15213         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15214         use new predicate Is_Access_Protected_Subprogram_Type.
15215         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15216         and Unchecked_Union if it is generated as part of the default  Output
15217         procedure for a type with default discriminants.
15218         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15219         if we are compiling under restriction No_Dispatching_Calls.
15220         (Constrained): Use Underlying_Type, in case the type is private without
15221         discriminants, but the full type has discriminants.
15222         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15223         call to Build_Get_Access_Level.
15224         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15225         interface objects requires a call to the run-time subprogram that
15226         returns the base address of the object.
15227         (Valid_Conversion): Improve error message on illegal attempt to store
15228         an anonymous access to subprogram value into a record component.
15229
15230         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15231         null".
15232         (Simplify_Type_Conversion): New procedure that performs simplification
15233         of Int_Type (Float_Type'Truncation (X)).
15234         (Resolve_Type_Conversion): Call above procedure after resolving operand
15235         and before performing checks. This replaces the existing ineffective
15236         code in Exp_Ch4.
15237         (Set_String_Literal_Subtype): When creating the internal static lower
15238         bound subtype for a string literal, use a newly created copy of the
15239         subtree representing the lower bound.
15240         (Resolve_Call): Exclude build-in-place function calls from transient
15241         scope treatment. Update comments to describe this exception.
15242         (Resolve_Equality_Op): In case of dispatching call check violation of
15243         restriction No_Dispatching_Calls.
15244         (Resolve_Call): If the call returns an array, the context imposes the
15245         component type of the array, and the function has one non-defaulted
15246         parameter, rewrite the call as the indexing of a call with a single
15247         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15248         in prefix form.
15249         (Resolve_Actuals): If an actual is an allocator for an access parameter,
15250         the master of the created object is the innermost enclosing statement.
15251         (Remove_Conversions): For a binary operator, check if type of second
15252         formal is numeric, to check if an abstract interpretation is present
15253         in the case of exponentiation as well.
15254
15255 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15256             Bob Duff  <duff@adacore.com>
15257
15258         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15259         copying a parameter list in a call, set properly the First_Named_Formal
15260         and Next_Named_Formal fields in the new list and in the enclosing call.
15261         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15262         names, to ease typing in the debugger. Improve comments.
15263         (Watch_Node): New variable, intended to be set in the debugger.
15264         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15265         called when the watched node is created.
15266         (New_Node_Debugging_Output): Combined version of local procedures
15267         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15268         with a parameter so that conditional breakpoints like "if Node = 12345"
15269         work.
15270         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15271         Add Elist1 function
15272
15273 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15274             Ed Schonberg  <schonberg@adacore.com>
15275             Gary Dismukes  <dismukes@adacore.com>
15276
15277         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15278         required for a conversion between two access-to-unconstrained-array
15279         types.
15280         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15281         to discriminant constraints on discriminant objects. This rule must
15282         apply as well to discriminants of protected types in private components.
15283         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15284         object of a null-excluding access type then don't require the
15285         the object declaration to have an expression and don't emit a
15286         run-time check.
15287
15288 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15289             Eric Botcazou  <botcazou@adacore.com>
15290
15291         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15292         and made constant.
15293
15294         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15295         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15296         carry any.
15297
15298         * fe.h (Compiler_Abort): Add third parameter.
15299
15300         * misc.c (internal_error_function): Build third argument from current
15301         input location and pass it to Compiler_Abort.
15302
15303 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
15304
15305         * cstand.adb (Create_Standard): When the target's storage unit size is
15306         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15307         Standard_String.
15308
15309 2007-04-06  Nicolas Roche  <roche@adacore.com>
15310
15311         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15312         absolute path can have the following form: device:/a/b. In this case
15313         '/' should be inserted between the path and the filename.
15314
15315 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15316             Eric Botcazou  <botcazou@adacore.com>
15317
15318         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15319         VAR_DECL to a CONST_DECL we make for a public constant when we know the
15320         corresponding definition has created the so made visible variable.
15321         Handle anonymous access to protected subprogram.
15322         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15323         object with an address clause volatile.  Re-enable original fix.
15324         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15325         too.
15326         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15327         associated with either the Equivalent or Root type, instead of the
15328         naked type node.
15329         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15330         subtree for every field of a global record type.
15331         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15332         discriminants, invoke again variable_size on its newly computed sizes.
15333
15334 2007-04-06  Robert Dewar  <dewar@adacore.com>
15335             Thomas Quinot  <quinot@adacore.com>
15336             Ed Schonberg  <schonberg@adacore.com>
15337             Bob Duff  <duff@adacore.com>
15338
15339         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15340         (Next_Component_Or_Discriminant): New function and procedure
15341         (First_Index, First_Literal, Master_Id,
15342         Set_First_Index, Set_First_Literal, Set_Master_Id):
15343         Add missing Ekind assertions.
15344         (Is_Access_Protected_Subprogram_Type): New predicate.
15345         (Has_RACW): New entity flag, set on package entities to indicate that
15346         the package contains the declaration of a remote accecss-to-classwide
15347         type.
15348         (E_Return_Statement): This node type has the Finalization_Chain_Entity
15349         attribute, in case the result type has controlled parts.
15350         (Requires_Overriding): Add this new flag, because "requires
15351         overriding" is subtly different from "is abstract" (see AI-228).
15352         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15353         Is_Abstract_Type. Make sure these are called only when appropriate.
15354         (Has_Pragma_Unreferenced_Objects): New flag
15355
15356         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15357         class-wide, the tag of the right-hand side must be an exact match, not
15358         an ancestor of that of the object on left-hand side.
15359         (Move_Activation_Chain): New procedure to create the call to
15360         System.Tasking.Stages.Move_Activation_Chain.
15361         (Expand_N_Extended_Return_Statement): Generate code to call
15362         System.Finalization_Implementation.Move_Final_List at the end of a
15363         return statement if the function's result type has controlled parts.
15364         Move asserts to Build_In_Place_Formal.
15365         (Move_Final_List): New function to create the call statement.
15366         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15367         tagged type, replace generation of call to the run-time subprogram
15368         CW_Membership by call to Build_CW_Membership.
15369         (Expand_N_Return_Statement): Replace generation of call to the run-time
15370         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15371         (Expand_N_Simple_Function_Return): Replace generation of call to the
15372         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15373
15374         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15375         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15376         access to protected operations.
15377         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15378         master and chain actual parameters to a build-in-place function call
15379         involving tasks.
15380         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15381         statement.
15382         (Make_Build_In_Place_Call_In_Allocator,
15383         Make_Build_In_Place_Call_In_Anonymous_Context,
15384         Make_Build_In_Place_Call_In_Assignment,
15385         Make_Build_In_Place_Call_In_Object_Declaration): Call
15386         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15387         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15388         stubbed procedure with a null body, replace the call with a null
15389         statement without using the full inlining machinery, for efficiency
15390         and to avoid invalid values in source file table entries.
15391
15392         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15393         renamings of calls to build-in-place functions.
15394
15395         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15396         provides the functionality of RTE_Available to record components.
15397         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15398         to avoid undesired overloading.
15399         (Entity): New subprogram that returns the entity for the referened
15400         unit. If this unit has not been loaded, it returns Empty.
15401         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15402         Remove no longer used entities.
15403         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15404         (RE_Type_Specific_Data): New entity.
15405         (RE_Move_Any_Value): New entity.
15406         (RE_TA_A, RE_Get_Any_Type): New entities.
15407         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15408          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15409          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15410         (Entity): New subprogram that returns the entity for the referened
15411         unit. If this unit has not been loaded, it returns Empty.
15412         (RTE): Addition of a new formal that extends the search to the scopes
15413         of the record types found in the chain of the package.
15414
15415         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15416         "abstract subprograms must be visible" message, whether or not the type
15417         is an interface; that is, remove the special case for interface types.
15418         (Analyze_Function_Return): Remove error message "return of task objects
15419         is not yet implemented" because this is now implemented.
15420         (Create_Extra_Formals): Add the extra master and activation chain
15421         formals in case the result type has tasks.
15422         Remove error message "return of limited controlled objects is not yet
15423         implemented".
15424         (Create_Extra_Formals): Add the extra caller's finalization list formal
15425         in case the result type has controlled parts.
15426         (Process_Formals): In case of access formal types there is no need
15427         to continue with the analysis of the formals if we already notified
15428         errors.
15429         (Check_Overriding_Indicator): Add code to check overriding of predefined
15430         operators.
15431         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15432         flags for formals that do not require them,.
15433         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15434         hidden entity is use visible or directly visible.
15435         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15436         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15437         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15438         New_Overloaded_Entity): Split Is_Abstract flag into
15439         Is_Abstract_Subprogram and Is_Abstract_Type.
15440
15441         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15442         a return statement's finalization list to the caller's list, used for
15443         build-in-place functions with result type with controlled parts.
15444         Remove no longer used entities.
15445
15446         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15447         longer needed, because the full type is now limited, and therefore a
15448         pass-by-reference type.
15449         (Foreign_Task_Level): New constant.
15450
15451         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15452         move tasks from the activation chain belonging to a return statement to
15453         the one passed in by the caller, and update the master to the one
15454         passed in by the caller.
15455         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15456         of unactivated tasks, so we don't kill the ones that are being returned
15457         by a build-in-place function.
15458         (Create_Task): Ignore AI-280 for foreign threads.
15459
15460 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15461             Robert Dewar  <dewar@adacore.com>
15462             Bob Duff  <duff@adacore.com>
15463             Gary Dismukes  <dismukes@adacore.com>
15464
15465         * errout.adb (Unwind_Internal_Type): Use predicate
15466         Is_Access__Protected_Subprogram_Type.
15467
15468         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15469         (Freeze_Entity, packed array case): Do not override explicitly set
15470         alignment and size clauses.
15471         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15472         the enclosing subprogram is a child unit body that acts as a spec.
15473         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15474         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15475         Remove all code for DSP option
15476
15477         * layout.adb (Layout_Record_Type): Use First/
15478         Next_Component_Or_Discriminant
15479         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15480         to handle properly the anonymous access case.
15481
15482         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15483         for all access attributes, because overload resolution should work the
15484         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15485         causes the error message for the ambiguous "X'Access = Y'Access" and
15486         "X'Unrestricted_Access = Y'Access" and so forth to match.
15487         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15488         now that anonymous access to protected operations have their own kind.
15489         (Resolve_Attribute): In case of dispatching call check the violation of
15490         restriction No_Dispatching_Calls.
15491         (Check_Array_Type): Check new -gnatyA array index style option
15492
15493         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15494         attempt to derive from a synchronized tagged type.
15495         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15496         type, inherit the class-wide type already created, because it may
15497         already have been used in a self-referential anonymous access component.
15498         (Mentions_T): Recognize self-referential anonymous access components
15499         that use (a subtype of) the class-wide type of the enclosing type.
15500         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15501         Derived_Type for Prev formal on call to
15502         Check_Anonymous_Access_Components rather than Empty.
15503         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15504         a record extension in deciding whether to create a class-wide type,
15505         rather than just checking Tagged_Present.
15506         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15507         to stand-alone object declarations as well as component declarations.
15508         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15509         prevent accidental overwriting when enclosing package appears in
15510         a limited_with_clause.
15511         (Array_Type_Declaration): If the component type is an anonymous access,
15512         the associated_node for the itype is the type declaration itself.
15513         (Add_Interface_Tag_Components): Modified to support concurrent
15514         types with abstract interfaces.
15515         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15516         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15517         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15518         to complete the decoration of synchronized interface types. Add also
15519         a call to Check_Abstract_Interfaces to verify the ARM rules.
15520         (Derive_Interface_Subprograms): Modified to support concurrent types
15521         with abstract interfaces.
15522         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15523         mark, rather than delaying the full resolution depending on context.
15524         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15525         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15526         Array_Type_Declaration,Build_Derived_Record_Type,
15527         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15528         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15529         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15530         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15531         called only when appropriate.
15532         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15533         to private type.
15534         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15535         an itype reference for the anonymous designated subtype, to prevent
15536         scope anonmalies in gigi.
15537         (Build_Itype_Reference): New utility, to simplify construction of such
15538         references.
15539
15540 2007-04-06  Vincent Celier  <celier@adacore.com>
15541
15542         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15543         are suppressed, supply an initial dummy entry covering all possible
15544         source locations.
15545
15546         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15547         and start with only one, such as "-RTS=none".
15548         (Collect_Arguments): Do not check for sources outside of projects.
15549         Do not collect arguments if project is externally built.
15550         (Compile_Sources): Do nothing, not even check if the source is up to
15551         date, if its project is externally built.
15552         (Compile): When compiling a predefined source, add -gnatpg
15553         as the second switch, after -c.
15554         (Compile_Sources): Allow compilation of Annex J renames without -a
15555         (Is_In_Object_Directory): Check if the ALI file is in the object
15556         even if there is no project extension.
15557         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15558         gnatbind if the ALI file effectively exists.
15559         (Initialize): Add the directory where gnatmake is invoked in front of
15560         the path if it is invoked from a bin directory, even without directory
15561         information, so that the correct GNAT tools will be used when spawned
15562         without directory information.
15563
15564         * makeusg.adb: Change switch -S to -eS
15565         Add lines for new switches -we, -wn and -ws
15566         Add line for new switch -p
15567
15568         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15569         Treat_As_Error and there are warnings.
15570
15571         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15572         -gnatww Change gnatmake switch -S to -eS
15573         (Scan_Make_Switches): Code reorganisation. Process separately multi
15574         character switches and single character switches.
15575         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15576         False when switch is not recognized by gnatmake.
15577         (Scan_Make_Switches): Set Setup_Projects True when -p or
15578         --create-missing-dirs is specified.
15579
15580         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15581         renamings Calendar, Machine_Code, Unchecked_Conversion and
15582         Unchecked_Deallocation only when Renamings_Included is True.
15583
15584         * par.adb: Allow library units Calendar, Machine_Code,
15585         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15586         when -gnatg is not specified.
15587         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15588         there is no need to generate always a record_definition_node in case
15589         of synchronized interface types.
15590         (SIS_Entry_Active): Initialize global variable to False
15591         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15592         indicate cases where AI-447 says "not null" is legal.
15593
15594         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15595
15596         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15597         files with with several lines starting with the object fileb name.
15598         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15599         is specified.
15600         (Initialize): Add the directory where gprmake is invoked in front of the
15601         path, if it is invoked from a bin directory or with directory
15602         information, so that the correct GNAT tools will be used when invoked
15603         directly.
15604         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15605
15606         * vms_data.ads: Update switches/qualifiers
15607
15608 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15609             Thomas Quinot  <quinot@adacore.com>
15610
15611         * exp_aggr.adb:
15612         If the array component is a discriminated record, the array aggregate
15613         is non-static even if the component is given by an aggregate with
15614         static components.
15615         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15616         (Convert_Aggr_In_Allocator): If the allocator is for an access
15617         discriminant and the type is controlled. do not place on a finalization
15618         list at this point. The proper list will be determined from the
15619         enclosing object.
15620         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15621         initialize record controller if needed, before the components, to ensure
15622         that they are properly finalized.
15623         (Build_Record_Aggr_Code): For the case of an array component that has a
15624         corresponding array aggregate in the record aggregate, perform sliding
15625         if required.
15626
15627 2007-04-06  Javier Miranda  <miranda@adacore.com>
15628             Gary Dismukes  <dismukes@adacore.com>
15629             Ed Schonberg  <schonberg@adacore.com>
15630
15631         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15632         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15633
15634         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15635         accessibility on class-wide allocators if the allocator occurs at the
15636         same scope level as the allocator's type. The check is guaranteed to
15637         succeed in that case, even when the expression originates from a
15638         parameter of the containing subprogram.
15639         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15640         under No_Dispatching_Calls restriction. During the semantic analysis
15641         we already notified such violation.
15642         (Tagged_Membership): Constant folding. There is no need to check
15643         the tag at run-time if the type of the right operand is non
15644         class-wide abstract.
15645         Replace call to Is_Ancestor by call to Is_Parent
15646         to support concurrent types with interface types.
15647         (Expand_N_Allocator): Add an assertion associated with the generation
15648         of the master_id.
15649         (Expand_N_Slice): Do not enable range check to nodes associated
15650         with the frontend expansion of the dispatch table.
15651         (Is_Local_Access_Discriminant): Subsidiary function to
15652         Expand_N_Allocator.
15653         (Tagged_Membership): Replace generation of call to the run-time
15654         subprogram CW_Membership by call to Build_CW_Membership.
15655         (Expand_Allocator_Expression): Replace generation of call to the
15656         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15657
15658         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15659         initialize most the TSD components by means of an aggregate.
15660         Modify the declaration of the object containing the TSD
15661         because we now expand code that has a higher level of abstraction.
15662         The TSD has a discriminant containing the Inheritance Depth Level,
15663         value that is used in the membership test but also to fix the size
15664         of the table of ancestors.
15665         (Expand_Interface_Conversion): Insert function body at the closest place
15666         to the conversion expression, to prevent access-before-elaboration
15667         errors in the backend.
15668         Code improved to reduce the size of the dispatch table if
15669         compiling under restriction No_Dispatching_Calls plus code cleanup.
15670         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15671         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15672         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15673         code to return immediately if compiling under No_Dispatching_Calls
15674         restriction.
15675         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15676         CPP_Virtual and CPP_Vtable are no longer supported.
15677         (Expand_Interface_Conversion): Add missing support for interface type
15678         derivations.
15679         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15680         Is_Parent to support concurrent types with interfaces.
15681         (Init_Predefined_Interface_Primitives): Removed.
15682         (Make_Secondary_DT): Modified to support concurrent record types.
15683         (Set_All_DT_Position): Modified to support concurrent record types.
15684         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15685         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15686         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15687         with CW_Membership.
15688         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15689         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15690         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15691         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15692         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15693         (Expand_Dispatching_Call): Replace generation of call to the run-time
15694         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15695         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15696         Address.
15697         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15698         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15699         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15700         Build_Set_Prim_Op_Address.
15701         (Get_Remotely_Callable): Subprogram removed.
15702         (Init_Predefined_Interface_Primitives): Replace generation of call to
15703         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15704         Prims.
15705
15706         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15707         First (Parameter_Associations ()) with the call to First_Actual that
15708         returns an actual parameter expression for both named and positional
15709         associations.
15710
15711         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15712         check violation of restriction No_Dispatching_Calls.
15713         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15714         controlling argument.
15715
15716         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15717         First/Next_Component_Or_Discriminant
15718         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15719         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15720         specify Any_Limited_Interface, and this functionality is already
15721         provided by the function Has_Abstract_Interfaces.
15722         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15723         support concurrent types implementing interfaces.
15724         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15725         specify kind Any_Limited_Interface, and this functionality is already
15726         provided by the function Has_Abstract_Interfaces.
15727         (Remove_Side_Effects): replace Controlled_Type by
15728         CW_Or_Controlled_Type whenever the issue is related to
15729         using or not the secondary stack.
15730
15731         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15732         P_Interface_Type_Definition to fulfill the new interface (the formal
15733         Is_Synchronized is no longer required).
15734
15735         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15736         Update dependencies.
15737
15738         * exp_atag.ads, exp_atag.adb: New file
15739
15740 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15741             Bob Duff  <duff@adacore.com>
15742             Cyrille Comar  <comar@adacore.com>
15743
15744         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15745         anonymous, use finalization list of enclosing dynamic scope.
15746         (Expand_N_Package_Declaration): For a library package declaration
15747         without a corresponding body, generate RACW subprogram bodies in the
15748         spec (just as we do for the task activation call).
15749         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15750         Is_Abstract_Type. Make sure these are called only when appropriate.
15751         Remove all code for DSP option
15752         (CW_Or_Controlled_Type): new subprogram.
15753
15754 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15755             Ed Schonberg  <schonberg@adacore.com>
15756             Gary Dismukes  <dismukes@adacore.com>
15757
15758         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15759         parameter. If it is set to true, return a result capped according to
15760         the global upper bound for the index of an entry family.
15761         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15762         (Build_Find_Body_Index): Adjust for above change.
15763         (Entry_Index_Expression): Likewise.
15764         (Is_Potentially_Large_Family): New function extracted from...
15765         (Collect_Entry_Families): ...here. Call it to detect whether the family
15766         is potentially large.
15767         (Build_Entry_Count_Expression): If the family is potentially large, call
15768         Family_Size with 'Cap' set to true.
15769         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15770         a protected version of an operation declared in the private part of
15771         a protected object, because they may be invoked through a callback.
15772         (Set_Privals): If the type of a private component is an anonymous access
15773         type, do not create a new itype for each protected body.
15774         If the body of a protected operation creates
15775         controlled types (including allocators for class-widetypes), the
15776         body of the corresponding protected subprogram must include a
15777         finalization list.
15778         (Build_Activation_Chain_Entity): Build the chain entity for extended
15779         return statements.
15780         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15781         to determine whether operation overrides an inherited primitive.
15782         (Build_Wrapper_Spec): Add code to examine the parents while looking
15783         for a possible overriding candidate.
15784         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15785         hold an actual parameter value since its initialization is separated
15786         from the the declaration. Prevents errors on null-excluding access
15787         formals.
15788
15789 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15790             Pablo Oliveira  <oliveira@adacore.com>
15791
15792         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15793         Do an Unchecked_Conversion to handle the passage from the Underlying
15794         Type to the Base Type when calling Build_To_Any_Call and
15795         Build_From_Any_Call.
15796         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15797         E_Constant, depending upon Variable formal.
15798         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15799         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15800         parameter that requires an extra constrained parameter, declare
15801         temporary for actual as a variable, not a constant.
15802         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15803         the unit being compiled is the one that contains the stub type.
15804         Change primitive operation name for the RACW associated with a RAS
15805         from Call to _Call so it cannot clash with any legal identifier.
15806         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15807         Is_RAS.
15808         (Append_RACW_Bodies): New subprogram.
15809         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15810         Add_Receiving_Stubs_To_Declarations functions.
15811         When expanding a package body, this list correspond to the
15812         statements in the HSS at the end of the pacakge.
15813         When expanding a package spec, this list correspond to the
15814         spec declarations.
15815         (Add_Receiving_Stubs_To_Declarations): Append the function
15816         registering the receiving stubs at the end of the 'Stmts' list.
15817         (RCI_Package_Locator): Pass the new Version generic formal when
15818         instantiating a RCI_Locator package.
15819         (Build_From_Any_Function): To compute the High bound for an
15820         unconstrained array actual, we add the Low bound with the length.
15821         Thus we must convert the low bound and the length to an appropriate
15822         type before doing the sum.
15823         (Build_Subprogram_Receiving_Stubs, PolyORB):
15824          * Retrieve the extra formals parameters at the
15825            end of the parameter stream.
15826          * Use Move_Any_Value to write back out parameters
15827            after executing the request as it is more efficient
15828            than Copy_Any_Value.
15829          * Build the any containing Extra Formals with the
15830            appropriate typecode.
15831         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15832         empty Component_List.
15833         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15834         the tree the declaration for an object that serves as actual parameter
15835         in server-side stubs.
15836         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15837         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15838         Use Build_Actual_Object_Declaration to prepare the actuals.
15839         (Add_Parameter_To_NVList): Set the parameter mode to In for
15840         Extra Constrained Parameters.
15841         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15842         Extra Constrained parameters.
15843         (Build_To_Any_Function, Build_From_Any_Function,
15844         Built_TypeCode_Function): When Typ is implicit, call the correct
15845         function with the first not implicit parent type.
15846         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15847         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15848         typecode from the Etype. Therefore we retrieve the correct typecode
15849         with a call to Get_Any_Type.
15850         (Copy_Specification): Do controlling formal type substitution based on
15851         Is_Controlling_Formal flag, instead of caller-provided object type.
15852         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15853         a RACW primitive operation, we might get a subprogram declaration for an
15854         ancestor of the RACW designated type (not for the designated type
15855         itself), in the case where this operation is inherited. In this case we
15856         have no easy means of determining the original tagged type for which
15857         the primitive was declared, so instead we now rely on
15858         Copy_Specification to use the Is_Controlling_Formal flag to determine
15859         which formals require type substitution.
15860
15861 2007-04-06  Robert Dewar  <dewar@adacore.com>
15862             Ed Schonberg  <schonberg@adacore.com>
15863
15864         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15865         GNAT.Current_Exception are not allowed if pragma Restrictions
15866         (No_Exception_Propagation) is set and in any case make the associated
15867         handler unsuitable as a target for a local raise statement.
15868         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15869         run-time subprogram CW_Membership by call to Build_CW_Membership.
15870         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15871         by a function call, a temporary must be created before expanding the
15872         Constructor_Call itself, to prevent out-of-order elaboration in the
15873         back-end when stack checking is enabled..
15874
15875 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15876
15877         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15878         result are the bounds of the left operand, not the right.
15879
15880 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15881
15882         * exp_strm.adb
15883         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15884          discriminant defaults.
15885         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15886         (Make_Component_List_Attributes): Ditto.
15887
15888 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15889             Bob Duff  <duff@adacore.com>
15890
15891         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15892         an association with a box as providing a value even though the
15893         initialization procedure for the type is not available.
15894         (Resolve_Record_Aggregate): Check that a choice of an association with a
15895         box corresponds to a component of the type.
15896         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15897         Is_Abstract_Subprogram and Is_Abstract_Type.
15898
15899         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15900         assert.
15901
15902         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15903         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15904         called only when appropriate.
15905
15906 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15907
15908         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15909         associated vector view instead of all to the unsigned char view.
15910
15911         * g-altcon.adb (Generic_Conversions): New internal generic package,
15912         offering facilities for all the Vector/View conversion routines
15913         implemented by this unit.
15914         (To_View/To_Vector - all versions): Reimplemented in a systematic
15915         manner, using the internal Generic_Conversions facilities.
15916
15917 2007-04-06  Pascal Obry  <obry@adacore.com>
15918
15919         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15920         string.
15921         (Create): Free the source string before storing the new one.
15922
15923 2007-04-06  Vincent Celier  <celier@adacore.com>
15924
15925         * g-debpoo.adb (Validity): New package with a complete new
15926         implementation of subprograms Is_Valid and Set_Valid.
15927         (Is_Valid): Move to local package Validity
15928         (Set_Valid): Move to local package Validity
15929
15930 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15931             Pablo Oliveira  <oliveira@adacore.com>
15932
15933         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15934         we must ensure that there is enough place for the new data we are going
15935         to copy in.
15936
15937 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15938
15939         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15940         computation.
15941
15942 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15943             Vincent Celier  <celier@adacore.com>
15944
15945         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15946         (Stack_String): Add this String that contains the name of the Stack
15947         package in the project file.
15948         (Packages_To_Check_By_Stack): Add this list that contains the packages
15949         to be checked by gnatstack, which are the naming and the stack packages.
15950         (Check_Files): If no .ci files were specified for gnatstack we add all
15951         the .ci files belonging to the projects, including binder generated
15952         files.
15953         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15954         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15955         Add gnatstack to the list of commands that use project file related
15956         switches, and get the single attribute Switches from the stack package
15957         in a project file when calling gnatstack. Parse the -U flag for
15958         processing files belonging to all projects in the project tree.
15959         Remove all processing for command Setup
15960
15961         * prj-attr.adb: Add new package Stack with single attribute Switches
15962
15963         * vms_conv.ads (Command_Type): Add command Stack.
15964         Move to body declarations that are only used in the body: types Item_Id,
15965         Translation_Type, Item_Ptr, Item and its subtypes.
15966
15967         * vms_conv.adb: (Initialize): Add data for new command Stack.
15968         Add declarations moved from the spec: types Item_Id, Translation_Type,
15969         Item_Ptr, Item and its subtypes.
15970         (Cargs_Buffer): New table
15971         (Cargs): New Boolean global variable
15972         (Process_Buffer): New procedure to create arguments
15973         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15974          value of Cargs.
15975         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15976         COMPILE
15977         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15978         empty, for table Cargs_Buffer.
15979         (Initialize): Remove component Setup in Command_List
15980
15981 2007-04-06  Vincent Celier  <celier@adacore.com>
15982
15983         * gprep.adb (Process_Files.Process_One_File): Use full file name when
15984         issuing pragma Source_Reference.
15985
15986 2007-04-06  Emmanuel Briot  <briot@adacore.com>
15987
15988         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15989         [[:xdigit:]] character class.
15990         Also raise an exception when an invalid character class is used.
15991
15992 2007-04-06  Pascal Obry  <obry@adacore.com>
15993
15994         * i-cstrea.ads: (fopen): Add encoding parameter.
15995         (freopen): Idem.
15996         Change reference from a-sysdep.c to sysdep.c in comment.
15997         Update copyright notice.
15998         This set of patch add support for the encoding form parameter.
15999
16000         * mingw32.h (S2WSU): New macro to convert from a string to a
16001         wide-string using the UTF-8 encoding. The S2WS macro supports now only
16002         standard 8bits encoding.
16003         (WS2SU): As above but converting from wide-sring to string.
16004         This is needed as it is necessary to have access to both versions in the
16005         runtime for the form parameter encoding support.
16006         This set of patch add support for the encoding form parameter.
16007         (S2WS): Improve implementation to handle cases where the filename is not
16008         UTF-8 encoded. In this case we default to using the current code page
16009         for the conversion.
16010
16011         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16012         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16013         the constants defined in adaint.h.
16014         (fopen): Add encoding parameter.
16015         (freopen): Idem.
16016
16017         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16018         encoding. This is needed for the Reset routine (freopen low level-call).
16019
16020         * s-fileio.adb (Open): Decode encoding form parameter and set the
16021         corresponding encoding value into AFCB structure.
16022         (Reset): Pass the encoding value to freopen.
16023         (Close): Move the call to Lock_Task to the beginning of the procedure.
16024
16025 2007-04-06  Geert Bosch  <bosch@adacore.com>
16026             Robert Dewar  <dewar@adacore.com>
16027
16028         * i-fortra.ads: Add Double_Complex type.
16029
16030         * impunit.adb: (Is_Known_Unit): New function
16031         Add Gnat.Byte_Swapping
16032         Add GNAT.SHA1
16033         Add new Ada 2005 units
16034         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16035         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16036         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16037         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16038
16039         * impunit.ads (Is_Known_Unit): New function
16040
16041         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16042         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16043         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16044         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16045         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16046         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16047         New files.
16048
16049         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16050
16051         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16052
16053 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16054             Arnaud Charlet  <charlet@adacore.com>
16055
16056         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16057         __gnat_adjust_context_for_raise.
16058         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16059         implementation of floating point operations as native x86 targets.
16060         So the FPU should be initialized in the same way using finit. Fix
16061         floating point operations accuracy issues.
16062         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16063         member in struct sigaction, so as to avoid warning for incompatible
16064         pointer types.
16065
16066 2007-04-06 Serguei Rybin  <rybin@adacore.com>
16067
16068         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16069         switches from previously loaded tree
16070
16071 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16072
16073         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16074         cases where a given dependency has a body or not.
16075         (Write_With_File_Names): New subprogram, common code for the two cases
16076         above.
16077
16078 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16079             Javier Miranda  <miranda@adacore.com>
16080
16081         * lib-xref.ads, lib-xref.adb:
16082         Modify the loop that collects type references, to include interface
16083         types that the type implements. List each of these interfaces when
16084         building the entry for the type.
16085         (Generate_Definition): Initialize component Def and Typ of new entry
16086         in table Xrefs, to avoid to have these components unitialized.
16087         (Output_References): Split Is_Abstract flag into
16088         Is_Abstract_Subprogram and Is_Abstract_Type.
16089         (Generate_Reference): Add barrier to do not generate the warning
16090         associated with Ada 2005 entities with entities generated by the
16091         expander.
16092
16093 2007-04-06  Robert Dewar  <dewar@adacore.com>
16094             Arnaud Charlet  <charlet@adacore.com>
16095             Vincent Celier  <celier@adacore.com>
16096
16097         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16098         Update 'Exception Handling Control' chapter which was outdated.
16099         Minor fix to documentation of -gnatwq
16100         Remove section "Adapting the Run Time to a New C++ Compiler" because
16101         it is now obsolete.
16102         Add passage on need of -nostart-files in some non-ada-main cases.
16103         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16104         Update documentation about Interfacing with C++
16105         Add documentation for new gnatmake switch -p
16106         Add missing protocol part in URLs.
16107         Document -gnatyA
16108         Document pragma Compile_Time_Error
16109         Add documentation for Object_Size indicating that stand alone
16110         objects can have a larger size in some cases.
16111         Add node for GNAT.Byte_Swapping, GNAT.SHA1
16112         Update reference to the Ravenscar profile.
16113         Document pragma Unreferenced_Objects
16114
16115         * gnat-style.texi: Fix typo
16116
16117 2007-04-06  Vincent Celier  <celier@adacore.com>
16118
16119         * mlib.adb (Building_Library): Only output "building a library..." in
16120         verbose mode
16121
16122         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16123         files in verbose mode.
16124
16125         * mlib-utl.adb (Ar): Only output the first object files when not in
16126         verbose mode.
16127         (Gcc): Do not display all the object files if not in verbose mode, only
16128         the first one.
16129
16130 2007-04-06  Robert Dewar  <dewar@adacore.com>
16131
16132         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16133         it no longer destroys the contents of Name_Buffer or Name_Len and
16134         non-standard and invalid names are handled better.
16135         (Get_Decoded_Name_String): Improve performance by using
16136         Name_Has_No_Encodings flag in the name table.
16137         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16138         Used for debugging printouts.
16139
16140 2007-04-06  Robert Dewar  <dewar@adacore.com>
16141             Javier Miranda  <miranda@adacore.com>
16142             Bob Duff  <duff@adacore.com>
16143
16144         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16145         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16146         there is no need to generate always a record_definition_node in case
16147         of synchronized interface types.
16148         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16149         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16150         illegal in Ada 95, in cases where it is legal. Change the warnings to
16151         errors in other cases. Don't give the error unless the "not null"
16152         parses properly. Correct the source position at which the error occurs.
16153         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16154         P_Null_Exclusion, to suppress "not null" warnings.
16155         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16156         associated goto statements.
16157
16158         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16159         of END RECORD
16160
16161         * scans.ads (Type_Token_Location): New flag
16162
16163         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16164         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16165         P_Null_Exclusion, to suppress "not null" warnings.
16166
16167 2007-04-06  Robert Dewar  <dewar@adacore.com>
16168             Javier Miranda  <miranda@adacore.com>
16169             Bob Duff  <duff@adacore.com>
16170             Vincent Celier  <celier@adacore.com>
16171
16172         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16173         (Extensions_Allowed): No longer sets Ada_Version
16174         Entry for pragma Unreferenced_Objects
16175
16176         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16177         system.tasking if pragma priority used in a procedure
16178         (Analyze_Pragma, case Warning): Handle dot warning switches
16179         (Process_Compile_Time_Warning_Or_Error): New procedure
16180         (Analyze_Pragma): Add processing for Compile_Time_Error
16181         Add support for extra arguments External_Name and Link_Name.
16182         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16183         (Process_Import_Or_Interface): Add support for the use of pragma Import
16184         with tagged types.
16185         (Extensions_Allowed): No longer affects Ada_Version
16186         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16187         Is_Abstract_Type. Make sure these are called only when appropriate.
16188         Add processing for pragma Unreferenced_Objects
16189
16190         * snames.h, snames.ads, snames.adb: Add entry for pragma
16191         Compile_Time_Error
16192         Add new standard name Minimum_Binder_Options for new gprmake
16193         Add new standard names for gprmake: Archive_Suffix,
16194         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16195         Library_Support, Library_Version_Options,
16196         Shared_Library_Minimum_Options,
16197         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16198         Change Name_Call to Name_uCall so that it cannot clash with a legal
16199         subprogram name.
16200         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16201         Append C_Plus_Plus to convention identifiers as synonym for CPP
16202         Add new standard names Stack and Builder_Switches
16203         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16204         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16205         Run_Path_Option, Toolchain_Version.
16206         Entry for pragma Unreferenced_Objects
16207
16208         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16209         switches, without repetition of "eD". Make sure that last character of
16210         -gnatep= switch is not taken as -gnat switch character.
16211         Complete rewrite of circuit for handling saving compilation options
16212         Occasioned by need to support dot switchs for -gnatw, but cleans up
16213         things in general.
16214         -gnatX does not affect Ada_Version
16215         Include -gnatyA in -gnatg style switches
16216
16217         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16218         warnings on return objects.
16219         (Warn_On_Useless_Assignment): Exclude warnings on return objects
16220         (Set_Dot_Warning_Switch): New procedure
16221         (Check_References): Add missing case of test for
16222         Has_Pragma_Unreferenced_Objects
16223         (Output_Unreferenced_Messages): Implement effect of new pragma
16224         Unreferenced_Objects, remove special casing of limited controlled
16225         variables.
16226
16227 2007-04-06  Vincent Celier  <celier@adacore.com>
16228
16229         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16230         the default project path, initially done during elaboration of the
16231         package.
16232         If the prefix returned by Sdefault is null, get the prefix from a call
16233         to Executable_Prefix_Path.
16234         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16235         null.
16236
16237         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16238         canonical directory name to open the directory from which files are
16239         retrieved.
16240         (Record_Other_Sources): Idem.
16241         (Locate_Directory): Add the possibility to create automatically missing
16242         directories when Setup_Projects is True.
16243         Call Locate_Directory so that the directory will be created when
16244         Setup_Projects is True, for object dir, library dir, library ALI dir,
16245         library source copy dir and exec dir.
16246
16247         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16248         versions of GNAT.
16249
16250 2007-04-06  Robert Dewar  <dewar@adacore.com>
16251
16252         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16253         Use First/Next_Component_Or_Discriminant
16254         (Analyze_Record_Representation_Clause):
16255         Use First/Next_Component_Or_Discriminant
16256         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16257         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16258         definition if type is unconstrained.
16259         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16260         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16261         Is_Abstract_Subprogram and Is_Abstract_Type.
16262         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16263
16264         * repinfo.adb (List_Record_Info): Use First/
16265         Next_Component_Or_Discriminant.
16266
16267         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16268         New procedure.
16269
16270         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16271         Include -gnatyA in default switches
16272
16273         * opt.ads: (Warn_On_Non_Local_Exception): New flag
16274         (Warn_On_Reverse_Bit_Order): New flag
16275         (Extensions_Allowed): Update the documentation.
16276         (Warn_On_Questionable_Missing_Parens): Now on by default
16277
16278         * usage.adb: Add documentation of -gnatw.x/X switches
16279         Document new -gnatyA style switch
16280         -gnatq warnings are on by default
16281
16282 2007-04-06  Ed Falis  <falis@adacore.com>
16283
16284         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16285         full word is no longer compared twice.
16286
16287 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16288
16289         * sem_ch10.adb (Install_Limited_Context_Clauses.
16290         Expand_Limited_With_Clause): Use a new copy of selector name in the
16291         call to Make_With_Clause. This fixes the tree structure for ASIS
16292         purposes. Nothing is changed in the compiler behaviour.
16293         (Process_Body_Clauses): Handle properly use clauses whose prefix is
16294         a package renaming.
16295         (Install_Limited_With_Clauses): Do not install non-limited view when it
16296         is still incomplete.
16297
16298 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16299             Gary Dismukes  <dismukes@adacore.com>
16300
16301         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16302         when capturing size information, instead of base type, which for a
16303         formal array type will be the unconstrained type.
16304         (Analyze_Formal_Object_Declaration): Add check for illegal default
16305         expressions for a formal in object of a limited type.
16306         (Instantiate_Object): Ditto.
16307         (Check_Formal_Package_Instance): Skip entities that are formal objects,
16308         because they were defaulted in the formal package and no check applies
16309         to them.
16310         (Check_Formal_Package_Instance): Extend conformance check to other
16311         discrete types beyond Integer.
16312         (Process_Default): Copy directly the unmatched formal. A generic copy
16313         has already been performed in Analyze_Formal_Package.
16314         (Analyze_Associations): If a formal subprogram has no match, check for
16315         partial parametrization before looking for a default, to prevent
16316         spurious errors.
16317         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16318         not set the instantiation environment before analyzing the actuals.
16319         Fixes regression on 8515-003 with implementation of AI-133.
16320         Set_Instance_Env checks whether the generic unit is a predefined
16321         unit, in which case the instance must be analyzed with the latest Ada
16322         mode. This setting must take place after analysis of the actuals,
16323         because the actuals must be analyzed and frozen in the Ada mode extant
16324         outside of the current instantiation.
16325         (Save_Env, Restore_Env): Preserve and restore the configuration
16326         parameters so that predefined units can be compiled in the proper Ada
16327         mode.
16328         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16329         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16330         and Is_Abstract_Type.
16331         (Analyze_Formal_Package): For better error recovery, Add exception
16332         handler to catch Instantion_Error, which can be raised in
16333         Analyze_Associations
16334
16335 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16336             Bob Duff  <duff@adacore.com>
16337             Gary Dismukes  <dismukes@adacore.com>
16338
16339         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16340         prefix type is a discriminated subtype of the type of the formal.
16341         (Analyze_Allocator): Collect all coextensions regardless of the context.
16342         Whether they can be allocated statically is determined in exp_ch4.
16343         (Analyze_Selected_Component): If the prefix is a limited view and the
16344         non-limited view is available, use the non-limited one.
16345         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16346         therefore illegal), suggest a qualified expression rather than a type
16347         conversion, because a type conversion would be illegal in this context.
16348         (Anayze_Allocator): Trace recursively all nested allocators so that all
16349         coextensions are on the corresponding list for the root. Do no mark
16350         coextensions if the root allocator is within a declaration for a stack-
16351         allocated object, because the access discriminants will be allocated on
16352         the stack as well.
16353         (Analyze_Call): Remove restriction on calls to limited functions for the
16354         cases of generic actuals for formal objects, defaults for formal objects
16355         and defaults for record components.
16356         (Analyze_Allocator): Before analysis, chain coextensions on the proper
16357         element list. Their expansion is delayed until the enclosing allocator
16358         is processed and its finalization list constructed.
16359         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16360         for an operation with the given name among the primitive operations of
16361         the corresponding record type.
16362         (Analyze_Selected_Component): If the prefix is a task type that
16363         implements an interface, and there is no entry with the given name,
16364         check whether there is another primitive operation (e.g. a function)
16365         with that name.
16366         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16367         properly the indexing of a function call written in prefix form, where
16368         the function returns an array type, and all parameters of the function
16369         except the first have defaults.
16370         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16371         the original operands, rather than relocating them, for efficiency and
16372         to work properly when an operand is overloaded.
16373         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16374         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16375         (Analyze_Selected_Component): If the prefix is a private extension, only
16376         scan the visible components, not those of the full view.
16377         (Try_Primitive_Operation): If the operation is a procedure, collect all
16378         possible interpretations, as for a function, because in the presence of
16379         classwide parameters several primitive operations of the type can match
16380         the given arguments.
16381
16382 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16383             Robert Dewar  <dewar@adacore.com>
16384
16385         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16386         tag-indeterminate call to an abstract function, when the left-hand side
16387         is not classwide.
16388         (Analyze_Loop_Statement): Improve detection of infinite loops
16389
16390 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16391             Thomas Quinot  <quinot@adacore.com>
16392
16393         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16394         out of Analyze_Package_Declaration, because processing must be applied
16395         to package bodies as well, for deferred constants completed by pragmas.
16396         (Analyze_Package_Declaration): When the package declaration being
16397         analyzed does not require an explicit body, call Check_Completion.
16398         (May_Need_Implicit_Body): An implicit body is required when a package
16399         spec contains the declaration of a remote access-to-classwide type.
16400         (Analyze_Package_Body): If the package contains RACWs, append the
16401         pending subprogram bodies generated by exp_dist at the end of the body.
16402         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16403         Is_Abstract_Subprogram and Is_Abstract_Type.
16404         (Preserve_Full_Attributes): The full entity list is not an attribute
16405         that must be preserved from full to partial view.
16406
16407         * sem_dist.adb (Add_RAS_Dereference_TSS):
16408         Change primitive name to _Call so it cannot clash with any legal
16409         identifier, and be special-cased in Check_Completion.
16410         Mark the full view of the designated type for the RACW associated with
16411         a RAS as Comes_From_Source to get proper view switching when installing
16412         private declarations.
16413         Provite a placeholder nested package body along with the nested spec
16414         to have a place for Append_RACW_Bodies to generate the calling stubs
16415         and stream attributes.
16416
16417 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16418             Robert Dewar  <dewar@adacore.com>
16419
16420         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16421         that is a limited view, check the non-limited view if available.
16422         (Undefined): Refine error message for missing with of Text_IO
16423         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16424         to distinguish real missing with cases.
16425         Fix format of all missing with messages
16426         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16427         renaming as body when renamed entity is abstract.
16428
16429 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16430             Javier Miranda  <miranda@adacore.com>
16431
16432         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16433         predicate recursive, to handle complex expressions on literals whose
16434         spurious ambiguity comes from the abstract interpretation of some
16435         subexpression.
16436         (Interface_Present_In_Ancestor): Add support to concurrent record
16437         types.
16438         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16439         Is_Abstract_Subprogram and Is_Abstract_Type.
16440
16441 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16442             Javier Miranda  <miranda@adacore.com>
16443
16444         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16445         dereference of a local object R created as a reference to another
16446         object O, use the access level of O.
16447         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16448         rather than local Same_Formal_Type, to check whether protected operation
16449         overrides an inherited one.
16450         (Same_Formal_Type): New predicate, used when matching signatures of
16451         overriding synchronized operations, to handle the case when a formal
16452         has a type that is a generic actual.
16453         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16454         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16455         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16456         syntactic ambiguities involving indexing of function calls that return
16457         arrays.
16458         (Abstract_Interface_List): New subprogram that returns the list of
16459         abstract interfaces associated with a concurrent type or a
16460         concurrent record type.
16461         (Interface_Present_In_Parent): New subprogram used to check if a
16462         given type or some of its parents implement a given interface.
16463         (Collect_Abstract_Interfaces): Add support for concurrent types
16464         with interface types.
16465         (Has_Abstract_Interfaces): Add support for concurrent types with
16466         interface types.
16467         (Is_Parent): New subprogram that determines whether E1 is a parent
16468         of E2. For a concurrent type its parent is the first element of its
16469         list of interface types; for other types this function provides the
16470         same result than Is_Ancestor.
16471         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16472         (Collect_Synchronized_Interfaces): Removed because the subprogram
16473         Collect_Abstract_Interfaces provides this functionality.
16474         (Collect_Abstract_Interfaces): Minor update to give support to
16475         concurrent types and thus avoid undesired code duplication.
16476         (Get_Subprogram_Entity): Handle entry calls.
16477         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16478         entry calls.
16479         (Enter_Name): Do not give -gnatwh hiding warning for record component
16480         entities, they never result in hiding.
16481
16482 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16483             Robert Dewar  <dewar@adacore.com>
16484
16485         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16486         to chain nested components that are allocators for access discriminants
16487         of the enclosing object.
16488         Add N_Push and N_Pop nodes
16489         New field Exception_Label added
16490         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16491         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16492         (Is_Coextension): New flag for allocators, to mark allocators that
16493         correspond to access discriminants of dynamically allocated objects.
16494         (N_Block_Statement): Document the fact that the corresponding entity
16495         can be an E_Return_Statement.
16496         (Is_Coextension): New flag for allocators.
16497         Remove all code for DSP option
16498
16499         * sprint.ads, sprint.adb: Display basic information for class_wide
16500         subtypes. Add handling of N_Push and N_Pop nodes
16501
16502 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16503
16504         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16505         before propagating exception.
16506
16507 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16508
16509         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16510         an address always within the call instruction from a return address.
16511
16512 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16513             Eric Botcazou  <botcazou@adacore.com>
16514
16515         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16516         expression with a COMPOUND_EXPR including the call instead of emitting
16517         the call directly here.
16518         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16519         high bound is constant and the slice is empty.  Tidy.
16520         (tree_transform, case N_Op_Not): Handle properly the case where the
16521         operation applies to a private type whose full view is a modular type.
16522         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16523         Address_Clause, use the associated Expression as the GNAT tree
16524         representing the choice value to ensure the corresponding GCC tree is
16525         of the proper kind.
16526         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16527         instead of just the operands, as the base GCC stabilize_reference does.
16528         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16529         requested; otherwise fail.
16530         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16531
16532 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16533
16534         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16535         implementation of UI_Div.
16536         (UI_Div): Reimplement as a call to UI_Div_Rem.
16537         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16538         remainder, avoiding the cost of a multiplication and a subtraction.
16539         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16540         provides both quotient and remainder in a single computation.
16541         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16542         functions for uint.
16543         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16544         is undefined if the given n is not inversible.
16545
16546 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16547
16548         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16549         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16550         opcodes.
16551
16552 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16553             Olivier Hainque  <hainque@adacore.com>
16554
16555         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16556         when updating the contents of the old pointer to an unconstrained array.
16557         (end_subprog_body): Set error_gnat_node to Empty.
16558         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16559         (unchecked_convert): For subtype to base type conversions, require that
16560         the source be a subtype if it is an integer type.
16561         (builtin_decls): New global, vector of available builtin functions.
16562         (gnat_pushdecl): Add global builtin function declaration nodes to the
16563         builtin_decls list.
16564         (gnat_install_builtins): Adjust comments.
16565         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16566         calling gnat_pushdecl, so that it knows when it handed a builtin
16567         function declaration node.
16568         (builtin_decl_for): Search the builtin_decls list.
16569
16570 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16571
16572         * s-stchop-vxworks.adb:
16573         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16574
16575 2007-04-06  Robert Dewar  <dewar@adacore.com>
16576             Arnaud Charlet  <charlet@adacore.com>
16577
16578         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16579
16580         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16581         of files
16582         Add mention of -Sev (set initialize_scalars option from environment
16583         variable at run time) in gnatbind usage message.
16584
16585         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16586
16587         * fname-uf.ads: Minor comment fix
16588
16589         * osint.ads: Change pragma Elaborate to Elaborate_All
16590
16591         * par-load.adb: Add documentation.
16592
16593         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16594
16595         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16596
16597         * s-secsta.ads: Extra comments
16598
16599         * s-soflin.ads: Minor comment fixes
16600
16601         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16602
16603         * s-wchcon.ads: Minor comment addition
16604
16605         * treepr.adb: Minor change in message
16606         (Print_Name,Print_Node): Make these debug printouts more robust: print
16607         "no such..." instead of crashing on bad input.
16608
16609 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
16610
16611         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16612         instead of gnat_signed_or_unsigned_type.
16613         * utils.c (gnat_signed_or_unsigned_type): Remove.
16614         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16615         * gigi.h (gnat_signed_or_unsigned_type): Remove
16616
16617 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16618
16619         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16620         fold with the result of buildN.
16621         * decl.c (gnat_to_gnu_entity): Likewise.
16622         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16623         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16624         Likewise.
16625         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16626         nonbinary_modular_operation, build_binary_op, build_unary_op,
16627         build_cond_expr): Likewise.
16628
16629         * utils.c (convert): Use fold_build1 when casting values to void.
16630         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16631         fold_convert instead of convert when appropriate.
16632
16633 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16634
16635         * Make-lang.in: Add install-pdf target as copied from
16636         automake v1.10 rules.
16637
16638 2007-02-28  Andreas Schwab  <schwab@suse.de>
16639
16640         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16641         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16642         (doc/gnat-style.info): Likewise.
16643
16644 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16645
16646         * gnat-style.texi: Standardize title page.
16647         * gnat_rm.texi: Likewise.
16648         * gnat_ugn.texi: Likewise.
16649
16650 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16651
16652         * decl.c (annotate_value): Adjust for refactoring of tree_map
16653         hierarchy.
16654
16655 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16656
16657         * decl.c (annotate_value): Adjust for refactoring of tree_map
16658         hierarchy.
16659
16660 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16661
16662         PR ada/18819
16663         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16664         untagged derived type, add hidden components to keep discriminant
16665         layout consistent, when a given discriminant of the derived type
16666         constraints several discriminants of the parent type.
16667
16668 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16669             Sandra Loosemore  <sandra@codesourcery.com>
16670
16671         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16672         build the call expression.
16673         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16674         * utils.c (max_size) <tcc_exceptional>: Delete.
16675         <tcc_vl_exp>: New case.
16676         <tcc_expression>: Delete CALL_EXPR subcase.
16677         (build_global_cdtor): Use build_call_nary instead of build3.
16678         * utils2.c (build_call_1_expr): Likewise.
16679         (build_call_2_expr): Likewise.
16680         (build_call_0_expr): Likewise.
16681         (build_call_alloc_dealloc): Likewise.
16682
16683 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16684
16685         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16686         get_action_description_for): Replace _Unwind_Word with _uleb128_t
16687         and _Unwind_SWord with _sleb128_t.
16688
16689 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16690
16691         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16692         * decl.c: Include gt-ada-decl.h.
16693         (annotate_value_cache): New.
16694         (annotate_value): Use it instead of TREE_COMPLEXITY.
16695
16696 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16697
16698         * misc.c, utils2.c: Fix comment typos.
16699
16700 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16701
16702         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16703         TREE_CONSTANT_OVERFLOW.
16704         (allocatable_size_p, annotate_value): Likewise.
16705         * trans.c (gnat_to_gnu): Likewise.
16706         * utils.c (unchecked_convert): Likewise.
16707         * utils2.c (build_simple_component_ref): Likewise.
16708
16709 2007-01-23  Richard Guenther  <rguenther@suse.de>
16710
16711         PR bootstrap/30541
16712         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16713         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16714         (gnatboot3): Likewise.
16715         (GNATBIND): Do not define.
16716         * Makefile.in (GNATBIND): Do not define.
16717
16718 2007-01-08  Richard Guenther  <rguenther@suse.de>
16719
16720         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16721         * trans.c (gnat_to_gnu): Likewise.
16722
16723 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16724
16725         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16726         * adaint.c: Likewise.
16727
16728 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16729
16730         Merge from gimple-tuples-branch:
16731         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16732
16733         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16734         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16735         GIMPLE_MODIFY_STMT.
16736
16737 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16738
16739         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16740         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16741         Fix typos.
16742
16743 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16744
16745         PR ada/27936
16746         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16747         if the initializer takes into account the padding.
16748
16749 2006-11-11  Richard Guenther  <rguenther@suse.de>
16750
16751         * trans.c (maybe_stabilize_reference): Remove handling of
16752         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16753
16754 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16755
16756         PR ada/29707
16757         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16758         (To_Target_Priority): New function.
16759
16760 2006-10-31  Robert Dewar  <dewar@adacore.com>
16761
16762         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16763         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16764         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16765         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16766         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16767         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16768         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16769         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16770         a-szbzha.adb: Minor reformatting. Fix header.
16771
16772         * a-numaux-x86.adb: Add parentheses for use of unary minus
16773         * a-ngcefu.adb: Supply missing parentheses for unary minus
16774         * a-ngcoty.adb: Add parens for use of unary minus
16775         * a-ngelfu.adb: Add missing parens for unary minus
16776         * a-tifiio.adb: Add parentheses for uses of unary minus
16777
16778 2006-10-31  Robert Dewar  <dewar@adacore.com>
16779             Bob Duff  <duff@adacore.com>
16780             Ed Schonberg  <schonberg@adacore.com>
16781
16782         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16783         with multiplying operator.
16784         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16785         pointer whether the context expects "any real type".
16786         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16787         universal_fixed "*" and "/" operators when they are used in a context
16788         that expects any real type. Also set the type of the node to
16789         Universal_Real in this case, because downstream processing requires it
16790         (mainly static expression evaluation).
16791         Reword some continuation messages
16792         Add some \\ sequences to continuation messages
16793         (Resolve_Call): Refine infinite recursion case. The test has been
16794         sharpened to eliminate some false positives.
16795         Check for Current_Task usage now includes entry barrier, and is now a
16796         warning, not an error.
16797         (Resolve): If the call is ambiguous, indicate whether an interpretation
16798         is an inherited operation.
16799         (Check_Aggr): When resolving aggregates, skip associations with a box,
16800         which are priori correct, and will be replaced by an actual default
16801         expression in the course of expansion.
16802         (Resolve_Type_Conversion): Add missing support for conversion from
16803         a class-wide interface to a tagged type. Minor code cleanup.
16804         (Valid_Tagged_Converion): Add support for abstact interface type
16805         conversions.
16806         (Resolve_Selected_Component): Call Generate_Reference here rather than
16807         during analysis, and use May_Be_Lvalue to distinguish read/write.
16808         (Valid_Array_Conversion): New procedure, abstracted from
16809         Valid_Conversion, to incorporate accessibility checks for arrays of
16810         anonymous access types.
16811         (Valid_Conversion): For a conversion to a numeric type occurring in an
16812         instance or inlined body, no need to check that the operand type is
16813         numeric, since this has been checked during analysis of the template.
16814         Remove legacy test for scope name Unchecked_Conversion.
16815
16816         * sem_res.ads: Minor reformatting
16817
16818         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16819         (PE_Current_Task_In_Entry_Body): New exception code
16820         (SE_Restriction_Violation): Removed, not used
16821
16822         * a-except.ads:  Update comments.
16823
16824         * types.h, types.ads: Add definition for Validity_Check
16825         (PE_Current_Task_In_Entry_Body): New exception code
16826         (SE_Restriction_Violation): Removed, not used
16827
16828 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16829
16830         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16831         error status.
16832
16833 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16834             Jose Ruiz  <ruiz@adacore.com>
16835
16836         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16837         part of Ada.Calendar: all subprogram raise Unimplemented.
16838         (Split_W_Offset): Temp function body, raising Unimplemented
16839
16840         * a-calend.ads, a-calend-vms.ads:
16841         Add imported variable Invalid_TZ_Offset used to designate targets unable
16842         to support time zones.
16843         (Unimplemented): Temporary function raised by the body of new
16844         subprograms below.
16845         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16846         unit provides handling of leap seconds and is used by the new Ada 2005
16847         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16848         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16849         version returns an extra value which is the offset to UTC.
16850
16851         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16852         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16853         (Split_W_Offset): New function body.
16854         (Time_Of): When a date is close to UNIX epoch, compute the time for
16855         that date plus one day (that amount is later substracted after
16856         executing mktime) so there are no problems with time zone adjustments.
16857
16858         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16859
16860         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16861         a-catizo.ads, a-catizo.adb: New files.
16862
16863         * impunit.adb: Add new Ada 2005 entries
16864
16865         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16866         Rename all occurences of "__gnat_localtime_r" to
16867         "__gnat_localtime_tzoff".
16868         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16869         zone data and calculate the GMT offset.
16870         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16871         Use the field "tm_gmtoff" to extract the GMT offset.
16872         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16873         the external variable "timezone" to calculate the GMT offset.
16874
16875 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16876             Jose Ruiz  <ruiz@adacore.com>
16877
16878         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16879         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16880         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16881         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16882         System.Any_Priority to a POSIX priority on the target.
16883
16884         * system-linux-ia64.ads:
16885         Extend range of Priority types on Linux to use the whole range made
16886         available by the system.
16887
16888         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16889         function maps from System.Any_Priority to a POSIX priority on the
16890         target.
16891         (PTHREAD_PRIO_PROTECT): Set real value.
16892         (PTHREAD_PRIO_INHERIT): Now a function.
16893         (SIGCPUFAIL): New signal.
16894         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16895         are documented as reserved by the OS.
16896
16897         * system-aix.ads: Use the full range of priorities provided by the
16898         system on AIX.
16899
16900         * s-taprop-posix.adb: Call new function To_Target_Priority.
16901         (Set_Priority): Take into account Task_Dispatching_Policy and
16902         Priority_Specific_Dispatching pragmas when determining if Round Robin
16903         must be used for scheduling the task.
16904
16905         * system-linux-x86_64.ads, system-linux-x86.ads,
16906         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16907         the whole range made available by the system.
16908
16909         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16910         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16911         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16912         when deallocating the TCB in order to avoid potential references to
16913         deallocated data.
16914         (Set_Priority): Take into account Task_Dispatching_Policy and
16915         Priority_Specific_Dispatching pragmas when determining if Round Robin
16916         or FIFO within priorities must be used for scheduling the task.
16917
16918         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16919         the Thread field (to be used internally by the run-time system) and the
16920         kernel-level task id in the LWP field (to be used by the debugger).
16921         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16922         instance, and propagate the current task options to the spawned task.
16923         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16924         (Initialize): Set Round Robin dispatching when the corresponding pragma
16925         is in effect.
16926
16927 2006-10-31  Robert Dewar  <dewar@adacore.com>
16928
16929         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16930         system-linux-hppa.ads, system-hpux-ia64.ads,
16931         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16932         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16933         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16934         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16935         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16936         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16937         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16938         Default_Bit_Order) to kill constant condition warnings for references
16939         to this switch.
16940
16941 2006-10-31  Vincent Celier  <celier@adacore.com>
16942             Eric Botcazou  <ebotcazou@adacore.com>
16943
16944         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16945         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16946         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16947         Ext_To, when building the library file name
16948
16949         * mlib-tgt-vxworks.adb: ditto.
16950         (Get_Target_Suffix): Add support for x86 targets.
16951
16952         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16953
16954         * mlib-tgt-darwin.adb:
16955         Use Append_To, instead of Ext_To, when building the library file name
16956         (Flat_Namespace): New global variable.
16957         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16958         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16959         (Link_Shared_Libgcc): Delete.
16960         (Build_Dynamic_Library): Adjust for above changes.
16961         Use Opt package.
16962         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16963
16964 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16965
16966         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16967         (Initialize): Add type conversions required by above change.
16968
16969 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16970
16971         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16972         (getpid): New body for this function that uses the underlying taskIdSelf
16973         function for VxWorks 5 and VxWorks 6 in kernel mode.
16974         (unsigned_int): New type, modular to allow logical bit operations.
16975         (taskOptionsGet): New imported function.
16976
16977         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16978         field to be compliant with the type used by the corresponding operating
16979         system primitive.
16980
16981 2006-10-31  Pascal Obry  <obry@adacore.com>
16982             Eric Botcazou  <ebotcazou@adacore.com>
16983             Vincent Celier  <celier@adacore.com>
16984
16985         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16986         ASCII version of the registry API. This is needed as the GNAT runtime
16987         is now UNICODE by default.
16988         Include version.h.
16989         (get_gcc_version): Do not hardcode the return value.
16990         (__gnat_file_time_name): On Windows properly set the default returned
16991         value to -1 which corresponds to Invalid_Time.
16992         (__gnat_fopen): New routine. A simple wrapper on all plateforms
16993          except on Windows where it does conversion for unicode support.
16994         (__gnat_freopen): Idem.
16995         (__gnat_locate_exec_on_path): If environment variable PATH does not
16996         exist, return a NULL pointer
16997
16998         * adaint.h: (__gnat_fopen): Declare.
16999         (__gnat_freopen): Likewise.
17000
17001         * mingw32.h (_tfreopen): Define this macro here for older MingW
17002         version.
17003         Activate the unicode support on platforms using a MingW runtime
17004         version 3.9 or newer.
17005
17006         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17007         This is needed for proper unicode support on Windows.
17008         (freopen): Idem.
17009
17010 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
17011             Nicolas Setton  <setton@adacore.com>
17012             Olivier Hainque  <hainque@adacore.com>
17013             Gary Dismukes  <dismukes@adacore.com>
17014
17015         * gigi.h: (tree_code_for_record_type): Declare.
17016         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17017         (get_global_renaming_pointers): Rename to
17018         invalidate_global_renaming_pointers.
17019         (static_ctors): Delete.
17020         (static_dtors): Likewise.
17021         (gnat_write_global_declarations): Declare.
17022         (create_var_decl): Adjust descriptive comment to indicate that the
17023         subprogram may return a CONST_DECL node.
17024         (create_true_var_decl): Declare new function, similar to
17025         create_var_decl but forcing the creation of a VAR_DECL node.
17026         (get_global_renaming_pointers): Declare.
17027         (add_global_renaming_pointer): Likewise.
17028
17029         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17030
17031         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17032         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17033         processing.
17034         (gnat_to_gnu_entity): Remove From_With_Type from computation for
17035         imported_p.
17036         <E_Access_Type>: Use the Non_Limited_View as the full view of the
17037         designated type if the pointer comes from a limited_with clause.  Make
17038         incomplete designated type if it is in the main unit and has a freeze
17039         node.
17040         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17041         Underlying_Full_View similarly.  Return earlier if the full view already
17042         has an associated tree.
17043         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17044         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17045         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17046         reference type built for objects with an address clause.
17047         Use create_true_var_decl with const_flag set for
17048         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17049         TREE_READONLY set.
17050         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17051         for Character and Wide_Character types. This info is read by the
17052         dwarf-2 writer, and is needed to be able to use the command "ptype
17053         character" in the debugger.
17054         (gnat_to_gnu_entity): When generating a type representing
17055         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17056         so that debug writers can distinguish it from ordinary integers.
17057         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17058         addition to TREE_READONLY to assert the constantness of variables for
17059         elaboration purposes.
17060         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17061         parameters to call new Einfo function First_Formal_With_Extras.
17062         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17063         protected type with its corresponding discriminant, to obtain a usable
17064         declaration
17065         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17066         for a multiple elaboration of the "equivalent" type.
17067         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17068         into record_global_renaming_pointer.
17069         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17070         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17071         <E_Array_Subtype>: Likewise.
17072         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17073         incomplete subtypes and incomplete subtypes of incomplete types visible
17074         through a limited with clause.
17075         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17076         the base index type for the maximum size of the array only if they are
17077         constant.
17078         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17079         expression into a SAVE_EXPR if stabilization failed.
17080
17081         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17082         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17083         by lower level compilation passes.
17084         (gnat_genericize): New function, lowering a function body to GENERIC.
17085         Turn the type of RESULT_DECL into a real reference type if the decl
17086         has been marked DECL_BY_REFERENCE, and adjust references to the latter
17087         accordingly.
17088         (gnat_genericize_r): New function. Tree walking callback for
17089         gnat_genericize.
17090         (convert_from_reference, is_byref_result): New functions. Helpers for
17091         gnat_genericize_r.
17092         (create_type_decl): Call gnat_pushdecl before calling
17093         rest_of_decl_compilation, to make sure that field TYPE_NAME of
17094         type_decl is properly set before calling the debug information writers.
17095         (write_record_type_debug_info): The heuristics which compute the
17096         alignment of a field in a variant record might not be accurate. Add a
17097         safety test to make sure no alignment is set to a smaller value than
17098         the alignment of the field type.
17099         (make_dummy_type): Use the Non_Limited_View as the underlying type if
17100         the type comes from a limited_with clause. Do not loop on the full view.
17101         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17102         (dummy_node_table): New global variable, moved from decl.c.
17103         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17104         (save_gnu_tree): Use above macros.
17105         (get_gnu_tree): Likewise.
17106         (present_gnu_tree): Likewise.
17107         (init_dummy_type): New function, moved from decl.c. Use above macros.
17108         (make_dummy_type): Likewise.
17109         (tree_code_for_record_type): New function extracted from make_dummy_type
17110         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17111         (static_ctors): Change it to a vector, make static.
17112         (static_dtors): Likewise.
17113         (end_subprog_body): Adjust for above change.
17114         (build_global_cdtor): Moved from trans.c.
17115         (gnat_write_global_declarations): Emit global constructor and
17116         destructor, and call cgraph_optimize before emitting debug info for
17117         global declarations.
17118         (global_decls): New global variable.
17119         (gnat_pushdecl): Store the global declarations in global_decls, for
17120         later use.
17121         (gnat_write_global_declarations): Emit debug information for global
17122          declarations.
17123         (create_var_decl_1): Former create_var_decl, with an extra argument to
17124          state whether the creation of a CONST_DECL is allowed.
17125         (create_var_decl): Behavior unchanged. Now a wrapper around
17126         create_var_decl_1 allowing CONST_DECL creation.
17127         (create_true_var_decl): New function, similar to create_var_decl but
17128         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17129         (create_field_decl): Do not always mark the field as addressable
17130         if its type is an aggregate.
17131         (global_renaming_pointers): New static variable.
17132         (add_global_renaming_pointer): New function.
17133         (get_global_renaming_pointers): Likewise.
17134
17135         * misc.c (gnat_dwarf_name): New function.
17136         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17137         (gnat_post_options): Add comment about structural alias analysis.
17138         (gnat_parse_file): Do not call cgraph_optimize here.
17139         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17140
17141         * trans.c (process_freeze_entity): Don't abort if we already have a
17142         non dummy GCC tree for a Concurrent_Record_Type, as it might
17143         legitimately have been elaborated while processing the associated
17144         Concurrent_Type prior to this explicit freeze node.
17145         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17146         exception handler volatile if it is of variable size.
17147         (process_type): Remove bypass for types coming from a limited_with
17148         clause.
17149         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17150         actual, convert the corresponding gnu_actual to the real destination
17151         type when necessary.
17152         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17153         originally TREE_READONLY but whose elaboration cannot be performed
17154         statically.
17155         Part of fix for F504-021.
17156         (tree_transform, subprogram cases): Change loops on formal parameters to
17157         call new Einfo function First_Formal_With_Extras.
17158         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17159         stemming from type conversion for the lhs.
17160         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17161         number of bits per unit for components of records.
17162         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17163         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17164         with At_End_Proc after the SJLJ EH cleanup.
17165         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17166         compilation unit.
17167         (elaborate_all_entities): Do not retest type_annotate_only.
17168         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17169         result type of an abstract subprogram, which may be an itype associated
17170         with an anonymous access result (related to AI-318-02).
17171         (build_global_cdtor): Move to utils.c.
17172         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17173         this choice is not a null tree nor an integer constant.
17174         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17175         on the body of elaboration routines instead of mark_unvisited.
17176         (add_stmt): Do not mark the tree.
17177         (add_decl_expr): Tweak comment.
17178         (mark_unvisited): Delete.
17179         (unshare_save_expr): New static function.
17180         (call_to_gnu): Issue an error when making a temporary around a
17181         procedure call because of non-addressable actual parameter if the
17182         type of the formal is by_reference.
17183         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17184         after building the elaboration routine.
17185
17186 2006-10-31  Bob Duff  <duff@adacore.com>
17187
17188         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17189         as finalization-started, so we can raise Program_Error on 'new'.
17190
17191         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17192         collection has already started.
17193
17194         * s-finimp.ads (Collection_Finalization_Started): Added new special
17195         flag value for indicating that a collection's finalization has started.
17196
17197         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17198         create a task whose master has already waited for dependent tasks.
17199
17200 2006-10-31  Robert Dewar  <dewar@adacore.com>
17201
17202         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17203
17204         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17205         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17206         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17207         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17208         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17209         a-except-2005.ads: Add pragma Preelaborable_Warning
17210
17211 2006-10-31  Robert Dewar  <dewar@adacore.com>
17212             Jose Ruiz  <ruiz@adacore.com>
17213
17214         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17215
17216         * ali.adb (Get_Name): Properly handle scanning of wide character names
17217         encoded with brackets notation.
17218         (Known_ALI_Lines): Add S lines to this list.
17219         (Scan_ALI): Acquire S (priority specific dispatching) lines.
17220         New flag Elaborate_All_Desirable in unit table
17221
17222         * ali.ads (Priority_Specific_Dispatching): Add this range of
17223         identifiers to be used for Priority_Specific_Dispatching table entries.
17224         (ALIs_Record): Add First_Specific_Dispatching and
17225         Last_Specific_Dispatching that point to the first and last entries
17226         respectively in the priority specific dispatching table for this unit.
17227         (Specific_Dispatching): Add this table for storing each S (priority
17228         specific dispatching) line encountered in the input ALI file.
17229         New flag Elaborate_All_Desirable in unit table
17230
17231         * bcheck.adb: (Check_Configuration_Consistency): Add call to
17232         Check_Consistent_Dispatching_Policy.
17233         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17234         verifying that the use of Priority_Specific_Dispatching,
17235         Task_Dispatching_Policy, and Locking_Policy is consistent across the
17236         partition.
17237
17238         * bindgen.adb: (Public_Version_Warning): function removed.
17239         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17240         required information from ALI files in order to initialize the table
17241         containing the specific dispatching policy.
17242         (Gen_Adainit_Ada): Generate the variables required for priority specific
17243         dispatching entries (__gl_priority_specific_dispatching and
17244         __gl_num_specific_dispatching).
17245         (Gen_Adainit_C): Generate the variables required for priority specific
17246         dispatching entries (__gl_priority_specific_dispatching and
17247         __gl_num_specific_dispatching).
17248         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17249         pragma entries.
17250         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17251         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17252         (Tab_To): Removed.
17253         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17254         a call to gnat_set_globals.
17255         Generate a string containing settings from
17256         Priority_Specific_Dispatching pragma entries.
17257         (Gen_Object_Files_Options): Do not include the runtime libraries when
17258         pragma No_Run_Time is specified.
17259
17260         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17261         consistency with s-intman-posix.adb.
17262         (__gnat_error_handler, case FreeBSD): Account for the fact that the
17263         handler is installed with SA_SIGINFO.
17264         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17265         FreeBSD ZCX support, copied from Linux version.
17266         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17267         sigfillset, and sigemptyset so the routines defined by MaRTE.
17268         (__gl_priority_specific_dispatching): Add this variable that stores the
17269         string containing priority specific dispatching policies in the
17270         partition.
17271         (__gl_num_specific_dispatching): Add this variable that indicates the
17272         highest priority for which a priority specific dispatching pragma
17273         applies.
17274         (__gnat_get_specific_dispatching): Add this routine that returns the
17275         priority specific dispatching policy, as set by a
17276         Priority_Specific_Dispatching pragma appearing anywhere in the current
17277         partition. The input argument is the priority number, and the result
17278         is the upper case first character of the policy name.
17279         (__gnat_set_globals): Now a dummy function.
17280         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17281         mechargs instead of sigargs, as the latter can be retrieved from the
17282         former and sigargs is not what we want on ia64.
17283         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17284         mechargs argument.
17285         (__gnat_adjust_context_for_raise, ia64-vms): New function.
17286         (tasking_error): Remove unused symbol.
17287         (_abort_signal): Move this symbol to the IRIX specific part since this
17288         is the only target that uses this definition.
17289         (Check_Abort_Status): Move this symbol to the IRIX specific part since
17290         this is the only target that uses this definition.
17291         (Lock_Task): Remove unused symbol.
17292         (Unlock_Task): Remove unused symbol.
17293
17294         * lib-writ.adb (Write_ALI): Output new S lines for
17295         Priority_Specific_Dispatching pragmas.
17296         Implement new flag BD for elaborate body desirable
17297
17298         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17299         (Specific_Dispatching): Add this table for storing the entries
17300         corresponding to Priority_Specific_Dispatching pragmas.
17301         Document new BD flag for elaborate body desirable
17302
17303         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17304         of known pragmas.
17305
17306 2006-10-31  Javier Miranda  <miranda@adacore.com>
17307
17308         * a-tags.ads, a-tags.adb:
17309         (Predefined_DT): New function that improves readability of the code.
17310         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17311         Inherit_DT): Use the new function Predefined_DT to improve code
17312         readability.
17313         (Register_Interface_Tag): Update assertion.
17314         (Set_Interface_Table): Update assertion.
17315         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17316         determining progenitor interfaces in Tags.
17317         (Inherit_CPP_DT): New subprogram.
17318
17319         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17320         analysis of the thunk code.
17321         (Expand_Interface_Conversion): Handle run-time conversion of
17322         access to class wide types.
17323         (Expand_Dispatching_Call): When generating the profile for the
17324         subprogram itype for a dispatching operation, properly terminate the
17325         formal parameters chaind list (set the Next_Entity of the last formal
17326         to Empty).
17327         (Collect_All_Interfaces): Removed. This routine has been moved to
17328         sem_util and renamed as Collect_All_Abstract_Interfaces.
17329         (Set_All_DT_Position): Hidden entities associated with abstract
17330         interface primitives are not taken into account in the check for
17331         3.9.3(10); this check is done with the aliased entity.
17332         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17333         interfacing with CPP by default.
17334         (Expand_Interface_Conversion): Add missing support for static conversion
17335         from an interface to a tagged type.
17336         (Collect_All_Interfaces): Add new out formal containing the list of
17337         abstract interface types to cleanup the subprogram Make_DT.
17338         (Make_DT): Update the code to generate the table of interfaces in case
17339         of abstract interface types.
17340         (Is_Predefined_Dispatching_Alias): New function that returns true if
17341         a primitive is not a predefined dispatching primitive but it is an
17342         alias of a predefined dispatching primitive.
17343         (Make_DT): If the ancestor of the type is a CPP_Class and we are
17344         compiling under full ABI compatibility mode we avoid the generation of
17345         calls to run-time services that fill the dispatch tables because under
17346         this mode we currently inherit the dispatch tables in the IP subprogram.
17347         (Write_DT): Emit an "is null" indication for a null procedure primitive.
17348         (Expand_Interface_Conversion): Use an address as the type of the formal
17349         of the internally built function that handles the case in which the
17350         target type is an access type.
17351
17352 2006-10-31  Robert Dewar  <dewar@adacore.com>
17353
17354         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17355
17356 2006-10-31  Robert Dewar  <dewar@adacore.com>
17357
17358         * bindusg.ads, bindusg.adb:
17359         Change to package and rename procedure as Display, which
17360         now ensures that it only outputs usage information once.
17361
17362 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17363
17364         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17365         using RTPs.
17366
17367         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17368         when using RTPs.
17369
17370 2006-10-31  Robert Dewar  <dewar@adacore.com>
17371             Ed Schonberg  <schonberg@adacore.com>
17372
17373         * treepr.adb: Use new subtype N_Membership_Test
17374
17375         * checks.ads, checks.adb: Add definition for Validity_Check
17376         (Range_Or_Validity_Checks_Suppressed): New function
17377         (Ensure_Valid): Test Validity_Check suppressed
17378         (Insert_Valid_Check): Test Validity_Check suppressed
17379         (Insert_Valid_Check): Preserve Do_Range_Check flag
17380         (Validity_Check_Range): New procedure
17381         (Expr_Known_Valid): Result of membership test is always valid
17382         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17383         by themselves. Disabling those checks must also be done for task types,
17384         where discriminants may be used for the bounds of entry families.
17385         (Apply_Address_Clause_Check): Remove side-effects if address expression
17386         is non-static and is not the name of a declared constant.
17387         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17388         Code cleanup and new error messages.
17389         (Enable_Range_Check): Test for some cases of suppressed checks
17390         (Generate_Index_Checks): Suppress index checks if index checks are
17391         suppressed for array object or array type.
17392         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17393         length check failure, even if checks are off.
17394         (Ensure_Valid): Do not generate a check on an indexed component whose
17395         prefix is a packed boolean array.
17396         * checks.adb: (Alignment_Checks_Suppressed): New function
17397         (Apply_Address_Clause_Check): New procedure, this is a completely
17398         rewritten replacement for Apply_Alignment_Check
17399         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17400         we request a discriminal value only in case of discriminants.
17401         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17402         assignments where the target subtype is unconstrained and the target
17403         object is a parameter or dereference (other aliased cases are known
17404         to be unconstrained).
17405
17406 2006-10-31  Robert Dewar  <dewar@adacore.com>
17407
17408         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17409         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17410         vms_conv.adb: Fix bad table increment values (much too small)
17411
17412         * table.adb (Realloc): Make sure we get at least some new elements
17413         Defends against silly small values for table increment
17414
17415 2006-10-31  Robert Dewar  <dewar@adacore.com>
17416             Ed Schonberg  <schonberg@adacore.com>
17417             Bob Duff  <duff@adacore.com>
17418
17419         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17420         entities. Move other fields around to make this possible
17421         (Is_Derived_Type): Add missing call to Is_Type.
17422         (Extra_Formals): New function for subprograms, entries, subprogram
17423         types.
17424         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17425         (First_Formal_With_Extras): New function for subprogs, entries, subp
17426         types.
17427         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17428         Add node information for E_Return_Statement.
17429         (Elaborate_Body_Desirable): New flag
17430         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17431         to be Is_Inherently_Limited_Type, because return-by-reference has
17432         no meaning in Ada 2005.
17433         (E_Return_Statement): New entity kind.
17434         (Return_Applies_To): Field of E_Return_Statement.
17435         (Is_Return_Object): New flag in object entities.
17436         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17437         (Must_Have_Preelab_Init): New flag
17438         (Known_To_Have_Preelab_Init): New flag
17439         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17440         (Is_Visible_Formal): New flag on entities in formal packages.
17441         (Low_Bound_Known): New flag
17442         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17443         Incomplete_Kind.
17444         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17445         output when Id is an incomplete subtype.
17446
17447 2006-10-31  Robert Dewar  <dewar@adacore.com>
17448
17449         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17450         Avoid abbreviation Creat
17451         (Finalize): List all sources in extended mail source if -gnatl
17452         switch is active.
17453         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17454         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17455         (Set_Specific_Warning_On): New procedure
17456         (Set_Specific_Warning_Off): New procedure
17457         Add implementation of new insertion \\
17458         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17459         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17460         types.
17461         (Error_Msg_Internal): Make sure that we set Last_Killed to
17462         True when a message from another package is suppressed.
17463         Implement insertion character ~ (insert string)
17464         (First_Node): Minor adjustments to get better placement.
17465
17466         * frontend.adb:
17467         Implement new -gnatl=xxx switch to output listing to file
17468
17469         * gnat1drv.adb:
17470         Implement new -gnatl=xxx switch to output listing to file
17471
17472         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17473         (Commands_To_Stdout): New flag
17474         Implement new -gnatl=xxx switch to output listing to file
17475         New switch Dump_Source_Text
17476         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17477         Define Error_Msg_Line_Length
17478         (Warn_On_Assumed_Low_Bound): New switch
17479
17480         * osint.ads, osint.adb
17481         (Normalize_Directory_Name): Fix bug.
17482         Implement new -gnatl=xxx switch to output listing to file
17483         (Concat): Removed, replaced by real concatenation
17484         Make use of concatenation now allowed in compiler
17485         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17486         we find the 'lib' or 'bin' directory even when the tool has been
17487         invoked with a relative path.
17488         (Executable_Name): New function taking string parameters.
17489
17490         * osint-c.ads, osint-c.adb:
17491         Implement new -gnatl=xxx switch to output listing to file
17492
17493         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17494
17495         * switch-c.adb:
17496         Implement new -gnatl=xxx switch to output listing to file
17497         Recognize new -gnatL switch
17498         (no longer keep in old warning about old style usage)
17499         Use concatenation to simplify code
17500         Recognize -gnatjnn switch
17501         (Scan_Front_End_Switches): Clean up handling of -gnatW
17502         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17503
17504 2006-10-31  Robert Dewar  <dewar@adacore.com>
17505
17506         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17507         (Set_Specific_Warning_Off): New procedure
17508         (Warning_Specifically_Suppressed): New function
17509         (Validate_Specific_Warnings): New procedure
17510         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17511
17512         * err_vars.ads: Implement insertion character ~ (insert string)
17513
17514 2006-10-31  Bob Duff  <duff@adacore.com>
17515             Ed Schonberg  <schonberg@adacore.com>
17516
17517         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17518         the parent part is a build-in-place function call, generate assignments.
17519         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17520         are build-in-place function calls.
17521         (Replace_Self_Reference): New subsidiary of
17522         Make_OK_Assignment_Statement, to replace an access attribute that is a
17523         self-reference into an access to the appropriate component of the
17524         target object. Generalizes previous mechanism to handle self-references
17525         nested at any level.
17526         (Is_Self_Referential_Init): Remove, not needed.
17527         (Is_Self_Referential_Init): New predicate to simplify handling of self
17528         referential components in record aggregates.
17529         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17530         check for presence of entity before checking for self-reference.
17531         (Has_Default_Init_Comps): Return True if a component association is a
17532         self-reference to the enclosing type, which can only come from a
17533         default initialization.
17534         (Make_OK_Assignment_Statement): If the expression is of the form
17535         Typ'Acc, where Acc is an access attribute, the expression comes from a
17536         default initialized self-referential component.
17537         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17538         that has been derived from several abstract interfaces we must also
17539         initialize the tags of the secondary dispatch tables.
17540
17541 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17542             Thomas Quinot  <quinot@adacore.com>
17543             Javier Miranda  <miranda@adacore.com>
17544             Robert Dewar  <dewar@adacore.com>
17545
17546         * exp_attr.adb:
17547         (Expand_Access_To_Protected_Op): If the context indicates that an access
17548         to a local operation may be transfered outside of the object, create an
17549         access to the wrapper operation that must be used in an external call.
17550         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17551         target, pass the Valid attribute applied to a floating-point prefix on
17552         to the back end without expansion.
17553         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17554         the allocated storage when it is specified by a per-object expression.
17555         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17556         Nothing to do here, the attribute has been rewritten during semantic
17557         analysis.
17558         (Expand_Attribute_Reference): Handle expansion of the new Priority
17559         attribute
17560         (Find_Fat_Info): Handle case of universal real
17561         (Expand_Access_To_Protected_Op): Fix use of access to protected
17562         subprogram from inside the body of a protected entry.
17563         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17564         'Access and 'Unrestricted_Access, to transform the attribute reference
17565         into a fat pointer.
17566         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17567         subcomponent's enclosing variable is aliased with a constrained subtype.
17568         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17569         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17570         an aliased prefix must be known to be constrained in order to use True
17571         for the attribute value, and now it's possible for some aliased views
17572         to be unconstrained.
17573
17574 2006-10-31  Robert Dewar  <dewar@adacore.com>
17575
17576         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17577         (Expand_Entity_Reference): Correct error of not handling subprogram
17578         formals in current_value processing.
17579
17580 2006-10-31  Javier Miranda  <miranda@adacore.com>
17581             Robert Dewar  <dewar@adacore.com>
17582             Ed Schonberg  <schonberg@adacore.com>
17583             Gary Dismukes  <dismukes@adacore.com>
17584
17585         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17586         register in the final list objects containing class-wide interfaces;
17587         otherwise we incorrectly register the tag of the interface in the final
17588         list.
17589         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17590         generate the wrapper if the parent primitive is abstract. This is
17591         required to report the correct error message.
17592         (Expand_N_Subtype_Indication): Do validity checks on range
17593         (Clean_Task_Names): If an initialization procedure includes a call to
17594         initialize a task (sub)component, indicate that the procedure will use
17595         the secondary stack.
17596         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17597         compatibility for interfacing with CPP by default.
17598         (Expand_N_Object_Declaration): Only build an Adjust call when the
17599         object's type is a nonlimited controlled type.
17600         * exp_ch3.adb: Add with and use of Exp_Ch6.
17601         (Expand_N_Object_Declaration): Check for object initialization that is a
17602         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17603         Object_Declaration to the call.
17604         (Freeze_Type): When the designated type of an RACW was not frozen at the
17605         point where the RACW was declared, validate the primitive operations
17606         with respect to E.2.2(14) when it finally is frozen.
17607         (Build_Initialization_Call,Expand_Record_Controller): Rename
17608         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17609         return-by-reference has no meaning in Ada 2005.
17610         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17611         to register tag of the immediate ancestor interfaces in the
17612         run-time structure.
17613         (Init_Secondary_Tags): Moved to the specification to allow the
17614         initialization of extension aggregates with abstract interfaces.
17615         (Build_Master_Renaming): Make public, for use by function declarations
17616         whose return type is an anonymous access type.
17617         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17618         Insert_List_Before_And_Analyze after the generation of the specs
17619         associated with null procedures.
17620         (Expand_Tagged_Root): Update documentation in its specification.
17621         (Init_Secondary_Tags): Update documentation.
17622         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17623         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17624         then generate code to inherit the contents of the dispatch table
17625         directly from the ancestor.
17626         (Expand_Record_Controller): Insert controller component after tags of
17627         implemented interfaces.
17628         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17629         create null procedure overridings when null procedures are inherited
17630         from interfaces.
17631         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17632         declarations for overriding null primitives inherited from interfaces.
17633         (Is_Null_Interface_Procedure): New function in
17634         Make_Null_Procedure_Specs.
17635         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17636         immediate ancestor of a tagged type is an abstract interface type we
17637         must generate the specification of the predefined primitives associated
17638         with controlled types (because the dispatch table of the ancestor is
17639         null and hence these entries cannot be inherited). This is required to
17640         elaborate well the dispatch table.
17641
17642 2006-10-31  Javier Miranda  <miranda@adacore.com>
17643             Ed Schonberg  <schonberg@adacore.com>
17644             Bob Duff  <duff@adacore.com>
17645             Gary Dismukes  <dismukes@adacore.com>
17646             Robert Dewar  <dewar@adacore.com>
17647
17648         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17649         conversion.
17650         (Expand_N_In): Do validity checks on range
17651         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17652         (Expand_N_Allocator): For "new T", if the object is constrained by
17653         discriminant defaults, allocate the right amount of memory, rather than
17654         the maximum for type T.
17655         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17656         when the allocator is initialized by a build-in-place call, since the
17657         allocator is already rewritten as a reference to the function result,
17658         and this prevents an unwanted duplication of the function call.
17659         Add with and use of Exp_Ch6.
17660         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17661         is a call to build-in-place function and apply
17662         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17663         untagged designated types).
17664         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17665         optimization if source or target is biased.
17666         (Expand_N_Allocator): Add comments for case of an allocator within a
17667         function that returns an anonymous access type designating tasks.
17668         (Expand_N_Allocator): apply discriminant checks for access
17669         discriminants of anonymous access types (AI-402, AI-416)
17670
17671 2006-10-31  Bob Duff  <duff@adacore.com>
17672             Robert Dewar  <dewar@adacore.com>
17673             Gary Dismukes  <dismukes@adacore.com>
17674             Ed Schonberg  <schonberg@adacore.com>
17675
17676         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17677
17678         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17679         (Expand_N_Assignment_Statement): Call
17680         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17681         build-in-place function call. Currently, this can happen only for
17682         assignments that come from aggregates.
17683         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17684         in order to alleviate the upward compatibility introduced by AI-318.
17685         (Expand_N_Extended_Return_Statement): Add support for handling the
17686         return object as a build-in-place result.
17687         (Expand_Non_Function_Return): Implement simple return statements nested
17688         within an extended return.
17689         (Enable_New_Return_Processing): Turn on the new processing of return
17690         statements.
17691         (Expand_Non_Function_Return): For a return within an extended return,
17692         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17693         (Expand_N_Extended_Return_Statement): Implement AI-318
17694         (Expand_Simple_Function_Return): Ditto.
17695         (Expand_N_If_Statement): Handle new -gnatwt warning
17696         (Expand_N_Case_Statement): Handle new -gnatwt warning
17697         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17698         a protected object.
17699         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17700         validity checking of assignments to elementary record components.
17701         (Expand_N_Return_Statement): return Class Wide types on the secondary
17702         stack independantly of their controlled status since with HIE runtimes,
17703         class wide types are not potentially controlled anymore.
17704
17705         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17706         node kind.
17707
17708         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17709         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17710         it expects a block, procedure, or task. The return statement will get
17711         turned into a block, and Expand_Cleanup_Actions will happen then.
17712
17713 2006-10-31  Robert Dewar  <dewar@adacore.com>
17714             Ed Schonberg  <schonberg@adacore.com>
17715             Bob Duff  <duff@adacore.com>
17716             Gary Dismukes  <dismukes@adacore.com>
17717
17718         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17719         capability.
17720         (Expand_Inlined_Call): Tagged types are by-reference types, and
17721         therefore should be replaced by a renaming declaration in the expanded
17722         body, as is done for limited types.
17723         (Expand_Call): If this is a call to a function with dispatching access
17724         result, propagate tag from context.
17725         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17726         CPP by default.
17727         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17728         build-in-place when the right-hand side of an assignment is a
17729         build-in-place function call.
17730         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17731         of the explicit dereference of the allocator to the result subtype of
17732         the build-in-place function. This is needed to satisfy type checking
17733         in cases where the caller's return object is created by an allocator for
17734         a class-wide access type and the type named in the allocator is a
17735         specific type.
17736         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17737         conversion of the reference to the declared object to the result subtype
17738         of the build-in-place function. This is needed to satisfy type checking
17739         in cases where the declared object has a class-wide type. Also, in the
17740         class-wide case, change the type of the object entity to the specific
17741         result subtype of the function, to avoid passing a class-wide object
17742         without explicit initialization to the back end.
17743         (Register_Interface_DT_Entry): Moved outside the body of
17744         Freeze_Subprogram because this routine is now public; it is called from
17745         Check_Dispatching_Overriding to handle late overriding of abstract
17746         interface primitives.
17747         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17748         adding an implicit access actual on a call to a build-in-place function.
17749         (Expand_Actuals): Test for an actual parameter that is a call to a
17750         build-in-place function and apply
17751         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17752         (Is_Build_In_Place_Function): New function to determine whether an
17753         entity is a function whose calls should be handled as build-in-place.
17754         (Is_Build_In_Place_Function_Call): New function to determine whether an
17755         expression is a function call that should handled as build-in-place.
17756         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17757         calls to build-in-place functions as the initialization of an allocator.
17758         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17759         handling calls to build-in-place functions in contexts that do not
17760         involve init of a separate object (for example, actuals of subprogram
17761         calls).
17762         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17763         handling calls to build-in-place functions as the initialization of an
17764         object declaration.
17765         (Detect_Infinite_Recursion): Add explicit parameter Process to
17766         instantiation of Traverse_Body to avoid unreferenced warning.
17767         (Check_Overriding_Inherited_Interfaces): Removed.
17768         (Register_Interface_DT_Entry): Code cleanup.
17769         (Register_Predefined_DT_Entry): Code cleanup.
17770         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17771         inlined statements if within a transient scope.
17772         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17773         formal parameters with occurrences of actuals in inlined body, establish
17774         visibility on the proper view of the actual's subtype for the body's
17775         context.
17776         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17777         compatibility mode and we have an imported CPP subprogram because
17778         for now we assume that imported CPP primitives correspond with
17779         objects whose constructor is in the CPP side (and therefore we
17780         don't need to generate code to register them in the dispatch table).
17781         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17782         aligned selected component.
17783         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17784         the actual of an in-mode parameter is a type conversion.
17785         (Expand_Actuals): If the call does not come from source and the actual
17786         is potentially misaligned, let gigi handle it rather than rejecting the
17787         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17788         Class Wide types as returning by reference independantly of their
17789         controlled status since with HIE runtimes class wide types are not
17790         potentially controlled anymore.
17791
17792 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17793
17794         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17795         references that are private components of the protected object.
17796         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17797         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17798         instantiation to deal with warnings.
17799         (Initialize_Protection): If expression for priority is non-static, use
17800         System_Priority as its expected type, in case the expression has not
17801         been analyzed yet.
17802
17803 2006-10-31  Robert Dewar  <dewar@adacore.com>
17804
17805         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17806         initialization of Homonym_Len.
17807         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17808         names from fully qualified name. Fixes problem of duplicate
17809         external names differing only in the presence of such a block name.
17810
17811 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17812             Pablo Oliveira  <oliveira@adacore.com>
17813
17814         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17815         subprogram Ids, even if they are not yet assigned.
17816         (Build_Subprogram_Id): It is now this function that will take care of
17817         calling Assign_Subprogram_Ids if necessary.
17818         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17819         should be done only once they are assigned.
17820         (Build_From_Any_Function, case of tagged types): Add missing call to
17821         Allocate_Buffer.
17822         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17823         type for an RACW type.
17824         (Add_RACW_Features): When processing an RACW declaration for which the
17825         designated type is already frozen, enforce E.2.2(14) rules immediately.
17826         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17827         special reordering of controlling formals.
17828
17829         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17830         associated stub type for an RACW type.
17831
17832 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17833
17834         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17835         fixed-point operations in an integer context, i.e. as operands of a
17836         conversion to an integer type, indicate that result must be rounded.
17837
17838 2006-10-31  Robert Dewar  <dewar@adacore.com>
17839
17840         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17841         cases, pass the encoding method, since it is now required by the run
17842         time.
17843
17844         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17845         assumption that Str'First = 1.
17846         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17847         it on to the Value_Wide_Wide_Character call.
17848         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17849         properly handles a string of the form quote-encoded_wide_char-quote.
17850
17851         * s-wchcnv.adb: Minor reformatting
17852
17853 2006-10-31  Javier Miranda  <miranda@adacore.com>
17854
17855         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17856         run-time membership test to ensure that the constructed object
17857         implements the target abstract interface.
17858
17859 2006-10-31  Robert Dewar  <dewar@adacore.com>
17860
17861         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17862         Machine_Attribute pragma internally to implement the user pragma.
17863         Add processing for pragma Interface so that it is now completely
17864         equivalent to pragma Import.
17865
17866         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17867         so that it can be applied to all entities, including record components
17868         and enumeration literals.
17869         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17870         priority ranges are correct, verify compatibility against task
17871         dispatching and locking policies, and if everything is correct an entry
17872         is added to the table containing priority specific dispatching entries
17873         for this compilation unit.
17874         (Delay_Config_Pragma_Analyze): Delay processing
17875         Priority_Specific_Dispatching pragmas because when processing the
17876         pragma we need to access run-time data, such as the range of
17877         System.Any_Priority.
17878         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17879         Allow pragma Unreferenced as a context item
17880         Add pragma Preelaborable_Initialization
17881         (Analyze_Pragma, case Interface): Interface is extended so that it is
17882         now syntactically and semantically equivalent to Import.
17883         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17884         insertion characters.
17885         Add handling for Pragma_Wide_Character_Encoding
17886         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17887         never supercedes a real restriction, and that a real restriction
17888         always supercedes a warning.
17889         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17890         appropriate form.
17891
17892 2006-10-31  Bob Duff  <duff@adacore.com>
17893             Ed Schonberg  <schonberg@adacore.com>
17894             Robert Dewar  <dewar@adacore.com>
17895
17896         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17897         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17898         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17899         in Ada 2005.
17900         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17901         type of the function containing a return statement, because the
17902         Return_Type field was removed. We now use the Return_Applies_To field.
17903
17904         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17905         (Build_Task_Image_Decl): If procedure is not called from an
17906         initialization procedure, indicate that function that builds task name
17907         uses the sec. stack. Otherwise the enclosing initialization procedure
17908         will carry the indication.
17909         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17910         N_Object_Declaration instead.
17911         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17912         conditional dead code killed, and change implementation accordingly.
17913         (Insert_Actions): Add N_Return_Object_Declaration case.
17914         Correct comment to mention N_Extension_Aggregate node.
17915         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17916         attempts to save information for global variables which cannot be
17917         safely tracked.
17918         (Get_Current_Value_Condition): Handle conditions the other way round
17919         (constant on left). Also handle right operand of AND and AND THEN
17920         (Set_Current_Value_Condition): Corresponding changes
17921         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17922         (Get_Current_Value_Condition): Handle simple boolean operands
17923         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17924         (Get_Current_Value_Condition): If the variable reference is within an
17925         if-statement, does not appear in the list of then_statments, and does
17926         not come from source, treat it as being at unknown location.
17927         (Get_Current_Value_Condition): Enhance to allow while statements to be
17928         processed as well as if statements.
17929         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17930         come from source.
17931         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17932         of loop. This is safe now that we fixed Kill_Current_Values.
17933         (OK_To_Do_Constant_Replacement): Check whether current scope is
17934         Standard, before examining outer scopes.
17935
17936 2006-10-31  Vincent Celier  <celier@adacore.com>
17937
17938         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17939         When True, apply VMS treatment to children of packages A, G, I and S.
17940         For F320-016
17941
17942         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17943
17944 2006-10-31  Robert Dewar  <dewar@adacore.com>
17945             Ed Schonberg  <schonberg@adacore.com>
17946
17947         * freeze.adb: Add handling of Last_Assignment field
17948         (Warn_Overlay): Supply missing continuation marks in error msgs
17949         (Freeze_Entity): Add check for Preelaborable_Initialization
17950
17951         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17952
17953         * g-expect.adb: Add Warnings (Off) to prevent new warning
17954
17955         * lib-xref.adb: Add handling of Last_Assignment field
17956         (Generate_Reference): Centralize handling of pragma Obsolescent here
17957         (Generate_Reference): Accept an implicit reference generated for a
17958         default in an instance.
17959         (Generate_Reference): Accept a reference for a node that is not in the
17960         main unit, if it is the generic body corresponding to an subprogram
17961         instantiation.
17962
17963         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17964
17965         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17966         -gnatwq/Q.
17967         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17968         exception handler.
17969         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17970         use clauses, to avoid messages on packages used to qualify, and also
17971         to avoid messages from obsolescent units.
17972         (Warn_On_Useless_Assignments): Don't generate messages for imported
17973         and exported variables.
17974         (Warn_On_Useless_Assignments): New procedure
17975         (Output_Obsolescent_Entity_Warnings): New procedure
17976         (Check_Code_Statement): New procedure
17977
17978         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17979         Change name Is_Ada_2005 to Is_Ada_2005_Only
17980         (Last_Assignment): New field for useless assignment warning
17981
17982 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17983
17984         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17985         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17986
17987 2006-10-31  Bob Duff  <duff@adacore.com>
17988             Robert Dewar  <dewar@adacore.com>
17989             Ed Schonberg  <schonberg@adacore.com>
17990
17991         * g-awk.adb (Default_Session, Current_Session): Compile this file in
17992         Ada 95 mode, because it violates the new rules for AI-318.
17993
17994         * g-awk.ads: Use overloaded subprograms in every case where we used to
17995         have a default of Current_Session. This makes the code closer to be
17996         correct for both Ada 95 and 2005.
17997
17998         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17999         code, relying on the fact that the compiler generates a warning
18000         instead of an error in -gnatg mode.
18001
18002         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18003         E_Return_Statement entity kind.
18004         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18005
18006         * par.adb (P_Interface_Type_Definition): Addition of one formal to
18007         report an error if the reserved word abstract has been previously found.
18008         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18009
18010         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18011         parenthesized range attribute usage
18012         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18013
18014         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18015         in the syntax for extended_return_statement. This is not in the latest
18016         RM, but the ARG is expected to issue an AI allowing this.
18017         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18018         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18019         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18020         P_Return_Statement): Parse the new syntax for extended_return_statement.
18021
18022         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18023         Output_End_Missing): Add error-recovery code for the new
18024         extended_return_statement syntax; that is, the new E_Return entry on
18025         the scope stack.
18026
18027         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18028         limited to nonlimited, because otherwise we violate the new Ada 2005
18029         rules about returning limited types in function Create_AST_Handler in
18030         s-asthan.adb.
18031
18032         * sem.adb (Analyze): Add cases for new node kinds
18033         N_Extended_Return_Statement and N_Return_Object_Declaration.
18034
18035         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18036         type is in the same category as type of context before applying check,
18037         to prevent anomalies in instantiations.
18038         (Resolve_Aggregate): Remove test for limited components in aggregates.
18039         It's unnecessary in Ada 95, because if it has limited components, then
18040         it must be limited. It's wrong in Ada 2005, because limited aggregates
18041         are now allowed.
18042         (Resolve_Record_Aggregate): Move check for limited types later, because
18043         OK_For_Limited_Init requires its argument to have been resolved.
18044         (Get_Value): When copying the component default expression for a
18045         defaulted association in an aggregate, use the sloc of the aggregate
18046         and not that of the original expression, to prevent spurious
18047         elaboration errors, when the expression includes function calls.
18048         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18049         were missing. We also didn't handle qualified expressions. Now also
18050         allow function calls. Use new common routine OK_For_Limited_Init.
18051         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18052         with space can upper case letter).
18053
18054         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18055         Has_Static_Discriminants flag
18056         (Record_Type_Declaration): Diagnose an attempt to declare an interface
18057         type with discriminants.
18058         (Process_Range_Expr_In_Decl): Do validity checks on range
18059         (Build_Discriminant_Constraints): Use updated form of
18060         Denotes_Discriminant.
18061         (Process_Subtype): If the subtype is a private subtype whose full view
18062         is a concurrent subtype, introduce an itype reference to prevent scope
18063         anomalies in gigi.
18064         (Build_Derived_Record_Type, Collect_Interface_Primitives,
18065         Record_Type_Declaration):  The functionality of the subprograms
18066         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18067         is now performed by a single routine.
18068         (Build_Derived_Record_Type): If the type definition includes an explicit
18069         indication of limitedness, then the type must be marked as limited here
18070         to ensure that any access discriminants will not be treated as having
18071         a local anonymous access type.
18072         (Check_Abstract_Overriding): Issue a detailed error message when an
18073         abstract subprogram was not overridden due to incorrect mode of its
18074         first parameter.
18075         (Analyze_Private_Extension_Declaration): Add support for the analysis of
18076         synchronized private extension declarations. Verify that the ancestor is
18077         a limited or synchronized interface or in the generic case, the ancestor
18078         is a tagged limited type or synchronized interface and all progenitors
18079         are either limited or synchronized interfaces.
18080         Derived_Type_Declaration): Check for presence of private extension when
18081         dealing with synchronized formal derived types.
18082         Process_Full_View): Enchance the check done on the usage of "limited" by
18083         testing whether the private view is synchronized.
18084         Verify that a synchronized private view is completed by a protected or
18085         task type.
18086         (OK_For_Limited_Init_In_05): New function.
18087         (Analyze_Object_Declaration): Move check for limited types later,
18088         because OK_For_Limited_Init requires its argument to have been resolved.
18089         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18090         in order to alleviate the upward compatibility introduced by AI-318.
18091         (Constrain_Corresponding_Record): If the constraint is for a component
18092         subtype, mark the itype as frozen, to avoid out-of-scope references to
18093         discriminants in the back-end.
18094         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18095         this subprogram against wrong sources.
18096         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18097         discriminant of limited type completed with a protected type, when the
18098         discriminant is used to constrain a private component of the type, and
18099         expansion is disabled.
18100         (Find_Type_Of_Object): Do not treat a return subtype that is an
18101         anonymous subtype as a local_anonymous_type, because its accessibility
18102         level is the return type of the enclosing function.
18103         (Check_Initialization): In -gnatg mode, turn the error "cannot
18104         initialize entities of limited type" into a warning.
18105         (OK_For_Limited_Init): Return true for generated nodes, since it
18106         sometimes violates the legality rules.
18107         (Make_Incomplete_Declaration): If the type for which an incomplete
18108         declaration is created happens to be the currently visible entity,
18109         preserve the homonym chain when removing it from visibility.
18110         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18111         inherited subprograms.
18112         (Access_Definition): If this is an access to function that is the return
18113         type of an access_to_function definition, context is a type declaration
18114         and the scope of the anonymous type is the current one.
18115         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18116         incomplete subtype to the set of private dependents of the original
18117         incomplete type.
18118         (Constrain_Discriminated_Type): Emit an error message whenever an
18119         incomplete subtype is being constrained.
18120         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18121         corresponding subtype of the full view of the original incomplete type.
18122         (Check_Incomplete): Properly detect invalid usage of incomplete types
18123         and subtypes.
18124
18125 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18126
18127         * g-catiio.ads, g-catiio.adb (Value): New function.
18128         Given an input String, try and parse a valid Time value.
18129
18130 2006-10-31  Vincent Celier  <celier@adacore.com>
18131
18132         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18133         Integer_Address arithmetic, as in Set_Valid.
18134
18135 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18136             Robert Dewar  <dewar@adacore.com>
18137
18138         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18139         handling executable extension manually and duplicating code.
18140
18141         * make.adb: Implement new -S switch
18142         (Gnatmake): Use new function Osint.Executable_Name instead
18143         of handling executable extension manually.
18144
18145         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18146         is specified, the executable name ends with this suffix.
18147         Take advantage of Osint.Executable_Name instead of duplicating code.
18148
18149         * switch-m.adb: Recognize new gnatmake -S switch
18150
18151         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18152         variable.
18153         (Get_Target_Parameters): Set Executable_Extension_On_Target if
18154         available.
18155
18156         * makeusg.adb: Add line for gnatmake -S switch
18157
18158 2006-10-31  Vincent Celier  <celier@adacore.com>
18159
18160         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18161         call it with -static-libgcc, as there are some platforms, such as
18162         Darwin, where one of these two switches is compulsory to link.
18163
18164 2006-10-31  Vincent Celier  <celier@adacore.com>
18165
18166         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18167         instead of ADA_PROJECT_PATH, for the project path.
18168         (Gnatls): When displaying the project path directories, use host dir
18169         specs.
18170
18171         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18172         names in the project path, as absolute paths may correspond to
18173         multi-valued VMS logical names.
18174
18175 2006-10-31  Vincent Celier  <celier@adacore.com>
18176
18177         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18178         absolute path name.
18179         (Locate_Regular_File): Ditto
18180         (Change_Dir): Remove, no longer used
18181         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18182         on Windows. Get it calling Get_Current_Dir.
18183         (OpenVMS): Remove imported boolean, no longer needed.
18184         (Normalize_Pathname)[VMS]: Do not resolve directory names.
18185         (Pid_To_Integer): New function to convert a Process_Id to  Integer
18186
18187 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18188
18189         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18190         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18191         to No_Socket.
18192         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18193         W_Sig_Socket.
18194
18195 2006-10-31  Robert Dewar  <dewar@adacore.com>
18196
18197         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18198         initial letter o as a zero.
18199
18200 2006-10-31  Robert Dewar  <dewar@adacore.com>
18201
18202         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18203
18204 2006-10-31  Robert Dewar  <dewar@adacore.com>
18205
18206         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18207         variant records
18208         (Layout_Variant_Record): Retrieve the discriminants from the entity
18209         rather than from the type definition, because in the case of a full
18210         type for a private type we need to take the discriminants from the
18211         partial view.
18212         (Layout_Component_List): When applying the Max operator to variants with
18213         a nonstatic size, check whether either operand is static and scale that
18214         operand from bits to storage units before applying Max.
18215         (Layout_Type): In VMS, if a C-convention access type has no explicit
18216         size clause (and does not inherit one in the case of a derived type),
18217         then the size is reset to 32 from 64.
18218
18219 2006-10-31  Vincent Celier  <celier@adacore.com>
18220
18221         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18222         its file has already been loaded, according to the unit being loaded,
18223         not to the current value of Multiple_Unit_Index.
18224
18225 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18226             Eric Botcazou  <ebotcazou@adacore.com>
18227             Arnaud Charlet  <charlet@adacore.com>
18228
18229         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18230         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18231         possible.
18232         (a-except.o): Pass it to the compiler.
18233         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18234         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18235         a-calend-mingw.adb version.
18236
18237         * Makefile.rtl: Added s-dsaser.
18238         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18239         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18240         Ada.Dispatching.Round_Robin.
18241         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18242
18243         * Make-lang.in: Remove all references to gt-ada-decl.h.
18244         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18245         sources.
18246         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18247         Update dependencies.
18248
18249         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18250
18251 2006-10-31  Vincent Celier  <celier@adacore.com>
18252
18253         * mlib-utl.adb (Initialized): Remove, no longer used
18254         (Initialize): Remove, no longer used
18255         (Ar): If Ar_Exec is null, get the location of the archive builder and,
18256         if there is one, the archive indexer. Fail if the archive builder cannot
18257         be found.
18258         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18259         be found.
18260
18261 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18262
18263         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18264         Process_Body_Clauses): If the context of a body includes a use clause
18265         for P.Q then a with_clause for P in the same body is not redundant,
18266         even if the spec also has a with_clause on P.
18267         Add missing continuation mark to error msg
18268         (Build_Limited_Views): A limited view of a type is tagged if its
18269         declaration includes a record extension.
18270         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18271         node, even if the subunit has errors. This avoids malfunction by
18272         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18273         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18274         generation of obsolescent messages for with statements (cannot do
18275         this too early, or we cannot implement avoiding the messages in the
18276         case of obsolescent units withing obsolescent units).
18277         (Install_Siblings): If the with_clause is on a remote descendant of
18278         an ancestor of the current compilation unit, find whether there is
18279         a sibling child unit that is immediately visible.
18280         (Remove_Private_With_Clauses): New procedure, invoked after completing
18281         the analysis of the private part of a nested package, to remove from
18282         visibility the private with_clauses of the enclosing package
18283         declaration.
18284         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18285         now centralized in Generate_Reference.
18286         (Install_Limited_Context_Clauses): Remove superfluous error
18287         message associated with unlimited view visible through use
18288         and renamings. In addition, at the point in which the error
18289         is reported, we add the backslash to the text of the error
18290         to ensure that it is reported as a single error message.
18291         Use new // insertion for some continuation messages
18292         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18293         to create implicit with_clause for parent unit mentioned in original
18294         limited_with_clause.
18295         (Install_Limited_With_Unit): Set entity of parent identifiers if the
18296         unit is a child unit. For ASIS queries.
18297         (Analyze_Subunit): If the subunit appears within a child unit, make all
18298         ancestor child units directly visible again.
18299
18300 2006-10-31  Robert Dewar  <dewar@adacore.com>
18301
18302         * par-ch10.adb (P_Context_Clause): Minor error message fix
18303
18304 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18305             Javier Miranda  <miranda@adacore.com>
18306
18307         * par-ch12.adb: Grammar update and cleanup.
18308         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18309         support for synchronized derived type definitions.
18310         Add the new actual Abstract_Present to every call to
18311         P_Interface_Type_Definition.
18312         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18313         a formal object declaration with an access definition or a subtype mark
18314         with a null exclusion.
18315         (P_Generic_Association): Handle association with box, and others_choice
18316         with box, to support Ada 2005 partially parametrized formal packages.
18317
18318 2006-10-31  Robert Dewar  <dewar@adacore.com>
18319             Javier Miranda  <miranda@adacore.com>
18320
18321         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18322         (P_Type_Declaration): Remove barrier against the reserved word "limited"
18323         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18324         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18325         private extensions.
18326         (P_Type_Declaration): Add the new actual Abstract_Present to every call
18327         to P_Interface_Type_Definition.
18328         (P_Interface_Type_Definition): Addition of one formal to report an error
18329         if the reserved word abstract has been previously found.
18330         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18331         object renaming declaration with an access definition or subtype mark
18332         with a possible null exclusion.
18333
18334         * par-ch9.adb: Minor error msg fix
18335
18336         * par-load.adb: Add missing continuation mark to error msg
18337
18338         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18339
18340 2006-10-31  Vincent Celier  <celier@adacore.com>
18341
18342         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18343         unknown attribute in unknown package or in package that does not need
18344         to be checked.
18345         (Parse_Package_Declaration): Do not issue warning for unknown package in
18346         quiet output.
18347
18348 2006-10-31  Vincent Celier  <celier@adacore.com>
18349
18350         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18351         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18352         Packages_To_Check.
18353
18354 2006-10-31  Vincent Celier  <celier@adacore.com>
18355
18356         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18357         on VMS, change "__" to '.' before checking the name.
18358         (Record_Ada_Source): Always add the source file name in the list of
18359         of sources, even if it is not the first time, as it is for another
18360         source index.
18361         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18362         dot, instead of replacing only the first '_'.
18363
18364         * prj-part.adb (Parse): Convert project file path to canonical form
18365
18366         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18367         extended, the project id of the project extending it is recorded in its
18368         data, even when it has already been processed as an imported project.
18369
18370 2006-10-31  Robert Dewar  <dewar@adacore.com>
18371
18372         * repinfo.adb (List_Entities): Don't list entities from renaming
18373         declarations.
18374
18375 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18376             Robert Dewar  <dewar@adacore.com>
18377
18378         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18379         only a restriction warning is active for the given restriction. This is
18380         desirable because we do not want to modify code in the case where only
18381         a warning is set.
18382         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18383         causes overriding of real restrictions.
18384         Take advantage of new No_Restrictions constant.
18385
18386         * raise.h: (__gnat_set_globals): Change profile.
18387
18388 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18389
18390         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18391
18392         * rtsfind.ads:
18393         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18394         Move all the entities in obsolete package System.PolyORB_Interface to
18395         System.Partition_Interface.
18396         (RE_Storage_Size): New function in System.Tasking.
18397         (RE_Get_Ceiling): New entity.
18398         (RE_Set_Ceiling): New entity.
18399         (RO_PE_Get_Ceiling): New entity.
18400         (RO_RE_Set_Ceiling): New entity.
18401         (Inherit_CPP_DT): New entity
18402
18403 2006-10-31  Robert Dewar  <dewar@adacore.com>
18404
18405         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18406         starting with a digit.
18407
18408 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18409             Thomas Quinot  <quinot@adacore.com>
18410             Javier Miranda  <miranda@adacore.com>
18411             Gary Dismukes  <dismukes@adacore.com>
18412
18413         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18414         properly an attempt to apply Unchecked_Access to a protected operation.
18415         (OK_Self_Reference): New subprogram to check the legality of an access
18416         attribute whose prefix is the type of an enclosing aggregate.
18417         Generalizes previous mechanism to handle attribute references nested
18418         arbitrarily deep within the aggregate.
18419         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18420         can appear in an aggregate if this is a default-initialized aggregate
18421         for a self-referential type.
18422         (Resolve_Attribute, case Access): Ditto.
18423         Add support for new implementation defined attribute Stub_Type.
18424         (Eval_Attribute, case Attribute_Stub_Type): New case.
18425         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18426         (Stream_Attribute_Available): Implement using new subprogram from
18427         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18428         Has_Specified_Stream_Attribute flag.
18429         Disallow Storage_Size and Storage_Pool for access to subprogram
18430         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18431         access types of return subtypes in extended return statements. Remove
18432         accessibility checks on anonymous access types when Unchecked_Access is
18433         used.
18434         (Analyze_Attribute): Add support for the use of 'Class to convert
18435         a class-wide interface to a tagged type.
18436         Add support for the attribute Priority.
18437         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18438         whether the designated type is discriminated with a constrained partial
18439         view and require static matching in that case.
18440         Add local variable Des_Btyp. The Designated_Type
18441         of an access to incomplete subtype is either its non-limited view if
18442         coming from a limited with or its etype if regular incomplete subtype.
18443
18444         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18445         Fix predicate to identify and allow cases of (expander-generated)
18446         references to tag of designated object of a RACW.
18447         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18448         non-static, and therefore cannot appear as a primary in a preelaborable
18449         package.
18450         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18451         Has_Read_Write_Attributes.
18452         (Has_Read_Write_Attributes): Reimplement in termes of
18453         Has_Stream_Attribute_Definition.
18454         (Missing_Read_Write_Attributes): When checking component types in a
18455         record, unconditionally call Missing_Read_Write_Attributes recursively
18456         (remove guard checking for Is_Record_Type / Is_Access_Type).
18457
18458 2006-10-31  Robert Dewar  <dewar@adacore.com>
18459
18460         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18461         useless assignments here and conditionalize it on absence of exception
18462         handlers.
18463         (Analyze_Exception_Handlers): Small code reorganization of error
18464         detection code, for new handling of formal packages.
18465
18466 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18467             Hristian Kirtchev  <kirtchev@adacore.com>
18468
18469         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18470         that has been constant-folded, preserve information of original tree,
18471         for ASIS uses.
18472         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18473         generated private extension declaration if the formal derived type is
18474         synchronized. Carry synchronized present over to the generated private
18475         extension.
18476         (Validate_Derived_Type_Instance): Ensure that the actual of a
18477         synchronized formal derived type is a synchronized tagged type.
18478         (Instantiate_Formal_Package): When creating the instantiation used to
18479         validate the actual package of a formal declared without a box, check
18480         whether the formal itself depends on a prior actual.
18481         (Instantiate_Formal_Subprogram): Create new entities for the defining
18482         identifiers of the formals in the renaming declaration, for ASIS use.
18483         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18484         a renaming declaration or a subtype declaration for an actual in an
18485         instance, capture location information of declaration in generic, for
18486         ASIS use.
18487         (Instantiate_Formal_Package): Add comments on needed additional tests.
18488         AI-317 (partial parametrization) is fully implemented.
18489         (Validate_Private_Type_Instance): Add check for actual which
18490         must have preelaborable initialization
18491         Use new // insertion for some continuation messages
18492         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18493         Default_Expression. Add type retrieval when the declaration has an
18494         access definition. Update premature usage of incomplete type check.
18495         (Check_Access_Definition): New subsidiary routine. Check whether the
18496         current compilation version is Ada 05 and the supplied node has an
18497         access definition.
18498         (Instantiate object): Alphabetize local variables. Handle the creation
18499         of new renaming declarations with respect to the kind of definition
18500         used - either an access definition or a subtype mark. Guard against
18501         unnecessary error message in the context of anonymous access types after
18502         they have been resolved. Add check for required null exclusion in a
18503         formal object declaration.
18504         (Switch_View): A private subtype of a non-private type needs to be
18505         switched (the base type can have been switched without its private
18506         dependents because of the last branch of Check_Private_View.
18507         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18508         value from BT.
18509         (Instantiate_Type): Emit an error message whenever a class-wide type of
18510         a tagged incomplete type is used as a generic actual.
18511         (Find_Actual_Type): Extend routine to handle a component type in a child
18512         unit that is imported from a formal package in a parent.
18513         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18514         agree on constrainedness, rather than checking against ultimate ancestor
18515         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18516         generic body, for navigation purposes.
18517
18518 2006-10-31  Robert Dewar  <dewar@adacore.com>
18519             Thomas Quinot  <quinot@adacore.com>
18520
18521         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18522         type.
18523         (New_Stream_Subprogram): When processing an attribute definition clause
18524         for a stream-oriented subprogram, record an entity node occurring at
18525         the point of clause to use for checking the visibility of the clause,
18526         as defined by 8.3(23) as amended by AI-195.
18527         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18528          New_Stream_Function and New_Stream_Procedure.
18529         (New_Stream_Function, New_Stream_Procedure): Removed.
18530         (Analyze_Attribute_Definition_Clause, case Address): Check new
18531         Alignment_Check check
18532
18533 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18534             Javier Miranda  <miranda@adacore.com>
18535             Robert Dewar  <dewar@adacore.com>
18536
18537         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18538         generate the same errors compiling under -gnatc.
18539         (Try_Object_Operation): If no candidate interpretation succeeds, but
18540         there is at least one primitive operation with the right name, report
18541         error in call rather than on a malformed selected component.
18542         (Analyze_Selected_Component): If the prefix is an incomplete type from
18543         a limited view, and the full view is available, use the full view to
18544         determine whether this is a prefixed call to a primitive operation.
18545         (Operator_Check): Verify that a candidate interpretation is a binary
18546         operation before checking the type of its second formal.
18547         (Analyze_Call): Add additional warnings for function call contexts not
18548         yet supported.
18549         (Analyze_Allocator): Move the check for "initialization not allowed for
18550         limited types" after analyzing the expression. This is necessary,
18551         because OK_For_Limited_Init looks at the structure of the expression.
18552         Before analysis, we don't necessarily know what sort of expression it
18553         is. For example, we don't know whether F(X) is a function call or an
18554         indexed component; the former is legal in Ada 2005; the latter is not.
18555         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18556         were missing. We also didn't handle qualified expressions. Now also
18557         allow function calls. Use new common routine OK_For_Limited_Init.
18558         (Analyze_Type_Conversion): Do not perform some legality checks in an
18559         instance, because the error message will be redundant or spurious.
18560         (Analyze_Overloaded_Selected_Component): Do not do style check when
18561         setting an entity, since we do not know it is the right entity yet.
18562         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18563         (Analyze_Overloaded_Selected_Component): Same change
18564         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18565         since regular incomplete subtypes are transformed into corresponding
18566         subtypes of their full views.
18567         (Complete_Object_Operation): Treat name of transformed subprogram call
18568         as coming from source, for browsing purposes.
18569         (Try_Primitive_Operation): If formal is an access parameter, compare
18570         with base type of object to determine whether it is a primitive
18571         operation.
18572         (Operator_Check): If no interpretation of the operator matches, check
18573         whether a use clause on any candidate might make the operation legal.
18574         (Try_Class_Wide_Operation): Check whether the first parameter is an
18575         access type whose designated type is class-wide.
18576
18577 2006-10-31  Robert Dewar  <dewar@adacore.com>
18578             Ed Schonberg  <schonberg@adacore.com>
18579             Gary Dismukes  <dismukes@adacore.com>
18580
18581         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18582         warn on infinite loops.
18583         Add \\ to some continuation messages
18584         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18585         (Process_Bounds): If the bounds are integer literals that result from
18586         constant-folding, and they carry a user-defined type, preserve that type
18587         rather than treating this as an integer range.
18588         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18589         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18590         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18591         left hand side of assignment.
18592         (Analyze_Assignment): Add suport to manage assigments to the attribute
18593         priority of a protected object.
18594         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18595         not just identifiers.
18596         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18597         or AND THEN for possible tracking.
18598         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18599         case of while loops so we can track values in the loop body.
18600
18601 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18602             Hristian Kirtchev  <kirtchev@adacore.com>
18603             Bob Duff  <duff@adacore.com>
18604
18605         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18606         procedure cannot be a protected operation (it is a basic_declaration,
18607         not a subprogram_declaration).
18608         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18609         Subp. Add logic for entry processing.
18610         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18611         Determine whether an entry or subprogram of a protected or task type
18612         override an inherited primitive of an implemented interface.
18613         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18614         Update the actual used in calls to Check_Overriding_Indicator.
18615         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18616         generate the proper reference to the parent unit, for cross-reference.
18617         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18618         Is_Formal.
18619         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18620         (Add_Extra_Formal): Revise procedure to allow passing in associated
18621         entity, scope, and name suffix, and handle setting of the new
18622         Extra_Formals field.
18623         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18624         pass new parameters. Add support for adding the new extra access formal
18625         for functions whose calls are treated as build-in-place.
18626         (Analyze_A_Return_Statement): Correct casing in error message.
18627         Move Pop_Scope to after Analyze_Function_Return, because an extended
18628         return statement really is a full-fledged scope. Otherwise, visibility
18629         doesn't work right. Correct use of "\" for continuation messages.
18630         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18631         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18632         the node doesn't get properly marked as analyzed.
18633         (Analyze_Subprogram_Body): If subprogram is a function that returns
18634         an anonymous access type that denotes a task, build a Master Entity
18635         for it.
18636         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18637         proper usage of null exclusion in a result definition.
18638         (Process_Formals): Code cleanup and new error message.
18639         (Process_Formals): Detect incorrect application of null exclusion to
18640         non-access types.
18641         (Conforming_Types): Handle conformance between [sub]types and itypes
18642          generated for entities that have null exclusions applied to them.
18643         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18644          base type is an access subtype. This case arrises with null exclusions.
18645         (New_Overloaded_Entity): Do not remove the overriden entity from the
18646         homonym chain if it corresponds with an abstract interface primitive.
18647         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18648         call to the synthesized predicate Is_Incomplete_Type.
18649         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18650         primitives.
18651         (Analyze_Subprogram_Declaration): Check that abstract interface
18652         primitives are abstract or null.
18653         (Analyze_Subprogram_Specification): Remove previous check for abstract
18654         interfaces because it was not complete.
18655         (Has_Interface_Formals): Removed.
18656
18657 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18658             Javier Miranda  <miranda@adacore.com>
18659
18660         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18661         of Analyze_Package_Body, to create Itype references for anonymous
18662         access types created in the package declaration, whose designated types
18663         may have only a limited view.
18664         (Analyze_Package_Specification): For the private part of a nested
18665         package, install private_with_clauses of enclosing compilation unit if
18666         we are in its visible part.
18667         (Declare_Inherited_Private_Subprograms): Complete barrier
18668         to ensure that the primitive operation has an alias to some parent
18669         primitive. This is now required because, after the changes done for the
18670         implementation of abstract interfaces, the contents of the list of
18671         primitives has entities whose alias attribute references entities of
18672         such list of primitives.
18673         (Analyze_Package_Specification): Simplify code that handles parent units
18674         of instances and formal packages.
18675         (Uninstall_Declarations): Check the convention consistency among
18676         primitive overriding operations of a tagged record type.
18677
18678 2006-10-31  Robert Dewar  <dewar@adacore.com>
18679             Hristian Kirtchev  <kirtchev@adacore.com>
18680             Javier Miranda  <miranda@adacore.com>
18681             Ed Schonberg  <schonberg@adacore.com>
18682
18683         * sem_ch8.adb: Minor error msg rewording
18684         (Undefined): When checking for misspellings, invert arguments (to get
18685         expected and found set right)
18686         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18687         (Analyze_Generic_Renaming): Same fix
18688         (Use_One_Package): Do not take into account the internal entities of
18689         abstract interfaces during the analysis of entities that are marked
18690         as potentially use-visible.
18691         (Find_Type): Handle the case of an attribute reference for
18692         implementation defined attribute Stub_Type (simply let the analysis of
18693         the attribute reference rewrite it).
18694         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18695         type that appears in a Use_Type clause.
18696         (Analyze_Object_Renaming): Add support for renaming of the Priority
18697         attribute.
18698         (Find_Type): In Ada 2005, a task type can be used within its own body,
18699         when it appears in an access definition.
18700         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18701         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18702          in a formal object declaration or in a subtype declaration.
18703         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18704         (Check_Null_Exclusion): New local routine to
18705         Analyze_Subprogram_Renaming. Check whether the formals and return
18706         profile of a renamed subprogram have required null exclusions when
18707         their counterparts of the renaming already impose them.
18708         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18709         Determine whether an entity is inside a generic scope.
18710         (In_Open_Scope): First pass of documentation update.
18711         (Find_Expanded_Name): Add support for shadow entities associated with
18712         limited withed packages. This is required to handle nested packages.
18713         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18714         that makes a renaming of a limited withed package illegal.
18715
18716 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18717             Ed Schonberg  <schonberg@adacore.com>
18718
18719         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18720         Check_Overriding_Indicator.
18721         (Analyze_Task_Definition): Ditto.
18722         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18723         (Check_Overriding_Indicator): To find overridden interface operation,
18724         examine only homonyms that have an explicit subprogram declaration, not
18725         inherited operations created by an unrelated type derivation.
18726         (Check_Overriding_Indicator): When checking for the presence of "null"
18727         in a procedure, ensure that the queried node is a procedure
18728         specification.
18729         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18730         type when the formal is an access to variable.
18731         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18732         (Analyze_Task_Type): Same addition
18733         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18734         provide navigation capabilities for entries.
18735
18736 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18737             Ed Schonberg  <schonberg@adacore.com>
18738             Javier Miranda  <miranda@adacore.com>
18739             Gary Dismukes  <dismukes@adacore.com>
18740
18741         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18742         inherited from an interface ancestor by another interface in the
18743         context of an instance as 'late'.
18744         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18745         of a call to a function that dispatches on access result.
18746         (Check_Dispatching_Operation): In case of late overriding of a primitive
18747         that covers abstract interface subprograms we register it in all the
18748         secondary dispatch tables associated with abstract interfaces.
18749         (Check_Dispatching_Call): Add check that a dispatching call is not made
18750         to a function with a controlling result of a limited type. This is a
18751         current implementation restriction.
18752         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18753         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18754         argument is an interface type that is a generic formal.
18755         (Is_Interface_Subprogram): Removed.
18756         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18757         operation, check the formals to handle the case in which it is
18758         associated with an abstract interface type.
18759
18760 2006-10-31  Robert Dewar  <dewar@adacore.com>
18761             Ed Schonberg  <schonberg@adacore.com>
18762
18763         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18764         Add new calls to this procedure during traversal
18765         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18766         another unit if expansion is disabled.
18767
18768 2006-10-31  Robert Dewar  <dewar@adacore.com>
18769
18770         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18771         Current_Value in the conditional case, to evaluate additional
18772         comparisons at compile time.
18773
18774 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18775             Hristian Kirtchev  <kirtchev@adacore.com>
18776             Javier Miranda  <miranda@adacore.com>
18777
18778         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18779         subprogram type to provide better diagnostics in case of ambiguity.
18780         (Covers): Handle coverage of formal and actual anonymous access types in
18781         the context of generic instantiation.
18782         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18783         abstract interface types; this is required to handle concurrent types
18784         with discriminants and abstract interface types.
18785         (Covers): Include type coverage of both regular incomplete subtypes and
18786         incomplete subtypes of incomplete type visibles through a limited with
18787         clause.
18788
18789 2006-10-31  Robert Dewar  <dewar@adacore.com>
18790             Hristian Kirtchev  <kirtchev@adacore.com>
18791             Ed Schonberg  <schonberg@adacore.com>
18792
18793         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18794         messages for entities in packages which are not used.
18795         (Collect_Synchronized_Interfaces): New procedure.
18796         (Overrides_Synchronized_Primitive): New function.
18797         (Denotes_Discriminant): Extend predicate to apply to task types.
18798         Add missing continuation marks in error msgs
18799         (Unqualify): New function for removing zero or more levels of
18800         qualification from an expression. There are numerous places where this
18801         ought to be used, but we currently only deal properly with zero or one
18802         level.
18803         (In_Instance); The analysis of the actuals in the instantiation of a
18804         child unit is not within an instantiation, even though the parent
18805         instance is on the scope stack.
18806         (Safe_To_Capture_Value): Exclude the case of variables that are
18807         renamings.
18808         (Check_Obsolescent): Removed
18809         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18810         is an aliased view, even when rewritten as a reference to the target
18811         object in an assignment.
18812         (Get_Subprogram_Entity): New function
18813         (Known_To_Be_Assigned): New function
18814         (Type_Access_Level): Compute properly the access level of a return
18815         subtype that is an anonymous access type.
18816         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18817         (Is_Transfer): The new extended_return_statement causes a transfer of
18818         control.
18819         (Has_Preelaborable_Initialization): New function
18820         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18821         has a null exclusion depending on its Nkind.
18822         Change Is_Lvalue to May_Be_Lvalue
18823         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18824         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18825         (Safe_To_Capture_Value): Extend functionality so it can be used for
18826         the current value condition case.
18827         (Has_Compatible_Alignment): New function
18828         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18829         objects to handle the Ada 2005 case, where aliasedness no longer implies
18830         that the object is constrained. In particular, for dereferenced names,
18831         the designated object must be assumed to be unconstrained.
18832         (Kill_Current_Values): Properly deal with the case where we encounter
18833         a loop in the scope chain.
18834         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18835         a value.
18836         (Compile_Time_Constraint_Error): Improve error message in error case
18837
18838         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18839         associated with entities of abstract interface primitives.
18840         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18841
18842 2006-10-31  Robert Dewar  <dewar@adacore.com>
18843
18844         * s-osinte-tru64.adb:
18845         Mark Asm statements Volatile to prevent warnings (seems a
18846         reasonable change anyway)
18847         Fixes new warnings
18848
18849         * s-mastop-irix.adb: Add Volatile to Asm statements
18850         Suppresses warning, and seems appropriate in any case
18851
18852         * s-osinte-vms.adb: Add Volatile to Asm statement
18853
18854         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18855
18856         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18857         returned.
18858         Add call to Check_Code_Statement
18859
18860 2006-10-31  Robert Dewar  <dewar@adacore.com>
18861             Ed Schonberg  <schonberg@adacore.com>
18862             Bob Duff  <duff@adacore.com>
18863
18864         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18865         Synchronized_Present): Add Formal_Derived_Type_Definition and
18866         Private_Extension_Declaration to the list of assertions.
18867         (Is_Entry_Barrier_Function): New flag
18868         (Has_Self_Reference): New flag on aggregates, to indicate that they
18869         contain a reference to the enclosing type, inserted through a default
18870         initialization.
18871         (Next_Rep_Item): Move from Node4 to Node5.
18872         (Entity): Add this field for N_Attribute_Definition_Clause.
18873         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18874         (N_Return_Object_Declaration): Remove this node kind. We now use
18875         N_Object_Declaration instead.
18876         (Actual_Designated_Subtype): Move to a different place to make room in
18877         N_Extended_Return_Statement.
18878         (Procedure_To_Call): Move to a different place to make room in
18879         N_Extended_Return_Statement.
18880         (Return_Type): Removed this field to make room in return statements
18881         (both kinds).
18882         (Return_Statement_Entity): New field in return statements, in part to
18883         replace Return_Type, and in part to support the fact that return
18884         statements are now pushed on the scope stack during semantic analysis.
18885         (Return_Object_Declarations): New field to support extended return
18886         statements.
18887         (N_Extended_Return_Statement): New node for extended_return_statement
18888         nonterminal.
18889         (N_Return_Object_Declaration): New node for part of
18890         extended_return_statement nonterminal. Needed because all the necessary
18891         fields won't fit in N_Extended_Return_Statement.
18892         Generic_associations now carry the Box_Present flag, to indicate a
18893         default for an actual in a partially parametrized formal package.
18894
18895         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18896         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18897         and for the new predefined dispatching policies: EDF_Across_Priorities,
18898         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18899         Introduce new name Stub_Type for implementation defined attribute.
18900         Add pragma Preelaborable_Initialization
18901         Add entry for Priority attribute.
18902         Add Pragma_Wide_Character_Encoding
18903         (Get_Convention_Name): Given a convention id, this function returns the
18904         corresponding name id from the names table.
18905
18906 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18907             Robert Dewar  <dewar@adacore.com>
18908             Bob Duff  <duff@adacore.com>
18909
18910         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18911         print null exclusion twice in the case of an access definition,
18912         Implement new -gnatL switch
18913         Remove N_Return_Object_Declaration. We now use
18914         N_Object_Declaration instead. Implement the case for
18915         N_Extended_Return_Statement. Alphabetize the cases.
18916         Add cases for new nodes N_Extended_Return_Statement and
18917         N_Return_Object_Declaration. The code is not yet written.
18918         Update the output for N_Formal_Object_Declaration
18919         and N_Object_Renaming_Declaration.
18920         (Write_Itype): Account for the case of a modular integer subtype whose
18921         base type is private.
18922
18923 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18924
18925         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18926         Remove elaboration code, now done in the binder.
18927
18928         * s-rident.ads: Make this unit Preelaborate.
18929         (No_Restrictions): New constant used to clean up code and follow
18930         preelaborate constraints.
18931
18932         * s-stalib.adb:
18933         Add System.Restrictions dependence, referenced directly from the
18934         binder generated file.
18935
18936 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18937
18938         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18939         True when AAMP extended floating-point is in use (48-bit). Change type
18940         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18941         the two byte array types on AFloat. Change type of IV_Ilf overlay
18942         variable from Byte8 to ByteLF. Add appropriate initializations of
18943         floating-point overlays for AAMP cases.
18944
18945 2006-10-31  Javier Miranda  <miranda@adacore.com>
18946
18947         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18948         (Get_Ceiling): New subprogram that returns
18949         the ceiling priority of the protected object.
18950         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18951         the protected object.
18952
18953         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18954
18955         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18956
18957 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18958
18959         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18960         requeuing to the same protected object to give higher priority tasks
18961         the opportunity to execute.
18962
18963 2006-10-31  Robert Dewar  <dewar@adacore.com>
18964
18965         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18966         add more precise check for the character sequence that follows '[' to
18967         avoid possible confusion in case if '[' is the last character of a
18968         string literals.
18969         (Scan_Wide): Always allow brackets encoding
18970
18971 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18972
18973         * s-stchop.ads: make this unit preelaborate. This is desirable in
18974         general and made mandatory by the use of this unit by s-taprop which
18975         is itself preelaborate.
18976
18977         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18978         Td_Events component.
18979
18980 2006-10-31  Vincent Celier  <celier@adacore.com>
18981
18982         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18983         in file names.
18984
18985 2006-10-31  Vincent Celier  <celier@adacore.com>
18986
18987         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18988
18989 2006-10-31  Vincent Celier  <celier@adacore.com>
18990
18991         * makegpr.adb (Check_Compilation_Needed): Take into account path names
18992         with spaces.
18993         (Check_Compilation_Needed): When checking a C or C++ source, do not
18994         resolve symbolic links.
18995         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18996         When not in verbose mode and Ellipse is True, display "..." for the
18997         first argument with Display set to False.
18998         (Build_Global_Archive): Always set Display True for the first object
18999         file. Call Display_Command with Ellipse set to True.
19000
19001 2006-10-31  Matt Heaney  <heaney@adacore.com>
19002
19003         * a-crbtgo.ads: Commented each subprogram
19004
19005         * a-crbtgo.adb: Added reference to book from which algorithms were
19006         adapted.
19007
19008         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19009         indicate which child.
19010         (Generic_Conditional_Insert): changed parameter name from "Success" to
19011         "Inserted".
19012         (Generic_Unconditional_Insert_With_Hint): improved algorithm
19013
19014         * a-coorse.adb (Replace_Element): changed parameter name in call to
19015         conditional insert operation.
19016
19017         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19018
19019         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19020         Generic_Iteration
19021
19022         * a-ciorse.adb (Replace_Element): changed parameter name in call to
19023         conditional insert operation.
19024
19025         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19026         Generic_Iteration.
19027
19028         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19029         instead of mode inout.
19030
19031         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19032         draft
19033         (Generic_Read): preserve existing buckets array if possible
19034         (Generic_Write): don't send buckets array length anymore
19035
19036         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19037         instead of mode inout.
19038
19039         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19040         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19041
19042         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19043         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19044         (Replace_Element): local operation is now an instantiation
19045
19046         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19047         check current length.
19048         (Generic_Replace_Element): new operation
19049
19050 2006-10-31  Doug Rupp  <rupp@adacore.com>
19051
19052         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19053         Call TBK$SYMBOLIZE without omitting parameters.
19054
19055 2006-10-31  Vincent Celier  <celier@adacore.com>
19056
19057         * symbols-processing-vms-ia64.adb,
19058         symbols-processing-vms-alpha.adb (Process): Do not include symbols
19059         that come from generic instantiations in bodies.
19060
19061 2006-10-31  Pat Rogers  <rogers@adacore.com>
19062
19063         * a-rttiev.ads, a-rttiev.adb:
19064         This is a significant redesign primarily for the sake of automatic
19065         timer task termination but also to fix a design flaw.
19066         Therefore we are now using an RTS lock, instead of a protected
19067         object, to provide mutual exclusion to the queue of pending events
19068         and the type Timing_Event is no longer a protected type.
19069
19070 2006-10-31  Robert Dewar  <dewar@adacore.com>
19071             Cyrille Comar  <comar@adacore.com>
19072             Ben Brosgol  <brosgol@adacore.com>
19073
19074         * debug.adb:  Update flags documentation
19075
19076         * gnat_ugn.texi: Add documentation for new -gnatwq switch
19077         Clean up documentation for several other warning switches
19078         Clarify how task stack size can be specified with various
19079         versions of Windows.
19080         Add note that -gnatVo includes ranges including loops
19081         Add documentation for -gnatL switch
19082         Add note on elaboration warning for initializing variables
19083         Add documentation for new -gnatwt warning switch
19084         Document new form of pragma Warnings (On|Off, string)
19085         Add comment on use of pragma Warnings to control warnings
19086         Add documentation for -gnatjnn switch
19087         Modify section on interfacing with C for VMS 64-bit.
19088         Add doc for -gnatVe/E
19089         Add documentation of new warning flags -gnatww/-gnatwW
19090         Add warnings about address clause overlays to list of warnings
19091         (Exception Handling Control): Document that the option --RTS must be
19092         used consistently for gcc and gnatbind.
19093         Clarify that inlining is not always possible
19094         Update documentation on pragma Unchecked_Union.
19095
19096         * gnat_rm.texi:
19097         Add documentation for new extended version of pragma Obsolescent
19098         Add documentation for implementation defined attribute 'Stub_Type.
19099         Add note on use of Volatile in asm statements
19100         Add documentation on use of pragma Unreferenced in context clause
19101         Document new form of pragma Warnings (On|Off, pattern)
19102         Document pragma Wide_Character_Encoding
19103         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19104         enforced if code generation is active.
19105         Add section on pragma Suppress to document GNAT specific check
19106         Alignment_Check
19107         Clarify difference between No_Dispatching_Calls & No_Dispatch.
19108         Add documentation for pragma Restrictions (No_Elaboration_Code)
19109
19110         * gnat-style.texi:
19111         Add comments on layout of subprogram local variables in the
19112         presence of nested subprograms.
19113
19114         * ug_words: Resync.
19115
19116         * elists.ads: Minor reformatting
19117         Node returns Node_Or_Entity_Id (doc change only)
19118
19119         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19120
19121         * g-arrspl.ads (Create): Update comments.
19122
19123         * sem.ads: Add details on the handling of the scope stack.
19124
19125         * usage.adb: Update documentation.
19126
19127         * validsw.ads, validsw.adb:
19128         Add definition of Validity_Check_Components and implement -gnatVe/E
19129
19130         * vms_data.ads: Add missing VMS qualifiers.
19131
19132         * s-addope.ads: Add documentation on overflow and divide by zero
19133
19134 2006-10-31  Robert Dewar  <dewar@adacore.com>
19135             Thomas Quinot  <quinot@adacore.com>
19136             Arnaud Charlet  <charlet@adacore.com>
19137
19138         * fmap.adb: Put routines in alpha order
19139
19140         * g-boumai.ads: Remove redundant 'in' keywords
19141
19142         * g-cgi.adb: Minor reformatting
19143
19144         * g-cgi.ads: Remove redundant 'in' keywords
19145
19146         * get_targ.adb: Put routines in alpha order
19147
19148         * prj-attr.ads: Minor reformatting
19149
19150         * s-atacco.ads: Minor reformatting
19151
19152         * scn.adb: Put routines in alpha order
19153
19154         * sinput-l.adb: Minor comment fix
19155
19156         * sinput-p.adb: Minor comment fix
19157
19158         * s-maccod.ads: Minor reformatting
19159
19160         * s-memory.adb: Minor reformatting
19161
19162         * s-htable.adb: Fix typo in comment.
19163
19164         * s-secsta.adb: Minor comment update.
19165
19166         * s-soflin.adb: Minor reformatting
19167
19168         * s-stoele.ads:
19169         Add comment about odd qualification in Storage_Offset declaration
19170
19171         * s-strxdr.adb:
19172         Remove unnecessary 'in' keywords for formal parameters.
19173
19174         * treeprs.adt: Minor reformatting
19175
19176         * urealp.adb: Put routines in alpha order
19177
19178         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19179         taking string.
19180
19181         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19182
19183         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19184
19185         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19186         workaround as on other platforms.
19187
19188         * g-eacodu-vms.adb: Remove redundant 'in' keywords
19189         * g-expect-vms.adb: Remove redundant 'in' keywords
19190
19191         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19192         clear error message if the list-of-files file cannot be opened.
19193
19194         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19195         equality operator is always visible.
19196
19197         * lang.opt: Woverlength-strings: New option.
19198
19199         * nmake.adt:
19200         Update copyright, since nmake.ads and nmake.adb have changed.
19201
19202         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19203         (Binder_Output_Time_Stamps_Set): removed.
19204         (Old_Binder_Output_Time_Stamp): idem.
19205         (New_Binder_Output_Time_Stamp): idem.
19206         (Recording_Time_From_Last_Bind): idem.
19207         (Recording_Time_From_Last_Bind): Make constant.
19208
19209         * output.ads, output.adb (Write_Str): Allow LF characters
19210         (Write_Spaces): New procedure
19211
19212         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19213
19214         * inline.adb: Minor reformatting
19215
19216         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19217
19218         * s-mastop-vms.adb: Remove redundant 'in' keywords
19219
19220         * s-osprim-vms.adb: Remove redundant 'in' keywords
19221
19222         * s-trafor-default.adb: Remove redundant 'in' keywords
19223
19224         * 9drpc.adb: Remove redundant 'in' keywords
19225
19226         * s-osinte-mingw.ads: Minor reformatting
19227
19228         * s-inmaop-posix.adb: Minor reformatting
19229
19230         * a-direio.ads: Remove quotes from Compile_Time_Warning message
19231
19232         * a-exexda.adb: Minor code reorganization
19233
19234         * a-filico.adb: Minor reformatting
19235
19236         * a-finali.adb: Minor reformatting
19237
19238         * a-nudira.ads: Remove quote from Compile_Time_Warning message
19239
19240         * a-numeri.ads: Minor reformatting
19241
19242         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19243
19244         * exp_pakd.ads: Fix obsolete comment
19245
19246         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19247         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19248         Probably not a bug, but certainly neater and more efficient.
19249
19250         * a-tienio.adb: Minor reformatting
19251
19252         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19253         Avoid assuming low bound of string is 1.
19254
19255         * gnatbind.adb: Change Bindusg to package and rename procedure as
19256         Display, which now ensures that it only outputs usage information once.
19257         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19258
19259         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19260         Table'First.
19261
19262         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19263         warning.
19264         (Match): Add pragma Assert to ensure that Matches'First is zero
19265
19266         * g-regpat.ads (Match): Document that Matches lower bound must be zero
19267
19268         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19269         documented preconditions (also kills warnings about bad indexes).
19270
19271         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19272         is 1.
19273         (Build_Import_Library): Ditto;
19274
19275         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19276
19277         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19278
19279         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19280         lower bound of choice table is 1.
19281
19282         * sem_case.ads (Analyze_Choices): Document that lower bound of
19283         Choice_Table is 1.
19284
19285         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19286         string is 1.
19287
19288         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19289         and add appropriate Assert pragma to suppress warnings.
19290
19291         * atree.h, atree.ads, atree.adb
19292         Change Elist24 to Elist25
19293         Add definitions of Field28 and Node28
19294         (Traverse_Field): Use new syntactic parent table in sinfo.
19295
19296         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19297
19298         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19299
19300         * exp_tss.adb: Put routines in alpha order
19301
19302         * fe.h: Remove redundant declarations.
19303
19304 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19305
19306         * utils.c (builtin_function): Rename to gnat_builtin_function.
19307         Move common code to add_builtin_function.
19308         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19309         gnat_builtin_function.
19310         * gigi.h (builtin_function): Rename to gnat_builtin_function.
19311         Change the signature.
19312
19313 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
19314
19315         * Makefile.in: Add TEXI2PDF definition.
19316         * Make-lang.in: Add "ada.pdf" target.
19317
19318 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
19319
19320         * decl.c, utils.c: Fix comment typos.
19321         * utils.c: Fix a typo.
19322
19323 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
19324
19325         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19326         on "pure" Ada subprograms if SJLJ exceptions are used.
19327         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19328         on the declaration node of JMPBUF_SAVE.
19329         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19330         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19331         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19332
19333 2006-08-20  Laurent Guerby  <laurent@guerby.net>
19334
19335         PR ada/28716
19336         g-socket.adb (Bind_Socket): Call Set_Address.
19337
19338 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
19339
19340         PR ada/15802
19341         * decl.c (same_discriminant_p): New static function.
19342         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19343         subtype and we have discriminants, fix up the COMPONENT_REFs
19344         for the discriminants to make them reference the corresponding
19345         fields of the parent subtype after it has been built.
19346
19347 2006-09-15  Roger Sayle  <roger@eyesopen.com>
19348
19349         PR ada/18817
19350         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19351         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19352
19353 2006-09-13  Olivier Hainque  <hainque@adacore.com>
19354
19355         PR ada/29025
19356         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19357         of a SAVE_EXPR, just make the operand addressable/not-readonly and
19358         let the common gimplifier code make and propagate a temporary copy.
19359         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19360         out/in-out actuals and defer setting the addressable/readonly bits
19361         to the gimplifier.
19362
19363 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19364
19365         PR ada/28591
19366         * decl.c (components_to_record): Defer emitting debug info for the
19367         record type associated with the variant until after we are sure to
19368         actually use it.
19369
19370 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19371
19372         PR ada/21952
19373         * gigi.h (gnat_internal_attribute_table): Declare.
19374         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19375         * utils.c (gnat_internal_attribute_table): New global variable.
19376         (builtin_function): Always call decl_attributes on the builtin.
19377         (handle_const_attribute): New static function.
19378         (handle_nothrow_attribute): Likewise.
19379
19380 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19381
19382         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19383
19384 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19385
19386         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19387         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19388
19389 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19390             Eric Botcazou  <ebotcazou@adacore.com>
19391
19392         PR ada/18692
19393         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19394         check-gnat into check-acats.
19395
19396 2006-06-17  Karl Berry  <karl@gnu.org>
19397
19398         * gnat-style.texi (@dircategory): Use "Software development"
19399         instead of "Programming", following the Free Software Directory.
19400
19401 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19402
19403         PR ada/27944
19404         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19405
19406 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19407
19408         PR ada/27769
19409         mlib-utl.adb: Use Program_Name.
19410
19411 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19412
19413         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19414         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19415         trans.c, utils.c: Fix comment typos.  Follow spelling
19416         conventions.
19417         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19418         conventions.
19419
19420 2006-05-19  Nicolas Setton  <setton@adacore.com>
19421
19422         * misc.c (gnat_dwarf_name): New function.
19423         (LANG_HOOKS_DWARF_NAME): Define to it.
19424
19425 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19426
19427         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19428         (ada/misc.o): Likewise.
19429         (ada/utils.o): Likewise.
19430
19431 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19432
19433         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19434         * s-osinte-kfreebsd-gnu.ads: New file.
19435
19436 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19437
19438         * Make-lang.in: Rename docdir to gcc_docdir.
19439
19440 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19441
19442         * gigi.h (get_ada_base_type): Delete.
19443         * utils2.c (get_ada_base_type): Likewise.
19444         * trans.c (convert_with_check): Operate in the real base type.
19445
19446 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19447
19448         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19449
19450 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19451
19452         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19453         whether to make the decl common.
19454
19455 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19456
19457         * Make-lang.in (Ada): Remove.
19458         (.PHONY): Remove Ada
19459
19460 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19461
19462         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19463         aggregate, check the interpretations of the other operand to find one
19464         that may be a boolean array.
19465
19466         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19467         the prefix is a private extension.
19468
19469 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19470
19471         PR ada/26315
19472         * utils2.c (find_common_type): If both input types are BLKmode and
19473         have the same constant size, keep using the first one.
19474
19475         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19476
19477         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19478
19479         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19480
19481 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19482
19483         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19484         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19485         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19486         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19487         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19488         aborted while owning a lock.
19489
19490 2006-02-17  Javier Miranda  <miranda@adacore.com>
19491             Robert Dewar  <dewar@adacore.com>
19492
19493         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19494         through an access to class-wide interface we force the displacement of
19495         the pointer to the allocated object to reference the corresponding
19496         secondary dispatch table.
19497         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19498         if Long_Shifts are supported on the target, even if 64 bit divides
19499         are not supported (configurable run time mode).
19500         (Expand_N_Type_Conversion): Do validity check if validity checks on
19501         operands are enabled.
19502         (Expand_N_Qualified_Expression): Do validity check if validity checks
19503         on operands are enabled.
19504
19505 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19506
19507         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19508         must be materialized when the renamed expression is an explicit
19509         dereference.
19510
19511 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19512
19513         * freeze.adb (Statically_Discriminated_Components): Return false if
19514         the bounds of the type of the discriminant are not static expressions.
19515
19516         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19517         the bounds of the discriminant type are not static.
19518
19519 2006-02-17  Robert Dewar  <dewar@adacore.com>
19520
19521         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19522         then we close To if it is valid.
19523
19524 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19525
19526         * init.c (facility_resignal_table): new array
19527         (__gnat_default_resignal_p): enhance default predicate to resignal if
19528         VMS condition has one of the predefined facility codes.
19529
19530 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19531
19532         * Makefile.in: Use VMS64 specialized versions of several units in
19533         Interfaces.C hierarchy to be compatible with HP C default size choices.
19534         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19535
19536 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19537
19538         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19539         instantiation, the corresponding entity is the related_instance of the
19540         wrapper package created for the instance.
19541
19542 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19543
19544         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19545         the current instance is nested within another instance in a child unit.
19546
19547 2006-02-17  Javier Miranda  <miranda@adacore.com>
19548             Ed Schonberg  <schonberg@adacore.com>
19549
19550         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19551         type we cannot inherit the primitive operations; we inherit the
19552         Corresponding_Record_Type (which has the list of primitive operations).
19553         (Check_Anonymous_Access_Types): When creating anonymous access types for
19554         access components, use Rewrite in order to preserve the tree structure,
19555         for ASIS use.
19556         (Analyze_Object_Declaration): For limited types with access
19557         discriminants with defaults initialized by an aggregate, obtain
19558         subtype from aggregate as for other mutable types.
19559         (Derived_Type_Declaration): If the derived type is a limited interface,
19560         set the corresponding flag (Is_Limited_Record is not sufficient).
19561
19562 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19563
19564         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19565         to inline a function that returns an unconstrained type, the return
19566         expression must be the first variable declared in the body of the
19567         function.
19568
19569 2006-02-17  Javier Miranda  <miranda@adacore.com>
19570
19571         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19572         abstract interface type, the static analysis is not enough to know if
19573         the interface is implemented or not by the source tagged type. Hence
19574         we must pass the work to the expander to generate the required code to
19575         evaluate the conversion at run-time.
19576         (Resolve_Equality_Op): Do not apply previous
19577         transformation if expansion is disasbled, to prevent anomalies when
19578         locating global references in a generic unit.
19579
19580 2006-02-17  Vincent Celier  <celier@adacore.com>
19581
19582         * snames.ads, snames.adb: New standard names for new project attributes:
19583         archive_builder, archive_indexer, compiler_pic_option,
19584         config_body_file_name, config_body_file_name_pattern,
19585         config_file_switches, config_file_unique, config_spec_file_name,
19586         config_spec_file_name_pattern, default_builder_switches,
19587         default_global_compiler_switches, default_language,
19588         dependency_file_kind, global_compiler_switches, include_path,
19589         include_path_file, language_kind, linker_executable_option,
19590         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19591         roots, runtime_project.
19592
19593 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19594
19595         * a-convec.ads, a-convec.adb:
19596         (operator "&"): handle potential overflow for large index types
19597         (Insert): removed Contraint_Error when using large index types
19598         (Insert_Space): removed Constraint_Error for large index types
19599         (Length): moved constraint check from Length to Insert
19600
19601         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19602         as not null access.
19603         Explicit raise statements now include an exception message.
19604         (operator "&"): handle potential overflow for large index types
19605         (Insert): removed Contraint_Error when using large index types
19606         (Insert_Space): removed Constraint_Error for large index types
19607         (Length): moved constraint check from Length to Insert
19608
19609 2006-02-17  Robert Dewar  <dewar@adacore.com>
19610
19611         * s-wchcnv.adb: Document handling of [ on output (we do not change
19612         this to ["5B"] and the new comments say why not.
19613
19614         * gnat_ugn.texi:
19615         Add note for -gnatVo that this now includes the cases of type
19616         conversions and qualified expressions.
19617         Add comments on handling of brackets encoding for Text_IO
19618
19619 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19620             Thomas Quinot  <quinot@adacore.com>
19621             Robert Dewar  <dewar@adacore.com>
19622             Javier Miranda  <miranda@adacore.com>
19623
19624         * expander.adb: Fix typo in comment
19625
19626         * exp_pakd.adb: Fix typo
19627         Minor comment reformatting.
19628
19629         * g-dyntab.adb: Minor reformatting
19630
19631         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19632         aliased subprograms to look for the abstract interface subprogram.
19633
19634 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19635
19636         * env.c (__gnat_setenv): Use size_t.
19637         (__gnat_unsetenv): Likewise.
19638         (__gnat_clearenv): Likewise.
19639
19640 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19641
19642         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19643
19644 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19645
19646         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19647         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19648         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19649         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19650         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19651         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19652         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19653         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19654         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19655         no longer used.
19656
19657 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19658
19659         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19660         protection against race conditions is not needed.
19661         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19662         fallback handler.
19663         (Set_Specific_Handler): Add mutual exclusive access to the specific
19664         handler.
19665         (Specific_Handler): Add mutual exclusive access for retrieving the
19666         specific handler.
19667
19668         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19669         back handler.
19670
19671         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19672         Fall_Back_Handler and Specific_Handler.
19673
19674         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19675         termination handlers.
19676         Set two different owerflow depending on the maximal stack size.
19677
19678         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19679         protection against race conditions is not needed when executing the
19680         task termination handler.
19681
19682 2006-02-13  Robert Dewar  <dewar@adacore.com>
19683
19684         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19685         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19686         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19687         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19688         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19689         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19690         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19691         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19692         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19693         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19694         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19695         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19696         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19697         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19698         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19699         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19700         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19701         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19702         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19703         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19704         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19705         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19706         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19707         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19708         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19709         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19710         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19711         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19712         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19713         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19714         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19715         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19716         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19717         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19718         reformatting.
19719
19720 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19721
19722         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19723         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19724         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19725         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19726         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19727         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19728         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19729         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19730         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19731
19732 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19733
19734         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19735         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19736         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19737         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19738         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19739         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19740         replaced by anonymous access type.
19741         (pthread_sigmask): Now take an access sigset_t
19742
19743         * s-osinte-hpux.ads:  Ditto.
19744         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19745         properly 32 and 64 bit ABIs.
19746
19747 2006-02-13  Pascal Obry  <obry@adacore.com>
19748
19749         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19750         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19751         s-taprop-linux.adb, s-taprop-solaris.adb,
19752         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19753         adjustement is already done when calling this routine.
19754
19755 2006-02-13  Pascal Obry  <obry@adacore.com>
19756
19757         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19758         table to take advantage of the 16 priority levels available on Windows
19759         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19760         supported by this new mapping.
19761
19762 2006-02-13  Nicolas Setton  <setton@adacore.com>
19763
19764         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19765         (get_encoding): New subprogram. Extracts the encodings from an encoded
19766         Ada name.
19767
19768 2006-02-13  Pascal Obry  <obry@adacore.com>
19769             Nicolas Roche  <roche@adacore.com>
19770             Arnaud Charlet  <charlet@adacore.com>
19771
19772         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19773         support.
19774         (__gnat_try_lock): Add unicode support by using a specific section on
19775         Windows.
19776         (__gnat_get_current_dir): Idem.
19777         (__gnat_open_read): Idem.
19778         (__gnat_open_rw): Idem.
19779         (__gnat_open_create): Idem.
19780         (__gnat_create_output_file): Idem.
19781         (__gnat_open_append): Idem.
19782         (__gnat_open_new): Idem.
19783         (__gnat_file_time_name): Idem.
19784         (__gnat_set_file_time_name): Idem.
19785         (__gnat_stat): Idem.
19786         (win32_no_block_spawn): Idem.
19787         (__gnat_locate_exec_on_path): Idem.
19788         (__gnat_opendir): New routine.
19789         (__gnat_closedir): Idem.
19790         (__gnat_readdir): Add new parameter length (pointer to int). Update
19791         implementation to use it and add specific Win32 code for Unicode
19792         support.
19793         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19794         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19795         (convert_addresses): Do not define this dummy routine on VMS.
19796
19797         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19798         runtime Unicode support will be activated.
19799         (S2WS): String to Wide-String conversion. This version just copy a
19800         string in non Unicode version.
19801         (WS2S): Wide-String to String conversion. This version just copy a
19802         string in non Unicode version.
19803
19804         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19805         (Open): Now import __gnat_opendir from adaint.c.
19806         (Read): Change the implementation to support unicode characters. It is
19807         not possible to use strlen() on Windows as this version supports only
19808         standard ASCII characters. So the length of the directory entry is now
19809         returned from the imported __gnat_readdir routine.
19810         Update copyright notice.
19811
19812         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19813         (opendir): Moved to adaint.c.
19814
19815         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19816         (Get_Directory): Fix wrong indexing.
19817         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19818         __gnat_getenv from env.c
19819         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19820         from env.c
19821
19822         * env.h, env.c: New file.
19823
19824         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19825         adaint.c by __gnat_getenv from env.c
19826
19827         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19828         adaint.c by __gnat_getenv from env.c
19829
19830         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19831         and gnatbind.
19832         Update dependencies.
19833
19834 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19835             Olivier Hainque  <hainque@adacore.com>
19836             Eric Botcazou  <ebotcazou@adacore.com>
19837
19838         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19839
19840         * gigi.h (value_factor_p): Add prototype and description, now public.
19841
19842         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19843         promotion for field with rep clause if the associated size was proven
19844         to be in error.
19845         Expand comments describing attempts to use a packable type.
19846         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19847         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19848         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19849         necessary since these are not different types and pointers may
19850         actually designate any subtype in this hierarchy.
19851         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19852         discriminants but put them into record only if not Unchecked_Union;
19853         pass flag to components_to_record showing Unchecked_Union.
19854         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19855         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19856         (components_to_record): New argument UNCHECKED_UNION.
19857         Remove special case code for Unchecked_Union and instead use main code
19858         with small changes.
19859
19860         PR ada/26096
19861         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19862         variable with the expression being built, only its inner field.
19863
19864         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19865         emit_sequence_entry_statements.
19866         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19867         (establish_gnat_vms_condition_handler): Move before
19868         Subprogram_Body_to_gnu.
19869         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19870         for a subprogram if it has a foreign convention or is exported.
19871         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19872         substituted for a CONST_DECL.
19873         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19874         Etype to assoc_to_constructor.
19875         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19876         discriminants of Unchecked_Union.
19877         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19878         don't need cluttering preprocessor directives.
19879         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19880         condition handler as current in the compiled function.
19881         (body_with_handlers_p): New function. Tell whether a given sequence of
19882         statements node is attached to a package or subprogram body and involves
19883         exception handlers possibly nested within inner block statements.
19884         (emit_sequence_entry_statements): New function, to emit special
19885         statements on entry of sequences when necessary. Establish GNAT
19886         condition handler in the proper cases for VMS.
19887         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19888         emit_sequence_entry_statements.
19889
19890         * utils2.c (find_common_type): If both input types are BLKmode and
19891         have a constant size, use the smaller one.
19892         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19893         the same.
19894
19895         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19896         units.
19897         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19898         (convert, case UNION_TYPE): Remove special treatment for unchecked
19899         unions.
19900
19901         PR ada/18659
19902         (update_pointer_to): Update variants of pointer types to unconstrained
19903         arrays by attaching the list of fields of the main variant.
19904
19905 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19906             Robert Dewar  <dewar@adacore.com>
19907
19908         * a-exexpr.adb, a-exexpr-gcc.adb
19909         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19910         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19911         Remove code unused for exception propagation for the compiler itself
19912         from a-except.adb and update to still share separate packages.
19913
19914         * a-except.ads, a-except.adb: Ditto.
19915         Add comments that this version is now used only by the compiler and
19916         other basic tools. The full version that includes the Ada 2005 stuff
19917         is in separate files a-except-2005.ads/adb. The reason is that we do
19918         not want to cause bootstrap problems with compilers not recognizing
19919         Wide_Wide_String.
19920         Add exception reason code PE_Implicit_Return
19921         Add new exception reason code (Null Exception_Id)
19922
19923         * a-except-2005.adb, a-except-2005.ads: New files.
19924
19925         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19926
19927         * s-wchcon.adb: New file.
19928
19929         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19930         (traceback.o deps): Likewise.
19931         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19932         Activate build of GMEM instrumentation library on VMS targets.
19933         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19934         Use a-except-2005.ads/adb for all run-time library builds unless
19935         specified otherwise.
19936         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19937         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19938         Use s-parame.adb on all native platforms.
19939         Use s-parame-vxworks.adb on all vxworks platforms.
19940         Add env.c env.h in LIBGNAT_SRCS
19941         Add env.o in LIBGNAT_OBJS
19942         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19943         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19944         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19945         supports VxWorks 6 RTPs.
19946         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19947         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19948
19949         * types.h, types.ads (Terminate_Program): New exception
19950         Add comment on modifying multiple versions of a-except.adb when the
19951         table of exception reasons is modified.
19952         Add exception reason code PE_Implicit_Return
19953         Add new exception reason code (Null Exception_Id)
19954
19955         * clean.adb (Initialize): Get the target parameters before checking
19956         if target is OpenVMS. Move the OpenVMS specific code here from package
19957         body elaboration code.
19958
19959 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19960             Vincent Celier  <celier@adacore.com>
19961             Robert Dewar  <dewar@adacore.com>
19962
19963         * ali-util.adb (Get_File_Checksum): Update to account for change in
19964         profile of Initialize_Scanner.
19965
19966         * gprep.adb (Gnatprep): Update to account for change in profile of
19967         Initialize_Scanner.
19968         (Process_One_File): Same.
19969
19970         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19971         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19972         that behaviour using the new Unit information recorded in the source
19973         files table, rather than going through all units every time.
19974         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19975         (Get_Source_Unit): Same.
19976
19977         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19978         change in profile of Initialize_Scanner.
19979         (Prepare_To_Preprocess): Same.
19980
19981         * lib.ads: Fix typo in comment (templace -> template).
19982
19983         * prj-part.adb (Parse_Single_Project): Update to account for change in
19984         profile of Initialize_Scanner.
19985
19986         * scn.adb (Initialize_Scanner): Account for change in profile of
19987         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19988         Also record the association of the given Source_File_Index to the
19989         corresponding Unit_Number_Type.
19990
19991         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19992         procedure.
19993         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19994         Remove Unit formal for generic scanner: this formal
19995         is only relevant to Scn (the scanner instance used to parse Ada source
19996         files), not to other instances. Update comment accordingly.
19997         (Scan): Use new function Snames.Is_Keyword_Name.
19998
19999         * sinfo-cn.adb: Fix typo in comment.
20000
20001         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20002         Unit.
20003
20004         * sinput.ads (Source_File_Record): New component Unit, used to capture
20005         the unit identifier (if any) associated to a source file.
20006
20007         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20008         Unit in Source_File_Record.
20009
20010         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20011         in profile of Initialize_Scanner.
20012
20013         * scans.adb (Initialize_Ada_Keywords): New procedure
20014
20015         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20016         Ada keywords in the Namet table, without the need to call
20017         Initialize_Scanner.
20018
20019         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20020         (Is_Keyword_Name): New function
20021
20022         * snames.ads: Add subtype Configuration_Pragma_Names
20023         Add pragma Ada_2005 (synonym for Ada_05)
20024         (Is_Keyword_Name): New function
20025
20026         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20027
20028 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20029
20030         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20031         index.
20032
20033         * a-stwima.adb (To_Set): Add extra check when N = 0.
20034
20035         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20036
20037 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20038
20039         * s-parame-mingw.adb, s-parame-linux.adb,
20040         s-parame-solaris.adb: Removed, replaced by s-parame.adb
20041
20042         * s-parame-vxworks.ads: Fix typo.
20043
20044         * s-parame-vxworks.adb: New file.
20045
20046         * s-parame.adb: Version now used by all native platforms.
20047         (Default_Stack_Size): Use 2 megs for default stack size and use
20048         __gl_default_stack_size when available.
20049         (Minimum_Stack_Size): Use 12K.
20050
20051         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20052         (Create_Task): Refine implementation taking advantage of the XP stack
20053         size support. On XP, we now create the thread using the flag
20054         STACK_SIZE_PARAM_IS_A_RESERVATION.
20055
20056         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20057
20058         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20059         XP and 0 on older Windows versions.
20060
20061         * interfac-vms.ads: Removed, no longer used.
20062
20063 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20064
20065         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20066         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20067         a-cohase.adb: All explicit raise statements now include an exception
20068         message.
20069
20070         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20071         (Update_Element_Preserving_Key): renamed op to just Update_Element.
20072         Explicit raise statements now include an exception message
20073
20074         * a-cihase.ads, a-cohase.ads: Removed comment.
20075
20076         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20077         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20078         a-szbzha.adb, a-szfzha.ads: New files.
20079
20080 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20081
20082         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20083         quicksort.
20084
20085 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20086
20087         * lang.opt: Wvariadic-macros: New option.
20088         Wold-style-definition: Likewise.
20089         Wmissing-format-attribute: Likewise.
20090
20091         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20092         -Wold-style-definition and -Wmissing-format-attribute.
20093
20094 2006-02-13  Robert Dewar  <dewar@adacore.com>
20095
20096         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20097
20098         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20099
20100 2006-02-13  Nicolas Roche  <roche@adacore.com>
20101
20102         * a-envvar.adb, a-envvar.ads: New files.
20103
20104 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20105
20106         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20107
20108         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20109
20110 2006-02-13  Pat Rogers  <rogers@adacore.com>
20111
20112         * a-rttiev.adb, a-rttiev.ads: New files.
20113
20114 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20115
20116         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20117         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
20118
20119         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20120
20121 2006-02-13  Robert Dewar  <dewar@adacore.com>
20122
20123         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20124         sem_case.adb: Minor code reorganization (not Present should be No)
20125
20126 2006-02-13  Geert Bosch  <bosch@adacore.com>
20127             Gary Dismukes  <dismukes@adacore.com>
20128
20129         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20130         0, since the lower bound of the actual string may be greater than one.
20131
20132         PR ada/20753
20133         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20134         layout is requested.
20135
20136 2006-02-13  Vincent Celier  <celier@adacore.com>
20137
20138         * back_end.adb (Scan_Compiler_Arguments): Check if
20139         Search_Directory_Present is True and, if it is, add the argument in
20140         the source search directory path.
20141
20142         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20143         Search_Directory_Present to True.
20144
20145 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
20146
20147         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20148         volatile, to tell the compiler to preserve this variable at any level
20149         of optimization.
20150         (Gen_Versions_Ada): Temporarily work around codegen bug.
20151
20152 2006-02-13  Vincent Celier  <celier@adacore.com>
20153
20154         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20155         gcc to link with option -shared-libgcc.
20156         (Gnatlink): Remove duplicate switches -shared-libgcc
20157
20158 2006-02-13  Robert Dewar  <dewar@adacore.com>
20159
20160         * gnatvsn.ads (Current_Year): New constant, used to easily update
20161         copyright on all GNAT tools.
20162
20163         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20164         copyright notice.
20165
20166 2006-02-13  Robert Dewar  <dewar@adacore.com>
20167
20168         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20169         after hyphen (small aesthetic change useful for a range of numbers
20170         using ^-^.
20171         Suppress range checks for a couple of assignments which otherwise
20172         cause validity checks with validity checking turned on.
20173
20174         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20175         Improvement in error message for object.
20176         (Rep_Item_Too_Late): Remove '!' in warning message.
20177
20178 2006-02-13  Robert Dewar  <dewar@adacore.com>
20179             Eric Botcazou  <ebotcazou@adacore.com>
20180
20181         * err_vars.ads: Suppress range checks for a couple of assignments
20182         which otherwise cause validity checks with validity checking turned on.
20183         Update comments.
20184
20185         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20186         Make message unconditional if it is a warning.
20187         (Error_Msg_NEL): Always output warning messages.
20188         Suppress range checks for a couple of assignments which otherwise
20189         cause validity checks with validity checking turned on.
20190
20191         * errout.ads (Message Insertion Characters): Document that '!' is
20192         implied by '?' in error messages.
20193
20194         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20195         (Gnat1drv): Use a goto to end of main subprogram instead of
20196         Exit_Program (E_Success) so that finalization can occur normally.
20197
20198 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20199
20200         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20201         wrapped around.
20202
20203 2006-02-13  Vincent Celier  <celier@adacore.com>
20204
20205         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20206         Unchecked_Conversion functions.
20207         (Modification_Time): Use direct conversion of OS_Time to Calendar time
20208         when OpenVMS returns False.
20209
20210         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20211         a-dirval.adb (OpenVMS): New Boolean function
20212
20213 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20214             Thomas Quinot  <quinot@adacore.com>
20215
20216         * checks.adb (Build_Discriminant_Checks): If the expression being
20217         checks is an aggregate retrieve the values of its discriminants to
20218         generate the check, rather than creating a temporary and a reference
20219         to it.
20220         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20221         (Install_Null_Excluding_Check): Ditto
20222         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20223         not for the renamed object, so that the actual itype is attached in the
20224         proper context.
20225
20226 2006-02-13  Robert Dewar  <dewar@adacore.com>
20227             Vincent Celier  <celier@adacore.com>
20228
20229         * debug.adb: Eliminate numeric switches for binder/gnatmake
20230
20231         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20232         switches for the compiler.
20233         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20234         (Scan_Make_Switches): When failing with an illegal switch, output an
20235         error message with the full switch.
20236         Eliminate numeric switches for binder/gnatmake
20237
20238         * switch.ads, switch.adb (Bad_Switch): New procedure
20239
20240         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20241         Remove 0-9 as debug flag character possibilities
20242         -d is now controlling the primary stack size when its value is a
20243         positive. Also add checks against invalid values, and support for kb,
20244         mb. Ditto for -D switch.
20245
20246 2006-02-13  Robert Dewar  <dewar@adacore.com>
20247             Serguei Rybin  <rybin@adacore.com>
20248
20249         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20250         save/restore routines.
20251         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20252         were not always properly handled previously.
20253         Since we are changing the tree format anyway, also get rid of the
20254         junk obsolete Immediate_Errors flag.
20255         (Tree_Read): Change the way of reading Tree_Version_String - now we
20256         read the version string from the tree even if its length is not the
20257         same as the length of the version string computed from Gnatvsn.
20258         (Search_Directory_Present): New Boolean flag for the compiler.
20259         Define Tree_Version_String as a dynamic string.
20260         (Default_Stack_Size): new variable, used to handle switch -d.
20261
20262         * par-prag.adb:
20263         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20264         only for main unit.
20265         Add pragma Ada_2005 (synonym for Ada_05)
20266         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20267         were not always properly handled previously.
20268
20269         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20270         explicit Ada_95 to Ada_2005.
20271
20272 2006-02-13  Javier Miranda  <miranda@adacore.com>
20273             Robert Dewar  <dewar@adacore.com>
20274             Ed Schonberg  <schonberg@adacore.com>
20275
20276         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20277         against errors in the source program: a private types for which the
20278         corresponding full type declaration is missing and pragma CPP_Virtual
20279         is used.
20280         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20281         (Is_Known_Null): New flag
20282         (Has_Pragma_Pure): New flag
20283         (No_Return): Present in all entities, set only for procedures
20284         (Is_Limited_Type): A type whose ancestor is an interface is limited if
20285         explicitly declared limited.
20286         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20287         entities. Only used for component marked Is_Tag. If present it stores
20288         the Offset_To_Top function used to provide this value in tagged types
20289         whose ancestor has discriminants.
20290
20291         * exp_ch2.adb: Update status of new Is_Known_Null flag
20292
20293         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20294
20295         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20296         the categorization sense if Is_Pure was set by pragma Pure_Function.
20297
20298 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20299             Olivier Hainque  <hainque@adacore.com>
20300
20301         * bindusg.adb: Updated documentation for -d and -D switches.
20302
20303         * raise.h (__gnat_set_globals): added new parameter for
20304         Default_Stack_Size.
20305
20306         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20307         (__gnat_handle_vms_condition): Adjust context before raise.
20308         (__gnat_install_handler): Restore the global vector setup for GCC
20309         versions before 3.4, as the frame based circtuitry is not available
20310         in this case.
20311         (__gnat_set_globals): added a parameter default_stack_size
20312         (__gl_default_stack_size): new variable.
20313
20314 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20315
20316         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20317         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20318         does not exist in the Ada RM.
20319         (Compatible_Int_Bounds): Determine whether two integer range bounds
20320         are of equal length and have the same start and end values.
20321         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20322         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20323         aggregate when it is part of an object declaration.
20324         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
20325         constrains discriminants of its parent, add explicitly the discriminant
20326         constraints of the ancestor by retrieving them from the
20327         stored_constraint of the parent.
20328
20329 2006-02-13  Robert Dewar  <dewar@adacore.com>
20330
20331         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20332         attribute Mechanism_Code is applied to renamed subprogram, modify
20333         prefix to point to base subprogram.
20334         Max/Min attributes now violate Restriction No_Implicit_Conditionals
20335
20336         * sinfo.ads: Document that Mechanism_Code cannot be applied to
20337         renamed subprograms so that the front-end must replace the prefix
20338         appropriately.
20339
20340 2006-02-13  Javier Miranda  <miranda@adacore.com>
20341             Gary Dismukes  <dismukes@adacore.com>
20342
20343         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20344         availability of RE_Interface_Tag.
20345         (Build_Initialization_Call): Fix wrong access to the discriminant value.
20346         (Freeze_Record_Type): Do not generate the tables associated with
20347         timed and conditional dispatching calls through synchronized
20348         interfaces if compiling under No_Dispatching_Calls restriction.
20349         When compiling for Ada 2005, for a nonabstract
20350         type with a null extension, call Make_Controlling_Function_Wrappers
20351         and insert the wrapper function declarations and bodies (the latter
20352         being appended as freeze actions).
20353         (Predefined_Primitive_Bodies): Do not generate the bodies of the
20354         predefined primitives associated with timed and conditional
20355         dispatching calls through synchronized interfaces if we are
20356         compiling under No_Dispatching_Calls.
20357         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
20358         service is available before generating a call.
20359         (Make_Controlling_Function_Wrappers): New procedure.
20360         (Expand_N_Full_Type_Declaration): Create a class-wide master for
20361         access-to-limited-interfaces because they can be used to reference
20362         tasks that implement such limited interface.
20363         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20364         procedure spec and body of the Offset_To_Top function that is generated
20365         when the parent of a type with discriminants has secondary dispatch
20366         tables.
20367         (Init_Secondary_Tags): Handle the case in which the parent of the type
20368         containing secondary dispatch tables has discriminants to generate the
20369         correct arguments to call Set_Offset_To_Top.
20370         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20371
20372         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20373         Add Wide_[Wide_]Expanded_Name.
20374         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20375         the same functionality of Get_Prim_Op_Address but applied to predefined
20376         primitive operations because the pointers to the predefined primitives
20377         are now saved in a separate table.
20378         (Parent_Size): Modified to get access to the separate table of primitive
20379         operations or the parent type.
20380         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20381         functionality of Set_Prim_Op_Address but applied to predefined primitive
20382         operations.
20383         (Set_Signature): New subprogram used to store the signature of a DT.
20384         (Displace): If the Offset_To_Top value is not static then call the
20385         function generated by the expander to get such value; otherwise use
20386         the value stored in the table of interfaces.
20387         (Offset_To_Top): The type of the actual has been changed to Address to
20388         give the correct support to tagged types with discriminants. In this
20389         case this value is stored just immediately after the tag field.
20390         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20391         offset_to_top value is static and hence pass this value to the run-time
20392         to store it in the table of interfaces, or else if this value is dynamic
20393         and then pass to the run-time the address of a function that is
20394         generated by the expander to provide this value for each object of the
20395         type.
20396
20397         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20398         (Default_Prim_Op_Count): New entity
20399         (Get_Predefined_Prim_Op_Address): New entity
20400         (Set_Predefined_Prim_Op_Address): New entity
20401         (RE_Set_Signature): New entity
20402
20403 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20404             Ed Schonberg  <schonberg@adacore.com>
20405
20406         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20407         Make_Adjust_Call done for a newly-allocated object.
20408
20409         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20410         in a subprogram are wrapped in a cleanup block, indicate that the
20411         subprogram contains an inner block with an exception handler.
20412         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20413         Adjust call is for a newly-allocated object. In that case we must not
20414         assume that the finalization list chain pointers are correct (since they
20415         come from a bit-for-bit copy of the original object's pointers) so if
20416         the attach level would otherwise be zero (no change), we set it to 4
20417         instead to cause the pointers to be reset to null.
20418
20419         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20420         reset chain pointers to null.
20421
20422 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20423
20424         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20425         string, and the context requires a loop for the assignment (e.g.
20426         because the left-hand side is packed), generate a unique name for the
20427         temporary that holds the string, to prevent spurious name clashes.
20428
20429 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20430             Javier Miranda  <miranda@adacore.com>
20431             Robert Dewar  <dewar@adacore.com>
20432             Gary Dismukes  <dismukes@adacore.com>
20433
20434         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20435         return unconstrained arrays.
20436         Update comments.
20437         (Expand_Call):  An indirect call through an access parameter of a
20438         protected operation is not a protected call.
20439         Add circuit to raise CE in Ada 2005 mode following call
20440         to Raise_Exception.
20441         (Register_DT_Entry): Do nothing if
20442         the run-time does not give support to abstract interfaces.
20443         (Freeze_Subprogram): In case of dispatching operations, do not generate
20444         code to register the operation in the dispatch table if the source
20445         is compiled with No_Dispatching_Calls.
20446         (Register_Predefined_DT_Entry): Generate code that calls the new
20447         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20448         Set_Prim_Op_Address.
20449
20450         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20451         on array assignments if the right-hand side is a function call that has
20452         been inlined. Check is performed on the assignment in the block.
20453         (Process_Bounds): If bounds and range are overloaded, apply preference
20454         rule for root operations to disambiguate, and diagnose true ambiguity.
20455         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20456         a tag-indeterminate right-hand side even when Expander_Active is True.
20457         Needed to ensure that dispatching calls to T'Input are allowed and
20458         get the tag of the target class-wide object.
20459
20460         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20461         an inherited primitive operation that already overrides several
20462         abstract interface primitives. For transitivity, the new entity must
20463         also override all the abstract interface primitives covered by the
20464         inherited overriden primitive.
20465         Emit warning if new entity differs from homograph in same scope only in
20466         that one has an access parameter and the other one has a parameter of
20467         a general access type with the same designated type, at the same
20468         position in the signature.
20469         (Make_Inequality_Operator): Use source locations of parameters and
20470         subtype marks from corresponding equality operator when creating the
20471         tree structure for the implicit declaration of "/=". This does not
20472         change anything in behaviour except that the decoration of the
20473         components of the subtree created for "/=" allows ASIS to get the
20474         string images of the corresponding identifiers.
20475         (Analyze_Return_Statement): Remove '!' in warning message.
20476         (Check_Statement_Sequence): Likewise.
20477         (Analyze_Subprogram_Body): For an access parameter whose designated type
20478         is an incomplete type imported through a limited_with clause, use the
20479         type of the corresponding formal in the body.
20480         (Check_Returns): Implicit return in No_Return procedure now raises
20481         Program_Error with a compile time warning, instead of beging illegal.
20482         (Has_Single_Return):  Function returning unconstrained type cannot be
20483         inlined if expression in unique return statement is not an identifier.
20484         (Build_Body_To_Inline): It is possible to inline a function call that
20485         returns an unconstrained type if all return statements in the function
20486         return the same local variable. Subsidiary procedure Has_Single_Return
20487         verifies that the body conforms to this restriction.
20488
20489         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20490         same type, and  one of them is of an anonymous access type, convert
20491         the other operand to it, so that this is a valid binary operation for
20492         gigi.
20493         (Resolve_Type_Conversion): Handle subtypes of protected types and
20494         task types when accessing to the corresponding record type.
20495         (Resolve_Allocator): Add '\' in 2-line warning message.
20496         Remove '!' in warning message.
20497         (Resolve_Call): Add '\' in 2-line warning message.
20498         (Valid_Conversion): Likewise.
20499         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20500         resulting type may be an access type with an implicit dereference.
20501         Obtain the proper component from the designated type.
20502         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20503         given by an expanded name with prefix Standard, when the operands are
20504         of an anonymous access type.
20505         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20506         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20507         prefix of the expression is not of an incomplete type. Allows full
20508         diagnoses of all semantic errors.
20509         (Resolve_Actuals): If the actual is an allocator whose directly
20510         designated type is a class-wide interface we build an anonymous
20511         access type to use it as the type of the allocator. Later, when
20512         the subprogram call is expanded, if the interface has a secondary
20513         dispatch table the expander will add a type conversion to force
20514         the displacement of the pointer.
20515         (Resolve_Call): If a function that returns an unconstrained type is
20516         marked Inlined_Always and inlined, the call will be inlined and does
20517         not require the creation of a transient scope.
20518         (Check_Direct_Boolean_Op): Removed
20519         (Resolve_Comparison_Op): Remove call to above
20520         (Resolve_Equality_Op): Remove call to above
20521         (Resolve_Logical_Op): Inline above, since this is only call.
20522         (Valid_Conversion): Handle properly conversions between arrays of
20523         convertible anonymous access types.
20524
20525         PR ada/25885
20526         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20527         the literal in an unchecked conversion, because GCC 4.x needs a static
20528         value for a string bound.
20529
20530 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20531             Hristian Kirtchev  <kirtchev@adacore.com>
20532
20533         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20534         components of the corresponding record, take into account component
20535         definitions that are access definitions.
20536         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20537         procedure is not considered a dispatching call and will be expanded
20538         properly.
20539
20540 2006-02-13  Javier Miranda  <miranda@adacore.com>
20541
20542         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20543         controlling argument of the dispatching call is an abstract interface
20544         class-wide type then we use it directly.
20545         Check No_Dispatching_Calls restriction.
20546         (Default_Prim_Op_Position): Remove the code that looks for the last
20547         entity in the list of aliased subprograms. This code was wrong in
20548         case of renamings.
20549         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20550         when the source is compiled with the No_Dispatching_Calls restriction.
20551         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20552         if we are compiling with restriction No_Dispatching_Calls.
20553         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20554         subprograms if we are compiling under No_Dispatching_Calls restriction.
20555         (Make_DT): Generate a dispatch table with a single dummy entry if
20556         we are compiling with the No_Dispatching_Calls restriction. In
20557         addition, in this case we don't generate code that calls to the
20558         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20559         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20560         of this subprogram if compiling with the No_Dispatching_Calls
20561         restriction.
20562         (Expand_Type_Conversion): Instead of using the actual parameter,
20563         the argument passed as parameter to the conversion function was
20564         erroneously referenced by the expander.
20565         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20566         Set_Predefined_Primitive_Op_Address and Set_Signature.
20567         (Expand_Dispatching_Call): Generate call to
20568         Get_Predefined_Prim_Op_Address for predefined primitives.
20569         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20570         predefined primitives.
20571         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20572         primitives we reserve one dummy entry to ensure that the tag does not
20573         point to some memory that is associated with some other object. In
20574         addition, remove all the old code that generated the assignments
20575         associated with the signature of the dispatch table and replace them
20576         by a call to the new subprogram Set_Signature.
20577         (Set_All_DT_Position): Change the algorithm because now we have a
20578         separate dispatch table associated with predefined primitive operations.
20579         (Expand_Interface_Conversion): In case of non-static offset_to_top
20580         add explicit dereference to get access to the object after the call
20581         to displace the pointer to the object.
20582         (Expand_Interface_Thunk): Modify the generation of the actual used
20583         in the calls to the run-time function Offset_To_Top to fulfil its
20584         new interface.
20585         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20586
20587 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20588
20589         * exp_dist.adb (Copy_Specification): For access parameters, copy
20590         Null_Exclusion flag, which will have been set for stream subprograms
20591         in Ada2005 mode.
20592
20593 2006-02-13  Pascal Obry  <obry@adacore.com>
20594
20595         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20596         previous implementation was using the C runtime spawnve routine but
20597         the corresponding wait was using directly the Win32 API. This was
20598         causing some times a lock when waiting for an event using
20599         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20600         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20601         API fixes this problem.
20602
20603 2006-02-13  Robert Dewar  <dewar@adacore.com>
20604
20605         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20606         call.
20607
20608 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20609
20610         * exp_pakd.ads: Fix typos in comments.
20611
20612         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20613         array reference that is an explicit dereference, mark the converted
20614         (packed) array reference as analyzed to prevent a forthcoming
20615         reanalysis from resetting its type to the original (non-packed) array
20616         type.
20617
20618 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20619             Javier Miranda  <miranda@adacore.com>
20620             Eric Botcazou  <ebotcazou@adacore.com>
20621
20622         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20623         Is_Predefined_Primitive_Operation): When
20624         searching for the predefined equality operator, verify that operands
20625         have the same type.
20626         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20627         for the last entity in the list of aliased subprograms. This code
20628         was wrong in case of renamings.
20629         (Set_Renamed_Subprogram): New procedure
20630         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20631         Exp_Type constant computed when entering this subprogram.
20632         (Known_Null): New function
20633         (OK_To_Do_Constant_Replacement): New function
20634         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20635         (Side_Effect_Free): An attribute reference 'Input is not free of
20636         side effect, unlike other attributes that are functions. (from code
20637         reading).
20638         (Remove_Side_Effects): Expressions that involve packed arrays or records
20639         are copied at the point of reference, and therefore must be marked as
20640         renamings of objects.
20641         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20642         not a dispatching operation.
20643
20644         PR ada/18819
20645         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20646         elementary types in all cases.
20647
20648 2006-02-13  Javier Miranda  <miranda@adacore.com>
20649
20650         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20651         task types when accessing to the corresponding record type.
20652         Remove '!' in warning message.
20653
20654 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20655
20656         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20657         to avoid useless and space inefficient overalignments on targets where
20658         Max_Alignment is larger than 16.
20659
20660 2006-02-13  Pascal Obry  <obry@adacore.com>
20661
20662         * g-catiio.adb (Sec_Number): New type used to compute the number of
20663         seconds since 1-1-1970.
20664         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20665         negative numbers (years, months...) it is better to have a Natural here.
20666         Code clean-up.
20667         (Image) [Number]: Change parameter from Long_Integer to Number.
20668         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20669         overflow for dates past year 2038.
20670
20671 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20672
20673         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20674         Constraint_Error.
20675
20676 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20677
20678         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20679         native platforms.
20680         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20681         finalization can occur normally.
20682
20683 2006-02-13  Vincent Celier  <celier@adacore.com>
20684
20685         * gnatcmd.adb (Rules_Switches): New table
20686         (Add_To_Rules_Switches): New procedure
20687         (GNATCmd): For command CHECK, put all options following "-rules" in the
20688         Rules_Switches table. Append these -rules switches after the -cargs
20689         switches.
20690
20691 2006-02-13  Robert Dewar  <dewar@adacore.com>
20692
20693         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20694         These two cases were generating incorrect output, and if this unit
20695         was built with checks on, generated a discriminant mismatch constraint
20696         error.
20697
20698 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20699             Robert Dewar  <dewar@adacore.com>
20700
20701         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20702         view is an array type, indicate the component type as well, for
20703         navigation purposes.
20704         (Generate_Reference): Don't consider array ref on LHS to be a case
20705         of violating pragma Unreferenced.
20706         Do not give Ada 2005 warning except on real reference.
20707
20708 2006-02-13  Vincent Celier  <celier@adacore.com>
20709
20710         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20711         main source, add switch -mdebug-main=_ada_ so that the executable can
20712         be debugged by the standard VMS debugger.
20713         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20714         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20715         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20716         of the last source, as the binding and linking phases are never
20717         performed.
20718         Set all executable obsolete when rebuilding a library.
20719
20720         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20721         options.
20722
20723 2006-02-13  Javier Miranda  <miranda@adacore.com>
20724
20725         PR ada/23973
20726         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20727         code to improve the error message reported when the program has
20728         declarations of abstract interface types and it is not compiled with
20729         the -gnat05 switch.
20730         (P_Access_Definition): Reorganize the code to improve the error
20731         message reported when the new Ada 2005 syntax for anonymous
20732         access types is used and the program is not compiled with the
20733         -gnat05 switch.
20734
20735 2006-02-13  Robert Dewar  <dewar@adacore.com>
20736
20737         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20738         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20739         (MODE_IN)
20740
20741 2006-02-13  Javier Miranda  <miranda@adacore.com>
20742
20743         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20744         against source containing syntax errors.
20745
20746 2006-02-13  Vincent Celier  <celier@adacore.com>
20747
20748         * prj.adb (Reset): Initialize the first element of table Namings with
20749         the standard naming data.
20750
20751 2006-02-13  Vincent Celier  <celier@adacore.com>
20752
20753         * prj.ads (Error_Warning): New enumeration type
20754
20755         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20756         unknown, use the location of the project to report the error.
20757         (When_No_Sources): New global variable
20758         (Report_No_Ada_Sources): New procedure
20759         (Check): New parameter When_No_Sources. Set value of global variable
20760         When_No_Sources,
20761         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20762         (Get_Sources_From_File): Ditto
20763         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20764         and the file name.
20765
20766         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20767         Call Prj.Proc.Process with parameter When_No_Sources.
20768
20769         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20770         Call Recursive_Check with parameter When_No_Sources.
20771         (Recursive_Check): New parameter When_No_Sources. Call itself and
20772         Prj.Nmsc.Check with parameter When_No_Sources.
20773         (Process): New parameter When_No_Sources. Call Check with parameter
20774         When_No_Sources.
20775         (Copy_Package_Declarations): New procedure to copy renamed parameters
20776         and setting the location of the declared attributes to the location
20777         of the renamed package.
20778         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20779         packages.
20780
20781 2006-02-13  Vincent Celier  <celier@adacore.com>
20782
20783         * prj-makr.adb (Make): Preserve the comments from the original project
20784         file.
20785         When removing nodes (attributes Source_Dirs, Source_Files,
20786         Source_List_File and package Naming), save the comments and attach the
20787         saved comments to the newly created nodes.
20788         Do not add a with clause for the naming package if one already exists.
20789
20790 2006-02-13  Javier Miranda  <miranda@adacore.com>
20791             Gary Dismukes  <dismukes@adacore.com>
20792             Robert Dewar  <dewar@adacore.com>
20793
20794         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20795
20796         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20797         aliased entities to look for the overriden abstract interface
20798         subprogram.
20799         (Is_Interface_Subprogram): Complete documentation.
20800         (Check_Dispatching_Operation): Do not generate code to register the
20801         operation in the dispatch table if the source is compiled with
20802         restriction No_Dispatching_Calls.
20803         (Override_Dispatching_Operation): Check for illegal attempt to override
20804         No_Return procedure with procedure that is not No_Return
20805         (Check_Dispatching_Call): Suppress the check for an abstract operation
20806         when the original node of an actual is a tag-indeterminate attribute
20807         call, since the attribute, which must be 'Input, can never be abstract.
20808         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20809         call to the Input attribute (even when rewritten).
20810         (Propagate_Tag): Augment comment to indicate the possibility of a call
20811         to an Input attribute.
20812
20813         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20814         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20815
20816         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20817         No_Wide_Characters is no longer partition-wide
20818         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20819         rather than GNAT
20820
20821 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20822
20823         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20824
20825 2006-02-13  Javier Miranda  <miranda@adacore.com>
20826
20827         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20828         handles default-initialized components to keep separate the management
20829         of this feature but also avoid the unrequired resolution and
20830         expansion of components that do not have partially initialized
20831         values.
20832         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20833         (Check_Bounds): Likewise.
20834         (Check_Length): Likewise.
20835
20836 2006-02-13  Javier Miranda  <miranda@adacore.com>
20837             Ed Schonberg  <schonberg@adacore.com>
20838
20839         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20840         abstract interface type call analyze_and_resolve to expand the type
20841         conversion into the corresponding displacement of the
20842         reference to the base of the object.
20843         (Eval_Attribute, case Width): For systems where IEEE extended precision
20844         is supported, the maximum exponent occupies 4 decimal digits.
20845         (Accessibility_Message): Add '\' in 2-line warning message.
20846         (Resolve_Attribute): Likewise.
20847         (case Attribute_Access): Significantly revise checks
20848         for illegal access-to-subprogram Access attributes to properly enforce
20849         the rules of 3.10.2(32/2).
20850         Diagnose use of current instance with an illegal attribute.
20851
20852         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20853         to a Node_Id.
20854         (Enclosing_Generic_Unit): New function to return a node's innermost
20855         enclosing generic declaration node.
20856         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20857         (Type_Access_Level): The accessibility level of anonymous acccess types
20858         associated with discriminants is that of the current instance of the
20859         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20860         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20861         (Kill_Current_Values_For_Entity): New function
20862         (Enter_Name): Change formal type to Entity_Id
20863
20864 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20865             Ed Schonberg  <schonberg@adacore.com>
20866             Gary Dismukes  <dismukes@adacore.com>
20867
20868         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20869         Analyze_Compilation_Unit.
20870         Detect and warn on redundant with clauses detected in a package spec
20871         and/or body when -gnatwr is used.
20872         (Analyze_Context): Analyze config pragmas before other items
20873         (Install_Context_Items): Don't analyze config pragmas here
20874         (Install_Limited_Withed_Unit): Set limited entity of package in
20875         with_clause so that cross-reference information or warning messages on
20876         unused packages can be properly generated
20877         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20878         has Error_Posted set. Prevent infinite loops in illegal programs.
20879         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20880         to the point of the error test requiring the current unit to be private.
20881         This ensures that private with clauses are not exempted from the basic
20882         checking for being a descendant of the same library unit parent as a
20883         withed private descendant unit.
20884         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20885         handle private with clauses properly, as well as to account for cases
20886         where the withed unit is a public descendant of a private ancestor
20887         (in which case the current unit must be a descendant of the private
20888         ancestor's parent). The spec comments were updated accordingly. Also,
20889         the old error message in this subprogram was replaced with error
20890         messages that mirror the errors tested and reported by
20891         Check_Private_Child_Unit.
20892         Parameter and variable names improved for readability.
20893         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20894         private as the precondition for calling
20895         Check_Private_Limited_Withed_Unit since that subprogram has been
20896         revised to test public units as well as private units.
20897
20898 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20899             Robert Dewar  <dewar@adacore.com>
20900             Ed Schonberg  <schonberg@adacore.com>
20901             Javier Miranda  <miranda@adacore.com>
20902
20903         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20904         that Scope_Stack.First = 1.
20905         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20906         were not always properly handled previously.
20907         (Formal_Entity): Complete rewrite, to handle properly some complex case
20908         with multiple levels of parametrization by formal packages.
20909         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20910         to the corresponding derived type declaration for proper semantics.
20911
20912         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20913         (Check_Component): Enforce restriction on components of
20914         unchecked_unions: a component in a variant cannot contain tasks or
20915         controlled types.
20916         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20917         conform to AI-216.
20918         Add pragma Ada_2005 (synonym for Ada_05)
20919         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20920         were not always properly handled previously.
20921         Document that pragma Propagate_Exceptions has no effect
20922         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20923         (Set_Convention_From_Pragma): Check that if a convention is
20924         specified for a dispatching operation, then it must be
20925         consistent with the existing convention for the operation.
20926         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20927         longer required to specify an vtable-ptr component in the record. For
20928         compatibility reasons we leave the support for the previous definition.
20929         (Analyze_Pragma, case No_Return): Allow multiple arguments
20930
20931         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20932         non-overrideen inherited operation with a controlling result as
20933         illegal only its implicit declaration comes from the derived type
20934         declaration of its result's type.
20935         (Check_Possible_Deferred_Completion): Relocate the object definition
20936         node of the subtype indication of a deferred constant completion rather
20937         than directly analyzing it. The analysis of the generated subtype will
20938         correctly decorate the GNAT tree.
20939         (Record_Type_Declaration): Check whether this is a declaration for a
20940         limited derived record before analyzing components.
20941         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20942         declared limited when a component has a limited type.
20943         (Build_Derived_Record_Type): Code reorganization to check if some of
20944         the inherited subprograms of a tagged type cover interface primitives.
20945         This check was missing in case of a full-type associated with a private
20946         type declaration.
20947         (Constant_Redeclaration): Check that the subtypes of the partial and the
20948         full view of a constrained deferred constant statically match.
20949         (Mentions_T): A reference to the current type in an anonymous access
20950         component declaration  must be an entity name.
20951         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20952         class_wide type to refer to full type, not to the incomplete one.
20953         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20954         available. Required to give support to the certified run-time.
20955         (Analyze_Component_Declaration): In case of anonymous access components
20956         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20957         (Process_Discriminants): For an access discriminant, use the
20958         discriminant specification as the associated_node_for_itype, to
20959         simplify accessibility checks.
20960
20961 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20962             Javier Miranda  <miranda@adacore.com>
20963
20964         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20965         abstract interpretations on an operator, remove interpretations that
20966         yield Address or a type derived from it, if one of the operands is an
20967         integer literal.
20968         (Try_Object_Operation.Try_Primitive_Operation,
20969         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20970         location when creating the new reference to a primitive or class-wide
20971         operation as a part of rewriting a subprogram call.
20972         (Try_Primitive_Operations): If context requires a function, collect all
20973         interpretations after the first match, because there may be primitive
20974         operations of the same type with the same profile and different return
20975         types. From code reading.
20976         (Try_Primitive_Operation): Use the node kind to choose the proper
20977         operation when a function and a procedure have the same parameter
20978         profile.
20979         (Complete_Object_Operation): If formal is an access parameter and prefix
20980         is an object, rewrite as an Access reference, to match signature of
20981         primitive operation.
20982         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20983         by an expanded name with prefix Standard, when the operands are of an
20984         anonymous access type.
20985         (Remove_Abstract_Operations): If the operation is abstract because it is
20986         inherited by a user-defined type derived from Address, remove it as
20987         well from the set of candidate interpretations of an overloaded node.
20988         (Analyze_Membership_Op): Membership test not applicable to cpp-class
20989         types.
20990
20991 2006-02-13  Bob Duff  <duff@adacore.com>
20992
20993         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20994         redundant use clauses.
20995         In particular, if the scope of two use clauses overlaps, but one is not
20996         entirely included in the other, we should not warn.  This can happen
20997         with nested packages.
20998         (Analyze_Subprogram_Renaming): Protect the compiler against previously
20999         reported errors. The bug was reported when the compiler was built
21000         with assertions enabled.
21001         (Find_Type): If the node is a 'Class reference and the prefix is a
21002         synchronized type without a corresponding record, return the type
21003         itself.
21004
21005 2006-02-13  Javier Miranda  <miranda@adacore.com>
21006
21007         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21008         if this is the full-declaration associated with a private declaration
21009         that implement interfaces, then the private type declaration must be
21010         limited.
21011         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21012         as aliased. The use of the 'access attribute is not available for such
21013         object (for this purpose the object should be explicitly marked as
21014         aliased, but being an anonymous type this is not possible).
21015
21016 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21017             Robert Dewar  <dewar@adacore.com>
21018
21019         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21020         compilation unit is an elaboration scope.
21021         (Add_Task_Proc): Add '\' in 2-line warning message.
21022         (Activate_All_Desirable): Deal with case of unit with'ed by parent
21023
21024 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21025             Javier Miranda  <miranda@adacore.com>
21026
21027         * sem_type.adb (Write_Overloads): Improve display of candidate
21028         interpretations.
21029         (Add_One_Interp): Do not add to the list of interpretations aliased
21030         entities corresponding with an abstract interface type that is an
21031         immediate ancestor of a tagged type; otherwise we have a dummy
21032         conflict between this entity and the aliased entity.
21033         (Disambiguate): The predefined equality on universal_access is not
21034         usable if there is a user-defined equality with the proper signature,
21035         declared in the same declarative part as the designated type.
21036         (Find_Unique_Type): The universal_access equality operator defined under
21037         AI-230 does not cover pool specific access types.
21038         (Covers): If one of the types is a generic actual subtype, check whether
21039         it matches the partial view of the other type.
21040
21041 2006-02-13  Thomas Quinot  <quinot@adacore.com>
21042
21043         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21044         line. This is necessary to allow In_Extended_Main_Unit to provide
21045         correct results for itypes while writing out expanded source.
21046         (Close_File): No need to update the source_index_table here since it's
21047         now done for each line.
21048
21049 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21050             Robert Dewar  <dewar@adacore.com>
21051
21052         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21053         preserve the source unit where the itype is declared, and prevent a
21054         backend abort.
21055         (Note_Implicit_Run_Time_Call): New procedure
21056         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21057         E_Subprogram_Type)
21058
21059         * sprint.ads: Document use of $ for implicit run time routine call
21060
21061 2006-02-13  Quentin Ochem  <ochem@adacore.com>
21062
21063         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21064         task name.
21065
21066 2006-02-13  Bob Duff  <duff@adacore.com>
21067
21068         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21069         Scan_Unsigned, so we do not scan leading blanks and sign twice.
21070         Integer'Value("- 5") and Integer'Value("-+5") now correctly
21071         raise Constraint_Error.
21072
21073         * s-vallli.adb (Scan_Long_Long_Integer): Call
21074         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21075         do not scan leading blanks and sign twice.
21076         Integer'Value("- 5") and Integer'Value("-+5") now correctly
21077         raise Constraint_Error.
21078
21079         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21080         Scan_Long_Long_Unsigned): Split out most of the processing from
21081         Scan_Long_Long_Unsigned out into
21082         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21083         This prevents scanning leading blanks and sign twice.
21084         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21085         See RM-3.5(44).
21086
21087         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21088         out most of the processing from Scan_Unsigned out into
21089         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21090         This prevents scanning leading blanks and sign twice.
21091
21092         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21093         use with Modular'Value attribute.
21094         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21095         attribute.
21096
21097 2006-02-13  Robert Dewar  <dewar@adacore.com>
21098
21099         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21100
21101 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
21102
21103         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21104         (PPC VxWorks): Likewise.
21105         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21106         (forced_callee): Make non-inlinable and non-pure.
21107         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21108
21109 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
21110             Ben Brosgol  <brosgol@adacore.com>
21111             Robert Dewar  <dewar@adacore.com>
21112
21113         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21114         support.
21115         Document that gnatbind -M option is for cross environments only.
21116         Added description of using gnatmem to trace gnat rtl allocs and deallocs
21117         Add note on use of $ to label implicit run time calls
21118         Add documentation for -gnatyI (check mode IN)
21119         Updated chapter on compatibility with HP Ada
21120         VMS-oriented edits.
21121         Ran spell and corrected errors
21122         Add documentation for gnatbind -d and rework documentation of -D
21123         at the same time.
21124         Add subprogram/data elimination section.
21125         Minor editing of annex A.
21126         Add section for gnatcheck.
21127         Add documentation for restriction No_Dispatching_Calls
21128         Add documentation for pragma Ada_2005
21129         Remove mention of obsolete pragma Propagate_Exceptions
21130         Document that pragma Unreferenced can appear after DO in ACCEPT
21131         Clarify Pure_Function for library level units
21132         Mention Max/Min in connection with No_Implicit_Conditionals
21133         No_Wide_Characters restriction is no longer partition-wide
21134         Add a nice example for Universal_Literal_String attribute
21135         Document that pragma No_Return can take multiple arguments
21136
21137         * ug_words: Added entry for gnatcheck
21138
21139         * g-ctrl_c.ads (Install_Handler): Enhance comments
21140
21141         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21142
21143         * g-trasym.ads: Add documentation on how to do off line symbolic
21144         traceback computation.
21145
21146         * s-fatgen.adb: Add comments for Unaligned_Valid
21147
21148         * stand.ads: Fix typo in comment
21149
21150 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21151
21152         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21153
21154 2006-02-06  Roger Sayle  <roger@eyesopen.com>
21155
21156         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21157
21158 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21159
21160         PR target/25926
21161         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21162         implementation that calls __main.
21163
21164 2006-01-25  Peter O'Gorman  <peter@pogma.com>
21165
21166         PR bootstrap/25859
21167         * Makefile.in (GCC_LINK): Remove quotes.
21168         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21169         or $(GCC_LINK).
21170
21171         (powerpc-darwin): Pass -shared-libgcc when building shared library.
21172
21173 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21174
21175         PR ada/24533
21176         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21177
21178 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21179
21180         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21181
21182 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21183
21184         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21185         needed.
21186
21187 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21188
21189         * Make-lang.in: Update dependencies
21190
21191 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21192
21193         * Make-lang.in: Add rule for ada/exp_sel.o
21194
21195 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21196
21197         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21198
21199 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
21200
21201         * gnatvsn.ads (Library_Version): Bump to version 4.2
21202         (ASIS_Version_Number): Bumped.
21203
21204 2005-12-09  Doug Rupp  <rupp@adacore.com>
21205
21206         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21207         Ada bind file prefix on VMS from b$ to b__.
21208         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21209         __init.
21210
21211         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21212         Targparm.OpenVMS_On_Target.
21213         (Object_Suffix): Initialize with target object suffix.
21214         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21215
21216         * butil.adb: Change some Hostparm.OpenVMS checks to
21217         Targparm.OpenVMS_On_Target.
21218
21219         * clean.adb: Change some Hostparm.OpenVMS checks to
21220         Targparm.OpenVMS_On_Target.
21221         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21222         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21223         Ada bind file prefix on VMS from b$ to b__.
21224
21225         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21226         --GCC so that Get_Target_Parameters can find system.ads.
21227         (Gnatlink): Call Get_Target_Parameters in mainline.
21228         Initialize standard packages for Targparm.
21229         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21230         (Process_Args): Also Check for object files with target object
21231         extension.
21232         (Make_Binder_File_Names): Create with target object extension.
21233         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21234         to b__.
21235
21236         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21237         Targparm.OpenVMS_On_Target.
21238         ({declaration},Build_Library,Check_Library): Change Ada bind file
21239         prefix on VMS from b$ to b__.
21240
21241         * osint-b.adb: Change some Hostparm.OpenVMS checks to
21242         Targparm.OpenVMS_On_Target.
21243         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21244         b__.
21245
21246         * targext.c: New file.
21247
21248         * Makefile.in: add support for vxworks653 builds
21249         (../../vxaddr2line): gnatlink with targext.o.
21250         (TOOLS_LIBS): Move targext.o to precede libgnat.
21251         (init.o, initialize.o): Minor clean up in dependencies.
21252         (GNATLINK_OBJS): Add targparm.o, snames.o
21253         Add rules fo building targext.o and linking it explicitly with all
21254         tools.
21255         Also add targext.o to gnatlib.
21256
21257         * Make-lang.in: Add rules for building targext.o and linking it in
21258         with gnat1 and gnatbind.
21259         Add entry for exp_sel.o.
21260
21261         * osint.adb Change some Hostparm.OpenVMS checks to
21262         Targparm.OpenVMS_On_Target.
21263         (Object_File_Name): Use target object suffix.
21264
21265         * osint.ads (Object_Suffix): Remove, no longer used.
21266         (Target_Object_Suffix): Initialize with target object suffix.
21267
21268         * rident.ads: Add special exception to license.
21269
21270         * targparm.adb (Get_Target_Parameters): Set the value of
21271         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21272         value.
21273         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21274
21275         * targparm.ads: Add special exception to license.
21276
21277         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21278         function.
21279         (Copy_File): Make sure from file is closed if error on to file
21280         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21281
21282         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21283         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21284
21285         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21286         target object suffix.
21287
21288 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
21289             Quentin Ochem  <ochem@adacore.com>
21290             Florian Villoing  <villoing@adacore.com>
21291
21292         * a-taster.ads, a-taster.adb: New files.
21293
21294         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21295         link to the version that does nothing. This way the task termination
21296         routine is not executed twice for the environment task when finishing
21297         because of an unhandled exception.
21298
21299         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21300         handler because of an unhandled exception.
21301
21302         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21303         System.Tasking.Utilities instead of that in System.Tasking.Stages.
21304
21305         * s-finimp.adb (initialization code): Modify the soft link for the
21306         finalization of the global list instead of Adafinal.
21307
21308         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21309         non-tasking version of the soft link for task termination. We do
21310         nothing since if we are using the non-tasking version it
21311         means that the task termination functionality is not used.
21312         (Null_Finalize_Global_List): Add this null version for the procedure
21313         in charge of finalizing the global list for controlled objects.
21314         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21315         instead for handling run-time termination in a more flexible way.
21316         (Adafinal_NT): This new procedure will take care of finalizing the
21317         global list for controlled objects if needed, but no tasking
21318         finalization.
21319
21320         * s-tarest.adb (Task_Lock): Do not try to lock again the
21321         Global_Task_Lock if we already own it. Otherwise, we get blocked in
21322         some run-time operations.
21323         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21324         until all nested locks have been released.
21325         (Task_Wrapper): Call the fall-back task termination handler. It
21326         applies to all tasks but the environment task.
21327         (Finalize_Global_Tasks): Add the call for the task termination
21328         procedure for the environment task.
21329         (Task_Wrapper): suppress warnings around declaration of
21330         Secondary_Stack_Address.
21331
21332         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21333         moved to the Common_ATCB record.
21334         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21335         Common_ATCB record.
21336         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21337         Common_ATCB record.
21338
21339         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21340         Fall_Back_Handler, and Specific_Handler.
21341
21342         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21343         defined in Ada.Task_Termination, to avoid circular dependencies.
21344         (Termination_Handler): Redefine this type here, alredy defined in
21345         Ada.Task_Termination, for avoiding circular dependencies.
21346         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21347         for storing task termination handlers. In addition,
21348         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21349         Common_ATCB because it is used by both the regular and the restricted
21350         run times.
21351         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21352         Common_ATCB because it is used by both the regular and the restricted
21353         run times.
21354         (Common_ATCB): Added a dynamic task analyzer field.
21355
21356         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21357         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21358         (Task_Wrapper): Call the task termination handler. It applies to all
21359         tasks but the environment task.
21360         (Finalize_Global_Tasks): Call the task termination procedure for the
21361         environment task. The call to Finalize_Global_List is now performed
21362         using the soft links mechanism.
21363         (Task_Wrapper): added dynamic stack analysis.
21364
21365         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21366         potentially blocking operations has been moved from
21367         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21368         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21369         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21370         this run-time check.
21371
21372         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21373         of task termination procedure.
21374         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21375         link for the task termination procedure.
21376
21377         * bindusg.adb: (Bindusg): Added documentation for -u option.
21378
21379         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21380         (Get_Main_C): Add handling of dynamic stack analysis.
21381         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21382
21383         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21384         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21385         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21386
21387         * opt.ads: Added flags used by dynamic stack measurement.
21388         (Max_Line_Length): Remove (not used anymore)
21389
21390         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21391         (Standart_Output): new subprogram
21392         (Set_Output): new subprogram
21393         (Put): now uses the value of Current_Out to know if the output has to be
21394         send to stderr or stdout.
21395
21396         * s-stausa.ads: Complete implementation.
21397
21398         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21399
21400         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21401         list of Ada 05 files.
21402         (GNAT Library Units): Add AltiVec files.
21403
21404         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21405         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21406         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21407
21408 2005-12-09  Nicolas Setton  <setton@adacore.com>
21409
21410         * adaint.c (__gnat_locate_regular_file): Return immediately if
21411         file_name is empty.
21412
21413 2005-12-09  Javier Miranda  <miranda@adacore.com>
21414             Hristian Kirtchev  <kirtchev@adacore.com>
21415
21416         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21417         to the specification because the frontend generates code that uses this
21418         subprogram.
21419         (Set_Interface_Table): Add missing assertion.
21420         Update documentation describing the run-time structure.
21421         (Displace): New subprogram that displaces the pointer to the object
21422         to reference one of its secondary dispatch tables.
21423         (IW_Membership): Modified to use the new table of interfaces.
21424         (Inherit_TSD): Modified to use the new table of interfaces.
21425         (Register_Interface_Tag): Use the additional formal to fill the
21426         contents of the new table of interfaces.
21427         (Set_Interface_Table): New subprogram that stores in the TSD the
21428         pointer to the table of interfaces.
21429         (Set_Offset_To_Top): Use the additional formal to save copy of
21430         the offset value in the table of interfaces.
21431         Update structure of GNAT Primary and Secondary dispatch table diagram.
21432         Add comment section on GNAT dispatch table prologue.
21433         (Offset_To_Signature): Update the constant value of the Signature field.
21434         (Dispatch_Table): Update comment on hidden fields in the prologue.
21435         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21436         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21437         the type of formal parameter T to Tag, introduce additional assertions.
21438         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21439         conversion.
21440         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21441
21442         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21443         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21444         record component containing the tag of the secondary dispatch table we
21445         have to use the Offset_To_Top run-time function to get this information;
21446         otherwise if the pointer to the base of the object has been displace
21447         we get a wrong value if we use the 'position attribute.
21448
21449         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21450         all the calls to Expand_Interface_Thunk.
21451         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21452         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21453         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21454         ensure that the interfaces implemented by the ancestors are placed
21455         at the header of the generated list.
21456         (Expand_Interface_Conversion): Handle the case in which the displacement
21457         associated with the interface conversion is not statically known. In
21458         this case we generate a call to the new run-time subprogram Displace.
21459         (Make_DT): Generate and fill the new table of interfaces.
21460         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21461         Get_Tagged_Kind and Set_Tagged_Kind.
21462         (Tagged_Kind): New function that determines the tagged kind of a type
21463         with respect to limitedness and concurrency and returns a reference to
21464         RE_Tagged_Kind.
21465         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21466         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21467         primary dispatch table for a type.
21468         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21469         secondary dispatch table respectively of a tagged type.
21470
21471         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21472         (Expand_Interface_Conversion): New subprogram to indicate if the
21473         displacement of the type conversion is statically known.
21474         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21475
21476         * rtsfind.ads (RE_Offset_To_Top): New entity
21477         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21478         accessible to users.
21479         (Re_Displace): New entity
21480         (RE_Interface_Data): New entity
21481         (RE_Set_Interface_Data): New_Entity
21482         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21483         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21484         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21485         RE_TK_Tagged, RE_TK_Task.
21486
21487         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21488         Init_Secondary_Tags_Internal to allow its use with interface types and
21489         also to generate the code for the new additional actual required
21490         by Set_Offset_To_Top.
21491         (Build_Init_Statements): In case of components associated with abstract
21492         interface types there is no need to generate a call to its IP.
21493         (Freeze_Record_Type): Generate Select Specific Data tables only for
21494         concurrent types.
21495         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21496         the bodies and specifications of the predefined primitive operations
21497         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21498         for concurrent types.
21499
21500         * exp_sel.ads, exp_sel.adb: New files.
21501
21502         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21503         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21504         properly protected objects and attach handler in the case of the
21505         restricted profile.
21506         Move embeded package Select_Expansion_Utilities into a separate external
21507         package.
21508         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21509         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21510         (Build_K, Build_S_Assignment): New subprograms, part of the select
21511         expansion utilities.
21512         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21513         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21514         where the trigger is a dispatching procedure of a limited tagged type.
21515
21516 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21517
21518         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21519         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21520         about the use and expansion of SAVE_EXPRs in the various possible
21521         renaming handling cases.
21522         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21523         abusing DECL_FCONTEXT.
21524
21525 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21526
21527         * a-convec.adb (Merge): Added assertions to check whether vector params
21528         are sorted.
21529
21530         * a-coinve.adb (Merge): Added assertions to check whether vector params
21531         are sorted.
21532
21533         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21534         draft.
21535         (Cursor'Read): raises PE
21536
21537         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21538         to its default value.
21539
21540         * a-cihama.adb: Manually check whether cursor's key and elem are
21541         non-null
21542
21543         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21544         (Merge): Assert that target and source lists are in order
21545         (Swap): Declare non-const temporaries, to pass to Splice
21546
21547         * a-cdlili.ads: (Splice): Changed param name and param mode
21548
21549         * a-cdlili.adb: (Splice): Changed param name and param mode
21550         (Merge): Assert that target and source lists are in order
21551         (Swap): Declare non-const temporaries, to pass to Splice
21552
21553         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21554         (Write): declare Stream param as not null
21555
21556         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21557         an exception message.
21558
21559 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21560             Robert Dewar  <dewar@adacore.com>
21561
21562         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21563         which is the absolute maximum length we can support.
21564
21565         * frontend.adb: For the processing of configuration pragma files,
21566         remove references to Opt.Max_Line_Length, which is not checked anymore.
21567
21568         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21569         length.
21570
21571         * scn.adb, scng.adb:
21572         Always check line length against the absolute supported maximum,
21573         Hostparm.Max_Line_Length.
21574
21575         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21576         value for the maximum line length is Max_Line_Length (not
21577         Column_Number'Last).
21578         Minor error msg update
21579         (Set_Style_Check_Options): New interface returning error msg
21580         Minor code reorganization (processing for 'M' was out of alpha order)
21581
21582         * switch-c.adb: New interface for Set_Style_Check_Options
21583
21584         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21585         msg.
21586
21587 2005-12-09  Javier Miranda  <miranda@adacore.com>
21588
21589         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21590         with IP subprogram were only supported if there were limited types.
21591
21592         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21593         records with IP subprogram were only supported if there were limited
21594         types.
21595
21596 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21597             Eric Botcazou  <ebotcazou@adacore.com>
21598
21599         * trans.c (tree_transform, emit_check): Adjust calls to
21600         build_call_raise, passing the now expected GNAT_NODE argument.
21601
21602         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21603         source line information than what the current global locus indicates
21604         when appropriate.
21605
21606         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21607         field has overflowed.
21608         (build_call_raise): Add a GNAT_NODE argument to convey better source
21609         line information than what the current global locus indicates when
21610         appropriate.
21611         (build_component_ref): Adjust call to build_call_raise.
21612
21613 2005-12-09  Pascal Obry  <obry@adacore.com>
21614
21615         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21616         the iterator is quitting iteration on parent directory.
21617
21618 2005-12-09  Javier Miranda  <miranda@adacore.com>
21619
21620         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21621         and the assignment to a class-wide object, before the assignment we
21622         generate a run-time check to ensure that the tag of the Target is
21623         covered by the tag of the source.
21624
21625 2005-12-09  Robert Dewar  <dewar@adacore.com>
21626
21627         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21628         parameter in call to Image_Wide_Character.
21629
21630         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21631         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21632         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21633         annoying FFFE/FFFF inconsistency.
21634
21635 2005-12-09  Robert Dewar  <dewar@adacore.com>
21636             Javier Miranda  <miranda@adacore.com>
21637             Ed Schonberg  <schonberg@adacore.com>
21638
21639         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21640         of type conversion.
21641         (Find_Interface): New subprogram that given a tagged type and one of its
21642         component associated with the secondary table of an abstract interface
21643         type, return the entity associated with such abstract interface type.
21644         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21645         base type to create anonymous subtype, because entity may be a locally
21646         declared subtype or generic actual.
21647         (Find_Interface): New subprogram that given a tagged type and one of its
21648         component associated with the secondary table of an abstract interface
21649         type, return the entity associated with such abstract interface type.
21650
21651         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21652         conversion cannot be handled at compile time. In this case we pass this
21653         information to the expander to generate the appropriate code.
21654
21655 2005-12-09  Robert Dewar  <dewar@adacore.com>
21656             Ed Schonberg  <schonberg@adacore.com>
21657             Gary Dismukes  <dismukes@adacore.com>
21658             Javier Miranda  <miranda@adacore.com>
21659             Hristian Kirtchev  <kirtchev@adacore.com>
21660
21661         * einfo.adb (Itype_Printed): New flag
21662         (Is_Limited_Type): Derived types do not inherit limitedness from
21663         interface progenitors.
21664         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21665         interfaces.
21666
21667         * einfo.ads (Itype_Printed): New flag
21668         Move Is_Wrapper_Package to proper section
21669         Add missing Inline for Is_Volatile
21670
21671         * output.ads, output.adb (Write_Erase_Char): New procedure
21672         (Save/Restore_Output_Buffer): New procedures
21673         (Save/Restore_Output_Buffer): New procedures
21674
21675         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21676         Add missing support for anonymous access type
21677         (Write_Id): Insert calls to Write_Itype
21678         (Write_Itype): New procedure to output itypes
21679
21680         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21681         use of "limited" in declaration.
21682
21683         * sinfo.ads, sinfo.adb:
21684         Formal derived types can carry an explicit "limited" indication.
21685
21686         * sem_ch3.adb: Add with and use of Targparm.
21687         (Create_Component): If Frontend_Layout_On_Target is True and the
21688         copied component does not have a known static Esize, then reset
21689         the size and positional fields of the new component.
21690         (Analyze_Component_Declaration): A limited component is
21691         legal within a protected type that implements an interface.
21692         (Collect_Interfaces): Do not add to the list the interfaces that
21693         are implemented by the ancestors.
21694         (Derived_Type_Declaration): If the parent of the full-view is an
21695         interface perform a transformation of the tree to ensure that it has
21696         the same parent than the partial-view. This simplifies the job of the
21697         expander in order to generate the correct object layout, and it is
21698         needed because the list of interfaces of the full-view can be given in
21699         any order.
21700         (Process_Full_View): The parent of the full-view does not need to be
21701         a descendant of the parent of the partial view if both parents are
21702         interfaces.
21703         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21704         "limited" the parent must be a limited type.
21705         (Build_Derived_Record_Type): A derived type that is explicitly limited
21706         must have limited ancestor and progenitors.
21707         (Build_Derived_Type): Ditto.
21708         (Process_Full_View): Verify that explicit uses of "limited" in partial
21709         and full declarations are consistent.
21710         (Find_Ancestor_Interface): Remove function.
21711         (Collect_Implemented_Interfaces): New procedure used to gather all
21712         implemented interfaces by a type.
21713         (Contain_Interface): New function used to check whether an interface is
21714         present in a list.
21715         (Find_Hidden_Interface): New function used to determine whether two
21716         lists of interfaces constitute a set equality. If not, the first
21717         differing interface is returned.
21718         (Process_Full_View): Improve the check for the "no hidden interface"
21719         rule as defined by AI-396.
21720
21721 2005-12-09  Robert Dewar  <dewar@adacore.com>
21722
21723         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21724         types, not on record subtypes.
21725         (Freeze_Entity): Code cleanup. Add barrier to the loop
21726         that generates the references for primitive operations. This allows to
21727         remove an unnecessary exception handler.
21728         Code reformatting and comment clean ups.
21729
21730 2005-12-09  Vincent Celier  <celier@adacore.com>
21731
21732         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21733         If GNAT CHECK is called with a project file, but with no
21734         source on the command line, call gnatcheck with all the compilable
21735         sources of the project.
21736         Take into account the new command Check, for gnatcheck. Treat as for
21737         other ASIS tools: take into account project, specific package Check and
21738         Compiler switches.
21739         For ASIS tools, add the switches in package Compiler for
21740         the invocation of the compiler.
21741
21742         * prj-attr.adb: Add package Check and its attributes
21743
21744         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21745
21746         * vms_conv.adb (Initialize): Change Params of command Check to
21747         unlimited files.
21748         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21749         Add data for new command Check
21750
21751         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21752         ELIM.
21753         Add qualifiers for Check command options
21754         (Command_Type): New command Check
21755
21756 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21757
21758         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21759         command line switch overruns the output buffer.
21760
21761 2005-12-09  Robert Dewar  <dewar@adacore.com>
21762
21763         * sem_prag.adb: Processing for new pragma Complete_Representation
21764         (Analyze_Pragma, case Debug): Implement two argument form.
21765
21766         * par-prag.adb: Entry for new pragma Complete_Representation
21767         (Prag, case Debug): Recognize two argument form of pragma Debug
21768         New interface for Set_Style_Check_Options.
21769
21770         * sem_ch13.adb: Implement new pragma Complete_Representation.
21771
21772         * snames.adb, snames.ads, snames.h: Entry for new pragma
21773         Complete_Representation.
21774
21775 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21776
21777         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21778         available user-specified stream attributes on limited parameters to
21779         also test the type directly rather than only its underlying type (for
21780         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21781         attributes are visible at the point of the subprogram declaration.
21782         For Ada 2005, the error message is modified to indicate that the
21783         type's stream attributes must be visible (again, only for -gnat05).
21784
21785 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21786
21787         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21788         anonymous access types.
21789
21790         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21791         matching of anonymous access types and anonymous access to subprogram
21792         types. 'R'M 4.9.1 (2/2).
21793
21794 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21795
21796         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21797         rule prematurely when operands are universal, remaining ambiguities
21798         will be removed during resolution.
21799         Code cleanup.
21800
21801         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21802         that are Ada 2005 functions.
21803         (Has_Abstract_Interpretation): Subsidiary to
21804         Remove_Conversions, to remove ambiguities caused by abstract operations
21805         on numeric types when operands are universal.
21806
21807 2005-12-09  Robert Dewar  <dewar@adacore.com>
21808
21809         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21810         for case where spec is categorized.
21811
21812 2005-12-09  Javier Miranda  <miranda@adacore.com>
21813
21814         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21815         types use the corresponding record type. This was not needed before
21816         the implementation of Ada 2005 synchronized types because
21817         concurrent types were never tagged types in Ada 95.
21818
21819 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21820
21821         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21822         first subtype of the type of the expression to verify that it is a
21823         legal Time type.
21824
21825 2005-12-09  Robert Dewar  <dewar@adacore.com>
21826
21827         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21828         decoded names.
21829
21830 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21831             Robert Dewar  <dewar@adacore.com>
21832             Ed Falis  <falis@adacore.com>
21833             Florian Villoing  <villoing@adacore.com>
21834             Thomas Quinot  <quinot@adacore.com>
21835             Arnaud Charlet  <charlet@adacore.com>
21836
21837         * gnat_ugn.texi: Created section "Stack Related Tools"
21838         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21839         "Stack Related Tools"
21840         Added subsection "Static Stack Usage Analysis"
21841         Added subsection "Dynamic Stack Usage Analysis"
21842         Include documentation of itypes in sprint listing (-gnatG)
21843         Documented gnatbind -D switch (default sec stack size for fixed sec
21844         stacks).
21845         Added Interrupt_State and Persistent_BSS to list of configuration
21846         pragmas.
21847         Add missing doc for maximum value of nnn in -gnatyMnnn
21848
21849         * gnat_rm.texi: Document the AltiVec binding.
21850         Add documentation for pragma Complete_Representation
21851         Shortened an overly long line (> 79 chars)
21852         Clarify documentation of unchecked conversion in implementation
21853         defined cases.
21854         Document two argument form of pragma Debug
21855
21856         * types.ads (Column_Number): Update documentation.
21857
21858         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21859         library level Finalize_Storage_Only objects (these are not attached to
21860         any finalization list).
21861
21862         * system-mingw.ads: (Underlying_Priorities): Update comment.
21863
21864 2005-12-09  Robert Dewar  <dewar@adacore.com>
21865
21866         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21867         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21868         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21869         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21870         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21871         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21872         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21873         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21874         reformatting.
21875
21876 2005-12-09  Robert Dewar  <dewar@adacore.com>
21877
21878         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21879         (Ne_G): New function
21880
21881         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21882         for tag assignment.
21883         (Rewrite_Comparison): Handle case where operation is not a comparison
21884         and ignore, and also handle type conversion case.
21885
21886 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21887
21888         * exp_aggr.ads: Fix typo in comment.
21889         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21890
21891 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21892
21893         * layout.adb: Replace various uses of byte by storage unit throughout.
21894         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21895         static size, convert to storage units before returning, to conform to
21896         spec.
21897
21898 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21899
21900         * g-exctra.ads: Fix typo in comment.
21901
21902 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21903
21904         * utils.c: Minor reformatting.
21905
21906 2005-12-09  Robert Dewar  <dewar@adacore.com>
21907
21908         * g-soccon.ads:
21909         Further comment fixes to make the status of the default file clear
21910
21911         * s-bitops.adb: Clarify comment for Bits_Array
21912
21913 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21914
21915         * Make-lang.in (ada.install-normal): Remove.
21916
21917 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21918
21919         * Make-lang.in: Remove all dependencies on s-gtype.
21920
21921 2005-12-05  Richard Guenther  <rguenther@suse.de>
21922
21923         * utils.c (convert): Use fold_convert where appropriate.
21924
21925 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21926
21927         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21928         a period is meant.
21929
21930 2005-12-02  Richard Guenther  <rguenther@suse.de>
21931
21932         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21933
21934 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21935
21936         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21937         nodes.
21938
21939 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21940
21941         * mlib-prj.adb (Build_Library): Initialize Delete.
21942
21943 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21944
21945         * socket.c: Add extern int h_errno for rtems since networking header
21946         files are not available at this point in a tool bootstrap. Newlib
21947         only has basic C library header files.
21948
21949 2005-11-19  Richard Guenther  <rguenther@suse.de>
21950         Roger Sayle  <roger@eyesopen.com>
21951
21952         PR ada/23717
21953         * misc.c (internal_error_function): Don't use vsprintf to format
21954         the error message text, instead use pp_format_text and the new
21955         pretty printer APIs.  This allows handling of %qs, %w, etc.
21956
21957 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21958
21959         PR ada/24857
21960         * Makefile.in: Use s-auxdec-empty for RTEMS.
21961
21962 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21963
21964         PR ada/22333
21965         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21966         a temporary if taking the address of something that is neither
21967         reference, declaration, or constant, since the gimplifier
21968         can't handle that case.
21969
21970 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21971
21972         PR ada/24857
21973         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21974
21975 2005-11-16  Richard Guenther  <rguenther@suse.de>
21976
21977         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21978
21979 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21980
21981         PR ada/24855
21982         * raise-gcc.c: Add missing stdarg.h include.
21983
21984 2005-11-16  Richard Guenther  <rguenther@suse.de>
21985
21986         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21987         (ada/misc.o): Likewise.
21988
21989 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21990
21991         * g-soccon.ads: Minor reformatting. Update comments.
21992
21993         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21994         gain visibility on the declaration of struct timeval.
21995
21996         * g-soccon-freebsd.ads,
21997         g-soccon-darwin.ads,
21998         g-soccon-tru64.ads,
21999         g-soccon-aix.ads,
22000         g-soccon-irix.ads,
22001         g-soccon-hpux.ads,
22002         g-soccon-solaris.ads,
22003         g-soccon-vms.ads,
22004         g-soccon-mingw.ads,
22005         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22006
22007         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22008         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22009         g-soccon-linux-x86.ads: New files.
22010
22011         * g-socthi-mingw.adb:
22012         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22013
22014         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22015         (time_t, suseconds_t): New types constructed to match the tv_sec
22016         and tv_usec fields of C struct timeval.
22017         (Timeval): Construct structure in terms of the new types.
22018         (Host_Errno): New function (imported from socket.c), returns last hosts
22019         database error.
22020
22021         * g-socthi-vxworks.adb:  Add error handling circuitry.
22022
22023         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22024         components of struct timeval.
22025         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22026         (Check_Selector): In error conditions, clear internal socket sets to
22027         avoid a memory leak.
22028         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22029         Send_Timeout, Receive_Timeout.
22030
22031         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22032         the tv_sec and tv_usec fields of C struct timeval.
22033         (Timeval): Construct structure in terms of the new types.
22034         (Host_Errno): New function (imported from socket.c), returns last hosts
22035         database error.
22036
22037         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22038         hosts database last error code.
22039
22040         * gen-soccon.c: Complete value expansion should not be performed on
22041         TARGET, as it has the form of a math expression, and some components
22042         may be platform-defined macros.
22043         For VxWorks, generate the OK and ERROR values.
22044         New constants giving the sizes of the components of C struct timeval.
22045
22046 2005-11-14  Robert Dewar  <dewar@adacore.com>
22047             Ed Schonberg  <schonberg@adacore.com>
22048
22049         PR ada/18434
22050         * types.ads: Include All_Checks in Suppress_Array
22051
22052         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22053         not(a=b), since we no longer do this rewriting, and hence it is not
22054         needed.
22055         (Elaboration_Checks_Suppressed): Add special casing to
22056         deal with different cases of static and dynamic elaboration checks (all
22057         checks does not count in the first case, but does in the second).
22058         (Expr_Known_Valid): Do not assume that the result of any arbitrary
22059         function call is valid, since this is not the case.
22060         (Ensure_Valid): Do not apply validity check to a real literal
22061         in a universal or fixed context
22062
22063         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22064         elementary types using the operator in standard. It is cleaner not to
22065         modify the programmers intent, especially in the case of floating-point.
22066         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22067         it did not matter because we always rewrote a/=b to not(a=b).
22068         (Expand_Allocator_Expression): For an allocator expression whose nominal
22069         subtype is an unconstrained packed type, convert the expression to its
22070         actual constrained subtype.
22071         Implement warning for <= or >= where < or > not possible
22072         Fix to Vax_Float tests (too early in many routines, causing premature
22073         Vax_Float expansions.
22074
22075         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22076         to be used with packages and generic packages as well as with
22077         subprograms.
22078         (Suppress): Set All_Checks, but not Elaboration_Check, for case
22079         of pragma Suppress (All_Checks)
22080         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22081         a string literal for precise control over warnings.
22082         Avoid raise of pragma in case of unrecognized pragma and just return
22083         instead.
22084
22085         * sem_prag.ads: Minor reformatting
22086
22087         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22088         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22089         Switch. Do not handle any exception.
22090         Include -gnatwx as part of -gnatg (warn on redundant parens)
22091         Allow optional = after -gnatm
22092         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22093         longer sets Elaboration_Checks.
22094         Code to set warning mode moved to Sem_Warn
22095         so that it can be shared by pragma processing.
22096
22097         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22098         statement.
22099
22100         * s-taprop-solaris.adb:
22101         Change some <= to =, to avoid new warning
22102
22103         * a-exexda.adb, prj-proc.adb:
22104         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22105         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22106
22107 2005-11-14  Robert Dewar  <dewar@adacore.com>
22108
22109         * exp_vfpt.adb: Handle /= case
22110         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22111         so that we do not get duplicate scaling for fixed point conversions.
22112
22113         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22114
22115 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22116
22117         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22118         Increase default priority on Lynx from 15 to 17, and meet the Ada
22119         requirement that Default_Priority be ((Priority'First +
22120         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22121
22122 2005-11-14  Vincent Celier  <celier@adacore.com>
22123
22124         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22125         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22126         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22127         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22128         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22129         mlib-tgt-lynxos.adb (DLL_Prefix): New function
22130
22131 2005-11-14  Doug Rupp  <rupp@adacore.com>
22132
22133         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22134         private part.
22135
22136 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22137
22138         * s-traces-default.adb, s-trafor-default.ads,
22139         s-tratas-default.adb: Fix compilation errors.
22140
22141 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22142
22143         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22144         raising the exception so the memory used is freed.
22145
22146 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22147
22148         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22149         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22150         (convert_address): Update comments and list of platforms using this.
22151
22152         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22153         no longer used.
22154
22155 2005-11-14  Pascal Obry  <obry@adacore.com>
22156             Vincent Celier  <celier@adacore.com>
22157
22158         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22159         GNAT.Command_Line.
22160
22161         * memroot.adb: Remove redundant with/use clause on
22162         System.Storage_Elements.
22163
22164 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22165
22166         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22167         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22168         related code to a-exexpr.adb
22169         (Save_Occurrence_And_Private): Move GCC EH related code to
22170         a-exexpr-gcc.adb
22171         (Raise_Current_Excep): Add new variable Id with pragma
22172         volatile, to ensure that the variable lives on stack.
22173
22174         * a-exexpr-gcc.adb, raise-gcc.c: New file.
22175
22176         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22177         from a-except.adb.
22178         Move GCC EH related code to a-exexpr-gcc.adb
22179
22180         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22181         64-bit Solaris
22182         Split the Linux version of g-soccon into separate variants for 32 and 64
22183         bit platforms.
22184         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22185         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22186         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22187         of host variable $(RANLIB_FLAGS).
22188         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22189         Code clean up: remove unused/obsolete targets.
22190         (EH_MECHANISM): New variable introduced to differenciate between the
22191         two EH mechanisms statically.
22192         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22193         (LIBGNAT_OBJS): Add raise-gcc.o
22194         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22195         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22196         supports VxWorks 6 RTPs.
22197         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22198         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22199
22200         * raise.c: Move all GCC EH-related routines to raise-gcc.c
22201
22202 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22203
22204         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22205         deferral level, when abort is not allowed, to a later stage (the
22206         Task_Wrapper).
22207         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22208         it will not get changed by the generated code. It was previously done
22209         in Create_Task.
22210
22211 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22212             Olivier Hainque  <hainque@adacore.com>
22213             Eric Botcazou  <ebotcazou@adacore.com>
22214
22215         * decl.c:
22216         Factor common code to build a storage type for an unconstrained object
22217         from a fat or thin pointer type and a constrained object type.
22218         (annotate_value): Handle BIT_AND_EXPR.
22219         (annotate_rep): Don't restrict the back annotation of inherited
22220         components to the type_annotate_only case.
22221         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22222         we are not defining the type.
22223         <E_Record_Type>: Likewise.
22224         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22225         to get advantage of the new maybe_stabilize_reference interface, to
22226         ensure that what we reference is indeed stabilized instead of relying
22227         on assumptions on what the stabilizer does.
22228         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22229         type imported through a limited_with clause, use its non-limited view.
22230         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22231         differentiation.
22232         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22233         of #if sections + explicit comparisons of convention identifiers.
22234         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22235         before early-returning for certain types when code generation is
22236         disabled.
22237         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22238         nullification of gnu_expr we do for objects with address clause and
22239         that we are not defining.
22240         (elaborate_expression_1): Do not create constants when creating
22241         variables needed by the debug info: the dwarf2 writer considers that
22242         CONST_DECLs is used only to represent enumeration constants, and emits
22243         nothing for them.
22244         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22245         object with an address clause into an indirect reference, drop the
22246         initializing expression.
22247         Include "expr.h".
22248         (STACK_CHECK_BUILTIN): Delete.
22249         (STACK_CHECK_PROBE_INTERVAL): Likewise.
22250         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22251         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22252         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22253         corresponding to the renamed object as ignored for debugging purposes.
22254
22255         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22256         related): For a prefix that is a dereference of a fat or thin pointer,
22257         if there is an actual subtype provided by the front-end, use that
22258         subtype to build an actual type with bounds template.
22259         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22260         is provided by the front-end, use that subtype to compute the size of
22261         the deallocated object.
22262         (gnat_to_gnu): When adding a statement into an elaboration procedure,
22263         check for a potential violation of a No_Elaboration_Code restriction.
22264         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22265         with extra arguments to control whether to recurse through non-values
22266         and to let the caller know if the stabilization has succeeded.
22267         (gnat_stabilize_reference): Now a simple wrapper around
22268         maybe_stabilize, for common uses without restriction on lvalues and
22269         without need to check for the success indication.
22270         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22271         pass false instead of 0 as the FORCE argument which is a bool.
22272         (Identifier_to_gnu): Remove checks ensuring that an renamed object
22273         attached to a renaming pointer has been properly stabilized, as no such
22274         object is attached otherwise.
22275         (call_to_gnu): Invoke create_var_decl to create the temporary when the
22276         function uses the "target pointer" return mechanism.
22277         Reinstate conversion of the actual to the type of the formal
22278         parameter before any other specific treatment based on the passing
22279         mechanism. This turns out to be necessary in order for PLACEHOLDER
22280         substitution to work properly when the latter type is unconstrained.
22281
22282         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22283         common pattern.
22284         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22285         with extra arguments to control whether to recurse through non-values
22286         and to let the caller know if the stabilization has succeeded.
22287
22288         * utils2.c (gnat_build_constructor): Only sort the fields for possible
22289         static output of record constructor if all the components are constant.
22290         (gnat_build_constructor): For a record type, sort the list of field
22291         initializers in increasing bit position order.
22292         Factor common code to build a storage type for an unconstrained object
22293         from a fat or thin pointer type and a constrained object type.
22294         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22295         types variants, and process special cases of VIEW_CONVERT expressions
22296         as their NOP_EXPR counterpart to ensure we get to the
22297         CORRESPONDING_VARs associated with CONST_DECls.
22298         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22299         on the right-hand side.
22300
22301         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22302         a common pattern.
22303         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22304         are converting back to its original type.
22305         (convert) <JM input>: Fallthrough regular conversion code instead of
22306         extracting the object if converting to a type variant.
22307         (create_var_decl): When a variable has an initializer requiring code
22308         generation and we are at the top level, check for a potential violation
22309         of a No_Elaboration_Code restriction.
22310         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22311         SIZE and SIZE_UNIT which we need for later back-annotations.
22312         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22313         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22314         is an unchecked union.
22315         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22316         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22317         main variant, just replace the VIEW_CONVERT_EXPR.
22318         <UNION_TYPE>: Revert 2005-03-02 change.
22319
22320         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22321
22322         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22323
22324 2005-11-14  Matthew Heaney  <heaney@adacore.com>
22325
22326         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22327         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22328         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22329         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22330         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22331         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22332         Compiles against the spec for ordered maps described in sections
22333         A.18.6 of the most recent (August 2005) AI-302 draft.
22334
22335 2005-11-14  Olivier Hainque  <hainque@adacore.com>
22336
22337         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22338         to ensure bias adjustments take place when need be and to prevent
22339         occurrences of intermediate overflows.
22340
22341 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22342             Olivier Hainque  <hainque@adacore.com>
22343
22344         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22345         ia64 HP-UX.
22346
22347         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22348         tracebacks on ia64 HP-UX and provide explanatory comment.
22349         Enable backtraces on ia64 GNU/Linux.
22350         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22351         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22352
22353 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22354             Javier Miranda  <miranda@adacore.com>
22355
22356         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22357         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22358         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22359         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22360
22361         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22362         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22363         assertions).
22364
22365         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22366         subprogram that generates the external name associated with a
22367         secondary dispatch table.
22368         (Get_Secondary_DT_External_Name): New subprogram that generates the
22369         external name associated with a secondary dispatch table.
22370
22371 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22372
22373         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22374         line in the ALI file to include both an instantiation reference, and a
22375         returned value.
22376
22377 2005-11-14  Vincent Celier  <celier@adacore.com>
22378
22379         * clean.adb (Check_Project): Look for Ada code in extending project,
22380         even if Ada is not specified as a language.
22381         Use new function DLL_Prefix for DLL_Name
22382         (Clean_Interface_Copy_Directory): New procedure
22383         (Clean_Library_Directory): New procedure
22384         (Clean_Directory): Remove procedure, no longer used
22385         (Clean_Project): Do not delete any file in an externally built project
22386
22387         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22388         directory of an extending project, even when there are no Ada source
22389         present.
22390         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22391         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22392
22393         * mlib-prj.adb (Check_Library): For all library projects, get the
22394         library file timestamp.
22395         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22396         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22397         (Clean): Remove procedure, no longer used
22398         (Ultimate_Extension_Of): New function
22399         (Build_Library): When cleaning the library directory, only remove an
22400         existing library file and any ALI file of a source of the project.
22401         When cleaning the interface copy directory, remove any source that
22402         could be a source of the project.
22403
22404         * prj.ads, prj.adb (Project_Empty): Add values of new components
22405         Library_TS and All_Imported_Projects.
22406         (Project_Empty): Add values for new components of Project_Data:
22407         Library_ALI_Dir and Display_Library_ALI_Dir
22408
22409         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22410
22411         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22412         attribute Library_ALI_Dir.
22413         (Check_Library_Attributes): The library directory cannot be the same as
22414         any source directory of the project tree.
22415         (Check_Stand_Alone_Library): The interface copy directory cannot be
22416         the same as any source directory of the project tree.
22417
22418         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22419         all temporary files.
22420
22421 2005-11-14  Robert Dewar  <dewar@adacore.com>
22422             Ed Schonberg  <schonberg@adacore.com>
22423
22424         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22425         (Check_Elab_Call): A call within a protected body is never an
22426         elaboration call, and does not require checking.
22427         (Same_Elaboration_Scope): Take into account protected types for both
22428         entities.
22429         (Activate_Elaborate_All_Desirable): New procedure
22430
22431         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22432         desirable
22433
22434         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22435         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22436
22437         * lib-writ.ads, lib-writ.adb:
22438         Implement new AD/ED for Elaborate_All/Elaborate desirable
22439         Use new Elaborate_All_Desirable flag in N_With_Clause node
22440
22441         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22442         N_Free_Statement nodes.
22443         Define new class N_Subprogram_Instantiation
22444         Add Elaborate_Desirable flag to N_With_Clause node
22445         Add N_Delay_Statement (covering two kinds of delay)
22446
22447         * debug.adb: Introduce d.f flag for compiler
22448         Add -da switch for binder
22449
22450 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22451             Cyrille Comar  <comar@adacore.com>
22452
22453         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22454         for task component, in the case of a limited aggregate. The enclosed
22455         object declaration will create it earlier. Otherwise, in the case of a
22456         nested aggregate, the object may appear in the wrong scope.
22457         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22458         (Gen_Assign): If the component being assigned is an array type and the
22459         expression is itself an aggregate, wrap the assignment in a block to
22460         force finalization actions on the temporary created for each row of the
22461         enclosing object.
22462         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22463         structures are initialized after all discriminants are set so that
22464         they can be accessed even when their offset is dynamic.
22465
22466 2005-11-14  Robert Dewar  <dewar@adacore.com>
22467             Hristian Kirtchev  <kirtchev@adacore.com>
22468
22469         * sem_attr.adb: Implement Machine_Rounding attribute
22470         (Analyze_Access_Attribute): The access attribute may appear within an
22471         aggregate that has been expanded into a loop.
22472         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22473         'Terminated whenever the prefix is of a task interface class-wide type.
22474         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22475         the prefix is of a task interface class-wide type.
22476
22477         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22478         to avoid warnings.
22479
22480         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22481         Remove pragma Inline for [Unaligned_]Valid.
22482         Add comments that Valid routines do not work for Vax_Float
22483
22484         * exp_attr.adb: Implement Machine_Rounding attribute
22485
22486         * snames.h: Add entry for Machine_Rounding attribute
22487
22488 2005-11-14  Javier Miranda  <miranda@adacore.com>
22489             Robert Dewar  <dewar@adacore.com>
22490             Hristian Kirtchev  <kirtchev@adacore.com>
22491
22492         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22493         and related): For a prefix that is an explicit dereference of an
22494         access to unconstrained packed array type, annotate the dereference
22495         with an actual subtype so GIGI can make a correct size computation.
22496         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22497         'Unrestricted_Access, if the designated type is an interface we
22498         add a type conversion to force the displacement of the pointer
22499         to the secondary dispatch table.
22500         Use Universal_Real instead of Long_Long_Float when we need a high
22501         precision float type for the generated code (prevents gratuitous
22502         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22503         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22504         'Terminated for task interface class-wide objects. Generate a call to
22505         the predefined dispatching routine used to retrieve the _task_id from
22506         a task corresponding record.
22507         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22508
22509         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22510         (Check_Dispatching_Operation): Protect the frontend againts
22511         previously detected errors.
22512
22513         * Makefile.rtl: Add new instantiations of system.fat_gen
22514
22515         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22516         Change name of instantiated package for better consistency
22517         with newly added system.fat_gen instantiations.
22518
22519         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22520         s-fvagfl.ads: New files.
22521
22522 2005-11-14  Cyrille Comar  <comar@adacore.com>
22523             Thomas Quinot  <quinot@adacore.com>
22524
22525         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22526         assignment of a value of a tagged type that has been rewritten to a
22527         block statement, it is known by construction that no checks are
22528         necessary for the statements within the block: analyze it with checks
22529         suppressed.
22530         (Expand_N_If_Statement): When killing a dead then-branch in an
22531         if-statement that has elsif_parts, recompute the Current_Value node
22532         for any entity whose value is known from the condition of the first
22533         elsif_part.
22534         (Expand_N_Return_Statement): When returning a mutable record, convert
22535         the return value into its actual subtype in order to help the backend
22536         to return the actual size instead of the maximum. This is another
22537         aftermath of not returning mutable records on the sec-stack anymore.
22538
22539         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22540         handling of error msg for suspicious reverse range iteration.
22541         (Check_Possible_Current_Value_Condition): Move declaration from body to
22542         spec, to allow this subprogram to be called from exp_ch5.
22543
22544 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22545
22546         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22547         generate a set of nested array aggregates instead of a single flat
22548         aggregate for multi-dimensional arrays.
22549
22550 2005-11-14  Pascal Obry  <obry@adacore.com>
22551
22552         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22553         by spawnve is a process handle, no need to convert. Add a parameter
22554         close to control wether the process handle must be closed.
22555         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22556         a process handle, not need to convert.
22557         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22558
22559         * g-expect.adb: (Kill): Document the new close parameter.
22560         (Close): Do not release the process handle in the kill there as
22561         waitpid() is using it.
22562         (Send_Signal): Release the process handle.
22563
22564 2005-11-14  Robert Dewar  <dewar@adacore.com>
22565
22566         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22567         need a high precision float type for the generated code (prevents
22568         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22569         used).
22570
22571         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22572         need a high precision float type for the generated code (prevents
22573         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22574         used).
22575         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22576         allowed on non-static enumeration subtypes. Force a load error to emit
22577         the correct diagnostic.
22578
22579 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22580             Robert Dewar  <dewar@adacore.com>
22581             Ed Schonberg  <schonberg@adacore.com>
22582
22583         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22584         subtype to compute the size of the designated object at run-time,
22585         create such a subtype and store it in the Actual_Designated_Subtype
22586         attribute of the N_Free_Statement.
22587         Generate itype for classwide designated object in both cases of
22588         user-specified storage pool: specific and class-wide, not only in the
22589         specific case.
22590         Raise CE when trying to set a not null access type object to null.
22591         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22592         an explicit loop, because freeze nodes make its position variable.
22593
22594         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22595         null object.
22596
22597 2005-11-14  Javier Miranda  <miranda@adacore.com>
22598
22599         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22600         Build_Stream_Procedure): Add the null-excluding attribute to the first
22601         formal.
22602         This has no semantic meaning under Ada95 mode but it is a
22603         requirement under Ada05 mode.
22604
22605         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22606         the null exclusion is used under Ada95 mode
22607         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22608         (P_Access_Definition): Remove assertion that forbids the use of
22609         the null-exclusion feature in Ada95.
22610
22611 2005-11-14  Robert Dewar  <dewar@adacore.com>
22612
22613         * impunit.adb: Exclude container helper units not intended for use by
22614         users.
22615
22616 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22617
22618         * freeze.adb (Freeze_Entity): For an access formal that is an access
22619         to subprogram, freeze the anonymous subprogram type at the same time,
22620         to prevent later freezing in the wrong scope, such as the enclosing
22621         subprogram body.
22622         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22623         subprogram whenever available.
22624
22625 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22626
22627         PR ada/23732
22628         * gnatvsn.ads (Library_Version): Bump to 4.1
22629
22630 2005-11-14  Robert Dewar  <dewar@adacore.com>
22631
22632         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22633         Storage_Offset to avoid wrap around causing invalid results.
22634
22635 2005-11-14  Pascal Obry  <obry@adacore.com>
22636
22637         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22638         cross-compiler.
22639         (Scan_Bind_Arg): Fail with an error message if -M option is used
22640         on a native compiler.
22641
22642 2005-11-14  Robert Dewar  <dewar@adacore.com>
22643             Vincent Celier  <celier@adacore.com>
22644
22645         * gprep.adb: Implement -C switch to scan comments
22646
22647         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22648
22649         * scans.ads: Comment updates (including new use of Tok_Comment in
22650         preprocessing)
22651
22652         * opt.ads: Add documentation for flags that are used by gprmake,
22653         currently and in the next version of gprmake.
22654         (Verbosity_Level): New variable
22655         Add Replace_In_Comments switch
22656
22657         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22658         and -vm.
22659         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22660
22661 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22662
22663         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22664         message, friendlier.
22665
22666 2005-11-14  Robert Dewar  <dewar@adacore.com>
22667
22668         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22669
22670 2005-11-14  Doug Rupp  <rupp@adacore.com>
22671
22672         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22673
22674 2005-11-14  Robert Dewar  <dewar@adacore.com>
22675
22676         * interfac.ads: Change declarations of IEEE float types so that we no
22677         longer need a separate version of this package for VMS.
22678
22679 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22680
22681         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22682         internal entity created for the declaration of a child subprogram body
22683         with no spec as coming from source, to generate proper cross-reference
22684         information.
22685
22686 2005-11-14  Vincent Celier  <celier@adacore.com>
22687
22688         * make.adb (Compile_Sources): Change verbose message to minimum
22689         verbosity level High for "is in an Ada library", "is a read-only
22690         library" and "is an internal library",
22691         (Create_Binder_Mapping_File): Path name of ALI file for library project
22692         must include the library directory, not the object directory.
22693         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22694         for new switches -vl, -vm and -vh.
22695         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22696         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22697         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22698         in a project that is externally built.
22699         (Compute_All_Imported_Projects): New procedure
22700         (Gnatmake): Check if importing libraries should be regenerated because
22701         at least an imported library is more recent.
22702         (Initialize): For each project compute the list of the projects it
22703         imports directly or indirectly.
22704         (Add_Library_Search_Dir): New procedure, used in place of
22705         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22706         put in the search paths.
22707         (Add_Source_Search_Dir): New procedure, used in place of
22708         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22709         put in the search paths.
22710         (Mark_Directory): Resolve the absolute path the directory before marking
22711         it.
22712
22713         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22714         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22715         Switch. Do not handle any exception.
22716         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22717         so that the switch is recognized as valid.
22718         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22719
22720 2005-11-14  GNAT Script  <nobody@adacore.com>
22721
22722         * Make-lang.in: Makefile automatically updated
22723
22724 2005-11-14  Pascal Obry  <obry@adacore.com>
22725
22726         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22727         used.
22728         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22729         In both cases the last argument was dropped.
22730
22731 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22732
22733         * namet.h: (Column_Numbe): New type.
22734         (Get_Column_Number): Define to sinput__get_column_number.
22735         (Instantiation): Define to sinput__instantiation.
22736         (Get_Column_Number): Declare.
22737         (Instantiation): Likewise.
22738
22739 2005-11-14  Robert Dewar  <dewar@adacore.com>
22740
22741         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22742         syntax, which could cause compiler hangs.
22743
22744 2005-11-14  Vincent Celier  <celier@adacore.com>
22745
22746         * prj-ext.adb: Take into account new environment variable
22747         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22748         are defined.
22749         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22750         normalize its path name, making it absolute and resolving symbolic
22751         links, and replace the original if resolved path is different.
22752
22753 2005-11-14  Vincent Celier  <celier@adacore.com>
22754
22755         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22756         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22757
22758 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22759
22760         * prj-pp.adb (Print): Do not output the with statement if the
22761         associated name is empty, which happens for virtual extending projects.
22762         (Print): Preserve the "extends all" attribute when printing the project.
22763
22764         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22765         a virtual extending project.
22766
22767 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22768
22769         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22770         rhs of an assignment even if the type is unconstrained, when the
22771         context is non-expanding.
22772         In an inlined body, if the context type is private,
22773         resolve with its full view, which must be a composite type.
22774
22775 2005-11-14  Robert Dewar  <dewar@adacore.com>
22776             Ed Schonberg  <schonberg@adacore.com>
22777
22778         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22779         Do not give obsolescent warning on with of subprogram (since we
22780         diagnose calls)
22781         (Analyze_With_Clause): Add test for obsolescent package
22782         (Install_Context_Clauses): If the unit is the body of a child unit, do
22783         not install twice the private declarations of the parents, to prevent
22784         circular lists of Use_Clauses in a parent.
22785         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22786         compiling body of child unit.
22787         Use new class N_Subprogram_Instantiation
22788         (Expand_With_Clause): If this is a private with_clause for a child unit,
22789         appearing in the context of a package declaration, then the implicit
22790         with_clauses generated for parent units are private as well.
22791         (License_Check): Do not generate message if with'ed unit is internal
22792
22793 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22794             Ed Schonberg  <schonberg@adacore.com>
22795             Thomas Quinot  <quinot@adacore.com>
22796
22797         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22798         names are internal, because they will not have a corresponding partner
22799         in the actual package.
22800         (Analyze_Formal_Package): Move the setting of the formal package spec's
22801         Generic_Parent field so that it occurs prior to analyzing the package,
22802         to allow proper operation of Install_Parent_Private_Declarations.
22803         (Analyze_Package_Instantiation): Set the instantiated package entity's
22804         Package_Instantiation field.
22805         (Get_Package_Instantiation_Node): Move declaration to package spec.
22806         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22807         field is present.
22808         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22809         instantiation is Unchecked_Conversion, for which no parents are needed.
22810         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22811         parent scopes of a scope being removed prior to inlining an instance
22812         body.
22813         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22814         the current context is itself an instance within a non-instance child
22815         unit, to prevent scope stack errors.
22816         (Save_References): If the node is an aggregate that is an actual in a
22817         call, rewrite as a qualified expression to preserve some type
22818         information, to resolve possible ambiguities in the instance.
22819         (Instance_Parent_Unit): New global variable to record the ultimate
22820         parent unit associated with a generic child unit instance (associated
22821         with the existing Parent_Unit_Visible flag).
22822         (type Instance_Env): New component Instance_Parent_Unit for stacking
22823         parents recorded in the global Instance_Parent_Unit.
22824         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22825         stack.
22826         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22827         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22828         not already set. Replace test of Is_Child_Unit with test of parent's
22829         scope against package Standard. Add comments and a ??? comment.
22830         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22831         on a child instance parent to test that the parent equals
22832         Instance_Parent rather than simply checking that the unit is not a
22833         child unit.
22834         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22835         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22836         a formal interface are ancestors of the corresponding actual.
22837         (Validate_Formal_Interface_Type): Additional legality checks.
22838         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22839         interface types with ancestors.
22840         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22841         to diagnose attempts to use generic within its own declaration.
22842
22843 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22844             Javier Miranda  <miranda@adacore.com>
22845
22846         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22847         discriminant.
22848         (Build_Private_Derived_Type): The entity of the created full view of the
22849         derived type does not come from source. If after installing the private
22850         declarations of the parent scope the parent is still private, use its
22851         full view to construct the full declaration of the derived type.
22852         (Build_Derived_Record_Type): Relax the condition that controls the
22853         execution of the check that verifies that the partial view and
22854         the full view agree in the set of implemented interfaces. In
22855         addition, this test now only takes into account the progenitors.
22856         (Derive_Interface_Subprograms): No need to derive subprograms
22857         of ancestors that are interfaces.
22858         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22859         associated code.
22860         Change name Is_Package to Is_Package_Or_Generic_Package
22861         (Complete_Subprograms_Derivation): Handle the case in which the full
22862         view is a transitive derivation of the ancestor of the partial view.
22863         (Process_Full_View): Rename local subprogram Find_Interface_In_
22864         Descendant to Find_Ancestor_Interface to leave the code more clear.
22865         Remove wrong code that avoids the generation of an error message
22866         when the immediate ancestor of the partial view is an interface.
22867         In addition some minor reorganization of the code has been done to
22868         leave it more clear.
22869         (Analyze_Type_Declaration): If type has previous incomplete tagged
22870         partial view, inherit properly its primitive operations.
22871         (Collect_Interfaces): Make public, for analysis of formal
22872         interfaces.
22873         (Analyze_Interface_Declaration): New procedure for use for regular and
22874         formal interface declarations.
22875         (Build_Derived_Record_Type): Add support for private types to the code
22876         that checks if a tagged type implements abstract interfaces.
22877         (Check_Aliased_Component_Type): The test applies in the spec of an
22878         instance as well.
22879         (Access_Type_Declaration): Clean up declaration of malformed type
22880         declared as an access to its own classwide type, to prevent cascaded
22881         crash.
22882         (Collect_Interfaces): For private extensions and for derived task types
22883         and derived protected types, the parent may be an interface that must
22884         be included in the interface list.
22885         (Access_Definition): If the designated type is an interface that may
22886         contain tasks, create Master_Id for it before analyzing the expression
22887         of the declaration, which may be an allocator.
22888         (Record_Type_Declaration): Set properly the interface kind, for use
22889         in allocators, the creation of master id's for task interfaces, etc.
22890
22891 2005-11-14  Javier Miranda  <miranda@adacore.com>
22892             Ed Schonberg  <schonberg@adacore.com>
22893
22894         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22895         omitted in case of stream attribute subprograms.
22896         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22897         appear immediately after a subprogram body, when there is no previous
22898         subprogram declaration.
22899         Change name Is_Package to Is_Package_Or_Generic_Package
22900         (Process_Formals): A non null qualifier on a non null named access
22901         type is not an error, and is a warning only if Redundant_Constructs
22902         are flagged.
22903
22904 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22905             Ed Schonberg  <schonberg@adacore.com>
22906
22907         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22908         nested within Analyze_Package_Specification to install the private
22909         declarations and use clauses within each of the parent units of a
22910         package instance of a generic child package.
22911         (Analyze_Package_Specification): When entering a private part of a
22912         package associated with a generic instance or formal package, the
22913         private declarations of the parent must be installed (by calling new
22914         procedure Install_Parent_Private_Declarations).
22915         Change name Is_Package to Is_Package_Or_Generic_Package
22916         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22917         record is absent in a generic context, which does not indicate a
22918         compiler error.
22919
22920 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22921
22922         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22923         not try to rewrite a renamed stream attribute, because the operations
22924         on the type may not have been generated.
22925         Handle properly a renaming_as_body generated for a stream operation
22926         whose default is abstract because the object type itself is abstract.
22927         (Find_Type): If the type is incomplete and appears as the prefix of a
22928         'Class reference, it is tagged, and its list of primitive operations
22929         must be initialized properly.
22930         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22931         private declaration of a parent unit, prior to compiling the private
22932         part of a child unit, find on the scope stack the proper parent entity
22933         on which to link the use clause.
22934         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22935         detected.
22936         (Analyze_Object_Renaming): An attribute reference is not a legal object
22937         if it is not a function call.
22938
22939 2005-11-14  Robert Dewar  <dewar@adacore.com>
22940             Ed Schonberg  <schonberg@adacore.com>
22941
22942         * sem_eval.adb: Implement d.f flag
22943         (Subtype_Statically_Match): A generic actual type has unknown
22944         discriminants when the corresponding actual has a similar partial view.
22945         If the routine is called to validate the signature of an inherited
22946         operation in a child instance, the generic actual matches the full view,
22947
22948 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22949             Ed Schonberg  <schonberg@adacore.com>
22950             Robert Dewar  <dewar@adacore.com>
22951             Thomas Quinot  <quinot@adacore.com>
22952
22953         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22954         a procedure call is used as a select statement trigger and is not an
22955         entry renaming or a primitive of a limited interface.
22956         (Valid_Conversion): If the operand has a single interpretation do not
22957         remove address operations.
22958         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22959         statement to inhibit warning.
22960         (Resolve_Unary_Op): Do not produce a warning when
22961         processing an expression of the form -(A mod B)
22962         Use Universal_Real instead of Long_Long_Float when we need a high
22963         precision float type for the generated code (prevents gratuitous
22964         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22965         (Resolve_Concatenation_Arg): Improve error message when argument is an
22966         ambiguous call to a function that returns an array.
22967         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22968         there is an implicit operator in the given scope if we are within an
22969         instance: legality check has been performed on the generic.
22970         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22971         after resolving operand, to avoid false warnings on overloaded calls.
22972
22973 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22974             Javier Miranda  <miranda@adacore.com>
22975
22976         PR ada/15604
22977         * sem_type.adb (Covers): In an inlined body, a composite type matches
22978         a private type whose full view is a composite type.
22979         (Interface_Present_In_Ancestor): Protect the frontend against
22980         previously detected errors to ensure that its compilation
22981         with assertions enabled gives the same output that its
22982         compilation without assertions.
22983         (Interface_Present_In_Ancestor): Add support for private types.
22984         Change name In_Actual to In_Generic_Actual (clean up)
22985         (Disambiguate): New predicate In_Actual, to recognize expressions that
22986         appear in the renaming declaration generated for generic actuals, and
22987         which must be resolved in the outer context.
22988
22989 2005-11-14  Robert Dewar  <dewar@adacore.com>
22990             Thomas Quinot  <quinot@adacore.com>
22991             Hristian Kirtchev  <kirtchev@adacore.com>
22992             Ed Schonberg  <schonberg@adacore.com>
22993
22994         * sem_util.ads, sem_util.adb: Change name Is_Package to
22995         Is_Package_Or_Generic_Package.
22996         (Check_Obsolescent): New procedure.
22997         (Set_Is_Public): Remove obsolete junk test.
22998         (Set_Public_Status): Do not set Is_Public on an object whose declaration
22999         occurs within a handled_sequence_of_statemets.
23000         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23001         for a parameterless procedure.
23002         (Enter_Name): Recognize renaming declarations created for private
23003         component of a protected type within protected operations, so that
23004         the source name of the component can be used in the debugger.
23005
23006 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
23007             Robert Dewar  <dewar@adacore.com>
23008
23009         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23010         of a generic subprogram are not visible outside the body.
23011         (Set_Warning_Switch): New procedure (code to set warning mode moved
23012         here from Switch.C so that it can be shared by pragma processing.
23013         (Check_References): Special case warning for non-modified non-imported
23014         volatile objects.
23015         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23016         form with a string literal argument
23017
23018 2005-11-14  Javier Miranda  <miranda@adacore.com>
23019
23020         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23021         anonymous access.
23022         (Write): Addition of "not null" to the anonymous access.
23023         (Read): Addition of "not null" to the anonymous access.
23024         (Write): Addition of "not null" to the anonymous access.
23025
23026         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23027         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23028         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23029         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23030         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23031         "not null" to the anonymous access.
23032
23033 2005-11-14  Robert Dewar  <dewar@adacore.com>
23034
23035         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23036         offset values
23037
23038 2005-11-14  Vincent Celier  <celier@adacore.com>
23039
23040         * switch.adb (Bad_Switch): New procedure
23041         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23042         message when in error.
23043
23044         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23045         Too_Many_Output_Files): Remove declarations, no longer used.
23046         (Scan_Nat): New parameter Switch
23047         (Scan_Pos): Ditto
23048         (Bad_Switch): New procedure
23049
23050         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23051         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23052         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23053         to Osint.Fail. Do not handle any exception.
23054
23055 2005-11-14  Vincent Celier  <celier@adacore.com>
23056
23057         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23058         designates a non existent directory.
23059
23060 2005-11-14  Robert Dewar  <dewar@adacore.com>
23061
23062         * xgnatugn.adb: Replace invalid membership test by 'Valid
23063
23064 2005-11-14  Vincent Celier  <celier@adacore.com>
23065
23066         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23067         there is no object directory.
23068
23069 2005-11-14  Robert Dewar  <dewar@adacore.com>
23070
23071         * usage.adb: Minor adjustment to output format, use nn instead of nnn
23072         (so that -gnateInnn does not run into next column)
23073
23074 2005-11-14  Ed Falis  <falis@adacore.com>
23075
23076         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23077         "constrained"
23078
23079 2005-11-14  Cyrille Comar  <comar@adacore.com>
23080
23081         * s-chepoo.ads: Add comments on Dereference.
23082         Remove unnecessary inherited abstract primitives.
23083         Cosmetic cleanup.
23084
23085 2005-11-14  Robert Dewar  <dewar@adacore.com>
23086
23087         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23088         node parameter, not needed, since it is available as Declaration_Node.
23089
23090 2005-11-14  Geert Bosch  <bosch@adacore.com>
23091
23092         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23093         grammatically correct.
23094
23095 2005-11-14  Vincent Celier  <celier@adacore.com>
23096
23097         * s-fileio.ads: Correct spelling error in comment
23098
23099 2005-11-14  Cyrille Comar  <comar@adacore.com>
23100             Robert Dewar  <dewar@adacore.com>
23101             Vincent Celier  <celier@adacore.com>
23102             Ben Brosgol  <brosgol@adacore.com>
23103             Jose Ruiz  <ruiz@adacore.com>
23104             Pascal Obry  <obry@adacore.com>
23105
23106         * gnat_ugn.texi:
23107         Document that -fstack-check is needed for strict compliance with the
23108         Ada 95 Reference Manual.
23109         Correct reference to VAX systems to meet HP guidelines
23110         Add documentation for new gnatmake switches -vl, -vm and -vh
23111         Replace DEC Ada by HP Ada
23112         Replace DIGITAL by HP
23113         Remove empty section on tools in compatibility section
23114         Clarify the Windows convention semantics.
23115         Document the Win32 calling convention.
23116         The Stdcall, Win32 and DLL convention are synonyms.
23117         Add a note in -gnatR description about zero size record components
23118         Note on new >= and <= warnings for -gnatwc
23119         Document that equal sign after -gnatm is optional.
23120         Note that strip is working fine on DLL built with a Library
23121         Project. The restriction apply only to DLL built with gnatdll.
23122         Update section about the way to debug a DLL.
23123         Update information about the DLL convention.
23124         Document -C switch for gnatprep
23125         Document new attribute Library_ALI_Dir
23126         Update elaboration doc to include implicit Elaborate pragmas now
23127         generated for subprogram instantiations.
23128         Document limitation on executable names that include spaces for --GCC,
23129         --GNATBIND, and --GNATLINK switches.
23130         Document that -w causes -gnatws to be added at start of gcc switches
23131
23132         * gnat_rm.texi: Document that -mieee is needed for generating infinite
23133         and NaN values in case of overflow on machines that are not fully
23134         compliant with the IEEE floating-point standard.
23135         Create a section describing the set of compiler options needed for
23136         strict compliance with the Ada 95 Reference Manual.
23137         Add documentation for pragma Obsolescent applied to a package
23138         Clarify potential issues of mixed language programs related to the
23139         I/O buffering enabling in the elaboration of the GNAT runtime.
23140         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23141         This documentation only patch adds extra documentsion for pragma
23142         Restrictions (No_Elaboration_Code), explaining why it is not possible
23143         to document this restriction in terms of allowed source constructs.
23144         Document string literal form of pragma Warnings
23145         Document new attribute Library_ALI_Dir
23146         Add documentation on stable attributes in project files that was missing
23147
23148         * gnat-style.texi: Indicate that paragraphs within a single comment
23149         should be separated by empty comment lines
23150
23151         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23152         /05 respectively)
23153
23154         * bindusg.adb: Minor cleanup, put -m before -M for consistency
23155
23156 2005-11-14  Robert Dewar  <dewar@adacore.com>
23157
23158         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23159         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23160         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23161         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23162         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23163         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23164         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23165         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23166         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23167         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23168         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23169         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23170         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23171         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23172         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23173         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23174         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23175         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23176         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23177         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23178         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23179         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23180         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23181         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23182         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23183         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23184         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23185         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23186         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23187         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23188         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23189         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23190         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23191         system-interix.ads, system-solaris-sparc.ads,
23192         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23193         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23194         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23195         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23196         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23197         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23198         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23199         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23200         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23201         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23202         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23203         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23204         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23205         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23206         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23207         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23208         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23209         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23210         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23211         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23212         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23213         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23214         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23215         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23216         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23217         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23218         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23219         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23220         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23221         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23222         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23223         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23224         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23225         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23226         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23227         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23228         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23229         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23230         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23231         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23232         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23233         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23234         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23235         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23236         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23237         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23238         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23239         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23240         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23241         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23242         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23243         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23244         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23245         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23246         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23247         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23248         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23249         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23250         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23251         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23252         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23253         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23254         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23255         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23256         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23257         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23258         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23259         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23260         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23261         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23262         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23263         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23264         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23265         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23266         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23267         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23268         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23269         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23270         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23271         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23272         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23273         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23274         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23275         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23276         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23277         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23278         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23279         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23280         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23281         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23282         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23283         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23284         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23285         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23286         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23287         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23288         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23289         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23290         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23291         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23292         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23293         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23294         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23295         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23296         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23297         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23298         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23299         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23300         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23301         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23302         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23303         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23304         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23305         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23306         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23307         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23308         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23309         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23310         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23311         a-numaux-darwin.ads, a-numaux-darwin.adb,
23312         a-swuwha.ads, a-stunha.ads: Minor reformatting
23313
23314 2005-11-14  Robert Dewar  <dewar@adacore.com>
23315
23316         PR ada/18434
23317         * osint-m.adb: Add pragma Elaborate_All for Osint
23318
23319 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
23320
23321         PR ada/23995
23322         * trans.c (call_to_gnu): Restore statement lost in translation.
23323
23324 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
23325
23326         * init.c: Use the Linux-specific section for the IA-64/Linux target.
23327         (__gnat_adjust_context_for_raise): Add conditional code so that the
23328         IA-64 is also supported.
23329
23330 2005-11-03  James E Wilson  <wilson@specifix.com>
23331
23332         PR ada/23427
23333         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23334         TREE_OVERFLOW check.
23335
23336 2005-09-21  Olivier Hainque  <hainque@adacore.com>
23337
23338         PR ada/22418
23339         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23340         as we create them to store a size in bits.
23341
23342 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
23343
23344         PR ada/21937
23345         PR ada/22328
23346         PR ada/22381
23347         PR ada/22383
23348         PR ada/22419
23349         PR ada/22420
23350         * utils2.c (build_return_expr): New helper function.
23351         * gigi.h (build_return_expr): Declare it.
23352         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23353         of manually building the RETURN_EXPR tree.
23354         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23355         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23356         build_binary_op for the "target pointer" case.  Use build_return_expr
23357         instead of manually building the RETURN_EXPR tree.
23358
23359 2005-09-16  Laurent Guerby  <laurent@guerby.net>
23360
23361         PR ada/23788
23362         * s-tpinop.ads: Make this unit Preelaborate.
23363
23364 2005-09-16  Andreas Jaeger  <aj@suse.de>
23365
23366         * socket.c: Add string.h for memcpy.
23367
23368 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23369
23370         * dec-io.ads, dec-io.adb: Removed, no longer used.
23371
23372 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23373
23374         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23375
23376         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23377         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23378         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23379         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23380         dependent units are Preelaborate.
23381         (Initialize): Call Interrupt_Managemeent.Initialize and
23382         OS_Primitives.Initialize to ensure proper initialization of this unit.
23383         Remove use of System.Soft_Links
23384         Make this unit Preelaborate.
23385
23386         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23387         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23388         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23389         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23390         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23391         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23392         Add pragma Preelaborate, since these packages are suitable for this
23393         categorization.
23394         Update comments.
23395
23396         * s-traent-vms.ads, s-intman-dummy.adb,
23397         s-taprop-dummy.adb: Make this unit Preelaborate.
23398
23399         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23400         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23401         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23402         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23403         s-intman-solaris.adb, s-intman-irix-athread.adb,
23404         s-intman-irix.adb: Mark this unit Preelaborate.
23405         (Initialize): New procedure.
23406         Update comments.
23407
23408         * s-taspri-linux.ads: Removed.
23409
23410         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23411         as done by other implementations (e.g. posix).
23412
23413         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23414         responsible for deferring abort.
23415         Mark this unit Preelaborate.
23416
23417         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23418         proper initialization of the tasking run-time.
23419
23420         * s-tasdeb.ads: Mark this unit Preelaborate.
23421         (Known_Tasks): Add explicit default value to avoid elaboration code.
23422
23423         * s-inmaop-vms.adb (Elaboration code): Add call to
23424         Interrupt_Management.Initialize since the elaboration code depends on
23425         proper initialization of this package.
23426
23427         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23428         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23429         s-osprim-posix.adb: Make this unit Preelaborate.
23430
23431         * a-calend.adb: Add call to OS_Primitives.Initialize
23432
23433         * a-elchha.adb: Update use of Except.Id.Full_Name.
23434         Minor reformatting.
23435         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23436
23437         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23438         Move with clauses outside Warnings Off now that dependent units are
23439         Preelaborate.
23440         Use raise xxx with "..."; Ada 2005 form.
23441
23442         * a-taside.ads, a-taside.adb:
23443         Remove some dependencies, to make it easier to make this unit truly
23444         Preelaborate.
23445         Rewrite some code to be conformant with Preelaborate rules.
23446
23447         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23448         marked Preelaborate in the future.
23449
23450         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23451         these units Preelaborate.
23452
23453         * s-exctab.adb: Update use of Except.Id.Full_Name.
23454
23455         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23456         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23457         Set_Exc_Stack_Addr): Removed, no longer used.
23458         Remove reference to *Machine_State_Addr*, no longer needed.
23459
23460         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23461         (Exception_Data): Full_Name is now a System.Address so that this unit
23462         can be made Preelaborate.
23463         Clean up/simplify code thanks to Full_Name being a System.Address.
23464         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23465
23466         * s-taskin.ads, s-taskin.adb:
23467         Move with clauses outside Warnings Off now that dependent units are
23468         Preelaborate.
23469         Make this unit Preelaborate.
23470         (Initialize): New proceduure, replace elaboration code and makes the
23471         set up of the tasking run-time cleaner.
23472         (Detect_Blocking): Now a function instead of a deferred boolean, to
23473         obey Preelaborate rules.
23474
23475         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23476         soft links, no longer used.
23477
23478         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23479         packages are suitable for this categorization.
23480
23481         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23482         since we compile run-time sources in Ada 2005 mode.
23483         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23484         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23485         duplication.
23486         Remove reference to *Machine_State_Addr*, no longer needed.
23487
23488 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23489
23490         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23491         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23492         Remove reference to System.Exceptions.
23493
23494         * s-mastop-x86.adb: Removed, no longer used.
23495
23496         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23497
23498         * a-excach.adb: Minor reformatting.
23499
23500         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23501         instead fix new warnings that were hidden by this change.
23502         (AAA, ZZZ): Removed, replaced by...
23503         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23504         are used instead of constants, to help make Ada.Exception truly
23505         preelaborate.
23506         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23507         Raise_Storage_Error): File is now a System.Address, to simplify code.
23508         (Elab code): Removed, no longer used.
23509         (Null_Occurrence): Remove Warnings Off and make this construct
23510         preelaborate.
23511         Remove code related to front-end zero cost exception handling, since
23512         it is no longer used.
23513         Remove -gnatL/-gnatZ switches.
23514
23515         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23516         Update use of Except.Msg.
23517
23518         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23519         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23520         to front-end zero cost exception handling, since it is no longer used.
23521         Remove -gnatL/-gnatZ switches.
23522
23523         * lib-writ.ads: Minor reformatting
23524         Remove doc of UX
23525
23526         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23527
23528         * Make-lang.in: Remove references to s-except.ads
23529
23530         * s-except.ads: Removed, no longer used.
23531
23532         * s-mastop.ads, s-mastop.adb:
23533         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23534         Remove reference to System.Exceptions.
23535
23536         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23537         switch-b.adb: Remove code related to front-end zero cost exception
23538         handling, since it is no longer used.
23539         Remove -gnatL/-gnatZ switches.
23540
23541 2005-09-01  Robert Dewar  <dewar@adacore.com>
23542             Gary Dismukes  <dismukes@adacore.com>
23543             Javier Miranda  <miranda@adacore.com>
23544
23545         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23546         type by valid test and generate warning.
23547         (Tagged_Membership): Generate call to the run-time
23548         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23549         Change formal name Subtype_Mark to Result_Definition in several calls to
23550         Make_Function_Specification.
23551         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23552         check for proper accessibility of the operand of a class-wide allocator.
23553         The check can be left out if checks are suppressed or if the expression
23554         has a specific tagged type whose level is known to be safe.
23555
23556         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23557         generates the run-time check associated with null-excluding entities.
23558         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23559         check on the level of the return expression of a class-wide function
23560         can be elided. The check usually isn't needed if the expression has a
23561         specific type (unless it's a conversion or a formal parameter). Also
23562         add a test for whether accessibility checks are suppressed. Augment
23563         the comments to describe the conditions for performing the check.
23564
23565 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23566             Javier Miranda  <miranda@adacore.com>
23567             Gary Dismukes  <dismukes@adacore.com>
23568             Ed Schonberg  <schonberg@adacore.com>
23569
23570         * a-tags.adb (IW_Membership): Give support to
23571         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23572         subprogram has been extended to look for the tag in the ancestors tag
23573         table.
23574         Update the structure of the GNAT Dispatch Table to reflect the
23575         additional two tables used in dispatching selects.
23576         Introduce appropriate array types and record components in
23577         Type_Specific_Data to reflect the two tables.
23578         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23579         the TSD of a tag, indexed by position.
23580         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23581         operation kind in the TSD of a tag, indexed by position.
23582
23583         * a-tags.ads: Introduce an enumeration type to capture different
23584         primitive operation kinds. Define a constant reflecting the number of
23585         predefined primitive operations.
23586         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23587         of an entry wrapper.
23588         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23589         callable entity of a primitive operation.
23590
23591         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23592         primitive operations used in dispatching selects for limited
23593         interfaces, limited tagged, task and protected types what implement a
23594         limited interface.
23595         (Freeze_Type): Generate the bodies of the primitive operations used in
23596         dispatching selects for limited tagged, task and protected types that
23597         implement a limited interface. Generate statements to populate the two
23598         auxiliary tables used for dispatching in select statements.
23599         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23600         associated with predefined interface primitive operations.
23601         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23602         Set_Result_Definition.
23603         (Build_Variant_Record_Equality): Change Subtype_Mark to
23604         Result_Definition.
23605         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23606         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23607         (Build_Assignment): Simplify the code that adds the run-time-check.
23608         (Expand_N_Object_Declaration): Code cleanup.
23609
23610         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23611         entries when there is a protected type that implements a limited
23612         interface.
23613
23614         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23615         common routines used in expansion of dispatching selects.
23616         (Add_Private_Declarations): Select the appropriate protection type when
23617         there is a protected type that implements a limited interface.
23618         (Build_Parameter_Block): Generate a wrapped parameter block.
23619         (Build_Protected_Subprogram_Body): Select the appropriate type for
23620         locking entries when there is a protected type that implements a
23621         limited interface.
23622         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23623         classified as entry wrappers.
23624         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23625         asynchronous selects.
23626         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23627         dispatching conditional selects.
23628         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23629         protection when there is a protected type that implements limited
23630         interfaces.
23631         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23632         timed selects.
23633         (Extract_Dispatching_Call): Extract the entity of the name of a
23634         dispatching call, the object parameter, actual parameters and
23635         corresponding formals.
23636         (Make_Initialize_Protection): Correct logic of protection initialization
23637         when there is a protected type that implements a limited interface.
23638         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23639         values of actual parameters.
23640         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23641         block and assign them to the original actual parameters.
23642
23643         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23644         (Build_Protected_Sub_Specification): Change the type and name of the
23645         last formal to account for the increased variety of protection modes.
23646
23647         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23648         entities. Used to save the value of the Is_Hidden attribute when the
23649         limited-view is installed.
23650         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23651         the attribute of procedures classified as entry wrappers.
23652         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23653         entity of a primitive wrapper.
23654         (Write_Entity_Flags): Output the name and value of the
23655         Is_Primitive_Wrapper attribute.
23656         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23657         Entity.
23658         (Underlying_Type): If we have an incomplete entity that comes from
23659         the limited view then we return the Underlying_Type of its non-limited
23660         view if it is already available.
23661         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23662         including operators.
23663         (Write_Field26_Name): Add entry for Overridden_Operation
23664         (Overridden_Operation): New attribute of functions and procedures.
23665
23666         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23667         predefined position in the dispatch table for the primitive operations
23668         used in dispatching selects.
23669         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23670         predefined primitive operations and replace it with
23671         Default_Prim_Op_Count.
23672         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23673         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23674         the names of the generated primitive operations used in dispatching
23675         selects.
23676         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23677         case of abstract interface types. They will be inherit by the objects
23678         implementing the interface.
23679         (Make_DT): There is no need to inherit the dispatch table of the
23680         ancestor interface for the elaboration of abstract interface types.
23681         The dispatch table will be inherited by the object implementing the
23682         interface.
23683         (Copy_Secondary_DTs): Add documentation.
23684         (Validate_Position): Improve this static check in case of
23685         aliased subprograms because aliased subprograms must have
23686         the same position.
23687         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23688         the entries associated with predefined primitives of all the secondary
23689         dispatch tables.
23690         (Build_Anonymous_Access_Type): Removed.
23691         (Expand_Interface_Actuals): With the previous cleanup there is no need
23692         to build an anonymous access type. This allows further cleanup in the
23693         code generated by the expander.
23694         (Expand_Interface_Conversion): If the actual is an access type then
23695         build an internal function to handle the displacement. If the actual
23696         is null this function returns null because no displacement is
23697         required; otherwise performs a type conversion that will be
23698         expanded in the code that returns the value of the displaced actual.
23699         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23700         conversions that have no effect in the generated code because no
23701         displacement is required. Code cleanup; use local variables to
23702         avoid repeated calls to the subprogram directly_designated_type().
23703
23704         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23705         Classify the primitive operations used in dispatching selects as
23706         predefined.
23707         (Implements_Limited_Interface): Determine whether some type either
23708         directly implements a limited interface or extends a type that
23709         implements a limited interface.
23710         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23711         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23712         expression is limited.
23713         (Find_Interface_Tag): Add code to handle class-wide types and
23714         entities from the limited-view.
23715
23716         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23717         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23718         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23719         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23720         Set_Prim_Op_Kind.
23721
23722         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23723         of procedure name or prefix that appears as a trigger in a triggering
23724         alternative.
23725
23726         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23727
23728 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23729
23730         * s-tataat.adb, a-tasatt.adb:
23731         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23732
23733         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23734         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23735         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23736         longer used.
23737
23738 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23739             Jose Ruiz  <ruiz@adacore.com>
23740
23741         * s-taprop-vxworks.adb:
23742         Move with clauses outside Warnings Off now that dependent units are
23743         Preelaborate.
23744         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23745         initialization of this unit.
23746         (Specific): Add new procedures Initialize and Delete so that this
23747         package can be used for VxWorks 5.x and 6.x
23748         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23749         differences between VxWorks 5.x and 6.x
23750         Minor reformatting.
23751         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23752         caller.
23753         Use only Preelaborate-compatible constructs.
23754
23755         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23756         Primitives.Operations.
23757         (Delete, Initialize): New procedures.
23758
23759         * s-osinte-vxworks.adb: Body used to handle differences between
23760         VxWorks 5.x and 6.x
23761         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23762
23763         * s-osinte-vxworks.ads: Minor reformatting.
23764         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23765         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23766         and 6.
23767         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23768         between Vxworks 5 and 6.
23769         (taskLock, taskUnlock): Removeed, no longer used.
23770
23771         * adaint.c: The wait.h header is not located in the sys directory on
23772         VxWorks when using RTPs.
23773         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23774         using RTPs.
23775         (__gnat_dup): dup is available on Vxworks when using RTPs.
23776         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23777
23778         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23779
23780         * expect.c: The wait.h header is not located in the sys directory on
23781         VxWorks when using RTPs.
23782
23783 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23784
23785         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23786
23787         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23788
23789         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23790         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23791         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23792         g-soccon-freebsd.ads: Add new constants:
23793          IP_MULTICAST_IF
23794          SO_RCVTIMEO/SO_SNDTIMEO
23795          IOV_MAX
23796
23797         * gen-soccon.c:
23798         Move all target-specific file inclusions and macro definitions to
23799         gsocket.h, in order to ensure that any C code in socket.c will see a
23800         set of constants that is consistent with the contents of g-soccon.ads.
23801
23802         * gsocket.h: Code imported from gen-soccon.c:
23803         Move all target-specific file inclusions and macro definitions to
23804         gsocket.h, in order to ensure that any C code in socket.c will see a set
23805         of constants that is consistent with the contents of g-soccon.ads.
23806         This change also makes gen-soccon self-contained (removing dependencies
23807         upon GCC internal headers).
23808
23809         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23810         iovecs at a time.
23811         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23812
23813         * socket.c: Minor reformatting.
23814
23815 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23816             Thomas Quinot  <quinot@adacore.com>
23817
23818         * fname-sf.adb, mlib-tgt.ads,
23819         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23820         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23821         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23822         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23823         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23824         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23825         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23826         makegpr.adb: Remove redundant use_clauses.
23827
23828 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23829
23830         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23831         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23832         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23833         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23834         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23835         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23836         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23837         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23838         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23839         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23840         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23841         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23842         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23843         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23844         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23845         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23846         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23847         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23848         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23849         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23850         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23851         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23852         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23853         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23854         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23855         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23856         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23857         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23858         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23859         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23860         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23861         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23862         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23863         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23864         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23865         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23866         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23867         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23868         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23869         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23870         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23871         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23872         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23873         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23874         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23875         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23876         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23877         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23878         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23879         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23880         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23881         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23882         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23883         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23884         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23885         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23886         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23887         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23888         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23889         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23890         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23891         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23892         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23893         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23894         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23895         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23896         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23897         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23898         and always use the no parameter form for consistency.
23899
23900         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23901
23902 2005-09-01  Robert Dewar  <dewar@adacore.com>
23903
23904         * binde.adb: Minor reformatting
23905         (Find_Elab_Order): Output warning if -p used with static elab order
23906
23907 2005-09-01  Robert Dewar  <dewar@adacore.com>
23908
23909         * checks.adb (Check_Needed): New procedure, deals with removing checks
23910         based on analysis of short-circuited forms. Also generates warnings for
23911         improper use of non-short-circuited forms.
23912         Code clean ups.
23913
23914 2005-09-01  Robert Dewar  <dewar@adacore.com>
23915
23916         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23917         with 'Valid tests.
23918
23919 2005-09-01  Robert Dewar  <dewar@adacore.com>
23920
23921         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23922         spec.
23923         Implement new insertion char < (conditional warning)
23924         * errutil.adb, erroutc.adb: Implement new insertion char <
23925         (conditional warning).
23926         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23927         (Error_Msg_Warn): New variable for < insertion char.
23928         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23929         warning).
23930         (Check_For_Source): Change value of Source_Id only after the current
23931         source has been dealt with.
23932
23933 2005-09-01  Robert Dewar  <dewar@adacore.com>
23934             Doug Rupp  <rupp@adacore.com>
23935
23936         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23937         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23938         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23939         (Valid_D, Valid_F, Valid_G): New functions
23940
23941 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23942             Hristian Kirtchev  <kirtchev@adacore.com>
23943             Javier Miranda  <miranda@adacore.com>
23944
23945         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23946         from object notation, the original node is unanalyzed and carries no
23947         semantic information, so that accessiblity checks must be performed on
23948         the type of the actual itself.
23949         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23950         compatibility with Build_Protected_Sub_Specification.
23951         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23952         overloaded primitives.
23953         (Register_Interface_DT_Entry): Use the new name of the formal
23954         the the calls to Expand_Interface_Thunk
23955
23956         * exp_dbug.ads: Augment comments on encoding of protected types to
23957         include the generation of dispatching subprograms when the type
23958         implements at least one interface.
23959
23960         * lib.ads: Extend information in Load_Stack to include whether a given
23961         load comes from a Limited_With_Clause.
23962
23963         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23964         whether a potential circularity is harmless, because it includes units
23965         loaded through a limited_with clause. Extends previous treatment which
23966         did not handle properly arbitrary combinations of limited and
23967         non-limited clauses.
23968
23969 2005-09-01  Nicolas Setton  <setton@adacore.com>
23970
23971         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23972         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23973         typ___XB_lowerbound__upperbound.
23974
23975 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23976
23977         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23978         dummy access formal for RACW/RAS TypeCode TSS.
23979         (Build_TypeCode_Call): Do not generate dummy null access actual for
23980         calls to the TypeCode TSS.
23981
23982 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23983
23984         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23985         fully qualified name, to distinguish instances with the same local name.
23986
23987         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23988         fully qualified.
23989
23990 2005-09-01  Robert Dewar  <dewar@adacore.com>
23991
23992         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23993         packed arrays.
23994
23995 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
23996
23997         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23998         (Free): New deallocation procedure for filter elements
23999         (Close): Deallocate any existing filter for the concerned connection
24000
24001 2005-09-01  Laurent Pautet  <pautet@adacore.com>
24002
24003         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24004         position set is provided, we compute one in order to reduce the maximum
24005         length of the keys.  This computation first selects a character
24006         position between 1 and the minimum length of the keys in order to
24007         avoid reducing one of the keys to an empty string.
24008         (Initialize, Compute): When the ratio V to K is too low, the algorithm
24009         does not converge. The initialization procedure now comes with a
24010         maximum number of iterations such that when exceeded, an exception is
24011         raised in Compute. The user can initialize this ratio to another value
24012         and try again
24013         Reformating and updated headers.
24014
24015 2005-09-01  Javier Miranda  <miranda@adacore.com>
24016
24017         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24018         that given an entity T creates and returns an Itype that duplicates the
24019         contents of T. The returned Itype has the null-exclusion
24020         attribute set to True, and its Etype attribute references T
24021         to keep the association between the two entities.
24022         Update copyright notice
24023
24024         * sem_aggr.adb (Check_Can_Never_Be_Null,
24025         Aggregate_Constraint_Checks, Resolve_Aggregate,
24026         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24027
24028         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24029
24030 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
24031             Robert Dewar  <dewar@adacore.com>
24032             Hristian Kirtchev  <kirtchev@adacore.com>
24033
24034         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24035         Result_Definition.
24036
24037         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24038         function specs.
24039         Call Set_Result_Definition instead of Set_Subtype_Mark.
24040         (P_Subprogram_Specification): Add parsing of anonymous access result
24041         plus null exclusions. Call Set_Result_Definition instead of
24042         Set_Subtype_Mark.
24043
24044         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24045         (P_Access_Type_Definition): Add parsing for an anonymous access result
24046         subtype, plus parsing for null exclusions. Call Set_Result_Definition
24047         instead of Set_Subtype_Mark.
24048
24049         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24050         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24051         (Result_Definition): New function for N_Function_Specifications.
24052         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24053         N_Function_Specification.
24054         (Set_Null_Exclusion_Present): Allow this flag for
24055         N_Function_Specification.
24056         (Set_Result_Definition): New procedure for N_Function_Specifications.
24057         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24058         and N_Function_Specification.
24059
24060         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24061         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24062         Add support for LIMITED NEW for Ada 2005 AI-419
24063         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24064         syntax for anonymous access results.
24065         Replace Subtype_Mark field by Result_Definition in
24066         N_Function_Specification and N_Access_Definition specs.
24067         Add Null_Exclusion_Present to spec of N_Function_Specification.
24068         (Result_Definition): New function for N_Function_Specification and
24069         N_Access_Function_Definition.
24070         (Set_Result_Definition): New procedure for N_Function_Specification and
24071         N_Access_Function_Definition.
24072
24073         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24074         Result_Definition for cases of N_Access_Function_Definition and
24075         N_Function_Specification.
24076         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24077
24078 2005-09-01  Vincent Celier  <celier@adacore.com>
24079
24080         * lib-writ.adb: Update Copyright notice
24081         (Write_With_Lines): On platforms where file names are case-insensitive,
24082         record the file names in lower case.
24083         (Write_ALI): For D lines, on platforms where file names are
24084         case-insensitive, record the file names in lower case.
24085
24086 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24087             Emmanuel Briot  <briot@adacore.com>
24088
24089         * lib-xref.adb (Output_Overridden_Op): Display information on
24090         overridden operation.
24091
24092         * lib-xref.ads: Add documentation on overridden operations.
24093
24094         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24095         information.
24096
24097         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24098         overriding entity information.
24099
24100 2005-09-01  Vincent Celier  <celier@adacore.com>
24101
24102         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24103         including those that are inherited.
24104
24105 2005-09-01  Robert Dewar  <dewar@adacore.com>
24106
24107         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24108
24109         * par-prag.adb: Implement new pragma Debug_Policy
24110
24111         * sem_prag.adb Implement new pragma Debug_Policy
24112         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24113         Component_Size attribute specification. Give warning for ignored pragma
24114         Pack.
24115
24116         * snames.h, snames.ads, snames.adb: Introduce entries in
24117         Preset_Names for Name_Disp_Asynchronous_Select,
24118         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24119         Name_Disp_Timed_Select.
24120         New pragma Debug_Policy
24121
24122         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24123         explicitly.
24124         Switch -gnata also sets Debug_Pragmas_Enabled
24125
24126         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24127         handle an explicit -gnata when compiling predefined files.
24128
24129 2005-09-01  Vincent Celier  <celier@adacore.com>
24130
24131         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24132         directories of projects that have no Ada sources.
24133
24134 2005-09-01  Robert Dewar  <dewar@adacore.com>
24135
24136         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24137         (makes a difference for wide characters)
24138
24139         * widechar.adb, widechar.ads:
24140         Add Wide_Char_Byte_Count feature to count chars vs bytes
24141
24142 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24143             Ed Schonberg  <schonberg@adacore.com>
24144             Robert Dewar  <dewar@adacore.com>
24145
24146         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24147         'Address attribute reference with an overloaded prefix, use the
24148         location of the prefix (not the location of the attribute reference) as
24149         the error location.
24150         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24151         a function renaming thereof, is a valid prefix for 'Size (where it is
24152         intepreted as a function call).
24153         (Statically_Denotes_Entity): New predicate to determine whether the
24154         prefix of an array attribute can be considered static.
24155
24156         PR ada/9087
24157         (Eval_Attr): Fix failure to evaluate Component_Size for
24158         unconstrained arrays (resulted in wrong value in packed case, since
24159         back end cannot handle this case)
24160
24161 2005-09-01  Robert Dewar  <dewar@adacore.com>
24162
24163         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24164         error msgs for most common cases.
24165         Use new errout insertion char < (conditional warning)
24166
24167 2005-09-01  Javier Miranda  <miranda@adacore.com>
24168             Ed Schonberg  <schonberg@adacore.com>
24169
24170         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24171         become local to the whole package.
24172         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24173         the package was already analyzed the new algorithm "replaces" the
24174         real entities by the shadow ones. This is required to ensure that
24175         the order of these entities in the homonym chains does not change;
24176         otherwise we can have undefined references at linking time because
24177         in case of conflicts the external name of the entities will have
24178         a suffix that depends on the order of the entities in the chain.
24179         (Remove_Limited_With_Clause): Complementary code that completes the
24180         new algorithm and replaces the shadow entities by the real ones.
24181         (Install_Limited_Withed_Unit): When unchaining entities before the
24182         installation of the shadow entities, only regular entities of the
24183         public part must be taken into account. This is required to
24184         keep this routine in synch with the work done by Remove_Limited_
24185         With_Clause
24186         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24187         even if unit is analyzed, because the analysis of the unit is
24188         idempotent in any case, and the limited view of the unit may have to
24189         be installed for proper visibility.
24190         (Expand_Limited_With_Clause): Even if the unit in the implicit
24191         with_clause has been analyzed already, a limited view of the package
24192         must be built for the current context, if it does not exist yet.
24193
24194 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24195             Javier Miranda  <miranda@adacore.com>
24196             Gary Dismukes  <dismukes@adacore.com>
24197
24198         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24199         defining entity for the instance body, make a new defining identifier
24200         rather than copying the entity of the spec, to prevent accidental
24201         sharing of the entity list.
24202         (Check_Private_View): When exchanging views of private types, build the
24203         list of exchanged views as a stack, to ensure that on exit the exchanges
24204         are undone in the proper order.
24205         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24206         Restore the compilation environment in case of instantiation_error.
24207         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24208         for an anonymous access result.
24209         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24210         (Formal_Entity): Handle properly the case of a formal package that
24211         denotes a generic package renaming.
24212
24213 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24214
24215         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24216         clause if the array aggregate is surrounded by parentheses.
24217
24218 2005-09-01  Cyrille Comar  <comar@adacore.com>
24219             Gary Dismukes  <dismukes@adacore.com>
24220             Ed Schonberg  <schonberg@adacore.com>
24221             Javier Miranda  <miranda@adacore.com>
24222
24223         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24224         underlying type
24225         to check if a type is Constrained in cases related to code generation
24226         (rather than semantic checking) since otherwise we do not generate
24227         similar code for mutable private types depending if their
24228         discriminants are visible or not.
24229         (Check_Abstract_Overriding): Do not complain about failure to override
24230         the primitive operations used in dispatching selects since they will
24231         always be overriden at the freeze point of the type.
24232         (Access_Definition): Separate out handling for resetting the scope
24233         of an anonymous access function result type. Retrieve the scope
24234         of the associated function rather than using Current_Scope, which
24235         does not have a consistent value (depends on whether we're in the
24236         middle of analyzing formal parameters). Add ??? comment about
24237         finding a cleaner way to handle the special cases of scope setting.
24238         (Process_Incomplete_Dependents): A protected operation is never a
24239         dispatching operation (only its wrapper may be).
24240         (Build_Derived_Record_Type): In case of tagged private types that
24241         implement interfaces add derivation of predefined primitive
24242         operations.
24243         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24244         by two parameters that are used in case of derivation from abstract
24245         interface types: No_Predefined_Prims is used to avoid the derivation
24246         of predefined primitives from the interface, and Predefined
24247         Prims_Only is used to complete the derivation predefined primitives
24248         in case of private tagged types implementing interfaces.
24249         Fix typo in comments
24250         (Find_Interface_In_Descendant): Protect the frontend against
24251         wrong code with large circularity chains.
24252         (Is_Private_Overriding): Add support for entities overriding interface
24253         subprograms. The test failed because Entities associated with overriden
24254         interface subprograms are always marked as hidden (and used to build
24255         the secondary dispatch table); in this case the overriden entity is
24256         available through the field abstract_interface_alias (cf. override_
24257         dispatching_operation)
24258         (Access_Definition): Set the scope of the type to Current_Scope for the
24259         case of a function with an anonymous access result type.
24260         (Access_Subprogram_Declaration): Handle creation of the type entity for
24261         an access-to-function type with an anonymous access result.
24262         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24263         in handling for N_Access_Function_Definition.
24264         (Analyze_Subtype_Declaration): Modify the text of error message.
24265         (Derived_Type_Declaration): Modify the text of error message.
24266         (Process_Subtype): Modify the text of error message plus cleanup
24267         of one redundant error message.
24268         (Analyze_Component_Declaration): Code cleanup.
24269         (Analyze_Object_Declaration): Code cleanup.
24270         (Analyze_Subtype_Declaration): Propagate the null-exclusion
24271         attribute in case of access types. Code cleanup.
24272         (Array_Type_Declaration): Code cleanup.
24273         (Process_Discriminants): Create the new null-excluding itype
24274         if required. Code cleanup.
24275         (Process_Subtype): Create the new null-excluding itype if
24276         required. Code cleanup.
24277         (Build_Derived_Record_Type): Code cleanup to avoid calling
24278         twice the subprogram derive_subprograms in case of private
24279         types that implement interfaces. In this particular case the
24280         subprogram Complete_Subprograms_Derivation already does the
24281         job associated with the second call.
24282
24283         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24284         conversion to the full view when generating an operation for a
24285         discriminant whose type may currently be private.
24286
24287 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24288             Javier Miranda  <miranda@adacore.com>
24289
24290         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24291         V (Obj.F), the rewriting does not involve the indexed component, but
24292         only the selected component itself.
24293         Do not apply the transformation if the analyzed node is an actual of a
24294         call to another subprogram.
24295         (Complete_Object_Operation): Retain the entity of the
24296         dispatching operation in the selector of the rewritten node. The
24297         entity will be used in the expansion of dispatching selects.
24298         (Analyze_One_Call): Improve location of the error message associated
24299         with interface.
24300         (Analyze_Selected_Component): No need to resolve prefix when it is a
24301         function call, resolution is done when parent node is resolved, as
24302         usual.
24303         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24304         when attempting to resolve a call transformed from its object notation.
24305         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24306         of the argument list for each interpretation of the operation.
24307         (Try_Object_Operation): The designated type of an access parameter may
24308         be an incomplete type obtained through a limited_with clause, in which
24309         case the primitive operations of the type are retrieved from its full
24310         view.
24311         (Analyze_Call): If this is an indirect call, and the return type of the
24312         access_to_subprogram is incomplete, use its full view if available.
24313
24314 2005-09-01  Javier Miranda  <miranda@adacore.com>
24315             Gary Dismukes  <dismukes@adacore.com>
24316
24317         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24318         access types the null-exclusion and access-to-constant attributes must
24319         also match.
24320         (Analyze_Return_Statement): When the result type is an anonymous access
24321         type, apply a conversion of the return expression to the access type
24322         to ensure that appropriate accessibility checks are performed.
24323         (Analyze_Return_Type): For the case of an anonymous access result type,
24324         generate the Itype and set Is_Local_Anonymous_Access on the type.
24325         Add ??? placeholder for check to disallow returning a limited object
24326         in Ada 2005 unless it's an aggregate or a result of a function call.
24327         Change calls from Subtype_Mark to Result_Definition.
24328         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24329         Result_Definition in call to Make_Function_Specification.
24330         (Build_Body_To_Inline): Change Set_Subtype_Mark to
24331         Set_Result_Definition.
24332         (Make_Inequality_Operator): Change formal Subtype_Mark to
24333         Result_Definition in call to Make_Function_Specification.
24334         (Process_Formals): Create the new null-excluding itype if required.
24335         (New_Overloaded_Entity): For an entity overriding an interface primitive
24336         check if the entity also covers other abstract subprograms in the same
24337         scope. This is required to handle the general case, that is, overriding
24338         other interface primitives and overriding abstract subprograms inherited
24339         from some abstract ancestor type.
24340         (New_Overloaded_Entity): For an overriding entity that comes from
24341         source, note the operation that it overrides.
24342         (Check_Conformance, Type_Conformant): Addition of one new formal
24343         to skip controlling formals in the analysis. This is used to
24344         handle overloading of abstract interfaces.
24345         (Base_Types_Match): Add missing case for types imported from
24346         limited-with clauses
24347         (New_Overloaded_Entity): Add barrier to protect the use of
24348         the "alias" attribute.
24349
24350 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24351
24352         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24353         verify that the procedure and the entry are mode conformant.
24354         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24355         as a different operator, which is often a cut-and-paste error.
24356
24357 2005-09-01  Javier Miranda  <miranda@adacore.com>
24358             Ed Schonberg  <schonberg@adacore.com>
24359
24360         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24361         used in controlling parameters exclude null because it is necessary to
24362         read the tag to dispatch, and null has no tag.
24363         (Override_Dispatching_Operation): If the previous operation is inherited
24364         from an interface, it becomes hidden  and does not participate in later
24365         name resolution.
24366
24367 2005-09-01  Javier Miranda  <miranda@adacore.com>
24368             Ed Schonberg  <schonberg@adacore.com>
24369             Gary Dismukes  <dismukes@adacore.com>
24370
24371         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24372         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24373         the expander will generate the corresponding run-time check to evaluate
24374         the expression.
24375         (Resolve_Call): Check for legal type of procedure name or prefix that
24376         appears as a trigger in a triggering alternative.
24377         (Valid_Conversion): If expression is ambiguous and the context involves
24378         an extension of System, remove System.Address interpretations.
24379         (Resolve_Qualified_Expression): Reject the case of a specific-type
24380         qualification applied to a class-wide argument. Enhance comment
24381         to explain checking of Original_Node.
24382         (Resolve_Type_Conversion): The location of the error message was not
24383         general enough to handle the general case and hence it has been removed.
24384         In addition, this patch improves the text of the message.
24385         (Resolve_Type_Conversion): Add missing support for access to interface
24386         types.
24387         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24388         do not expand if the expression is the actual in a call, because proper
24389         expansion will take place when the call itself is expanded.
24390         (Resolve_Allocator): If the context is an unchecked conversion, the
24391         allocator inherits its storage pool, if any, from the target type of
24392         the conversion.
24393
24394 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24395             Javier Miranda  <miranda@adacore.com>
24396
24397         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24398         inherited interface operation that has an implementation, use the
24399         implementation to avoid spurious ambiguities.
24400         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24401         use the Corresponding_Record_Typ attribute to look for the interface
24402         because it is set by the expander (and hence it is not always
24403         available). For this reason we traverse the list of interfaces
24404         (available in the parent of the concurrent type).
24405         (Interface_Present_In_Ancestor): Handle entities from the limited view
24406
24407 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24408
24409         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24410         from the list of required components.
24411         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24412         primitive procedure of a limited interface with a controlling first
24413         parameter.
24414         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24415         of an entry.
24416         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24417         capture if it is generated in the second operand of a short-circuit
24418         operation.
24419         Do not capture values for variables with address clauses.
24420         (Is_Object_Reference): Treat a function call as an object reference only
24421         if its type is not Standard_Void_Type.
24422
24423 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24424
24425         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24426         to a variable that is statically known to be constant.
24427
24428 2005-09-01  Geert Bosch  <bosch@adacore.com>
24429             Robert Dewar  <dewar@adacore.com>
24430
24431         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24432         (VAXGF_Safe_First): Idem.
24433
24434 2005-09-01  Robert Dewar  <dewar@adacore.com>
24435             Arnaud Charlet  <charlet@adacore.com>
24436
24437         * g-dirope.ads: Minor reformatting
24438         Document that bounds of result of Base_Name match the input index
24439         positions.
24440         Add documentation on environment variable syntax for Expand_Path
24441
24442         * gnat_ugn.texi: Update documentation to include mention of -m switches
24443         Document new treatment of wide characters in max line length
24444         style check.
24445         Remove -gnatL/-gnatZ switches, no longer used.
24446         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24447         of -gnata switch.
24448
24449         * gnat_rm.texi: Add doc for two argument form of pragma
24450         Float_Representation.
24451         Add documentation for pragma No_Strict_Aliasing
24452         Add note that explicit component clause overrides pragma Pack.
24453         Add documentation of pragma Debug_Policy
24454
24455 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24456
24457         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24458         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24459         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24460         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24461         draft (Draft 13, August 2005) of Ada Amendment 1.
24462
24463 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24464
24465         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24466         Note that the platform-specific version of g-soccon.ads for VMS is now
24467         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24468         really is a package spec).
24469         Replace s-taspri-linux.ads by s-taspri-posix.ads
24470         Remove references to s-mastop-x86.adb
24471
24472         * system-vxworks-xscale.ads: Removed, no longer used.
24473         * s-vxwork-xscale.ads: Removed, no longer used.
24474
24475 2005-09-01  Robert Dewar  <dewar@adacore.com>
24476
24477         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24478         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24479         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24480         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24481         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24482         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24483         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24484         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24485         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24486         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24487         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24488         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24489         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24490         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24491         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24492         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24493         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24494         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24495         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24496         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24497         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24498
24499 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24500
24501         PR ada/23187
24502         * adaint.c
24503         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24504
24505 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24506             Doug Rupp  <rupp@adacore.com>
24507
24508         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24509         when needed.
24510         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24511         this code in the GNAT run-time.
24512
24513         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24514
24515         PR ada/21053
24516         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24517         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24518
24519         (__gnat_inside_elab_final_code): Moved here from
24520         Standard_Library and only defined for the compiler.
24521         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24522         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24523         using RTPs because directly vectored Interrupt routines are not
24524         supported on this configuration.
24525         (getpid): Do not redefine this function on VxWorks when using RTPs
24526         because this primitive is well supported by the RTP libraries.
24527         (copy_msg): Correct the code that checks for buffer overflow.
24528         Discovered during code reading.
24529
24530 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24531
24532         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24533         a library level mutable variable with an initializer, tell
24534         build_allocator to ignore the initializer's size. It may not be large
24535         enough for all the values that might be assigned to the variable later
24536         on.
24537
24538 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24539             Eric Botcazou  <ebotcazou@adacore.com>
24540
24541         * trans.c: Protect < in error msg with quote
24542         Replace GCC_ZCX by Back_End_Exceptions.
24543         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24544         has been sufficiently aligned in the record.
24545
24546 2005-08-15  James E. Wilson  <wilson@specifix.com>
24547
24548         * system-linux-alpha.ads: Change ia64 to alpha.
24549
24550 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24551
24552         * decl.c, utils.c: Fix comment typos.
24553
24554 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24555
24556         * decl.c, init.c, initialize.c: Fix comment typos.
24557
24558 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24559
24560         Make CONSTRUCTOR use VEC to store initializers.
24561         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24562         CONSTRUCTOR_ELTS.
24563         * trans.c (extract_values): Likewise.
24564         * utils.c (convert, remove_conversions): Likewise.
24565         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24566         gnat_build_constructor): Likewise.
24567
24568 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24569
24570         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24571         DECL_SECTION_NAME.
24572         (compare_field_bitpos): Likewise.
24573
24574 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24575
24576         * utils.c (create_var_decl): Only set DECL_COMMON on
24577         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24578         VAR_OR_FUNCTION_DECL_P.
24579
24580 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24581
24582         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24583         removed.
24584
24585 2005-07-07  Pascal Obry  <obry@adacore.com>
24586
24587         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24588         returned type on Windows.
24589
24590         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24591         routine.
24592
24593         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24594         exception in this case.
24595         Simplify the code as "Image (Image'Range)" = "Image".
24596
24597 2005-07-07  Vincent Celier  <celier@adacore.com>
24598
24599         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24600         the destructor/constructor attributes for <lib>final/<lib>init.
24601
24602         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24603
24604 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24605
24606         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24607         type if the parameter is not passed by copy but reference by default.
24608
24609 2005-07-07  Javier Miranda  <miranda@adacore.com>
24610
24611         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24612         Reimplementation of the support for abstract interface types in order
24613         to leave the code more clear and easy to maintain.
24614
24615         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24616         abstract interface types in order to leave the code clearer and easier
24617         to maintain.
24618
24619         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24620         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24621         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24622         appropriate entry of the secondary dispatch table.
24623         (Make_DT): Add code to inherit the secondary dispatch tables of
24624         the ancestors.
24625
24626         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24627         implementing both functionalities by means of a common routine, each
24628         routine has its own code.
24629
24630 2005-07-07  Javier Miranda  <miranda@adacore.com>
24631
24632         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24633
24634         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24635         types:
24636         --
24637           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24638         --
24639
24640         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24641         use of tag incomplete types.
24642
24643         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24644         give support to tagged incomplete types.
24645
24646         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24647         expression is a discriminant reference and its type is private, as can
24648         happen within a stream operation for a mutable record, use the full
24649         view of the type to resolve the case alternatives.
24650         (Analyze_Assignment): Check wrong dereference of incomplete types.
24651
24652         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24653         types.
24654
24655         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24656         incomplete types.
24657
24658         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24659         N_Incomplete_Type_Declaration nodes.
24660
24661         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24662         Tag_Present to give support to tagged incomplete types:
24663         --
24664           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24665         --
24666
24667 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24668
24669         PR ada/22301
24670         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24671         definitions for the Unwind wrappers in the compiler case.
24672
24673 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24674             Javier Miranda  <miranda@adacore.com>
24675
24676         * par-load.adb (Load): If a child unit is loaded through a limited_with
24677         clause, each parent must be loaded as a limited unit as well.
24678
24679         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24680         Check_Withed_Unit. Return true if there is a previous with_clause for
24681         this unit, whether limited or not.
24682         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24683         the current unit.
24684         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24685         _withed_unit that checks if some package installed through normal with
24686         clauses has a renaming declaration of package whose limited-view is
24687         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24688         of the current Draft document for Ada 2005.
24689         (Analyze_Context): Complete the list of compilation units that
24690         are allowed to contain limited-with clauses. It also contains
24691         checks that were previously done by Install_Limited_Context_Clauses.
24692         This makes the code more clear and easy to maintain.
24693         (Expand_Limited_With_Clause) It is now a local subprogram of
24694         Install_Limited_Context_Clauses, and contains the code that adds
24695         the implicit limited-with clauses for parents of child units.
24696         This functionality was prevously done by Analyze_Context.
24697
24698         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24699         incomplete type.
24700
24701         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24702         been erroneously named in a limited-with clause of its own context.
24703         In this case the error has been previously notified by Analyze_Context.
24704
24705 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24706
24707         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24708         generic package that contains local declarations with the same name.
24709         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24710
24711 2005-07-07  Bernard Banner  <banner@adacore.com>
24712
24713         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24714         ia64 platform only on platforms that you the GCC unwind library
24715         rather than the system unwind library.
24716
24717 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24718
24719         * expect.c: Minor reformatting
24720
24721 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24722
24723         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24724         --no-separate-is
24725
24726         * gnat_ugn.texi: Add description for new gnatpp option
24727         (--no-separate-is)
24728
24729 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24730
24731         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24732         (Get_Command_Output): New subprogram to launch a process and get its
24733         standard output as a string.
24734
24735 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24736             Olivier Hainque  <hainque@adacore.com>
24737
24738         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24739         fetch a code-range descriptor associated with the machine state. On
24740         failure set the machine state's PC to 0; on success, pass the
24741         descriptor to exc_virtual_unwind.
24742
24743         * init.c (Tru64 section): New function __gnat_set_code_loc.
24744
24745 2005-07-04  Vincent Celier  <celier@adacore.com>
24746
24747         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24748         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24749         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24750         Remove all auto-initialization code, as this is now done through the
24751         constructor mechanism.
24752
24753         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24754         __gnat_sals_init_using_constructors): New functions.
24755
24756         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24757         Linker_Constructor and Linker_Destructor when switch -a is used.
24758
24759         * bindusg.adb: Add line for new switch -a
24760
24761         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24762         (Gnatbind): When switch -a is used, check if it is allowed
24763
24764         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24765
24766 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24767
24768         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24769         This prevents us from hitting a limitation during the debug info
24770         generation when using stabs.
24771         (Prims_Ptr): Likewise.
24772
24773 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24774             Ed Schonberg  <schonberg@adacore.com>
24775             Javier Miranda  <miranda@adacore.com>
24776
24777         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24778         N_Object_Declaration, only perform the checks if the Object_Definition
24779         is not an Access_Definition.
24780
24781         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24782         where the parent of an the access definition is an N_Object_Declaration
24783         when determining the Associated_Node_For_Itype and scope of an
24784         anonymous access-to-subprogram type.
24785
24786         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24787         Corresponding_Spec on the body created for a null procedure. Add ???
24788         comment. Remove New_Copy_Tree call on body argument to
24789         Set_Body_To_Inline.
24790
24791         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24792         discriminants, use the type of the actual as well, because the
24793         discriminants may be read by the called subprogram.
24794
24795         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24796         access type we do not need to handle non-limited views.
24797         (Build_Derived_Record_Type): Additional check to check that in case of
24798         private types, interfaces are only allowed in private extensions.
24799
24800 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24801
24802         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24803         <Pragma_Linker_Destructor>: Likewise.
24804
24805         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24806         Pragma_Linker_Destructor.
24807
24808         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24809         ATTR_LINK_DESTRUCTOR.
24810         (static_ctors, static_dtors): New variables.
24811
24812         * misc.c (gnat_expand_body): Output current function as constructor
24813         and destructor if requested.
24814
24815         * par-prag.adb: Add processing for pragma Linker_Constructor and
24816         Linker_Destructor.
24817
24818         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24819         extracted from Check_Interrupt_Or_Attach_Handler.
24820         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24821         Implement pragma Linker_Constructor and Linker_Destructor with the
24822         help of Find_Unique_Parameterless_Procedure.
24823         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24824
24825         * snames.h, snames.ads, snames.adb:
24826         Add Name_Linker_Constructor and Name_Linker_Destructor.
24827         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24828         * snames.adb: Remove Name_Alias.
24829
24830         * trans.c: Include cgraph.h.
24831         (build_global_cdtor): New function.
24832         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24833         needed.
24834         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24835         of objects too.
24836         (addressable_p) <COMPONENT_REF>: Unconditionally test
24837         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24838
24839         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24840         variable if it is external.
24841
24842         (static_ctors, static_dtors): New global variables.
24843         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24844         <ATTR_LINK_DESTRUCTOR>: Likewise.
24845         (end_subprog_body): Chain function as constructor and destructor
24846         if requested.
24847
24848         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24849         Remove_Side_Effects with Variable_Ref set to true.
24850         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24851         for non-scalar types even if Variable_Ref is true and for class-wide
24852         expressions.
24853
24854 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24855
24856         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24857         to prevent spurious warnings.
24858
24859 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24860
24861         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24862         Itypes. Itypes are really unexpected there.
24863         (Build_TypeCode_Function): Generalise special processing for Itypes to
24864         handle the case of numeric implicit base types as well as enumerated
24865         ones.
24866
24867 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24868
24869         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24870         controlled, indicate the expected type of the dereference that is
24871         created for the call to Deep_Finalize, to prevent spurious errors when
24872         the designated type is private and completed with a derivation from
24873         another private type.
24874
24875 2005-07-04  Vincent Celier  <celier@adacore.com>
24876
24877         * make.adb (Change_To_Object_Directory): When unable to change the
24878         current dir to the object directory, output the full path of the
24879         directory.
24880
24881 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24882
24883         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24884
24885         * indepsw-linux.adb: Replace by...
24886
24887         * indepsw-gnu.adb: ...this new file
24888
24889 2005-07-04  Vincent Celier  <celier@adacore.com>
24890
24891         * mlib-prj.adb (Auto_Initialize): New constant String
24892         (SALs_Use_Constructors): New Boolean function
24893         (Build_Library): Call gnatbind with Auto_Initialize switch when
24894         SALs_Use_Constructors returns True.
24895
24896         * mlib-tgt.ads: Minor reformatting
24897
24898         * mlib-utl.ads: Minor reformatting
24899
24900         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24901
24902 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24903
24904         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24905         single protected declarations can have an interface list.
24906         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24907         with seriously malformed entry declarations, and lead to compilation
24908         abandoned messages.
24909
24910 2005-07-04  Javier Miranda  <miranda@adacore.com>
24911
24912         * par-load.adb: Load the context items in two rounds.
24913
24914 2005-07-04  Robert Dewar  <dewar@adacore.com>
24915
24916         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24917
24918 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24919             Javier Miranda  <miranda@adacore.com>
24920
24921         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24922         type extension needs a limited view.
24923         Remove previous restriction on private types available through the
24924         limited-view (only tagged private types were previously allowed).
24925         (Install_Withed_Unit): In the code that implements the
24926         legality rule given in AI-377, exclude a child unit with the name
24927         Standard, because it is a homonym of the Standard environment package.
24928
24929 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24930
24931         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24932         overloaded function call, carry interpretations from the original tree
24933         to the copy.
24934
24935 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24936
24937         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24938         types check whether some designated type is a limited view, and use
24939         the non-limited view if available.
24940
24941 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24942
24943         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24944         constraint of full view of a private view T1 if present, when T2 is a
24945         discriminated full view.
24946
24947 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24948
24949         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24950         actual that is a view conversion of a bit packed array reference.
24951
24952 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24953
24954         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24955         present before checking whether an interface type covers a synchronized
24956         type.
24957
24958 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24959
24960         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24961         whose prefix is an implicit dereference is an object reference. Removes
24962         spurious errors when compiling with -gnatc.
24963
24964 2005-07-04  Robert Dewar  <dewar@adacore.com>
24965
24966         PR ada/22039
24967         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24968
24969 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24970
24971         * tracebak.c: Enable tracebacks on ia64 platforms
24972
24973 2005-07-04  Vincent Celier  <celier@adacore.com>
24974
24975         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24976         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24977         the -L or -n switches.
24978
24979 2005-07-04  Vincent Celier  <celier@adacore.com>
24980
24981         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24982         correctly computed and the main project data is not modified while
24983         doing so.
24984         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24985         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24986         c++linker as this does not work on some platforms.
24987
24988 2005-07-04  Matthew Heaney  <heaney@adacore.com>
24989
24990         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24991         was changed.
24992         * a-coinve.adb: Perform constraint checks explicitly.
24993
24994 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24995             Thomas Quinot  <quinot@adacore.com>
24996
24997         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24998         new target gen-soccon.
24999
25000 2005-07-04  Robert Dewar  <dewar@adacore.com>
25001
25002         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25003
25004 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25005
25006         * g-socket.ads (Check_Selector): Minor rewording of comment.
25007
25008 2005-07-04  Vincent Celier  <celier@adacore.com>
25009
25010         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25011
25012 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25013
25014         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25015
25016 2005-07-04  Sergey Rybin  <rybin@adacore.com>
25017
25018         * gnat_ugn.texi: Add description of --eol gnatpp option
25019
25020 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
25021             Thomas Quinot  <quinot@adacore.com>
25022
25023         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25024         if the user wants all calls of a subprogram to be flagged,
25025         independently of whether they are made from within the same unit or
25026         another unit.
25027         Mention restriction for pragma Linker_Alias on some platforms.
25028         Document pragma Linker_Constructor and Linker_Destructor.
25029         Rewrite documentation of Weak_External, Linker_Section and
25030         Linker_Alias pragmas.
25031
25032 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
25033
25034         * s-stausa.ads, s-stausa.adb: New files.
25035
25036 2005-06-30  Kelley Cook
25037
25038         * all files:  Update FSF address in copyright headers.
25039         * gen-soccon.co (main): Output new FSF address in generated files.
25040
25041 2005-06-28  Paul Brook  <paul@codesourcery.com>
25042
25043         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25044
25045 2005-06-14  Olivier Hainque  <hainque@adacore.com>
25046             Eric Botcazou  <ebotcazou@adacore.com>
25047
25048         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25049         exc_unwind, now that we are generating proper .debug_frame output for
25050         that target.
25051
25052         * tracebak.c: Remove the mips-irix section, as we are now using the
25053         s-mastop based unwinder again.
25054         Under SPARC/Solaris, take into account the stack bias to compute the
25055         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
25056         ABI.
25057
25058 2005-06-14  Doug Rupp  <rupp@adacore.com>
25059
25060         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25061
25062         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25063
25064 2005-06-14  Pascal Obry  <obry@adacore.com>
25065
25066         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25067         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25068         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25069         package name).
25070
25071         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25072         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25073         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25074         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25075         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25076         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25077         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25078         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25079         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25080         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25081         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25082         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25083         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25084         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25085         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25086         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25087         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25088         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25089         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25090         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25091         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25092         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25093         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25094         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25095         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25096         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25097         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25098         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25099         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25100         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25101         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25102         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25103         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25104         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25105         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25106         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25107         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25108         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25109         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25110         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25111         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25112         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25113         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25114         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25115         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25116         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25117         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25118         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25119         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25120         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25121         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25122         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25123         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25124         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25125         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25126         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25127         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25128         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25129         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25130         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25131         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25132         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25133         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25134         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25135         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25136         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25137         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25138         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25139         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25140         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25141         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25142         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25143         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25144         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25145         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25146         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25147         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25148         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25149         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25150         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25151         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25152         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25153         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25154         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25155         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25156         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25157         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25158         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25159         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25160         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25161         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25162         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25163         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25164         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25165         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25166         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25167         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25168         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25169         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25170         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25171         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25172         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25173         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25174         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25175         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25176         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25177         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25178         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25179         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25180         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25181         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25182         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25183         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25184         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25185         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25186         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25187         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25188         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25189         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25190         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25191         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25192         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25193         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25194         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25195         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25196         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25197         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25198         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25199         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25200         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25201         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25202         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25203         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25204
25205 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25206             Arnaud Charlet  <charlet@adacore.com>
25207
25208         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25209         longer protected objects. They have been replaced by lower-level
25210         suspension objects made up by a mutex and a condition variable (or
25211         their equivalent given a particular OS) plus some internal data to
25212         reflect the state of the suspension object.
25213         (Initialize, Finalize): Add this initialization procedure for
25214         Suspension_Object, which is a controlled type.
25215         (Finalize): Add the finalization procedure for Suspension_Object,
25216         which is a controlled type.
25217
25218         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25219         Ada.Synchronous_Task_Control because there is no longer a need for a
25220         VxWorks specific version of this package. Target dependencies
25221         has been moved to System.Task_Primitives.Operations.
25222
25223         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25224         longer needed.
25225         (InitializeCriticalSection, EnterCriticalSection,
25226         LeaveCriticalSection, DeleteCriticalSection): Replace the type
25227         pCriticalSection by an anonymous access type so that we avoid problems
25228         of accessibility to local objects.
25229
25230         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25231         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25232         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25233         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25234         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25235         set the environment task mask here.
25236         (Current_State): Add this function that returns the state of the
25237         suspension object.
25238         (Set_False): Add this procedure that sets the state of the suspension
25239         object to False.
25240         (Set_True): Add this procedure that sets the state of the suspension
25241         object to True, releasing the task that was suspended, if any.
25242         (Suspend_Until_True): Add this procedure that blocks the calling task
25243         until the state of the object is True. Program_Error is raised if
25244         another task is already waiting on that suspension object.
25245         (Initialize): Add this procedure for initializing the suspension
25246         object. It initializes the mutex and the condition variable which are
25247         used for synchronization and queuing, and it sets the internal state
25248         to False.
25249         (Finalize): Add this procedure for finalizing the suspension object,
25250         destroying the mutex and the condition variable.
25251
25252         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25253         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25254         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25255         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25256         which provides a low-level abstraction (using operating system
25257         primitives) for Ada.Synchronous_Task_Control.
25258         This object is made up by a mutex (for ensuring mutual exclusion), a
25259         condition variable (for queuing threads until the condition is
25260         signaled), a Boolean (State) indicating whether the object is open,
25261         and a Boolean (Waiting) reflecting whether there is a task already
25262         suspended on this object.
25263
25264         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25265         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25266         s-intman-vms.ads, s-intman-mingw.adb,
25267         (Initialize_Interrupts): Removed, no longer used.
25268
25269         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25270         (Setup_Interrupt_Mask): New procedure.
25271
25272         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
25273
25274         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25275
25276         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25277         this is no longer done in the body of s-taprop
25278         (Server_Task): Explicitely test for Pending_Action in case
25279         System.Parameters.No_Abort is True.
25280
25281         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25282         is no longer done in the body of s-taprop
25283
25284 2005-06-14  Robert Dewar  <dewar@adacore.com>
25285
25286         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25287         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25288         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25289         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25290         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25291         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25292         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25293         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25294         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25295         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25296         system-linux-hppa.ads, system-vms_64.ads,
25297         system-vxworks-alpha.ads: Minor comment update for
25298         AI-362 (unit is Pure).
25299
25300         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25301         Add pragma Pure_05 for AI-362
25302         Make remaining conversion functions obsolescent in Ada 95
25303
25304         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25305         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25306         Add entries for a-wichun and a-zchuni
25307         Add a-widcha a-zchara for AI-395
25308         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25309
25310         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25311         Add entries for a-wichun.o and a-zchuni.o
25312         Entries for a-widcha.o and a-zchara.o
25313         Add entry for a-chacon.o
25314
25315         * a-ztenau.adb: Add with of Ada.Characters.Conversions
25316
25317         * a-chacon.ads, a-chacon.adb: New files.
25318
25319         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25320         categorization violations.
25321
25322         * a-strmap.ads: Add pragma Pure_05 for AI-362
25323         * a-strmap.ads: Add note on implicit categorization for AI-362
25324
25325         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25326
25327         * par-prag.adb: Dummy entry for pragma Persistent_BSS
25328         Set Ada_Version_Explicit, for implementation of AI-362
25329         Add processing for pragma Pure_05 and Preelaborate_05
25330         Add entry for Assertion_Policy pragma
25331
25332         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25333         when needed for proper processing of categorization stuff
25334
25335         * sem_cat.adb:
25336         For several cases, make errors in preealborate units warnings,
25337         instead of errors, if GNAT_Mode is set. For AI-362.
25338
25339         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25340         preelaborate unit is now warning if in GNAT mode
25341
25342         * s-stoele.ads: Document AI-362 for pragma preelaborate
25343
25344 2005-06-14  Doug Rupp  <rupp@adacore.com>
25345
25346         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25347         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25348         Default_Exception_Msg_Max_Length: new parameter.
25349
25350         * a-except.ads: (Exception_Msg_Max_Length): Set to
25351         System.Parameters.Default_Exception_Msg_Max_Length
25352         Add pragma Preelaborate_05 for AI-362
25353         Add warnings off to allow categorization violations for AI-362
25354
25355 2005-06-14  Vincent Celier  <celier@adacore.com>
25356
25357         * gnatsym.adb: Adapt to modification of package Symbols: procedure
25358         Process is now in package Processing.
25359
25360         * symbols.ads, symbols.adb:
25361         (Processing): New package, containing procedure Process
25362
25363         * symbols-vms-alpha.adb:
25364         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25365
25366         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25367         symbols-processing-vms-ia64.adb: New files.
25368
25369 2005-06-14  Pascal Obry  <obry@adacore.com>
25370
25371         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25372         implementation. This new version generates the proper DllMain routine
25373         to initialize the SAL. The DllMain is generated in Ada and compiled
25374         before being added as option to the library build command.
25375
25376 2005-06-14  Doug Rupp  <rupp@adacore.com>
25377             Pascal Obry  <obry@adacore.com>
25378
25379         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25380         call to decc$translate_vms.
25381         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25382         need to remove those quotes before catenating the filename.
25383         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25384         * avoid allocating the memory twice for better efficiency;
25385         * allocate 32K buffer for environment expansion as suggested by MSDN;
25386         * prepend ".;" to the path so that current directory is searched too.
25387
25388 2005-06-14  Robert Dewar  <dewar@adacore.com>
25389
25390         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25391         instead of raising CE (AI-241)
25392         Add warnings off to allow categorization violations for AI-362
25393
25394 2005-06-14  Robert Dewar  <dewar@adacore.com>
25395
25396         * ali-util.adb, gnatbind.adb: Remove references to
25397         Force_RM_Elaboration_Order.
25398
25399         * switch-b.adb: Remove recognition of -f switch
25400
25401 2005-06-14  Pascal Obry  <obry@adacore.com>
25402
25403         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25404         implementation which is slightly more efficient.
25405
25406 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25407             Javier Miranda  <miranda@adacore.com>
25408             Ed Schonberg  <schonberg@adacore.com>
25409             Hristian Kirtchev  <kirtchev@adacore.com>
25410
25411         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25412         allocator's designated type is a class-wide type, and compiling for
25413         Ada 2005, emit a run-time check that the accessibility level of the
25414         type given in the allocator's expression is not deeper than the level
25415         of the allocator's access type.
25416
25417         (Tagged_Membership): Modified to gives support to abstract interface
25418         types.
25419
25420         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25421         Access_Level.
25422         (Descendant_Tag): New predefined function
25423         (Is_Descendant_At_Same_Level): New predefined function
25424         (Get_Access_Level): New private function
25425         (Set_Access_Level): New private procedure
25426         (IW_Membership): New function. Given the tag of an object and the tag
25427         associated with an interface, evaluate if the object implements the
25428         interface.
25429         (Register_Interface_Tag): New procedure used to initialize the table of
25430         interfaces used by the IW_Membership function.
25431         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25432         of the dispatch table.
25433         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25434         table of interfaces of the parent.
25435         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25436         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25437         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25438         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25439         Ada 2005 semantics for the new predefined function.
25440
25441         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25442         call to Descendant_Tag rather than Internal_Tag.
25443         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25444         the accessibility level of the attribute's Item parameter is not deeper
25445         than the level of the attribute's prefix type. Tag_Error is raised if
25446         the check fails. The check is only emitted for Ada_05.
25447         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25448         requested stream attribute, use it.
25449         (Expand_N_Attribute_Reference): If the designated type is an interface
25450         then rewrite the referenced object as a conversion to force the
25451         displacement of the pointer to the secondary dispatch table.
25452         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25453         is a dereference of an object with a constrained partial view.
25454
25455         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25456         type is a class-wide type, emit a run-time check that the accessibility
25457         level of the returned object is not deeper than the level of the
25458         function's master (only when compiling for Ada 2005).
25459
25460         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25461         Action_Nb_Arg): Add entries for new Get_Access_Level and
25462         Set_Access_Level routines in these tables.
25463         (Make_DT): Generate a call to set the accessibility level of the
25464         tagged type in its TSD.
25465         (Make_DT): Code cleanup. The functionality of generating all the
25466         secondary dispatch tables has been moved to freeze_record_type.
25467         (Make_Abstract_Interface_DT): Minor code cleanup.
25468         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25469         this subprogram implements a new algorithm that provides the
25470         same functionality and it is more clear in case of primitives
25471         associated with abstract interfaces.
25472         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25473         clean up, the functionality of this subprogram is now provided
25474         by Set_All_DT_Position.
25475         (Write_DT): New subprogram: a debugging procedure designed to be called
25476         within gdb to display the dispatch tables associated with a tagged
25477         type.
25478         (Collect_All_Interfaces): New subprogram that collects the whole list
25479         of interfaces that are directly or indirectly implemented by a tagged
25480         type.
25481         (Default_Prim_Op_Position): New subprogram that returns the fixed
25482         position in the dispatch table of the default primitive operations.
25483         (Expand_Interface_Actuals): New subprogram to generate code that
25484         displaces all the actuals corresponding to class-wide interfaces to
25485         reference the interface tag of the actual object.
25486         (Expand_Interface_Conversion): New subprogram. Reference the base of
25487         the object to give access to the interface tag associated with the
25488         secondary dispatch table.
25489         (Expand_Interface_Thunk): New subprogram that generates the code of the
25490         thunk. This is required for compatibility with the C+ ABI.
25491         (Make_Abstract_Interface_DT): New subprogram that generate the
25492         declarations for the secondary dispatch tables associated with an
25493         abstract interface.
25494         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25495         attribute for each primitive operation covering interface subprograms
25496         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25497         These subprograms were upgraded to give support to abstract interfaces
25498
25499         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25500         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25501         RE_Set_Access_Level.
25502         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25503         Add support to call the followig new run-time subprograms:
25504         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25505
25506         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25507         match its full declaration when both have an access definition with
25508         statically matching designated subtypes.
25509         (Analyze_Component_Declaration): Delete commented out code that was
25510         incorrectly setting the scope of an anonymous access component's type.
25511         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25512         an access discriminant when the containing type is nonlimited.
25513         (Make_Incomplete_Type_Declaration): Create an incomplete type
25514         declaration for a record type that includes self-referential access
25515         components.
25516         (Check_Anonymous_Access_Types): Before full analysis of a record type
25517         declaration, create anonymous access types for each self-referential
25518         access component.
25519         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25520         an access component in this context is a Local_Anonymous_Access, for
25521         proper accessibility checks.
25522         (Access_Definition): Set properly the scope of the anonymous access type
25523         created for a stand-alone access object.
25524         (Find_Type_Of_Object): An object declaration may be given with an access
25525         definition.
25526         (Complete_Subprograms_Derivation): New subprogram used to complete
25527         type derivation of private tagged types implementing interfaces.
25528         In this case some interface primitives may have been overriden
25529         with the partial-view and, instead of re-calculating them, they
25530         are included in the list of primitive operations of the full-view.
25531         (Build_Derived_Record_Type): Modified to give support to private
25532         types implemening interfaces.
25533         (Access_Definition): Reject ALL on anonymous access types.
25534         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25535         type derivation to occur at a deeper accessibility level than the
25536         parent type.
25537         For the case of derivation within a generic body however, disallow the
25538         derivation if the derived type has an ancestor that is a formal type
25539         declared in the formal part of an enclosing generic.
25540         (Analyze_Object_Declaration): For protected objects, remove the check
25541         that they cannot contain interrupt handlers if not declared at library
25542         level.
25543         (Add_Interface_Tag_Components): New subprogram to add the tag components
25544         corresponding to all the abstract interface types implemented by a
25545         record type or a derived record type.
25546         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25547         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25548         Process_Full_View, Record_Type_Declaration): Modified to give
25549         support to abstract interface types
25550         (Collect_Interfaces): New subprogram that collects the list of
25551         interfaces that are not already implemented by the ancestors
25552         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25553         when partial view has no discriminants and full view has defaults.
25554         (Constrain_Access): Reject a constraint on a general access type
25555         if the discriminants of the designated type have defaults.
25556         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25557         full-type declaration or subprogram spec. This is required to handle
25558         nested anonymous declarations.
25559         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25560         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25561         Process_Full_View, Record_Type_Declaration): Modified to give
25562         support to abstract interface types
25563         (Derive_Subprograms): Addition of a new formal to indicate if
25564         we are in the case of an abstact-interface derivation
25565         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25566         to the specification because it is requied to analyze all the
25567         identifiers found in a list of interfaces
25568
25569         * debug.adb: Complete documentation of flag "-gnatdZ"
25570
25571         * exp_ch3.adb: Implement config version of persistent_bss pragma
25572         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25573         testing for TSS presence to properly enforce visibility rules.
25574         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25575         Make_Abstract_Interfaces_DT to generate the secondary tables
25576         associated with abstract interfaces.
25577         (Build_Init_Procedure): Modified to initialize all the tags
25578         corresponding.
25579         (Component_Needs_Simple_Initialization): Similar to other tags,
25580         interface tags do not need initialization.
25581         (Freeze_Record_Type): Modified to give support to abstract interface
25582         types.
25583         (Expand_N_Object_Declaration): Do not generate an initialization for
25584         a scalar temporary marked as internal.
25585
25586         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25587         in-out parameter that is a component in an initialization procedure,
25588         whose constraint might depend on discriminants, and that may be
25589         misaligned because of packing or representation clauses.
25590         (Is_Legal_Copy): New predicate to determine whether a possibly
25591         misaligned in-out actual can actually be passed by copy/return. This
25592         is an error in case the type is by_reference, and a warning if this is
25593         the consequence of a DEC import pragma on the subprogram.
25594         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25595         interface types
25596         (Expand_Inlined_Call): Mark temporary generated for the return value as
25597         internal, so that no useless scalar normalization is generated for it.
25598         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25599         null procedure can always be inlined.
25600         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25601         procedure, generate an explicit empty body for it.
25602
25603         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25604         Given a type implementing an interface, returns the corresponding
25605         access_disp_table value.
25606         (Find_Interface_Tag): New subprogram. Given a type implementing an
25607         interface, returns the record component containing the tag of the
25608         interface.
25609         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25610         previous ones that return the corresponding tag and access_disp_table
25611         entities.
25612         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25613         is a predefined primitive operation.
25614         (Expand_Subtype_From_Expr): If the expression is a selected component
25615         within an initialization procedure, compute its actual subtype, because
25616         the component may depend on the discriminants of the enclosing record.
25617
25618         * i-cpp.ads, i-cpp.adb:
25619         This package has been left available for compatibility with previous
25620         versions of the frontend. As part of the new layout this is now a
25621         dummy package that uses declarations available at a-tags.ads
25622
25623         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25624         "constant access" and "aliased [constant] access" when not compiling
25625         with -gnat05.
25626         Suppress Ada 2005 keyword warning if -gnatwY used
25627         (P_Identifier_Declarations): Add support for object declarations with
25628         access definitions.
25629         (Private_Extension_Declaration): Complete the documentation
25630         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25631         attribute in case of private extension declaration
25632         (P_Type_Declaration): Mark as "abstract" the type declarations
25633         corresponding with protected, synchronized and task interfaces
25634         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25635         for a subprogram or instance declaration.
25636
25637         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25638         instantiation that is a dispatching operation has controlling access
25639         parameters that are null excluding.
25640         Save and restore Ada_Version_Explicit, for implementation of AI-362
25641         (Validate_Derived_Type_Instance): Add check for abstract interface
25642         types.
25643         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25644         the generic that is created to represent the formal package.
25645         (Analyze_Package_Instantiation): Instantiate body immediately if the
25646         package is a predefined unit that contains inlined subprograms, and
25647         we are compiling for a Configurable_Run_Time.
25648         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25649         If the program has a null default, generate an empty body for it.
25650
25651         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25652         error message condition, null procedures are correctly detected now.
25653         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25654         for subprograms in the context of protected types. Instead, the
25655         indicator is examined in Sem_Ch9 while analysing the subprogram
25656         declaration.
25657         (Check_Overriding_Indicator): Check consistency of overriding indicator
25658         on subprogram stubs as well.
25659         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25660         the library level.
25661         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25662         the type of the first formal is a concurrent type, replace this type
25663         by the corresponding record type.
25664         (Analyze_Subprogram_Body): Undo the previous work.
25665         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25666         analysis of the prefix ends up analyzing the call itself, after which
25667         we are done.
25668         (Has_Interface_Formals): New subprogram subsidiary to analyze
25669         subprogram_specification that returns true if some non
25670         class-wide interface subprogram is found
25671         (New_Overloaded_Entity): Modified to give support to abstract
25672         interface types
25673         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25674         access to subprograms must be recursive.
25675         (Is_Unchecked_Conversion): Improve the test that recognizes
25676         instantiations of Unchecked_Conversion, and allows them in bodies that
25677         are to be inlined by the front-end. When the body comes from an
25678         instantiation, a reference to Unchecked_Conversion will be an
25679         Expanded_Name, even though the body has not been analyzed yet.
25680         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25681         Must_Override and Must_Not_Override, to better express intent of AI.
25682         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25683         that it is consistent with the overrinding status of the subprogram
25684         at this point.
25685         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25686         always inlined.
25687         If the subprogram is a null procedure, indicate that it does not need
25688         a completion.
25689
25690         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25691         available through limited-with clauses.
25692         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25693         allowed as the last primitive of a tagged type if it has no previous
25694         spec.
25695         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25696         to give support to abstract interface types
25697
25698         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25699         in the case where the target type is an anonymous access type of an
25700         object or component (that is, when Is_Local_Anonymous_Access is true).
25701         Prevent the special checks for conversions of access discriminants in
25702         the case where the discriminant belongs to a nonlimited type, since
25703         such discriminants have their accessibility level defined in the same
25704         way as a normal component of an anonymous access type.
25705         (Resolve_Allocator): When an allocator's designated type is a class-wide
25706         type, check that the accessibility level of type given in the
25707         allocator's expression or subtype indication is not statically deeper
25708         than the level of the allocator's access type.
25709         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25710         name in a discriminant constraint of a record component.
25711         (Resolve_Explicit_Dereference): Do not check whether the type is
25712         incomplete when the dereference is a use of an access discriminant in
25713         an initialization procedure.
25714         (Resolve_Type_Conversion): Handle conversions to abstract interface
25715         types.
25716         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25717         abstract interface type is always valid.
25718         (Valid_Conversion): Modified to give support to abstract interface types
25719         (Resolve_Actuals): Enable full error reporting on view conversions
25720         between unrelated by_reference array types.
25721         The rule for view conversions of arrays with aliased components is
25722         weakened in Ada 2005.
25723         Call to obsolescent subprogram is now considered to be a violation of
25724         pragma Restrictions (No_Obsolescent_Features).
25725         (Check_Direct_Boolean_Operator): If the boolean operation has been
25726         constant-folded, there is nothing to check.
25727         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25728         check on possible violation of restriction No_Direct_Boolean_Operators
25729         until after expansion of operands, to prevent spurious errors when
25730         operation is constant-folded.
25731
25732         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25733         Has_Compatible_Type): Modified to give support to abstract interface
25734         types.
25735         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25736         of a given type implements a given interface
25737
25738         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25739         prefix is a parameterless function that returns an access_to_procedure.
25740         (Transform_Object_Operation): Handle properly function calls of the
25741         form Obj.Op (X), which prior to analysis appear as indexed components.
25742         (Analyze_One_Call): Complete the error notification to help new Ada
25743         2005 users.
25744         (Analyze_Allocator): For an allocator without an initial value, where
25745         the designated type has a constrained partial view, a discriminant
25746         constraint is illegal.
25747
25748 2005-06-14  Robert Dewar  <dewar@adacore.com>
25749
25750         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25751         do with treatment of Set_Col when positioned at end of line character.
25752
25753 2005-06-14  Robert Dewar  <dewar@adacore.com>
25754
25755         * atree.adb: (Elist*): Protect against uninitialized field
25756
25757 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25758
25759         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25760         for an attribute reference that returns an access type.
25761         (Apply_Discriminant_Check): No need for check if (designated) type has
25762         constrained partial view.
25763
25764         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25765         both bound checks, rather than a conjunction.
25766         (Insert_Valid_Check): If the expression is an actual that is an indexed
25767         component of a bit-packed array, force expansion of the packed element
25768         reference, because it is specifically inhibited elsewhere.
25769
25770 2005-06-14  Vincent Celier  <celier@adacore.com>
25771
25772         * clean.adb (Clean_Project): Correctly delete executable specified as
25773         absolute path names.
25774
25775         * make.adb (Gnatmake): Allow relative executable path names with
25776         directory information even when project files are used.
25777         (Change_To_Object_Directory): Fail gracefully when unable to change
25778         current working directory to object directory of a project.
25779         (Gnatmake): Remove exception handler that could no longer be exercized
25780         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25781         may be deallocated by Normalize_Arguments.
25782         (Collect_Arguments): Eliminate empty arguments
25783
25784         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25785         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25786         (Check_Project): Return False when Project is No_Project. Return True
25787         when All_Projects is True.
25788         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25789         All_Projects to True.
25790         Minor reformatting
25791
25792 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25793             Javier Miranda  <miranda@adacore.com>
25794             Thomas Quinot  <quinot@adacore.com>
25795             Robert Dewar  <dewar@adacore.com>
25796             Hristian Kirtchev  <kirtchev@adacore.com>
25797             Gary Dismukes  <dismukes@adacore.com>
25798
25799         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25800         anonymous access types, to indicate that the accessibility level of
25801         the type is determined by that of the enclosing declaration.
25802         (Has_Persistent_BSS): New flag
25803         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25804         of this attribute with functions.
25805         (Is_Primitive_Wrapper): Remove the barrier.
25806         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25807         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25808         New subprograms.
25809         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25810         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25811         New subprograms.
25812         (Is_Pure_Unit_Access_Type): New flag
25813         (Abstract_Interfaces): Complete the assertion to cover all usages.
25814         (Set_Is_Interface): Complete the assertion to cover all usages.
25815         (Is_Primitive_Wrapper): New attribute.
25816         (Is_Obsolescent): Now applies to all entities (though it is only set
25817         for subprograms currently)
25818         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25819         which solves various problems concerning access subtypes.
25820         (Has_Persistent_BSS): New flag
25821         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25822         Remove these subprograms because this attribute is currently
25823         not used.
25824         New entity flags:
25825         Has_Specified_Stream_Input (Flag190)
25826         Has_Specified_Stream_Output (Flag191)
25827         Has_Specified_Stream_Read (Flag192)
25828         Has_Specified_Stream_Write (Flag193)
25829         Present in all type and subtype entities. Set for a given view if the
25830         corresponding stream-oriented attribute has been defined by an
25831         attribute definition clause. When such a clause occurs, a TSS is set
25832         on the underlying full view; the flags are used to track visibility of
25833         the attribute definition clause for partial or incomplete views.
25834         (Is_Pure_Unit_Access_Type): New flag
25835         Clarify use of Is_Internal.
25836         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25837         internally generated to wrap the invocation of tasks and protected
25838         types that implement interfaces.
25839         (Implementation_Base_Type): Documentation correction
25840         (Is_Obsolescent): Now applies to all entities (though it is only set
25841         for subprograms currently)
25842         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25843         which solves various problems concerning access subtypes.
25844
25845         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25846         for examined parameters. Identify unequal parameter list lengths as
25847         non-conformant parameters.
25848         (Overriding_Possible): Do not check for "All" qualifier in declaration
25849         of controlling access parameter, following prescription of AI-404.
25850         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25851         that build the procedure body that wraps an entry invocation
25852         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25853         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25854         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25855         give support to abstract interface types
25856
25857         * freeze.adb (Freeze_Entity): Issue error message if
25858         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25859         type has no storage pool (Ada 2005) AI-366.
25860         Also modified to give support to abstract interface types
25861         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25862         Inline_Always pragma.
25863
25864         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25865         now begin an entry declaration.
25866         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25867         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25868         a subprogram declaration preceded by an overriding indicator.
25869         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25870         declarations or subprogram declarations preceded by reserved words
25871         "not" or "overriding".
25872         (P_Entry_Declaration): Update comment. Parse and check overriding
25873         indicator, set semantic flags of entry declarations.
25874         (P_Task): New error message in case of private applied
25875         to a task type declaration.
25876         (P_Protected): New error message in case of private applied
25877         to a task type declaration.
25878
25879         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25880         in which the full view of a type implementing an interface is a
25881         concurrent type.
25882         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25883         Declare_Inherited_Private_Subprograms): If an explicit operation
25884         overrides an operation that is inherited in the private part, mark the
25885         explicit one as overriding, to enable overriding indicator checks.
25886         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25887         full view to partial view, to simplify handling in back-end.
25888
25889         * sprint.adb: Print interface lists where needed: derived types,
25890         protected types, task types.
25891         output "is null" for null procedures. Part of implementation of
25892
25893         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25894         relaxation of rules for access types in pure, shared passive partitions.
25895
25896         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25897         first read discriminants into temporary objects, performing checks on
25898         the read values, then possibly performing discriminant checks on the
25899         actual (if it is constrained), and only finally reading the components
25900         into a constrained temporary object.
25901         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25902         case of reading discriminants of a mutable record type to recognize
25903         the new form of the code generated by
25904         Build_Mutable_Record_Read_Procedure.
25905
25906         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25907         of a simple call to Make_TSS_Name.
25908         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25909         buffer, in order for Is_TSS to work correctly on local TSS names.
25910
25911         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25912         Is_Local_Anonymous_Access to check legaliy of attributes in the
25913         context of  access components and stand-alone access objects.
25914         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25915         treated as available for a limited private type if there is an
25916         attribute_definition_clause that applies to its full view, but not in
25917         other cases where the attribute is available for the full view
25918         (specifically, the sole fact that the full view is non-limited does not
25919         make the attribute available for the partial view).
25920         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25921         non-overloaded intrinsic subprogram.
25922         (Check_Stream_Attribute): Reject an attribute reference for an
25923         unavailable stream attribute even if the prefix is not a limited type
25924         (case of a 'Input attribute reference for an abstract, non-classwide
25925         type)
25926         (Stream_Attribute_Available): New function to determine whether a stream
25927         attribute is available at a place.
25928         (Check_Attribute): Use Stream_Attribute_Available instead of just
25929         testing for TSS presence on the implementation base type.
25930         (Analyze_Attribute): Modified to give support to task interfaces.
25931         (Analyze_Access_Attribute): Add error check for use of an Access (or
25932         Unrestricted_Access) attribute with a subprogram marked as
25933         Inline_Always.
25934         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25935         an Address attribute with a subprogram marked as Inline_Always.
25936         Update Eval_Attribute to handle new value of Width from AI-395
25937
25938         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25939         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25940         Factor common code across the stream-oriented attribute circcuits into
25941         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25942         processing is functionally identical to the previous duplicated one,
25943         except that an expression that denotes an abstract subprogram will now
25944         be rejected, as mandated by AI-195 item 5.
25945
25946         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25947         Is_Local_Anonymous_Access to apply accessibility checks to access
25948         components and stand-alone access objects.
25949         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25950         elsewhere.
25951         (Is_Potentially_Persistent_Type): New function
25952         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25953         a heap-object whose type has a constrained partial view, the object is
25954         unconstrained and the component may depend on a discriminant, making its
25955         renaming illegal.
25956
25957         * sinfo.ads, sinfo.adb
25958         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25959         (Must_Override): Flag applicable to N_Entry_Declaration.
25960         Indicate that interface_list can appear in single task and single
25961         protected declarations.
25962         Replace Is_Overriding and Not_Overriding with Must_Override and
25963         Must_Not_Override, to better express intent of AI.
25964         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25965         of an overriding indicator in a subprogram or instance.
25966         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25967         Add the overriding indicator [[not] overriding] construct to the
25968         following grammar productions:
25969          ENTRY_DECLARATION
25970          GENERIC_INSTANTIATION
25971          SUBPROGRAM_SPECIFICATION
25972
25973         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25974         can start with an overriding indicator.
25975
25976         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25977         flags accordingly on subrogram specifications or instances.
25978
25979         * sem_ch8.adb:
25980         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25981         overriding_indicator, if present, is consistent with status of spec.
25982         Improve error message for null-excluding checks on controlling access
25983         parameters.
25984         (Check_In_Previous_With_Clause): Protect the frontend against
25985         previously reported critical errors in the context clauses.
25986         Save and restore Ada_Version_Explicit, for implementation of AI-362
25987         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25988         operation verify that controlling formals of the renamed entity that
25989         are access parameters are explicitly non-null.
25990         (Find_Expanded_Name): Improve error message when prefix is an illegal
25991         reference to a private child unit.
25992
25993         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25994         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25995         Rewrite to correspond to new wide character names in AI-395
25996
25997         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25998         default procedures.
25999
26000 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26001             Robert Dewar  <dewar@adacore.com>
26002
26003         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26004         code, not on the bodies of predefined operations, to cut down on
26005         spurious noise.
26006
26007 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26008
26009         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26010         be expanded in place. The size computation does not require a
26011         subtraction, which would raise an exception on a compiler built with
26012         assertions when the upper bound is Integer'first.
26013         (Flatten): For an array of composite components, take into account the
26014         size of the components to determine whether it is safe to expand the
26015         array into a purely positional representation.
26016
26017 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26018
26019         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26020         denoting a formal parameter into account.
26021
26022 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26023
26024         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26025         the entry_call alternative of a conditional entry call, wrap the
26026         conditional entry call itself.
26027
26028 2005-06-14  Nicolas Setton  <setton@adacore.com>
26029             Ed Schonberg  <schonberg@adacore.com>
26030
26031         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26032         the "simple_choice" member in a variant record, in accordance with the
26033         description in the package spec: the information output for a constant
26034         should be "S number", not "SS number".
26035         (Get_Encoded_Name): Return at once if not generating code. Avoids name
26036         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26037
26038 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26039
26040         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26041         RACW without any primitives, do not generate the if statement for
26042         dispatching by name in the PolyORB/DSA case, as it would be malformed
26043         (it would have an Elsif_Parts list that is not No_List, but with a
26044         length of 0).
26045
26046 2005-06-14  Robert Dewar  <dewar@adacore.com>
26047
26048         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26049
26050 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
26051
26052         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26053         can determine whether pragma Suppress_Exception_Locations is in effect.
26054
26055         * utils2.c (build_call_raise): Do not pass the file name to the
26056         exception handler if pragma Suppress_Exception_Locations is in effect.
26057         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26058
26059 2005-06-14  Emmanuel Briot  <briot@adacore.com>
26060
26061         * g-debpoo.adb (Deallocate, Dereference): Improve output.
26062
26063 2005-06-14  Nicolas Roche  <roche@adacore.com>
26064
26065         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26066         to ""
26067         (Next_Level): Fix minor bug in handling of ../dir case
26068         (Read): Add dir separator to Directory name so that "" is understood as
26069          "/"
26070
26071 2005-06-14  Pascal Obry  <obry@adacore.com>
26072
26073         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26074         releasing the items.
26075
26076 2005-06-14  Vincent Celier  <celier@adacore.com>
26077             Cyrille Comar  <comar@adacore.com>
26078
26079         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26080         with output file descriptor and with output file name.
26081         (Dup, Dup2): Now global procedures as they are used by two subprograms
26082         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26083
26084 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26085
26086         PR ada/6717
26087         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26088         broadcast address.
26089         (Create_Selector): Bind listening socket used to create the signalling
26090         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26091         Set listen backlog to 1 to ensure that we detect socket theft by a
26092         failure of our own connect(2) call.
26093         (Check_Selector): Improve documentation of the selector mechanism.
26094         (Broadcast_Inet_Addr): New constant.
26095
26096 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26097
26098         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26099         type which turns out to be an incomplete and incorrect fix.
26100         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26101         of the type is declared in a record (for determination of insertion
26102         type).
26103         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26104         a private type and ensure that the primary entity is used for the type
26105         of the newly created function's V formal by taking the Etype of the
26106         view.
26107
26108 2005-06-14  Javier Miranda  <miranda@adacore.com>
26109             Jose Ruiz  <ruiz@adacore.com>
26110             Robert Dewar  <dewar@adacore.com>
26111             Ed Schonberg  <schonberg@adacore.com>
26112
26113         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26114         that indicates if we are parsing a compilation unit found in a
26115         limited-with clause.
26116         It is use to avoid the circularity check.
26117
26118         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26119         we are parsing a compilation unit found in a limited-with clause. This
26120         is use to avoid the circularity check.
26121
26122         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26123         unit as a consequence of parsing a limited-with clause. This is used
26124         to avoid the circularity check.
26125
26126         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26127         (Analyze_Context): Limited-with clauses are now allowed
26128         in more compilation units.
26129         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26130         againts previously reported critical errors in context clauses
26131         (Install_Limited_Withed_Unit): Code cleanup plus static detection
26132         of two further errors: renamed subprograms and renamed packages
26133         are not allowed in limited with clauses.
26134         (Install_Siblings): Do not install private_with_clauses on the package
26135         declaration for a non-private child unit.
26136         (Re_Install_Parents): When a parent of the subunit is reinstalled,
26137         reset visibility of child units properly.
26138         (Install_Withed_Unit): When a child unit appears in a with_clause of its
26139         parent, it is immediately visible.
26140
26141 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26142             Emmanuel Briot  <briot@adacore.com>
26143
26144         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26145         declared within an inlined body as referenced, to prevent spurious
26146         warnings.
26147         (Output_One_Ref): If an entity renames an array component, indicate in
26148         the ALI file that this aliases (renames) the array. Capture as well
26149         function renamings that rename predefined operations.
26150         Add information about generic parent for package and subprogram
26151         instances.
26152         (Get_Type_Reference): For a subtype that is the renaming of an actual in
26153         an instantiation, use the first_subtype to ensure that we don't generate
26154         cross-reference information for internal types.
26155         For objects and parameters of a generic private type, retain the '*'
26156         indicator to distinguish such an entity from its type.
26157
26158         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26159         to store information about instantiated entities.
26160
26161         * ali.adb (Scan_ALI): Add support for parsing the reference to the
26162         generic parent
26163
26164         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26165         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26166         information.
26167
26168 2005-06-10  Doug Rupp  <rupp@adacore.com>
26169             Arnaud Charlet  <charlet@adacore.com>
26170             Olivier Hainque  <hainque@adacore.com>
26171             Jose Ruiz  <ruiz@adacore.com>
26172
26173         * Make-lang.in: Add initialize.o when needed.
26174         Remove obsolete references to RT_FLAGS.
26175         Add missing dependencies for sdefault.o
26176
26177         * initialize.c: New file.
26178
26179         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26180         [VMS] cond_signal_table: Fix problem in declaration.
26181         [VMS] __gnat_error_handler: rewrite.
26182         Move all __gnat_initialize() routines to initialize.c
26183         Specialize the former "hpux" section to "hppa hpux", as this is what the
26184         section really is here for and we now have other hpux ports that need
26185         different contents.
26186         (__gnat_adjust_context_for_raise) i386-linux: First version of this
26187         function for this target. Adjust PC by one in the machine context. This
26188         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26189         it is more reliable to do that in the signal handler itself.
26190         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26191         flags, so that the handler is passed the context structure to adjust
26192         prior to the raise.
26193         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26194         SA_SIGINFO sigaction should look like. Call
26195         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26196         Machine_State_Operations stuff.
26197         Add conditional code so that the x86_64 is also supported.
26198
26199 2005-06-14  Pascal Obry  <obry@adacore.com>
26200
26201         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26202         the library name.
26203
26204 2005-06-14  Robert Dewar  <dewar@adacore.com>
26205
26206         * opt.ads, opt.adb: New flags for persistent_bss mode
26207         Add Ada_Version_Explicit, for implementation of AI-362
26208         Add Assertions_Enabled_Config and associated handling
26209         Needed since setting can be changed with Assertion_Policy pragma
26210         Add new flag Warn_On_Ada_2005_Compatibility
26211
26212         * switch-c.adb: Recognize -gnatwy/Y
26213         Set Ada_Version_Explicit, for implementation of AI-362
26214         The -gnatg switch now includes -gnatyu
26215
26216         * usage.adb: Add -gnatwy/Y
26217         Remove wrong asterisk on -gnatwX line
26218         Add line for -gnatyu switch
26219
26220 2005-06-14  Vincent Celier  <celier@adacore.com>
26221
26222         * osint.adb (Add_Default_Search_Dirs): Put source and object
26223         directories of project files before directories coming from
26224         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26225
26226 2005-06-14  Robert Dewar  <dewar@adacore.com>
26227
26228         PR ada/15613
26229         * par-ch2.adb (Scan_Pragma_Argument): New procedure
26230         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26231
26232 2005-06-14  Vincent Celier  <celier@adacore.com>
26233
26234         * prep.adb (Preprocess): Ignore error when scanning the first token of
26235         a line.
26236
26237 2005-06-14  Vincent Celier  <celier@adacore.com>
26238
26239         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26240         (Check_Stand_Alone_Library): If the specified reference symbol file does
26241         not exist, only issue a warning when the symbol policy is not
26242         Controlled. And, when symbol policy is Compliant, set the symbol
26243         policy to Autonomous.
26244
26245 2005-06-14  Vincent Celier  <celier@adacore.com>
26246
26247         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26248         when the project file in a with clause is not the last one, that is the
26249         project file name is followed by a comma.
26250         * prj-pp.adb: (First_With_In_List): New Boolean global variable
26251         (Print): Issue list of project files separated by commas in with clauses
26252         according to the values returned by Is_Not_Last_In_List.
26253         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26254         (Set_Is_Not_Last_In_List): New procedure
26255
26256 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26257
26258         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26259
26260 2005-06-14  Robert Dewar  <dewar@adacore.com>
26261
26262         * scng.adb: Add call to new Check_EOF routine
26263         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26264         Add some comments regarding wide character handling
26265
26266         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26267
26268         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26269
26270         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26271         characters are now considered graphic characters and hence yield false
26272         in this call.
26273
26274         * nmake.adt: Modify header so that xnmake does not generate output
26275         files with multiple blank lines.
26276
26277         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26278         not have an extra blank line
26279
26280 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26281
26282         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26283         expression when the component type is an anonymous access type to
26284         ensure that appropriate accessibility checks are done.
26285
26286         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26287         expression of an assignment when the target object is of an anonymous
26288         access type. This ensures that required accessibility checks are done.
26289         (One_Bound): Move the check for type Universal_Integer to
26290         Process_Bounds.
26291         (Process_Bounds): Check whether the type of the preanalyzed range is
26292         Universal_Integer, and in that case set Typ to Integer_Type prior
26293         to setting the type of the original range and the calls to One_Bound.
26294
26295 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26296
26297         * sem_case.adb (Expand_Others_Choice): Improve warning.
26298
26299 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26300
26301         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26302         constraint of full view if present, when other type is discriminated.
26303         (Eval_Relational_Op): Recognize tests of pointer values against Null,
26304         when the pointer is known to be non-null, and emit appropriate warning.
26305
26306 2005-06-14  Robert Dewar  <dewar@adacore.com>
26307             Ed Schonberg  <schonberg@adacore.com>
26308
26309         PR ada/10671
26310         * sem_prag.adb: Implement pragma Persistent_BSS
26311         Remove obsolete pragma Persistent_Data, Persistent_Object
26312         Set Ada_Version_Explicit, for implementation of AI-362
26313         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26314         Add processing for pragma Pure_05 and Preelaborate_05
26315         Add processing for Assertion_Policy pragma
26316         Add pragma identifiers for Assert
26317         (Analyze_Pragma, case Assert): Check number of arguments
26318         (Process_Inline): Additional guard against an illegal program, where the
26319         argument of the pragma is undefined, and warnings on redundant
26320         constructs are enabled.
26321         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26322         Ada_05 to this pragma, specifying that the pragma is only active in
26323         Ada_05 mode.
26324         (Check_Arg_Order): New procedure
26325         Add appropriate calls to this procedure throughout
26326         Also throughout, check entity name before doing any other checks
26327
26328         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26329         Remove obsolete pragma Persistent_Data, Persistent_Object
26330         Add entries for pragma Pure_05 and Preelaborate_05
26331         Add entries for Assertion_Policy pragma and associated names
26332         Add some names for pragma argument processing
26333
26334         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26335
26336 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26337
26338         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26339         appears within a negation (either from source or as a rewriting of
26340         inequality) adjust text of warning accordingly.
26341
26342 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26343
26344         * s-strxdr.adb: Follow AI95-00132
26345
26346 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26347
26348         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26349
26350 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26351             Jose Ruiz  <ruiz@adacore.com>
26352
26353         * s-tposen.adb, s-tpobop.adb
26354         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26355         the exception id.
26356         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26357         there is no violation of the Max_Entry_Queue_Length restriction (if it
26358         has been set); Program_Error is raised otherwise.
26359         (Requeue_Call): Before requeuing the task on the target entry queue we
26360         check that there is no violation of the Max_Entry_Queue_Length
26361         restriction (if it has been set); Program_Error is raised otherwise.
26362
26363 2005-06-14  Robert Dewar  <dewar@adacore.com>
26364
26365         * styleg.adb: Fix several remaining problems in -gnatyu switch
26366         Blank line count not reset at start
26367         Scanning outside source buffer in some cases
26368         Confusing message for blanks at end of file
26369         Non-empty blank lines not recognized
26370
26371         * nmake.adt: Modify header so that xnmake does not generate output
26372         files with multiple blank lines.
26373
26374         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26375         not have an extra blank line
26376
26377 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26378
26379         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26380
26381 2005-06-14  Doug Rupp  <rupp@adacore.com>
26382             Vincent Celier  <celier@adacore.com>
26383
26384         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26385         Update copyright.
26386
26387         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26388         Remove "Library" command.
26389         Change keyword for style check -gnatyd from NOCRLF to
26390         DOS_LINE_ENDINGS.
26391         Remove useless second style check keyword NONE
26392         Remove help documentation for inexistent style check keyword
26393         RM_COLUMN_LAYOUT.
26394         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26395         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26396         Add UNNECESSARY_BLANK_LINES for -gnatyu
26397         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26398
26399         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26400
26401 2005-06-14  Vincent Celier  <celier@adacore.com>
26402
26403         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26404         gprmake was invoked with -d.
26405         (Compile_Sources): If -d was used, output the "completed ..." message
26406         for each compilation.
26407         (Scan_Arg): Recognize new switch -d
26408         When -c and at least one main is specified, set
26409         Unique_Compile to True to guarantee that no other sources will be
26410         compiled.
26411
26412 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26413
26414         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26415         * a-swuwha.ads, a-swuwha.adb: New files
26416
26417         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26418         * a-szuzha.ads, a-szuzha.adb: New files.
26419
26420         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26421         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26422         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26423         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26424         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26425         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26426         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26427         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26428         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26429         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26430         Ada 2005 RM.
26431
26432 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26433             Olivier Hainque  <hainque@adacore.com>
26434             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26435             Pascal Obry  <obry@adacore.com>
26436
26437         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26438
26439         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26440         making a temporary around a procedure call because of non-addressable
26441         actual parameter.
26442         (process_freeze_entity): If entity is a private type, capture size
26443         information that may have been computed for the full view.
26444         (tree_transform, case N_Allocator): If have initializing expression,
26445         check type for Has_Constrained_Partial_View and pass that to
26446         build_allocator.
26447         (tree_transform, case N_Return_Statement): Pass extra arg to
26448         build_allocator.
26449
26450         * decl.c (annotate_value): Remove early return if -gnatR is not
26451         specified.
26452         (gnat_to_gnu_field): Don't make a packable type for a component clause
26453         if the position is byte aligned, the field is aliased, and the clause
26454         size isn't a multiple of the packable alignment. It serves no useful
26455         purpose packing-wise and would be rejected later on.
26456         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26457
26458         PR ada/20515
26459         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26460         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26461         instead.
26462         (create_concat_name): Idem.
26463
26464 2005-06-10  Robert Dewar  <dewar@adacore.com>
26465             Eric Botcazou  <ebotcazou@adacore.com>
26466             Ben Brosgol  <brosgol@adacore.com>
26467             Cyrille Comar  <comar@adacore.com>
26468             Sergey Rybin  <rybin@adacore.com>
26469             Pascal Obry  <obry@adacore.com>
26470
26471         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26472         Document second argument (Ada_05) of pragma Obsolescent
26473         Add note that call to subprogram marked with pragma Obsolescent
26474         is now considered to be a violation of program Restrictions
26475         (No_Obsolescent_Features).
26476         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26477         that only machine-dependent attributes are supported.
26478
26479         * gnat_ugn.texi:
26480         Commented out menu lines and empty section for gnatclean examples
26481         Document -gnatwy/Y
26482         Fix some over long lines
26483         Clarify and enhance documentation of ADA_PROJECT_PATH.
26484         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26485         Mention new switch -fcallgraph-info.
26486         Mention new switch -fstack-usage.
26487         For gnatpp, replace '-notab' with '-N' and add this option to Index
26488         Corrected VMS example.
26489         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26490         Minor reformatting
26491         Add documentation for -gnatyu switch (unnecessary blank lines)
26492         Document new switch -U for GNAT PRETTY and GNAT METRIC
26493         Add note about Stdcall being handled as C convention on non Windows OS.
26494         Remove some junk typo in description of gnatbind -S switch
26495         Remove reference to Extensions_Allowed pragma
26496         Document the new order of the directories to be searched (source and
26497         object directories of project files before directories in ADA_*_PATH
26498         environment variables.
26499
26500         * g-trasym.ads: Document that IRIX is supported
26501
26502 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26503
26504         * Makefile.in: Add initialize.o when needed.
26505         Adapt to new VMS package body Symbols and subunits
26506         No specialized version of a-sytaco is needed for VxWorks.
26507
26508         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26509         * a-zchara.ads, a-widcha.ads: New files.
26510
26511         * system-hpux-ia64.ads: New file.
26512
26513         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26514         is imported from the VxWorks kernel.
26515
26516 2005-06-14  Robert Dewar  <dewar@adacore.com>
26517
26518         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26519         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26520         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26521         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26522         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26523         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26524         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26525         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26526         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26527         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26528         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26529         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26530
26531 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26532
26533         * xeinfo.adb: Fix typo in comment
26534
26535 2005-06-14  Javier Miranda  <miranda@adacore.com>
26536
26537         * repinfo.ads: Fix typo in comment
26538
26539 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26540
26541         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26542         Parent_Tag is now in the visible part of Ada.Tags).
26543         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26544         using imported function.
26545
26546 2005-06-14  Bernard Banner  <banner@adacore.com>
26547
26548         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26549         also apply for handling support for VxSim 653.
26550
26551 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26552
26553         * xsnames.adb: Add automatic generation of snames.h.
26554
26555 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26556
26557         * gen-soccon.c: Add IP_MULTICAST_IF constant
26558         Minor reformatting and adjustments to prevent warnings.
26559
26560 2005-06-14  Pascal Obry  <obry@adacore.com>
26561
26562         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26563
26564 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26565
26566         * trans.c (gnat_gimplify_expr): Call
26567         recompute_tree_invarant_for_addr_expr when we change
26568         the operand of the ADDR_EXPR.
26569
26570 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26571
26572         * misc.c: Don't include errors.h.
26573
26574 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26575
26576         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26577
26578 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26579
26580         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26581         comment typos.
26582         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26583
26584 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26585
26586         PR ada/20270
26587         * Makefile.in: Make TGT_LIB behave correctly.
26588
26589 2005-04-23  DJ Delorie  <dj@redhat.com>
26590
26591         * misc.c: Adjust warning() callers.
26592
26593 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26594
26595         PR ada/18847
26596         * a-nudira.adb (Value): Check for valid string.
26597         * a-nuflra.adb (Value): Likewise.
26598
26599 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26600
26601         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26602
26603 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26604
26605         * adaint.c, init.c, tracebak.c: Fix comment typos.
26606         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26607
26608 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26609             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26610
26611         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26612         * system-hpux.ads: Define Signed_Zeros to be True.
26613         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26614
26615 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26616
26617         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26618         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26619         typos.
26620
26621 2005-03-30  Tom Tromey  <tromey@redhat.com>
26622
26623         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26624
26625 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26626
26627         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26628
26629 2005-03-29  Robert Dewar  <dewar@adacore.com>
26630
26631         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26632         fixed-point expression has value that is not a multiple of the Small
26633         value.
26634
26635         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26636
26637         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26638         nanoseconds.
26639
26640         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26641
26642 2005-03-29  Vincent Celier  <celier@adacore.com>
26643
26644         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26645         (Build_Dynamic_Library.Version_String): Return the empty string when
26646         Lib_Version is empty or when the symbol policy is not Autonomous.
26647
26648         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26649         a symbol is not in the reference symbol file, increase the Major ID
26650         and set the Minor ID to 0.
26651         Use gsmatch=lequal instead of gsmatch=equal
26652
26653 2005-03-29  Doug Rupp  <rupp@adacore.com>
26654
26655         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26656         name and translate.
26657
26658 2005-03-29  Javier Miranda  <miranda@adacore.com>
26659
26660         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26661         (Inherit_DT): The first formal has been redefined as a Tag.
26662         This allows us the removal of the subprogram Get_TSD.
26663         (TSD): Replace the call to Get_TSD by the actual code.
26664
26665         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26666         (Make_DT): Upgrade the call to Inherit_TSD according to the
26667         new interface: the first formal is now a Tag.
26668
26669         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26670         redefined as a Tag.
26671         This change allows us to remove the subprogram Get_TSD.
26672         (CPP_Get_TSD): Subprogram removed.
26673         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26674
26675         * rtsfind.ads: Remove support to call the run-time
26676         subprogram Get_TSD
26677
26678 2005-03-29  Robert Dewar  <dewar@adacore.com>
26679
26680         * errutil.adb, errout.adb:
26681         Minor comment updates on Line_Terminator references
26682
26683         * par-ch10.adb: Add ??? comment about line terminator
26684
26685         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26686         (check dos line terminator).
26687         (Check_Line_Max_Length): New procedure, split off from the existing
26688         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26689         be properly recognized.
26690
26691         * styleg.adb: Add ??? comment for line terminator reference
26692
26693         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26694         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26695
26696         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26697         (check dos line terminator).
26698         (Check_Line_Max_Length): New procedure, split off from the existing
26699         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26700         be properly recognized.
26701
26702         * stylesw.ads, stylesw.adb:
26703         Add handling for new -gnatyd switch (check dos line terminator)
26704
26705         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26706         Recognize -gnatwb/-gnatwB switches
26707         Include Warn_On_Bad_Fixed_Value for -gnatg
26708
26709         * usage.adb:
26710         Add line for new -gnatyd switch (check dos line terminator)
26711
26712         * usage.adb: Add lines for -gnatwb/-gnatwB
26713
26714         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26715
26716         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26717
26718         * gnat_ugn.texi: Fix overlong lines
26719         Document new -gnatyd switch
26720         Document new -gnatwb/-gnatwB switches
26721
26722 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26723
26724         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26725         order to retrieve the component list of the type, before examining
26726         individual components.
26727
26728         * sem_type.adb (Covers): Types are compatible if one is the base type
26729         of the other, even though their base types might differ when private
26730         views are involved.
26731
26732 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26733
26734         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26735         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26736         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26737         analyzed if expansion is disabled (which could otherwise cause spurious
26738         error messages if expansion has been disabled due to previous
26739         (unrelated) errors).
26740
26741         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26742         is disabled, the entity denoted by the argument is the access type
26743         itself, not an underlying record type, so there is no need to go back
26744         to the Corresponding_Remote_Type.
26745
26746 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26747             Robert Dewar  <dewar@adacore.com>
26748
26749         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26750         expand a call to an instance of
26751         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26752         Constructor actual of the instance. A class-wide membership
26753         check is also generated, to ensure that the tag passed to the instance
26754         denotes a type in the class.
26755         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26756         of Name_Generic_Dispatching_Constructor.
26757
26758         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26759         05 unit for AI-260-02).
26760
26761         * a-tgdico.ads: New file.
26762
26763         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26764         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26765
26766         * snames.ads, snames.adb (Preset_Names): Add entry for
26767         Generic_Dispatching_Constructor.
26768
26769         PR ada/20300
26770         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26771         character type cases.
26772         (Analyze_Subprogram_Renaming): Add special handling for
26773         the case of renaming of stream attributes when the renaming denotes a
26774         generic formal subprogram association for an abstract formal subprogram.
26775         Check that the attribute is a primitive stream attribute (and not
26776         a class-wide stream attribute) and then rewrite the attribute name
26777         as the name of the appropriate compiler-generated stream primitive.
26778
26779 2005-03-29  Robert Dewar  <dewar@adacore.com>
26780
26781         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26782         recursive calls.
26783         (Is_Possibly_Unaligned_Object): Correct typo that
26784         resulted in inaccurate result for unaligned scalars within records.
26785
26786 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26787
26788         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26789         itype whose parent is controlled and not yet frozen, do not create a
26790         freeze node for the itype if expansion is disabled.
26791
26792 2005-03-29  Vincent Celier  <celier@adacore.com>
26793
26794         * make.adb (Gnatmake): Don't fail if the main project file is declared
26795         as having no Ada sources. Do not display message "no sources to
26796         compile" in quiet output.
26797
26798 2005-03-29  Doug Rupp  <rupp@adacore.com>
26799
26800         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26801         extra tools.
26802
26803 2005-03-29  Robert Dewar  <dewar@adacore.com>
26804
26805         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26806         child.
26807
26808 2005-03-29  Robert Dewar  <dewar@adacore.com>
26809
26810         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26811         missing TYPE Improve the error message generated when compiling a
26812         limited interface in Ada83 or Ada95 mode.
26813
26814 2005-03-29  Robert Dewar  <dewar@adacore.com>
26815
26816         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26817         rather than proceed ahead using a junk attribute name.
26818
26819 2005-03-29  Vincent Celier  <celier@adacore.com>
26820
26821         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26822
26823         * prj-part.adb (Parse_Single_Project): Set the location of a project
26824         on its defining identifier, rather than on the reserved word "project".
26825
26826         * prj-proc.adb (Expression): Adapt to the fact that default of external
26827         references may be string expressions, not always literal strings.
26828         (Recursive_Process): Set Display_Name equal to Name
26829         when Location is No_Location, that is when there is no actual file.
26830         Get the Display_Name of the project from the source, when it is not a
26831         virtual project.
26832         (Process): Use the Display_Name in error messages
26833
26834         * prj-strt.adb (External_Reference): Allow default to be string
26835         expressions, not only literal strings.
26836
26837 2005-03-29  Vincent Celier  <celier@adacore.com>
26838
26839         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26840         file and the reference symbol file to be the same file.
26841
26842 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26843
26844         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26845         forbid conversion of a local access-to-subprogram type to a remote one.
26846
26847         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26848         equivalent type for a remote access-to-subprogram type, go back to the
26849         original RAS entity when displaying an error message, so the casing is
26850         the original source casing.
26851
26852 2005-03-29  Robert Dewar  <dewar@adacore.com>
26853
26854         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26855         on param update.
26856
26857 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26858
26859         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26860         subtype if code is being pre-analyzed, to prevent un-expanded
26861         references to protected formals, among others.
26862         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26863         interpretation that can be a call, include the result of the call as a
26864         possible interpretation of the dereference.
26865
26866         * sem_ch5.adb (Process_Bounds): Determine type of range by
26867         pre-analyzing a copy of the original range, and then analyze the range
26868         with the expected type.
26869
26870         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26871         with an overloaded prefix where not all interpretations yield an
26872         access to subprogram, do not rewrite node as a call.
26873         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26874         the node as a call once the context identifies the interpretation of
26875         the prefix whose call yields the context type.
26876         (Valid_Conversion): For the case of a conversion between
26877         local access-to-subprogram types, check subtype conformance using
26878         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26879         detailed error message.
26880
26881 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26882
26883         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26884         indicator, indicate that the formal can never be null.
26885         (Process_Formals): If a formal has a non_null indicator, insert the
26886         resulting subtype immediately before the enclosing subprogram decl,
26887         and not at the beginning of the corresponding declarative part, to
26888         prevent access before elaboration (Ada2005).
26889
26890 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26891
26892         PR ada/19956
26893         * utils.c (finish_record_type): Use variable_size when setting sizes.
26894
26895 2005-03-29  Robert Dewar  <dewar@adacore.com>
26896
26897         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26898         guarantee Unix style line terminators for the output files, even when
26899         running on windows.
26900
26901 2005-03-29  Robert Dewar  <dewar@adacore.com>
26902
26903         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26904         buffer if an exception is raised.
26905
26906 2005-03-29  Ed Falis  <falis@adacore.com>
26907
26908         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26909         VxWorks 653 1.4
26910
26911 2005-03-29  Robert Dewar  <dewar@adacore.com>
26912
26913         * sem_util.ads: Minor reformatting
26914         * gnat_rm.texi: Minor editing.
26915
26916 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26917
26918         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26919         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26920
26921 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26922
26923         * adaint.c (__gnat_portable_spawn): Adjust cast.
26924
26925 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26926
26927         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26928
26929 2005-03-17  Pascal Obry  <obry@adacore.com>
26930
26931         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26932         used.
26933
26934         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26935         Reimplement under Win32 using Win32 API.
26936
26937         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26938         this routine.
26939
26940 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26941
26942         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26943         (DECL_RENAMED_OBJECT): New accessor macro.
26944         (SET_DECL_RENAMED_OBJECT): New setter macro.
26945
26946         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26947         object in all cases.  Attach the renamed object to the VAR_DECL.
26948         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26949         field is not prescribed.
26950
26951         * misc.c (gnat_handle_option): Handle -gnatO separately.
26952         (gnat_print_decl) <VAR_DECL>: New case.
26953         Print the DECL_RENAMED_OBJECT node.
26954
26955         * lang.opt:  Declare separate -gnatO option.
26956
26957         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26958         pointer, replace it with the renamed object.
26959         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26960         pointer type if the source is not a fat pointer type whose underlying
26961         array has the same non-zero alias set as that of the destination array.
26962
26963 2005-03-17  Javier Miranda  <miranda@adacore.com>
26964
26965         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26966         (Get_Inheritance_Depth): Removed.
26967         (Set_Inheritance_Depth): Removed.
26968
26969         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26970         subprogram Get_Expanded_Name because it is not referenced by the
26971         frontend.
26972
26973         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26974         (CPP_Get_Inheritance_Depth): Removed.
26975         (CPP_Set_Inheritance_Depth): Removed.
26976
26977         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26978
26979 2005-03-17  Robert Dewar  <dewar@adacore.com>
26980
26981         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26982         3, since we now expect GCC 3 to do all the work.
26983
26984 2005-03-17  Javier Miranda  <miranda@adacore.com>
26985
26986         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26987         of one barrier to avoid wrong usage of this attribute.
26988
26989         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26990         First_Private_Entity.
26991
26992         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26993         the subprogram against wrong usage.
26994         Adapt the code to traverse the entities in the
26995         scope of a record_type because in addition to its usage regarding
26996         packages, this subprogram is also called by Expand_N_Freeze_Entity
26997         to install the visible declarations of the enclosing scope of a
26998         record_type_with_private to establish the proper visibility before
26999         freezing the entity and related subprograms.
27000
27001 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
27002
27003         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27004         entry formals.
27005
27006 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27007
27008         * exp_ch3.adb (Check_Attr): New subprogram.
27009         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27010         into a new Check_Attr subprogram, in order to provide a more
27011         explanatory error message (including the name of the missing attribute).
27012         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27013         subprogram determines whether a default implementation exists for a
27014         given stream attribute.
27015         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27016         Determine whether to generate a default implementation for each stream
27017         attribute separately, as this depends on the specific attribute.
27018
27019         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27020         limited extension where a stream attribute is missing for a limited
27021         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27022         generate a bogus reference to the missing attribute to prevent
27023         cascaded errors. Instead, generate a null statement.
27024
27025         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27026         available for a limited type if it has been specified for an ancestor
27027         of the type.
27028
27029 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
27030
27031         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27032         entity is an operator.
27033
27034 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27035
27036         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27037         spec, to make this predicate available to other units.
27038
27039         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27040         reimplementing it.
27041
27042         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27043         when no distribution runtime library is available.
27044
27045         * sem_res.adb, sem_dist.adb: Disable expansion of remote
27046         access-to-subprogram types when no distribution runtime library is
27047         available.
27048         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27049         predicate available to other units.
27050
27051         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27052         spec, to make this predicate available to other units.
27053
27054 2005-03-17  Vincent Celier  <celier@adacore.com>
27055
27056         * make.adb (Insert_Project_Sources): Make sure the Q is always
27057         initialized.
27058
27059         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27060         the default for the tree, not the global default naming.
27061
27062         * prj-proc.adb (Recursive_Process): No need to put the default naming
27063         in the project data, it's already there.
27064
27065 2005-03-17  Doug Rupp  <rupp@adacore.com>
27066
27067         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27068
27069         * 5xcrtl.ads: Renamed to...
27070         * s-crtl-vms64.ads: ...this new file
27071
27072 2005-03-17  Robert Dewar  <dewar@adacore.com>
27073
27074         PR ada/19519
27075         * namet.adb (Copy_One_Character): Set proper wide character encoding
27076         for upper half character if we have upper half encoding.
27077
27078 2005-03-17  Robert Dewar  <dewar@adacore.com>
27079
27080         * par.adb (Par): Improved msg for attempt to recompile predefined unit
27081
27082 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27083
27084         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27085         tagged limited type, the TSS is a newly built renaming declaration:
27086         insert it using Set_TSS, not Copy_TSS.
27087
27088 2005-03-17  Javier Miranda  <miranda@adacore.com>
27089
27090         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27091         Try_Object_Operation): Analyze the object that is accessible
27092         through the prefix of the subprogram call before we apply
27093         the transformation of the object-operation notation.
27094
27095 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
27096
27097         * s-taprob.adb (Initialize_Protection): Initialize the protected
27098         object's owner to Null_Task.
27099         (Lock): If pragma Detect_Blocking is in effect and the caller of this
27100         procedure is already the protected object's owner then Program_Error
27101         is raised. In addition the protected object's owner is updated.
27102         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27103         of this procedure is already the protected object's owner then
27104         Program_Error is raised.
27105         In addition the protected object's owner is updated.
27106         (Unlock): Remove the ownership of the protected object.
27107
27108         * s-taprob.ads (Protection): Add the field Owner, used to store the
27109         protected object's owner.
27110         This component is needed for detecting one type of potentially blocking
27111         operations (external calls on a protected subprogram with the same
27112         target object as that of the protected action). Document the rest of
27113         the components.
27114
27115         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27116         Initialize the protected object's owner to Null_Task.
27117         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27118         caller of this procedure is already the protected object's owner then
27119         Program_Error is raised.
27120         Do not raise Program_Error when this procedure is called from a
27121         protected action.
27122         (Unlock_Entries): Remove the ownership of the protected object.
27123         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27124         of this procedure is already the protected object's owner then
27125         Program_Error is raised.
27126         Do not raise Program_Error when this procedure is called from
27127         a protected action.
27128
27129         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27130         used to store the protected object's owner.
27131
27132         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27133         effect and this procedure (a potentially blocking operation) is called
27134         from whithin a protected action, Program_Error is raised.
27135         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27136         and this procedure (a potentially blocking operation) is called from
27137         whithin a protected action, Program_Error is raised.
27138
27139 2005-03-17  Vincent Celier  <celier@adacore.com>
27140             Nicolas Setton  <setton@adacore.com>
27141
27142         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27143         switch, not supported by the linker on Darwin. Add '_' before
27144         <library>init, as this character is added unconditionally by the
27145         compiler.
27146         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27147         correct one ".dylib". This fixes detection of the archive files when
27148         building library projects.
27149
27150 2005-03-17  Vincent Celier  <celier@adacore.com>
27151
27152         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27153         -gnat83, -gnat95 and -gnat05.
27154
27155 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
27156
27157         * gnat_ugn.texi: Document gnatmem restriction
27158
27159 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27160
27161         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27162         cleanup
27163
27164 2005-03-17  Robert Dewar  <dewar@adacore.com>
27165
27166         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27167         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27168         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27169
27170         * casing.adb: Comment improvements
27171
27172 2005-03-17  Pascal Obry  <obry@adacore.com>
27173
27174         * g-expect.adb: Minor reformatting.
27175
27176 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
27177
27178         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27179         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27180         to dependencies.
27181
27182 2005-03-15  Vincent Celier  <celier@adacore.com>
27183
27184         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27185         Add new parameter In_Tree to specify the project tree: needed
27186         by the project manager. Adapt to changes in project manager
27187         using new parameter In_Tree.
27188
27189 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
27190
27191         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27192         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27193         ada/bldtools to avoid make -jN failures.
27194
27195 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27196
27197         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27198         to NULL_TREE on entry.
27199
27200 2005-03-15  Robert Dewar  <dewar@adacore.com>
27201
27202         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27203         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27204         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27205         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27206         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27207         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27208         system-interix.ads, system-solaris-sparc.ads,
27209         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27210         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27211         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27212         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27213         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27214         Compiler_System_Version to be False.
27215
27216         * opt.ads: Add new flag Opt.Address_Is_Private
27217
27218         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27219         Add new parameter Compiler_System_Version to avoid checking for
27220         completeness of parameters when compiler is compiling itself.
27221         Allows old versions of GNAT to be compiled with new compiler.
27222
27223 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27224
27225         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27226         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27227         calling thread.
27228         (Stack_Base_Available): New flag.
27229         (Get_Page_Size): New overloaded functions imported from C.
27230         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27231         PROT_ON, PROT_OFF): New constants.
27232         (mprotect): New function imported from C.
27233         (pthread_teb_t): New record type.
27234
27235         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27236         (Create_Task): Account for the Yellow Zone and the guard page.
27237
27238 2005-03-15  Vincent Celier  <celier@adacore.com>
27239
27240         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27241         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27242         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27243         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27244         Library_File_Name_For): Add new parameter In_Tree
27245         to specify the project tree: needed by the project manager.
27246         Adapt to changes in project manager using new parameter In_Tree.
27247         Remove local imports, use functions in System.CRTL.
27248
27249         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27250         to use the project manager.
27251
27252         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27253         In_Tree to designate the project tree. Adapt to changes in the project
27254         manager, using In_Tree.
27255
27256         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27257         Copy_Interface_Sources): Add new parameter In_Tree to specify the
27258         project tree: needed by the project manager.
27259         (Build_Library): Check that Arg'Length >= 6 before checking if it
27260         contains "--RTS=...".
27261
27262         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27263         Library_File_Name_For): Add new parameter In_Tree to specify the
27264         project tree: needed by the project manager.
27265
27266         * prj.ads, prj.adb: Major modifications to allow several project trees
27267         in memory at the same time.
27268         Change tables to dynamic tables and hash tables to dynamic hash
27269         tables. Move tables and hash tables from Prj.Com (in the visible part)
27270         and Prj.Env (in the private part). Move some constants from the visible
27271         part to the private part. Make other constants deferred.
27272         (Project_Empty): Make it a variable, not a function
27273         (Empty_Project): Add parameter Tree. Returns the data with the default
27274         naming data of the project tree Tree.
27275         (Initialize): After updating Std_Naming_Data, copy its value to the
27276         component Naming of Project Empty.
27277         (Register_Default_Naming_Scheme): Use and update the default naming
27278         component of the project tree, instead of the global variable
27279         Std_Naming_Data.
27280         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27281         Tree is not defaulted, return the default naming data of the Tree.
27282         (Initial_Buffer_Size): Constant moved from private part
27283         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27284         variables initialized in procedure Initialize.
27285         (Add_To_Buffer): Add two in out parameters to replace global variables
27286         Buffer and Buffer_Last.
27287         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27288         functions.
27289         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27290         hash tables.
27291         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27292         for the project tree.
27293         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27294         constant at the beginning of the package spec, so that they cane be used
27295         in subprograms before their full declarations.
27296         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27297         (Empty_Project): Add parameter of type Project_Node_Ref
27298         (Private_Project_Tree_Data): Add component Default_Naming of type
27299         Naming_Data.
27300         (Buffer, Buffer_Last): remove global variables
27301         (Add_To_Buffer): Add two in out parameters to replace global variables
27302         Buffer and Buffer_Last.
27303         (Current_Packages_To_Check): Remove global variable
27304         (Empty_Name): Move to private part
27305         (No-Symbols): Make it a constant
27306         (Private_Project_Tree_Data): New type for the private part of the
27307         project tree data.
27308         (Project_Tree_Data): New type for the data of a project tree
27309         (Project_Tree_Ref): New type to designate a project tree
27310         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27311         for the project tree.
27312
27313         * prj-attr.ads: Add with Table; needed, as package Prj no longer
27314         imports package Table.
27315
27316         * prj-com.adb: Remove empty, no longer needed body
27317
27318         * prj-com.ads: Move most of the content of this package to package Prj.
27319
27320         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27321         designate the project node tree and Packages_To_Check to replace
27322         global variable Current_Packages_To_Check.
27323         Add new parameters In_Tree and Packages_To_Check to local subprograms,
27324         when needed. Adapt to changes in project manager with project node tree
27325         In_Tree.
27326
27327         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27328         project tree to most subprograms. Move tables and hash tables to
27329         private part of package Prj.
27330         Adapt to changes in project manager using project tree In_Tree.
27331
27332         * prj-makr.adb (Tree): New constant to designate the project node tree
27333         Adapt to change in project manager using project node tree Tree
27334
27335         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27336         display the Library_Src_Dir and the Library_Dir.
27337         Add new parameter In_Tree to designate the project node tree to most
27338         subprograms. Adapt to changes in the project manager, using project tree
27339         In_Tree.
27340         (Check_Naming_Scheme): Do not alter the casing on platforms where
27341         the casing of file names is not significant.
27342         (Check): Add new parameter In_Tree to designate the
27343
27344         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27345         designate the project tree.
27346         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27347
27348         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27349         to replace those that were in the private part of package Prj.
27350         Add new parameter In__Tree to designate the project node tree to most
27351         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27352         (Post_Parse_Context_Clause): When specifying the project node of a with
27353         clause, indicate that it is a limited with only if there is "limited"
27354         in the with clause, not necessarily when In_Limited is True.
27355         (Parse): Add new parameter In_Tree to designate the project node tree
27356
27357         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27358         designate the project node tree. Adapt to change in Prj.Tree with
27359         project node tree In_Tree.
27360
27361         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27362         tree In_Tree in the call to function Empty_Process to give its initial
27363         value to the project data Processed_Data.
27364         Add new parameters In_Tree to designate the project tree and
27365         From_Project_Node_Tree to designate the project node tree to several
27366         subprograms. Adapt to change in project manager with project tree
27367         In_Tree and project node tree From_Project_Node_Tree.
27368
27369         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27370         to replace those that were in the private part of package Prj.
27371         Add new parameter In_Tree to designate the project node tree to most
27372         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27373
27374         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27375         Project_Node_Tree_Ref to most subprograms.
27376         Use this new parameter to store project nodes in the designated project
27377         node tree.
27378         (Project_Node_Tree_Ref): New type to designate a project node tree
27379         (Tree_Private_Part): Change table to dynamic table and hash tables to
27380         dynamic hash tables.
27381
27382         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27383         the project tree to most subprograms. Adapt to changes in project
27384         manager using project tree In_Tree.
27385
27386         * makegpr.adb (Project_Tree): New constant needed to use project
27387         manager.
27388
27389 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27390
27391         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27392         for sigactions with SA_SIGINFO set. Call
27393         __gnat_adjust_context_for_raise before raising, to perform the
27394         potentially required adjustments to the machine context for the GCC
27395         unwinder.
27396
27397         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27398
27399         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27400         Adjust PC by one in the provided machine context.
27401         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27402         so that the handler is passed the context structure to adjust prior to
27403         the raise.
27404         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27405         SA_SIGINFO sigaction should look like. Call
27406         __gnat_adjust_context_for_raise before actually raising.
27407         (__gnat_adjust_context_for_raise): Default noop to help PC
27408         adjustments before raise from signal handlers.
27409         (__gnat_error_handler): Indirectly call a predicate function to
27410         determine if a condition should be resignaled or not.
27411         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27412         (__gnat_default_resignal_p): Default GNAT predicate.
27413
27414 2005-03-15  Doug Rupp  <rupp@adacore.com>
27415
27416         * adaint.c: Prefix #include of VMS system header files with vms/
27417         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27418         Do not define a dummy function "convert_addresses" under Darwin,
27419         not needed.
27420
27421         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27422         with vms/
27423
27424 2005-03-15  Nicolas Setton  <setton@adacore.com>
27425
27426         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27427         PPC/AIX.
27428
27429 2005-03-15  Robert Dewar  <dewar@adacore.com>
27430
27431         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27432         AI-386.
27433
27434         * a-retide.ads: Minor comment changes
27435
27436 2005-03-15  Robert Dewar  <dewar@adacore.com>
27437
27438         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27439         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27440         Realloc_For_Chunk to private part of package.
27441         New subprograms for AI-301
27442
27443         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27444         Get_Line procedure.
27445         Avoid unnecessary use of Get/Set_Wide_String
27446
27447 2005-03-15  Robert Dewar  <dewar@adacore.com>
27448
27449         PR ada/13470
27450         * a-stunau.ads, a-stunau.adb:
27451         Change interface to allow efficient (and correct) implementation
27452         The previous changes to allow extra space in unbounded strings had
27453         left this interface a bit broken.
27454
27455         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27456
27457         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27458         Minor reformatting (function specs)
27459
27460         * g-spitbo.adb: New interface for Get_String
27461
27462         * g-spitbo.ads: Minor reformatting
27463
27464         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27465
27466         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27467
27468 2005-03-15  Javier Miranda  <miranda@adacore.com>
27469             Robert Dewar  <dewar@adacore.com>
27470             Thomas Quinot  <quinot@adacore.com>
27471             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27472
27473         * atree.ads, atree.adb: Add support for Elist24 field
27474
27475         * atree.h: Fix wrong definition of Field27
27476         Add support for Elist16 field
27477         Add support for Elist24 field
27478
27479         * einfo.ads, einfo.adb (Abstract_Interfaces,
27480         Set_Abstract_Interfaces): New subprograms.
27481         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27482         subprograms.
27483         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27484         entities rather than a single node.
27485         (Is_Interface, Set_Is_Interface): New subprogram
27486         (First_Tag_Component): New syntesized attribute
27487         (Next_Tag_Component): New synthesized attribute
27488         (Write_Entity_Flags): Upgraded to write Is_Interface
27489         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27490         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27491         (Task_Body_Procedure): New subprogram to read this attribute.
27492         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27493         (Has_Controlled_Component): Now applies to all entities.
27494         This is only a documentation change, since it always worked to apply
27495         this to other than composite types (yielding false), but now this is
27496         official.
27497         Update documentation on Must_Be_Byte_Aligned for new spec
27498
27499         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27500         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27501         uses of the Access_Disp_Table attribute to reference the first dispatch
27502         table associated with a tagged type. As
27503         part of the implementation of abstract interface types,
27504         Access_Disp_Table has been redefined to contain a list of dispatch
27505         tables (rather than a single dispatch table).
27506         Similarly, upgrade all the references to Tag_Component by the
27507         new attribute First_Tag_Component.
27508         (Find_Inherited_TSS): Moved to exp_tss.
27509         Clean up test in Expand_N_Object_Declaration for cases
27510         where we need to do a separate assignment of the initial value.
27511         (Expand_N_Object_Declaration): If the expression in the
27512         declaration of a tagged type is an aggregate, no need to generate an
27513         additional tag assignment.
27514         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27515         is to be deleted.
27516         Bit packed array ops are only called if operands are known to be
27517         aligned.
27518         (Component_Equality): When returning an N_Raise_Program_Error statement,
27519         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27520         expects that only expressions have a bona fide type).
27521         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27522         determine the amount of data to be copied.
27523
27524         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27525         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27526             INTERFACE_TYPE_DEFINITION ::=
27527               [limited | task | protected | synchronized] interface
27528                 [AND interface_list]
27529
27530         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27531         interfaces.
27532         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27533         interfaces.
27534         (P_Interface_Type_Definition): New subprogram that parses the new
27535         syntax rule of Ada 2005 interfaces
27536         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27537         messages by the correct RENAMES (quotes removed).
27538
27539         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27540         attribute First_Tag_Component.
27541
27542         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27543         (Interface_List, Set_Interface_List): New subprograms.
27544         (Interface_Present, Set_Interface_Present): New subprograms.
27545         (Limited_Present, Set_Limited_Present): Available also in derived
27546         type definition nodes.
27547         (Protected_Present, Set_Protected_Present): Available also in
27548         record type definition and
27549         derived type definition nodes.
27550         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27551         (Task_Present, Set_Task_Present): New subprogram.
27552         (Task_Body_Procedure): Removed.
27553         (Set_Task_Body_Procedure): Removed.
27554         These subprogram have been removed because the attribute
27555         Task_Body_Procedure has been moved to the corresponding task type
27556         or task subtype entity to leave a field free to store the list
27557         of interfaces implemented by a task (for AI-345)
27558         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27559         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27560         expression flag Do_Range_Check
27561         (Exception_Junk): Change to Flag7 to accomodate above change
27562         (Box_Present, Default_Name, Specification, Set_Box_Present,
27563         Set_Default_Name, Set_Specification): Expand the expression
27564         "X in N_Formal_Subprogram_Declaration" into the corresponding
27565         two comparisons. Required to use the csinfo tool.
27566
27567         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27568         "with string" given.
27569
27570         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27571         expression given.
27572
27573         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27574         in 2005 mode
27575
27576         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27577         attribute Task_Body_Procedure rather than the old semantic field that
27578         was available in the task_type_declaration node.
27579
27580         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27581         interface type definitions.
27582         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27583         interfaces.
27584
27585         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27586         task type declaration.
27587         (P_Protected): Modified to handle the list of interfaces in a
27588         protected type declaration.
27589
27590 2005-03-15  Doug Rupp  <rupp@adacore.com>
27591             Vincent Celier  <celier@adacore.com>
27592
27593         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27594         (Gen_Output_File_C): Likewise.
27595         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27596
27597 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27598
27599         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27600         is an N_Raise_Constraint_Error node, create a new copy of it without
27601         going through a call to Duplicate_Subexpr.
27602
27603 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27604             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27605             Nicolas Setton  <setton@adacore.com>
27606             Ed Schonberg  <schonberg@adacore.com>
27607
27608         PR ada/19900
27609         PR ada/19408
27610         PR ada/19140
27611         PR ada/20255
27612         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27613         representation clause that prescribes a size not equal to the rounded
27614         size of their types.
27615         (gnat_to_gnu_entity, case E_Component): Always look at
27616         Original_Record_Component if Present and not the entity.
27617         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27618         of tagged extension types by not making field for components that are
27619         inside the parent.
27620         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27621         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27622         expression to the type of the object when the object is constant.
27623         Reverse defer_debug_incomplete_list before traversing it, so that trees
27624         are processed in the order at which they were added to the list. This
27625         order is important when using the stabs debug format.
27626         If we are deferring the output of debug information, also defer this
27627         output for a function return type.
27628         When adding fields to a record, prevent emitting debug information
27629         for incomplete records, emit the information only when the record is
27630         complete.
27631         (components_to_record): New parameter defer_debug.
27632         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27633         (gnat_to_gnu_field_decl): New function.
27634         (substitution_list, annotate_rep): Call it.
27635         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27636         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27637         No longer update discriminants to not be a COMPONENT_REF.
27638         (copy_alias_set): Strip padding from input type; also handle
27639         unconstrained arrays properly.
27640
27641         * gigi.h (write_record_type_debug_info): New function.
27642         Convert to use ANSI-style prototypes. Remove unused
27643         declarations for emit_stack_check, elab_all_gnat and
27644         set_second_error_entity.
27645         (gnat_to_gnu_field_decl): New decl.
27646
27647         * utils.c (write_record_type_debug_info): New function.
27648         (finish_record_type): Delegate generation of debug information to
27649         write_record_type_debug_info.
27650         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27651         (update_pointer_to): Fix pasto.
27652         (convert) <UNION_TYPE>: Accept slight type variations when
27653         converting to an unchecked union type.
27654
27655         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27656         replace the N_Freeze_Entity with a null statement.
27657
27658         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27659         within a constrained subcomponent of an enclosing record, place the
27660         freeze nodes in the scope stack entry for the enclosing record.
27661         (Undelay_Type): New Subprogram.
27662         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27663         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27664         within records; allow them to have freeze nodes if their base types
27665         aren't frozen yet.
27666
27667         * exp_util.adb (Remove_Side_Effects): Properly test for
27668         Expansion_Delayed and handle case when it's inside an
27669         N_Qualified_Expression.
27670
27671         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27672         Comes_From_Generic, to recognize accurately that the parent type in a
27673         derived type declaration can be traced back to a formal type, because
27674         it is one or is derived from one, or because its completion is derived
27675         from one.
27676         (Constrain_Component_Type): If component comes from source and has no
27677         explicit constraint, no need to constrain in in a subtype of the
27678         enclosing record.
27679         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27680         Minor change to propagate Is_Ada_2005 flag
27681
27682         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27683         Expansion_Delayed is False.
27684         (assoc_to_constructor): Ignore fields that have a
27685         Corresponding_Discriminant.
27686         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27687         function returns "by target", dereference the target pointer using the
27688         type of the actual return value.
27689         <all>: Be prepared for a null gnu_result.
27690         (processed_inline_subprograms): Check flag_really_no_inline
27691         instead of flag_no_inline.
27692         (set_second_error_entity): Remove unused function.
27693         (gnat_to_gnu, case N_Selected_Component): Call
27694         gnat_to_gnu_field_decl.
27695         (assoc_to_constructor): Likewise.
27696
27697 2005-03-15  Robert Dewar  <dewar@adacore.com>
27698             Ed Schonberg  <schonberg@adacore.com>
27699             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27700
27701         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27702         Must_Be_Byte_Aligned for cases where we do not need to use a
27703         System.Pack_nn unit.
27704
27705         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27706         as procedures.
27707         Needed now that we do some processing for IN parameters as well. This
27708         may well fix some unrelated errors.
27709         (Expand_Call): Handle case of unaligned objects (in particular those
27710         that come from packed arrays).
27711         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27712         renamed entity is an inherited operation, re-expand the call using the
27713         original operation, which is the one to call.
27714         Detect attempt to inline parameterless recursive subprogram.
27715         (Represented_As_Scalar): Fix to work properly with private types
27716         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27717         accurate estimate. Yields True in far fewer cases than before,
27718         improving the quality of code that depends on this test.
27719
27720         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27721         over both visible and private declarations to remove them from tree,
27722         and mark subprograms declared in package as eliminated, to prevent
27723         spurious use in subsequent compilation of generic units in the context.
27724
27725         * exp_util.ads: Minor cleanup in variable names
27726
27727         * sem_eval.ads, sem_eval.adb: Minor reformatting
27728         (Compile_Time_Known_Bounds): New function
27729
27730 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27731
27732         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27733         determining whether an unchecked conversion is needed for the argument
27734         of an initialization call.
27735
27736 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27737
27738         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27739         that appears in the instantiation rather than the internal subtype
27740         generated in the wrapper package, to avoid anomalies in gigi when the
27741         target is derived from a private type whose full view is an access type.
27742
27743 2005-03-15  Robert Dewar  <dewar@adacore.com>
27744
27745         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27746         not needed.
27747         Add documentation to replace the use of this flag
27748         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27749         the x86_64.
27750
27751 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27752
27753         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27754         here from exp_attr so it can be shared between exp_attr and exp_dist.
27755         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27756         all TSS names, not a subset thereof, and the previous name introduced
27757         an unnecessarily confusion that a distinction might exist between
27758         "OK" TSS names and some "not OK" TSS names.
27759
27760 2005-03-15  Doug Rupp  <rupp@adacore.com>
27761
27762         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27763         Command_Name.
27764
27765 2005-03-15  Pascal Obry  <obry@adacore.com>
27766             Eric Botcazou  <ebotcazou@adacore.com>
27767
27768         PR ada/20226
27769         PR ada/20344
27770         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27771         when IN_RTS. This is to work around a bootstrap path problem.
27772
27773         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27774         table and pass it to __gnat_install_SEH_handler().
27775         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27776
27777         * lang.opt: Fix specification of -fRTS=.
27778
27779 2005-03-15  Doug Rupp  <rupp@adacore.com>
27780             Bernard Banner  <banner@adacore.com>
27781             Vincent Celier  <celier@adacore.com>
27782             Arnaud Charlet  <charlet@adacore.com>
27783
27784         PR ada/6852
27785         This change works fine when gnatlib is built from the gcc directory,
27786         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27787         is not passed to ada/Makefile.in, so more work is needed by a
27788         Makefile/configure expert.
27789
27790         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27791         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27792         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27793         for Linux x86.
27794         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27795         Run ranlib on libgccprefix.a
27796         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27797         (ADA_INCLUDE_SRCS): Split Ada packages.
27798
27799 2005-03-15  Robert Dewar  <dewar@adacore.com>
27800
27801         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27802
27803         * impunit.adb: Add GNAT.UTF_32
27804
27805         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27806
27807         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27808         now uses GNAT.UTF_32).
27809
27810         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27811         capabilities for categorizing characters using Unicode categories
27812
27813 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27814
27815         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27816         instantiation that has been rewritten as a package body, retrieve spec
27817         to generate proper name for implicit_with_clause.
27818         (Install_Parents): Recognize a parent that is an instantiation but has
27819         been rewritten as a package declaration during analysis.
27820
27821 2005-03-15  Javier Miranda  <miranda@adacore.com>
27822             Ed Schonberg  <schonberg@adacore.com>
27823
27824         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27825         parameter reported some error we immediately return. This improves the
27826         behaviour of the frontend in case of errors.
27827         (Install_Parent, Remove_Parent): Introduce new flag
27828         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27829         ancestor of a generic child unit, when the child is being instantiated.
27830         (Inline_Instance_Body): If we are compiling the private
27831         part or the body of a child unit, restore the proper visibility of the
27832         parents after compiling the instance body.
27833
27834 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27835             Javier Miranda  <miranda@adacore.com>
27836
27837         PR ada/15608
27838         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27839         of a private type, in which case it is underlying_type that denotes
27840         the proper task. Also modified to use the new entity attribute
27841         that is directly available in the task type and task subtype entities
27842         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27843         arrays when other dimensions than the first are constrained by
27844         discriminants of an enclosing record.
27845         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27846         a combination of indexed and selected components, find ultimate entity
27847         and generate the appropriate reference for it, to suppress spurious
27848         warnings.
27849         (Note_Possible_Modification): If an entity name has no entity, return.
27850         (Is_Variable): A function call never denotes a variable.
27851         (Requires_Transient_Scope): For record types, recurse only on
27852         components, not on internal subtypes that may have been generated for
27853         constrained components.
27854
27855 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27856
27857         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27858         Eliminated as candidates for resolution. Both efficient, and avoids
27859         anomalies with operators declared in deleted code.
27860         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27861         expansion is disabled (as when compiling a generic) to prevent spurious
27862         warnings on prefixes of selected components.
27863
27864 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27865
27866         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27867         attached to a list before checking whether it appears in the private
27868         declarations of the current package.
27869         (Make_Inequality_Operator): Insert declaration in proper declarative
27870         list rather than just setting the Parent field, so that
27871         Is_Private_Declaration can handle it properly.
27872
27873 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27874
27875         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27876         a renaming a body, check that the renamed subprogram in not intrinsic.
27877         (Find_Direct_Name): If several use_visible entities hide
27878         each other, and the context is a predefined file compiled through
27879         rtsfind, keep only the entity that comes from a predefined file.
27880
27881 2005-03-15  Geert Bosch  <bosch@adacore.com>
27882
27883         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27884         long float padding to also cover AMD64 and IA64.
27885
27886 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27887
27888         * s-imgwch.adb: Add with and use of Interfaces.
27889         (Img_Wide_Character): Change type of Val to Unsigned_16.
27890         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27891
27892 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27893
27894         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27895
27896 2005-03-15  Robert Dewar  <dewar@adacore.com>
27897
27898         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27899
27900         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27901
27902         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27903
27904 2005-03-15  Robert Dewar  <dewar@adacore.com>
27905
27906         * s-bitops.adb, s-bitops.ads,
27907         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27908         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27909         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27910         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27911         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27912         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27913         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27914         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27915         reformatting.
27916
27917 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27918
27919         * utils2.c (build_binary_op): Fix typo.
27920
27921 2005-03-15  Doug Rupp  <rupp@adacore.com>
27922
27923         * s-crtl.ads (popen,pclose): New imports.
27924
27925 2005-03-15  Cyrille Comar  <comar@adacore.com>
27926
27927         * comperr.adb (Compiler_Abort): remove references to obsolete
27928         procedures in the bug boxes for various GNAT builds.
27929
27930 2005-03-15  Vincent Celier  <celier@adacore.com>
27931
27932         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27933
27934 2005-03-15  Geert Bosch  <bosch@adacore.com>
27935             Arnaud Charlet  <charlet@adacore.com>
27936             Robert Dewar  <dewar@adacore.com>
27937             Cyrille Comar  <comar@adacore.com>
27938             Sergey Rybin  <rybin@adacore.com>
27939
27940         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27941         too specific and long-winded to be appropriate for the GNAT User's
27942         Guide.
27943         Warn about use of GCC switches not documented in the GNAT User's Guide,
27944         as these may cause generated code to not conform to Ada semantics.
27945         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27946         Add documentation for -gnat95 and -gnat05 switches
27947         Remove paragraph documenting obsolete way to refer to third party
27948         libraries.
27949         Add a few references to Ada_05 that were missing.
27950         Update documentation on -gnatZ/-gnatL.
27951         Document limitation when using -m64 under Solaris.
27952         Change the "Name Casing" subsection of the pretty-printer section
27953         according to the changes in the dictionary processing.
27954
27955         * gnat_rm.texi: Document the Ada_05 pragma.
27956         Section on record representation clauses describes the new more
27957         relaxed rules about placement of large packed bit array components.
27958         Add documentation of GNAT.UTF_32
27959
27960 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27961
27962         * misc.c (gnat_post_options): Turn off structural
27963         aliasing for now.
27964
27965 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27966
27967         * system-linux-sparc.ads: Fix typo in previous commit.
27968
27969 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27970             Laurent Guerby  <laurent@guerby.net>
27971
27972         PR ada/20035
27973         * system-linux-sparc.ads: New.
27974         * Makefile.in: Add sparc linux entry.
27975
27976 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27977
27978         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27979         parameters as unused.
27980
27981 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27982         Partial merge from libada-gnattools-branch:
27983
27984         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27985         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27986         into code in gnattools/Makefile.in.  Remove direct dependencies on
27987         stamp-tools by tools clauses.
27988         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27989         * config-lang.in: Add gnattools to $lang_dirs.
27990
27991 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
27992
27993         PR ada/19942
27994         * utils.c (gnat_type_for_mode): Return null instead of ICE because
27995         we asked for an unknown mode.
27996
27997 2005-02-12  Richard Henderson  <rth@redhat.com>
27998
27999         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28000         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28001
28002 2005-02-10  Andreas Jaeger  <aj@suse.de>
28003
28004         * init.c (__gnat_initialize): Mark parameter as unused.
28005
28006 2005-02-09  Doug Rupp  <rupp@adacore.com>
28007
28008         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28009         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28010
28011 2005-02-09  Doug Rupp  <rupp@adacore.com>
28012
28013         * gnatchop.adb (dup, dup2),
28014         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28015
28016         * gnatlbr.adb (mkdir),
28017         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
28018
28019         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28020
28021 2005-02-09  Doug Rupp  <rupp@adacore.com>
28022
28023         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28024
28025 2005-02-09  Robert Dewar  <dewar@adacore.com>
28026             Thomas Quinot  <quinot@adacore.com>
28027             Javier Miranda  <miranda@adacore.com>
28028             Pascal Obry  <obry@adacore.com>
28029             Ed Schonberg  <schonberg@adacore.com>
28030             Doug Rupp  <rupp@adacore.com>
28031             Gary Dismukes  <dismukes@adacore.com>
28032             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28033
28034         * g-zstspl.ads: New file.
28035
28036         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28037
28038         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28039         Ada 95 mode
28040         Add definition of Wide_Wide_Space for AI-285
28041
28042         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28043         interface (to support Ada 95 and Ada 2005 units).
28044         Add Unbounded_IO files
28045         Add entries for Wide_Wide packages for AI-285
28046         Add list of containers packages to Ada 2005 unit list
28047
28048         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28049         support new Unbounded_IO package cleanly.
28050
28051         * g-utf_32.ads, g-utf_32.adb: New files.
28052
28053         * Makefile.rtl: Add entry for g-utf_32
28054         Add new files for Unbounded_IO
28055         Adjust make file for new AI-285 wide wide packages
28056         Add AI-302 containers to the run time.
28057
28058         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28059         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28060         subprograms for AI-301.
28061
28062         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28063
28064         * a-stunau.ads: Minor comment correction
28065
28066         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28067         etc.
28068         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28069         (Check_RPC): Update to match changes in expanded code.
28070         Clean up unused entity.
28071
28072         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28073         was not taken into account.
28074         This includes proper initialization with Normalize_Scalars.
28075         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28076         normalize scalars cases (particularly the latter) to do a better job
28077         of finding invalid representations.
28078
28079         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28080
28081         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28082         used
28083
28084         * exp_dist.adb: Add support for wide wide character type
28085         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28086         private part, generate stub bodies at the end of the private part,
28087         not the visible part.
28088         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28089         PolyORB support.
28090         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28091         generic wrapper to execute final processing after completing the
28092         expansion of the RPC receiver for an RACW.
28093
28094         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28095         packages and attributes.
28096         (Preset_Names): Addition of the new reserved words of Ada 2005,
28097         that is interface, overriding and synchronized.
28098         (Get_Pragma_Id): Give support to the use of the new reserved word
28099         "interface" as a pragma name.
28100         (Is_Pragma_Name): Give support to the use of the new reserved word
28101         "interface" as a pragma name.
28102         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28103         attribute implementation.
28104
28105         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28106         checks to entities that are output parameters of Asm operations.
28107         Handle the Stream_Size attribute.
28108         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28109
28110         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28111
28112         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28113         for second parameter being 0.0.
28114         Add support for wide wide character type.
28115         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28116
28117         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28118         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28119         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28120         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28121         for wide wide character cases.
28122
28123         * cstand.adb: Create entities for Wide_Wide_Character and
28124         Wide_Wide_String.
28125
28126         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28127         accordance with AI-258.
28128         Add new declarations for 16/32 bit C character types (Part of AI285)
28129
28130         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28131         (Obsolescent_Warning): New field
28132         (Rep_Clause): New local subprogram used to share code. Returns the rep
28133         clause for which the name is given in parameter.
28134         (Has_Stream_Size_Clause): New routine.
28135         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28136         (Address_Clause): Implementation is now using Rep_Clause.
28137         (Alignment_Clause): Idem.
28138         (Size_Clause): Idem.
28139
28140         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28141         entity in non-Ada 2005 mode and generate warning.
28142
28143         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28144         (Prag): Code cleanup. Remove old gnat pragma "overriding"
28145
28146         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28147         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28148         on the named unit if the pragma is not in the current compilation unit,
28149         so that elaboration calls in the current unit can set up an elaboration
28150         dependency on the named unit, as needed.
28151         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28152         subprogram as well as for subprograms declared within a package.
28153         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28154         pragma overriding.
28155
28156         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28157         to z) to avoid some instances of duplication for Wide_Wide packages.
28158
28159         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28160         characters.
28161
28162         * scn.adb: Char_Literal_Value field is now a Uint
28163
28164         * scng.adb: Significant rewrite to handle new Ada 2005 features
28165         allowing wide and wide wide characters in program text, e.g. for
28166         identifiers, as described in AI-285.
28167         (Set_Reserved): New procedure, makes setting up keywords cleaner.
28168         (Initialize_Scanner): Register the new reserved words of Ada 2005.
28169         (Scan): Give support to the new reserved words.
28170
28171         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28172         warning notifying that interface, overriding, and synchronized are
28173         new reserved words.
28174         (P_Pragma): Allow the use of the new reserved word "interface" as
28175         a pragma name.
28176
28177         * gnatls.adb, gnatbind.adb,
28178         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28179         identifiers named "interface" to "SAL_Interface".
28180
28181         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28182         (Structured Exception handling).
28183         (Gen_Main_C): Idem.
28184
28185         * bindgen.adb:
28186         (Gen_Main_Ada): Set the default exit code if specified.
28187         (Gen_Main_C): Likewise.
28188         Part of *DC20-006.
28189         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28190         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28191
28192         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28193         new -Xnnn switch.
28194
28195         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28196         has a collision with the new Ada 2005 "interface" reserved word.
28197
28198         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28199         generate a warning notifying that interface, overriding, and
28200         synchronized are new reserved words.
28201
28202         * scans.ads (Token_Type): Addition of the tokens corresponding to the
28203         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28204         and Tok_Synchronized.
28205
28206         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28207         "dispatching" rather than "primitive" operations, since dispatching
28208         calls are now allowed to abstract formal subprograms (which are not
28209         primitive).
28210         Char_Literal_Value field is now a Uint
28211         (Resolve_Slice): If the prefix is an access to an unconstrained array,
28212         compute the actual subtype of the designated object to impose the proper
28213         index constraints.
28214         (Resolve_Selected_Component): Do not insert an access check if the
28215         prefix is an access type: such a node is expanded into an explicit
28216         dereference, on which the access check is performed anyway. Removes
28217         expensive duplicate checks.
28218         (Resolve_Call): Use new flag Is_Obsolescent and field
28219         Obsolescent_Warning so that pragma Obsolescent works on library
28220         subprograms.
28221         Add support for wide wide character type
28222         (Resolve_Allocator): Replace the error message on wrong null-exclusion
28223         value by a warning message.
28224         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28225         as fixed-point, and one of the operands is non-static and universal, it
28226         can only be an illegal exponentiation operation, in which case there is
28227         no real value to retrieve.
28228
28229         * exp_strm.adb: Add support for wide wide character type
28230         (Build_Elementary_Input_Call): Compute the size of the stream element by
28231         querying the rep chain to find the Stream_Attribute attribute value.
28232         (Build_Elementary_Write_Call): Ditto.
28233
28234         * sem_aggr.adb: Char_Literal_Value field is now a Uint
28235         Add support for wide wide character type
28236         Replace the error messages on wrong null-exclusion value by warnings
28237         as described in Ada 2005.
28238         (Resolve_Extension_Aggregate): Document the fact that the error
28239         message on class-wide expressions in extensions aggregates.
28240
28241         * sem_case.adb: Add support for wide wide character type
28242
28243         * sem_ch13.adb: Add support for wide wide character type
28244         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28245
28246         * sem_ch3.adb: Add support for wide wide character type
28247         (Process_Subtype): If constraint is illegal for the type, set Ekind of
28248         now-useless Itype, to prevent cascaded errors on a compiler built
28249         without -gnatp.
28250
28251         * sem_ch8.adb: Add with and use of Sem_Disp.
28252         (Analyze_Subprogram_Renaming): Replace unclean uses of
28253         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28254         of Corresponding_Spec to Empty).
28255         (Attribute_Renaming): Replace use of Corresponding_Spec with
28256         Corresponding_ Formal_Spec and simplify condition.
28257         (Use_One_Package): Check that scope of homonym of identifier is defined,
28258         before checking whether it is a wrapper package.
28259         Add support for wide wide character type
28260
28261         * sem_eval.adb: Add support for wide wide character type.
28262         (Eval_Arithmetic_Op): Check for compile time known signed integer
28263         overflow in the non-static case.
28264         (Subtypes_Statically_Match): A formal scalar type and its base type do
28265         not statically match.
28266
28267         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28268         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28269         subtype).
28270         (Unit_Declaration_Node): Ditto.
28271         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
28272         has a packed array type, the prefix has been rewritten into a type
28273         conversion. Determine variable-ness from the converted expression.
28274         Handle wide wide character cases.
28275
28276         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28277
28278         * stringt.ads, stringt.adb: Handle full UTF-32 range.
28279         Remove ["0A"] from comment, since it can look like a line terminator.
28280         Currently we don't permit this, but this is under discussion by the
28281         ARG, and it is easy enough to use a different example.
28282
28283         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28284         handling UTF-32 encoding for wide wide character.
28285         Implement new brackets coding ["hhhhhhhh"]
28286         Add UTF-8 encodings for full UTF-32 range
28287
28288         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28289
28290         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28291         bit range Add full UTF-32 support.
28292         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28293         notify that constraint error will be raised at run-time
28294         because a null value is assigned to a null-excluding object.
28295         Remove some obsolete declarations and make Char_Code
28296         unsigned.
28297
28298         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28299         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28300         Rcheck subprograms.
28301
28302         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28303         wrong null-exclusion value by a warning message.
28304         (Enable_Range_Check): Do range check if the prefix is an
28305         explicit dereference whose designated object is an unconstrained array.
28306         Current algorithm for removing duplicate checks is over-eager in this
28307         case.
28308
28309         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28310         null-exclusion value by a warning message
28311
28312         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28313         completely. Add support for Uint2 field
28314
28315         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28316         exp_prag.adb: Char_Literal_Value field is now a Uint.
28317
28318         * exp_util.adb (Insert_Actions): Replace
28319         N_Formal_Subprogram_Declaration by
28320         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28321         Char_Literal_Value field is now a Uint.
28322
28323         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28324         defined for subprogram renaming declarations. When set, the field
28325         indicates the defining entity of a corresponding formal subprogram
28326         when the renaming corresponds to a formal subprogram association in an
28327         instantiation.
28328         (Set_Corresponding_Formal_Spec): New procedure to return
28329         Corresponding_Formal_Spec field.
28330         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28331         (which is now a subtype).
28332         Char_Literal_Value field is now a Uint
28333
28334         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28335         pointer to the base of the dispatch table.
28336         Minor changes to comments.
28337         (Controlling_Type): New function for determining the tagged type
28338         associated with a tagged primitive subprogram.
28339         (Expand_Dispatching_Call): Add support for a controlling actual that is
28340         directly a value of type Ada.Tag rather than a tagged object.
28341
28342         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28343         describing the new layout.
28344         (Dispatch_Table): The expander computes the actual array size, allocates
28345         the Dispatch_Table record accordingly, and generates code that displaces
28346         the base of the record after the Typeinfo_Ptr component. The access to
28347         these components is done by means of local functions.
28348         (Offset_To_Top): New function.
28349         (Typeinfo_Ptr): New function.
28350         (Get_TSD): Modified to access the new position of the TSD.
28351         (Set_TSD): Modified to save the TSD in its new position.
28352
28353         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28354         case of formal abstract subprograms. Add check and message for -gnat05.
28355         Update comments.
28356
28357         * sem_ch12.adb: Add with and use for Sem_Disp.
28358         (Analyze_Associations): Minor change from "=" to "in" for use of
28359         N_Formal_Subtype_Declaration (which is now a subtype).
28360         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28361         N_Formal_Subtype_Declaration (which is now a subtype).
28362         (Analyze_Formal_Subprogram): Add handling for
28363         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28364         dispatching, setting the controlling status of the formal parameters
28365         and result, and issuing an error if there is no controlling type for
28366         the formal subprogram.
28367         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28368         which is an unclean use of that field, we set the new field
28369         Corresponding_Formal_Spec to make the formal subprogram available to
28370         processing in Analyze_Subprogram_Declaration.
28371         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28372         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28373         Constrained, so that it is is does not statically match its anonymous
28374         base type.
28375
28376         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28377         abstract formal subprograms in error check for functions returning
28378         abstract types. Set scope of new designator for
28379         a parameterless subprogram, so that it is available when checking the
28380         body for nested subprograms, before full analysis of said body.
28381         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28382         subprogram only if inner one comes from source.
28383         (Analyze_Function_Call): If the call is given in object notation, the
28384         analysis of the name rewrites the node and analyzes it with the proper
28385         argument list. After analyzing the name, if the call has been rewritten
28386         and the result type is set, no further analysis is needed.
28387         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28388         mark in function specification, in a context where the formals are
28389         visible and hide outer homographs.
28390
28391         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28392         as the tagged type for the cases of abstract formal subprograms and
28393         renamings of those.  Clean up spec comments.
28394         (Check_Dispatching_Context): Add error message to indicate "abstract
28395         procedure", covering the case of a call to a formal abstract procedure
28396         that has statically tagged operands.
28397         (Check_Dispatching_Call): Check for the case of an actual given by
28398         a tag-indeterminate function call whose type is an ancestor of the
28399         containing call's associated tagged type. This situation can occur
28400         for inherited primitives with function defaults. In this case we
28401         use the tagged type's tag directly as the controlling argument for
28402         the calls.
28403         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28404
28405         * sprint.adb (Sprint_Node_Actual): Split
28406         N_Formal_Subprogram_Declaration into two alternatives for the new
28407         cases N_Formal_Abstract_Subprogram_Declaration and
28408         N_Formal_Concrete_Subprogram_Declaration.
28409         Char_Literal_Value field is now a Uint.
28410
28411         * trans.c: Get rid of junk Uint2 reference.
28412         Char_Literal_Value field is now a Uint.
28413         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28414         (gigi): Correct third arg to gimplify_body.
28415
28416         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28417         (TYPE_LANG_FLAG_0): Check for record or union.
28418
28419         * treepr.adb: Char_Literal_Value field is now a Uint
28420
28421         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28422         UI_From_CC.
28423
28424         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28425         Add full UTF-32 support
28426         Char_Code is now 32 bits
28427
28428         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28429         wide character UTF_32 line terminators.
28430         Initialize Main_Source_File to avoid error when no main
28431         source is loaded.
28432
28433         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28434         (Main_Source_File) when no main source has been loaded, to avoid
28435         potential crash.
28436
28437 2005-02-09  Robert Dewar  <dewar@adacore.com>
28438
28439         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28440         Fix name of Set routine
28441
28442         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28443         fixed packages.
28444
28445         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28446         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28447         fixed packages
28448
28449         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28450         forms of Get_Line subprograms for AI-301.
28451
28452         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28453         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28454         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28455         a-stwima.ads: Minor reformatting.
28456
28457 2005-02-09  Doug Rupp  <rupp@adacore.com>
28458             Thomas Quinot  <quinot@adacore.com>
28459
28460         * adaint.c, adaint.h
28461         [VMS] (to_ptr32): New function.
28462         (MAYBE_TO_PTR32): New macro.
28463         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28464         for pointer size.
28465         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28466         [VMS] (#define fork()): Remove since unneccessary.
28467         (__gnat_set_close_on_exec): New routine to support
28468         GNAT.OS_Lib.Set_Close_On_Exec.
28469
28470         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28471         the parent side as close-on-exec so that they are not inherited by the
28472         child.
28473
28474         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28475         set or clear the FD_CLOEXEC flag on a file descriptor.
28476
28477 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28478             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28479
28480         PR ada/19386
28481         * decl.c:
28482         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28483         on the field if Pragma Component_Alignment (Storage_Unit).
28484         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28485         side-effects as if it were a constant; also make SAVE_EXPR to protect
28486         side-effects.
28487         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28488         UNION_TYPE.
28489         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28490         (components_to_record): Test it.
28491         Fix improper usage of REFERENCE_CLASS_P.
28492
28493         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28494         RECORD_TYPE.
28495
28496         * utils2.c: Minor reformatting.
28497
28498         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28499         handle other cases like RECORD_TYPE.
28500
28501         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28502
28503 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28504
28505         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28506         component of an array of arrays in an assignment context, and the
28507         aggregate has component associations that require sliding on
28508         assignment, force reanalysis of the aggregate to generate a temporary
28509         before the assignment.
28510         (Must_Slide): Make global to the package, for use in Gen_Assign.
28511
28512 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28513
28514         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28515         unchecked union with no inferable discriminants, return a
28516         Raise_Program_Error node, rather than inserting it at the point the
28517         type is frozen.
28518         (Expand_Record_Equality, Component_Equality): Handle properly the case
28519         where some subcomponent is an unchecked union whose generated equality
28520         code raises program error.
28521
28522 2005-02-09  Doug Rupp  <rupp@adacore.com>
28523
28524         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28525         [VMS] (#define exit hack): Remove.
28526
28527 2005-02-09  Pascal Obry  <obry@adacore.com>
28528             Arnaud Charlet  <charlet@adacore.com>
28529
28530         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28531         address of the exception registration. The Win32 version of this
28532         routine calls __gnat_install_SEH_handler() to initialize the SEH
28533         (Structured Exception Handling) handler.
28534         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28535         SEH (Structured Exception Handling) now.
28536         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28537         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28538         preprocessor condition protecting the call to the extra eh setup
28539         subprogram, which is only available for the ppc target.
28540         (__gnat_clear_exception_count): replaced reference to
28541         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28542
28543         * seh_init.c: New file.
28544
28545         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28546         (GNATBIND_OBJS): Idem.
28547
28548         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28549         routine takes a new parameter (a pointer to the exception registration
28550         for the SEH (Structured Exception Handling) support.
28551
28552         * raise.h: (__gnat_install_SEH_handler): New prototype.
28553         Update copyright notice.
28554
28555         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28556         record and initialize it by calling __gnat_install_SEH_handler.
28557
28558 2005-02-09  Vincent Celier  <celier@adacore.com>
28559
28560         * make.adb (Gnatmake): Do not fail when the main project has no object
28561         directory.
28562
28563 2005-02-09  Doug Rupp  <rupp@adacore.com>
28564
28565         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28566         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28567         [VMS]: Add translations for g-enblsp.adb.
28568
28569         * s-asthan-vms.adb: Removed.
28570         * s-asthan-vms-alpha.adb: Added.
28571
28572 2005-02-09  Pascal Obry  <obry@adacore.com>
28573
28574         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28575         (LIBGNAT_OBJS): Add seh_init.o.
28576
28577 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28578
28579         PR ada/16592
28580         * Makefile.in: Link all gnat tools with -static-libgcc, since
28581         -shared-libgcc is now used by default on some systems (e.g. linux with
28582         recent binutils).
28583         Remove references to Makefile.prolog/generic, no longer used.
28584
28585 2005-02-09  Vincent Celier  <celier@adacore.com>
28586
28587         * prj-makr.adb (Process_Directory): Put file name in canonical case
28588         before matching against the patterns.
28589         If gnatname has been invoked as <prefix>-gnatname
28590         then invoke the compiler as <prefix>-gcc, not just "gcc".
28591
28592 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28593
28594         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28595         with expansion disabled. The actual subtype is needed among other
28596         places when the selected component appears in the context of a loop
28597         bound, and denotes a packed array.
28598         (Operator_Check): Always use the first subtype in the
28599         error message, to avoid the appearance of internal base types.
28600         (Transform_Object_Operation): Copy each actual in full
28601         to the parameter associations of the constructed call, rather than
28602         using the shallow copy mechanism of New_Copy_List. This ensures that
28603         the chaining of named associations is done properly.
28604         (Complete_Object_Operation): Rewrite node, rather than
28605         replacing it, so that we can trace back to the original selected
28606         component.
28607
28608         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28609         and calls that use object notation, if the called function is not
28610         declared  in a withed unit, place the elaboration constraint on the
28611         unit in the context that makes the function accessible.
28612         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28613         imposes an elaboration constraint between two packages.
28614
28615 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28616
28617         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28618         views of a private type after handling its private dependents, to
28619         maintain proper stack discipline between entry and exit from the
28620         package.
28621
28622 2005-02-09  Cyrille Comar  <comar@adacore.com>
28623
28624         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28625         Minor reformatting.
28626
28627 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28628
28629         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28630         fields for foreign threads.
28631
28632 2005-02-09  Doug Rupp  <rupp@adacore.com>
28633
28634         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28635         recursion warnings when compiled with -gnatdm.
28636
28637 2005-02-09  Robert Dewar  <dewar@adacore.com>
28638
28639         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28640         Slight fix to documentation of -gnaty with no parameters
28641
28642         * xr_tabls.ads: Add ??? comment for missing overall comment
28643
28644         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28645         we now use by default.
28646
28647         * xsnames.adb: Adjust end of file test to look for five space followed
28648         by '#' instead of six spaces. The format of xsnames.adb was modified
28649         in the last update.
28650
28651         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28652         identifier.
28653
28654         * clean.adb: Minor reformatting.
28655
28656         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28657         gnatname.adb: Minor reformatting
28658         Add 2005 to copyright output when utility is run
28659
28660         * csets.adb: Eliminate obsolete comment
28661
28662         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28663         Update comments.
28664
28665         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28666
28667 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28668
28669         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28670         the difference between compact and incompact layout and add the record
28671         representation clause to the example illustrating different layouts.
28672         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28673         component clauses").
28674
28675 2005-02-09  Florian Villoing  <villoing@adacore.com>
28676
28677         * gnat_ugn.texi: Fix typos.
28678         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28679         @file.
28680         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28681         in the generated documentation.
28682
28683 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28684
28685         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28686         longer supported.
28687         Update linker wrapper when linking with non GNU C++.
28688
28689 2005-02-09  Pascal Obry  <obry@adacore.com>
28690
28691         * gnat_ugn.texi:
28692         Document the procedure to debug the DllMain routine on Windows.
28693         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28694         ZCX mode.
28695         Document new BIND qualifer /RETURN_CODES=VMS.
28696
28697 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28698
28699         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28700         Edited gnatmetric chapter
28701
28702 2005-02-09  Robert Dewar  <dewar@adacore.com>
28703
28704         * gnat_rm.texi:
28705         Changes to document new wide wide character support
28706         For AI-285
28707         Update documentation on Normalize_Scalars and Initialize_Scalars
28708
28709 2005-02-09  Pascal Obry  <obry@adacore.com>
28710
28711         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28712
28713 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28714
28715         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28716         from the VxWorks kernel) that is needed for getting the active
28717         priority of the different tasks.
28718
28719         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28720         Use a pragma Elaborate_Body in the spec file instead.
28721         Noticed by code reading.
28722
28723 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28724
28725         * exp_util.ads: Minor correction in comment.
28726
28727 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28728
28729         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28730         since this procedure is now too complex to be worth inlining.
28731
28732 2005-02-09  Richard Henderson  <rth@redhat.com>
28733
28734         * utils.c (gnat_define_builtin): Remove.
28735         (gnat_install_builtins): Use build_common_builtin_nodes.
28736
28737 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28738
28739         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28740         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28741         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28742         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28743         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28744         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28745         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28746         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28747         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28748         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28749         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28750         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28751         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28752         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28753         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28754         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28755         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28756         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28757         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28758         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28759         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28760         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28761         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28762         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28763         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28764         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28765         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28766         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28767         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28768         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28769         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28770         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28771         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28772         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28773         library.
28774
28775 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28776
28777         * Makefile.in: Fix a-intnam.ads from previous commit,
28778         add 2005 to copyright.
28779         * a-intman-rtems.ads: Renamed to...
28780         * a-intnam-rtems.ads:
28781
28782 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28783
28784         * Makefile.in: Rename GNAT RTEMS specific files.
28785         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28786         5rosinte.ads, 5rparame.adb: Replaced by files below.
28787         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28788         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28789
28790 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28791             Laurent Guerby  <laurent@guerby.net>
28792
28793         PR ada/19488
28794         * 5rosinte.ads: Add No_Key constant.
28795         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28796         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28797
28798 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28799
28800         PR ada/19414
28801         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28802
28803 2005-01-20  Richard Henderson  <rth@redhat.com>
28804
28805         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28806         a-intnam-linux.ads and system-linux-alpha.ads.
28807         * a-intnam-linux-alpha.ads: Remove file.
28808         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28809         * system-linux-alpha.ads: New file.
28810
28811 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28812
28813         PR ada/13470
28814         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28815         set to the new string.
28816
28817 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28818
28819         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28820         to True.
28821
28822 2005-01-18  Richard Henderson  <rth@redhat.com>
28823
28824         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28825         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28826         for alpha-linux.
28827         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28828
28829 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28830
28831         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28832         (GCC_ZCX_Support): Likewise.
28833
28834 2005-01-11  Bastian Blank  <waldi@debian.org>
28835
28836         * system-linux-s390.ads: Define Preallocated_Stacks.
28837         * system-linux-s390x.ads: Likewise.
28838
28839 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28840
28841         * gnat_ugn.texi: Fix texi errors with null variables.
28842
28843 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28844
28845         * gen-soccon.c: New utility program to generate g-soccon.ads
28846         automatically.
28847
28848         * socket.c, gsocket.h: Split inclusion of system header files into a
28849         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28850
28851         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28852         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28853         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28854         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28855         should not be edited by hand anymore, but should be regenerated using
28856         gen-soccon.
28857
28858 2005-01-03  Robert Dewar  <dewar@adacore.com>
28859             Ed Schonberg  <schonberg@adacore.com>
28860             Vincent Celier  <celier@adacore.com>
28861
28862         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28863         on/off, since this is an obsolescent feature, for which we now generate
28864         a warning.
28865
28866         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28867         warning mode is set and obsolescent usage of this attribute occurs.
28868         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28869         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28870         predates, and partly motivates, the adoption of the AI.
28871         Implement new Ada 2005 attribute Mod
28872
28873         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28874         attribute Mod.
28875
28876         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28877
28878         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28879         pragma restrictions.
28880         New entry for Ada 2005 attribute Mod.
28881
28882         * par-prag.adb:
28883         Add recognition of new pragma Restrictions No_Dependence
28884         Recognize restriction No_Obsolescent_Features at parse time
28885
28886         * bcheck.adb: Add circuitry for checking for consistency of
28887         No_Dependence restrictions.
28888
28889         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28890         restrictions.
28891
28892         * restrict.ads, restrict.adb: Add subprograms to deal with
28893         No_Dependence restrictions.
28894
28895         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28896         restrictions.
28897
28898         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28899         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28900
28901         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28902         dummy parameter to scng instantiation.
28903         Needed for new restriction No_Obsolescent_Features
28904
28905         * scn.adb: (Obsolescent_Check): New procedure
28906         Needed for new restriction No_Obsolescent_Features
28907
28908         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28909         specified by AI-285, needed for implementation of AI-388 (adding greek
28910         pi to Ada.Numerics).
28911         Add new generic formal to scng, needed for new restriction
28912         No_Obsolescent_Features.
28913
28914         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28915
28916         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28917         restrictions lines.
28918         (Scan_ALI): When finding an unexpected character on an R line, raise
28919         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28920         Ignore_Errors is True, default restrictions are set and scanning of the
28921         ALI file continues with the next line. Also, when Bad_R_Line is raised
28922         and Ignore_Errors is True, skip to the end of le line.
28923
28924         * sem_ch10.adb: Check that explicit with's do not violate
28925         No_Dependence restrictions.
28926         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28927         illegal context clauses containing child units of instance.
28928
28929         * sem_prag.adb: Processing and checking for new No_Dependence
28930         restrictions.
28931         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28932         analyze and check the External argument.
28933
28934         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28935
28936 2005-01-03  Robert Dewar  <dewar@adacore.com>
28937
28938         * atree.adb: Add a fifth component to entities
28939         This allows us to add 32 flags and four new fields
28940
28941         * atree.ads: Add a fifth component to entities
28942         This allows us to add 32 flags and four new fields
28943
28944         * einfo.ads, einfo.adb: Document new fields and new flags now available
28945         Add routines for printing new fields
28946
28947         * treepr.adb: Call routines to print out additional fields if present
28948
28949 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28950
28951         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28952         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28953
28954         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28955         Remove gpr2make, replaced by gprmake.
28956         Remove references to gnatmem and libaddr2line.
28957         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28958         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28959         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28960         a-numaux-darwin.ads and a-numaux-darwin.adb
28961         Enable mlib-tgt-lynxos.adb on lynxos.
28962
28963         * Make-lang.in: Remove rules for gpr2make.
28964         When generating sdefault.adb, do not call Relocate_Path
28965         on S3 for function Target_Name, as it is not a path.
28966         Remove references to gnatmem and libaddr2line.
28967
28968         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28969         files.
28970
28971 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28972
28973         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28974         address is incompatible with its base type alignment constraints when
28975         this can be decided statically.
28976
28977 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28978
28979         * decl.c (compatible_signatures_p): New function. The intended purpose
28980         is to check if two function signatures for a call-site and a callee are
28981         compatible enough for the call to be valid. The underlying purpose is
28982         to check if a call to a mapped builtin is using the right interface.
28983         The current code actually does not check antyhing - this a placeholder
28984         for future refinements.
28985         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28986         builtin calls for convention Intrinsic.
28987
28988         * gigi.h (builtin_decl_for): Declare (new function).
28989
28990         * utils.c (gnat_install_builtins): Install the target specific builtins.
28991         (builtin_decl_for): New function, provide a dummy body for now.
28992
28993 2005-01-03  Geert Bosch  <bosch@adacore.com>
28994
28995         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28996         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28997         (Pred): Implement in terms of Succ.
28998
28999         * trans.c (convert_with_check): Reimplement conversion of float to
29000         integer.
29001
29002 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29003             Vincent Celier  <celier@adacore.com>
29004
29005         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29006         bounds can be negative, and must be declared Int, not Nat.
29007
29008         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29009         array is checked after using the index in the array.
29010
29011         * makegpr.adb (Add_Switches): Check if there is a package for the
29012         processor. If there is no package, do not look for switches.
29013
29014 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29015
29016         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29017         generation of predefined stream operations (specs and bodies) should
29018         proceed. Under various restrictions these subprograms must not be
29019         generated.
29020
29021 2005-01-03  Thomas Quinot  <quinot@adacore.com>
29022
29023         * exp_dist.adb:
29024         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29025         amount of PCS-specific code in RACW stubs generation.
29026         (Copy_Specification): Set Etype on copied formal parameter entities, as
29027         this information is needed for PolyORB stubs generation.
29028         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29029         variable Dynamic_Async.
29030         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29031         (Build_RPC_Receiver_Specification): Make generic again, as recent
29032         changes have allowed RPC receivers to have the same profile for both
29033         variants of the PCS.
29034         Reorganise RPC receiver generation to reduce differences between the
29035         structure of GARLIC and PolyORB RPC receivers.
29036         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29037         PCS-specific.
29038         Simplify elaboration code for RCI packages.
29039
29040         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29041         generation to reduce differences between the structure of GARLIC and
29042         PolyORB RPC receivers.
29043
29044         * s-stratt.adb: Fix typo in comment.
29045
29046 2005-01-03  Thomas Quinot  <quinot@adacore.com>
29047
29048         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29049         copied from Make_Init_Call).
29050
29051         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29052         reads and assignments on a temporary variable declared with appropriate
29053         discriminants.
29054
29055 2005-01-03  Robert Dewar  <dewar@adacore.com>
29056
29057         * i-c.adb (To_C): Raise CE if string is null and Append_Null
29058
29059 2005-01-03  Robert Dewar  <dewar@adacore.com>
29060
29061         * i-cstrin.adb (Update): Do not append a null in form called with a
29062         String. This avoids unintended behavior.
29063
29064 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29065
29066         PR ada/17527
29067         * init.c: Fix warnings on Free BSD section.
29068
29069 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29070
29071         PR ada/16949
29072         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29073         xsinfo.adb).
29074
29075 2005-01-03  Vincent Celier  <celier@adacore.com>
29076
29077         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29078         libraries when Unique_Compile is True (-u switch).
29079         (Gnatmake): ditto.
29080
29081 2005-01-03  Robert Dewar  <dewar@adacore.com>
29082
29083         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29084         upper case letter or underscore after W, as allowed by spec.
29085
29086 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29087
29088         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29089         darwin port by using proper type definitions from header files.
29090         Use SIGTERM instead of SIGABRT for SIGADAABORT.
29091
29092 2005-01-03  Robert Dewar  <dewar@adacore.com>
29093
29094         * par.adb: Enhance error message handling for configuration file
29095         pragmas.
29096
29097 2005-01-03  Robert Dewar  <dewar@adacore.com>
29098
29099         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29100         removed during the previous update (test properly for case of dividing
29101         largest negative number by -1, which generates overflow).
29102
29103 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29104             Sergey Rybin  <rybin@adacore.com>
29105
29106         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29107         to use as the defining identifier for a formal package.
29108         (Remove_Parent): If the instance takes place within (an instance of)
29109         a sibling, preserve private declarations of common parent.
29110
29111 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29112
29113         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29114         to determine whether one of the operands is a fixed-point type for
29115         which a user-defined multiplication or division operation might be
29116         defined.
29117
29118         * sem_res.adb (Valid_Conversion): The legality rules for conversions
29119         of access types are symmetric in Ada 2005: either designated type can
29120         be unconstrained.
29121
29122 2005-01-03  Vincent Celier  <celier@adacore.com>
29123
29124         * s-fileio.adb (Temp_File_Record): Change length of string component
29125         Name from L_tmpnam + 1 to max_path_len + 1.
29126
29127 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29128
29129         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29130         Self_Id.Deferral_Level = 0.
29131         (Do_Pending_Action): Move this function to the spec.
29132
29133         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29134         Do_Pending_Action explicitely when needed, in case we're using
29135         No_Abort restrictions.
29136
29137         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29138         deferral level since it will not get changed by the generated code.
29139         Keeping a default value of 1 would prevent some operations (e.g.
29140         select or delay) to proceed successfully.
29141
29142 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
29143             Robert Dewar  <dewar@adacore.com>
29144             Cyrille Comar  <comar@adacore.com>
29145
29146         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29147         porting guide chapter (vms version).
29148         Revised doc title (removed "for native platforms") and subtitle.
29149         Add discussion on warning flag for obsolescent features. First we
29150         note that it applies to obsolete GNAT features, which was previously
29151         omitted. Second we contrast the behavior with that of the new
29152         Ada 2005 AI-368 restriction No_Obsolescent_Features.
29153         Preliminary rewriting of GNAT & libraries chapter in order to take
29154         into account default project locations & new project manager
29155         capabilities.
29156
29157 2005-01-03  Robert Dewar  <dewar@adacore.com>
29158
29159         * cstand.adb (Create_Operators): Clean up format and documentation of
29160         unary and binary operator result tables. No change in code, just
29161         reformatting and addition of comments.
29162
29163         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29164         sem_ch2.adb: Minor reformatting
29165
29166         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29167         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29168         comments for Tree_Read and Tree_Write.
29169
29170 2005-01-03  Pascal Obry  <obry@adacore.com>
29171
29172         * exp_attr.ads: Minor reformatting.
29173
29174 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
29175
29176         * comperr.adb (Compiler_Abort): Add specialized message for GAP
29177         versions.
29178
29179 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29180
29181         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29182         whether the ancestor type is private, as may be the case with nested
29183         instantiations.
29184
29185 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
29186
29187         PR ada/19128
29188         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29189
29190 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
29191
29192         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29193         * utils2.c (build_unary_op): Likewise.
29194
29195 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29196
29197         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29198
29199 2004-12-19  Richard Henderson  <rth@redhat.com>
29200
29201         * trans.c (gigi): Update gimplify_body call.
29202
29203 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
29204
29205         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29206
29207 2004-12-07  Ed Falis  <falis@adacore.com>
29208
29209         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29210         current task being suspended.
29211
29212         * init.c (__gnat_clear_exception): added to reset VxWorks exception
29213         count.
29214         (__gnat_map_signal): removed test for current task being suspended.
29215
29216 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29217
29218         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29219         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29220         targets (such as AAMP).
29221
29222 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29223
29224         * atree.adb (Visit_Itype): Create a new name for the generated itype,
29225         because the back-end may otherwise treat it as a redefinition of the
29226         old symbol.
29227
29228 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
29229
29230         * back_end.adb (Scan_Back_End_Switches): Accept --param.
29231
29232         * lang-specs.h: Accept --param.
29233
29234 2004-12-07  Vincent Celier  <celier@adacore.com>
29235
29236         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29237         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29238         Current_Body_Suffix => Ada_Body_Suffix).
29239         Take into account Externally_Built attribute.
29240
29241         * clean.adb (In_Extension_Chain): Always return False when one of the
29242         parameter is No_Project.
29243         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29244         Ada_Language_Index).
29245         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29246         Process_Languages for procedure Parse).
29247
29248         * gnatcmd.adb (Carg_Switches): New table.
29249         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29250         Adapt to name changes in package Prj (Current_Spec_Suffix =>
29251         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29252
29253         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29254         Header_Num and function Hash are now declared in package Prj,
29255         not Prj.Com.
29256
29257         * prj.adb (Suffix_Of): New function.
29258         (Set (Suffix)): New procedure.
29259         (Hash): One function moved from Prj.Com
29260         (Is_Present, Language_Processing_Data_Of): New functions
29261         (Set): Two new procedures
29262         (Add_Language_Name, Display_Language_Name): New procedures
29263
29264         * prj.ads: (Suffix_Of): New function
29265         (Set (Suffix)): New procedure
29266         Add several types and tables for multi-language support.
29267         (Header_Num): Type moved from Prj.Com
29268         (Hash): Two functions moved from Prj.Com
29269         (Is_Present, Language_Processing_Data_Of): New functions
29270         (Set): Two new procedures
29271         (Add_Language_Name, Display_Language_Name): New procedures
29272         (Naming): Component name changes:
29273         Current_Spec_Suffix => Ada_Spec_Suffix,
29274         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29275         Impl_Suffixes, Supp_Suffixes.
29276         (Project_Data): New components: Externally_Built, Supp_Languages,
29277         First_Language_Processing, Supp_Language_Processing, Default_Linker,
29278         Default_Linker_Path.
29279
29280         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29281         new package Language_Processing with its attributes (Compiler_Driver,
29282         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29283         Binder_Driver, Default_Linker).
29284
29285         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29286         (Header_Num): Type moved to package Prj
29287
29288         * prj-env.adb: Adapt to name changes in package Prj
29289         (Current_Spec_Suffix => Ada_Spec_Suffix,
29290         Current_Body_Suffix => Ada_Body_Suffix).
29291
29292         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29293         default to the project path, except the "-" is one of the directories
29294         in env var ADA_PROJECT_PATH.
29295         (Current_Project_Path): Global variable, replacing Project_Path
29296         that was in the body of Prj.Part.
29297         (Project_Path): New function
29298         (Set_Project_Path): New procedure
29299         Initialize Current_Project_Path during elaboration of the package
29300         Remove dependency on Prj.Com, no longer needed
29301
29302         * prj-ext.ads (Project_Path): New function
29303         (Set_Project_Path): New procedure
29304
29305         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29306         suffix is defined for language <lang>.
29307         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29308         accessing directly the components of Naming.
29309         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29310         Reorganise of this package.
29311         Break procedure Check in several procedures.
29312
29313         * prj-nmsc.ads: Replace all procedures (Ada_Check,
29314         Other_Languages_Check and Language_Independent_Check) with a single
29315         procedure Check.
29316
29317         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29318         Process_Languages, no longer needed.
29319
29320         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29321         Current_Project_Path.
29322         Remove elaboration code, moved to the body of Prj.Ext
29323         Use new function Prj.Ext.Project_Path instead of old variable
29324         Project_Path.
29325         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29326         When comparing with project paths on the stack, first put the resolved
29327         path in canonical case.
29328         (Parse_Single_Project): Set the path name of the project file in the
29329         tree to the normalized path.
29330
29331         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29332         parameter Process_Languages, no longer needed.
29333         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29334         Other_Languages_Check.
29335
29336         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29337         to store the resolved canonical path of the project file.
29338         Remove dependency to Prj.Com, no longer needed
29339
29340         * prj-util.adb: Adapt to name changes in package Prj
29341         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29342         Ada_Body_Suffix).
29343
29344         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29345         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29346         Externally_Built, Include_Option, Language_Processing.
29347
29348         * makegpr.adb: Numerous changes due to changes in packages
29349         Prj and Prj.Nmsc.
29350
29351         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29352         default to the project path, except whe "-" is one of the directories
29353         in env var ADA_PROJECT_PATH.
29354         (Gnatls): In verbose mode, add the new section "Project Search Path:"
29355
29356 2004-12-07  Robert Dewar  <dewar@adacore.com>
29357
29358         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29359
29360         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29361         set -gnatR3m mode.
29362
29363         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29364         flag. No longer needed now that we handle this in gnat1drv.adb.
29365
29366         * repinfo.ads: Minor reformatting
29367
29368 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29369             Olivier Hainque  <hainque@adacore.com>
29370             Eric Botcazou  <ebotcazou@adacore.com>
29371
29372         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29373         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29374         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29375         of a bitfield, which we know is useless and causes trouble because of
29376         alignment implications.
29377
29378         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29379         BSS sections.
29380         (process_attributes): Clear DECL_COMMON again when a section attribute
29381         is present.
29382         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29383         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29384         (create_field_decl): Special case ADDRESSABLE negative to mean
29385         "no bitfield creation", to be used by make_aligning_type. Don't
29386         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29387         fields claimed addressable still have to be bitfields. Use
29388         value_factor_p instead of a raw binop construction to check for the
29389         position's alignment.
29390
29391 2004-12-07  Geert Bosch  <bosch@adacore.com>
29392
29393         * eval_fat.adb: Revert previous change.
29394
29395 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29396             Ed Schonberg  <schonberg@adacore.com>
29397
29398         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29399         with an implicit dereference as its prefix, use
29400         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29401         an explicit dereference. This ensures that a reference to the original
29402         prefix is generated, if appropriate.
29403
29404         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29405         dereference is rewritten to an explicit one, generate a reference to
29406         the entity denoted by its prefix using the original prefix node, so
29407         the dereference can be properly recorded as a read of the denoted
29408         access value, if appropriate.
29409
29410         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29411         emitting 'assigned but never read' warning on a variable on the basis
29412         that it has an access type.
29413         (Check_References): Emit unreferenced warning when the scope is a
29414         subprogram body.
29415
29416 2004-12-07  Robert Dewar  <dewar@adacore.com>
29417             Ed Schonberg  <schonberg@adacore.com>
29418
29419         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29420         intrinsic
29421
29422         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29423         leaving call unchanged.
29424         This deals with the case where the pragma Import specified
29425         an external name, to be handled by the back end.
29426
29427         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29428         subprogram which is Imported with convention Intrinsic if an
29429         External_Name argument is specified.
29430         (Process_Import_Or_Interface): Properly diagnose link name argument.
29431         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29432         with Sem_Ch6.Cannot_Inline.
29433         (Process_Inline): Provide separate warning for inapplicable inline
29434         pragma.
29435         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29436         treatment is uniform on different targets.
29437
29438 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29439
29440         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29441         construct is rewritten, preserve end label to permit source navigation.
29442
29443 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29444
29445         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29446         Specific_Build_Stub_Target): New subprograms.
29447         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29448         the PCS implementation used, using the above PCS-customized subprograms.
29449         Minor reformatting.
29450         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29451         for generation of DSA code targeted to the PolyORB PCS.
29452         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29453         implementation of the partition communication subsystem in ancillary
29454         subprograms.
29455         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29456         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29457         PCS-specific part of Add_Stub_Type.
29458         (Insert_Partition_Check): Use runtime library function to perform
29459         E.4(19) check.
29460
29461         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29462         (RE_Same_Partition): New entity, from s-parint.
29463
29464         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29465
29466 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29467
29468         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29469         Output the copyright message on a separate line from the version
29470         message.
29471
29472 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29473
29474         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29475         compile-time warning.
29476
29477 2004-12-07  Robert Dewar  <dewar@adacore.com>
29478
29479         * g-regpat.adb: (Match): Change a misuse of or to or else
29480
29481 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29482
29483         * lib-xref.adb:
29484         (Generate_Reference): Handle properly a reference to an entry formal,
29485          when an accept statement has a pragma Unreferenced for it.
29486
29487         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29488         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29489         the body, to ensure that warnings are properly emitted for each accept
29490         statement of a given task entry.
29491
29492 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29493
29494         * Makefile.in: Add support for foreign threads on VMS.
29495
29496 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29497
29498         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29499         Remove.
29500         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29501
29502         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29503
29504         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29505         exception.
29506         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29507
29508 2004-12-07  Robert Dewar  <dewar@adacore.com>
29509
29510         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29511         Prepend.
29512         (Remove_Next_Debug): Same fix
29513
29514         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29515         maintain back pointers now, though we did not used to, and comments
29516         were out of date).
29517         (Prepend): Remove pragma Inline.
29518         (Remove_Next): Same cleanup
29519
29520 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29521
29522         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29523         used to record an implicit dereference as a read operation on its
29524         prefix when operating under -gnatc. Necessary to avoid spurious
29525         'variable assigned but never read' warnings in that mode.
29526         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29527         is a non-overloaded implicit dereference, call the above subprogram to
29528         ensure proper recording of references.
29529
29530 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29531
29532         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29533         to be resolved later as part of Analyze_Iteration_Scheme's call to
29534         Make_Index.
29535
29536 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29537
29538         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29539         prefix is not a scalar type, place error message on prefix, not on
29540         type entity.
29541
29542 2004-12-07  Bernard Banner  <banner@adacore.com>
29543
29544         * vxaddr2line.adb: Add support for x86 vxworks
29545
29546 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29547
29548         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29549         documentation of the behaviour of these functions when passed an IP
29550         address that has no record in the system hosts database and no reverse
29551         record in the DNS.
29552
29553         * cstand.adb, a-tags.ads: Fix typos in comment.
29554
29555 2004-12-07  Robert Dewar  <dewar@adacore.com>
29556
29557         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29558         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29559         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29560         s-poosiz.ads: Minor reformatting
29561
29562         * make.adb: Minor reformatting
29563         Add some ??? comments asking for more comments
29564
29565         * s-poosiz.adb: Minor reformatting
29566         Add comments on alignment requirement
29567
29568         * sinfo.ads: Remove obsolete comment and fix typo.
29569
29570 2004-12-07  Vincent Celier  <celier@adacore.com>
29571             Sergey Rybin  <rybin@adacore.com>
29572
29573         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29574         Files" with the new tool and package names.
29575         Reformatting to suppress most of the warnings for line too long
29576         Document the new section "Project Search Path:" in the output of
29577         gnatls -v.
29578         Add gnatmetric section
29579
29580 2004-12-07  Vincent Celier  <celier@adacore.com>
29581
29582         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29583         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29584         and -eit to -ept. Added qualifier
29585         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29586
29587 2004-11-27  Andreas Schwab  <schwab@suse.de>
29588
29589         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29590
29591 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29592
29593         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29594         internal implementation unit GNAT.Sockets.Thin,
29595         as their usage for sockets is non-portable (using the read and write
29596         functions from the system runtime library is fine on UNIX but won't
29597         work under Windows).
29598
29599         * mingw32.h: Update copyright notice.
29600
29601 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29602
29603         * ada-tree.h: Minor reformatting of previous change to avoid lines
29604         longer than 79 characters.
29605
29606 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29607
29608         * tb-gcc.c: GCC infrastructure based implementation of
29609         __gnat_backtrace.
29610
29611 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29612
29613         * misc.c (gnat_post_options): Don't clear
29614         flag_inline_functions.
29615
29616 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29617
29618         PR ada/17986
29619         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29620         tree.
29621
29622 2004-11-21  Andreas Jaeger  <aj@suse.de>
29623
29624         * stylesw.adb: Change Style_Check_Subprogram_Order to
29625         Style_Check_Order_Subprograms.
29626
29627 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29628
29629         * adaint.h, adaint.c
29630         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29631         to avoid warnings.
29632         Add also a cast to kill another warning.
29633         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29634         parameter with the priority class of the parent process instead of
29635         always using the NORMAL_PRIORITY_CLASS.
29636         (__gnat_dup): New function.
29637         (__gnat_dup2): New function.
29638         (__gnat_is_symbolic_link): Enable the effective body of this
29639         function when __APPLE__ is defined.
29640
29641         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29642         Update comments.
29643
29644 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29645
29646         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29647         address of which may be used to represent "others" and "all others"
29648         choices in exception tables, instead of the current harcoded
29649         (void *)0 and (void *)1.
29650         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29651
29652         * gigi.h (others_decl, all_others_decl): New decls representing the
29653         new Others_Value and All_Others_Value objects.
29654         (struct attrib): Rename "arg" component as "args", since GCC expects a
29655         list of arguments in there.
29656
29657         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29658         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29659         addresses.
29660
29661         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29662         others_decl and all_others_decl instead of hardcoded dummy addresses
29663         to represent "others" and "all others" choices, which is cleaner and
29664         more flexible with respect to the possible eh pointer encoding policies.
29665
29666         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29667         (process_attributes): Account for the naming change of the "args"
29668         attribute list entry component.
29669
29670         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29671         cumulating attributes for different entities into a single list.
29672         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29673         attributes for the current entity and propagate first subtype
29674         attributes to other subtypes.
29675         <E_Procedure>: Attribute arguments are attr->args and not
29676         attr->arg any more.
29677         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29678         argument provided, as this is what GCC expects. Use NULL_TREE instead
29679         of 0 for trees.
29680
29681 2004-11-18  Robert Dewar  <dewar@adacore.com>
29682
29683         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29684         Minor reformatting througout (including new function specs)
29685         Add ??? comments asking for clarification.
29686
29687 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29688
29689         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29690         incomplete duplicate implementation of this subprogram from butil.
29691
29692 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29693
29694         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29695         procedures factors the common processing for building an RPC receiver
29696         for an RCI package or an RACW type.
29697         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29698         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29699         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29700         in use.
29701         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29702         Add_RACW_Features.
29703         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29704         Add_RAST_Features.
29705         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29706         distribution subprogram identifiers that are either subprogram numbers
29707         or strings.
29708         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29709         string distribution identifiers assigned to a given subprogram.
29710         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29711         (Add_RAS_Dereference_TSS): Add comments.
29712         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29713         is not referenced yet because it will be used by the PolyORB DSA
29714         implementation.
29715         (Insert_Partition_Check): Remove fossile code.
29716         (First_RCI_Subprogram_Id): Document this constant.
29717         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29718         RAS_Access TSS.
29719         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29720         replaced with calls to Get_Library_Unit_Name_String. Previously there
29721         were several instances of the same code in different locations in the
29722         compiler; this checkin completes the replacement of all of these
29723         instances with calls to a common subprogram.
29724         Minor reformatting.
29725
29726         * sem_dist.adb: Remove comment noting that RPC receiver generation
29727         should be disabled for RACWs that implement RASs.
29728         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29729
29730         * sem_util.ads, sem_util.adb (Has_Stream): New function
29731         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29732         qualified name of a library unit into the name buffer.
29733         (Note_Possible_Modification): Generate a reference only
29734         if the context comes from source.
29735
29736         * snames.ads (PCS_Names): New subtype corresponding to names of
29737         supported implementations of the Partition Communication Subsystem
29738         (PCS) (i.e. the runtime library support modules for the distributed
29739         systems annex).
29740
29741 2004-11-18  Robert Dewar  <dewar@adacore.com>
29742             Ed Schonberg  <schonberg@adacore.com>
29743
29744         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29745         (Has_Rep_Pragma): New function
29746         (Has_Attribute_Definition_Clause): New function
29747         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29748         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29749
29750         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29751
29752         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29753         (Expand_Pragma_Psect_Object): New procedure
29754         These procedures contain the revised and cleaned up processing for
29755         these two pragmas. This processing was formerly in Sem_Prag, but
29756         is more appropriately moved here. The cleanup involves making sure
29757         that the pragmas are properly attached to the tree, and that no
29758         nodes are improperly shared.
29759
29760         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29761         pragmas to Exp_Prag, which is more appropriate.
29762         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29763         check for duplicates Remove use of Is_Psected flag, no longer needed.
29764         Use new Make_String_Literal function with string.
29765
29766         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29767         that are functions return universal values, that have to be converted
29768         to the context type.
29769         Use new Make_String_Literal function with string.
29770         (Get_Stream_Convert_Pragma): New function, replaces the use of
29771         Get_Rep_Pragma, which had to be kludged to work in this case.
29772
29773         * freeze.adb: Use new Has_Rep_Pragma function
29774
29775         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29776         function with string.
29777         Use new Has_Rep_Pragma function.
29778
29779         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29780         string argument.
29781
29782 2004-11-18  Robert Dewar  <dewar@adacore.com>
29783
29784         * errout.ads, errout.adb: (First_Sloc): New function
29785
29786         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29787         check (-gnatyx) instead of being included as a redundant construct
29788         warning.
29789
29790         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29791         Style_Check_Order_Subprograms.
29792
29793         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29794         stylesw.adb: Add Style_Check_Xtra_Parens
29795
29796         * usage.adb: Add line for -gnatyx (check extra parens)
29797
29798         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29799
29800 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29801             Robert Dewar  <dewar@adacore.com>
29802
29803         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29804         discriminant of a constrained subtype, analyze the copy of the
29805         corresponding constraint, because in some cases it may be only
29806         partially analyzed.
29807         Removes long-lived ??? comments.
29808
29809         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29810         handled controlled or secondary-stack expressions within the
29811         iteration_scheme of a loop.
29812
29813         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29814         bounds that may contain functions calls, to prevent memory leaks when
29815         the bound contains a call to a function that uses the secondary stack.
29816         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29817         generate temporaries for loop bounds that might contain function calls
29818         that require secondary stack and/or finalization actions.
29819
29820         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29821         selected component and the selector is overloadable (not just a
29822         function) treat as function call, Analyze_Call will disambiguate if
29823         necessary.
29824         (Analyze_Selected_Component): Do not generate an actual subtype for the
29825         selected component if expansion is disabled. The actual subtype is only
29826         needed for constraint checks.
29827         (Analyze_Allocator): If restriction No_Streams is set, then do
29828         not permit objects to be declared of a stream type, or of a
29829         composite type containing a stream.
29830
29831         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29832         No_Streams no longer prohibits with'ing this package.
29833
29834         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29835         discriminants, but the parent base has unknown discriminants, there is
29836         no discriminant constraint to inherit. Such a discrepancy can arise
29837         when the actual for a formal type with unknown discriminants is a
29838         similar private type whose full view has discriminants.
29839         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29840         do not permit objects to be declared of a stream type, or of a
29841         composite type containing a stream.
29842
29843 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29844
29845         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29846         protected operations.
29847
29848         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29849         generated name, it complicates decoding in gdb and hinders debugging
29850         of protected operations.
29851         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29852         flag for the protected entry barrier function.
29853         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29854         flag for the protected entry function.
29855
29856 2004-11-18  Nicolas Setton  <setton@adacore.com>
29857
29858         * expect.c: Define __unix__ when __APPLE__ is defined.
29859
29860         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29861         Darwin-specific section.
29862
29863         * lang-specs.h: Change the placement of the %1 marker.
29864         Works around the fact that gcc adds -fPIC by default under Darwin.
29865
29866 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29867
29868         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29869         type of the object with the packed array type, set the Analyzed flag
29870         on the object if it is an entity or simple indexed component, to avoid
29871         spurious type errors.
29872
29873 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29874
29875         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29876         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29877         separate line from the version message.
29878
29879 2004-11-18  Ed Falis  <falis@adacore.com>
29880
29881         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29882         vthreads.
29883         (init_float): Eliminate initialization of floating point status for
29884         AE653. The instructions have no effect for vThreads.
29885
29886 2004-11-18  Vincent Celier  <celier@adacore.com>
29887
29888         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29889         gnatbind is invoked with -shared.
29890
29891 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29892
29893         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29894         for Detect_Blocking which is redundant with the check done within the
29895         procedure Protected_Single_Entry_Call.
29896         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29897         Detect_Blocking which is redundant with the check done within the
29898         procedure Protected_Single_Entry_Call.
29899
29900 2004-11-18  Vincent Celier  <celier@adacore.com>
29901
29902         * makegpr.adb (Compile): Put the compiling switches (in package
29903         Compiler and on the command line) immediately after "-c", instead of
29904         at the end of the command line invocation of the compiler, when
29905         compiling a non-Ada file.
29906         (Build_Global_Archive): When there is no need to rebuild the archive,
29907         set Global_Archive_Exists, so that the archive is passed to the linker
29908         if one is needed.
29909
29910 2004-11-18  Robert Dewar  <dewar@adacore.com>
29911             Sergey Rybin  <rybin@adacore.com>
29912
29913         * gnat_ugn.texi:
29914         Remove extra paren check from list of checks for redundant constructs
29915         Add documentation of new -gnatyx style check (check extra parens)
29916         Remove paragraph about gnatelim debug options.
29917
29918         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29919         objects rather than forbidding dependencies on the package Ada.Streams.
29920
29921         * sinfo.ads: Add ??? note that we should document pragmas passed to
29922         back end.
29923
29924         * g-expect.ads: Fix a few typos in the comments.
29925
29926 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29927
29928         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29929         warning message.
29930
29931 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29932
29933         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29934
29935 2004-11-07  Andreas Schwab  <schwab@suse.de>
29936
29937         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29938
29939 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29940
29941         PR ada/18228
29942         * Makefile.in (darwin): Set soext to .dylib.
29943
29944 2004-10-26  Vincent Celier  <celier@gnat.com>
29945             Thomas Quinot   <quinot@act-europe.fr>
29946
29947         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29948         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29949         there is no use of GNAT.Sockets.Constants.
29950         Remove remaining pragma Import for C_Write
29951         Remove C_Read and C_Write from internal implementation unit
29952         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29953         the read and write functions from the system runtime library is fine
29954         on UNIX but won't work under Windows).
29955
29956         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29957         (Check_Selector): Use C_Recv instead of C_Read.
29958         Selectors are the GNAT.Sockets abstraction to perform a select()
29959         call on a set of descriptors. To allow abortion of an ongoing
29960         select operation, some data is written to a dedicated socket that
29961         is always monitored.
29962         Under Windows, the write and read library functions cannot operate
29963         on sockets, so we need to use send and recv instead, which is portable
29964         across all supported platforms.
29965
29966         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29967         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29968         (using the read and write functions from the system runtime library is
29969         fine on UNIX but won't work under Windows).
29970
29971 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29972
29973         * mlib-tgt-darwin.adb: New file.
29974
29975         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29976         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29977         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29978         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29979         subprogram body.
29980
29981         * Makefile.in: Add support for building shared libraries under Darwin.
29982         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29983         the low level EH init subprogram to be called from __gnat_initialize.
29984
29985         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29986         indicates which options to pass to the archive indexer.
29987
29988         * mlib-utl.adb: Add support for calling ranlib with additional
29989         options. This is needed for instance under Mac OS X.
29990         (Ranlib_Options): New global variable, used to store the potential
29991         options to pass to ranlib.
29992         (Ar): Use Ranlib_Options when spawning ranlib.
29993         (Initialize): Set the value of ranlib option.
29994
29995 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29996
29997         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29998         instead of 8K, to reflect the real potential needs for stack-checking
29999         in the ZCX case.
30000
30001 2004-10-26  Pascal Obry  <obry@gnat.com>
30002
30003         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30004
30005         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30006         Windows only the initial thread stack size can be set so it is good to
30007         start we a low stack size.
30008         The OS will adjust the size as needed.
30009
30010 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
30011             Nicolas Setton  <setton@act-europe.fr>
30012
30013         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30014         "__unix__" instead of "unix".
30015         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30016         sections were just mistakenly ignored. The former is
30017         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30018         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30019         of hpux. This prevents an unwanted definition of the symbol
30020         convert_addresses in adaint.o.
30021
30022 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
30023
30024         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30025         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30026
30027 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30028
30029         * a-filico.ads, a-filico.adb: fix incorrect header.
30030
30031 2004-10-26  Javier Miranda  <miranda@gnat.com>
30032
30033         * a-ststio.ads: Fix typo in identifier
30034
30035 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30036
30037         * sem_ch4.adb: Minor reformatting.
30038
30039 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30040
30041         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30042         enabled, check the result of unary and binary operations when the
30043         expression is the right-hand side of an assignment.
30044
30045 2004-10-26  Vincent Celier  <celier@gnat.com>
30046
30047         * clean.adb (Delete): Do not output warnings when in quiet output and
30048         not in verbose mode.
30049         (Force_Deletions): New Boolean flag, defaulted to False
30050         (Delete): Only delete a file if it is writable, and when
30051         Force_Deletions is True.
30052         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30053         (Usage): Line for new switch -f
30054         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30055         own.
30056
30057 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30058
30059         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30060         JM type only if its size matches that of the wrapper.  When a size is
30061         prescribed and the field is not aliased, remove the wrapper of a JM
30062         type only if the size is not greater than that of the packed array.
30063         (gnat_to_gnu_entity): Change the extension of packed array wrappers
30064         from LJM to JM.
30065
30066 2004-10-26  Geert Bosch  <bosch@gnat.com>
30067
30068         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30069         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30070         (Pred): Implement in terms of Succ.
30071
30072 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30073
30074         * exp_aggr.adb (Safe_Component): An aggregate component that is an
30075         unchecked conversion is safe for in-place use if the expression of the
30076         conversion is safe.
30077         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30078         be expandable in place even if the aggregate does not come from source.
30079         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30080         designated object of an allocator in place, rather than building it
30081         first on the stack. The previous scheme forces a full copy of the array,
30082         and may be altogether unsusable if the size of the array is too large
30083         for stack allocation.
30084
30085 2004-10-26  Robert Dewar  <dewar@gnat.com>
30086
30087         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30088         compares if the component is atomic.
30089
30090         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30091         array assignment if the component type is atomic.
30092
30093 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30094             Eric Botcazou  <ebotcazou@act-europe.fr>
30095
30096         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30097         is aliased and is a by_reference type, do not pass by copy.
30098         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30099         detect whether the call is in the right side of an assignment or
30100         the expression of an object declaration.  Recurse on component
30101         association within aggregates.
30102         Call it in the condition that determines whether the temporary is
30103         necessary for correct stack-checking.
30104
30105 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30106
30107         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30108         RACW_Type, used in the PolyORB version.
30109         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30110         version and the GARLIC version.
30111
30112         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30113         Rename RCI_Info to RCI_Locator for better consistency between the
30114         GARLIC and PolyORB versions of the distributed systems annex.
30115         (DSA_Implementation_Name): This enumeration lists the possible
30116         implementations of the Partition Communication Subsystem for the
30117         Distributed Systems Annex (DSA). The three available implementations
30118         are the dummy stub implementation (No_DSA), and two versions based on
30119         two different distribution runtime libraries: GARLIC and PolyORB. Both
30120         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30121         technology.
30122         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30123         that organization.
30124
30125         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30126         between the GARLIC and PolyORB versions of the distributed systems
30127         annex.
30128         Remove RE_Unbounded_Reclaim_Pool since it is unused.
30129
30130 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
30131
30132         * gnat1drv.adb: Suppress calling the back end when
30133         Frontend_Layout_On_Target is true.
30134
30135 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30136
30137         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30138         Set_Read_Only): New subprograms.
30139         These new routines allow the user to set or unset the Owner execute
30140         and Owner write permission flags on a file.
30141
30142         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30143         GNAT.OS_Lib.Set_Executable instead of rolling our own.
30144
30145 2004-10-26  Matthew Gingell  <gingell@gnat.com>
30146
30147         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30148
30149 2004-10-26  Pascal Obry  <obry@gnat.com>
30150
30151         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30152         memory before the faulting page we properly test the process read
30153         access for this address using appropriate Win32 routine.
30154         (HPUX sections): guard with "__hpux__" instead of "hpux".
30155
30156 2004-10-26  Robert Dewar  <dewar@gnat.com>
30157
30158         * lib-xref.adb (Generate_Reference): Don't complain about reference to
30159         entry parameter if pragma Unreferenced set, since we do not properly
30160         handle the case of multiple parameters.
30161
30162 2004-10-26  Vincent Celier  <celier@gnat.com>
30163
30164         * prj-env.adb: (Contains_ALI_Files): New Boolean function
30165         (Ada_Objects_Path.Add): For a library project, add to the object path
30166         the library directory only if there is no object directory or if the
30167         library directory contains ALI files.
30168         (Set_Ada_Paths.Add.Recursive_Add): Ditto
30169
30170 2004-10-26  Vincent Celier  <celier@gnat.com>
30171
30172         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30173         extension of library projects.
30174
30175         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30176         path defaults to ".:<prefix>/lib/gnat".
30177         (Parse): For an extending all project, allow direct import of a project
30178         that is virtually extended.
30179
30180         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30181         the specified name is directly imported, return its ID. Otherwise, if
30182         an extension of this project is imported, return the ID of the
30183         extension.
30184
30185 2004-10-26  Robert Dewar  <dewar@gnat.com>
30186
30187         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30188         (Sub3): New procedure, used by Scaled_Divide
30189         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30190         correct more than one instance of failure to propagate carries
30191         correctly.
30192         (Double_Divide): Handle overflow case of largest negative number
30193         divided by minus one.
30194
30195         * s-arit64.ads (Double_Divide): Document that overflow can occur in
30196         the case of a quotient value out of range.
30197         Fix comments.
30198
30199 2004-10-26  Robert Dewar  <dewar@gnat.com>
30200
30201         * s-bitops.adb (Bit_Eq): Remove redundant check.
30202
30203         * s-bitops.ads: Minor comment updates
30204         Change some occurrences of Address to System.Address
30205
30206         * s-carsi8.ads: Fix minor cut-and-paste error in comments
30207
30208 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30209
30210         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30211         accessibility check to prefix that is a protected operation.
30212
30213 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30214
30215         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30216         empty, post message on stub.
30217
30218 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30219             Javier Miranda  <miranda@gnat.com>
30220
30221         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30222         current instance appears within a unit that is directly in the context
30223         of the main unit.
30224         Used to determine whether the body of the instance should be analyzed
30225         immediately after its spec, to make its subprogram bodies available
30226         for front-end inlining.
30227         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30228         constraint is not allowed on the component type (AARM 12.5.3(3))
30229
30230 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30231
30232         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30233         'Storage_Pool): enhance, document & limit detection of non-sharable
30234         internal pools.
30235
30236         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30237
30238         * s-pooglo.ads: Add more documentation now that this pool is properly
30239         documented.
30240
30241 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30242
30243         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30244         or protected type with discriminants, do not constrain the
30245         corresponding record type if the subtype declaration has no
30246         discriminant constraints. This can be the case in source code, or in
30247         the subtype declaration created to rename an actual type within an
30248         instantiation.
30249
30250 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30251
30252         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30253         different kind of stub (possibly wrong name for file), do not check
30254         for conformance.
30255         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30256         includes call to some function that returns an unconstrained type, do
30257         not inline.
30258
30259 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30260
30261         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30262         appear in the code for the main unit. Dependencies among units in the
30263         context of the main unit are established when those other units are
30264         compiled. Otherwise spurious elaboration constraints can generate
30265         incorrect elaboration circularities.
30266
30267 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30268             Ed Schonberg   <schonberg@gnat.com>
30269
30270         * sem_util.adb (Is_Aliased_View): Defend against the case where this
30271         subprogram is called with a parameter that is not an object name. This
30272         situation arises for some cases of illegal code, which is diagnosed
30273         later, and in this case it is wrong to call Is_Aliased, as that might
30274         cause a compiler crash.
30275         (Explain_Limited_Type): Refine previous fix to include
30276         inherited components of derived types, to provide complete information.
30277
30278         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30279         is the prival for a protected object.
30280         It is necessary to mark this entity as a variable, in addition to
30281         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30282         modified to avoid checking the Aliased flag on entities that are not
30283         objects. (Checking that flag for non-objects is erroneous and could
30284         lead to a compiler crash).
30285
30286 2004-10-26  Robert Dewar  <dewar@gnat.com>
30287
30288         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30289         X_Frac = 0.5, then we know that the number X must be positive.
30290         (Succ): Remove the same redundant test, and also fix the primary test
30291         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30292         Minor reformatting
30293         (Decompose): Add fuller comments to spec
30294
30295 2004-10-26  Pascal Obry  <obry@gnat.com>
30296
30297         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30298         validity (process must have read access). Set to 0 in all other cases.
30299         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30300         violation on Win32.
30301         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30302         segmentation violation.
30303
30304 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30305
30306         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30307         whose type is a constructed subtype of an aliased object with an
30308         unconstrained nominal subtype, convert the actual to the constructed
30309         subtype before taking its address.
30310
30311 2004-10-26  Vincent Celier  <celier@gnat.com>
30312
30313         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30314         (Is_Path_Name_Case_Sensitive): New function
30315
30316         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30317         (Base_Name, Simple_Name, Current_Directory, Compose,
30318         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30319         the result.
30320
30321 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
30322             Vasiliy Fofanov  <fofanov@act-europe.fr>
30323             Vincent Celier   <celier@gnat.com>
30324
30325         * gnat_ugn.texi: Generalize "finding memory problems" section into a
30326         "memory management issues" section and document some of the useful
30327         memory pools provided as part of the GNAT library.
30328         Remove "virtual" from declaration of A::method2 in
30329         the simple example of Ada/C++ mixed system.
30330         Library Projects may be virtually extended: their virtual extensions
30331         are not Library Projects.
30332         Added section on extending project hierarchies.
30333
30334 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30335
30336         * adaint.c (__gnat_get_libraries_from_registry): Cast value
30337         to LPBYTE.
30338         (__gnat_portable_spawn): Remove const.
30339
30340         * mingw32.h (MAXPATHLEN): Check for previous definition.
30341
30342 2004-10-17  Matthias Klose  <doko@debian.org>
30343
30344         * gnatvsn.ads: Set gnat library version to 4.0.
30345
30346 2004-10-05  Vincent Celier  <celier@gnat.com>
30347
30348         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30349
30350 2004-10-04  Laurent Guerby  <laurent@guerby.net>
30351
30352         PR ada/15156
30353         * Makefile.in: Define and use RANLIB_FLAGS.
30354
30355 2004-10-04  Pascal Obry  <obry@gnat.com>
30356
30357         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30358         other x86 platforms).
30359
30360 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30361
30362         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30363         in general and triggers stack alignment adjustment for thread entry
30364         points on targets where this is necessary.
30365
30366 2004-10-04  Bernard Banner  <banner@gnat.com>
30367
30368         PR ada/13897
30369         * Makefile.in: Add section for powerpc linux
30370         Add variant i-vxwork-x86.ads
30371
30372         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30373
30374 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30375
30376         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30377         table registration calls when need be. Ensures no reference to the crt
30378         ctors symbol are issued in the SJLJ case, which avoids possible
30379         undefined symbol errors in the case of modules to be statically linked
30380         with the kernel.
30381
30382 2004-10-04  Javier Miranda  <miranda@gnat.com>
30383
30384         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30385         in-line the code corresponding to subprogram Analyze_Actuals. In
30386         addition, analyze the actuals only in case of subprogram call.
30387
30388 2004-10-04  Ed Falis  <falis@gnat.com>
30389
30390         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30391
30392 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30393
30394         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30395         in the documentation.
30396
30397 2004-10-04  Robert Dewar  <dewar@gnat.com>
30398
30399         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30400         IF and CASE.
30401         (Analyze_Block_Statement): Add circuitry to detect following dead code
30402         (Check_Unreachable_Code): Handle case of block exit
30403
30404 2004-10-04  Robert Dewar  <dewar@gnat.com>
30405
30406         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30407         (XMatchD): Avoid warning for Logic_Error call
30408
30409 2004-10-04  Robert Dewar  <dewar@gnat.com>
30410
30411         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30412         consider expressions buried within a procedure actual to be an actual.
30413         This caused some blowups with uses of packed slices within a procedure
30414         actual.
30415
30416 2004-10-04  Robert Dewar  <dewar@gnat.com>
30417
30418         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30419         longer need to be initialized to zero.
30420         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30421         initialized to zero.
30422
30423         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30424         considered valid, even if the representation is modular. That's correct
30425         now that we no longer initialize packed modular arrays to zero.
30426
30427         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30428         suffixes. These are now documented as the only cases in which the
30429         debugger ignores outer records.
30430         Previously, the spec allowed arbitrary suffixes for this purpose.
30431         Change name of LJM to JM for packed array pad records
30432         Create separate section on packed array handling, and add a whole new
30433         set of comments to this section describing the situation with packed
30434         modular types and justification requirements depending on endianness.
30435
30436 2004-10-04  Robert Dewar  <dewar@gnat.com>
30437
30438         * a-except.adb: Add a comment for last change
30439
30440         * einfo.ads: Minor spelling correction in comment
30441
30442         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30443
30444         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30445         messages.
30446
30447         * sem_util.ads: Minor comment update
30448
30449 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30450
30451         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30452         Inline_Always when in Configurable_Run_Time mode.
30453
30454         * sem_prag.adb (Process_Convention): If entity is an inherited
30455         subprogram, apply convention to parent subprogram if in same scope.
30456         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30457         when in Configurable_Run_Time mode.
30458
30459 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30460
30461         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30462         class_wide type after component list has been inherited.
30463
30464 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30465
30466         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30467         Denotes_Previous_Actual, to handle properly the case of a private
30468         actual that is also the component type of a subsequent array actual.
30469         The visibility status of the first actual is not affected when the
30470         second is installed.
30471         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30472         make fully recursive the treatment of formals of packages declared
30473         with a box.
30474         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30475         the above on exit from an instantiation.
30476         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30477         current instantiation which is now complete.
30478         (Analyze_Package_Instantiation): No instantiated body is needed if the
30479         main unit is generic. Efficient, and avoid anomalies when a instance
30480         appears in a package accessed through rtsfind.
30481
30482 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30483
30484         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30485         do not generate a declaration for a temporary if the call is part of a
30486         library-level instantiation.
30487
30488 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30489
30490         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30491         searching for a limited component to flag.
30492
30493         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30494         expansion of Input, to account for the fact that the implicit call
30495         generated by the attribute reference must freeze the user-defined
30496         stream subprogram. This is only relevant to 'Input, because it can
30497         appear in an object declaration, prior to the body of the subprogram.
30498
30499         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30500         expansion can proceed and further errors uncovered.
30501         (Minor clean up): Fix cases of using | instead of \ for continuation
30502         messages.
30503
30504 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30505
30506         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30507
30508         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30509         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30510         Use gcc_assert and gcc_unreachable.
30511
30512         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30513         specified alignment before validating size.
30514         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30515         stripped-down declaration for the type of the inner field when making
30516         a JM type.
30517
30518         * utils.c (finish_record_type): Do not compute the size in units
30519         incrementally. Instead compute it once for the rep clause case.
30520         Use gcc_assert and gcc_unreachable.
30521
30522 2004-10-04  Vincent Celier  <celier@gnat.com>
30523
30524         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30525         in file name.
30526         (Is_Valid_Path_Name): Take '/' as a directory separator.
30527
30528 2004-10-04  Vincent Celier  <celier@gnat.com>
30529
30530         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30531         (Extended_Project) only if Extended_Project is defined, to avoid
30532         assertion error.
30533         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30534         resolved path.
30535         (Parse_Single_Project): Ditto.
30536
30537         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30538         Add_To_Project_Path for virtual projects.
30539
30540 2004-10-04  Vincent Celier  <celier@gnat.com>
30541
30542         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30543         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30544         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30545         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30546         parameter Options_2.
30547
30548         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30549         Build_Dynamic_Library with an empty Options_2.
30550
30551         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30552         default anymore.
30553
30554         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30555         directory separator, if any.
30556         (Gprmake): Do not allow mains on the command line for library projects.
30557         Do not attempt to link when the project is a library project.
30558         (Library_Opts): New table to store Library_Options.
30559         (Build_Library): If Library_Options is specified, pass these options
30560         when building a shared library.
30561
30562 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30563
30564         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30565         the end of this procedure now that the unlock operation was inserted
30566         by the expander.
30567
30568 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30569
30570         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30571         corresponding to the Preallocated_Stacks flags in System.
30572         (Get_Target_Parameters): Including the processing for
30573         Preallocated_Stacks.
30574
30575         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30576         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30577         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30578         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30579         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30580         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30581         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30582         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30583         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30584         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30585         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30586         used to signal whether the compiler creates the required stacks and
30587         descriptors for the different tasks (when True) or it is done by the
30588         underlying operating system at run time (when False).
30589         It is initially set to False in all targets.
30590
30591         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30592         if it is supported by the target.
30593         (Make_Task_Create_Call): Pass the stack address if it has been
30594         previously created. Otherwise pass a Null_Address.
30595
30596         * snames.adb: Add _stack.
30597
30598         * snames.ads: Add Name_uStack. Required to allow the expander to
30599         statically allocated task stacks.
30600
30601         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30602         Stack_Address argument.
30603         Check that its value is equal to Null_Address because this target does
30604         not support the static stack allocation.
30605
30606 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30607
30608         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30609         and error messages
30610
30611 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30612
30613         * exp_dist.adb: Split declaration of asynchronous flag out of
30614         Add_RACW_Read_Attribute.
30615         Minor reformatting for better alignment with PolyORB version.
30616         Store the entity for the asynchronous flag of an RACW, rather than the
30617         expression, in the asynchronous flags table. This will allow this flag
30618         to be used in other subprograms beside Add_RACW_Read_Attribute.
30619
30620 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30621
30622         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30623         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30624         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30625         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30626         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30627         sockets constant MSG_NOSIGNAL (Linux-specific).
30628         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30629         all Send operations.
30630         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30631         from trigerring SIGPIPE.
30632         Rename components to avoid clash with Ada 2005 possible reserved
30633         word 'interface'.
30634         (Check_Selector): When the select system call returns with an error
30635         condition, propagate Socket_Error to the caller.
30636
30637 2004-10-01  Jan Hubicka  <jh@suse.cz>
30638
30639         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30640
30641 2004-09-23  Robert Dewar  <dewar@gnat.com>
30642
30643         PR ada/17540
30644         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30645         instead do this at freeze time (we won't do it if there is an address
30646         clause).
30647         Change "pragma inline" to "pragma Inline" in information and error
30648         messages.
30649         Minor reformatting.
30650
30651         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30652         right way of doing things after all.
30653         (Freeze_Entity): For object, set Is_Public for imported entities
30654         unless there is an address clause present.
30655
30656 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30657
30658         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30659         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30660         ensures proper handling of types with rep clauses, which might have
30661         their TYPE_SIZE set already.
30662
30663 2004-09-21  Robert Dewar  <dewar@gnat.com>
30664
30665         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30666         packed array types in both little- and big-endian cases. This change
30667         ensures that we no longer count on the unused bits being initialized
30668         for such types (and in particular ensures that equality testing will
30669         only read the relevant bits).
30670         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30671         These changes mean that we no longer need to initialize small packed
30672         arrays.
30673         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30674         optimization to an LJM field as to its parent field.
30675
30676         * ada-tree.h, trans.c, utils.c, utils2.c:
30677         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30678
30679 2004-09-20  Jan Hubicka  <jh@suse.cz>
30680
30681         * utils.c (gnat_finalize): Remove.
30682         (end_subprog_body): Directly call cgraph_finalize_function;
30683         do not lower the nested functions.
30684
30685 2004-09-20  Robert Dewar  <dewar@gnat.com>
30686
30687         PR ada/17540
30688         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30689         if an address clause is present, since that means that the Import
30690         should be ignored.
30691
30692 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30693
30694         * 5tsystem.ads: Removed, no longer used.
30695
30696 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30697             Zack Weinberg  <zack@codesourcery.com>
30698
30699         * ada-tree.def: Use tree_code_class enumeration constants
30700         instead of code letters.
30701         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30702         Update for new tree-class enumeration constants.
30703
30704 2004-09-17  Vincent Celier  <celier@gnat.com>
30705
30706         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30707         capabilities of the general project manager.
30708
30709 2004-09-09  Vincent Celier  <celier@gnat.com>
30710
30711         * a-direct.ads: Add pragma Ada_05
30712         (Directory_Entry_Type): Give default value to component Kind to avoid
30713         not initialized warnings.
30714
30715         * a-direct.adb (Current_Directory): Remove directory separator at the
30716         end.
30717         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30718         an existing directory.
30719         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30720         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30721         Convert the result to File_Size.
30722
30723         * prj.ads: (Project_Error): New exception
30724
30725         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30726         Prj.Com, not from Osint.
30727         (Attrs, Package_Attributes): Tables moved to private part of spec
30728         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30729         Prj.Attr.PM.
30730         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30731         Prj.Project_Error after call to Fail.
30732         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30733         Fail. Check that package name is not already in use.
30734
30735         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30736         used by tools, not only by the project manager, and to indicate that
30737         exception Prj.Prj_Error may be raised in case of problem.
30738         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30739         Prj.Attr.PM.
30740         (Attrs, Package_Attributes): Table instantiations moved from the body to
30741         the private part to be accessible from Prj.Attr.PM body.
30742
30743         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30744         from new package Prj.Attr.PM.
30745         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30746         Prj.Attr.PM.
30747
30748         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30749
30750         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30751         instead of Elaboration_Checks).
30752
30753         * a-calend.adb: Minor reformatting
30754
30755 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30756
30757         * gigi.h (maybe_pad_type): New declaration.
30758         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30759
30760         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30761
30762         * cuintp.c: Convert to use buildN.
30763
30764         * decl.c (maybe_pad_type): No longer static.
30765         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30766         target pointer.
30767         Convert to use buildN.
30768
30769         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30770         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30771         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30772         RHS.
30773         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30774         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30775         Convert to use buildN.
30776
30777         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30778         TREE_READONLY for const.
30779         Convert to use buildN.
30780
30781         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30782         (create_var_decl): Refine when TREE_STATIC is set.
30783         Convert to use buildN.
30784
30785 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30786
30787         * gnat_ugn.texi: Delete text relating to checking of ali and object
30788         consistency.
30789
30790         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30791         routines.
30792
30793 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30794
30795         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30796         pragmas recognized by GNAT.
30797
30798         * gnat_rm.texi: Document pragma Detect_Blocking.
30799
30800         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30801         raise Program_Error if called from a protected operation.
30802
30803         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30804         the protected action nesting level.
30805         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30806         protected action nesting level.
30807         (Unlock): When pragma Detect_Blocking is active decrease the protected
30808         action nesting level.
30809
30810         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30811         Protected_Action_Nesting.
30812
30813         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30814         Common_ATCB record. It contains the dynamic level of protected action
30815         nesting for each task. It is needed for checking whether potentially
30816         blocking operations are called from protected operations.
30817         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30818         Detect_Blocking is active or not in the partition.
30819
30820         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30821         raise Program_Error if called from a protected operation.
30822         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30823         Program_Error if called from a protected operation.
30824         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30825         Program_Error if called from a protected operation.
30826
30827         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30828         raise Program_Error if called from a protected operation.
30829
30830         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30831         raise Program_Error if called from a protected operation, and increase
30832         the protected action nesting level.
30833         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30834         Program_Error if called from a protected operation, and increase the
30835         protected action nesting level.
30836         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30837         protected action nesting level.
30838
30839         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30840         raise Program_Error if called from a protected operation, and increase
30841         the protected action nesting level.
30842         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30843         Program_Error if called from a protected operation, and increase the
30844         protected action nesting level.
30845         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30846         raise Program_Error if called from a protected operation.
30847         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30848         active, raise Program_Error if called from a protected operation.
30849         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30850         protected action nesting level.
30851
30852         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30853         insertion of the statement raising Program_Error. The run time
30854         contains the required machinery for handling that.
30855
30856         * sem_util.ads: Change comment associated to procedure
30857         Check_Potentially_Blocking_Operation.
30858         This procedure does not insert a call for raising the exception because
30859         that is currently done by the run time.
30860
30861         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30862
30863         * init.c: Add the global variable __gl_detect_blocking that indicates
30864         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30865         making the pragma available at run time.
30866         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30867
30868         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30869         pragma Detect_Blocking is active.
30870
30871         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30872
30873         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30874         DB is found in the ali file. Any unit compiled with pragma
30875         Detect_Blocking active forces its effect in the whole partition.
30876
30877         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30878         Detect_Blocking is active and delay is called from a protected
30879         operation.
30880
30881         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30882         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30883         Detect_Blocking is active (0 otherwise).
30884         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30885         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30886         otherwise).
30887
30888 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30889
30890         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30891         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30892         package.
30893
30894         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30895         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30896         Update API in placeholder implemetation of s-parint to reflect changes
30897         in distribution runtime library.
30898
30899         * sem_ch3.adb (Expand_Derived_Record): Rename to
30900         Expand_Record_Extension.
30901
30902         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30903         primitive operations of potentially distributed object types that have
30904         non-controlling anonymous access formals.
30905
30906         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30907         subprogram.
30908         New implementation of expansion for remote access-to-subprogram types,
30909         based on the RACW infrastructure.
30910         This version of sem_dist is compatible with PolyORB/DSA as well as
30911         GLADE.
30912
30913         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30914         Asynchrronous that applies to a remote access-to-subprogram type, mark
30915         the underlying RACW type as asynchronous.
30916
30917         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30918          __gnat_using_gnu_linker to 1.
30919
30920         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30921         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30922         GNAT.Perfect_Hash_Generators, and remove the empty
30923         GNAT.Perfect_Hash package.
30924
30925         * atree.adb: Minor reformatting
30926
30927         * exp_ch3.adb (Expand_Derived_Record): Rename to
30928         Expand_Record_Extension.
30929         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30930         a component declaration must remain attached at that point in the
30931         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30932         It is therefore necessary to take a copy of the expression when building
30933         the corresponding assignment statement in the init proc.
30934         As a side effect, in the case of a derived record type, we now see the
30935         original expression, without any rewriting that could have occurred
30936         during expansion of the ancestor type's init proc, and we do not need
30937         to go back to Original_Node.
30938
30939         * exp_ch3.ads (Expand_Derived_Record): Rename to
30940         Expand_Record_Extension.
30941
30942         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30943         Returns the RACW type used to implement a remote access-to-subprogram
30944         type.
30945         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30946         New subprograms. Used to create a proxy tagged object for a remote
30947         subprogram. The proxy object is used as the designated object
30948         for RAS values on the same partition (unless All_Calls_Remote applies).
30949         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30950         System.Partition_Interface.Get_Unique_Remote_Pointer.
30951         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30952         Renamed from Add_RAS_*_Attribute.
30953         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30954         subprograms.
30955         New implementation of expansion for remote access-to-subprogram types,
30956         based on the RACW infrastructure.
30957
30958         * exp_dist.ads (Copy_Specification): Update comment to note that this
30959         function can copy the specification from either a subprogram
30960         specification or an access-to-subprogram type definition.
30961
30962 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30963
30964         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30965         in an instance, between an explicit subprogram an one inherited from a
30966         type derived from an actual.
30967
30968         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30969         add a polling call if the subprogram is to be inlined by the back-end,
30970         to avoid repeated calls with multiple inlinings.
30971
30972         * checks.adb (Apply_Alignment_Check): If the expression in the address
30973         clause is a call whose name is not a static entity (e.g. a dispatching
30974         call), treat as dynamic.
30975
30976 2004-09-09  Robert Dewar  <dewar@gnat.com>
30977
30978         * g-trasym.ads: Minor reformatting
30979
30980         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30981         packed arrays, since unused bits are expected to be zero for a
30982         comparison.
30983
30984 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
30985
30986         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30987         comment.
30988
30989 2004-09-09  Pascal Obry  <obry@gnat.com>
30990
30991         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30992         enable map file generation. Add the right option to generate the map
30993         file if Map_File is set to True.
30994
30995         * gnatdll.adb (Gen_Map_File): New variable.
30996         (Syntax): Add info about new -m (Map_File) option.
30997         (Parse_Command_Line): Add support for -m option.
30998         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30999         Minor reformatting.
31000
31001 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
31002
31003         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31004         new gnatdist implementation.
31005         Define a subpackage isolating the output routines specific to this
31006         verbose mode.
31007
31008 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
31009
31010         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31011
31012         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31013
31014 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
31015
31016         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31017         internal unit.
31018
31019         * opt.ads: Add Ada_Version_Runtime constant used to decide which
31020         version of the language is used to compile the run time.
31021
31022 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
31023
31024         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31025         of variable length temporaries for function return now that the
31026         back-end and gigi support it.
31027
31028 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31029
31030         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31031
31032         * trans.c (struct stmt_group): Delete field GLOBAL.
31033         (gnat_init_stmt_group): Do not initialize it.
31034         (call_to_gnu): Use save_expr, not protect_multiple_eval.
31035         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31036         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31037         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31038         (start_stmt_group): Likewise.
31039         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31040
31041         * utils2.c (ggc.h): Include.
31042         (build_call_raise): Call build_int_cst, not build_int_2.
31043
31044         * utils.c (gnat_init_decl_processing): Fix arg to
31045         build_common_tree_nodes.
31046         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31047         (gnat_define_builtin): Set built_in_decls.
31048         (init_gigi_decls): Call build_int_cst, not build_int_2.
31049
31050         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31051         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31052         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31053         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31054         SET_TYPE_MODULE): Use them.
31055         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31056         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31057         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31058         SET_TYPE_ADA_SIZE): Likewise.
31059         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31060         (DECL_CONST_CORRESPONDING_VAR,
31061         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31062         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31063         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31064         (TYPE_RM_SIZE_NUM): New macro.
31065         (TYPE_RM_SIZE): Modified to use above.
31066
31067         * cuintp.c: (build_cst_from_int): New function.
31068         (UI_To_gnu): Use it.
31069
31070         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31071         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31072         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31073         MIN_EXPR for the size, copy it into new.
31074
31075 2004-09-01  Robert Dewar  <dewar@gnat.com>
31076
31077         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31078         packed indexed component where array is an IN OUT formal. This
31079         generated garbage code previously.
31080
31081         * gnat_ugn.texi: Document -fverbose-asm
31082
31083         * gnat-style.texi: Minor updates (note that boolean constants and
31084         variables are joined with AND/OR rather than short circuit forms).
31085
31086 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
31087
31088         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31089         it is an upward conversion of an untagged type with no representation
31090         change.
31091
31092 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
31093
31094         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31095         System.Partition_Interface.
31096
31097         * checks.adb (Apply_Access_Checks): Do not generate checks when
31098         expander is not active (but check for unset reference to prefix of
31099         dereference).
31100
31101         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31102         pragma Debug as an if statement with a constant condition, for
31103         consistent treatment of entity references contained within the
31104         enclosed procedure call.
31105
31106 2004-09-01  Vincent Celier  <celier@gnat.com>
31107
31108         * bindgen.adb: (Set_EA_Last): New procedure
31109         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31110         Set_EA_Last.
31111         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31112         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31113         linked without errors.
31114         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31115         ST and EA.
31116         (Gen_Exception_Table_C): Correct same bugs
31117
31118         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31119
31120         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31121         on Windows, make sure that the drive letter is in upper case.
31122
31123         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31124         Windows, when the drive letter is added and Case_Sensitive is True, the
31125         drive letter is forced to upper case.
31126
31127         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31128         to Options_2 for the call to MLib.Utl.Gcc.
31129
31130         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31131         directory separator when defining BASE_DIR.
31132
31133 2004-09-01  Pascal Obry  <obry@gnat.com>
31134
31135         * gprcmd.adb (Extend): Do not output trailing directory separator. This
31136         is not needed and it confuses Windows GNU/make which does not report
31137         directory terminated by a slash as a directory.
31138         (gprcmd): Idem for "pwd" internal command.
31139
31140         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31141         target names rewrite to fix regressions with recent version of
31142         GNU/make. Starting with GNU/make 3.80 the pipe character was not
31143         handled properly anymore.
31144
31145 2004-09-01  Andreas Schwab  <schwab@suse.de>
31146
31147         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31148         * raise.c [!IN_RTS]: Undef abort.
31149
31150 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
31151
31152         * utils2.c (build_allocator): Use ssize_int.
31153
31154         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31155
31156 2004-08-27  Andreas Schwab  <schwab@suse.de>
31157
31158         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31159
31160 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31161             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31162
31163         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31164
31165 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31166
31167         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31168         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31169         * utils.c (init_gigi_decls): Likewise.
31170         * utils2.c (build_call_raise, build_allocator): Likewise.
31171
31172 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
31173
31174         * utils.c (gnat_init_decl_processing): Adjust
31175         build_common_tree_nodes call.
31176
31177 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
31178
31179         * utils2.c (build_allocator): Use build_int_cst for negative
31180         size types.
31181
31182 2004-08-18  Richard Henderson  <rth@redhat.com>
31183
31184         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31185
31186 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
31187
31188         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31189         call.s
31190         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31191         (gnat_to_gnu): Likewise.
31192
31193 2004-08-16  Pascal Obry  <obry@gnat.com>
31194
31195         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31196         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31197         option and not mdll anymore. Update comment.
31198
31199 2004-08-16  Pascal Obry  <obry@gnat.com>
31200
31201         * bld.adb (Put_Include_Project): Properly handle directory separators
31202         on Windows.
31203
31204 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
31205
31206         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31207         decreasing the number of allocated junk nodes while searching for the
31208         appropriate subprogram.
31209
31210 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
31211
31212         * cuintp.c (UI_To_gnu): Use build_int_cst..
31213         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31214         * utils.c (init_gigi_decls): Likewise.
31215         * utils2.c (build_call_raise): Likewise.
31216
31217 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
31218
31219         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31220         for a global aliased object with a variable size and an unconstrained
31221         nominal subtype, pretend there is no initializer if the one we have is
31222         incomplete, and avoid referencing an inexistant component in there. The
31223         part we have will be rebuilt anyway and the reference may confuse
31224         further operations.
31225
31226 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
31227
31228         * einfo.ads: Minor reformatting
31229
31230         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31231         restrictions in the ALI if we only want to warn about violations.
31232
31233 2004-08-13  Vincent Celier  <celier@gnat.com>
31234
31235         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31236         when creating a new Unit_Record in table Units.
31237
31238         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31239         that are violated, if any.
31240
31241         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31242         add directory separator if path already ends with a directory separator.
31243
31244 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31245
31246         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31247         unit, this is an attempt to inline a construct that is not available in
31248         the current restricted mode, so abort rather than trying to continue.
31249
31250         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31251         discriminants that rename those of the parent, recover names of
31252         original discriminants for the constraint on the full view of the
31253         parent.
31254         (Complete_Private_Subtype): Do not create a subtype declaration if the
31255         subtype is an itype.
31256
31257         * gnat_rm.texi: Added section on implementation of discriminated
31258         records with default values for discriminants.
31259
31260 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31261
31262         PR ada/15601
31263         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31264         the second operand is overloaded.
31265
31266 2004-08-10  Richard Henderson  <rth@redhat.com>
31267
31268         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31269         add __builtin_alloca.
31270
31271 2004-08-10  Richard Henderson  <rth@redhat.com>
31272
31273         * config-lang.in (boot_language): Yes.
31274
31275 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
31276
31277         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31278         from complaining on potential uninitialized reference.
31279         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31280         new specification and test explicitly for non-zero return value.
31281
31282         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31283         returning C.int, to avoid using a derived boolean type.
31284
31285         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31286         Duplicate_Subexpr_No_Checks in preference to direct use of
31287         Remove_Side_Effects and New_Copy_Tree.
31288         Clear Comes_From_Source on prefix of 'Size attribute reference.
31289
31290         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31291         g-socthi-vxworks.adb: Change calls to
31292         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31293         and test explicitly for non-zero return value.
31294
31295         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31296         (Is_Socket_In_Set): Declare imported function as returning C.int, to
31297         avoid using a derived boolean type.
31298
31299 2004-08-09  Albert Lee  <lee@gnat.com>
31300
31301         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31302
31303 2004-08-09  Pascal Obry  <obry@gnat.com>
31304
31305         * gnat_ugn.texi: Document new way to build DLLs on Windows using
31306         GCC's -shared option.
31307
31308         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31309         Options_2 parameter (options put after object files).
31310
31311 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
31312
31313         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31314         ignore overflows on low and high bounds of an index to also account for
31315         differences in signedness between sizetype and gnu_index_subtype.
31316         These are as legitimate as the ones caused by a lower TYPE_PRECISION
31317         on sizetype.
31318
31319 2004-08-09  Robert Dewar  <dewar@gnat.com>
31320
31321         * s-solita.ads, s-solita.adb: Minor reformatting
31322
31323         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31324         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31325         obsolescent section
31326         Add note that No_Implicit_Conditionals does not suppress
31327         run time constraint checks.
31328
31329         * vms_conv.ads: Minor reformatting
31330
31331         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31332         and necessary for following change).
31333         (Mark): Return new format Mark_Id containing sec stack address
31334         (Release): Use sec stack address from Mark_Id avoiding Self call
31335
31336         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31337         pointer (cleanup and necessary for following change).
31338         Define Mark_Id as record containing address of secondary stack, that way
31339         Release does not need to find the stack again, decreasing the number of
31340         calls to Self and improving efficiency.
31341
31342         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31343
31344         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31345         case variable into the individual case branches when possible.
31346
31347         * sem_ch11.adb: Minor reformatting
31348
31349         * prj.ads: Correct spelling of suffixs
31350
31351         * prj-nmsc.adb: Minor reformatting
31352         Correct spelling suffixs throughout (also in identifiers)
31353
31354         * freeze.adb: Minor spelling correction
31355
31356         * exp_ch2.adb: Cleanups to handling of Current_Value
31357         (no functional effect).
31358
31359         * bld.adb: Correct spelling of suffixs
31360
31361         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31362
31363 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31364
31365         PR ada/15408
31366         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31367         package or of a child, private entities are both immediately_visible
31368         and not hidden.
31369
31370 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31371
31372         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31373         there are no range checks on the value of the literal.
31374
31375         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31376         wrapped is the triggering alternative of an asynchronous select, action
31377         statements mustbe inserted before the select itself.
31378
31379         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31380         case where the prefix is a protected function call.
31381         (Resolve_Attribute, case 'Access): The attribute reference on a
31382         subprogram is legal in a generic body if the subprogram is declared
31383         elsewhere.
31384
31385 2004-08-09  Vincent Celier  <celier@gnat.com>
31386
31387         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31388         languages, otherwise building the library may fail with unresolved
31389         symbols.
31390         (Compile_Sources): Do not build libraries if -c switch is used
31391
31392         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31393         (Write_Usage): If map file creation is supported, output new switches
31394         -M and -Mmap.
31395         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31396         gcc call, when supported.
31397
31398         * Makefile.in: Added indepsw.o to the object list for gnatlink
31399         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31400
31401         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31402         indepsw.adb, indepsw.ads: New files.
31403
31404 2004-08-09  Bernard Banner  <banner@gnat.com>
31405
31406         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31407
31408         * Makefile.in: add section for vxworks x86
31409
31410 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31411
31412         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31413         per-object constrained components where the discriminant is of an
31414         Access type.
31415         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31416         the parent initialization procedure for derived Unchecked_Unions.
31417         Instead, derived Unchecked_Unions build their own initialization
31418         procedure.
31419         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31420         Check the body of the subprogram for details.
31421         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31422         functions for derived Unchecked_Union types by introducing a condition.
31423         Allow the creation of TSS equality functions for Unchecked_Unions.
31424         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31425         Add formal parameter Discr to function signature. Discr is used to
31426         control the generated case statement for Unchecked_Union types.
31427         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31428
31429         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31430         Unchecked_Unions.
31431         Check the body of the subprogram for details.
31432         (Expand_Composite_Equality): Augment composite type equality to include
31433         correct handling of Unchecked_Union components.
31434         (Expand_N_In): Add condition to detect illegal membership tests when the
31435         subtype mark is a constrained Unchecked_Union and the expression lacks
31436         inferable discriminants, and build a Raise_Program_Error node.
31437         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31438         to detect types that contain components of unconstrained Unchecked_Union
31439         subtype. Add condition to detect equality between types that have an
31440         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31441         node. Add condition to detect equality between Unchecked_Union types
31442         that lack inferable discriminants, and build a Raise_Program_Error node.
31443         Otherwise build a TSS equality function call.
31444         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31445         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31446         with the operand lacking inferable discriminants, and build a Raise_
31447         Program_Error node.
31448         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31449         composite equality.
31450         (Has_Inferable_Discriminants): Implement new predicate for objects and
31451         expressions of Unchecked_Union type. Check the body of subprogram for
31452         details.
31453         (Has_Unconstrained_UU_Components): Add function
31454         Component_Is_Unconstrained_UU. It is used to detect whether a single
31455         component is of an unconstrained Unchecked_Union subtype. Add function
31456         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31457         component inside a variant is of an unconstrained Unchecked_Union type.
31458
31459         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31460         inferred discriminant values. Add condition to generate a case
31461         statement with an inferred discriminant as the switch.
31462         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31463         the behaviour of the subprogram in the presence of an Unchecked_Union.
31464         Add condition to trigger the usage of the inferred discriminant value
31465         as the generated case statement switch.
31466         (Make_Field_Assign): Introduce a Boolean flag that determines the
31467         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31468         condition to trigger the usage of the inferred discriminant value as
31469         the right-hand side of the generated assignment.
31470
31471         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31472         parameter generation when dealing with Unchecked_Unions.
31473
31474         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31475         checks for Unchecked_Unions.
31476
31477         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31478
31479         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31480         Raise_Program_Error nodes for the execution of Read and Write
31481         attributes of Unchecked_Union types and the execution of Input and
31482         Output attributes of Unchecked_Union types that lack default
31483         discriminant values.
31484
31485         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31486         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31487         per-object constrained components of Unchecked_Unions for being
31488         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31489         check individual components withing a variant.
31490
31491         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31492         comparison of Unchecked_Unions.
31493         (Resolve_Equality_OP): Remove guard that prevents equality between
31494         Unchecked_Unions.
31495
31496         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31497         of component subtypes for Unchecked_Union components.
31498         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31499         since it is the actual subtype.
31500
31501         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31502         pass of Unchecked_Union subtypes as generic actuals to formal types
31503         that lack known_discriminant_parts or that are derived Unchecked_Union
31504         types, and do nothing. In any other case, produce an error message.
31505
31506         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31507         Contains_POC. It determines whether a constraint uses the discriminant
31508         of an enclosing record type.
31509         Add condition to detect per-object constrained component and set the
31510         appropriate flag.
31511         (Derived_Type_Declaration): Remove guard that prevents derivation from
31512         Unchecked_Union types.
31513         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31514         Union subtypes.
31515
31516         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31517         references to Unchecked_Union discriminants.
31518
31519         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31520         formal generation when dealing with Unchecked_Unions.
31521         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31522         subtypes for Unchecked_Unions.
31523
31524         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31525         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31526         completions of discriminated partial views by Unchecked_Unions and
31527         produce an error message.
31528
31529 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31530
31531         * trans.c (struct stmt_group): New field, GLOBAL.
31532         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31533         (struct elab_info): New struct.
31534         (elab_info_list, gnu_elab_proc_stack): New variables.
31535         (Compilation_Unit_to_gnu): New procedure.
31536         (gigi): Call it and also handle elaboration procs we've saved.
31537         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31538         global field from parent.
31539         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31540         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31541         (start_stmt_group): Initialize global field from parent.
31542         (add_decl_expr): Set to global for current statement group.
31543         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31544         post.
31545
31546         * utils.c (global_bindings_p): True when no current_function_decl; no
31547         longer check current_binding_level.
31548
31549 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31550
31551         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31552         choice.
31553
31554         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31555
31556 2004-08-06  Andreas Schwab  <schwab@suse.de>
31557
31558         * utils.c (gnat_define_builtin): Remove second parameter of
31559         make_decl_rtl.
31560         (begin_subprog_body): Likewise.
31561
31562 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31563
31564         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31565         optimization, not supported by the tree-ssa back-end.
31566
31567 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31568
31569         * s-mastop-irix.adb: Update comments.
31570
31571         * a-except.adb (Exception_Information): Raise Constraint_Error if
31572         exception Id is Null_Id.
31573         This is required behavior, which is more reliably and clearly checked
31574         at the top level interface level.
31575
31576 2004-07-26  Javier Miranda  <miranda@gnat.com>
31577
31578         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31579         call if a component has no default_expression and the box is used.
31580
31581         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31582         default_expression and you use box, it behaves as if you had declared a
31583         stand-alone object.
31584         (Resolve_Record_Aggregate): If a component has no default_expression and
31585         you use box, it behaves as if you had declared a stand-alone object.
31586
31587         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31588         entities of private-with siblings.
31589
31590 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31591
31592         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31593         for a component of an itype, set the parent pointer for analysis,
31594         there is no list in which to insert it.
31595
31596         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31597         bona-fide renamings, not for inherited operations.
31598
31599         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31600         actual for a formal that is an access parameter, create local
31601         finalization list even if the expression is not an aggregate.
31602
31603 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31604
31605         PR ada/16213
31606         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31607         Diagnose properly illegal subprogram renamings that are library units.
31608
31609 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31610
31611         PR ada/15588
31612         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31613         conversion rewritten as an unchecked conversion, check that original
31614         expression is a variable.
31615
31616         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31617         unchecked_conversion, create new node rather than rewriting in place,
31618         to preserve original construct.
31619
31620 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31621
31622         * gigi.h (gnat_expand_body): Deleted.
31623
31624         * Make-lang.in: (trans.o): Depends on function.h.
31625
31626         * misc.c: (gnat_expand_body): Moved to here.
31627
31628         * trans.c (gnat_expand_body_1): Deleted.
31629         (gnat_expand_body): Moved from here.
31630         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31631         (add_stmt): Check for marked visited with global_bindings_p.
31632         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31633         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31634
31635         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31636         VIEW_CONVERT_EXPR if not operation type.
31637
31638         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31639         fat pointer.
31640
31641         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31642         changes: reformatting of negation operators, removing unneeded
31643         inequality comparison with zero, converting equality comparisons with
31644         zero to negations, changing int/0/1 to bool/false/true, replace calls
31645         to gigi_abort with abort, and various other similar changes.
31646
31647 2004-07-26  Vincent Celier  <celier@gnat.com>
31648
31649         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31650         "setup".
31651
31652         * make.adb (Gnatmake): Fail when a library is not present and there is
31653         no object directory.
31654
31655         * mlib-prj.adb (Check_Library): No need to check if the library needs
31656         to be rebuilt if there is no object directory, hence no object files
31657         to build the library.
31658
31659         * opt.ads (Setup_Projects): New Boolean flag.
31660
31661         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31662         Location.
31663         Create directory when Kind /= "" and in "gnat setup". Report error if
31664         directory cannot be created.
31665         (Ada_Check): Create library interface copy dir if it does not exist
31666         and we are in "gnat setup".
31667         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31668         found.
31669         (Language_Independent_Check): Create object directory, exec directory
31670         and/or library directory if they do not exist and we are in
31671         "gnat setup".
31672
31673         * vms_conv.ads: (Command_Type): New command Setup.
31674
31675         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31676
31677         * vms_data.ads: Add qualifiers/switches for new built-in command
31678         "setup".
31679
31680 2004-07-25  Richard Henderson  <rth@redhat.com>
31681
31682         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31683         DECL_IGNORED_P on RESULT_DECL.
31684
31685 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31686
31687         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31688         allocation and potentially overflowing update with
31689         Tailored_Exception_Information. Use the sec-stack free procedural
31690         interface to output Exception_Information instead.
31691
31692         * a-except.adb (To_Stderr): New subprogram for character, and string
31693         version moved from a-exextr to be visible from other separate units.
31694         (Tailored_Exception_Information): Remove the procedural version,
31695         previously used by the default Last_Chance_Handler and not any more.
31696         Adjust various comments.
31697
31698         * a-exexda.adb: Generalize the exception information procedural
31699         interface, to minimize the use of secondary stack and the need for
31700         local buffers when the info is to be output to stderr:
31701         (Address_Image): Removed.
31702         (Append_Info_Character): New subprogram, checking for overflows and
31703         outputing to stderr if buffer to fill is of length 0.
31704         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31705         (Append_Info_Address, Append_Info_Exception_Name,
31706         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31707         Append_Info_Basic_Exception_Traceback,
31708         Append_Info_Exception_Information): New subprograms.
31709         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31710         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31711         Exception_Info_Maxlength, Exception_Name_Length,
31712         Exception_Message_Length): New subprograms.
31713         (Exception_Information): Use Append_Info_Exception_Information.
31714         (Tailored_Exception_Information): Use
31715         Append_Info_Basic_Exception_Information.
31716         Export services for the default Last_Chance_Handler.
31717
31718         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31719         other separate units.
31720
31721 2004-07-20  Vincent Celier  <celier@gnat.com>
31722
31723         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31724
31725 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31726
31727         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31728         emit itype references for the designated types of component types that
31729         are declared outside of the full record declaration, and that may
31730         denote a partial view of that record type.
31731
31732 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31733
31734         PR ada/15607
31735         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31736         which is the designated type in an access component declaration, to the
31737         list of incomplete dependents of the parent type, to avoid elaboration
31738         issues with out-of-scope subtypes.
31739         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31740         full view of the parent.
31741
31742 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31743
31744         PR ada/15610
31745         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31746         entities that are hidden, such as references to generic actuals
31747         outside an instance.
31748
31749 2004-07-20  Javier Miranda  <miranda@gnat.com>
31750
31751         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31752         support to the new notation.
31753         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31754
31755 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31756
31757         * s-taprob.adb: Adding the elaboration code required for initializing
31758         the tasking soft links that are common to the full and the restricted
31759         run times.
31760
31761         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31762         restricted run time has been moved to the package
31763         System.Soft_Links.Tasking.
31764
31765         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31766         restricted run time has been moved to the package
31767         System.Soft_Links.Tasking.
31768
31769         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31770
31771         * s-solita.ads, s-solita.adb: New files.
31772
31773 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31774
31775         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31776         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31777         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31778         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31779         Exception_Handler_to_gnu_zcx): Likewise.
31780
31781 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31782
31783         * gigi.h (builtin_function): Declare.
31784
31785 2004-07-15  Robert Dewar  <dewar@gnat.com>
31786
31787         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31788         reformatting
31789
31790         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31791         access values as an example of a warning.
31792
31793         * gnat_rm.texi: Document new attribute Has_Access_Values
31794
31795         * gnat-style.texi: Document that box comments belong on nested
31796         subprograms
31797
31798         * sem_util.ads (Has_Access_Values): Improved documentation
31799
31800         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31801
31802         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31803         (Process_Interface_Name): Call to this new procedure
31804         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31805
31806         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31807
31808         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31809
31810         * einfo.ads: Minor comment typo fixed
31811
31812 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31813
31814         * snames.adb: Add _atcb.
31815
31816         * snames.ads: Add Name_uATCB.
31817
31818         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31819         (in the expanded code) when using the restricted run time.
31820
31821         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31822         a in parameter in order to allow ATCBs to be preallocated (in the
31823         expanded code).
31824
31825         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31826         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31827         deallocated in System.Tasking.Stages.
31828
31829         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31830         order to allow ATCBs to be preallocated.
31831
31832         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31833         here. It was previously done in Initialize_ATCB.
31834
31835         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31836
31837         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31838         Restricted run time.
31839
31840         * exp_ch3.adb: When using the Restricted run time, pass the
31841         preallocated Ada_Task_Control_Block when creating a task.
31842
31843 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31844
31845         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31846         function call that is itself an actual in an enclosing call, diagnose
31847         problem here rather than assuming that resolution will catch it.
31848
31849         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31850         the local copy of a generic unit for a formal package, and the generic
31851         is a child unit, install private part of ancestors before compiling
31852         private part of spec.
31853
31854         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31855         use scope entities rather than tree structures, to handle properly
31856         parent units that are instances rewritten as bodies for inlining
31857         purposes.
31858
31859         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31860         Remove_Parents): Handle properly a parent unit that is an
31861         instantiation, when the unit has been rewritten as a body for inlining
31862         purposes.
31863
31864         * par.adb (Goto_List): Global variable to collect goto statements in a
31865         given unit, for use in detecting natural loops.
31866
31867         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31868         use in detecting natural loops.
31869
31870         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31871         backwards goto's, and rewrite as a infinite loop, to improve locality
31872         of temporaries.
31873
31874         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31875         subcomponent that includes an indexed reference, to prevent the
31876         generation of copies that would miscompile the desired assignment
31877         statement.
31878         (Build_Task_Image_Decls): Add a numeric suffix to
31879         generated name for string variable, to avoid spurious conflicts with
31880         the name of the type of a single protected object.
31881
31882         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31883         loop with an explicit exit statement, to avoid generating an
31884         out-of-range value with 'Succ leading to spurious constraint_errors
31885         when compiling with -gnatVo.
31886
31887 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31888
31889         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31890         might not be analyzed yet, even if its Etype is already set (case of an
31891         unchecked conversion built using Unchecked_Convert_To, for example).
31892         If the prefix has already been analyzed, this will be a nop anyway.
31893
31894         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31895         controller type, or an assignment of a record type with controlled
31896         components, copy only user data, and leave the finalization chain
31897         pointers untouched.
31898
31899 2004-07-15  Vincent Celier  <celier@gnat.com>
31900
31901         * make.adb (Collect_Arguments): Improve error message when attempting
31902         to compile a source not part of any project, when -x is not used.
31903
31904         * prj.ads: (Defined_Variable_Kind): New subtype
31905
31906         * prj-attr.adb (Register_New_Package): Two new procedures to register
31907         a package with or without its attributes.
31908         (Register_New_Attribute): Mew procedure to register a new attribute in a
31909         package.
31910         New attribute oriented subprograms: Attribute_Node_Id_Of,
31911         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31912         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31913         Next_Attribute.
31914         New package oriented subprograms: Package_Node_Id_Of,
31915         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31916
31917         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31918         type.
31919         (Package_Node_Id): Now a private, self initialized type
31920         (Register_New_Package): New procedure to register a package with its
31921         attributes.
31922         New attribute oriented subprograms: Attribute_Node_Id_Of,
31923         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31924         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31925         Next_Attribute.
31926         New package oriented subprograms: Package_Node_Id_Of,
31927         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31928
31929         * prj-dect.adb (Parse_Attribute_Declaration,
31930         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31931
31932         * prj-makr.adb (Make): Parse existing project file before creating
31933         other files. Fail if there was an error during parsing.
31934
31935         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31936         new spec of Prj.Attr.
31937
31938         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31939         to new spec of Prj.Attr.
31940
31941 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31942
31943         * utils2.c: Fix typo in comment.
31944
31945 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31946
31947         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31948         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31949
31950 2004-07-14  Andreas Schwab  <schwab@suse.de>
31951
31952         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31953
31954 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31955
31956         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31957         object type.
31958         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31959         TYPE_STUB_DECL.
31960
31961         * misc.c (gnat_types_compatible_p): New function.
31962         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31963         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31964
31965         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31966         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31967         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31968         (mark_visited): Don't mark dummy type.
31969         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31970         parameter, we must remove any LJM building from GNU_NAME.
31971         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31972         (pos_to_constructor): Use int_const_binop.
31973         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31974         PARM_DECL.
31975
31976         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31977         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31978         (gnat_install_builtins): Add __builtin_memset.
31979
31980 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31981
31982         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31983         for a renaming, stabilize the initialization expression if we are at a
31984         local level.  At the local level, uses of the renaming may be performed
31985         by a direct dereference of the initializing expression, and we don't
31986         want possible variables there to be evaluated for every use.
31987
31988         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31989         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31990         them on the way.  Account for the fact that we may introduce side
31991         effects in the process.
31992
31993 2004-07-13  Richard Henderson  <rth@redhat.com>
31994
31995         * misc.c (default_pass_by_ref): Use pass_by_reference.
31996
31997 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
31998
31999         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32000         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32001
32002 2004-07-08  Richard Henderson  <rth@redhat.com>
32003
32004         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32005         commentary.
32006
32007 2004-07-06  Vincent Celier  <celier@gnat.com>
32008
32009         * vms_conv.ads: Minor reformatting.
32010         Alphabetical order for enumerated values of type Command_Type, to have
32011         the command in alphabetical order for the usage.
32012
32013         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32014         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32015
32016         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32017
32018         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32019         (Add_Archive_Path): Only add the global archive if there is one.
32020         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32021         or not any object file to put in the global archive, and don't build
32022         a global archive if there is none.
32023         (X_Switches): New table
32024         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32025         in the X_Switches table, if any.
32026         (Initialize): Make sure the X_Switches table is empty
32027         (Scan_Arg): Record -X switches in table X_Switches
32028
32029         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32030
32031         * make.adb: Minor comment fix
32032
32033         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32034         invoked with directory information, add the directory in front of the
32035         path.
32036
32037         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32038         invoked with directory information, add the directory in front of the
32039         path.
32040
32041         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32042         when Keep_Temporary_Files is False.
32043         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32044         directory information, add the directory in front of the path.
32045         When not on VMS, handle new switch -dn before the command to set
32046         Keep_Temporary_Files to True.
32047         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32048         everywhere.
32049
32050         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32051         invoked with directory information, add the directory in front of the
32052         path.
32053
32054 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
32055
32056         * snames.ads, snames.adb (Name_Stub): New name for the distributed
32057         systems annex.
32058
32059         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32060         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32061
32062         * g-socket.adb (To_Timeval): Fix incorrect conversion of
32063         Selector_Duration to Timeval for the case of 0.0.
32064
32065         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32066         documentation from Evolve_And_Then.
32067
32068 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
32069
32070         * s-taprop-tru64.adb, s-taprop-os2.adb,
32071         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32072
32073 2004-07-06  Robert Dewar  <dewar@gnat.com>
32074
32075         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32076         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32077         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32078         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32079         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32080         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32081         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32082         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32083         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32084         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32085         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32086         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32087         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32088         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32089         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32090         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32091         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32092         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32093         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32094         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32095         vms_data.ads: Minor reformatting,
32096         Fix bad box comment format.
32097
32098         * gnat_rm.texi: Fix minor grammatical error
32099
32100         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32101
32102         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32103         more cases of discriminated records to be recognized as not needing a
32104         secondary stack.
32105         (Has_Access_Values): New function.
32106
32107         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32108
32109         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32110         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32111         with LRM terminology).
32112         Change terminology in comments primitive type => elementary type.
32113
32114 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32115
32116         PR ada/15602
32117         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32118         parameters do not impose any requirements on the presence of a body.
32119
32120 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32121
32122         PR ada/15593
32123         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32124         compilation unit and is in an open scope at the point of instantiation,
32125         assume that a body may be present later.
32126
32127 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32128
32129         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32130         Improve error message when specified size is not supported.
32131
32132         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32133         is never a primitive operation.
32134
32135 2004-07-05  Andreas Schwab  <schwab@suse.de>
32136
32137         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32138         RECORD_OR_UNION_CHECK.
32139         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32140
32141 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
32142
32143         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32144         dependency on xgnatugn, instead build it via a submake.
32145         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32146
32147 2004-07-04  Richard Henderson  <rth@redhat.com>
32148
32149         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32150
32151 2004-07-01  Richard Henderson  <rth@redhat.com>
32152
32153         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32154         * utils.c (max_size): Likewise.
32155
32156 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32157
32158         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32159         and rest_of_type_compilation; add arg to create_*_decl.
32160         (annotate_decl_with_node): Deleted.
32161         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32162         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32163         (get_current_block_context, gnat_pushdecl): New declarations.
32164         (gnat_init_stmt_group): Likewise.
32165         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32166         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32167         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32168         (gnat_init): Call gnat_init_stmt_group.
32169         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32170         (gnu_pending_elaboration_list): Deleted.
32171         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32172         (gigi): Rearrange initialization calls and move some to last above.
32173         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32174         Delete calls to add_decl_expr; add arg to create_*_decl.
32175         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32176         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32177         begin_subprog_body and call it.
32178         Don't push and pop ggc context.
32179         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32180         (add_stmt): Remove handling of DECL_EXPR from here.
32181         If not in function, mark visited.
32182         (add_decl_expr): Put global at top level.
32183         Check for cases of DECL_INITIAL we have to handle here.
32184         (process_type): Add extra arg to create_type_decl.
32185         (build_unit_elab): Rework to just gimplify.
32186         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32187         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32188         (get_pending_elaborations, pending_elaborations_p): Likewise.
32189         (push_pending_elaborations, pop_pending_elaborations): Likewise.
32190         (get_elaboration_location, insert_elaboration_list): Likewise.
32191         (gnat_binding_level): Renamed from ada_binding_level.
32192         (init_gnat_to_gnu): Don't clear pending_elaborations.
32193         (global_bindings_p): Treat as global if no current_binding_level.
32194         (set_current_block_context): New function.
32195         (gnat_pushdecl): Renamed from pushdecl; major rework.
32196         All callers changed.
32197         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32198         (finish_record_type): Call call pushdecl for stub decl.
32199         (function_nesting_depth): Deleted.
32200         (begin_subprog_body): Delete obsolete code.
32201         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32202
32203 2004-06-28  Robert Dewar  <dewar@gnat.com>
32204
32205         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32206         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32207         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32208         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32209         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32210
32211         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32212         deal with problem of inefficient slices on machines with strict
32213         alignment, when the slice is a component of a composite.
32214
32215         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32216         machines, we need the check there as well.
32217
32218 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32219
32220         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32221         determine safe copying direction for overlapping slice assignments
32222         when component is controlled.
32223
32224         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32225         formal derived type in the actual for a formal package are visible in
32226         the enclosing instance.
32227
32228 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32229
32230         PR ada/15600
32231         * sem_util.adb (Trace_Components): Diagnose properly an illegal
32232         circularity involving a private type whose completion includes a
32233         self-referential component.
32234         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32235         renaming or an instantiation from an implicit derived operation.
32236
32237 2004-06-28  Pascal Obry  <obry@gnat.com>
32238
32239         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32240         DLL.
32241         (Library_File_Name_For): Idem.
32242
32243 2004-06-28  Matthew Gingell  <gingell@gnat.com>
32244
32245         * g-traceb.ads: Add explanatory note on the format of addresses
32246         expected by addr2line.
32247
32248 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
32249
32250         * Makefile.in: Force debugging information on s-tasdeb.adb,
32251         a-except.adb and s-assert.adb needed by the debugger.
32252
32253 2004-06-28  Vincent Celier  <celier@gnat.com>
32254
32255         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32256         Need_To_Build_Lib.
32257         (Gnatmake): Ditto.
32258
32259         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32260
32261         * prj.adb: Minor reformatting
32262         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32263
32264         * prj.ads: Comment updates
32265         Minor reformatting
32266         (Project_Data): Change Flag1 to Need_To_Build_Lib.
32267         Remove Flag2: not used.
32268
32269         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32270         declaration.
32271
32272         * gnat_ugn.texi: Put a "null;" declaration in one project file example
32273
32274         * gnat_rm.texi: Document Empty declarations "null;".
32275
32276         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32277         front of the linker options.
32278         (Link_Foreign): Put the global archives and the libraries in front of
32279         the linker options.
32280
32281 2004-06-28  Javier Miranda  <miranda@gnat.com>
32282
32283         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32284         (RTU_Loaded): Code cleanup
32285         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32286         withed predefined units.
32287
32288         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32289         explicitly withed predefined units.
32290         Fix typo in comment
32291
32292         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32293         explicitly withed predefined units.
32294
32295 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32296
32297         * ada-tree.def (DECL_STMT): Deleted.
32298         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32299         (DECL_STMT_VAR): Deleted.
32300         * decl.c: add_decl_stmt now add_decl_expr.
32301         * gigi.h: Likewise.
32302         * trans.c: Likewise.
32303         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32304         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32305         (add_stmt): Only handle padded type here.
32306         (add_stmt_with_node): Allow gnat_node to not be present.
32307         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32308         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32309         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32310         make a SAVE_EXPR for the entire fat pointer.
32311         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32312         (create_index_type): Make a DECL_EXPR.
32313         (end_subprog_body): Don't call allocate_struct_function here but
32314         do clear cfun.
32315
32316 2004-06-25  Pascal Obry  <obry@gnat.com>
32317
32318         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32319         Relocatable from Build_Dynamic_Library call.
32320
32321         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32322         Relocatable are now synonym.
32323
32324         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32325
32326         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32327         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32328         call.
32329
32330         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32331         Lib_Address and Relocatable.
32332         (Default_DLL_Address): Removed.
32333
32334         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32335         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32336         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32337         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32338         (Default_DLL_Address): Removed.
32339
32340         * mlib-tgt-mingw.adb: Ditto.
32341         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32342
32343         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32344         the initial thread stack size.
32345
32346         * a-strmap.ads: Move package L to private part as it is not used in
32347         the spec. Found while reading code.
32348
32349 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
32350
32351         * tracebak.c: Introduce support for a GCC infrastructure based
32352         implementation of __gnat_backtrace.
32353
32354         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32355         any more. Use accessors instead. This eases maintenance and relaxes
32356         some alignment constraints.
32357         (_GNAT_Exception structure): Remove the Ada specific fields
32358         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32359         a-exexpr.adb.
32360         (is_handled_by, __gnat_eh_personality): Replace component references to
32361         exception structure by use of the new accessors.
32362
32363         * init.c (__gnat_initialize): Adjust comments to match the just
32364         reverted meaning of the -static link-time option.
32365
32366         * adaint.c (convert_addresses): Arrange not to define a stub for
32367         mips-irix any more, as we now want to rely on a real version from a
32368         recent libaddr2line.
32369
32370         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32371         the personality routine can use them and not have to rely on a C
32372         counterpart of the record anymore. This simplifies maintenance and
32373         relaxes the constraint of having Standard'Maximum_Alignment match
32374         BIGGEST_ALIGNMENT.
32375         Update comments, and add a section on the common header alignment issue.
32376
32377 2004-06-25  Geert Bosch  <bosch@gnat.com>
32378
32379         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32380         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32381
32382 2004-06-25  Robert Dewar  <dewar@gnat.com>
32383
32384         * gnat_rm.texi: Fix section on component clauses to indicate that the
32385         restriction on byte boundary placement still applies for bit packed
32386         arrays.
32387         Add comment on stack usage from Initialize_Scalars
32388
32389         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32390
32391         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32392         limiting nesting level.
32393
32394         * usage.adb: Add line for -gnatyLnnn switch
32395
32396         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32397         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32398
32399         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32400         type as well as on the subtype. This corrects a problem in freeze in
32401         setting alignments of atomic types.
32402
32403         * sem_eval.ads: Minor comment typo fixed
32404
32405         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32406         level.  Minor reformatting.
32407
32408         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32409         minus sign. This means that file names like a--b.adb will not be
32410         considered predefined.
32411
32412         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32413         record Test new flag and give diagnostic for bad component clause.
32414         (Freeze_Entity): Set alignment of array from component alignment in
32415         cases where this is safe to do.
32416
32417         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32418         arrays.
32419
32420         * cstand.adb: (Create_Standard): Set alignment of String to 1
32421
32422         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32423
32424         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32425         code in the common constrained array cases.
32426
32427         * a-storio.adb: Change implementation to avoid possible alignment
32428         problems on machines requiring strict alignment (data should be moved
32429         as type Buffer, not type Elmt).
32430
32431         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32432         killing the overflow checks which we really do not need (64-bits is
32433         enough).
32434
32435 2004-06-25  Vincent Celier  <celier@gnat.com>
32436
32437         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32438         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32439         inconditionally for the main project.
32440         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32441         (Link_Executables.Check_Time_Stamps): New procedure
32442         (Link_Executables.Link_Foreign): New procedure
32443         Changes made to reduce nesting level of this package
32444         (Check): New procedure
32445         (Add_Switches): When not in quiet output, check that a switch is not
32446         the concatenation of several valid switches. If it is, issue a warning.
32447         (Build_Global_Archive): If the global archive is rebuilt, linking need
32448         to be done.
32449         (Compile_Sources): Rebuilding a library archive does not imply
32450         rebuilding the global archive.
32451         (Build_Global_Archive): New procedure
32452         (Build_Library): New name for Build_Archive, now only for library
32453         project
32454         (Check_Archive_Builder): New procedure
32455         (Create_Global_Archive_Dependency_File): New procedure
32456         (Gprmake): Call Build_Global_Archive before linking
32457         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32458         throughout.
32459         (Scan_Arg): Display the Copyright notice when -v is used
32460
32461         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32462         for gnatls.
32463
32464         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32465         COMPILE.
32466         Add new GNAT LIST qualifier /FILES=
32467         Added qualifier /DIRECTORY= to GNAT METRIC
32468         Added qualifier /FILES= to GNAT METRIC
32469         Added qualifier /FILES to GNAT PRETTY
32470
32471         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32472         to take into account both versions of the switch.
32473
32474         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32475         always be the last switch to the gcc driver. Disable switch storing so
32476         that switches automatically added by the gcc driver are not put in the
32477         ALI file.
32478
32479         * prj.adb (Project_Empty): Take into account changes in components of
32480         Project_Data.
32481
32482         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32483
32484         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32485         used. Split Boolean component Ada_Sources_Present in two Boolean
32486         components Ada_Sources_Present and Other_Sources_Present.
32487         Minor reformatting
32488
32489         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32490         instead of Sources_Present.
32491         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32492
32493         * prj-nmsc.adb: Minor reformatting
32494         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32495         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32496         Check_Ada_Naming_Scheme.
32497         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32498         throughout.
32499
32500         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32501         In_Limited.
32502         Make sure that all cycles where there is at least one "limited with"
32503         are detected.
32504         (Parse_Single_Project): New Boolean parameter In_Limited
32505
32506         * prj-proc.adb (Recursive_Check): When Process_Languages is
32507         All_Languages, call first Prj.Nmsc.Ada_Check, then
32508         Prj.Nmsc.Other_Languages_Check.
32509
32510         * prj-proc.adb (Process): Use Ada_Sources_Present or
32511         Other_Sources_Present (instead of Sources_Present) depending on
32512         Process_Languages.
32513
32514         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32515         last switches.
32516
32517         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32518         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32519         False.
32520         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32521         False.
32522
32523         * lib.ads (Disable_Switch_Storing): New procedure.
32524
32525         * make.adb: Modifications to reduce nesting level of this package.
32526         (Check_Standard_Library): New procedure
32527         (Gnatmake.Check_Mains): New procedure
32528         (Gnatmake.Create_Binder_Mapping_File): New procedure
32529         (Compile_Sources.Compile): Add switch -gnatez as the last option
32530         (Display): Never display -gnatez
32531
32532         * Makefile.generic:
32533         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32534
32535         * gnatcmd.adb (Check_Project): New function
32536         (Process_Link): New procedure to reduce nesting depth
32537         (Check_Files): New procedure to reduce the nesting depth.
32538         For GNAT METRIC, include the inherited sources in extending projects.
32539         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32540         add the list of files from the sources of the project file. If this list
32541         is too long, put it in a temp text files and use switch -files=
32542         (Delete_Temp_Config_Files): Delete the temp text file that contains
32543         a list of source for gnatpp or gnatmetric, if one has been created.
32544         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32545         in the project file is too large, create a temporary text file that
32546         list them and pass it to the tool with "-files=<temp text file>".
32547         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32548
32549         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32550         generated file is in not in Ada.
32551
32552         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32553         (Scan_Ls_Arg): Add processing for -files=
32554         (Usage): Add line for -files=
32555
32556         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32557         (Normalize_Pathname): When on Windows and the path starts with a
32558         directory separator, make sure that the resulting path will start with
32559         a drive letter.
32560
32561         * clean.adb (Clean_Archive): New procedure
32562         (Clean_Project): When there is non-Ada code, delete the global archive,
32563         the archive dependency files, the object files and their dependency
32564         files, if they exist.
32565         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32566
32567 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32568
32569         * sinfo.ads: Fix typo in comment.
32570
32571         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32572         the TSS for remote access-to-subprogram types, since these TSS are
32573         always present once the type has been analyzed.
32574         (RAS_E_Dereference): Same.
32575
32576         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32577         reference raises Bad_Attribute, mark the reference as analyzed so the
32578         node (and any children resulting from rewrites that could have occurred
32579         during the analysis that ultimately failed) is not analyzed again.
32580
32581         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32582
32583         * exp_dist.adb: Minor comment fix.
32584
32585         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32586         type is an anonymous access type, no unchecked deallocation of the
32587         allocated object can occur. If the object is controlled, attach it with
32588         a count of 1. This allows attachment to the Global_Final_List, if
32589         no other relevant list is available.
32590         (Get_Allocator_Final_List): For an anonymous access type that is
32591         the type of a discriminant or record component, the corresponding
32592         finalisation list is the one of the scope of the type.
32593
32594 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32595
32596         * sem_ch3.adb (Replace_Type): When computing the signature of an
32597         inherited subprogram, use the first subtype if the derived type
32598         declaration has no constraint.
32599
32600         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32601         before applying previous optimization. Minor code cleanup.
32602
32603         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32604         placed at the beginning of an unpacked record without explicit
32605         alignment, a slice of it will be aligned and does not need a copy when
32606         used as an actual.
32607
32608 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32609
32610         PR ada/15591
32611         PR ada/15592
32612         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32613         reference is written with expressions mimicking parameters.
32614
32615 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32616
32617         PR ada/15589
32618         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32619         STEP 2a. The constraints of a full type declaration of a derived record
32620         type are checked for conformance with those declared in the
32621         corresponding private extension declaration. The message
32622         "not conformant with previous declaration" is emitted if an error is
32623         detected.
32624
32625 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32626
32627         * g-traceb.ads: Document the need for -E binder switch in the spec.
32628
32629         * g-trasym.ads: Document the need for -E binder switch in the spec.
32630
32631 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32632
32633         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32634
32635         * snames.h, snames.ads, snames.adb: Add entry for pragma
32636         Detect_Blocking.
32637
32638         * s-rident.ads: Change reference to pragma Detect_Blocking.
32639
32640         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32641         system.ads.
32642
32643         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32644         to indicate whether pragma Detect_Blocking is active.
32645
32646         * par-prag.adb: Add entry for pragma Detect_Blocking.
32647
32648         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32649         of not handling WITH.
32650         Note that this replaces the previous update which was incorrect.
32651
32652 2004-06-25  Javier Miranda  <miranda@gnat.com>
32653
32654         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32655         use-clauses to have a clean environment.
32656
32657         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32658         the installation of the use-clauses to stablish a clean environment in
32659         case of compilation of a separate unit; otherwise the call to
32660         use_one_package is protected by the barrier Applicable_Use.
32661
32662         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32663         the installation of the use-clauses to stablish a clean environment in
32664         case of compilation of a separate unit.
32665         (End_Use_Clauses): Minor comment cleanup.
32666
32667 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32668
32669         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32670
32671 2004-06-23  Richard Henderson  <rth@redhat.com>
32672
32673         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32674
32675 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32676
32677         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32678         now bool instead of int.
32679         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32680         * trans.c (gnu_switch_label_stack): New function.
32681         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32682         elaboration of renamed entity returns.
32683         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32684         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32685         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32686         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32687         DECL_SIZE_UNIT and simplify variable-sized case.
32688         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32689         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32690         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32691         (build_unit_elab): Disable for now.
32692         * utils.c (mark_visited): New function.
32693         (pushdecl): Walk tree to call it for global decl.
32694         (update_pointer_to): Update all variants of pointer and ref types.
32695         Add arg to COMPONENT_REF.
32696         (convert): Likewise.
32697         Move check for converting between variants lower down.
32698         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32699         (build_allocator): Don't force type of MODIFY_EXPR.
32700         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32701         put_var_into_stack.
32702
32703 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32704
32705         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32706         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32707         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32708         subprograms.
32709         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32710         all callers changed.
32711         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32712         the way that EXIT_STMT finds the loop label.
32713         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32714         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32715         (add_stmt): Use annotate_with_locus insted of setting directly.
32716         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32717         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32718         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32719         (build_vms_descriptor): Add extra args to ARRAY_REF.
32720         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32721         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32722         New cases.
32723         (build_binary_op): Don't make explicit CONVERT_EXPR.
32724         Add extra rgs to ARRAY_REF.
32725
32726 2004-06-14  Pascal Obry  <obry@gnat.com>
32727
32728         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32729         Windows.  Fix minor typo.
32730
32731         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32732         which is now supported on Windows. With this implementation using the
32733         Library Project feature is no different on Windows than on UNIX.
32734
32735 2004-06-14  Vincent Celier  <celier@gnat.com>
32736
32737         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32738         non-Ada sources.
32739
32740         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32741
32742         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32743         found, show the project name and the path of the previously parsed
32744         project file.
32745
32746 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32747
32748         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32749         array, avoid copying the actual before the call.
32750
32751 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32752
32753         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32754         Instead, allocate memory on worst-case alignment assumptions, and then
32755         return an aligned address within the allocated zone.
32756
32757 2004-06-14  Robert Dewar  <dewar@gnat.com>
32758
32759         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32760         elab entities in predefined units in No_Run_Time_Mode.
32761         (Gen_Adainit_C): Same fix
32762         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32763         units in No_Run_Time_Mode
32764         (Gen_Elab_Calls_C): Same fix
32765
32766         * symbols-vms-alpha.adb: Minor reformatting
32767
32768         * g-debpoo.ads: Minor reformatting
32769
32770         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32771
32772         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32773
32774         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32775         working on nodes.
32776
32777         * make.adb: Minor reformatting
32778
32779         * par-ch12.adb: Minor reformatting
32780
32781         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32782
32783         * prj-strt.adb: Minor reformatting
32784
32785         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32786         be more general.
32787
32788         * sem_attr.adb: Minor reformatting
32789
32790         * sem_ch7.adb: Minor reformatting
32791
32792         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32793         for type in the same unit as the object declaration.
32794
32795         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32796         static string expressions and not just string literals.
32797         Minor reformatting
32798         (Set_Warning): Reset restriction warning flag for restriction pragma
32799         Implement pragma Profile_Warnings
32800         Implement pragma Profile (Restricted)
32801         Give obolescent messages for old restrictions and pragmas
32802
32803         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32804         Profile_Warnings.
32805
32806         * s-rident.ads: Add declarations for restrictions required by profile
32807         Restricted and profile Ravenscar.
32808
32809         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32810
32811         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32812         configuration pragmas.
32813
32814 2004-06-11  Vincent Celier  <celier@gnat.com>
32815
32816         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32817         gnatsym, when symbol policy is Restricted.
32818
32819         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32820         gnatsym, when symbol policy is Restricted.
32821
32822         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32823         read the symbol file.
32824         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32825         symbol file is not in the object files. Do not create a new symbol file
32826         when symbol policy is Restricted.
32827
32828         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32829         in Scng.
32830
32831         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32832         Restricted.
32833         (Usage): Line for new switch -R
32834
32835         * make.adb (Initialize): When the platform is not VMS, add the
32836         directory where gnatmake is invoked in the front of the path, if
32837         gnatmake is invoked with directory information.  Change the Scan_Args
32838         while loop to a for loop.
32839         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32840         if Depth is equal or greater than the proposed depth, there is nothing
32841         to do.
32842         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32843         instead of 0.
32844
32845         * prj.ads: Add new symbol policy Restricted.
32846
32847         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32848         with the new parameters Check_All_Labels and Case_Location.
32849
32850         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32851         (Library_Symbol_File needs to be defined).
32852
32853         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32854         and Case_Location If Check_All_Labels is True, check that all values of
32855         the string type are used, and output warning(s) if they are not.
32856
32857         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32858         and Case_Location.
32859
32860         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32861
32862         * gnat_ugn.texi: Update documentation about the library directory in
32863         Library Projects.
32864
32865         * makegpr.adb (Display_Command): In verbose mode, also display the
32866         value of the CPATH env var, when the compiler is gcc.
32867         (Initialize): Change the Scan_Args while loop to a for loop
32868         (Compile_Individual_Sources): Change directory to object directory
32869         before compilations.
32870
32871         * symbols.ads: New symbol policy Restricted.
32872
32873 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32874
32875         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32876         is now taken care of internally in the Exception_Propagation package
32877         and does not require clients assistance any more.
32878
32879         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32880         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32881         functions. Helpers to maintain a predicate required in the handling of
32882         occurrence transfer between tasks.
32883         This is now handled internally and does not require clients assistance
32884         for the setup/propagate separation anymore.
32885         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32886         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32887         document.
32888
32889         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32890         raise_after_setup, now that everything is handled internally within the
32891         setup/propagation engine.
32892
32893 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32894
32895         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32896         Add additional conditions for the case of an actual being a simple
32897         name or literal. Improve inlining by preventing the generation
32898         of temporaries with a short lifetime (one use).
32899
32900 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32901
32902         PR ada/15587
32903         * einfo.ads: Minor comment updates for Has_Completion and
32904         E_Constant list of flags.
32905
32906         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32907         and constant redeclarations now set the Has_Completion flag of their
32908         defining identifiers.
32909
32910         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32911         Inspect_Deferred_Constant_Completion.
32912         Used to detect private deferred constants that have not been completed
32913         either by a constant redeclaration or pragma Import. Emits error message
32914         "constant declaration requires initialization expression".
32915
32916         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32917         completes a deferred constant.
32918
32919 2004-06-11  Geert Bosch  <bosch@gnat.com>
32920
32921         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32922
32923         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32924         calculating exponent for scaling denormal numbers.
32925         (Leading_Part): Properly raise Constraint_Error for zero or negative
32926         Adjustment.
32927         (Remainder): Properly raise Constraint_Error for zero divisor.
32928
32929 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32930
32931         * sem_util.adb: Minor reformatting.
32932
32933         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32934         dereference when accessing the entry parameter record.
32935         (Check_Array_Type): Always check for possible implicit dereference.
32936         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32937         Abort if a pointer is still present (denoting that an implicit
32938         dereference was left in the tree by the front-end).
32939
32940         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32941         dereference when accessing the entry parameter record.
32942         (Check_Array_Type): Always check for possible implicit dereference.
32943         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32944         Abort if a pointer is still present (denoting that an implicit
32945         dereference was left in the tree by the front-end).
32946
32947 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32948
32949         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32950         message, like the compiler itself does. Easier to parse the output.
32951
32952         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32953
32954         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32955         be base names, and not includes directories.
32956
32957 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32958
32959         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32960         so that dependencies are properly taken into account by make.
32961
32962 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32963
32964         PR ada/15622
32965         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32966         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32967
32968 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32969
32970         * Makefile.in (install-gnatlib): install target-specific run-time files.
32971
32972         * Make-lang.in: Remove obsolete targets.
32973
32974 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32975
32976         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32977         specification, to catch misuses of program unit names.
32978
32979         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32980         superfluous conversions in an instance.
32981
32982 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32983
32984         PR ada/15403
32985         * sem_ch12.adb (Save_References): If operator node has been folded to
32986         enumeration literal, associated_node must be discarded.
32987
32988 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
32989
32990         * s-stchop-vxworks.adb: Add required pragma Convention to
32991         Task_Descriptor because it is updated by a C function.
32992
32993 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
32994
32995         PR ada/15568
32996         * Makefile.in: Remove target specific SO_OPT on IRIX
32997
32998 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32999
33000         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33001         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33002         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33003         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33004         (STMT_STMT, USE_STMT): New statement codes.
33005         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33006         * ada-tree.h: Reflect above changes.
33007         (struct tree_loop_id): Deleted.
33008         (union lang_tree_node, struct lang_decl, struct lang_type):
33009         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33010         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33011         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33012         (IS_ADA_STMT): New macro.
33013         * decl.c (annotate_decl_with_node): New function.
33014         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33015         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33016         Call add_stmt_with_node to do needed assignments.
33017         Add call to update setjmp buffer directly, not via EXPR_STMT.
33018         (maybe_variable): Argment GNAT_NODE deleted.
33019         * gigi.h (maybe_variable): Likewise.
33020         (make_transform, add_stmt_with_node, set_block_for_group): New.
33021         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33022         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33023         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33024         (set_lineno, set_lineno_from_sloc): Likewise.
33025         (record_code_position, insert_code_for): Likewise.
33026         (gnat_poplevel): Now returns void.
33027         (end_subprog_body): Now takes argument.
33028         * misc.c (cgraph.h, tree-inline.h): New includes.
33029         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33030         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33031         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33032         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33033         (gnat_parse_file): Don't set immediate_size_expand.
33034         Call cgraph functions.
33035         (gnat_expand_expr): Remove most cases.
33036         (record_code_position, insert_code_for): Remove from here.
33037         * trans.c (toplev.h, tree-gimple.h): Now included.
33038         (discard_file_names): Deleted.
33039         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33040         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33041         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33042         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33043         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33044         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33045         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33046         (set_block_for_group, add_stmt_list): Likewise.
33047         (start_stmt_group): Renamed from start_block_stmt.
33048         (end_stmt_group): Likewise, from end_block_stmt.
33049         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33050         (gigi): Don't set discard_file_names or call set_lineno.
33051         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33052         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33053         Numerous changes throughout to reflect new names and complete
33054         function-at-a-time implementation.
33055         (gnat_expand_stmt): Delete or comment out all cases.
33056         (process_inlined_subprograms): Use add_stmt.
33057         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33058         call set_lineno; also remove unneeded block handling.
33059         (process_type): Remove unneeded block handling.
33060         (build_unit_elab): Remove calls to deleted functions.
33061         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33062         (tree-dump.h): Likewise.
33063         (struct ada_binding_level): Add field jmpbuf_decl.
33064         (gnat_define_builtin, gnat_install_builtins): New.
33065         (gnat_gimplify_function, gnat_finalize): Likewise.
33066         (gnat_poplevel): No longer return BLOCK, set it instead.
33067         Remove code dealing with nested functions.
33068         (gnat_init_decl_processing): Also set size_type_node.
33069         Call gnat_install_builtins.
33070         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33071         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33072         Remove special-case for "main".
33073         (end_subprog_body): Add arg and rework for tree-ssa.
33074         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33075         Add case for BOOLEAN_TYPE.
33076         * utils2.c (rtl.h): Now include.
33077         (build_call_raise): Test Debug_Flag_NN directly.
33078         (build_call_alloc_dealloc): Don't use local stack allocation for now.
33079         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33080         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33081
33082 2004-06-07  Robert Dewar  <dewar@gnat.com>
33083
33084         * a-direct.ads, einfo.ads: Minor comment updates
33085
33086         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33087         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33088         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33089         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33090         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33091
33092         * s-interr-sigaction.adb: Remove unreferenced variable
33093         (Attached_Interrupts).  Minor reformatting.
33094         Avoid use of variable I (replace by J).
33095
33096         * par-ch10.adb: Fix text of one error message
33097
33098         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33099         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33100         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33101         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33102         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33103         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33104         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33105         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33106         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33107         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33108         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33109         2005 support.
33110
33111 2004-06-07  Doug Rupp  <rupp@gnat.com>
33112
33113         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33114
33115         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33116
33117         * mlib-tgt-vms-ia64.adb: New file.
33118
33119         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33120         Add mlib-tgt-vms-ia64.adb
33121         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33122         Move to alpha specific ifeq section.
33123         Add VMS specific versions of symbols.adb
33124         Renaming of 5q vms files.
33125
33126         * 5qsystem.ads renamed to system-vms_64.ads.
33127
33128 2004-06-07  Vincent Celier  <celier@gnat.com>
33129
33130         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33131         explain that when a time of day corresponding to the non existing hour
33132         on the day switching to DST is specified, Split may return a different
33133         value for Seconds.
33134
33135         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33136         to GNAT PRETTY.
33137
33138         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33139         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33140
33141         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33142         to False.
33143         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33144         the linking options.
33145         (Build_Library.Check_Libs): On VMS, if there is a dependency on
33146         g-trasym.ads, set Gtrasymobj_Needed to True.
33147
33148         * prj-attr.adb: Add new package Metrics for gnatmetric
33149
33150         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33151         canonical case to take into account files with upper case characters on
33152         Windows.
33153         (Ada_Check): Load the reference symbol file name in the name buffer to
33154         check it, not the symbol file name.
33155
33156         * snames.ads, snames.adb: Add standard name Metrics (name of project
33157         file package for gnatmetric).
33158
33159         * vms_conv.ads: Add Metric to Comment_Type
33160
33161         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33162
33163         * vms_data.ads: Add qualifiers for GNAT METRIC
33164
33165         * makegpr.adb (Link_Executables): Take into account the switches
33166         specified in package Linker of the main project.
33167
33168 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
33169
33170         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33171         the index of the last element is Units.Last, not Units.Table'Last
33172         (which is usually not a valid index within the actually allocated
33173         storage for the table).
33174
33175         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33176         determines whether to generate a call to a checked storage pool
33177         Dereference action.
33178         Generate such a call only for a dereference that either comes from
33179         source, or is the result of rewriting a dereference that comes from
33180         source.
33181
33182 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
33183
33184         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33185
33186 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
33187
33188         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33189         file level, elaborate the stride for inner dimensions in alignment
33190         units, not bytes.
33191
33192         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33193         in a comment.
33194
33195 2004-06-07  Javier Miranda  <miranda@gnat.com>
33196
33197         * exp_ch6.adb: Correct wrong modification in previous patch
33198
33199 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
33200
33201         * g-trasym.ads: Corrected comment to properly reflect level of support
33202         on VMS.
33203
33204 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
33205
33206         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33207         includes case of a variable referenced on the left hand side of an
33208         assignment, therefore remove redundant code. Variables and prefixes of
33209         indexed or selected components are now marked as referenced on left
33210         hand side. Warnings are now properly emitted when variables or prefixes
33211         are assigned but not read.
33212
33213         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33214         left hand side referenced variables. Private access types do not
33215         produce the warning "variable ... is assigned but never read".
33216         Add also additional checks to left hand side referenced variables.
33217         Aliased, renamed objects and access types do not produce the warning
33218         "variable ... is assigned but never read" since other entities may read
33219         the memory location.
33220
33221 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
33222
33223         * Makefile.in: In the powerpc/vxworks-specific section, restore
33224         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33225         by mistake).
33226
33227 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
33228
33229         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33230         predefined operators.
33231         Removes spurious type errors from g-trasym-vms.adb.
33232
33233         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33234         distinct from the operator appearing in the source, call appropriate
33235         routine to insert conversions when needed, and complete resolution of
33236         node.
33237         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33238         interpretations for rewritten right operand.
33239         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33240         the other operand is overloaded and the context is a type conversion.
33241
33242 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33243
33244         * ada-tree.def (BLOCK_STMT): Now has two operands.
33245         (BREAK_STMT): New.
33246
33247         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33248
33249         * gigi.h: (gnat_poplevel): Now returns a tree.
33250
33251         * trans.c (end_block_stmt): Add arg; all callers changed.
33252         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33253         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33254         (add_stmt): Set TREE_TYPE.
33255         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33256         (gnat_expand_stmt, case BREAK_STMT): New case.
33257
33258         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33259
33260 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
33261
33262         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33263         procedure Set_Stack_Size that is not needed.
33264
33265 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
33266
33267         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33268         used for gnatpp input file and for the files upon which it depends
33269
33270 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
33271
33272         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33273
33274 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
33275
33276         * gnatvsn.ads: Bump version numbers appropriately.
33277         Add new build type.
33278
33279 2004-06-07  Pascal Obry  <obry@gnat.com>
33280
33281         * gnat_ugn.texi: Improve comments about imported names and link names
33282         on Windows. Add a note about the requirement to use -k gnatdll's option
33283         when working with a DLL which has stripped stdcall symbols (no @nn
33284         suffix).
33285
33286 2004-05-27  Vincent Celier  <celier@gnat.com>
33287
33288         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33289         COMMENTS_LAYOUT=UNTOUCHED
33290
33291         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33292         symbols-vms-alpha.adb
33293
33294 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
33295
33296         * sem.ads: Clarify documentation on checks suppression.
33297
33298         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33299
33300 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
33301
33302         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33303         the case of multiple derivations.
33304         (Is_Object_Reference): For a selected component, verify that the prefix
33305         is itself an object and not a value.
33306
33307         * sem_ch12.adb (Same_Instantiated_Constant): New name for
33308         Same_Instantiated_Entity.
33309         (Same_Instantiated_Variable): Subsidiary to
33310         Check_Formal_Package_Instance, to recognize actuals for in-out generic
33311         formals that are obtained from a previous formal package.
33312         (Instantiate_Subprogram_Body): Emit proper error when
33313         generating code and the proper body of a stub is missing.
33314
33315         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33316         has a universal interpretation, do the disambiguation here.
33317
33318         * exp_ch4.adb (Expand_N_Type_Conversion,
33319         Expand_N_Unchecked_Type_Conversion): Special handling when target type
33320         is Address, to avoid typing anomalies when Address is a visible integer
33321         type.
33322
33323         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33324         to determine whether a subprogram should not be marked Pure, even when
33325         declared in a pure package.
33326
33327 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
33328
33329         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33330
33331         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33332         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33333         Update the documentation about the Ravenscar profile, following the
33334         definition found in AI-249.
33335
33336         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33337         setting the Profile (Ravenscar). This must be done in addition to
33338         setting the required restrictions.
33339
33340         * rtsfind.ads: Add the set of operations defined in package
33341         Ada.Interrupts.
33342
33343         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33344         restriction.
33345
33346 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
33347
33348         lang-specs.h: Always require -c or -S and always redirect to /dev/null
33349         if -gnatc or -gnats is passed.
33350
33351 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
33352
33353         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33354         a significant reference. Warnings are now properly emitted when a
33355         discriminated type is not referenced.
33356
33357         * lib-xref.adb (Generate_Reference): A deferred constant completion,
33358         record representation clause or record type discriminant does not
33359         produce a reference to its corresponding entity. Warnings are now
33360         properly emitted when deferred constants and record types are not
33361         referenced.
33362
33363 2004-05-27  Geert Bosch  <bosch@gnat.com>
33364
33365         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33366         Fixes ACATS Annex G tests.
33367
33368 2004-05-27  Robert Dewar  <dewar@gnat.com>
33369
33370         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33371         handling WITH
33372
33373 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33374
33375         * s-interr.adb (Server_Task): Take into account case of early return
33376         from sigwait under e.g. linux.
33377
33378 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33379
33380         * gnat_ugn.texi: Add description for the new gnatpp options:
33381          -rnb - replace the original source without creating its backup copy
33382          -c0 - do not format comments
33383
33384 2004-05-24  Geert Bosch  <bosch@gnat.com>
33385
33386         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33387         with 192 bits of precision, sufficient to reduce a double-extended
33388         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33389         in -2.0**32 .. 2.0**32.
33390         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33391         reduction by the processor, which only uses a 68-bit approximation of
33392         Pi.
33393         (Tan): Always reduce arguments and compute function either using
33394         the processor's fptan instruction, or by dividing sin and cos as needed.
33395
33396 2004-05-24  Doug Rupp  <rupp@gnat.com>
33397
33398         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33399         gcc error on 32/64 bit VMS.
33400
33401 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33402
33403         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33404         since this is what we get for stack overflows although not documented
33405         as such.
33406         Document the issues which may require adjustments to our signal
33407         handlers.
33408
33409 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33410
33411         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33412         enclosing dynamic scope if the instantiation is within a generic unit.
33413
33414 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33415
33416         * exp_dbug.ads: Fix typo.
33417
33418         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33419         Rename it to its proper name: system-linux-ia64.ads
33420         (stamp-gnatlib1): Remove extra target specific run time files when
33421         setting up the rts directory.
33422
33423 2004-05-24  Javier Miranda  <miranda@gnat.com>
33424
33425         * einfo.ads, einfo.adb (Limited_Views): Removed.
33426         (Limited_View): New attribute that replaces the previous one. It is
33427         now a bona fide package with the limited-view list through the
33428         first_entity and first_private attributes.
33429
33430         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33431         limited-private-with clause.
33432         (Install_Limited_Withed_Unit): Install the private declarations of a
33433         limited-private-withed package. Update the installation of the shadow
33434         entities according to the new structure (see Build_Limited_Views)
33435         (Build_Limited_Views): Replace the previous implementation of the
33436         limited view by a package entity that references the first shadow
33437         entity plus the first shadow private entity (required for limited-
33438         private-with clause)
33439         (New_Internal_Shadow_Entity): Code cleanup.
33440         (Remove_Limited_With_Clause): Update the implementation to undo the
33441         new work carried out by Build_Limited_Views.
33442         (Build_Chain): Complete documentation.
33443         Replace Ada0Y by Ada 0Y in comments
33444         Minor reformating
33445
33446         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33447         types the level of accessibility depends on the enclosing type
33448         declaration.
33449
33450         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33451         entities. Complete documentation of previous change.
33452
33453 2004-05-24  Robert Dewar  <dewar@gnat.com>
33454
33455         * namet.adb: Minor reformatting
33456         Avoid use of name I (replace by J)
33457         Minor code restructuring
33458
33459         * sem_ch6.adb: Minor reformatting
33460
33461         * lib-writ.adb: Do not set restriction as active if this is a
33462         Restriction_Warning case.
33463
33464         * sem_prag.adb: Reset restriction warning flag if real pragma
33465         restriction encountered.
33466
33467         * s-htable.adb: Minor reformatting
33468         Change rotate count to 3 in Hash (improves hash for small strings)
33469
33470         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33471
33472         * gnat_ugn.texi: Add new section of documentation "Code Generation
33473         Control", which describes the use of -m switches.
33474
33475 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33476
33477         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33478         through the DECL_INITIAL for renamed variables.
33479
33480 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33481
33482         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33483
33484 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33485
33486         * exp_dbug.ads: Correct comments concerning handling of overloading,
33487         since we no longer use $ anymore.
33488
33489 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33490
33491         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33492         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33493         with illegal subunits.
33494
33495 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33496
33497         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33498         body with front-end inlining enabled, check whether an inline pragma
33499         appears immediately after the body and applies to it.
33500
33501         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33502         enabled and the pragma appears after the body of the subprogram.
33503
33504 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33505
33506         Part of function-at-a-time conversion
33507
33508         * misc.c (adjust_decl_rtl): Deleted.
33509         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33510         Define.
33511
33512         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33513         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33514         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33515
33516         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33517         when making a decl.
33518         (gnat_to_gnu_entity): Likewise.
33519         Use add_stmt to update setjmp buffer.
33520         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33521         flush_addressof.
33522         No longer call adjust_decl_rtl.
33523         (DECL_INIT_BY_ASSIGN_P): New macro.
33524         (DECL_STMT_VAR): Likewise.
33525
33526         * trans.c (gigi): Call start_block_stmt to make the outermost
33527         BLOCK_STMT.
33528         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33529         Call start_block_stmt and end_block_stmt temporarily.
33530         Use gnat_expand_stmt instead of expand_expr_stmt.
33531         (add_decl_stmt): New function.
33532         (tree_transform): Call it.
33533         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33534         (end_block_stmt): Set type and NULL_STMT.
33535         (gnat_expand_stmt): Make recursize call instead of calling
33536         expand_expr_stmt.
33537         (gnat_expand_stmt, case DECL_STMT): New case.
33538         (set_lineno_from_sloc): Do nothing if global.
33539         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33540         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33541         (build_block_stmt): Call them.
33542         (gnat_to_code): Don't expand NULL_STMT.
33543         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33544         args.
33545         (tree_transform): Likewise.
33546         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33547         (gnat_expand_stmt, case NULL_STMT): New case.
33548         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33549         IF_STMT_TRUE.
33550
33551         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33552         TREE_ADDRESSABLE.
33553
33554         * utils.c (create_var_decl): Do not call expand_decl or
33555         expand_decl_init.
33556         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33557         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33558         here.
33559         (struct e_stack): Add chain_next to GTY.
33560         (struct binding_level): Deleted.
33561         (struct ada_binding_level): New struct.
33562         (free_block_chain): New.
33563         (global_binding_level, clear_binding_level): Deleted.
33564         (global_bindings_p): Rework to see if no chain.
33565         (kept_level_p, set_block): Deleted.
33566         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33567         new data structure and work directly on BLOCK node.
33568         (gnat_poplevel): Similarly.
33569         (get_decls): Look at BLOCK_VARS.
33570         (insert_block): Work directly on BLOCK node.
33571         (block_has_var): New function.
33572         (pushdecl): Rework for new binding structures.
33573         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33574         poplevel.
33575         (build_subprog_body): Likewise.
33576         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33577
33578         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33579
33580         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33581         (DECL_STMT_VAR): Likewise.
33582
33583 2004-05-17  Robert Dewar  <dewar@gnat.com>
33584
33585         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33586         procedure
33587
33588         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33589         of restriction synonyums by using
33590         Restrict.Process_Restriction_Synonyms.
33591
33592         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33593
33594         * s-restri.ads (Tasking_Allowed): Correct missing comment
33595
33596         * s-rident.ads: Add entries for restriction synonyms
33597
33598         * ali.adb: Fix some problems with badly formatted ALI files that can
33599         result in infinite loops.
33600
33601         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33602         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33603         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33604         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33605         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33606         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33607         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33608         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33609         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33610         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33611         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33612         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33613         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33614         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33615         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33616         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33617         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33618         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33619         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33620         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33621         to Task_Id (minor cleanup).
33622
33623 2004-05-17  Vincent Celier  <celier@gnat.com>
33624
33625         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33626         directory separator.
33627
33628         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33629         project being extended, if Languages is not declared in extending
33630         project.
33631
33632 2004-05-17  Javier Miranda  <miranda@gnat.com>
33633
33634         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33635         limited view of a visible sibling.
33636
33637 2004-05-14  Robert Dewar  <dewar@gnat.com>
33638
33639         * gnat_ugn.texi: Minor change to -gnatS documentation
33640
33641         * sprint.adb: Remove some instances of Assert (False) and for this
33642         purpose replace them by output of a ??? string.
33643
33644         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33645         Assert (False).
33646
33647         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33648         flag processing. This was suppressing required dependencies in
33649         No_Run_Time mode and is not needed since the binder does not generate
33650         references for things in libgnat anyway.
33651
33652         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33653         warning.
33654
33655 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33656
33657         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33658         resolver library.
33659
33660         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33661         action for the case of an actual parameter in an init proc call.
33662
33663 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33664
33665         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33666         subtype, check visible entities in base type.
33667
33668         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33669         actions if the object is a renaming.
33670
33671         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33672         Check_Formal_Package_Instance, to determine more precisely when the
33673         formal and the actual denote the same entity.
33674
33675 2004-05-14  Javier Miranda  <miranda@gnat.com>
33676
33677         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33678
33679         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33680         corresponding to a private_with must be removed from visibility; it
33681         will be made visible later, just before we analyze the private part of
33682         the package.
33683         (Check_Private_Child_Unit): Allow private_with clauses in public
33684         siblings.
33685         (Install_Siblings): Make visible the private entities of private-withed
33686         siblings.
33687         (Install_Withed_Unit): Do not install the private withed unit if we
33688         are compiling a package declaration and the Private_With_OK flag was
33689         not set by the caller. These declarations will be installed later,
33690         just before we analyze the private part of the package.
33691
33692         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33693         during the evaluation of the expression that initializes the object,
33694         decorate it with the expected type to avoid cascade errors.
33695         Code cleanup.
33696
33697         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33698         subprogram we have to install the private_with clauses after its
33699         specification has been analyzed (as documented in AI-262.TXT).
33700
33701         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33702         current compilation unit has a private with on a given entity.
33703         (Find_Direct_Name): Detect the Beaujolais problem described in
33704         AI-262.TXT
33705
33706         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33707         provides the functionality of the function Is_Ancestor that was
33708         previously available in sem_ch10. It has been renamed to avoid
33709         overloading.
33710
33711         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33712
33713 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33714
33715         * utils.c (build_vms_descriptor): Use SImode pointers.
33716
33717 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33718
33719         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33720
33721 2004-05-14  GNAT Script  <nobody@gnat.com>
33722
33723         * Make-lang.in: Makefile automatically updated
33724
33725 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33726
33727         Renaming of target specific files for clarity
33728
33729         * Makefile.in: Rename GNAT target specific files.
33730
33731         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33732         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33733         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33734         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33735         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33736         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33737         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33738         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33739         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33740         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33741         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33742         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33743         51osinte.adb, 51osinte.ads, 51system.ads,
33744         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33745         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33746         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33747         56tpopsp.adb, 57system.ads, 58system.ads,
33748         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33749         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33750         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33751         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33752         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33753         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33754         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33755         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33756         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33757         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33758         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33759         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33760         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33761         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33762         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33763         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33764         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33765         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33766         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33767         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33768         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33769         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33770         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33771         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33772         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33773         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33774         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33775         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33776         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33777         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33778         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33779         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33780         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33781         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33782         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33783         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33784         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33785         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33786         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33787         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33788
33789         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33790         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33791         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33792         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33793         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33794         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33795         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33796         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33797         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33798         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33799         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33800         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33801         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33802         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33803         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33804         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33805         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33806         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33807         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33808         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33809         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33810         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33811         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33812         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33813         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33814         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33815         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33816         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33817         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33818         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33819         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33820         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33821         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33822         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33823         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33824         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33825         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33826         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33827         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33828         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33829         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33830         s-osinte-vms.ads, s-osinte-vxworks.adb,
33831         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33832         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33833         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33834         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33835         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33836         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33837         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33838         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33839         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33840         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33841         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33842         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33843         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33844         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33845         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33846         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33847         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33848         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33849         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33850         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33851         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33852         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33853         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33854         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33855         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33856         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33857         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33858         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33859         system-irix-o32.ads, system-linux-x86_64.ads,
33860         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33861         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33862         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33863         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33864         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33865         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33866         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33867         above.
33868
33869 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33870
33871         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33872
33873 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33874
33875         Merge from tree-ssa-20020619-branch.
33876
33877         * config-lang.in (boot_language, build_by_default): Set
33878         to no.
33879         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33880         (max_size): Add static chain op for call_expr.
33881
33882 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33883
33884         PR target/15331
33885         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33886
33887 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33888
33889         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33890         COND_EXPR.
33891
33892 2004-05-10  Doug Rupp  <rupp@gnat.com>
33893
33894         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33895         system.aux_dec.
33896
33897         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33898
33899         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33900
33901         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33902         Fixes undefined symbols in IA64 gnatlib.
33903
33904         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33905
33906         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33907         Short_Address). This will be moved to system.auxdec.
33908
33909 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33910
33911         * sem_util.adb: Replace test for presence of a node that is always
33912         present with a call to Discard_Node.
33913
33914         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33915         Analyze on the library unit node after generation of distribution stub
33916         constructs.  The call was a no-op because Unit_Node has already been
33917         Analyzed, and the tree fragments for the distribution stubs are
33918         analyzed as they are inserted in Exp_Dist.
33919         Update comment regarding to distribution stubs to reflect that we
33920         do not generate stub in separate files anymore.
33921
33922         * einfo.ads: Clarify the fact that a tagged private type has the
33923         E_Record_Type_With_Private Ekind.
33924
33925         * erroutc.adb: Minor reformatting
33926
33927         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33928         values if line length is increased using -gnatyM (noticed during code
33929         reading).
33930
33931         * eval_fat.adb: Minor reformatting
33932         Put spaces around exponentiation operator
33933
33934 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33935
33936         PR ada/15005
33937         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33938         has been rewritten as an explicit dereference, retrieve type of
33939         original node to check for possibly unconstrained record type.
33940
33941 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33942
33943         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33944         overriding, use the operation of the parent unconditionally.
33945
33946         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33947         operation when either operand is a literal, to avoid further
33948         ambiguities.
33949
33950         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33951         overridden by a previous explicit declaration, mark the previous entity
33952         as overriding.
33953
33954         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33955         Is_Visibly_Controlled, to determine whether a declaration of a
33956         primitive control operation for a derived type overrides an inherited
33957         one. Add warning if the explicit declaration does not override.
33958
33959 2004-05-10  Vincent Celier  <celier@gnat.com>
33960
33961         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33962         some cases when the sources are no longer present.
33963
33964         * make.adb (Collect_Arguments): Fail if an external source, not part
33965         of any project need to be compiled, when switch -x has not been
33966         specified.
33967
33968         * makeusg.adb: Document new switch -x
33969
33970         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33971         defaulted to False.
33972
33973         * switch-m.adb (Scan_Make_Switches): New switch -x
33974
33975         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33976         gnatmake switch -x.
33977
33978         * gnat_ugn.texi: Document new gnatmake switch -x
33979
33980 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33981
33982         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33983
33984         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33985         (process_attributes): Likewise.
33986
33987 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
33988
33989         * s-inmaop.ads: Fix spelling mistake in one of the comments.
33990
33991 2004-05-10  Robert Dewar  <dewar@gnat.com>
33992
33993         * gnat_ugn.texi: Document that for config pragma files, the maximum
33994         line length is always 32767.
33995
33996         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33997         literals is now allowed.
33998
33999         * gnat-style.texi: Remove statement about splitting long lines before
34000         an operator rather than after, since we do not follow this rule at all.
34001         Clarify rule (really lack of rule) for spaces around exponentiation
34002
34003         * sem_elim.adb: Allow concatenation of string literals as well as a
34004         single string literal for pragma arguments.
34005
34006         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34007
34008         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34009         written for append case.
34010
34011         * frontend.adb: Changes to avoid checking max line length in config
34012         pragma files.
34013
34014         * g-os_lib.ads: Minor reformatting
34015
34016         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34017         wrong in any case. Instead use standard value. Noticed during code
34018         reading.
34019
34020         * opt.ads (Max_Line_Length): New field, used to implement removal of
34021         limitation on length of lines when scanning config pragma files.
34022
34023         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34024         makeutl.ads, makeutl.adb: Minor reformatting
34025
34026         * scn.adb: Do not check line length while scanning config pragma files
34027         Do not check line length while scanning out license information
34028
34029         * scng.adb: Changes to avoid line length checks while parsing config
34030         pragma files.
34031
34032 2004-05-10  GNAT Script  <nobody@gnat.com>
34033
34034         * Make-lang.in: Makefile automatically updated
34035
34036 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
34037
34038         * osint.adb (Find_Program_Name): Fix handling of VMS version
34039         number.
34040
34041 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
34042
34043         * g-os_lib.ads (Invalid_Time): New constant
34044
34045         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34046         return OS_Time instead of time_t to match what is imported by Ada.
34047         Now return -1 if the file doesn't exist, instead of a random value
34048
34049 2004-05-05  Robert Dewar  <dewar@gnat.com>
34050
34051         * usage.adb: Add line for -gnatR?s switch
34052
34053         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34054
34055         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34056         and for Match (Data_First, Data_last)
34057
34058         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34059         written when we are dealing with multi-unit files.
34060
34061 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
34062
34063         * Makefile.in: Remove unused targets and variables.
34064
34065 2004-05-05  Vincent Celier  <celier@gnat.com>
34066
34067         * switch-m.adb: New gnatmake switch -eI
34068
34069         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34070         of new gnatmake switch -eInnn.
34071
34072         * makegpr.adb: Take into account new parameters Index and Src_Index in
34073         Prj.Util.
34074
34075         * clean.adb: Implement support for multi-unit sources, including new
34076         switch -i.
34077
34078         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34079         Src_Index.
34080
34081         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34082         (Extract_From_Q): New out parameter Index
34083         (Mark, Is_Marked): Subprograms moved to Makeutl
34084         (Switches_Of): New parameter Source_Index
34085         (Add_Switch): New parameter Index
34086         (Check): New parameter Source_Index
34087         (Collect_Arguments): New parameter Source_Index
34088         (Collect_Arguments_And_Compile): New parameter Source_Index
34089         (Compile): New parameter Source_Index
34090         Put subprograms in alphabetical order
34091         Add support for multi-source sources, including in project files.
34092
34093         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34094         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34095         Make.
34096
34097         * makeusg.adb: New gnatmake switch -eInnn
34098
34099         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34100         Prj.Util.Value_Of.
34101
34102         * opt.ads (Main_Index): New variable, defaulted to 0.
34103
34104         * osint.ads, osinte.adb (Add_File): New parameter Index
34105         (Current_Source_Index): New function
34106
34107         * prj.adb: Take into account new components Index and Src_Index
34108
34109         * prj.ads (String_Element): New component Index
34110         (Variable_Value): New component Index
34111         (Array_Element): New component Src_Index
34112
34113         * prj-attr.adb: Indicate that optional index may be specified for
34114         attributes Main, Executable, Spec, Body and some of Switches.
34115
34116         * prj-attr.ads (Attribute_Kind): New values for optional indexes
34117         (Attribute_Record): New component Optional_Index
34118
34119         * prj-com.ads (File_Name_Data): New component Index
34120
34121         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34122
34123         * prj-env.adb (Put): Output optional index
34124
34125         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34126         attributes Spec and Body.
34127
34128         * prj-nmsc.adb: Process optional indexes
34129
34130         * prj-pp.adb: Ouput "at" for optional indexes
34131
34132         * prj-proc.adb: Take into account optional indexes
34133
34134         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34135         Optional_Index. For string literal,
34136         process optional index when Optional_Index is True.
34137         (Parse_Expresion): New Boolean parameter Optional_Index
34138
34139         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34140         (Set_Source_Index_Of): New procedure
34141
34142         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34143         index.
34144
34145         * prj-util.ads (Executable_Of): New parameter Index
34146         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34147         New parameter Src_Index, defaulted to 0.
34148
34149 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34150
34151         PR ada/15257
34152         * sem_ch3.adb (Access_Definition): If this is an access parameter
34153         whose designated type is imported through a limited_with clause, do
34154         not add the enclosing subprogram to the list of private dependents of
34155         the type.
34156
34157 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34158
34159         PR ada/15258
34160         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34161         a limited_with clause, and the other is its non-limited view.
34162
34163 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
34164
34165         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34166
34167         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34168         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34169         Stand.Boolean_Literals to produce references to entities
34170         Standard_False and Standard_True from compile-time computed boolean
34171         values.
34172
34173         * stand.ads (Boolean_Literals): New variable, provides the entity
34174         values for False and True, for use by the expander.
34175
34176 2004-05-05  Doug Rupp  <rupp@gnat.com>
34177
34178         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34179         5vinmaop.adb: Unchecked convert Short_Address vice Address
34180
34181         * adaint.c, raise.c: Caste CRTL function return value
34182         to avoid gcc error on 32/64 bit IVMS.
34183
34184         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34185         target = IA64/VMS.
34186
34187         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34188
34189         * 5qsystem.ads (Address): Declare as Long_Integer
34190         (Short_Address): Declare as 32 bit subtype of Address
34191         Declare  abstract address operations to avoid gratuitous ambiguities.
34192
34193 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
34194
34195         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34196         instead of the old Boolean_Entry_Barriers.
34197         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34198
34199 2004-05-05  GNAT Script  <nobody@gnat.com>
34200
34201         * Make-lang.in: Makefile automatically updated
34202
34203 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34204
34205         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34206
34207 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
34208
34209         PR ada/15152
34210         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34211         alone. Replacing object references by literals is inappropriate in a
34212         so low level context.
34213
34214 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34215
34216         * a-exexpr.adb: Add comments
34217
34218 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
34219
34220         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34221         declare the Ancestor_Tags array in Type_Specific_Data with a small size
34222         without risking a bounds check error when accessing one of its
34223         components.
34224         (Type_Specific_Data): Define Ancestor_Tags as a small array.
34225         This prevents us from hitting a limitation during the debug info
34226         generation when using stabs.
34227
34228         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34229         small array.
34230         This prevents us from hitting a limitation during the debug info
34231         generation when using stabs.
34232
34233 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
34234
34235         lang-specs.h: Remove -gnatz* from specs.
34236
34237 2004-05-03  Vincent Celier  <celier@gnat.com>
34238
34239         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34240
34241         * Make-lang.in, Makefile.in: Add gprmake
34242
34243 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
34244
34245         * sem_aggr.adb: Fix typo in comment.
34246
34247 2004-05-03  Robert Dewar  <dewar@gnat.com>
34248
34249         * make.adb: Minor reformatting
34250
34251         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34252
34253         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34254         so that it works when address is not a private type.
34255
34256         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34257         properly with rewritten unchecked conversions. This prevents
34258         order-of-elaboration issues that can otherwise arise.
34259         (Minimum_Size): Don't check size of access types under VMS
34260
34261         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34262         interpretations of integer literals as type System.Address.
34263
34264         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34265         (Is_Descendent_Of): New function
34266
34267 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
34268
34269         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34270         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34271         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34272
34273         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34274         of the old Max_Entry_Queue_Depth.
34275
34276         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34277         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34278         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34279
34280         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34281         New entry for proper handling of Max_Entry_Queue_Depth.
34282         New entry for proper handling of No_Dynamic_Interrupts.
34283
34284         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34285         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34286         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34287         the GNAT specific restriction Max_Entry_Queue_Depth.
34288         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34289         the GNAT specific restriction No_Dynamic_Interrupts.
34290
34291         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34292         instead of the old Boolean_Entry_Barriers.
34293         Use the new restriction No_Dynamic_Attachment instead of the old
34294         No_Dynamic_Interrupts.
34295
34296         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34297         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34298
34299         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34300         of the old Max_Entry_Queue_Depth.
34301
34302 2004-05-03  GNAT Script  <nobody@gnat.com>
34303
34304         * Make-lang.in: Makefile automatically updated
34305
34306 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
34307
34308         * checks.adb (Enable_Range_Check): If the prefix of an index component
34309         is an access to an unconstrained array, perform check unconditionally.
34310
34311 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34312
34313         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34314         Component_Clause.
34315
34316 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
34317
34318         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34319         alternate stack setting. There was no support for the tasking cases
34320         and the changes eventually caused a number of side-effect failures in
34321         the non-tasking case too.
34322
34323 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
34324
34325         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34326         -gnats is passed.
34327
34328 2004-04-29  Vincent Celier  <celier@gnat.com>
34329
34330         * make.adb (Gnatmake): Increase max size of argument array for
34331         gnatbind for the potential addition of -F.
34332         If there are Stand-Alone Library projects, invoke gnatbind with -F to
34333         be sure that elaboration flags will be checked.
34334
34335         * switch-c.adb: Correct call to Scan_Pos for -gnateI
34336
34337 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
34338
34339         * sem_warn.adb (Check_References): Move '<access-variable> may be
34340         null' warning out of under Warn_On_No_Value_Assigned.
34341
34342 2004-04-29  Ed Falis  <falis@gnat.com>
34343
34344         * gnat_ugn.texi: Fixed texi error
34345
34346 2004-04-29  Robert Dewar  <dewar@gnat.com>
34347
34348         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34349         abstract operations if they come from predefined files.
34350
34351         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34352         Dynamic, not RM).
34353
34354         * s-addope.adb: Correct obvious error in mod function
34355
34356 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
34357
34358         * Makefile.in: Add target pairs for powerpc darwin*
34359         tasking support.
34360
34361         * a-intnam-darwin.ads, s-osinte-darwin.adb,
34362         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34363
34364 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34365
34366         * Makefile.in: Add target macro definitions for s390*-linux*.
34367         * system-linux-s390.ads: New file.
34368         * system-linux-s390x.ads: New file.
34369
34370 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34371
34372         * gnat_ugn.texi: Correct argument to @setfilename.
34373
34374 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34375
34376         * a-exexpr.adb (Unwind_Word): New data type.
34377         (Unwind_Exception): Use it as type of Private1 and Private2.
34378
34379         * raise.c (db_action_for): Fix debug printf.
34380
34381 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34382
34383         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34384         integer type.
34385
34386 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34387
34388         * decl.c (gnat_to_gnu_entity, case object): Call
34389         __builtin_update_setjmp_buf.
34390
34391         * gigi.h (update_setjmp_buf): Deleted.
34392         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34393
34394         * misc.c: (update_setjmp_buf): Deleted.
34395
34396         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34397         around block of RTL.
34398
34399         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34400
34401 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34402
34403         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34404         subprogram for which no pragma All_Calls_Remote applies, store the
34405         address of the real subprogram in the underlying record type, so local
34406         dereferences do not go through the PCS.
34407
34408 2004-04-26  Robert Dewar  <dewar@gnat.com>
34409
34410         * i-c.ads: Add some type qualifications to avoid ambiguities when
34411         compiling with s-auxdec.ads and a non-private address type.
34412
34413 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34414
34415         * Makefile.rtl: Fix error in previous check-in:
34416         Add s-addope.o to non tasking object list (rather than tasking object
34417         list).
34418
34419 2004-04-26  Javier Miranda  <miranda@gnat.com>
34420
34421         * sem_aggr.adb: Fix typo in comments
34422         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34423         Required to check the null-exclusion attribute.
34424
34425         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34426         case of anonymous access types in record and array components. For a
34427         component definition the level is the same of the enclosing composite
34428         type.
34429
34430         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34431         that are anonymous access types the level of accessibility depends on
34432         the enclosing type declaration. In order to have this information, set
34433         the scope of the anonymous access type to the enclosing record type
34434         declaration.
34435         (Array_Type_Declaration): In case of components that are anonymous
34436         access types the level of accessibility depends on the enclosing type
34437         declaration. In order to have this information, set the scope of the
34438         anonymous access type to the enclosing array type declaration.
34439
34440         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34441         access type.
34442
34443         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34444         renaming of anonymous access-to-constant types allowed if and only if
34445         the renamed object is access-to-constant.
34446
34447         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34448         that are component_definition or discriminants of a nonlimited type,
34449         the level is the same as that of the enclosing component type.
34450
34451 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34452
34453         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34454         misprint in the function name (File_Name_Match).
34455
34456 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34457
34458         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34459         install.
34460
34461 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34462
34463         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34464
34465 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34466
34467         * adaint.c (__gnat_try_lock): No longer requires that the parent
34468         directory be writable, the directory itself is enough.
34469         (gnat_is_absolute_path): Change profile, so that the call from
34470         GNAT.OS_Lib can be made more efficient.
34471
34472         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34473         from GNAT.OS_Lib can be made more efficient.
34474
34475         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34476         one copy of the file name. Found by code reading.
34477
34478 2004-04-23  Vincent Celier  <celier@gnat.com>
34479
34480         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34481         Correct documentation on gnatmake switches transmitted to the compiler
34482
34483         * ali.ads: Minor comment fix
34484
34485 2004-04-23  Javier Miranda  <miranda@gnat.com>
34486
34487         * sem_ch6.adb: (Confirming Types): Code cleanup
34488
34489         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34490         subprogram types: E_Anonymous_Access_Subprogram_Type and
34491         E_Anonymous_Access_Protected_Subprogram_Type.
34492
34493 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34494
34495         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34496         whether a pragma All_Calls_Remote applies to the subprogram on which
34497         'Access is taken.
34498         No functional change is introduced by this revision; the new parameter
34499         will be used to allow calls to local RCI subprograms to be optimized
34500         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34501         as is already done in the PolyORB implementation of the DSA.
34502
34503         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34504         whether a pragma All_Calls_Remote applies to the subprogram on which
34505         'Access is taken.
34506         No functional change is introduced by this revision; the new parameter
34507         will be used to allow calls to local RCI subprograms to be optimized
34508         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34509         as is already done in the PolyORB implementation of the DSA.
34510
34511 2004-04-23  Robert Dewar  <dewar@gnat.com>
34512
34513         * Makefile.rtl: Add entry for s-addope.o in run time library list
34514         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34515         * s-addope.ads, s-addope.adb: New files.
34516
34517         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34518         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34519         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34520         System.Address to be non-private and signed.
34521
34522         * sem_elim.adb: Minor reformatting (fairly extensive)
34523         Some minor code reorganization from code reading
34524         Add a couple of ??? comments
34525
34526 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34527
34528         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34529         (tree_transform, case N_If_Statement): Remove non-determinism.
34530
34531         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34532
34533 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34534
34535         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34536         Eliminate' section.
34537
34538         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34539         no longer used as a parameter name for Eliminate pragma).
34540
34541 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34542
34543         PR optimization/14984
34544         PR optimization/14985
34545         * trans.c (gigi): Fix non determinism leading to bootstrap
34546         comparison failures.
34547
34548 2004-04-21  Pascal Obry  <obry@gnat.com>
34549
34550         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34551         passed to spawnvp() to properly handle program pathname with spaces on
34552         Win32.
34553
34554 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34555
34556         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34557         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34558         unlocked in case of exceptions.
34559
34560 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34561
34562         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34563         This function does not exist anymore.
34564
34565 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34566
34567         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34568
34569         * link.c: Move variables to the __gnat name space.
34570
34571         * Makefile.in: list link.o explicitly when needed.
34572
34573         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34574
34575 2004-04-21  Javier Miranda  <miranda@gnat.com>
34576
34577         * einfo.adb (Original_Access_Type): New subprogram
34578         (Set_Original_Access_Type): New subprogram
34579         (Write_Field21_Name): Write the name of the new field
34580
34581         * einfo.ads (Original_Access_Type): New field present in access to
34582         subprogram types.
34583         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34584         E_Anonymous_Access_Protected_Subprogram_Type.
34585
34586         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34587         subprogram types.
34588
34589         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34590         to anonymous access to subprogram types.
34591
34592         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34593         to subprogram types.
34594
34595         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34596         corresponding to anonymous access to subprogram types.
34597         (Analyze_Component_Declaration): Add new actual to the call to
34598         subprogram replace_anonymous_access_to_protected_subprogram.
34599         (Array_Type_Declaration): Add new actual to the call to subprogram
34600         replace_anonymous_access_to_protected_subprogram.
34601         (Process_Discriminants): Add new actual to the call to subprogram
34602         replace_anonymous_access_to_protected_subprogram.
34603         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34604
34605         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34606         formal.
34607
34608         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34609         access to subprogram types.
34610
34611         * sem_util.adb (Has_Declarations): Addition of package_specification
34612         nodes.
34613
34614 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34615
34616         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34617         inlined flags to renamed entity only if in current unit.
34618
34619 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34620
34621         * s-parint.ads: Add DSA implementation marker.
34622
34623         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34624         value of System.Partition_Interface.DSA_Implementation to determine
34625         what version of the distributed systems annex is available (no
34626         implementation, GLADE, or PolyORB).
34627
34628 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34629
34630         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34631
34632 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34633
34634         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34635         with new type if alias sets differ.
34636         Fixes ACATS c41103b.
34637
34638 2004-04-21  Vincent Celier  <celier@gnat.com>
34639
34640         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34641         Add array Lang_Args for the language specific compiling argument
34642         switches.
34643
34644         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34645
34646 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34647
34648         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34649         according to the recent changes in the format of the parameters of the
34650         pragma (replacing Homonym_Number with Source_Location).
34651
34652 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34653
34654         * 5isystem.ads: Removed, unused.
34655
34656         * gnat_rm.texi: Redo 1.13 change.
34657
34658 2004-04-19  Robert Dewar  <dewar@gnat.com>
34659
34660         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34661         definition is cleaner, avoids the kludge of explicit Standard operator
34662         references, and also is consistent with a visible System.Address with
34663         no visible operations.
34664
34665         * s-geveop.adb: Add declarations to avoid assumption of visible
34666         operations on type System.Address (since these might not be available
34667         if Address is a non-private type for which the operations
34668         are made abstract).
34669
34670         * sem_eval.adb: Minor reformatting
34671
34672         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34673         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34674         reformatting (new function spec format).
34675
34676         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34677         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34678         s-caun64.adb: Add declarations to avoid assumption of visible
34679         operations on type System.Address (since these might not be available
34680         if Address is a non-private type for which the operations are made
34681         abstract).
34682
34683         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34684
34685         * exp_intr.adb: Minor comment update
34686
34687         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34688
34689         * 5omastop.adb: Add declarations to avoid assumption of visible
34690         operations on type System.Address (since these might not be available
34691         if Address is a non-private type for which the operations
34692         are made abstract).
34693
34694 2004-04-19  Vincent Celier  <celier@gnat.com>
34695
34696         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34697
34698         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34699         defaulted to Ada.
34700
34701         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34702         defaulted to Ada.
34703         Call Check with Process_Languages.
34704         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34705         with Process_Languages.
34706         (Recursive_Check): New Boolean parameter Process_Languages. Call
34707         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34708         Process_Languages.
34709
34710         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34711
34712         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34713         parameter Ada_Main, defaulted to True.
34714         Check for Ada specific characteristics only when Ada_Main is True.
34715
34716         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34717
34718         * prj.adb: (Project_Empty): Add new Project_Data components.
34719
34720         * prj.ads: New types and tables for non Ada languages.
34721         (Project_Data): New components Languages, Impl_Suffixes,
34722         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34723         Include_Path, Include_Data_Set.
34724
34725         * prj-env.ads, prj-env.adb: Minor reformatting
34726
34727         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34728         Put subprograms in alphabetical order
34729
34730         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34731         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34732         Opt.Follow_Links.
34733
34734         * mlib-prj.adb: Back out modification in last version, as they are
34735         incorrect.
34736         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34737
34738         * make.adb: (Mains): Moved to package Makeutl
34739         (Linker_Opts): Moved to package Makeutl
34740         (Is_External_Assignment): Moved to package Makeutl
34741         (Test_If_Relative_Path): Moved to package Makeutl
34742         (Gnatmake): Move sorting of linker options to function
34743         Makeutl.Linker_Options_Switches.
34744
34745         * makeutl.ads, makeutl.adb: New files.
34746
34747         * Makefile.in: Add makeutl.o to the object files for gnatmake
34748
34749         * makeusg.adb: Add line for new switch -eL.
34750
34751         * gnatls.adb (Image): New function.
34752         (Output_Unit): If in verbose mode, output the list of restrictions
34753         specified by pragmas Restrictions.
34754
34755         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34756         Text_IO.
34757
34758         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34759         needed, to put it in the range 1970 (included) - 2026 (excluded).
34760         (Time_Of): Do not shift Unix_Min_Year (1970).
34761         Shift the date by multiple of 56 years, if needed, to put it in the
34762         range 1970 (included) - 2026 (excluded).
34763
34764         * adaint.h, adaint.c (__gnat_set_executable): New function.
34765
34766 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34767
34768         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34769         and pop GC context.
34770         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34771         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34772         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34773         (tree_transform, case N_Code_Statement): Likewise.
34774         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34775         LABEL_STMT_FIRST_IN_EH.
34776         (gnat_expand_stmt, case ASM_STMT): New case.
34777
34778         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34779         UNCONSTRAINED_ARRAY_REF.
34780
34781         * utils.c (poplevel): Temporarily push/pop GC context around inline
34782         function expansion.
34783
34784         * decl.c (maybe_variable): Properly set TREE_READONLY of
34785         UNCONSTRAINED_ARRAY_REF.
34786         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34787
34788         * ada-tree.def: (ASM_STMT): New.
34789
34790         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34791         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34792         ASM_STMT_INPUT): New.
34793         (ASM_STMT_CLOBBER): Likewise.
34794
34795 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34796
34797         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34798         general rcheck mechanism to raise Program_Error for E.4(18), instead
34799         of a custom raiser in System.Partition_Interface.
34800         Part of general cleanup work before PolyORB integration.
34801
34802         * snames.ads, snames.adb: Add new runtime library entities and names
34803         for PolyORB DSA.
34804
34805         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34806         exp_dist.
34807         (Build_Subprogram_Id): New subprogram provided by exp_dist
34808         Code reorganisation in preparation for PolyORB integration.
34809
34810         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34811         exp_dist.
34812         (Build_Subprogram_Id): New subprogram provided by exp_dist
34813
34814         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34815         actual parameter types for call to dereference of an
34816         access-to-subprogram type.
34817
34818         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34819         DSA.
34820
34821         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34822         instead, which has the same behaviour here since we never pass it a
34823         NULL pointer.
34824
34825         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34826         platforms.
34827
34828         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34829         to account for new dependency upon Interfaces.C.Strings + link.o
34830         For x86 FreeBSD, use 86numaux.
34831
34832         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34833         from Mlib.Tgt to Mlib.
34834
34835         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34836         target-independent.
34837
34838         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34839         target-specific versions of this subprogram, now implemented as a
34840         target-independent function in Mlib.
34841
34842         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34843         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34844         (Linker_Library_Path_Option): Remove target-specific versions of this
34845         subprogram, now implemented as a target-independent function in Mlib.
34846
34847         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34848         Factors out node table slots allocation.
34849         (Fix_Parents): New subprogram.
34850         Encapsulate the pattern of fixing up parent pointers for syntactic
34851         children of a rewritten node.
34852         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34853         (Rewrite): Use New_Copy when creating saved copy of original node.
34854         (Replace): Use Copy_Node to copy nodes.
34855
34856 2004-04-19  Javier Miranda  <miranda@gnat.com>
34857
34858         * sprint.adb (Sprint_Node_Actual): Give support to the new
34859         Access_To_Subprogram node available in Access_Definition nodes. In
34860         addition, give support to the AI-231 node fields: null-exclusion,
34861         all-present, constant-present.
34862
34863         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34864
34865         * sinfo.ads, sinfo.adb:
34866         New field Access_To_Subprogram_Definition in Access_Definition nodes
34867
34868         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34869         decorates internal subtype declaration corresponding to the
34870         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34871         In addition, carry out some code cleanup on this code. In case of
34872         access to protected subprogram call
34873         Replace_Anonymous_Access_To_Protected_Subprogram.
34874         (Set_Actual_Subtypes): Code cleanup.
34875
34876         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34877         Find_Type in case of anonymous access renamings. Add warning in case of
34878         null-excluding attribute used in anonymous access renaming.
34879
34880         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34881         subprogram
34882
34883         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34884         subprogram.
34885         (Access_Definition): In case of anonymous access to subprograms call
34886         the corresponding semantic routine to decorate the node.
34887         (Access_Subprogram_Declaration): Addition of some comments indicating
34888         some code that probably should be added here. Detected by comparison
34889         with the access_definition subprogram.
34890         (Analyze_Component_Declaration): In case of access to protected
34891         subprogram call Replace_Anonymous_Access_To_Protected.
34892         (Array_Type_Declaration): In case of access to protected subprogram call
34893         Replace_Anonymous_Access_To_Protected_Subprogram.
34894         (Process_Discriminants): In case of access to protected subprogram call
34895         Replace_Anonymous_Access_To_Protected_Subprogram.
34896
34897         * par.adb (P_Access_Definition): New formal that indicates if the
34898         null-exclusion part was present.
34899         (P_Access_Type_Definition): New formal that indicates if the caller has
34900         already parsed the null-excluding part.
34901
34902         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34903         (P_Identifier_Declarations): Code cleanup and give support to renamings
34904         of anonymous access to subprogram types.
34905         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34906         (P_Array_Type_Definition): Give support to AI-254.
34907         (P_Component_Items): Give support to AI-254.
34908         (P_Access_Definition): New formal that indicates if the header was
34909         already parsed by the caller.
34910         (P_Access_Type_Definition): New formal that indicates if the caller has
34911         already parsed the null-excluding part.
34912
34913         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34914         call to P_Access_Definition.
34915
34916 2004-04-19  Geert Bosch  <bosch@gnat.com>
34917
34918         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34919         the delicate semantics of floating-point to integer conversion.
34920         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34921
34922         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34923         (Machine_Radix): New function.
34924
34925         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34926         conversion checks.
34927         (Machine_Radix): New function also for use in conversion checks.
34928
34929 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34930
34931         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34932
34933         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34934         to decorate the access-to-protected subprogram and the equivalent type.
34935
34936         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34937         to anonymous access to subprogram types.
34938
34939         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34940         constant-folding, for legality checks in contexts that require an RM
34941         static expression.
34942
34943         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34944         temporary but stack checking is not enabled, increment serial number
34945         to so that symbol generation is consistent with and without stack
34946         checking.
34947
34948         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34949         independent on whether stack checking is enabled, caller must check
34950         the corresponding flag.
34951
34952         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34953         range checks.
34954         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34955         parent if it has discriminants.
34956         (Build_Derived_Private_Type): Constructed full view does
34957         not come from source.
34958         (Process_Discriminants): Default discriminants on a tagged type are
34959         legal if this is the internal completion of a private untagged
34960         derivation.
34961
34962         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34963         no constraint checks, because it corresponds to an existing object.
34964
34965         * sem_prag.adb (Process_Convention): Pragma applies
34966         only to subprograms in the same declarative part, i.e. the same unit,
34967         not the same scope.
34968
34969         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34970         ignore type mismatch on a numeric conversion if expression comes from
34971         expansion.
34972
34973 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34974
34975         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34976         Homonym_Number parameter, add processing for Source_Location parameter
34977         corresponding.
34978         (Check_Eliminated): Remove the check for homonym numbers, add the check
34979         for source location traces.
34980
34981         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34982         with Arg_Source_Location corresponding to the changes in the format of
34983         the pragma.
34984
34985         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34986         Eliminate pragma corresponding to the changes in the format of the
34987         pragma: Homonym_Number is replaced with Source_Location, two ways of
34988         distinguishing homonyms are mutially-exclusive.
34989
34990 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
34991
34992         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34993
34994         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34995         No_Dollar_In_Label, no longer necessary, as it is always True.
34996         (Strip_Suffixes): Likewise.
34997
34998 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
34999
35000         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35001         modulus for compatibility with size clause on targets with 16-bit
35002         Integer.
35003
35004         * layout.adb (Discrimify): In the case of private types, set Vtyp to
35005         full type to fix type mismatches on calls to size functions for
35006         discriminant-dependent array components.
35007
35008 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
35009
35010         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35011         lib.
35012
35013 2004-04-19  Pascal Obry  <obry@gnat.com>
35014
35015         * mdll-utl.adb (Locate): New version is idempotent.
35016
35017 2004-04-17  Laurent Guerby  <laurent@guerby.net>
35018
35019         PR ada/14988 (partial)
35020         * impunit.adb: Fix typo.
35021
35022 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35023
35024         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35025         and install-rts-cert targets.  Remove all gnatlib and gnattools
35026         targets and all other rts-* targets (moved to libada).  Remove (now)
35027         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35028         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35029
35030 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35031
35032         * trans.c (tree_transform): Shortcut returning error_mark_node for
35033         statements in annotate_only_mode.
35034         (tree_transform, case N_Label, case N_Return_Statement,
35035         N_Goto_Statement): Make statement tree instead of generating code.
35036         (tree_transform, case N_Assignment_Statement): No longer check
35037         type_annotate_only.
35038         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35039         RETURN_STMT): New.
35040         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35041         New fcns.
35042         (gnat_to_gnu): Collect any RTL generated and deal with it.
35043         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35044         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35045         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35046
35047         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35048
35049         * ada-tree.def (EXPR_STMT): Fix typo in name.
35050         (BLOCK_STMT, IF_STMT): New nodes.
35051
35052         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35053         LABEL_STMT_FIRST_IN_EH): New macros.
35054         (RETURN_STMT_EXPR): Likewise.
35055
35056         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35057         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35058
35059 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
35060
35061         * atree.ads: Correct documentation on extended nodes.
35062
35063         * link.c: Set run_path_option for FreeBSD.
35064
35065 2004-04-08  Vincent Celier  <celier@gnat.com>
35066
35067         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35068         one of the ALI file, do not link with DEC lib.
35069
35070         * par.adb Remove the last two characters ("%s" or "%b") when checking
35071         if a language defined unit may be recompiled.
35072
35073 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
35074
35075         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35076         removal of abstract operation leaves no possible interpretation for
35077         expression.
35078
35079         * sem_eval.adb (Eval_Qualified_Expression): Use
35080         Set_Raises_Constraint_Error on node when needed, so that it does not
35081         get optimized away by subsequent optimizations.
35082
35083         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35084         operands even when they are not wrapped in a type conversion.
35085
35086 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
35087
35088         * sem_prag.adb (Set_Exported): Warn about making static as result of
35089         export only when the export is coming from source. This may be not
35090         be true e.g. on VMS where we expand export pragmas for exception codes
35091         together with imported or exported exceptions, and we don't want the
35092         user to be warned about something he didn't write.
35093
35094 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
35095
35096         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35097         duplication between normal entities and those declared as renamings.
35098         No functional change.
35099
35100         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35101         inline functions returning an unconstrained result.
35102
35103 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
35104
35105         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35106         conform to what other front-ends do.
35107
35108 2004-04-08  Doug Rupp  <rupp@gnat.com>
35109
35110         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35111         libraries.
35112
35113 2004-04-06  Pascal Obry  <obry@gnat.com>
35114
35115         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35116
35117         * osint.adb (Program_Name): Do not look past a directory separator.
35118
35119 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
35120
35121         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35122
35123         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35124         requirement for preserving a copy of the original assignment node.
35125
35126         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35127
35128 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
35129
35130         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35131         when supported.
35132
35133 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
35134
35135         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35136         operator calls in functional notation, and apply
35137         Universal_Interpretation to operands, not to their type.
35138
35139 2004-04-06  Robert Dewar  <dewar@gnat.com>
35140
35141         * 5wdirval.adb: Minor reformatting
35142
35143 2004-04-06  Ed Falis  <falis@gnat.com>
35144
35145         * gnat_rm.texi: Improve a reference to the GCC manual
35146
35147 2004-04-05  Vincent Celier  <celier@gnat.com>
35148
35149         * adaint.h, adaint.c: Add function __gnat_named_file_length
35150
35151         * impunit.adb: Add Ada.Directories to the list
35152
35153         * Makefile.in: Add VMS and Windows versions of
35154         Ada.Directories.Validity package body.
35155
35156         * Makefile.rtl: Add a-direct and a-dirval
35157
35158         * mlib-tgt.ads: Minor comment update.
35159
35160         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35161         a-direct.ads, a-direct.adb: New files.
35162
35163 2004-04-05  Vincent Celier  <celier@gnat.com>
35164
35165         PR ada/13620
35166         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35167         just to the compiler.
35168
35169 2004-04-05  Robert Dewar  <dewar@gnat.com>
35170
35171         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35172         returned string is 1.
35173
35174         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35175
35176         * eval_fat.ads: Minor reformatting
35177
35178         * g-curexc.ads: Document that lower bound of returned string values
35179         is always one.
35180
35181         * gnatlink.adb: Add ??? comment for previous change
35182         (need to document why this is VMS specific)
35183
35184         * s-stoele.ads: Minor reformatting
35185
35186         * tbuild.ads: Minor reformatting throughout (new function specs)
35187
35188         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35189         after WITH.
35190
35191         * scng.adb: Minor reformatting
35192
35193 2004-04-05  Geert Bosch  <bosch@gnat.com>
35194
35195         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35196         (Leading_Part): Still perform truncation to machine number if the
35197         specified radix_digits is greater or equal to machine_mantissa.
35198
35199 2004-04-05  Javier Miranda  <miranda@gnat.com>
35200
35201         * par-ch3.adb: Complete documentation of previous change
35202         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35203         (aliased must appear before constant).
35204
35205         * par-ch4.adb: Complete documentation of previous change.
35206
35207         * par-ch6.adb: Complete documentation of previous change.
35208
35209         * sinfo.ads: Fix typo in commment.
35210
35211 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
35212
35213         * sem_ch3.adb (Inherit_Components): If derived type is private and has
35214         stored discriminants, use its discriminants to constrain parent type,
35215         as is done for non-private derived record types.
35216
35217         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35218         Ada 2005 AI-310: an abstract non-dispatching operation is not a
35219         candidate interpretation in an overloaded call.
35220
35221         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35222         expression is Null and target type is not an access type (e.g. a
35223         non-private address type).
35224
35225 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
35226
35227         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35228         statement whose right-hand side is an inlined call, save a copy of the
35229         original assignment subtree to preserve enough consistency for
35230         Analyze_Assignment to proceed.
35231
35232         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35233         complete assignment subtree which is now unnecessary, as the expansion
35234         of inlined call has been improved to preserve a consistent assignment
35235         tree.  Note_Possible_Modification must be called only
35236         after checks have been applied, or else unnecessary checks will
35237         be generated.
35238
35239         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35240         of explicit dereferences that do not Come_From_Source:
35241          - be selective on cases where we must go back to the dereferenced
35242            pointer (an assignment to an implicit dereference must not be
35243            recorded as modifying the pointer);
35244          - do not rely on Original_Node being present (Analyze_Assignment
35245            calls Note_Possible_Modification on a copied tree).
35246
35247         * sem_warn.adb (Check_References): When an unset reference to a pointer
35248         that is never assigned is encountered, prefer '<pointer> may be null'
35249         warning over '<pointer> is never assigned a value'.
35250
35251 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
35252
35253         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35254         the ABI.
35255
35256 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
35257
35258         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35259         libexc. We currently don't reference anything in this library and
35260         linking it in triggers linker warnings we don't want to see.
35261
35262         * init.c: Update comments.
35263
35264 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35265
35266         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35267         * utils.c (create_field_decl): Likewise.
35268         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35269
35270 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
35271
35272         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35273         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35274         Add info directory entry and category.
35275
35276 2004-04-02  Jan Hubicka  <jh@suse.cz>
35277
35278         * utils.c: Include function.h
35279         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35280
35281 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35282
35283         PR ada/14150
35284         * Make-lang.in: Clean up generation of documentation
35285
35286         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35287
35288         * xgnatug.adb: Removed, replaced by xgnatugn.adb
35289
35290         * xgnatugn.adb: Replaces xgnatug.adb
35291
35292         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35293
35294         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35295
35296         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35297         gnat_ug_wnt.texi: Removed.
35298
35299 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35300
35301         * utils2.c: Update copyright notice.
35302
35303 2004-04-01  Robert Dewar  <dewar@gnat.com>
35304
35305         * checks.adb: Minor reformatting throughout
35306         Note that prev checkin added RM reference to alignment warning
35307
35308 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
35309
35310         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35311         non-static when building aggregate for bit-packed array.
35312
35313         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35314         function call that is itself the actual in a procedure call, build
35315         temporary for it.
35316
35317         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35318         a string literal, create a temporary for it, constant folding only
35319         handles scalars here.
35320
35321 2004-04-01  Vincent Celier  <celier@gnat.com>
35322
35323         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35324         Error_Msg_SP): New empty procedures to instantiate the Scanner.
35325         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35326         tokens.
35327         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35328         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35329         and get the checksum.
35330
35331         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35332         already in the Q.
35333         Increase the Marking_Label at the end of the Multiple_Main_Loop,
35334         instead of at the beginning.
35335
35336         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35337         directly.
35338         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35339         on VMS.
35340
35341         * osint.ads (Multi_Unit_Index_Character): New Character global variable
35342
35343         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35344         not '~' directly.
35345
35346         * par.adb: Remove test on file name to detect language defined units.
35347         Add test on unit name, after parsing, to detect language defined units
35348         that are not compiled with -gnatg (except System.RPC and its children)
35349
35350         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35351         following units without style checking.
35352
35353         * switch-c.adb: Change -gnatC to -gnateI
35354
35355         * usage.adb: Document new switch -gnateInnn
35356
35357         * scng.adb (Accumulate_Token_Checksum): New procedure
35358         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35359         word or literal number.
35360         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35361         numbers.
35362
35363 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35364
35365         * a-tasatt.adb,
35366         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35367         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35368         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35369         5vtpopde.adb: Add missing 'constant' keywords.
35370
35371 2004-04-01  Javier Miranda  <miranda@gnat.com>
35372
35373         * par-ch4.adb: (P_Allocator): Code cleanup
35374
35375         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35376         attribute.
35377
35378         * sinfo.ads: Complete documentation of previous change
35379
35380 2004-04-01  Pascal Obry  <obry@gnat.com>
35381
35382         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35383         only on VMS.  This special handling was done because an old GNU/ld bug
35384         on Windows which has been fixed.
35385
35386 2004-04-01  GNAT Script  <nobody@gnat.com>
35387
35388         * Make-lang.in: Makefile automatically updated
35389
35390 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35391
35392         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35393         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35394         * trans.c (tree_transform, convert_with_check): Likewise.
35395         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35396         (build_vms_descriptor, unchecked_convert): Likewise.
35397         * utils2.c (nonbinary_modular_operation): Likewise.
35398
35399 2004-03-29  Javier Miranda  <miranda@gnat.com>
35400
35401         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35402         (Install_Null_Excluding_Check): Local subprogram that determines whether
35403         an access node requires a runtime access check and if so inserts the
35404         appropriate run-time check.
35405         (Apply_Access_Check): Call Install_Null_Excluding check if required
35406         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35407
35408         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35409
35410         * einfo.ads: Fix typo in comment
35411
35412         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35413         null-excluding type to force the corresponding run-time check.
35414         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35415         type to force the corresponding run-time check.
35416
35417         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35418         the null-excluding type to force the corresponding run-time check.
35419
35420         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35421         case of access types unless they have the null-excluding attribute.
35422
35423         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35424         part.
35425
35426         * exp_util.ads: Fix typo in comment
35427
35428         * par.adb (P_Null_Exclusion): New subprogram
35429         (P_Subtype_Indication): New formal that indicates if the null-excluding
35430         part has been scanned-out and it was present
35431
35432         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35433
35434         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35435         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35436         type to force the corresponding run-time check
35437         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35438         components
35439         (Resolve_Array_Aggregate): Carry out some static checks
35440         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35441
35442         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35443         attribute must be set only if specified by means of the null-excluding
35444         part. In addition, we must also propagate the access-constant attribute
35445         if present.
35446         (Access_Subprogram_Declaration, Access_Type_Declaration,
35447         Analyze_Component_Declaration, Analyze_Object_Declaration,
35448         Array_Type_Declaration, Process_Discriminants,
35449         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35450         and carry out some static checks.
35451         (Build_Derived_Access_Type): Set the null-excluding attribute
35452         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35453         checks.
35454
35455         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35456
35457         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35458
35459         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35460         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35461         null-excluding part was present; it is not required to be done here in
35462         case of anonymous access types.
35463         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35464         value.
35465
35466         * sem_res.adb (Resolve_Actuals): Carry out some static check
35467         (Resolve_Null): Allow null in anonymous access
35468
35469         * sinfo.adb: New subprogram Null_Exclusion_Present
35470         All_Present and Constant_Present available on access_definition nodes
35471
35472         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35473         object_declaration, derived_type_definition, component_definition,
35474         discriminant_specification, access_to_object_definition,
35475         access_function_definition, allocator, access_procedure_definition,
35476         access_definition, parameter_specification, All_Present and
35477         Constant_Present flags available on access_definition nodes.
35478
35479 2004-03-29  Robert Dewar  <dewar@gnat.com>
35480
35481         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35482         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35483         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35484         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35485         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35486         sem_prag.adb: Updates to handle multiple units/file
35487
35488         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35489
35490         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35491         sem_util.adb: Minor reformatting
35492
35493         * sem_ch12.adb: Add comment for previous change
35494
35495 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35496
35497         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35498         executable name when not initialized. Otherwise, use its current value.
35499
35500         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35501         initialize it to another executable name than the current one. This
35502         allows to configure paths for an executable name (gnatmake) different
35503         from the current one (gnatdist).
35504
35505 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35506
35507         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35508         current unit cannot be inlined if it appears in the body of a withed
35509         unit, to avoid order of elaboration problems in gigi.
35510
35511         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35512         information for protected (wrapper) operation as well, to simplify gdb
35513         use.
35514
35515         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35516         protected body, indicate that the entity for the generated spec comes
35517         from source, to ensure that references are properly generated for it.
35518         (Build_Body_To_Inline): Do not inline a function that returns a
35519         controlled type.
35520
35521         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35522         apply convention to homonyms that are declared explicitly.
35523
35524         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35525         that renames an equality operator and the operands are overloaded,
35526         resolve them with the declared formal types, before rewriting as an
35527         operator.
35528
35529 2004-03-29  GNAT Script  <nobody@gnat.com>
35530
35531         * Make-lang.in: Makefile automatically updated
35532
35533 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35534
35535         * memtrack.adb: Log realloc calls, which are treated as free followed
35536         by alloc.
35537
35538 2004-03-25  Vincent Celier  <celier@gnat.com>
35539
35540         * prj-makr.adb (Process_Directories): Detect when a file contains
35541         several units. Do not include such files in the config pragmas or
35542         in the naming scheme.
35543
35544         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35545         Resolve links only when not in Trusted_Mode.
35546         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35547         Do not resolve links for the display names.
35548
35549         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35550         resolve links when computing the display names.
35551
35552 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35553
35554         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35555         attribute reference does not denote a subtype, it can be any
35556         expression that has a classwide type, potentially after an implicit
35557         dereference.  In particular, the prefix can be a view conversion for
35558         a classwide type (for which Is_Object_Reference holds), but it can
35559         also be a value conversion for an access-to-classwide type. In the
35560         latter case, there is an implicit dereference, and the original node
35561         for the prefix does not verify Is_Object_Reference.
35562
35563         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35564         conversion of a discriminant-dependent component of a mutable object
35565         is one itself.
35566
35567 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35568
35569         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35570         inherited, has convention C, and has unconstrained array parameters,
35571         place the corresponding warning on the derived type declaration rather
35572         than the original subprogram.
35573
35574         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35575         indication on renaming declaration, if formal has a box and actual
35576         is absent.
35577
35578         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35579         determine whether to generate an implicit or explicit reference to
35580         the renamed entity.
35581
35582         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35583         subprogram renaming comes from a defaulted formal subprogram in an
35584         instance.
35585
35586 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35587
35588         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35589         value expressions to ensure that calls within a component definition
35590         will be checked (since those are evaluated during the record type's
35591         elaboration).
35592
35593 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35594
35595         * s-tpobop.adb: Code clean up:
35596         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35597         code.
35598         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35599
35600 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35601
35602         * Makefile.in: Clean up in the ravenscar run time.
35603
35604 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35605
35606         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35607         of No_Strict_Aliasing to build_pointer_type_for_mode.
35608         * utils.c (update_pointer_to): Walk pointer and ref chains.
35609
35610 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35611
35612         * ali.ads: Fix Comment about Dynamic_Elab.
35613
35614         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35615         Has_RACW, Is_Generic, etc.)
35616         (Output_Object, Gnatls): Take into account ALI files not attached to
35617         an object.
35618
35619 2004-03-22  Vincent Celier  <celier@gnat.com>
35620
35621         * gprep.adb: Change all String_Access to Name_Id
35622         (Is_ASCII_Letter): new function
35623         (Double_File_Name_Buffer): New procedure
35624         (Preprocess_Infile_Name): New procedure
35625         (Process_Files): New procedure
35626         (Gnatprep): Check if output and input are existing directories.
35627         Call Process_Files to do the real job.
35628
35629 2004-03-22  Robert Dewar  <dewar@gnat.com>
35630
35631         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35632         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35633
35634 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35635
35636         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35637         case when the source contains only comments.
35638
35639 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35640
35641         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35642         declaration for a child subprogram body that acts as a spec, indicate
35643         that the entity in the declaration needs debugging information.
35644
35645         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35646         full view if the subtype is created for a constrained record component;
35647         gigi has enough information to construct the record, and there is no
35648         place in the tree for the declaration.
35649
35650         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35651         serial number for the dummy body that is built for analysis, to avoid
35652         inconsistencies in the generation of internal names when compiling
35653         with -gnatN.
35654
35655 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35656
35657         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35658         object.
35659
35660 2004-03-22  GNAT Script  <nobody@gnat.com>
35661
35662         * Make-lang.in: Makefile automatically updated
35663
35664 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35665
35666         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35667         * trans.c (tree_transform, emit_index_check): Likewise.
35668         * utils.c (build_template): Likewise.
35669         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35670         (maybe_unconstrained_array, unchecked_convert): Likewise.
35671         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35672         (build_unary_op): Likewise.
35673         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35674         (fill_vms_descriptor): Likewise.
35675         (build_call_alloc_dealloc): Likewise.
35676         ALIGN is unsigned.
35677         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35678
35679 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35680
35681         PR other/14630
35682         * gnat_ug.texi: Add info directory category and entry.
35683         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35684         gnat_ug_wnt.texi: Regenerate.
35685
35686 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35687
35688         * ada-tree.h: Update copyright notice.
35689         Minor reformatting.
35690
35691 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35692
35693         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35694         as regular exception objects and not as mere integers representing the
35695         condition code.  The latter approach required some dynamics to mask off
35696         severity bits, which did not fit well into the GCC table based model.
35697         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35698         exception data objects. We don't it and it would conflict with the other
35699         external symbol we have to generate for such exceptions.
35700
35701         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35702         the special code for VMS exceptions, since these are now represented
35703         as regular exceptions objects.
35704
35705 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35706
35707         * decl.c (debug_no_type_hash): Remove.
35708         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35709         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35710
35711 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35712
35713         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35714         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35715
35716 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35717
35718         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35719         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35720         (TYPE_RM_SIZE_INT): Directly use type.values.
35721         (TREE_LOOP_ID): Clean up check.
35722         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35723         TYPE_VALUES, not TYPE_FIELDS.
35724         * trans.c (convert_with_check): Delay access of bounds of basetype
35725         until sure is numeric.
35726
35727 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35728
35729         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35730
35731         Code clean up:
35732         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35733         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35734         Specific.Set instead of direct call to e.g pthread_setspecific.
35735
35736 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35737
35738         * adaint.c: Update comments.
35739
35740         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35741         GNATLIB_SHARED for FreeBSD.
35742
35743 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35744
35745         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35746         When needed (stack checking) the stack size is retrieved
35747         from the VxWorks kernel.
35748
35749         * Makefile.in: Flag -nostdinc is required when building the run time
35750         for avoiding looking for files in the base compiler.
35751         Add the VxWorks specific version of the package body for
35752         System.Stack_checking.Operations (5zstchop.adb).
35753
35754         * Make-lang.in: Add the object file for
35755         System.Stack_Checking.Operations.
35756
35757         * Makefile.rtl: Add object file for the package
35758         System.Stack_Checking.Operations.
35759
35760         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35761
35762         * s-stache.ads, s-stache.adb: Move the operations related to stack
35763         checking from this package to package System.Stack_Checking.Operations.
35764         This way, stack checking operations are only linked in the final
35765         executable when using the -fstack-check flag.
35766
35767 2004-03-18  Doug Rupp  <rupp@gnat.com>
35768
35769         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35770         Reorganize ifeq's.
35771
35772         * 5qsystem.ads, 5xcrtl.ads: New files.
35773
35774 2004-03-18  Vincent Celier  <celier@gnat.com>
35775
35776         * prj.adb (Reset): Reset hash table Files_Htable
35777
35778         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35779         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35780         the procedures Add_To_Path_File.
35781         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35782         making sure that each directory is present only once and, for object
35783         dirs, when a directory already present is added, the duplicate is
35784         removed and the directory is always put as the last in the table.
35785         Write the path files at the end of these accumulations.
35786
35787         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35788         Files_Htable for all sources.
35789
35790         * prj-proc.adb (Process): Remove restrictions between not directly
35791         related extending projects.
35792
35793 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35794
35795         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35796         (Find_Sources): Minor speed optimization.
35797
35798         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35799         parameter Trusted_Mode.
35800
35801 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35802
35803         * scn.adb (Determine_License): Take into account a degenerated case
35804         when the source contains only comments.
35805
35806 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35807
35808         * sem_warn.adb (Check_References): For a warning on a selected
35809         component that does not come from source, locate an uninitialized
35810         component of the record type to produce a more precise error message.
35811
35812 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35813
35814         * 3zsoccon.ads: Fix multicast options.
35815
35816         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35817         in the spec.
35818
35819 2004-03-15  Robert Dewar  <dewar@gnat.com>
35820
35821         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35822         pragma used for a private type.
35823
35824         * lib-xref.adb (Generate_Reference): Do not generate warning if
35825         reference is in a different unit from the pragma Unreferenced.
35826
35827         * 5vtpopde.adb: Minor reformatting
35828         Fix casing of To_Task_ID
35829
35830         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35831         flag if we have an unchecked conversion to an access type in the same
35832         unit.
35833
35834 2004-03-15  Geert Bosch  <bosch@gnat.com>
35835
35836         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35837         imaginary parts, use Double precision throughout.
35838
35839         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35840         we want to be able to compile run-time with -gnata for testing, but
35841         this may also be instantiated in user code that is compiled with -gnata.
35842
35843 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35844
35845         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35846         codes. Having a separate type for this is useful to enforce consistency
35847         throughout the various run-time units.
35848         (Exception_Data): Use Exception_Code for Import_Code.
35849
35850         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35851         Natural and Integer in various places.
35852         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35853         with the severity bits masked off.
35854         (Register_VMS_Exception): Handle the additional exception data pointer
35855         argument.
35856
35857         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35858         component, now reflected by an exported accessor.
35859         (is_handled_by): New routine to compute whether the propagated
35860         occurrence matches some handler choice specification. Extracted out of
35861         get_action_description_for, and expanded to take care of the VMS
35862         specifities.
35863         (get_action_description_for): Use is_handled_by instead of an explicit
35864         complex condition to decide if the current choice at hand catches the
35865         propagated occurrence.
35866
35867         * raise.h (Exception_Code): New type for C.
35868
35869         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35870         System.Standard_Library.Exception_Code, to allow references from the
35871         pragma import/export expander.
35872
35873         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35874         New accessors to allow easy access to GNAT exception data
35875         characteristics.
35876         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35877         redundant Handled_By_Others component, helper for the personality
35878         routine which will now be able to call the appropriate exception data
35879         accessor instead.
35880
35881         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35882         component of Standard_Exception_Type to be the closest possible to
35883         Exception_Code in System.Standard_Library, that we cannot get at this
35884         point. Expand a ??? comment to notify that this type node should
35885         probably be rewritten later on.
35886
35887         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35888         registration call to include a pointer to the exception object in the
35889         arguments.
35890
35891         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35892         instead of int and explicit bitmasks.
35893
35894 2004-03-15  Vincent Celier  <celier@gnat.com>
35895
35896         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35897         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35898
35899         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35900         longer needed now that it is in the spec of
35901         System.Tasking.Task_Attributes.
35902
35903         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35904
35905         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35906
35907         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35908
35909         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35910         taken care of in Scan_Make_Arg.
35911         (Scan_Make_Arg): Add the executable suffix only if the argument
35912         following -o, in canonical case, does not end with the executable
35913         suffix.  When in verbose mode and executable file name does not end
35914         with executable suffix, output the executable name, in canonical case.
35915
35916         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35917         to avoid warnings when instantiating Ada.Task_Attributes.
35918         Minor reformating.
35919
35920         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35921         in the correct order.
35922
35923         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35924         redirect standard output and error to a file for the invocation of the
35925         compiler, then read the file.
35926
35927         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35928         directory, instead of the Value.
35929         (Find_Source_Dirs): Remove useless code & comments.
35930
35931 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35932
35933         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35934         tagged type is inherited, and the parent operation is not frozen yet,
35935         force generation of a freeze node for the inherited operation, so the
35936         corresponding dispatch entry is properly initialized.
35937         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35938         when looking for user-defined equality operation.
35939
35940         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35941         boolean when locating primitive equality of tagged component.
35942
35943         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35944         bit-aligned field and the right-hand side a string literal, introduce
35945         a temporary before expanding assignment into a loop.
35946
35947         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35948         priority in full, to ensure that any expanded subepxressions of it are
35949         elaborated in the scope of the init_proc.
35950
35951         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35952         after object declaration, skipping over code that may have been
35953         generated for validity checks.
35954
35955         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35956         discriminants, ignore the known discriminants of its full view, if
35957         any, to check legality.
35958
35959         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35960         component if type has unknown discriminants.
35961         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35962         null if type has unknown discriminants.
35963
35964         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35965         for end label when present.
35966
35967         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35968         temporary file, rather than an empty string.
35969
35970 2004-03-15  Ed Falis  <falis@gnat.com>
35971
35972         * s-thread.adb: Removed, no longer used.
35973
35974 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35975
35976         * decl.c (target.h): Now include.
35977         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35978         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35979         (validate_size): For POINTER_TYPE, get smallest size permitted on
35980         machine.
35981
35982         * fe.h: Sort Einfo decls and add Set_Mechanism.
35983
35984         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35985         (ada/decl.o): Depends on target.h.
35986
35987         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35988         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35989
35990 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
35991
35992         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35993
35994         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35995         Insert_Dereference_Action when rewriting an implicit dereference into
35996         an explicit one, this will be taken care of during expansion of the
35997         explicit dereference.
35998         (Expand_N_Slice): Same. Always do the rewriting, even for the case
35999         of non-packed slices, since the dereference action generated by
36000         expansion of the explicit dereference is needed in any case.
36001         (Expand_N_Selected_Component): When rewriting an implicit dereference,
36002         analyze and resolve the rewritten explicit dereference so it is seen
36003         by the expander.
36004         (Insert_Dereference_Action): This procedure is now called only for the
36005         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36006         dereferences that do not come from source (including explicit
36007         dereferences resulting from rewriting implicit ones), but do not
36008         recursively insert a check for the dereference nodes contained within
36009         the check.
36010         (Insert_Dereference_Action): Clarify and correct comment.
36011
36012 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
36013
36014         PR ada/14131
36015         Move language detection to the top level.
36016         * config-lang.in: Build by default.
36017
36018 2004-03-05  Robert Dewar  <dewar@gnat.com>
36019
36020         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36021
36022         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36023         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36024         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36025         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36026         unchecked conversion to spec to avoid warnings.
36027
36028         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36029         to Task_ID
36030
36031         * 7stpopsp.adb: Correct casing in To_Task_ID call
36032
36033         * a-strsea.ads, a-strsea.adb: Minor reformatting
36034
36035         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36036
36037         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36038         Adjust Max_Msg_Length to be clearly large enough.
36039
36040         * fe.h: Define In_Same_Source_Unit
36041
36042         * osint.adb: Add pragma Warnings Off to suppress warnings
36043         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36044         aliasing warnings.
36045
36046         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36047
36048         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36049
36050         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36051
36052         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36053
36054         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36055
36056         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36057         node. We now do generate them for gcc back end.
36058
36059         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36060         warning.
36061
36062         * sinput-c.adb: Fix bad name in header.
36063         Add pragma Warnings Off to suppress aliasing warning.
36064
36065         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36066
36067         * snames.h, snames.ads, snames.adb: Add entry for pragma
36068         No_Strict_Aliasing.
36069
36070 2004-03-05  Vincent Celier  <celier@gnat.com>
36071
36072         * prj-com.ads: Add hash table Files_Htable to check when a file name
36073         is already a source of another project.
36074
36075         * prj-nmsc.adb (Record_Source): Before recording a new source, check
36076         if its file name is not already a source of another project. Report an
36077         error if it is.
36078
36079         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36080         source file name, call gnatpp with all the sources of the main project.
36081
36082         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36083         of file names.
36084
36085         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36086         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36087         /RUNTIME_SYSTEM=, converted to --RTS=
36088         /NOTABS, converted to -notabs
36089
36090 2004-03-05  Pascal Obry  <obry@gnat.com>
36091
36092         * make.adb: Minor reformatting.
36093
36094 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
36095
36096         Part of implemention of AI-262.
36097         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36098
36099         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36100         procedure.
36101
36102         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36103         when component type is a partially constrained class-wide subtype.
36104         (Constrain_Discriminated_Type): If parent type has unknown
36105         discriminants, a constraint is illegal, even if full view has
36106         discriminants.
36107         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36108         with unknown discriminants whose full view is a discriminated record.
36109
36110         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36111         flag, to handle properly derivations of tagged types with unknown
36112         discriminants.
36113         (Analyze_Package_Spec, Analyze_Package_Body): Install
36114         Private_With_Clauses before analyzing private part or body.
36115
36116         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36117         Has_Discriminants can be true for a given type (documentation).
36118
36119 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
36120
36121         * s-restri.ads: Fix license (GPL->GMGPL).
36122
36123         * s-tassta.adb: Minor reformatting.
36124
36125         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36126         by calls to Exit_One_ATC_Level, since additional clean up is performed
36127         by this function.
36128
36129         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36130         by calls to Exit_One_ATC_Level, since additional clean up is performed
36131         by this function.
36132
36133 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36134
36135         * trans.c: Reflect GCC changes to fix bootstrap problem.
36136         Add warning for suspicious aliasing unchecked conversion.
36137
36138 2004-03-05  GNAT Script  <nobody@gnat.com>
36139
36140         * Make-lang.in: Makefile automatically updated
36141
36142 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
36143
36144         * ali.adb (Read_Instantiation_Instance): Do not modify the
36145         current_file_num when reading information about instantiations, since
36146         this corrupts files in later references.
36147
36148 2004-03-02  Vincent Celier  <celier@gnat.com>
36149
36150         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36151         before checking if it is read-only.
36152
36153         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36154         of SRC_DIRS and eliminate duplicates.
36155
36156         * gprcmd.adb: Replace command "path" with command "path_sep" to return
36157         the path separator.
36158         (Usage): Document path_sep
36159
36160         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36161         C++ compiler. No need for a script.
36162         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36163         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36164         subst.
36165
36166         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36167         where there are Ada sources.
36168         (Set_Ada_Paths): Only add to the include path the source dirs of project
36169         with Ada sources.
36170         (Add_To_Path): Add the Display_Values of the directories, not their
36171         Values.
36172
36173         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36174         data.
36175
36176         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36177         is not No_Name.
36178         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36179         Value is canonicalized.
36180         (Language_Independent_Check): Do not copy Value to Display_Value when
36181         canonicalizing Value.
36182
36183         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36184         path to find limited with cycles.
36185         (Parse_Single_Project): Use canonical cased path to find the end of a
36186         with cycle.
36187
36188 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
36189
36190         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36191         and not a child unit.
36192
36193         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36194         appear in a with_clause.
36195
36196         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36197         only happen in type_annotate mode, do not try to elaborate it.
36198
36199         * exp_util.adb (Force_Evaluation): If expression is a selected
36200         component on the left of an assignment, use a renaming rather than a
36201         temporary to remove side effects.
36202
36203         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36204         inlined instance body, which is analyzed before the end of the
36205         enclosing scope.
36206
36207 2004-03-02  Robert Dewar  <dewar@gnat.com>
36208
36209         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36210         sem_ch4.adb: Use new feature for substitution of keywords in VMS
36211
36212         * errout.ads, errout.adb: Implement new circuit for substitution of
36213         keywords in VMS.
36214
36215         * sem_case.adb (Analyze_Choices): Place message properly when case is
36216         a subtype reference rather than an explicit range.
36217
36218         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36219
36220 2004-03-02  Doug Rupp  <rupp@gnat.com>
36221
36222         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36223
36224 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
36225
36226         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36227
36228 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36229
36230         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36231         BLKmode bitfield.
36232
36233 2004-02-25  Robert Dewar  <dewar@gnat.com>
36234
36235         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36236         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36237         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36238         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36239         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36240         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36241         the defining instance of the type to avoid aliasing problems.
36242         Fix copyright header.  Fix bad comments in package header.
36243
36244         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36245
36246 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
36247
36248         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36249         rewritten as references when aliased through an address clause.
36250
36251         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36252         whether call can be interpreted as an indirect call to the result of a
36253         parameterless function call returning an access subprogram.
36254
36255 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
36256
36257         Code clean up:
36258         * exp_ch7.adb (Make_Clean): Remove generation of calls to
36259         Unlock[_Entries], since this is now done by Service_Entries directly.
36260
36261         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36262
36263         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36264         Requeue_Call for better code readability. Change spec and update calls:
36265         PO_Service_Entries now unlock the PO on exit.
36266         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36267         PO_Service_Entries.
36268
36269         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36270
36271         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36272
36273 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
36274
36275         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36276         protected subprogram call and analyzing the result of such expanding
36277         in case when the called protected subprogram is eliminated.
36278
36279         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36280         names.
36281
36282 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
36283
36284         * Makefile.in: Clean ups.
36285
36286 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
36287
36288         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36289         protected operations if original subprogram is flagged as eliminated.
36290         (Expand_N_Subprogram_Body): For a protected operation, create
36291         discriminals for next operation before checking whether the operation
36292         is eliminated.
36293
36294         * exp_ch9.adb (Expand_N_Protected_Body,
36295         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36296         for internal protected operations if the original subprogram is
36297         eliminated.
36298
36299         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36300         declared in a single protected object.
36301
36302 2004-02-23  Vincent Celier  <celier@gnat.com>
36303
36304         * prj-attr.adb: Make attribute Builder'Executable an associative array,
36305         case insensitive if file names are case insensitive, instead of a
36306         standard associative array.
36307
36308         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36309         them as case insensitive on platforms where the file names are case
36310         sensitive.
36311
36312         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36313         project file has already been parsed that canonical path are compared.
36314
36315 2004-02-23  Robert Dewar  <dewar@gnat.com>
36316
36317         * sinput-c.ads: Correct bad unit title in header
36318
36319         * freeze.adb: Minor reformatting
36320
36321 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36322
36323         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36324         nonaddressable COMPONENT_REF that is removing padding that we are
36325         taking the address of, take the address of the padded record instead
36326         if item is variable size.
36327
36328 2004-02-20  Robert Dewar  <dewar@gnat.com>
36329
36330         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36331
36332 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
36333
36334         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36335         itype references for the constrained designated type of a component
36336         whose base type is already frozen.
36337
36338 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
36339
36340         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36341         avoid GCC warnings.
36342
36343 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
36344
36345         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36346         identifier for a phantom package that rewrites the formal package
36347         declaration with a box. The Add semantic decorations for the defining
36348         identifier from the original node (that represents the formal package).
36349
36350 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
36351
36352         * Make-lang.in (ada/stamp-sdefault): Use the top level
36353         move-if-change.
36354
36355 2004-02-19  Richard Henderson  <rth@redhat.com>
36356
36357         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36358
36359 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
36360
36361         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36362         Scan_ALI can be used for multiple ALI files without reinitializing
36363         between calls.
36364
36365 2004-02-18  Robert Dewar  <dewar@gnat.com>
36366
36367         * debug.adb: Minor reformatting.
36368
36369 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36370
36371         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36372         to zero if there is an address clause.
36373
36374 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36375
36376         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36377
36378 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36379
36380         * layout.adb (Layout_Component_List): Revise generation of call to
36381         discriminant-checking function to pass selections of all of the type's
36382         discriminants rather than just the variant-controlling discriminant.
36383
36384 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36385
36386         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36387         fail in the current setup and triggers spurious system error messages.
36388         Pretend it occurred and failed instead.
36389
36390 2004-02-18  Vincent Celier  <celier@gnat.com>
36391
36392         * bld.adb: Mark FLDFLAGS as saved
36393         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36394         it is not the root project.  Put each directory to be
36395         extended between double quotes to prevent it to be expanded on Windows.
36396         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36397         the project file. Set them back to their initial values if they have not
36398         been set in the project file.
36399
36400         * gprcmd.adb: (Gprdebug, Debug): New global variables
36401         (Display_Command): New procedure
36402         (Usage): Document new command "linkopts"
36403         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36404         Implement new command "linkopts"
36405         Remove quotes that may be around arguments for "extend"
36406         Always call Normalize_Pathname with arguments formatted for the platform
36407
36408         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36409         Change @echo to @$(display) in target clean to be able to clean silently
36410
36411         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36412
36413         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36414         canonical case.
36415
36416         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36417         = Extending_All when current project is an extending all project.
36418
36419         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36420         set to True only for LINK command, after Unix switch -o.
36421         (Process_Arguments): Set Output_File_Expected to True for LINK command
36422         after Unix switch -o. When Output_File_Expected is True, never add an
36423         extension to a file name.
36424
36425         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36426         option file name, only to the --for-linker= switch.
36427         (Option_File_Name): If option file name do not end with ".opt", append
36428         "/OPTIONS".
36429
36430 2004-02-18  GNAT Script  <nobody@gnat.com>
36431
36432         * Make-lang.in: Makefile automatically updated
36433
36434 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36435
36436         * Make-lang.in (stamp-sdefault): Do not depend on
36437         move-if-change.
36438
36439 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36440
36441         * config-lang.in: Disable Ada by default until probe logic for
36442         a bootstrap Ada compiler can be moved to the top level configure
36443         script.
36444
36445 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36446
36447         * decl.c (components_to_record): Don't claim that the internal fields
36448         we make to hold the variant parts are semantically addressable, because
36449         they are not.
36450
36451         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36452         adjust the comment describing the modular type form when we can use it.
36453         (Install_PAT): Account for the Esiz renaming.
36454
36455         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36456         sc_onstack context indication before raising the exception to which
36457         the signal is mapped. Allows better handling of later signals possibly
36458         triggered by the resumed user code if the exception is handled.
36459
36460 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36461
36462         * 5zinit.adb: Removed, no longer used.
36463
36464 2004-02-12  Robert Dewar  <dewar@gnat.com>
36465
36466         * ali.adb: Remove separating space between parameters on R line. Makes
36467         format consistent with format used by the binder for Set_Globals call.
36468
36469         * atree.ads, atree.adb: Minor reformatting (new function header format)
36470
36471         * bindgen.adb: Add Run-Time Globals documentation section containing
36472         detailed documentation of the globals passed from the binder file to
36473         the run time.
36474
36475         * gnatls.adb: Minor reformatting
36476
36477         * init.c (__gnat_set_globals): Add note pointing to documentation in
36478         bindgen.
36479
36480         * lib-writ.ads, lib-writ.adb: Remove separating space between
36481         parameters on R line.
36482         Makes format consistent with format used by the binder for Set_Globals
36483         call.
36484
36485         * osint.ads: Add 2004 to copyright notice
36486         Minor reformatting
36487
36488         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36489         Noticed during code reading, documentation issue only
36490
36491         * usage.adb: Remove junk line for obsolete C switch
36492         Noticed during code reading
36493
36494 2004-02-12  Vincent Celier  <celier@gnat.com>
36495
36496         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36497         extend for each directory, so that multiple /** directories are
36498         extended individually.
36499         (Recursive_Process): Set the default for LANGUAGES to ada
36500
36501         * gprcmd.adb: Define new command "ignore", to do nothing.
36502         Implement new comment "path".
36503
36504         * Makefile.generic: Suppress output when SILENT is set
36505         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36506         used, so that the correct compiler is invoked.
36507         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36508         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36509
36510 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36511
36512         * Makefile.in: Clean ups and remove obsolete targets.
36513
36514 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36515
36516         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36517         predicate declared in exp_util.
36518
36519         * exp_util.adb: Add comments.
36520
36521         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36522         visibility before compiling context of the subunit.
36523
36524         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36525         value but the name is a procedure, do not attempt to analyze as a call,
36526         in order to obtain more telling diagnostics.
36527
36528         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36529         'Access on parameterless function calls.
36530         (Normalize_Actuals): For a parameterless function call with missing
36531         actuals, defer diagnostic until resolution of enclosing call.
36532
36533         * sem_util.adb (Wrong_Type): If the context type is an access to
36534         subprogram and the expression is a procedure name, suggest a missing
36535         'attribute.
36536
36537 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36538             Nathanael Nerode  <neroden@gcc.gnu.org>
36539
36540         PR ada/6637
36541         PR ada/5911
36542         Merge with libada-branch:
36543         * config-lang.in: Build libada only when ada is built.
36544
36545 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36546
36547         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36548         for a tagged type, verify that both formals have the same type.
36549
36550         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36551         temporary when the formal is an in-parameter and the actual a possibly
36552         unaligned slice.
36553
36554         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36555         when expansion is disabled, to ensure proper name capture with
36556         overloaded literals.  Condition can be of any boolean type, resolve
36557         accordingly.
36558
36559         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36560         renaming is for a formal subprogram with a default operator name, and
36561         there is a usable operator that is visible at the point of
36562         instantiation.
36563
36564 2004-02-09  Robert Dewar  <dewar@gnat.com>
36565
36566         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36567         rewrite to ignore errors in ali files, intended to allow tools downward
36568         compatibility with new versions of ali files.
36569
36570         * ali.ads: Add new parameter Ignore_Errors
36571
36572         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36573         duplicating the error message giving the file with restrictions.
36574
36575         * debug.adb: Add debug flag I for gnatbind
36576
36577         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36578         operators for the case where the operator is a defining operator.
36579
36580         * exp_ch3.adb: Minor reformatting (new function spec format).
36581
36582         * exp_ch4.adb: Add comment for previous change, and make minor
36583         adjustment to loop to always check for improper loop termination.
36584         Minor reformatting throughout (new function spec format).
36585
36586         * gnatbind.adb: Implement -di debug flag for gnatbind
36587
36588         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36589
36590         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36591
36592         * lib-load.adb: Fix bad assertion.
36593         Found by testing and code reading.
36594         Minor reformatting.
36595
36596         * lib-load.ads: Minor reformatting.
36597
36598         * lib-writ.adb: There is only one R line now.
36599
36600         * lib-writ.ads: Add documentation on making downward compatible changes
36601         to ali files so old tools work with new ali files.
36602         There is only one R line now.
36603         Add documentation on format incompatibilities (with special GPS note)
36604
36605         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36606
36607         * par-load.adb: Minor reformatting
36608
36609         * sem_ch8.adb: Fix to error message from last update
36610         Minor reformatting and restructuring of code from last update
36611
36612         * par-prag.adb, snames.adb, snames.ads, snames.h,
36613         sem_prag.adb: Implement pragma Profile.
36614
36615         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36616         options.
36617
36618         * usage.adb: Add line for -gnatyN switch
36619
36620         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36621
36622 2004-02-09  Albert Lee  <lee@gnat.com>
36623
36624         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36625
36626 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36627
36628         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36629         slices.
36630
36631         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36632         is nested in an instance that is not frozen yet, to avoid
36633         order-of-elaboration problems in gigi.
36634
36635         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36636         body the attribute is legal.
36637
36638 2004-02-09  Robert Dewar  <dewar@gnat.com>
36639
36640         * s-rident.ads: Minor comment correction
36641
36642         * targparm.adb: Remove dependence on uintp completely. There was
36643         always a bug in Make in that it called Targparm before initializing
36644         the Uint package. The old code appeared to get away with this, but
36645         the new code did not! This caused an assertion error in gnatmake.
36646
36647         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36648         are indeed fully supported.
36649
36650 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36651
36652         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36653
36654 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36655
36656         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36657         with targetm.calls.promote_prototypes.
36658
36659 2004-02-04  Robert Dewar  <dewar@gnat.com>
36660
36661         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36662         ali.ads, gprcmd.adb: Minor reformatting
36663
36664         * bindgen.adb: Output restrictions string for new style restrictions
36665         handling
36666
36667         * impunit.adb: Add s-rident.ads (System.Rident) and
36668         s-restri (System.Restrictions)
36669
36670         * lib-writ.adb: Fix bug in writing restrictions string (last few
36671         entries wrong)
36672
36673         * s-restri.ads, s-restri.adb: Change name Restrictions to
36674         Run_Time_Restrictions to avoid conflict with package name.
36675         Add circuit to read and acquire run time restrictions.
36676
36677 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36678
36679         * restrict.ads, restrict.adb: Use the new restriction
36680         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36681
36682         * sem_prag.adb: No_Task_Attributes is a synonym of
36683         No_Task_Attributes_Package.
36684
36685         * snames.ads, snames.adb: New entry for proper handling of
36686         No_Task_Attributes.
36687
36688         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36689         (AI-00249) that supersedes the GNAT specific restriction
36690         No_Task_Attributes.
36691
36692 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36693
36694         * sem_prag.adb:
36695         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36696          body, an identifier may be wrapped in an unchecked conversion.
36697
36698 2004-02-04  Vincent Celier  <celier@gnat.com>
36699
36700         * lib-writ.ads: Comment update for the W lines
36701
36702         * bld.adb: (Expression): An empty string list is static
36703
36704         * fname-uf.adb: Minor comment update
36705
36706         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36707
36708         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36709         restrictions on the target.
36710
36711 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36712
36713         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36714         gen_rtx.
36715
36716 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36717
36718         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36719
36720 2004-02-02  Vincent Celier  <celier@gnat.com>
36721
36722         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36723         comment before the usage.
36724         Gprcmd: Fail when command is not recognized.
36725         (Usage): Document command "prefix"
36726
36727         * g-md5.adb (Digest): Process last block.
36728         (Update): Do not process last block. Store remaining characters and
36729         length in Context.
36730
36731         * g-md5.ads (Update): Document that several call to update are
36732         equivalent to one call with the concatenated string.
36733         (Context): Add fields to allow new Update behaviour.
36734
36735         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36736         defaulted to False.
36737         When May_Fail is True and no existing file can be found, return No_File.
36738
36739         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36740         functions.
36741
36742         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36743         spec file name instead on the W line.
36744
36745 2004-02-02  Robert Dewar  <dewar@gnat.com>
36746
36747         * ali.adb: Read and acquire info from new format restrictions lines
36748
36749         * bcheck.adb: Add circuits for checking restrictions with parameters
36750
36751         * bindgen.adb: Output dummy restrictions data
36752         To be changed later
36753
36754         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36755         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36756         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36757         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36758         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36759
36760         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36761         the warning message on access to possibly uninitialized variable S)
36762         Minor changes for new restrictions handling.
36763
36764         * gnatbind.adb: Minor reformatting
36765         Minor changes for new restrictions handling
36766         Move circuit for -r processing here from bcheck (cleaner)
36767
36768         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36769
36770         * lib-writ.adb: Output new format restrictions lines
36771
36772         * lib-writ.ads: Document new R format lines for new restrictions
36773         handling.
36774
36775         * s-restri.ads/adb: New files
36776
36777         * Makefile.rtl: Add entry for s-restri.ads/adb
36778
36779         * par-ch3.adb: Fix bad error messages starting with upper case letter
36780         Minor reformatting
36781
36782         * restrict.adb: Major rewrite throughout for new restrictions handling
36783         Major point is to handle restrictions with parameters
36784
36785         * restrict.ads: Major changes in interface to handle restrictions with
36786         parameters. Also generally simplifies setting of restrictions.
36787
36788         * snames.ads/adb: New entry for proper handling of No_Requeue
36789
36790         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36791         restriction counting.
36792         Other minor changes for new restrictions handling
36793
36794         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36795         Restriction_Warnings now allows full parameter notation
36796         Major rewrite of Restrictions for new restrictions handling
36797
36798 2004-02-02  Javier Miranda  <miranda@gnat.com>
36799
36800         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36801         syntax rule for object renaming declarations.
36802         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36803         component definitions.
36804
36805         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36806         components.
36807         (Array_Type_Declaration): Give support to access components. In addition
36808         it was also modified to reflect the name of the object in anonymous
36809         array types. The old code did not take into account that it is possible
36810         to have an unconstrained anonymous array with an initial value.
36811         (Check_Or_Process_Discriminants): Allow access discriminant in
36812         non-limited types.
36813         (Process_Discriminants): Allow access discriminant in non-limited types
36814         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36815         node.  Change Ada0Y to Ada 0Y in comments
36816
36817         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36818         equality operators.
36819         Change Ada0Y to Ada 0Y in comments
36820
36821         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36822         renamings Change Ada0Y to Ada 0Y in comments
36823
36824         * sem_type.adb (Find_Unique_Type): Give support to the equality
36825         operators for universal access types
36826         Change Ada0Y to Ada 0Y in comments
36827
36828         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36829
36830         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36831         field.
36832         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36833         Change Ada0Y to Ada 0Y in comments
36834
36835         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36836         component definition and object renaming nodes
36837         Change Ada0Y to Ada 0Y in comments
36838
36839 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36840
36841         * restrict.adb: Use the new restriction identifier
36842         No_Requeue_Statements instead of the old No_Requeue for defining the
36843         restricted profile.
36844
36845         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36846         No_Requeue_Statements.
36847
36848         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36849         that supersedes the GNAT specific restriction No_Requeue. The later is
36850         kept for backward compatibility.
36851
36852 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36853
36854         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36855         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36856         pragma and fix incorrect ones.
36857
36858         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36859         warning if the pragma is redundant.
36860
36861 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36862
36863         * 5staprop.adb: Add missing 'constant' keywords.
36864
36865         * Makefile.in: use consistent value for SYMLIB on
36866         platforms where libaddr2line is supported.
36867
36868 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36869
36870         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36871         annotating types.
36872
36873 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36874
36875         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36876         handlers in the environment thread. This allows proper propagation of
36877         an exception on stack overflows in this thread even when the builtin
36878         ABI stack-checking scheme is used without support for a stack reserve
36879         region.
36880
36881         * utils.c (create_field_decl): Augment the head comment about bitfield
36882         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36883         here, because the former is not accurate enough at this point.
36884         Let finish_record_type decide instead.
36885         Don't make a bitfield if the field is to be addressable.
36886         Always set a size for the field if the record is packed, to ensure the
36887         checks for bitfield creation are triggered.
36888         (finish_record_type): During last pass over the fields, clear
36889         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36890         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36891         from DECL_BIT_FIELD.
36892
36893 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36894
36895         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36896         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36897         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36898
36899 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36900
36901         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36902
36903         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36904         (ZCX_By_Default): Likewise.
36905         (Front_End_ZCX_Support): Likewise.
36906
36907         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36908         (Initialize_Lock): Mark Level unreferenced.
36909         (Sleep): Mark Reason unreferenced.
36910         (Timed_Sleep): Likewise.
36911         (Wakeup): Likewise.
36912         (Exit_Task): Use Result.
36913         (Check_No_Locks): Mark Self_ID unreferenced.
36914
36915         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36916         (Bound_Thread_Attributes): Make Sproc constant.
36917         (New_Bound_Thread_Attributes): Likewise.
36918
36919 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36920
36921         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36922         one-dimensional array an slice assignments, when component type is
36923         controlled.
36924
36925         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36926         component type is controlled, and control_actions are in effect, use
36927         TSS procedure rather than generating inline code.
36928
36929         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36930         arrays with controlled components.
36931
36932 2004-01-26  Vincent Celier  <celier@gnat.com>
36933
36934         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36935         command line for the non VMS case.
36936
36937         * gnatlink.adb (Process_Binder_File): When building object file, if
36938         GNU linker is used, put all object paths between quotes, to prevent ld
36939         error when there are unusual characters (such as '!') in the paths.
36940
36941         * Makefile.generic: When there are sources in Ada and the main is in
36942         C/C++, invoke gnatmake with -B, instead of -z.
36943
36944         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36945         from VMS_Conversion.
36946         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36947         specification of argument file on the command line.
36948
36949 2004-01-26  Bernard Banner  <banner@gnat.com>
36950
36951         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36952
36953 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36954
36955         * snames.adb: Update copyright notice.
36956         Add info on slice assignment for controlled arrays.
36957
36958 2004-01-23  Robert Dewar  <dewar@gnat.com>
36959
36960         * exp_aggr.adb: Minor reformatting
36961
36962         * exp_ch9.adb: Minor code clean up
36963         Minor reformatting
36964         Fix bad character in comment
36965
36966         PR ada/13471
36967         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36968         unexpected end of file, along with more detailed message.
36969
36970 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36971
36972         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36973         PAT.
36974
36975         * decl.c (copy_alias_set): New function.
36976         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36977
36978 2004-01-23  Doug Rupp  <rupp@gnat.com>
36979
36980         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36981         lib$${file} in case subsequent character is not a separator.
36982
36983 2004-01-23  Vincent Celier  <celier@gnat.com>
36984
36985         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36986         when the GCC version is at least 3.
36987
36988         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36989         Remove all "Opt.", to prepare for opt split
36990
36991         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36992         Extends_All. Set to True when the project parsed is an extending all
36993         project. Fails for importing an extending all project only when the
36994         imported project is an extending all project.
36995         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36996         depending on the value of Extends_All returned.
36997
36998         * prj-proc.adb (Process): Check that no project shares its object
36999         directory with a project that extends it, directly or indirectly,
37000         including a virtual project.
37001         Check that no project extended by another project shares its object
37002         directory with another also extended project.
37003
37004         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37005         Kind = N_With_Clause
37006
37007         * prj-tree.ads: Minor reformatting
37008         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37009
37010 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
37011
37012         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37013         applies to a type with an incomplete view, use full view in Name of
37014         clause, for consistency with uses of Get_Attribute_Definition_Clause.
37015
37016 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
37017
37018         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37019         SCHED_RR, since other values are not supported by this policy.
37020         (Initialize): Move initialization of mutex attribute to package
37021         elaboration, to prevent early access to this variable.
37022
37023         * Makefile.in: Remove mention of Makefile.adalib, unused.
37024
37025         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37026         1ssecsta.ads: Removed, unused.
37027
37028 2004-01-21  Javier Miranda  <miranda@gnat.com>
37029
37030         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37031         entity if already built in the current scope.
37032
37033         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37034         reminder in internal scopes. Required for nested limited aggregates.
37035
37036 2004-01-21  Doug Rupp  <rupp@gnat.com>
37037
37038         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37039         VMS. Replace all occurences of libgnat- and libgnarl- with
37040         libgnat$(hyphen) and libgnarl$(hyphen).
37041         Fixed shared library build problem on VMS.
37042
37043 2004-01-21  Robert Dewar  <dewar@gnat.com>
37044
37045         * mlib-prj.adb: Minor reformatting
37046
37047 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
37048
37049         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37050         'constant' keywords for declaration of pointers that are not modified.
37051
37052         * exp_pakd.adb: Fix English in comment.
37053
37054 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
37055
37056         PR ada/10889
37057         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37058         copy all attributes of the parent, including the foreign language
37059         convention.
37060
37061 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
37062
37063         PR ada/10565
37064         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37065         for 'delay until' statement.
37066
37067 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
37068
37069         * Make-lang.in: Replace $(docdir) with doc.
37070         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37071         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37072         to use consistent MAKEINFO rule.
37073         (ada.man, ada.srcman): Dummy entry.
37074         (ADA_INFOFILES): Define.
37075         (ada.info, ada.srcinfo): New rules.
37076
37077 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
37078
37079         * utils.c: Update copyright notice, missed in previous change.
37080
37081 2004-01-19  Vincent Celier  <celier@gnat.com>
37082
37083         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37084         args if Bind is True. Set First_ALI, if not already done.
37085         (Build_Library): For Stand Alone Libraries, extract from one ALI file
37086         an eventual --RTS switch, for gnatbind, and all backend switches +
37087         --RTS, for linking.
37088
37089 2004-01-19  Robert Dewar  <dewar@gnat.com>
37090
37091         * sem_attr.adb, memtrack.adb: Minor reformatting
37092
37093 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
37094
37095         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37096         that rename enumeration literals. This is properly done in sem_eval.
37097
37098         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37099         to functions that rename enumeration literals.
37100
37101         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37102         functions that rename enumeration literals.
37103
37104 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
37105
37106         * Make-lang.in (utils.o): Depend on target.h.
37107         * utils.c: Include target.h.
37108         (process_attributes): Use targetm.have_named_sections instead
37109         of ASM_OUTPUT_SECTION_NAME.
37110
37111 2004-01-16  Andreas Jaeger  <aj@suse.de>
37112
37113         * Makefile.in: Add $(DESTDIR).
37114
37115 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
37116
37117         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37118         also when not defining if a Size clause applies. That information is
37119         not to be ignored.
37120
37121 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
37122
37123         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37124         symbolic links for the shared gnat run time when needed.
37125
37126 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
37127
37128         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37129         for writing, and terminate with an error message if not.
37130
37131 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
37132
37133         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37134         warning on an access to subprogram in an instance, when the target
37135         type is declared in the same generic unit.
37136         (Eval_Attribute): If 'access is known to fail accessibility check,
37137         rewrite as a raise statement.
37138
37139 2004-01-15  GNAT Script  <nobody@gnat.com>
37140
37141         * Make-lang.in: Makefile automatically updated
37142
37143 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
37144
37145         * Make-lang.in (ada.srcextra): Dummy entry.
37146
37147 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
37148
37149         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37150
37151 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
37152
37153         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37154         components that are initialized with aggregates.
37155
37156 2004-01-13  Vincent Celier  <celier@gnat.com>
37157
37158         * gnatlink.adb (Process_Binder_File): To find directory of shared
37159         libgcc, if "gcc-lib" is not a subdirectory, look for the last
37160         subdirectory "lib" in the path of the shared libgnat or libgnarl.
37161
37162         * make.adb (Gnatmake): If GCC version is at least 3, link with
37163         -shared-libgcc, when there is at least one shared library project.
37164
37165         * opt.ads (GCC_Version): New integer constant.
37166
37167         * adaint.c (get_gcc_version): New function.
37168
37169 2004-01-13  Robert Dewar  <dewar@gnat.com>
37170
37171         * sem_dist.adb, sem_res.adb, sem_util.adb,
37172         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37173         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37174
37175 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
37176
37177         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37178         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37179         declarations.
37180
37181 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
37182
37183         * misc.c: Remove trailing spaces.
37184         Update copyright notice missed in previous change.
37185
37186         PR ada/13572
37187         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37188         prefix/share/make
37189
37190         * Makefile.generic: Update copyright.
37191         Add license notice.
37192
37193         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37194         of prefix/share/make.
37195
37196         * Makefile.prolog: Update copyright.
37197         Add license notice.
37198
37199 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
37200
37201         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37202         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37203         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37204         instead of String.
37205
37206         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37207         signature.
37208
37209 2004-01-12  Javier Miranda  <miranda@gnat.com>
37210
37211         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37212         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37213         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37214         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37215         Component_Definition node.
37216
37217 2004-01-12  Ed Falis  <falis@gnat.com>
37218
37219         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37220
37221 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
37222
37223         * link.c: Change default libgnat kind to STATIC for FreeBSD.
37224
37225 2004-01-12  Bernard Banner  <banner@gnat.com>
37226
37227         * Makefile.in: map 86numaux to a-numaux for x86_64
37228
37229 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
37230
37231         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37232         generated to rename a generic actual, go to the actual itself, the
37233         subtype is not a user-visible entity.
37234
37235         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37236         part is a private subtype, reset the visibility of its full view, if
37237         any, to be consistent.
37238
37239         PR ada/13417
37240         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37241         to use a generic package G as a formal package for another generic
37242         declared within G.
37243
37244 2004-01-12  Robert Dewar  <dewar@gnat.com>
37245
37246         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37247
37248         * usage.adb: Remove mention of obsolete -gnatwb switch
37249         Noticed during code reading
37250
37251 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
37252
37253         * 1ssecsta.adb: Minor changes for -gnatwa warnings
37254
37255 2004-01-12  GNAT Script  <nobody@gnat.com>
37256
37257         * Make-lang.in: Makefile automatically updated
37258
37259 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
37260
37261         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37262
37263 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37264
37265         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37266
37267 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
37268
37269         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37270         Update comment and copyright date.
37271         * stamp-xgnatug: Delete.
37272
37273 2004-01-05  Robert Dewar  <dewar@gnat.com>
37274
37275         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37276         be modified by the binder generated main program if the -D switch is
37277         used.
37278
37279         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37280         imported functions (since now we expect this to be done for imported
37281         functions)
37282
37283         * 5vtaprop.adb: Add several ??? for sections requiring more comments
37284         Minor reformatting throughout
37285
37286         * 5zinit.adb: Minor reformatting
37287         Add 2004 to copyright date
37288         Minor changes to avoid -gnatwa warnings
37289         Correct some instances of using OR instead of OR ELSE (noted while
37290         doing reformatting)
37291
37292         * sprint.adb: Minor updates to avoid -gnatwa warnings
37293
37294         * s-secsta.ads, s-secsta.adb:
37295         (SS_Get_Max): New function to obtain high water mark for ss stack
37296         Default_Secondary_Stack is not a constant since it may be modified by
37297         the binder generated main program if the -D switch is used.
37298
37299         * switch-b.adb: New -Dnnn switch for binder
37300
37301         * switch-c.adb:
37302         Make -gnatg imply all warnings currently in -gnatwa
37303
37304         * vms_conv.adb: Minor reformatting
37305         Add 2004 to copyright notice
37306         Add 2004 to printed copyright notice
37307
37308         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37309         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37310         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37311         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37312         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37313         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37314         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37315         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37316         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37317         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37318         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37319         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37320         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37321         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37322         checks.adb, clean.adb, cstand.adb, einfo.ads,
37323         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37324         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37325         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37326         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37327         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37328         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37329         Minor reformatting and code clean ups.
37330         Minor changes to prevent -gnatwa warnings
37331
37332         * ali.adb: Minor reformatting and cleanup of code
37333         Acquire new SS indication of secondary stack use from ali files
37334
37335         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37336         (since now we expect this to be done for imported functions)
37337
37338         * bindgen.adb: Generate call to modify default secondary stack size if
37339         -Dnnn switch given
37340
37341         * bindusg.adb: Add line for new -D switch
37342
37343         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37344         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37345         Add circuitry for both records and arrays to avoid gigi
37346         processing if the type involved has non-bit-aligned components
37347
37348         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37349         N_String_Literal node always references an E_String_Literal_Subtype
37350         entity. This may not be true in the future.
37351         (Possible_Bit_Aligned_Component): Move processing of
37352         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37353
37354         * exp_ch6.adb (Expand_Thread_Body): Pick up
37355         Default_Secondary_Stack_Size as variable so that we get value modified
37356         by possible -Dnnn binder parameter.
37357
37358         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37359         (Type_May_Have_Bit_Aligned_Components): New function.
37360
37361         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37362         (Type_May_Have_Bit_Aligned_Components): New function.
37363
37364         * fe.h: (Set_Identifier_Casing): Fix prototype.
37365         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37366         Minor reformatting.
37367
37368         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37369         importing constant atomic/volatile objects.
37370         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37371         unless explicit Pure_Function pragma given, to avoid insidious bug of
37372         call to non-pure imported function getting eliminated.
37373
37374         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37375         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37376         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37377         Add 2004 to printed copyright notice
37378
37379         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37380         stack used.
37381
37382         * Makefile.rtl: Add entry for g-sestin.o
37383         g-sestin.ads: New file.
37384
37385         * mdll.adb: Minor changes to avoid -gnatwa warnings
37386
37387         * mlib-tgt.adb: Minor reformatting
37388
37389         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37390         New switch Sec_Stack_Used (GNAT, GNATBIND)
37391         Make Default_Secondary_Stack_Size a variable instead of a constant,
37392         so that it can be modified by the new -Dnnn bind switch.
37393
37394         * rtsfind.adb (Load_Fail): Give full error message in configurable
37395         run-time mode if all_errors mode is set. This was not done in the case
37396         of a file not found, which was an oversight.
37397         Note if secondary stack unit is used by compiler.
37398
37399         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37400         ineffective elaborate all pragmas on non-visible packages (this
37401         happened when a renamed subprogram was called). Now the elaborate all
37402         always goes on the package containing the renaming rather than the one
37403         containing the renamed subprogram.
37404
37405         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37406         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37407
37408         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37409         has an Etype that references an E_String_Literal.
37410         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37411         always references an E_String_Literal_Subtype entity. This may not
37412         be true in the future.
37413
37414         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37415         pragma location.
37416
37417         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37418         call.
37419
37420 2004-01-05  Ed Falis  <falis@gnat.com>
37421
37422         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37423         form.
37424
37425 2004-01-05  Vincent Celier  <celier@gnat.com>
37426
37427         * bld.adb: Minor comment updates
37428         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37429         of Item_Name).
37430
37431         * make.adb (Gnatmake): Special process for files to compile/check when
37432         -B is specified. Fail when there are only foreign mains in attribute
37433         Main of the project file and -B is not specified. Do not skip bind/link
37434         steps when -B is specified.
37435
37436         * makeusg.adb: Document new switch -B
37437
37438         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37439
37440         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37441
37442         * vms_data.ads: Add new GNAT PRETTY qualifier
37443         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37444
37445 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37446
37447         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37448         case.
37449
37450         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37451         Set_Identifier_Casing.
37452
37453         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37454         has size that overflows.
37455
37456 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37457
37458         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37459         -gnatwa warning on static condition.
37460
37461 2004-01-05  Doug Rupp  <rupp@gnat.com>
37462
37463         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37464
37465 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37466
37467         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37468         all attributes, including read-only attribute.
37469
37470 2004-01-05  Pascal Obry  <obry@gnat.com>
37471
37472         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37473         library naming scheme.
37474
37475         * mlib-prj.adb (Build_Library): Generate different names for the static
37476         or dynamic version of the GNAT runtime. This is needed to support the
37477         new shared library naming scheme.
37478         (Process_Binder_File): Add detection of shared library in binder file
37479         based on the new naming scheme.
37480
37481         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37482         scheme for the shared runtime libraries.
37483
37484         * Makefile.in:
37485         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37486         scheme.
37487         (install-gnatlib): Do not create symlinks for shared libraries.
37488         (gnatlib-shared-default): Idem.
37489         (gnatlib-shared-dual-win32): New target. Not used for now as the
37490         auto-import feature does not support arrays/records.
37491         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37492         (gnatlib-shared-vms): Fix shared runtime libraries names.
37493
37494         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37495         dependent runtime shared library name.
37496
37497 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37498
37499         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37500         than the object.
37501
37502 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37503
37504         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37505         protected objects when allocator has a subtype indication, not a
37506         qualified expression. Note that qualified expressions may have to be
37507         checked when limited aggregates are implemented.
37508
37509         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37510         pure, emit warning.
37511         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37512         subprogram is imported, remove warning.
37513
37514 2004-01-05  Geert Bosch  <bosch@gnat.com>
37515
37516         * s-poosiz.adb: Update copyright notice.
37517         (Allocate): Use Task_Lock to protect against concurrent access.
37518         (Deallocate): Likewise.
37519
37520 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37521
37522         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37523         comment.
37524
37525 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37526
37527         * gnat_ug.texi: Force a CVS commit by updating copyright.
37528         * gnat_ug_vxw.texi: Regenerate.
37529         * gnat_ug_wnt.texi: Regenerate.
37530         * gnat_ug_vms.texi: Regenerate.
37531         * gnat_ug_unx.texi: Regenerate.
37532
37533 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37534
37535         * trans.c: Remove uses of "register" specifier in
37536         declarations of local variables.
37537
37538 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37539
37540         * stamp-xgnatug: New stamp file.
37541         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37542         (ada/doctools/xgnatug): Add $(build_exeext).
37543         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37544         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37545
37546 2003-12-17  Ed Falis  <falis@gnat.com>
37547
37548         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37549         eliminate warning.
37550
37551         * a-exextr.adb: Add context clause for
37552         Ada.Exceptions.Last_Chance_Handler.
37553
37554 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37555
37556         * cstand.adb (Create_Standard): Change the way how the declaration of
37557         the Duration type is created (making it the same way as it is for all
37558         the other standard types).
37559
37560 2003-12-17  Robert Dewar  <dewar@gnat.com>
37561
37562         * s-crtl.ads: Fix header format
37563         Change Pure to Preelaborate
37564
37565 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37566
37567         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37568         the expression type only if it is declared in the current unit.
37569
37570         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37571         are universal and already analyzed, as can occur in constrained
37572         subcomponents that depend on discriminants, when one constraint is a
37573         subtype mark.
37574
37575         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37576         type Any_Fixed is legal as the argument of a conversion, if only one
37577         fixed-point type is in context.
37578
37579 2003-12-17  GNAT Script  <nobody@gnat.com>
37580
37581         * Make-lang.in: Makefile automatically updated
37582
37583 2003-12-15  Robert Dewar  <dewar@gnat.com>
37584
37585         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37586         sec stack size.
37587
37588 2003-12-15  Vincent Celier  <celier@gnat.com>
37589
37590         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37591         (Gnatchop): Do not set failure status when reporting the number of
37592         warnings.
37593
37594 2003-12-15  Doug Rupp  <rupp@gnat.com>
37595
37596         * s-ctrl.ads: New file.
37597
37598         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37599
37600         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37601         (GNATBIND_OBJS): Add ada/s-crtl.o.
37602
37603         * Makefile.in [VMS]: Clean up ifeq rules.
37604
37605         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37606         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37607         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37608         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37609         s-tasdeb.adb: Update copyright.
37610         Import System.CRTL.
37611         Make minor modifications to use System.CRTL declared functions instead
37612         of importing locally.
37613
37614 2003-12-15  GNAT Script  <nobody@gnat.com>
37615
37616         * Make-lang.in: Makefile automatically updated
37617
37618 2003-12-11  Ed Falis  <falis@gnat.com>
37619
37620         * 5zinit.adb: Clean up.
37621
37622         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37623         to __gnat_map_signal, imported from init.c to support
37624         signal -> exception mappings that depend on the vxWorks version.
37625
37626         * init.c:
37627         Created and exported __gnat_map_signal to support signal -> exception
37628         mapping that is dependent on the VxWorks version.
37629         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37630
37631 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37632
37633         * 5wosinte.ads: Link with -mthreads switch.
37634
37635 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37636
37637         * init.c (__gnat_install_handler [NetBSD]): Set
37638         __gnat_handler_installed, as done on all other platforms.
37639         Remove duplicated code.
37640
37641 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37642
37643         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37644
37645 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37646
37647         * sinfo.ads: Fix inconsistent example code in comment.
37648
37649 2003-12-11  Robert Dewar  <dewar@gnat.com>
37650
37651         * a-tiinau.adb: Add a couple of comments
37652
37653         * sem_ch3.adb: Minor reformatting
37654
37655         * sem_prag.adb:
37656         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37657         Minor reformatting throughout
37658
37659 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37660
37661         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37662         bounds of a loop, create a separate block in order to generate proper
37663         cleanup actions to prevent memory leaks.
37664
37665         * sem_res.adb (Resolve_Call): After a call to
37666         Establish_Transient_Scope, the call may be rewritten and relocated, in
37667         which case no further processing is needed.
37668
37669         * sem_util.adb: (Wrong_Type): Refine previous fix.
37670          Fixes ACATS regressions.
37671
37672         PR ada/13353
37673         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37674         be inlined.
37675
37676 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37677
37678         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37679         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37680         obsolete files.
37681
37682         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37683         (rts-zfp): Ditto.
37684
37685 2003-12-08  Robert Dewar  <dewar@gnat.com>
37686
37687         * 7sintman.adb: Minor reformatting
37688
37689         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37690         standard linker options to get standard libraries linked. We now plan
37691         to provide dummy versions of these libraries to match the appropriate
37692         configurable run-time (e.g. if a library is not needed at all, provide
37693         a dummy empty library).
37694
37695         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37696         options (-L parameters and standard libraries). What we plan to do is
37697         to provide dummy libraries where the libraries are not required.
37698
37699         * gnatbind.adb: Minor comment improvement
37700
37701 2003-12-08  Javier Miranda  <miranda@gnat.com>
37702
37703         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37704         aggregate in the parent. Otherwise constants with limited aggregates
37705         are not supported. Add new formal to pass the component type (Ctype).
37706         It is required to call the corresponding IP subprogram in case of
37707         default initialized components.
37708         (Gen_Assign): In case of default-initialized component, generate a
37709         call to the IP subprogram associated with the component.
37710         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37711         of aggregate with default initialized components.
37712         (Has_Default_Init_Comps): Improve implementation to recursively check
37713         all the present expressions.
37714
37715         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37716         to indicate that the initialization call corresponds to a
37717         default-initialized component of an aggregate.
37718         In case of default initialized aggregate with tasks this parameter is
37719         used to generate a null string (this is just a workaround that must be
37720         improved later). In case of discriminants, this parameter is used to
37721         generate a selected component node that gives access to the discriminant
37722         value.
37723
37724         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37725         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37726         allocated aggregates with default-initialized components.
37727
37728         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37729         the box notation is used in positional aggregates.
37730
37731 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37732
37733         * lib.ads: Fix typo in comment
37734
37735 2003-12-08  Vincent Celier  <celier@gnat.com>
37736
37737         * prj.adb (Project_Empty): New component Unkept_Comments
37738         (Scan): Remove procedure; moved to Prj.Err.
37739
37740         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37741         (Scan): Remove procedure; moved to Prj.Err.
37742
37743         * prj-dect.adb: Manage comments for the different declarations.
37744
37745         * prj-part.adb (With_Record): New component Node
37746         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37747         Set the scanner to return ends of line and comments as tokens, if
37748         Store_Comments is True.
37749         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37750         comments are associated with these nodes. Store the node IDs in the
37751         With_Records.
37752         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37753         With_Records.
37754         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37755         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37756         current project. Call Tree.Restore afterwards. Set the various nodes
37757         for comment storage (Next_End, End_Of_Line, Previous_Line,
37758         Previous_End).
37759
37760         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37761         defaulted to False.
37762
37763         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37764         to False. When Truncated is True, truncate the string, never go to the
37765         next line.
37766         (Write_End_Of_Line_Comment): New procedure
37767         (Print): Process comments for nodes N_With_Clause,
37768         N_Package_Declaration, N_String_Type_Declaration,
37769         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37770         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37771         Process nodes N_Comment.
37772
37773         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37774         without comments and there are some comments, set the flag
37775         Unkept_Comments to True.
37776         (Scan): If there are comments, set the flag Unkept_Comments to True and
37777         clear the comments.
37778         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37779         (Next_End_Nodes: New table
37780         (Comment_Zones_Of): New function
37781         (Scan): New procedure; moved from Prj. Accumulate comments in the
37782         Comments table and set end of line comments, comments after, after end
37783         and before end.
37784         (Add_Comments): New procedure
37785         (Save, Restore, Seset_State): New procedures
37786         (There_Are_Unkept_Comments): New function
37787         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37788         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37789         procedures.
37790         (First_Comment_After, First_Comment_After_End): New functions
37791         (First_Comment_Before, First_Comment_Before_End): New functions
37792         (Next_Comment): New function
37793         (End_Of_Line_Comment, Follows_Empty_Line,
37794         Is_Followed_By_Empty_Line): New functions
37795         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37796         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37797         (Set_Next_Comment): New procedure
37798         (Default_Project_Node): Associate comment before if the node can store
37799         comments.
37800
37801         * scans.ads (Token_Type): New enumeration value Tok_Comment
37802         (Comment_Id): New global variable
37803
37804         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37805         defaulted to False.
37806         (Scan): Store position of start of comment. If comments are tokens, set
37807         Comment_Id and set Token to Tok_Comment when scanning a comment.
37808         (Set_Comment_As_Token): New procedure
37809
37810         * sinput-p.adb: Update Copyright notice
37811         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37812         that no longer exists.
37813
37814 2003-12-08  Javier Miranda  <miranda@gnat.com>
37815
37816         * sem_aggr.adb: Add dependence on Exp_Tss package
37817         Correct typo in comment
37818         (Resolve_Aggregate): In case of array aggregates set the estimated
37819         type of the aggregate before calling resolve. This is needed to know
37820         the name of the corresponding IP in case of limited array aggregates.
37821         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37822         in case of default initialized array components.
37823
37824         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37825         types. Required to give support to limited aggregates in generic
37826         formals.
37827
37828 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37829
37830         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37831         inlined body functions like an instantiation.
37832         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37833         until bounds are analyzed, to diagnose premature use of type.
37834
37835         * sem_util.adb (Wrong_Type): Improve error message when the type of
37836         the expression is used prematurely.
37837
37838 2003-12-08  GNAT Script  <nobody@gnat.com>
37839
37840         * Make-lang.in: Makefile automatically updated
37841
37842 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37843
37844         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37845         they are automatically generated by Make-lang.in and cause nothing but
37846         maintenance troubles.
37847
37848 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37849
37850         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37851         version of this unit).
37852
37853 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37854
37855         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37856         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37857         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37858         the body of System.Interrupt_Management common to several targets.
37859         Update copyright notice when appropriate.
37860
37861         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37862         constant.
37863
37864         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37865         to ensure that the kernel fills in the interrupted context structure
37866         before calling a signal handler, which is necessary to be able to
37867         unwind past it. Update the copyright notice.
37868
37869 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37870
37871         * a-elchha.ads: New file.
37872
37873         * a-elchha.adb: New default last chance handler. Contents taken from
37874         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37875
37876         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37877         is moved to a-elchha.adb to provide a target-independent default last
37878         chance handler.
37879
37880         * Makefile.rtl: Add a-elchha.o
37881
37882         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37883
37884 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37885
37886         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37887         declared in an instance, do not inline the call if the instance is not
37888         frozen yet, to prevent order of elaboration problems.
37889
37890         * sem_prag.adb: Add comments for previous fix.
37891
37892 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37893
37894         * g-table.adb: Use the right variable in Set_Item.
37895         Update copyright notice.
37896
37897 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37898
37899         * Makefile.in: Remove unused rules.
37900
37901 2003-12-05  Vincent Celier  <celier@gnat.com>
37902
37903         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37904         -nostdlib. Not needed here after all.
37905
37906 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37907
37908         PR ada/11724
37909         * adaint.h, adaint.c, g-os_lib.ads:
37910         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37911         on some platforms (including FreeBSD), it is a 64 bit value.
37912         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37913
37914 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37915
37916         * gnatvsn.ads (Library_Version): Now contain only the relevant
37917         version info.
37918         (Verbose_Library_Version): New constant.
37919
37920         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37921         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37922         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37923
37924         * gnatlbr.adb: Clean up: replace Library_Version by
37925         Verbose_Library_Version.
37926
37927         * make.adb, lib-writ.adb, exp_attr.adb:
37928         Clean up: replace Library_Version by Verbose_Library_Version.
37929
37930         * 5lintman.adb: Removed.
37931
37932         * Makefile.in:
37933         Update and simplify computation of LIBRARY_VERSION.
37934         Fix computation of GSMATCH_VERSION.
37935         5lintman.adb is no longer used: replaced by 7sintman.adb.
37936
37937 2003-12-03  Robert Dewar  <dewar@gnat.com>
37938
37939         * exp_ch5.adb:
37940         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37941         name. Modified to consider small non-bit-packed arrays as troublesome
37942         and in need of component-by-component assigment expansion.
37943
37944 2003-12-03  Vincent Celier  <celier@gnat.com>
37945
37946         * lang-specs.h: Process nostdlib as nostdinc
37947
37948         * back_end.adb: Update Copyright notice
37949         (Scan_Compiler_Arguments): Process -nostdlib directly.
37950
37951 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37952
37953         * Makefile.in:
37954         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37955         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37956         included in HIE_NONE_TARGET_PAIRS.
37957
37958 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37959
37960         * sem_attr.adb:
37961         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37962         is legal in an instance, because legality is cheched in the template.
37963
37964         * sem_prag.adb:
37965         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37966         appplied to an unchecked conversion of a formal parameter.
37967
37968         * sem_warn.adb:
37969         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37970         variables.
37971
37972 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37973
37974         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37975         routines. The second one is new functionality to deal with backtracing
37976         through signal handlers.
37977         (unwind): Split into the two separate subroutines above.
37978         Update the documentation, and deal properly with sizeof (REG) different
37979         from sizeof (void*).
37980
37981 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37982
37983         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37984         so that the debugger can reliably access the value of the parameter,
37985         and therefore is able to display the exception name when an exception
37986         breakpoint is reached.
37987
37988 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
37989
37990         * fmap.adb: Fix typo in warning message.
37991
37992         * g-socket.ads, g-socket.adb: Make Free a visible instance of
37993         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37994
37995 2003-12-01  Vincent Celier  <celier@gnat.com>
37996
37997         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37998         ther is no Afile.
37999         (Build_Library): Get the switches only if Default_Switches is declared
38000         in package Binder.
38001
38002 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
38003
38004         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38005         actuals that are indexed components, reanalyze actual to ensure that
38006         packed array references are properly expanded.
38007
38008         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38009         attempted assignment to a discriminant.
38010
38011 2003-12-01  Robert Dewar  <dewar@gnat.com>
38012
38013         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38014         reformatting.
38015
38016         * switch-c.adb: Minor reformatting of comments
38017
38018 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
38019
38020         * Makefile.in: Clean ups.
38021
38022 2003-12-01  GNAT Script  <nobody@gnat.com>
38023
38024         * Make-lang.in: Makefile automatically updated
38025
38026 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
38027
38028         * 5wsystem.ads: Disable zero cost exception, not ready yet.
38029
38030 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
38031
38032         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38033         to force serialization.
38034
38035 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
38036
38037         * g-socket.ads, g-socket.adb:
38038         Clarify documentation of function Stream. Introduce a Free procedure
38039         to release the returned Stream once it becomes unused.
38040
38041         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38042
38043 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
38044
38045         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38046         since NT 4 cannot handle timeout values that are too large,
38047         e.g. DWORD'Last - 1.
38048
38049 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
38050
38051         * exp_ch4.adb:
38052         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38053         in procedure calls and whose expansion must be deferred.
38054
38055         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38056         is in exp_ch4.
38057
38058         * sem_ch3.adb:
38059         (Build_Derived_Array_Type): Create operator for unconstrained type
38060         if ancestor is unconstrained.
38061
38062 2003-11-26  Vincent Celier  <celier@gnat.com>
38063
38064         * make.adb (Project_Object_Directory): New global variable
38065         (Change_To_Object_Directory): New procedure
38066         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38067         of Change_Dir directly. Do not change working directory to object
38068         directory of main project after each compilation.
38069         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38070         directly.
38071         Change to object directory of main project before binding step.
38072         (Initialize): Initialize Project_Object_Directory to No_Project
38073
38074         * mlib-prj.adb:
38075         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38076         binding a Stand-Alone Library.
38077
38078         * output.adb: Update Copyright notice
38079         (Write_Char): Output buffer when full
38080
38081 2003-11-26  Robert Dewar  <dewar@gnat.com>
38082
38083         * sem_ch13.adb: (Check_Size): Reset size if size is too small
38084
38085         * sem_ch13.ads:
38086         (Check_Size): Fix documentation to include bit-packed array case
38087
38088         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38089
38090         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38091
38092         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38093
38094 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
38095
38096         PR ada/13142
38097         * utils.c (init_gigi_decls): Change name of built-in setjmp to
38098         __builtin_setjmp, since this is apparently needed by recent
38099         non Ada changes.
38100
38101 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38102
38103         * adadecode.c: Only include ctype.h if not IN_GCC.
38104         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38105
38106 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
38107
38108         * Makefile.in:
38109         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38110         signals and interrupts.
38111
38112         * 5zintman.ads: New File.
38113
38114         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38115         add exception signals to the set of unmasked signals.
38116
38117         * 5ztaprop.adb:
38118         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38119         between signals and interrupts.
38120         Add to Unblocked_Signal_Mask the set of signals that are in
38121         Keep_Unmasked.
38122
38123         * 7sinmaop.adb:
38124         Adding a check to see whether the Interrupt_ID we want to unmask is in
38125         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38126         reason is that the index type of the Keep_Unmasked array is not always
38127         Interrupt_ID; it may be a subtype of Interrupt_ID.
38128
38129 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
38130
38131         * exp_util.adb:
38132         (Remove_Side_Effects): Condition constantness of object created for a
38133          an unchecked type conversion on the constantness of the expression
38134          to ensure the correct value for 'Constrained when passing components
38135          of view-converted class-wide objects.
38136
38137 2003-11-24  Robert Dewar  <dewar@gnat.com>
38138
38139         * par-load.adb (Load): Improve handling of misspelled and missing units
38140         Removes several cases of compilation abandoned messages
38141
38142         * lib.adb: (Remove_Unit): New procedure
38143
38144         * lib.ads: (Remove_Unit): New procedure
38145
38146         * lib-load.adb: Minor reformatting
38147
38148 2003-11-24  Vincent Celier  <celier@gnat.com>
38149
38150         * make.adb:
38151         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38152         (Marking_Label): Label to mark processed source files. Incremented for
38153         each executable.
38154         (Gnatmake): Increase Marking_Labet for each executable
38155         (Is_Marked): Compare against marking label
38156         (Mark): Mark with marking label
38157
38158 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
38159
38160         * s-thread.ads:
38161         Move the declaration of the TSD for System.Threads to System.Soft_Links.
38162         Add some comments.
38163
38164         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38165         (rts-cert): build a single relocatable object for the run-time lib.
38166         Fix perms.
38167
38168 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
38169
38170         * Make-lang.in:
38171         Use gnatls rather than gcc to obtain the location of GNAT RTL for
38172         crosstools build.
38173
38174 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
38175
38176         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38177         can not use it as before (that is, as a variable) when dumping it into
38178         the tree file. Add a local variable to store the result of this
38179         function and to be used as the string to be written into the tree.
38180
38181         * scn.adb (Initialize_Scanner): Add comments explaining the recent
38182         changes.
38183
38184         * sinput.adb (Source_First, Source_Last): In case of
38185         Internal_Source_File, replace returning attributes of
38186         Internal_Source_Ptr (which is wrong) with returning attributes of
38187         Internal_Source.
38188
38189 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
38190
38191         * sem_ch3.adb:
38192         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38193         used for implicit concatenation operators.
38194         Code cleanup.
38195
38196         * sem_elab.adb:
38197         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38198         task bodies that are in the scope of a Suppress pragma.
38199         (Check_A Call): Use the flag to prevent spurious elaboration checks.
38200
38201         * sinfo.ads, sinfo.adb:
38202         New flag No_Elaboration_Check on function/procedure calls, to properly
38203         suppress checks on calls in task bodies that are within a local suppress
38204         pragma.
38205
38206         * exp_ch4.adb:
38207         (Expand_Concatenate_Other): Use the proper integer type for the
38208         expression for the upper bound, to avoid universal_integer computations
38209         when possible.
38210
38211 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
38212
38213         * .cvsignore: Delete.
38214
38215 2003-11-21  Andreas Schwab  <schwab@suse.de>
38216
38217         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38218
38219 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
38220
38221         * 5wsystem.ads: Enable zero cost exception.
38222
38223 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
38224
38225         * 5ztiitho.adb: Remove an unreferenced variable.
38226
38227 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
38228
38229         * adaint.c: For FreeBSD, use mkstemp.
38230
38231 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
38232
38233         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38234
38235 2003-11-21  Robert Dewar  <dewar@gnat.com>
38236
38237         * bld.adb: Remove useless USE of gnatvsn
38238
38239         * gnatchop.adb: Minor reformatting
38240         Clean up version handling to be more consistent
38241
38242         * gnatxref.adb: Minor reformatting
38243
38244         * gprcmd.adb: Minor reformatting
38245         Fix output of copyright to be more consistent with other tools
38246
38247 2003-11-21  Vincent Celier  <celier@gnat.com>
38248
38249         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38250
38251 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
38252
38253         * atree.adb (Initialize): Add initializations for global variables
38254         used in New_Copy_Tree.
38255
38256         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38257         Internal_Source_File as the actual).
38258         Put the set of statements creating Any_Character before the set of
38259         statements creating Any_Array to have Any_Character fully initialized
38260         when it is used in creating Any_Array.
38261
38262         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38263         not call Scan in case if the actual is Internal_Source_File
38264         Add 2003 to copyright note.
38265
38266         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38267         processing Internal_Source_File.
38268
38269         * types.ads: Add the constant Internal_Source_File representing the
38270         source buffer for artificial source-code-like strings created within
38271         the compiler (the definition of Source_File_Index is changed).
38272
38273 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
38274
38275         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38276         56system.ads: New file, FreeBSD version.
38277
38278 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38279
38280         * Make-lang.in (ada.extraclean): Delete.
38281
38282 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
38283
38284         * gnatmem.adb: Clean up verbose output.
38285
38286         * gprcmd.adb: Change copyright to FSF.
38287
38288 2003-11-19  Vincent Celier  <celier@gnat.com>
38289
38290         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38291         and Version (ignored).
38292
38293         * symbols.ads: (Policy): New type
38294         (Initialize): New parameter Reference, Symbol_Policy and
38295         Library_Version.
38296         Remove parameter Force.
38297         Minor reformatting.
38298
38299         * snames.ads, snames.adbadb: New standard names
38300         Library_Reference_Symbol_File and Library_Symbol_Policy
38301
38302         * mlib-prj.adb:
38303         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38304         project.
38305
38306         * mlib-tgt.adb:
38307         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38308
38309         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38310
38311         * prj.adb: (Project_Empty): New component Symbol_Data
38312
38313         * prj.ads: (Policy, Symbol_Record): New types
38314         (Project_Data): New component Symbol_Data
38315
38316         * prj-attr.adb:
38317         New attributes Library_Symbol_File, Library_Symbol_Policy and
38318         Library_Reference_Symbol_File.
38319
38320         * prj-nmsc.adb:
38321         (Ada_Check): When project is a Stand-Alone library project, process
38322         attribute Library_Symbol_File, Library_Symbol_Policy and
38323         Library_Reference_Symbol_File.
38324
38325         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38326         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38327         5sml-tgt.adb (Build_Dynamic_Library): New parameter
38328         Symbol_Data (ignored).
38329
38330         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38331         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38332         functions Option_File_Name and Version_String. Set new options of
38333         gnatsym related to symbol file, symbol policy and reference symbol
38334         file.
38335
38336         * 5vsymbol.adb:
38337         Extensive modifications to take into account the reference symbol file,
38338         the symbol policy, the library version and to put in the symbol file the
38339         minor and major IDs.
38340
38341         * bld.adb (Process_Declarative_Items): Put second argument of
38342         gprcmd to_absolute between single quotes, to avoid problems with
38343         Windows.
38344
38345         * bld-io.adb: Update Copyright notice.
38346         (Flush): Remove last character of a line, if it is a back slash, to
38347         avoid make problems.
38348
38349         * gnatsym.adb:
38350         Implement new scheme with reference symbol file and symbol policy.
38351
38352         * g-os_lib.ads: (Is_Directory): Clarify comment
38353
38354 2003-11-19  Robert Dewar  <dewar@gnat.com>
38355
38356         * atree.adb: Move New_Copy_Tree global variables to head of package
38357
38358         * errout.adb: Minor reformatting
38359
38360 2003-11-19  Javier Miranda  <miranda@gnat.com>
38361
38362         * sem_ch4.adb: (Diagnose_Call): Improve error message.
38363         Add reference to Ada0Y (AI-50217)
38364
38365         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38366         sem_util.adb: Add reference to AI-50217
38367
38368         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38369
38370         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38371
38372         * sem_aggr.adb: Complete documentation of AI-287 changes
38373
38374         * par-ch4.adb: Document previous changes.
38375
38376         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38377         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38378         Ada0Y (AI-50217)
38379
38380         * exp_aggr.adb: Add references to AI-287 in previous changes
38381
38382 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38383
38384         * exp_ch6.adb:
38385         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38386         in the rewriting is the result of an inlined call.
38387
38388         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38389         parameter is a type conversion, use original node to construct the
38390         post-call assignment, because expression may have been rewritten, e.g.
38391         if it is a packed array.
38392
38393         * sem_attr.adb:
38394         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38395         body, just as it is in an instance.
38396         Categorization routines
38397
38398         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38399         Instantiate_Object): Set proper sloc reference for message on missing
38400         actual.
38401
38402 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38403
38404         * Makefile.in: Add FreeBSD libgnat pairs.
38405
38406         * usage.adb: Fix typo in usage message.
38407
38408 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38409
38410         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38411         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38412         pragma Thread_Body.
38413         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38414
38415         * s-thread.adb: This file is now a dummy implementation of
38416         System.Thread.
38417
38418 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38419
38420         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38421
38422 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38423
38424         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38425         instanciation references in the parent type description.
38426
38427 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38428
38429         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38430
38431         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38432         TYPE_PRECISION directly from esize.
38433
38434 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38435
38436         * cstreams.c:
38437         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38438
38439         * init.c: Initialization routines for FreeBSD
38440
38441         * link.c: Link info for FreeBSD
38442
38443         * sysdep.c: Add the case of FreeBSD
38444
38445 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38446
38447         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38448         already called in System.Threads.
38449
38450         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38451         environment task, as it has been moved to System.Threads.Initialization.
38452
38453 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38454
38455         * adaint.c (__gnatlib_install_locks): Only reference
38456         __gnat_install_locks on VMS, since other platforms can avoid using
38457         --enable-threads=gnat
38458
38459 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38460
38461         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38462
38463         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38464         TYPE_PACKED_ARRAY_TYPE_P.
38465         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38466
38467         Part of PR ada/12806
38468         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38469         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38470
38471 2003-11-17  Vincent Celier  <celier@gnat.com>
38472
38473         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38474         to False.
38475         Do not set exit status to Failure when Warning is True.
38476         (Gnatchop): Make errors "no compilation units found" and
38477         "no source files written" warnings only.
38478
38479         * make.adb (Gnatmake): When using a project file, set
38480         Look_In_Primary_Dir to False.
38481         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38482         and Local_Configuration_Pragmas in the project where they are declared
38483         not an extending project which might have inherited them.
38484
38485         * osint.adb (Locate_File): If Name is already an absolute path, do not
38486         look for a directory.
38487
38488         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38489         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38490
38491         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38492         in objects of type Variable_Value.
38493
38494         * prj.ads: (Variable_Value): New component Project
38495
38496         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38497         is in a project extended by Project.
38498
38499         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38500         Project of Variable_Values to this new parameter value.
38501         (Expression): Set component Project of Variable_Values.
38502         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38503         Set the component Project in array elements.
38504
38505 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38506
38507         * errout.adb: (Initialize): Add initialization for error nodes.
38508
38509         * sem_ch12.adb (Initialize): Add missing initializations for
38510         Exchanged_Views and Hidden_Entities.
38511
38512 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38513
38514         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38515         already instantiated tree for use in subsequent inlining.
38516         (Analyze_Associations, Instantiate_Formal_Subprogram,
38517         Instantiate_Object): improve error message for mismatch in
38518         instantiations.
38519
38520         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38521         instantiations of subprograms declared in instances.
38522
38523 2003-11-17  Javier Miranda  <miranda@gnat.com>
38524
38525         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38526         executed only under the Extensions_Allowed flag.
38527
38528 2003-11-17  Robert Dewar  <dewar@gnat.com>
38529
38530         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38531         zeroes suppressed.
38532         (Address_Image): Fix bug of returning 0x instead of 0x0
38533         Minor reformatting (function specs).
38534
38535         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38536         (missed case of 33-63)
38537
38538         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38539
38540         * s-thread.adb: Add comments for pragma Restriction
38541
38542         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38543         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38544
38545 2003-11-17  Ed Falis  <falis@gnat.com>
38546
38547         * s-thread.adb: Added No_Tasking restriction for this implementation.
38548
38549 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38550
38551         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38552         instanciation references in the parent type description.
38553
38554 2003-11-17  GNAT Script  <nobody@gnat.com>
38555
38556         * Make-lang.in: Makefile automatically updated
38557
38558 2003-11-16  Jason Merrill  <jason@redhat.com>
38559
38560         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38561         and TAGS files that include them for each front end.
38562
38563 2003-11-14  Andreas Jaeger  <aj@suse.de>
38564
38565         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38566         is the canonical version.
38567         * misc.c (gnat_handle_option): Likewise.
38568
38569         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38570
38571         * 5nsystem.ads: New file for x86_64-linux-gnu.
38572
38573 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38574
38575         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38576
38577         * comperr.adb: Fix logic in previous change.
38578
38579 2003-11-13  Vincent Celier  <celier@gnat.com>
38580
38581         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38582         Osint.Include_Dir_Default_Prefix instead of
38583         Sdefault.Include_Dir_Default_Name.
38584
38585         * gnatlbr.adb: Update Copyright notice
38586         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38587         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38588         instead of Sdefault.Object_Dir_Default_Name
38589
38590         * gnatlink.adb:
38591         (Process_Binder_File): Never suppress the option following -Xlinker
38592
38593         * mdll-utl.adb:
38594         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38595         Sdefault.Object_Dir_Default_Name.
38596
38597         * osint.ads, osint.adb:
38598         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38599         Minor reformatting.
38600
38601         * vms_conv.ads: Minor reformating
38602         Remove GNAT STANDARD and GNAT PSTA
38603
38604         * vms_conv.adb:
38605         Allow GNAT MAKE to have several files on the command line.
38606         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38607         Sdefault.Object_Dir_Default_Name.
38608         Minor Reformating
38609         Remove data for GNAT STANDARD
38610
38611         * vms_data.ads:
38612         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38613         Remove data for GNAT STANDARD
38614         Remove options and documentation for -gnatwb/-gnatwB: these warning
38615         options no longer exist.
38616
38617 2003-11-13  Ed Falis  <falis@gnat.com>
38618
38619         * 5zthrini.adb: (Init_RTS): Made visible
38620
38621         * 5zthrini.adb:
38622         (Register): Removed unnecessary call to taskVarGet that checked whether
38623          an ATSD was already set as a task var for the argument thread.
38624
38625         * s-thread.adb:
38626         Updated comment to reflect that this is a VxWorks version
38627         Added context clause for System.Threads.Initialization
38628         Added call to System.Threads.Initialization.Init_RTS
38629
38630 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38631
38632         * 5zthrini.adb:
38633         (Init_RTS): New procedure, for the initialization of the run-time lib.
38634
38635         * s-thread.adb:
38636         Remove dependancy on System.Init, so that this file can be used in the
38637         AE653 sequential run-time lib.
38638
38639 2003-11-13  Robert Dewar  <dewar@gnat.com>
38640
38641         * bindgen.adb: Minor reformatting
38642
38643 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38644
38645         * checks.adb:
38646         (Apply_Discriminant_Check): Do no apply check if target type is derived
38647         from source type with no applicable constraint.
38648
38649         * lib-writ.adb:
38650         (Ensure_System_Dependency): Do not apply the style checks that may have
38651         been specified for the main unit.
38652
38653         * sem_ch8.adb:
38654         (Find_Selected_Component): Further improvement in error message, with
38655         RM reference.
38656
38657         * sem_res.adb:
38658         (Resolve): Handle properly the case of an illegal overloaded protected
38659         procedure.
38660
38661 2003-11-13  Javier Miranda  <miranda@gnat.com>
38662
38663         * exp_aggr.adb:
38664         (Has_Default_Init_Comps): New function to check the presence of
38665         default initialization in an aggregate.
38666         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38667         extension aggregate of a limited record. In addition, a new formal
38668         was added to do not initialize the record controller (if any) during
38669         this recursive expansion of ancestors.
38670         (Init_Controller): Add support for limited record components.
38671         (Expand_Record_Aggregate): In case of default initialized components
38672         convert the aggregate into a set of assignments.
38673
38674         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38675         describing the new syntax.
38676         Nothing else needed to be done because this subprogram delegates part of
38677         its work to P_Precord_Or_Array_Component_Association.
38678         (P_Record_Or_Array_Component_Association): Give support to the new
38679         syntax for default initialization of components.
38680
38681         * sem_aggr.adb:
38682         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38683         limited aggregates.
38684         (Resolve_Record_Aggregate): Give support to default initialized
38685         components.
38686         (Get_Value): In case of default initialized components, duplicate
38687         the corresponding default expression (from the record type
38688         declaration). In case of default initialization in the *others*
38689         choice, do not check that all components have the same type.
38690         (Resolve_Extension_Aggregate): Give support to limited extension
38691         aggregates.
38692
38693         * sem_ch3.adb:
38694         (Check_Initialization): Relax the strictness of the front-end in case
38695         of aggregate and extension aggregates. This test is now done in
38696         Get_Value in a per-component manner.
38697
38698         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38699         expression corresponds to a limited aggregate. This test is now done
38700         in Get_Value.
38701
38702         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38703         Box_Present flag.
38704
38705         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38706         present in an N_Component_Association node
38707
38708 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38709
38710         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38711         type-conformant entry only if they are homographs.
38712
38713 2003-11-13  GNAT Script  <nobody@gnat.com>
38714
38715         * Make-lang.in: Makefile automatically updated
38716
38717 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38718
38719         * adadecode.c: Use <> form of include for ctype.h.
38720         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38721
38722 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38723
38724         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38725         Works around PR middle-end/6552.
38726
38727 2003-11-10  Ed Falis  <falis@gnat.com>
38728
38729         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38730
38731         * 5zinit.adb: (Install_Handler): Moved back to spec
38732         (Install_Signal_Handlers): Deleted
38733
38734         * 5zthrini.adb: Added context clause for System.Storage_Elements
38735         (Register): Only handles creation of taskVar; initialization moved to
38736         Thread_Body_Enter.
38737         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38738         Added declaration of environment task secondary stack and
38739         initialization.
38740
38741         * s-thread.adb: Implement bodies for thread body processing
38742
38743         * s-thread.ads:
38744         Added comment identifying supported targets for pragma Thread_Body.
38745
38746 2003-11-10  Pascal Obry  <obry@gnat.com>
38747
38748         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38749         GNAT_MAX_PATH_LEN.
38750
38751         * s-fileio.adb:
38752         (Open): Properly check for string length before copying into the buffer.
38753         Raises Name_Error if buffer is too small. Note that this was a potential
38754         buffer overflow.
38755
38756 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38757
38758         * bindgen.adb, comperr.adb: Code clean ups.
38759         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38760
38761 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38762
38763         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38764
38765 2003-11-10  Vincent Celier  <celier@gnat.com>
38766
38767         * gprcmd.adb:
38768         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38769         installation.
38770
38771         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38772
38773         * prj.adb: (Project_Empty): Add new boolean component Virtual
38774
38775         * prj.ads: (Virtual_Prefix): New constant string
38776         (Project_Data): New boolean component Virtual
38777
38778         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38779         a library project is extended by a virtual extending project.
38780
38781         * prj-part.adb:
38782         Modifications throughout to implement extending-all project, including:
38783         (Virtual_Hash, Processed_Hash): New hash tables
38784         (Create_Virtual_Extending_Project): New procedure
38785         (Look_For_Virtual_Projects_For): New procedure
38786
38787         * prj-proc.adb:
38788         (Process): After checking the projects, if main project is an
38789         extending-all project, set the object directory of all virtual extending
38790         project to the object directory of the main project.
38791         Adjust error message when a virtual extending project has the same
38792         object directory as an project being extended.
38793         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38794         to True in the project data.
38795
38796         * prj-tree.adb:
38797         (Default_Project_Node): Add new boolean component Extending_All
38798         (Is_Extending_All): New function
38799         (Set_Is_Extending_All): New procedure
38800
38801         * prj-tree.ads: (Is_Extending_All): New function
38802         (Set_Is_Extending_All): New procedure
38803         (Project_Node_Record): New boolean component Extending_All
38804
38805         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38806
38807         * vms_data.ads:
38808         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38809
38810         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38811         "gprcmd prefix" to define it.
38812
38813 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38814
38815         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38816
38817         * lib-load.adb:
38818         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38819         created dummy package to Standard_Standard, not to itself, to
38820         defend other parts of the front-end against encoutering a cycle in
38821         the scope chain.
38822
38823         * sem_ch10.adb:
38824         (Analyze_With_Clause): When setting the entities for the successive
38825         N_Expanded_Names that constitute the name of a child unit, do not
38826         attempt to go further than Standard_Standard in the chain of scopes.
38827         This case arises from the placeholder units created by
38828         Create_Dummy_Package_Unit in the case of a with_clause for a
38829         nonexistent child unit.
38830
38831 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38832
38833         * exp_ch6.adb:
38834         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38835         declarations are given the proper scope.
38836
38837         * sem_ch13.adb:
38838         (Check_Expr_Constants): Reject an expression that contains a constant
38839         created during expansion, and that appears after the object to which
38840         the address clause applies.
38841
38842         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38843         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38844         that uses 'Range of a function call with controlled components, so
38845         that the function result can be finalized before starting the loop.
38846
38847         * sem_ch8.adb:
38848         (Find_Selected_Component): Improve error message when prefix is
38849         an implicit dereference of an incomplete type.
38850
38851 2003-11-10  Robert Dewar  <dewar@gnat.com>
38852
38853         * opt.ads: New Print_Standard flag for -gnatS switch
38854
38855         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38856
38857         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38858         switch set
38859
38860         * debug.adb: Update doc for -gnatds to discuss relationship with new
38861         -gnatS flag
38862
38863         * sinfo.adb: Add new field Entity_Or_Associated_Node
38864
38865         * sinfo.ads: Add new field Entity_Or_Associated_Node
38866         Update documentation for Associated_Node and Entity fields to clarify
38867         relationship and usage.
38868
38869         * sprint.adb:
38870         (Write_Id): Properly process Associated_Node field in generic template
38871
38872         * switch-c.adb:
38873         Recognize new -gnatS switch for printing package Standard
38874         This replaces gnatpsta
38875
38876         * usage.adb:
38877         Add line for  new -gnatS switch for printing package Standard
38878         This replaces gnatpsta
38879
38880 2003-11-10  Andreas Jaeger  <aj@suse.de>
38881
38882         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38883         integer.
38884
38885 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38886
38887         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38888         by gnat1.
38889
38890 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38891
38892         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38893         no longer needed.
38894
38895         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38896
38897         * sysdep.c: Add handling of cygwin.
38898
38899 2003-11-10  GNAT Script  <nobody@gnat.com>
38900
38901         * Make-lang.in: Makefile automatically updated
38902
38903 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38904
38905         PR 12950
38906         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38907         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38908         Replace GNAT_ROOT by GCC_ROOT.
38909
38910         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38911
38912 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38913
38914         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38915         and update for changed meaning of GET_MODE_BITSIZE.
38916
38917 2003-11-04  Doug Rupp  <rupp@gnat.com>
38918
38919         * sysdep.c: Problem discovered during IA64 VMS port.
38920         [VMS] #include <unixio.h> to get proper prototypes.
38921
38922         * adaint.c:
38923         Issues discovered/problems fixed during IA64 VMS port.
38924         [VMS] #define _POSIX_EXIT for proper semantics.
38925         [VMS] #include <unixio.h> for proper prototypes.
38926         [VMS] (fork): #define IA64 version.
38927         (__gnat_os_exit): Remove unnecessary VMS specific code.
38928
38929 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38930
38931         Part of PR ada/12806
38932         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38933         tree, not integer.
38934
38935         * decl.c:
38936         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38937         not integer.
38938
38939         * targtyps.c, decl.c, misc.c,
38940         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38941         routines to work around change in FP sizing semantics in GCC.
38942
38943         * utils.c:
38944         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38945
38946         * gigi.h: (enumerate_modes): New function.
38947
38948         * Make-lang.in: (ada/misc.o): Add real.h.
38949
38950         * misc.c: (enumerate_modes): New function.
38951
38952 2003-11-04  Robert Dewar  <dewar@gnat.com>
38953
38954         * 3vtrasym.adb: Minor reformatting
38955         Use terminology encoded/decoded name, rather than C++ specific notion
38956         of mangling (this is the terminology used throughout GNAT).
38957
38958         * einfo.h: Regenerated
38959
38960         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38961
38962         * exp_ch6.adb:
38963         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38964
38965         * par-prag.adb: Add dummy entry for Thread_Body pragma
38966
38967         * rtsfind.ads:
38968         Add entries for System.Threads entities for thread body processing
38969
38970         * sem_attr.adb:
38971         (Analyze_Pragma, Access attributes): Check these are not applied to a
38972         thread body, since this is not permitted
38973
38974         * sem_prag.adb: Add processing for Thread_Body pragma.
38975         Minor comment fix.
38976
38977         * sem_res.adb:
38978         (Resolve_Call): Check for incorrect attempt to call a thread body
38979          procedure with a direct call.
38980
38981         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38982         Add names associated with thread body expansion
38983
38984         * snames.h: Add entry for Thread_Body pragma
38985
38986         * s-thread.adb: Add entries for thread body processing
38987         These are dummy bodies so far
38988
38989         * s-thread.ads: Add documentation on thread body handling.
38990         Add entries for thread body processing.
38991
38992 2003-11-04  Javier Miranda  <miranda@gnat.com>
38993
38994         * sem_ch10.adb:
38995         (Build_Limited_Views): Return after posting an error in case of limited
38996         with_clause on subprograms, generics, instances or generic renamings
38997         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38998         on subprograms, generics, instances or generic renamings
38999
39000 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
39001
39002         * raise.c (setup_to_install): Correct mistake in last revision; two
39003         arguments out of order.
39004
39005         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39006         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39007         notice, missed in previous change.
39008         Remove trailing blanks and other style errors introduced in previous
39009         change.
39010
39011 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
39012
39013         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39014         rid of the wrapper for a LJM type, ensuring we don't do that if the
39015         field is addressable.  This avoids potential low level type view
39016         mismatches later on, for instance in a by-reference argument passing
39017         process.
39018
39019 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39020
39021         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39022         aligned at byte boundary.
39023
39024 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
39025
39026         * decl.c (components_to_record): Do not delete the empty variants from
39027         the end of the union type.
39028
39029 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
39030
39031         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39032         operation for a derived type, an explicit declaration may use a local
39033         subtype of Boolean.
39034
39035 2003-11-04  Vincent Celier  <celier@gnat.com>
39036
39037         * make.adb (Gnatmake): Allow main sources on the command line with a
39038         library project when it is only for compilation (no binding or
39039         linking).
39040
39041 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39042
39043         * Makefile.in: Remove many duplicate variables.
39044
39045 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
39046
39047         * Make-lang.in (dvi): Move targets to $(docobjdir).
39048         (gnat_ug_vms.dvi): Simplify rule and adjust target.
39049         (gnat_ug_wnt.dvi): Likewise.
39050         (gnat_ug_unx.dvi): Likewise.
39051         (gnat_ug_vxw.dvi): Likewise.
39052         (gnat_rm.dvi): Likewise.
39053         (gnat-style.dvi): Likewise.
39054
39055 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
39056
39057         * gigi.h: Missed commit from update for C90.
39058
39059 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
39060
39061         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39062
39063 2003-10-31  Andreas Schwab  <schwab@suse.de>
39064
39065         * raise.c (get_action_description_for): Fix typo in last change.
39066
39067 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
39068
39069         PR ada/12761
39070         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39071         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39072
39073 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
39074
39075         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39076         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39077         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39078         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39079         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39080
39081 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
39082
39083         * 3vtrasym.adb:
39084         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39085         numbers when symbol name is too long.
39086
39087 2003-10-30  Ed Falis  <falis@gnat.com>
39088
39089         * g-signal.ads, g-signal.adb: New files
39090
39091         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39092
39093         * Makefile.rtl: Introduce GNAT.Signals
39094
39095 2003-10-30  Robert Dewar  <dewar@gnat.com>
39096
39097         * freeze.adb: Minor reformatting
39098
39099         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39100
39101         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39102         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39103         New handling of Id_Check parameter to improve recognition of keywords
39104         used as identifiers.
39105         Update copyright notice to include 2003
39106
39107 2003-10-29  Robert Dewar  <dewar@gnat.com>
39108
39109         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39110         sem_ch10.adb: Minor reformatting
39111
39112         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39113         (Expand_Assign_Record): Test right hand side for bit unaligned as well
39114
39115 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
39116
39117         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39118         Support for TBK$SYMBOLIZE-based symbolic traceback.
39119
39120 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
39121
39122         * exp_disp.adb:
39123         Revert previous change, that did not work well when pragma No_Run_Time
39124         was used in conjunction with a run-time other than ZFP.
39125
39126 2003-10-29  Vincent Celier  <celier@gnat.com>
39127
39128         * make.adb:
39129         (Gnatmake): When there are no Ada mains in attribute Main, disable the
39130          bind and link steps only is switch -z is not used.
39131
39132 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
39133
39134         * Makefile.generic: Remove duplicated setting of CC.
39135
39136         * Makefile.prolog: Set CC to gcc by default, to override make's
39137         default (cc).
39138
39139         * einfo.h: Regenerated.
39140
39141 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
39142
39143         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39144         current body, after compiling subunit.
39145
39146         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39147         when in deleted code, because gigi needs properly ordered freeze
39148         actions to annotate types.
39149
39150         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39151         prevent the premature freezing of record type that contains
39152         subcomponents with a private type that does not yet have a completion.
39153
39154 2003-10-29  Javier Miranda  <miranda@gnat.com>
39155
39156         * sem_ch12.adb:
39157         (Analyze_Package_Instantiation): Check that instances can not be used in
39158         limited with_clauses.
39159
39160         * sem_ch8.adb:
39161         (Analyze_Package_Renaming): Check that limited withed packages cannot
39162         be renamed. Improve text on error messages related to limited
39163         with_clauses.
39164
39165         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39166
39167         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39168         Update copyright notice.
39169
39170         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39171         (Install_Limited_Context_Clauses): New subprogram that isolates all the
39172         checks required for limited context_clauses and installs the limited
39173         view.
39174         (Install_Limited_Withed_Unit): Complete its documentation.
39175         (Analyze_Context): Check that limited with_clauses are only allowed in
39176         package specs.
39177         (Install_Context): Call Install_Limited_Context_Clauses after the
39178         parents have been installed.
39179         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39180         package as 'From_With_Type'; this mark indicates that the limited view
39181         is installed. Used to check bad usages of limited with_clauses.
39182         (Build_Limited_Views): Do not add shadow entities to the scope's list
39183         of entities. Do not add real entities to the Non_Limited_Views chain.
39184         Improve error notification.
39185         (Remove_Context_Clauses): Remove context clauses in two phases:
39186         limited views first and regular views later (to maintain the
39187         stack model).
39188         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39189         its visible entities.
39190
39191 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
39192
39193         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39194         with any type that Is_Fixed_Point_Type.
39195
39196         * sinfo.ads: Fix documentation for Associated_Node attribute.
39197
39198 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
39199
39200         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39201         both '-gnatc' and '-gnatt' are specified.
39202
39203         * atree.adb (Initialize): Add initialization for Node_Count (set to
39204         zero).
39205
39206 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39207
39208         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39209         do not consider as Pure.
39210
39211         Part of implementation of function-at-a-time:
39212
39213         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39214         (tree_transform): Add new argument to build_component_ref.
39215         (tree_transform, case N_Assignment_Statement): Make and return an
39216         EXPR_STMT.
39217         (tree_transform): If result IS_STMT, set flags and return it.
39218         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39219
39220         * utils2.c (build_simple_component_ref, build_component_ref): Add new
39221         arg, NO_FOLD_P.
39222         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39223         (build_allocator): Likewise.
39224
39225         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39226         Add new arg to build_component_ref.
39227         (maybe_unconstrained_array, unchecked_convert): Likewise.
39228
39229         * ada-tree.def (EXPR_STMT): New code.
39230
39231         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39232
39233         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39234         build_component_ref calls.
39235
39236         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39237
39238         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39239         (build_component_ref): Add new argument, NO_FOLD_P.
39240
39241 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
39242
39243         * Makefile.generic: Add missing substitution on object_deps handling.
39244
39245         PR ada/5909
39246         * Make-lang.in (check-ada): Enable ACATS test suite.
39247
39248 2003-10-27  Robert Dewar  <dewar@gnat.com>
39249
39250         * exp_ch3.adb:
39251         (Freeze_Array_Type): We do not need an initialization routine for types
39252         derived from String or Wide_String. They should be treated the same
39253         as String and Wide_String themselves. This caused problems with the
39254         use of Initialize_Scalars.
39255
39256         * exp_ch5.adb:
39257         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39258         composites. This allows use of component clauses that are not byte
39259         aligned.
39260
39261         * sem_prag.adb:
39262         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39263         is an attempt to pack an array of atomic objects.
39264
39265         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39266
39267 2003-10-27  Pascal Obry  <obry@gnat.com>
39268
39269         * g-dirope.adb:
39270         (Basename): Check for drive letters in a pathname only on DOS based OS.
39271
39272 2003-10-27  Vincent Celier  <celier@gnat.com>
39273
39274         * make.adb:
39275         (Gnatmake): When unable to change dir to the object dir, display the
39276         content of the parent dir of the obj dir, to try to understand why this
39277         happens.
39278
39279 2003-10-27  GNAT Script  <nobody@gnat.com>
39280
39281         * Make-lang.in: Makefile automatically updated
39282
39283 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
39284
39285         * sem_ch12.adb:
39286         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39287         should not be done in Save/Restore_Scope_Stack, because it is performed
39288         locally.
39289
39290         * sem_ch8.adb:
39291         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39292         whether use clauses should be removed/restored.
39293
39294         * sem_ch8.ads:
39295         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39296         whether use clauses should be removed/restored.
39297
39298 2003-10-26  Andreas Jaeger  <aj@suse.de>
39299
39300         * Makefile.in: Remove duplicated lines.
39301
39302 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39303
39304         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39305         minimize the differences with ACT tree.
39306
39307         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39308         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39309         Gnatvsn.Gnat_Static_Version_String to reduce differences between
39310         ACT and FSF trees.
39311
39312 2003-10-24  Pascal Obry  <obry@gnat.com>
39313
39314         PR ada/12014
39315         * adadecode.c (ostrcpy): New function.
39316         (__gnat_decode): Use ostrcpy of strcpy.
39317         (has_prefix): Set first parameter a const.
39318         (has_suffix): Set first parameter a const.
39319         Update copyright notice. Fix source name in header.
39320         Removes a trailing space.
39321
39322 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
39323
39324         * exp_disp.adb:
39325         Remove the test against being in No_Run_Time_Mode before generating a
39326         call to Register_Tag. It is redundant with the test against the
39327         availability of the function Register_Tag.
39328
39329 2003-10-24  Vincent Celier  <celier@gnat.com>
39330
39331         * g-catiio.adb: (Month_Name): Correct spelling of February
39332
39333         * make.adb: (Mains): New package
39334         (Initialize): Call Mains.Delete
39335         (Gnatmake): Check that each main on the command line is a source of a
39336         project file and, if there are several mains, each of them is a source
39337         of the same project file.
39338         (Gnatmake): When a foreign language is specified in attribute Languages,
39339         no main is specified on the command line and attribute Mains is not
39340         empty, only build the Ada main. If there is no Ada main, just compile
39341         the Ada sources and their closure.
39342         (Gnatmake): If a main is specified on the command line with directory
39343         information, check that the source exists and, if it does, that the path
39344         is the actual path of a source of a project.
39345
39346         * prj-env.adb:
39347         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39348         Full_Path is True, return the full path instead of the simple file name.
39349         (Project_Of): New function
39350
39351         * prj-env.ads:
39352         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39353         defaulted to False.
39354         (Project_Of): New function
39355
39356 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39357
39358         * Makefile.generic:
39359         Ensure objects of main project are always checked and rebuilt if needed.
39360         Set CC to gcc by default.
39361         Prepare new handling of link by creating a global archive (not activated
39362         yet).
39363
39364         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39365         stringt.h: Update copyright notice. Remove trailing blanks.
39366         Fix source name in header.
39367
39368 2003-10-24  Robert Dewar  <dewar@gnat.com>
39369
39370         * sem_ch12.adb: Minor reformatting
39371
39372         * sem_ch3.adb:
39373         Minor reformatting (including new function return style throughout)
39374
39375         * sem_ch3.ads:
39376         Minor reformatting (including new function return style throughout)
39377
39378 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39379
39380         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39381         stringt.h: Update copyright notice. Remove trailing blanks.
39382         Fix source name in header.
39383
39384 2003-10-24  GNAT Script  <nobody@gnat.com>
39385
39386         * Make-lang.in: Makefile automatically updated
39387
39388 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39389
39390         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39391         stringt.h: Convert to ISO C90 declarations and definitions.
39392
39393 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39394
39395         PR ada/11978
39396         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39397         External_Tag attribute definition clauses.
39398
39399 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39400
39401         PR ada/7613
39402         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39403         child unit, generate a fully qualified name to avoid spurious errors
39404         when the context contains renamings of different child units with
39405         the same simple name.
39406
39407         * exp_dbug.ads: Add documentation on name qualification for renamings
39408         of child units.
39409
39410 2003-10-23  Robert Dewar  <dewar@gnat.com>
39411
39412         * g-regpat.ads, g-regpat.adb: Minor reformatting
39413
39414 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39415
39416         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39417
39418 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39419
39420         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39421         Machine call.
39422
39423         * urealp.h: (Machine): Update to proper definition.
39424
39425 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39426
39427         * init.c, adaint.c: Minor reformatting.
39428
39429 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39430
39431         * adaint.c (w32_epoch_offset): Define static const at file level.
39432         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39433         rather than t_create, t_access in call to GetFileTime. Use union
39434         to convert between FILETIME and  unsigned long long.
39435         (__gnat_file_time_name): Test for invalid file handle.
39436         (__gnat_set_filetime_name): Support win32 targets using
39437         w32api SetFileTime.
39438
39439 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39440
39441         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39442
39443         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39444
39445         * decl.c (creat_concat_name):  Const-ify prefix.
39446
39447         * adaint.c: Include ctype.h if __MINGW32__.
39448         (__gnat_readlink): Mark arguments as possibly unused.
39449         (__gnat_symlink): Likewise.
39450         (__gnat_is_symbolic_link): Likewise.
39451         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39452         declaration
39453         (__gnat_file_time_name): Don't declare struct stat statbuf when
39454         not needed.
39455         (__gnat_is_absolute_path): Add parenthesis around condition of
39456         'if' statement to avoid warning.
39457         (__gnat_plist_init): Specify void as parameter.
39458         (plist_enter): Likewise.
39459         (plist_leave): Likewise.
39460         (remove_handle): Make static. Initialize prev.
39461
39462 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39463
39464         PR ada/10110
39465         * Makefile.in: Disable build of gnatpsta.
39466         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39467         of previous change.
39468
39469 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39470
39471         * tracebak.c (MAX): Avoid redefinition warning.
39472
39473         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39474         Change msg to const char *.
39475         (__gnat_install_handler): Remove ss, unused.
39476         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39477         to const char *.
39478         * cstreams.c (__gnat_full_name): Declare p only when used.
39479         (__gnat_full_name) [sgi] Return buffer.
39480
39481 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39482
39483         * mingw32.h: New file.
39484         * gnat_wrapper.adb: New file.
39485
39486 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39487
39488         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39489         string match a pre compiled regular expression (the corresponding
39490         version of the function working on a raw regular expression)
39491         Fix typos in various comments
39492         Update copyright notice in spec
39493
39494 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39495
39496         * exp_ch3.adb:
39497         (Component_Needs_Simple_Initialization): Return False when the type is a
39498         packed bit array. Revise spec comments to document this case.
39499
39500         * exp_prag.adb:
39501         (Expand_Pragma_Import): Set any expression on the imported object to
39502         empty to avoid initializing imported objects (in particular this
39503         covers the case of zero-initialization of bit arrays).
39504         Update copyright notice.
39505
39506 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39507
39508         * sem_ch12.adb:
39509         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39510         a subunit is missing.
39511         (Instantiate_Subprogram_Body): If body of function is missing, set type
39512         of return expression explicitly in dummy body, to prevent cascaded
39513         errors when a subunit is missing.
39514         Fixes PR 5677.
39515
39516         * sem_ch3.adb:
39517         (Access_Subprogram_Declaration): Verify that return type is valid.
39518         Fixes PR 8693.
39519
39520         * sem_elab.adb:
39521         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39522         generic.
39523         Fixes PR 12318.
39524
39525         * sem_util.adb:
39526         (Corresponding_Discriminant): If the scope of the discriminant is a
39527         private type without discriminant, use its full view.
39528         Fixes PR 8247.
39529
39530 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39531
39532         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39533         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39534         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39535         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39536         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39537         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39538         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39539         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39540         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39541         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39542         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39543         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39544         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39545         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39546         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39547         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39548         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39549         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39550         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39551         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39552         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39553         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39554         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39555         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39556         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39557         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39558         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39559         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39560         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39561         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39562         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39563         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39564         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39565         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39566         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39567         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39568         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39569         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39570         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39571         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39572         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39573         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39574         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39575         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39576         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39577         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39578         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39579         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39580         vms_conv.ads, vms_conv.adb, vms_data.ads,
39581         vxaddr2line.adb: Files added. Merge with ACT tree.
39582
39583         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39584         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39585         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39586         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39587         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39588         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39589         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39590         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39591         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39592         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39593
39594         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39595         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39596         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39597         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39598         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39599         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39600         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39601         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39602         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39603         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39604         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39605         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39606         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39607         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39608         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39609         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39610         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39611         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39612         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39613         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39614         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39615         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39616         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39617         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39618         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39619         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39620         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39621         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39622         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39623         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39624         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39625         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39626         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39627         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39628         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39629         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39630         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39631         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39632         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39633         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39634         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39635         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39636         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39637         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39638         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39639         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39640         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39641         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39642         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39643         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39644         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39645         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39646         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39647         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39648         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39649         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39650         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39651         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39652         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39653         checks.adb, checks.ads, cio.c, comperr.adb,
39654         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39655         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39656         einfo.adb, einfo.ads, errout.adb, errout.ads,
39657         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39658         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39659         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39660         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39661         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39662         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39663         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39664         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39665         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39666         fe.h, fmap.adb, fmap.ads, fname.adb,
39667         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39668         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39669         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39670         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39671         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39672         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39673         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39674         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39675         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39676         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39677         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39678         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39679         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39680         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39681         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39682         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39683         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39684         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39685         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39686         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39687         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39688         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39689         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39690         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39691         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39692         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39693         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39694         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39695         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39696         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39697         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39698         layout.adb, lib.adb, lib.ads, lib-list.adb,
39699         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39700         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39701         link.c, live.adb, make.adb, make.ads,
39702         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39703         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39704         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39705         misc.c, mkdir.c, mlib.adb, mlib.ads,
39706         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39707         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39708         namet.adb, namet.ads, namet.h, nlists.ads,
39709         nlists.h, nmake.adt, opt.adb, opt.ads,
39710         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39711         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39712         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39713         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39714         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39715         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39716         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39717         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39718         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39719         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39720         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39721         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39722         prj-util.adb, prj-util.ads, raise.c, raise.h,
39723         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39724         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39725         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39726         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39727         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39728         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39729         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39730         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39731         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39732         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39733         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39734         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39735         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39736         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39737         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39738         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39739         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39740         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39741         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39742         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39743         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39744         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39745         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39746         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39747         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39748         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39749         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39750         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39751         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39752         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39753         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39754         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39755         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39756         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39757         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39758         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39759         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39760         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39761         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39762         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39763         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39764         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39765         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39766         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39767         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39768         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39769         stringt.adb, stringt.ads, stringt.h, style.ads,
39770         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39771         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39772         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39773         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39774         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39775         table.adb, table.ads, targparm.adb, targparm.ads,
39776         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39777         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39778         ttypes.ads, types.ads, types.h, uintp.adb,
39779         uintp.ads, uintp.h, uname.adb, urealp.adb,
39780         urealp.ads, urealp.h, usage.adb, utils2.c,
39781         utils.c, validsw.adb, validsw.ads, widechar.adb,
39782         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39783         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39784         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39785         gnatvsn.ads: Merge with ACT tree.
39786
39787         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39788
39789 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39790
39791         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39792         (gnat_ug_vmx.info): Likewise.
39793         (gnat_ug_vxw.info): Likewise.
39794         (gnat_ug_wnt.info): Likewise.
39795         (gnat_rm.info): Likewise.
39796         (gnat-style.info): Likewise.
39797
39798         * Make-lang.in (ada.install-info): Remove target.
39799         (info): New target.
39800         (install-info): Likewise.
39801         (gnat_ug_unx.info): Simplify rule.
39802         (gnat_ug_vmx.info): Likewise.
39803         (gnat_ug_vxw.info): Likewise.
39804         (gnat_ug_wnt.info): Likewise.
39805         (gnat_rm.info): Likewise.
39806         (gnat-style.info): Likewise.
39807
39808 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39809
39810         * Make-lang.in: Replace uses of $(target_alias) with
39811         $(target_noncanonical).
39812         * ada/Makefile.in: Remove unused mention of $(target_alias).
39813
39814 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39815
39816         * Make-lang.in (ada.info): Replace with ...
39817         (info): ... this.
39818         (ada.dvi): Replace with ...
39819         (dvi): ... this.
39820
39821 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39822
39823         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39824         initialize dconstp5 and dconstmp5.
39825
39826 2003-09-28  Richard Henderson  <rth@redhat.com>
39827
39828         * trans.c (tree_transform): Update call to expand_asm_operands.
39829
39830 2003-09-21  Richard Henderson  <rth@redhat.com>
39831
39832         * trans.c, utils.c: Revert.
39833
39834 2003-09-21  Richard Henderson  <rth@redhat.com>
39835
39836         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39837         change to const.
39838
39839 2003-09-04  Michael Matz  <matz@suse.de>
39840
39841         * misc.c: Include "target.h".
39842         * Make-lang.in (misc.o): Add dependency on target.h.
39843
39844 2003-09-03  DJ Delorie  <dj@redhat.com>
39845
39846         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39847         hook.
39848
39849 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39850
39851         * Makefile.in: Update substitutions to match changes to
39852         configure.  Use include directives instead of @-insertions
39853         to read in host and target fragments.  Add a rule to
39854         regenerate ada/Makefile.
39855
39856 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39857
39858         * lang-options.h: Remove.
39859         * lang.opt: Add help text.
39860
39861 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39862
39863         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39864         calls.
39865
39866 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39867
39868         * misc.c (gnat_handle_option): Don't handle filenames.
39869
39870 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39871
39872         * Make-lang.in: Replace PWD with PWD_COMMAND.
39873         * Makefile.adalib: Likewise.
39874         * Makefile.in: Likewise.
39875
39876 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39877
39878         * misc.c (gnat_argv): Revert last change.
39879         (gnat_handle_option, gnat_init_options): Copy arguments.
39880
39881 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39882
39883         * misc.c (gnat_argv): Make const.
39884
39885 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39886
39887         * misc.c (save_argc, save_argv): Keep non-static!
39888
39889 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39890
39891         * misc.c (save_argc, save_argv): Make static.
39892         (gnat_init_options): New prototype.
39893         (gnat_init_options): Update.
39894
39895 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39896
39897         * gnat_ug.texi: Remove unlikely characters from @vars.
39898         * gnat_ug_vms.texi: Regenerate.
39899
39900 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39901
39902         * misc.c (record_code_position): Adjust emit_note call.
39903
39904 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39905
39906         * misc.c (gnat_handle_option): Don't check for missing arguments.
39907
39908 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39909
39910         * utils.c (end_subprog_body): Adjust expand_function_end call.
39911
39912 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39913
39914         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39915         Bind_Main_Program.
39916
39917 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39918
39919         * lang.opt: Declare Ada.
39920         * misc.c (gnat_init_options): Update.
39921
39922 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39923
39924         * utils.c (begin_subprog_body): Adjust init_function_start call.
39925
39926 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39927
39928         * Make-lang.in: Update to use options.c and options.h.
39929         * misc.c: Include options.h not aoptions.h.
39930         (gnat_handle_option): Abort on unrecognized switch.
39931         (gnat_init_options): Request Ada switches.
39932
39933 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39934
39935         * lang.opt: Add -Wall.
39936         * misc.c (gnat_handle_option): Handle it.
39937
39938 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39939
39940         * misc.c (gnat_handle_option): Fix warnings.
39941
39942 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39943
39944         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39945
39946 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39947
39948         * Make-lang.in: Update to handle command-line options.
39949         * lang.opt: New file.
39950         * misc.c: Include aoptions.h.
39951         (cl_options_count, cl_options): Remove.
39952         (gnat_handle_option): New.
39953         (gnat_decode_option): Remove.
39954         (LANG_HOOKS_DECODE_OPTION): Remove.
39955         (LANG_HOOKS_HANDLE_OPTION): Override.
39956
39957 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39958
39959         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39960
39961 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39962
39963         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39964         substitution.
39965
39966 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39967
39968         * Make-lang.in: Update.
39969         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39970
39971 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39972
39973         * misc.c (gnat_init_options): Update.
39974
39975 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39976
39977         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39978         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39979         __attribute__ ((__unused__)).
39980
39981 2003-06-05  Jan Hubicka  <jh@suse.cz>
39982
39983         * Make-lang.in:  Add support for stageprofile and stagefeedback
39984
39985 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39986
39987         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39988         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39989
39990 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
39991
39992         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39993         Remove non-VMS directive.
39994         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39995         alternatives.
39996         (Examples of gnatls Usage): Remove VMS alternative.
39997
39998 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
39999
40000         PR ada/9953
40001         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40002         and turn ZCX_By_Default back to False since the underlying support
40003         is not quite there yet.
40004
40005 2003-06-01  Andreas Jaeger  <aj@suse.de>
40006
40007         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40008         and ROUND_TYPE_SIZE_UNIT.
40009
40010 2003-05-22   Geert Bosch  <bosch@gnat.com>
40011
40012         * gnat_rm.texi : Remove reference to Ada Core Technologies.
40013
40014 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
40015
40016         * trans.c (tree_transform): Use location_t and input_location
40017         directly.
40018         (build_unit_elab): Likewise.
40019         * utils.c (create_label_decl): Likewise.
40020
40021 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
40022
40023         * trans.c (tree_transform, build_unit_elab,
40024         set_lineno): Rename lineno to input_line.
40025         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40026         end_subprog_body): Likewise.
40027         * utils2.c (build_call_raise): Likewise.
40028
40029 2003-05-01  Laurent Guerby  <guerby@acm.org>
40030
40031         PR ada/10546
40032         * 5iosinte.ads: Increase pthread_cond_t size to match recent
40033         LinuxThread and NPTL version, merge from ACT.
40034
40035 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
40036
40037         * utils.c (convert): No need to clear TREE_CST_RTL.
40038
40039 2003-04-23   Geert Bosch  <bosch@gnat.com>
40040
40041         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40042         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40043         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40044         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40045         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40046         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40047         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40048         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40049         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40050         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40051         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40052         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40053         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40054         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40055         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40056         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40057         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40058         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40059         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40060         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40061         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40062         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40063         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40064         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40065         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40066         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40067         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40068         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40069         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40070         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40071         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40072         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40073         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40074         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40075         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40076         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40077         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40078         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40079         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40080         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40081         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40082         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40083         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40084         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40085         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40086         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40087         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40088         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40089         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40090         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40091         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40092         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40093         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40094         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40095         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40096         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40097         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40098         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40099         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40100         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40101         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40102         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40103         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40104         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40105         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40106         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40107         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40108         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40109         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40110         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40111         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40112         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40113         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40114         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40115         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40116         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40117         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40118         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40119         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40120         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40121         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40122         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40123         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40124         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40125         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40126         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40127         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40128         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40129         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40130         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40131         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40132         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40133         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40134         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40135         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40136         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40137         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40138         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40139         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40140         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40141         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40142         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40143         ali.adb, ali.ads, alloc.ads, argv.c,
40144         atree.adb, atree.ads, atree.h, aux-io.c,
40145         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40146         binde.adb, binde.ads, binderr.adb, binderr.ads,
40147         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40148         butil.adb, butil.ads, cal.c, calendar.ads,
40149         casing.adb, casing.ads, ceinfo.adb, checks.adb,
40150         checks.ads, cio.c, comperr.adb, comperr.ads,
40151         config-lang.in, csets.adb, csets.ads, csinfo.adb,
40152         cstand.adb, cstand.ads, cuintp.c, debug.adb,
40153         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40154         dec-io.ads, dec.ads, deftarg.c, directio.ads,
40155         einfo.adb, einfo.ads, elists.adb, elists.ads,
40156         elists.h, errno.c, errout.adb, errout.ads,
40157         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40158         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40159         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40160         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40161         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40162         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40163         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40164         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40165         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40166         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40167         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40168         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40169         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40170         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40171         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40172         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40173         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40174         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40175         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40176         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40177         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40178         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40179         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40180         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40181         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40182         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40183         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40184         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40185         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40186         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40187         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40188         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40189         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40190         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40191         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40192         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40193         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40194         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40195         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40196         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40197         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40198         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40199         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40200         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40201         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40202         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40203         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40204         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40205         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40206         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40207         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40208         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40209         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40210         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40211         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40212         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40213         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40214         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40215         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40216         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40217         lib.adb, lib.ads, live.adb, live.ads,
40218         machcode.ads, make.adb, make.ads, makeusg.adb,
40219         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40220         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40221         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40222         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40223         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40224         mlib.ads, namet.adb, namet.ads, nlists.adb,
40225         nlists.ads, opt.adb, opt.ads, osint-b.adb,
40226         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40227         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40228         osint.ads, output.adb, output.ads, par-ch10.adb,
40229         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40230         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40231         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40232         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40233         par-tchk.adb, par-util.adb, par.adb, par.ads,
40234         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40235         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40236         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40237         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40238         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40239         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40240         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40241         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40242         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40243         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40244         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40245         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40246         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40247         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40248         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40249         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40250         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40251         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40252         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40253         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40254         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40255         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40256         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40257         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40258         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40259         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40260         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40261         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40262         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40263         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40264         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40265         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40266         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40267         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40268         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40269         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40270         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40271         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40272         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40273         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40274         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40275         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40276         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40277         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40278         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40279         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40280         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40281         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40282         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40283         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40284         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40285         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40286         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40287         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40288         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40289         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40290         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40291         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40292         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40293         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40294         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40295         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40296         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40297         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40298         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40299         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40300         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40301         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40302         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40303         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40304         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40305         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40306         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40307         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40308         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40309         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40310         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40311         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40312         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40313         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40314         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40315         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40316         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40317         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40318         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40319         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40320         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40321         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40322         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40323         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40324         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40325         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40326         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40327         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40328         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40329         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40330         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40331         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40332         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40333         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40334         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40335         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40336         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40337         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40338         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40339         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40340         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40341         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40342         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40343         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40344         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40345         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40346         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40347         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40348         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40349         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40350         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40351         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40352         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40353         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40354         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40355         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40356         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40357         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40358         snames.ads, sprint.adb, sprint.ads, stand.adb,
40359         stand.ads, stringt.adb, stringt.ads, style.adb,
40360         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40361         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40362         switch-m.ads, switch.adb, switch.ads, system.ads,
40363         table.adb, table.ads, targparm.adb, targparm.ads,
40364         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40365         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40366         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40367         ttypef.ads, ttypes.ads, types.adb, types.ads,
40368         uintp.adb, uintp.ads, uname.adb, uname.ads,
40369         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40370         usage.adb, usage.ads, validsw.adb, validsw.ads,
40371         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40372         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40373         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40374         formatting and other trivial changes from ACT.
40375
40376 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40377
40378         * gigi.h, utils2.c (build_constructor):
40379         Rename gnat_build_constructor. Use build_constructor.
40380         * decl.c (gnat_to_gnu_entity)
40381         * trans.c (tree_transform, pos_to_constructor, extract_values)
40382         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40383         (unchecked_convert)
40384         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40385         (fill_vms_descriptor):
40386         Update to match.
40387
40388 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40389
40390         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40391         * misc.c (gnat_tree_size): New function.
40392         (LANG_HOOKS_TREE_SIZE): Override.
40393
40394 2003-04-03  Jason Merrill  <jason@redhat.com>
40395
40396         * misc.c (gnat_adjust_rli): #if 0.
40397
40398 2003-03-31   Geert Bosch  <bosch@gnat.com>
40399
40400         PR ada/10020
40401         * link.c : Fix misspelled "const" keyword
40402
40403 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40404
40405         PR c++/7086
40406         * utils2.c: Adjust calls to put_var_into_stack.
40407
40408 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40409
40410         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40411
40412 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40413
40414         * misc.c (gnat_init): Update for new prototype.
40415
40416 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40417
40418         ada/9961
40419         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40420         warning, and fix return type for the IN_RTS && !SJLJ case.
40421
40422 2003-03-04  Tom Tromey  <tromey@redhat.com>
40423
40424         * Make-lang.in (ada.tags): New target.
40425
40426 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40427
40428         ada/9911
40429         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40430         wrapper, which name remains constant whatever underlying GCC
40431         scheme.
40432
40433         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40434         the stable interface needed for a-except.
40435
40436 2003-03-02  Andreas Jaeger  <aj@suse.de>
40437
40438         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40439         gnat_ug_wnt.texi: Regenerate.
40440
40441 2003-03-02  Laurent Guerby  <guerby@acm.org>
40442
40443         * Makefile.in (install-gnatlib): Match previous change there
40444         so it works.
40445
40446 2003-02-28  Andreas Schwab  <schwab@suse.de>
40447
40448         * Make-lang.in (install-gnatlib): Change to ada directory before
40449         running make instead of using ada/Makefile directly.
40450
40451 2003-02-18  Ben Elliston  <bje@redhat.com>
40452
40453         Part of PR ada/9406
40454         * gnat_ug.texi (Binder output file): Grammar fix.
40455
40456 2003-02-18  Ben Elliston  <bje@redhat.com>
40457
40458         PR other/7350
40459         * 5qtaprop.adb (Sleep): Fix typo in comment.
40460
40461 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40462
40463         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40464         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40465         gnat_ug_wnt.texi: Regenerate.
40466
40467 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40468
40469         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40470         be created if necessary.
40471         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40472         if necessary.  Remove erroneous and redundant gnatchop
40473         installation commands.  Test for gnatdll before attempting
40474         to install it.
40475         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40476         and gnatdll from all plausible locations.
40477
40478 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40479
40480         * utils2.c (build_unary_op): Don't check flag_volatile.
40481         * gnat_ug.texi: Remove -fvolatile from example.
40482         * gnat_ug_vxw.texi: Likewise.
40483
40484 2003-01-29  Laurent Guerby  <guerby@acm.org>
40485
40486         PR ada/8344
40487         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40488         * Makefile.in: match previous change.
40489         * Make-lang.in: match previous change.
40490
40491 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40492
40493         * 5rosinte.ads: Add SIGXCPU.
40494         * 5rtpopsp.adb: New file.
40495         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40496         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40497         specific file 5rtpopsp.adb.
40498         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40499         is likely needed for all newlib targets.
40500         * init.c: Add RTEMS specific version of __gnat_initialize().
40501
40502 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40503
40504         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40505
40506 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40507
40508         * init.c (__gnat_error_handler): Make msg const.
40509
40510         * gmem.c (convert_addresses): Move declaration ...
40511         * adaint.h: ... here.
40512         * adaint.c (convert_addresses): Adapt addrs type to match
40513         prototype.
40514
40515         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40516
40517 2003-01-24  Andreas Schwab  <schwab@suse.de>
40518
40519         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40520         size_t to avoid warning.
40521
40522 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40523
40524         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40525
40526 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40527
40528         * gnat_rm.texi: Remove RCS version number.
40529
40530         * ada-tree.h (union lang_tree_node): Add chain_next option.
40531
40532 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40533
40534         * Make-lang.in (ada.install-info, ada.install-common,
40535         ada.uninstall): Prepend $(DESTDIR) to the destination
40536         directory in all (un)installation commands.
40537         * Makefile.in (install-gnatlib, install-rts): Ditto.
40538
40539 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40540
40541         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40542         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40543         gnat_ug_wnt.texi: Regenerate.
40544
40545 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40546
40547         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40548         only.
40549         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40550         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40551         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40552         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40553         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40554         $(srcdir)/doc/include/gcc-common.texi.
40555
40556 2002-12-15   Geert Bosch  <bosch@gnat.com>
40557
40558         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40559
40560 2002-12-14   Geert Bosch  <bosch@gnat.com>
40561
40562         PR ada/5690
40563         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40564         case of a body created for a Renaming_As_Body, on which
40565         conformance checks are not performed.
40566
40567 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40568
40569         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40570         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40571         not already included.
40572         * Make-lang.in: Update dependencies.
40573
40574 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40575         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40576         solution to buffer overflow bug on GNU/Linux.
40577
40578 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40579
40580         PR ada/5856
40581         PR ada/6919
40582         * bindgen.adb: Remove all references to Public_Version.
40583         * comperr.adb: Remove all references to Public_Version and
40584         GNATPRO_Version; correct bug reporting instructions.
40585         * comperr.ads: Change to match bug box.
40586         * gnatvsn.ads: Remove all references to Public version and
40587         GNATPRO version.
40588
40589 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40590
40591         PR ada/6919
40592         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40593         GNU/Linux.
40594
40595         PR ada/6558
40596         * config-lang.in: Remove diff_excludes.
40597
40598 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40599
40600         PR ada/8358
40601         * trans.c (gnu_pending_elaboration_lists): New GC root.
40602         (build_unit_elab): Use..
40603
40604 2002-10-30   Geert Bosch  <bosch@gnat.com>
40605
40606         PR ada/6558
40607         * misc.c : Include optabs.h
40608
40609         * Make-lang.in (misc.o): Add dependency on optabs.h
40610
40611 2002-10-29   Geert Bosch  <bosch@gnat.com>
40612
40613         PR ada/6558
40614         * Make-lang.in (gnatbind): Depend on CONFIG_H
40615
40616 2002-10-29  Geert bosch  <bosch@gnat.com>
40617
40618         PR ada/6558
40619         * misc.c: Unrevert misc.c (1.13)
40620
40621 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40622
40623         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40624         maintainership comments.
40625
40626 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40627
40628         PR ada/5904
40629         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40630         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40631         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40632         7staprop.adb: Correct statements in comments about
40633         maintainership of GNAT.
40634
40635         PR ada/5904
40636         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40637         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40638         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40639         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40640         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40641         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40642         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40643         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40644         comments about maintainership of GNAT.
40645
40646         PR ada/6919 (forward port of patch for PR ada/5904)
40647         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40648         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40649         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40650         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40651         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40652         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40653         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40654         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40655         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40656         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40657         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40658         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40659         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40660         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40661         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40662         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40663         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40664         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40665         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40666         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40667         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40668         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40669         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40670         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40671         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40672         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40673         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40674         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40675         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40676         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40677         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40678         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40679         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40680         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40681         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40682         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40683         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40684         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40685         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40686         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40687         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40688         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40689         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40690         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40691         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40692         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40693         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40694         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40695         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40696         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40697         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40698         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40699         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40700         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40701         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40702         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40703         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40704         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40705         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40706         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40707         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40708         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40709         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40710         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40711         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40712         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40713         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40714         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40715         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40716         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40717         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40718         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40719         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40720         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40721         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40722         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40723         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40724         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40725         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40726         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40727         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40728         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40729         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40730         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40731         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40732         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40733         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40734         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40735         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40736         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40737         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40738         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40739         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40740         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40741         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40742         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40743         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40744         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40745         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40746         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40747         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40748         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40749         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40750         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40751         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40752         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40753         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40754         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40755         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40756         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40757         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40758         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40759         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40760         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40761         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40762         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40763         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40764         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40765         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40766         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40767         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40768         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40769         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40770         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40771         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40772         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40773         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40774         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40775         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40776         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40777         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40778         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40779         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40780         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40781         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40782         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40783         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40784         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40785         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40786         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40787         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40788         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40789         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40790         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40791         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40792         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40793         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40794         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40795         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40796         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40797         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40798         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40799         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40800         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40801         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40802         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40803         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40804         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40805         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40806         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40807         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40808         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40809         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40810         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40811         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40812         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40813         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40814         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40815         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40816         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40817         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40818         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40819         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40820         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40821         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40822         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40823         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40824         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40825         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40826         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40827         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40828         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40829         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40830         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40831         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40832         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40833         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40834         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40835         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40836         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40837         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40838         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40839         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40840         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40841         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40842         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40843         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40844         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40845         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40846         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40847         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40848         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40849         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40850         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40851         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40852         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40853         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40854         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40855         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40856         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40857         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40858         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40859         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40860         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40861         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40862         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40863         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40864         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40865         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40866         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40867         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40868         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40869         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40870         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40871         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40872         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40873         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40874         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40875         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40876         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40877         stringt.ads stringt.h style.adb style.ads stylesw.adb
40878         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40879         table.adb table.ads targparm.adb targparm.ads targtyps.c
40880         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40881         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40882         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40883         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40884         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40885         usage.ads utils.c utils2.c validsw.adb validsw.ads
40886         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40887         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40888         xtreeprs.adb: Correct statements in comments about maintainership
40889         of GNAT.
40890
40891 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40892
40893         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40894         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40895         * gnatvsn.ads: Gnat_Version_String is now a function.
40896         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40897         copy the C version_string into a String and return it.
40898         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40899         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40900         Remove pragma Ident (Gnat_Version_String).  If this was the
40901         sole use of package Gnatvsn, remove the with statement too.
40902         * gnat1drv.adb: Tweak -gnatv output.
40903
40904 2002-09-17  Richard Henderson  <rth@redhat.com>
40905
40906         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40907         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40908         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40909         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40910         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40911         and real_2expN instead of a loop.
40912         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40913         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40914
40915 2002-08-25  Andre Leis  <a.leis@gmx.net>
40916             David Billinghurst  <David.Billinghurst@riotinto.com>
40917
40918         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40919
40920 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40921
40922         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40923         Remove $(CONFIG_H) dependency.
40924
40925 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40926
40927         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40928
40929 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40930
40931         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40932         xmalloc/strcpy.
40933         * misc.c (gnat_decode_option): Likewise.
40934
40935 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40936
40937         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40938         function approach did not work well because of a side effect (the
40939         function call could reallocate the table which was being indexed
40940         using its result). Fixes ada/4851. [RESURRECTED]
40941
40942 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40943
40944         * ada/utils.c (builtin_function): Accept an additional parameter.
40945
40946 2002-06-28  Andreas Jaeger  <aj@suse.de>
40947
40948         PR ada/7144
40949         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40950         <adi@thur.de>.
40951
40952 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40953
40954         * Makefile.in (SHELL): Set to @SHELL@.
40955
40956 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40957
40958         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40959         array size calculation.
40960
40961 2002-06-04  Andreas Jaeger  <aj@suse.de>
40962
40963         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40964         patch.
40965
40966 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40967
40968         Merge from pch-branch:
40969
40970         * config-lang.in (gtfiles): Add ada-tree.h.
40971         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40972         (SET_TYPE_MODULUS): New.
40973         (SET_TYPE_INDEX): New.
40974         (SET_TYPE_DIGITS_VALUE): New.
40975         (SET_TYPE_RM_SIZE): New.
40976         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40977         (SET_TYPE_ADA_SIZE): New.
40978         (SET_TYPE_ACTUAL_BOUNDS): New.
40979         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40980         (SET_DECL_ORIGINAL_FIELD): New.
40981         (TREE_LOOP_ID): Correct typo.
40982         * decl.c: Use new macros.
40983         * utils.c: Include debug.h, use new macros.
40984         * utils2.c: Use new macros.
40985
40986         * ada-tree.h: Update all macros for new tree description.
40987         (struct tree_loop_id): New.
40988         (union lang_tree_node): New.
40989         (struct lang_decl): New.
40990         (struct lang_type): New.
40991         * misc.c (gnat_mark_tree): Delete.
40992         (LANG_HOOKS_MARK_TREE): Delete.
40993         * trans.c (tree_transform): No longer any need to cast
40994         for TREE_LOOP_ID.
40995
40996         * utils.c (struct language_function): New dummy structure.
40997
40998         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40999         (misc.o): Likewise.
41000         (utils.o): Likewise; also gtype-ada.h.
41001         * Make-lang.in (gnat1): Add dependency on s-gtype.
41002         (gnatbind): Add dependency on $(CONFIG_H).
41003         * utils.c: Correct last #include.
41004         (stuct e_stack): Remove unnecessary 'static'.
41005         (mark_e_stack): Remove unused prototype.
41006
41007         * scn-nlit.adb: Remove whitespace after version number to
41008         keep lines under 80 chars.
41009         * snames.adb: Likewise.
41010         * treepr.ads: Likewise.
41011
41012         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41013         (misc.o): Likewise.
41014         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41015         * config-lang.in (gtfiles): New.
41016         * decl.c: Use gengtype for roots.
41017         * gigi.h: Use gengtype for roots.
41018         * trans.c: Use gengtype for roots.
41019         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
41020
41021 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
41022
41023         * misc.c (gnat_init): Adjust setting of internal_error_function.
41024
41025 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
41026
41027         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41028         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41029         gnat_ug_wnt.texi: Regenerate.
41030
41031 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
41032
41033         * 5ntaprop.adb (with System.OS_Primitives): Remove.
41034
41035         * cstreams.c (max_path_len): Move from here ...
41036         * adaint.c (__gnat_max_path_len): ... to here.
41037         * adaint.c (__gnat_max_path_len): Declare.
41038         * g-dirope.adb (Max_Path): Adjust.
41039         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41040         * i-cstrea.ads (max_path_len): Adjust.
41041         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41042         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41043
41044         * Makefile.in, Make-lang.in: Documentation is now built in
41045         Make-lang.in.  Store Info and generated Texinfo files in the
41046         source directory.
41047         * gnat_ug.texi: Remove CVS keywords, correct version number.
41048         Set file name correctly.
41049
41050         * gnat_ug_*.texi: Add.
41051         * .cvsignore: Ignore generated Texinfo files.
41052
41053 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
41054
41055         * ada.h: Add MI guard macro.
41056         (SUBTYPE): Define constants with an anonymous enum, not static
41057         const variables.
41058         (IN): Cast constants to appropriate type before use.
41059
41060 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
41061
41062         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41063         (experimental)".
41064
41065 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41066
41067         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41068         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41069         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41070         (ALL_ADA_CFLAGS): Likewise.
41071         (ADA_INCLUDES): Likewise.
41072         Adapt for new working dir.
41073         (GNATBIND): Use Makefile.in version.
41074         (.SUFFIXES): Copy from Makefile.in.
41075         (ada-warn): Define.
41076         (.adb.o, .ads.o): Copy from Makefile.in.
41077         Added $(OUTPUT_OPTION).
41078         (GNAT1_C_OBJS): Moved from Makefile.in.
41079         Prefix with ada subdir.
41080         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41081         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41082         Adapt for new working dir.
41083         (EXTRA_GNATBIND_OBJS): Likewise.
41084         (ADA_BACKEND): Moved from Makefile.in.
41085         Renamed to avoid conflict with global BACKEND.
41086         Use that one.
41087         (TARGET_ADA_SRCS): Moved from Makefile.in.
41088         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41089         Use ADA_BACKEND.
41090         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41091         (ada_extra_files): Moved from Makefile.in.
41092         Prefix with ada subdir.
41093         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41094         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41095         (ada/nmake.ads): Likewise.
41096         (update-sources): Moved from Makefile.in.
41097         Prefix with ada subdir.
41098         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41099         (ADA_TREE_H): Likewise.
41100         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41101         (ada/memtrack.o): Likewise.
41102         (ada/adadecode.o): Likewise.
41103         Update dependencies.
41104         (ada/adaint.o): New.
41105         (ada/argv.o): Moved from Makefile.in.
41106         Prefix with ada subdir.
41107         Update dependencies.
41108         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41109         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41110         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41111         Prefix with ada subdir.
41112         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41113         (GNAT DEPENDENCIES): Regenerate.
41114         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41115         toplevel Makefile.in.
41116         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41117         (TARGET_ADA_SRCS): Removed.
41118         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41119         (GNATBIND_OBJS): Likewise.
41120         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41121         (BACKEND): Removed.
41122         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41123         (TREE_H): Likewise.
41124         (ada_extra_files): Likewise.
41125         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41126         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41127         (update-sources): Likewise.
41128         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41129         (ADA_TREE_H): Likewise.
41130         (adadecoce.o): Likewise.
41131         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41132         (GNAT DEPENDENCIES): Likewise.
41133
41134 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41135
41136         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41137         * Makefile.in: Likewise.
41138
41139 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41140
41141         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41142         Restore $(CONFIG_H) and prefix.o dependencies.
41143         (ada.stage[1-4]): Depend on stage?-start.
41144
41145         * Makefile.in (b_gnatb.c): Depend on interfac.o.
41146
41147 2002-05-02  Jim Wilson  <wilson@redhat.com>
41148
41149         * utils.c (finish_record_type): Change record_size to record_type.
41150
41151 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
41152
41153         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41154         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41155         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41156
41157 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41158
41159         * misc.c (gnat_parse_file): Update.
41160
41161 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41162
41163         * misc.c (gnat_init): Don't set lang_attribute_common.
41164
41165 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
41166
41167         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41168
41169 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
41170
41171         * gnat_ug.texi: New file.
41172
41173         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
41174         instead of gfdl.texi
41175
41176         * xgnatug.adb, ug_words: New files.
41177
41178         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
41179         gnat_rm and gnat-style manuals.
41180
41181 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41182
41183         * gigi.h (incomplete_type_error): Remove.
41184         * utils.c (incomplete_type_error): Remove.
41185
41186 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
41187
41188         * trans.c (tree_transform): Add has_scope argument to
41189         expand_start_stmt_expr.
41190
41191 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41192
41193         * gigi.h (truthvalue_conversion): Rename.
41194         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41195         * trans.c (tree_transform): Update.
41196         * utils2.c (truthvalue_conversion): Rename, update.
41197         (build_binary_op, build_unary_op): Update.
41198
41199 2002-04-04  Laurent Guerby  <guerby@acm.org>
41200
41201         * make.adb: Implement -margs, remove restriction about file name placement.
41202         * makeusg.adb: Documentation update.
41203         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41204         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41205
41206 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41207
41208         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41209         (builtin_function): Similarly.
41210
41211 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41212
41213         * decl.c (gnat_to_gnu_entity): Update.
41214         * gigi.h (mark_addressable): Rename.
41215         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41216         * trans.c (tree_transform): Update.
41217         * utils.c (create_var_decl): Update.
41218         * util2.c (build_binary_op, build_unary_op,
41219         fill_vms_descriptor): Update.
41220         (mark_addressable): Rename, update.
41221
41222 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41223
41224         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41225         Rename.
41226         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41227         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41228         * trans.c (tree_transform, convert_with_check): Update.
41229         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41230         Rename.
41231
41232 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
41233
41234         * gigi.h (finish_incomplete_decl): Rename.
41235         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41236         * utils.c (gnat_init_decl_processing): Don't set hook.
41237         (finish_incomplete_decl): Rename.
41238
41239 2002-03-29  Andreas Schwab  <schwab@suse.de>
41240
41241         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41242         directory.
41243
41244 2001-03-28  Robert Dewar  <dewar@gnat.com>
41245
41246         * checks.ads:
41247         (Remove_Checks): New procedure
41248
41249         * checks.adb:
41250         (Remove_Checks): New procedure
41251
41252         * exp_util.adb:
41253         Use new Duplicate_Subexpr functions
41254         (Duplicate_Subexpr_No_Checks): New procedure
41255         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41256         (Duplicate_Subexpr): Restore original form (checks duplicated)
41257         (Duplicate_Subexpr): Call Remove_Checks
41258
41259         * exp_util.ads:
41260         (Duplicate_Subexpr_No_Checks): New procedure
41261         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41262         Add 2002 to copyright notice
41263
41264         * sem_util.adb: Use new Duplicate_Subexpr functions
41265
41266         * sem_eval.adb:
41267         (Eval_Indexed_Component): This is the place to call
41268         Constant_Array_Ref and to replace the value. We simply merge
41269         the code of this function in here, since it is now no longer
41270         used elsewhere. This fixes the problem of the back end not
41271         realizing we were clever enough to see that this was
41272         constant.
41273         (Expr_Val): Remove call to Constant_Array_Ref
41274         (Expr_Rep_Val): Remove call to Constant_Array_Ref
41275         Minor reformatting
41276         (Constant_Array_Ref): Deal with string literals (patch
41277         suggested by Zack Weinberg on the gcc list)
41278
41279 2001-03-28  Ed Schonberg  <schonber@gnat.com>
41280
41281         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41282         Duplicate_Subexpr_Move_Checks.
41283
41284         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41285         Duplicate_Subexpr_Move_Checks.
41286
41287         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41288         value of array exists before retrieving it (it may a private
41289         protected component in a function).
41290
41291 2002-03-28   Geert Bosch  <bosch@gnat.com>
41292
41293         * prj-pp.adb : New file.
41294
41295         * prj-pp.ads : New file.
41296
41297 2002-03-28  Andreas Jaeger  <aj@suse.de>
41298
41299         * Makefile.in (stamp-sdefault): Fix path for Makefile.
41300
41301 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41302
41303         * misc.c (gnat_expand_expr): Move prototype.
41304
41305 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41306
41307         * misc.c (insert_default_attributes): Remove.
41308
41309 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41310
41311         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41312         (gnat_init): Don't set hook.
41313         (gnat_expand_expr): Fix prototype.
41314
41315 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41316
41317         * misc.c (ggc_p): Remove.
41318
41319 2002-03-27  Geert Bosch  <bosch@gnat.com>
41320
41321         * prj-makr.ads, prj-makr.adb : New files.
41322
41323 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
41324
41325         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41326         (lang_mark_tree): Make static, rename.
41327
41328 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41329
41330         * misc.c (maybe_build_cleanup): Remove.
41331
41332 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41333
41334         * gigi.h (yyparse): Remove.
41335
41336 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
41337
41338         From Ben Brosgol  <brosgol@gnat.com>
41339         * gnat_rm.texi: Sync with ACT version.
41340
41341 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
41342
41343         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41344         (gnat_init): Remove old hook.
41345
41346 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
41347
41348         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41349         (yyparse): Rename gnat_parse_file.
41350
41351 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
41352
41353         Delete all lines containing "$Revision:".
41354         * xeinfo.adb: Don't look for revision numbers.
41355         * xnmake.adb: Likewise.
41356         * xsinfo.adb: Likewise.
41357         * xsnames.adb: Likewise.
41358         * xtreeprs.adb: Likewise.
41359
41360 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41361
41362         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41363         gnat_tree_code_name): Delete.
41364         (tree_code_type, tree_code_length, tree_code_name): Define.
41365         (gnat_init): Don't try to copy into the various tree_code
41366         arrays.
41367
41368 2002-03-11  Richard Henderson  <rth@redhat.com>
41369
41370         * Makefile.in (.NOTPARALLEL): Add fake tag.
41371
41372 2002-03-07  Geert Bosch  <bosch@gnat.com>
41373
41374         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41375         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41376         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41377         switch-m.adb, switch-m.ads : New files.
41378
41379 2002-03-07  Geert Bosch  <bosch@gnat.com>
41380
41381         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41382         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41383         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41384         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41385         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41386         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41387         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41388         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41389         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41390         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41391         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41392         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41393         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41394         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41395         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41396         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41397         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41398         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41399         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41400         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41401         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41402         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41403         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41404         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41405         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41406         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41407         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41408         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41409         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41410         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41411         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41412         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41413         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41414         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41415         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41416         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41417         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41418         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41419         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41420         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41421         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41422         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41423         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41424         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41425         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41426         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41427         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41428         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41429         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41430         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41431         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41432         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41433         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41434         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41435         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41436         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41437         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41438         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41439         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41440         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41441         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41442         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41443         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41444         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41445         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41446         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41447         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41448         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41449         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41450         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41451         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41452         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41453         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41454         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41455         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41456         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41457         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41458         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41459         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41460         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41461         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41462         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41463         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41464         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41465         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41466         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41467         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41468         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41469         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41470         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41471         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41472         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41473         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41474         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41475         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41476         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41477         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41478
41479         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41480         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41481         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41482         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41483
41484         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41485         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41486
41487         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41488         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41489
41490         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41491         from mdllfile.ad[bs] and mdlltool.ad[bs]
41492
41493 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41494
41495         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41496         lieu of explicit sizeof/sizeof.
41497
41498 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41499
41500         * misc.c (copy_lang_decl): Remove.
41501
41502 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41503
41504         * misc.c: Delete traditional-mode-related code copied from the
41505         C front end but not used, or used only to permit the compiler
41506         to link.
41507
41508 2002-02-07  Richard Henderson  <rth@redhat.com>
41509
41510         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41511         * adaint.h (__gnat_to_gm_time): Update prototype.
41512
41513 2002-01-30  Richard Henderson  <rth@redhat.com>
41514
41515         * trans.c (tree_transform) [N_Loop_Statement]: Use
41516         expand_exit_loop_top_cond.
41517
41518 2001-12-23  Richard Henderson  <rth@redhat.com>
41519
41520         * utils.c (end_subprog_body): Push GC context around
41521         rest_of_compilation for nested functions.
41522
41523 2001-12-23  Richard Henderson  <rth@redhat.com>
41524
41525         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41526
41527 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41528
41529         * gnat-style.texi (Declarations and Types): Remove ancient style
41530         rule which was mandated by code generation issues.
41531
41532         * gnat-style.texi (header): Add @dircategory, @direntry.
41533         (title page): Remove date.
41534         (general) Add @./@: where approriate, and two spaces after the
41535         full stop at the end of a sentence.  Use @samp markup when
41536         referring concrete lexical entities (keywords, attribute names
41537         etc.), and @syntax for ARM grammar elements. Use @r for English
41538         text in comments.  Use @emph for emphasis.  Change "if-statements"
41539         etc. to "if statements" (without @samp). Break long lines.  Make
41540         casing of section names consistent.
41541         (Identifiers): Use @samp markup for variable names.
41542         (Comments): Use @samp markup for comment characters. Line-end
41543         comments may follow any Ada code, not just statements.  Fix
41544         misspelling of "Integer" as "integer".
41545         (Loop statements): Do not use variable name "I", use "J".
41546         (Subprogram Declarations): Document alignment.
41547         (Subprogram Bodies, Block statements): Document empty line before
41548         "begin".
41549
41550 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41551
41552         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41553         function approach did not work well because of a side effect (the
41554         function call could reallocate the table which was being indexed
41555         using its result). Fixes ada/4851.
41556
41557 2001-12-19  Robert Dewar  <dewar@gnat.com>
41558
41559         * bindgen.adb: Minor reformatting
41560
41561         * cstand.adb: Minor reformatting
41562
41563         * fmap.adb: Minor reformatting
41564         Change name from Add for Add_To_File_Map (Add is much too generic)
41565         Change Path_Name_Of to Mapped_Path_Name
41566         Change File_Name_Of to Mapped_File_Name
41567         Fix copyright dates in header
41568
41569         * fmap.ads:
41570         Change name from Add for Add_To_File_Map (Add is much too generic)
41571         Change Path_Name_Of to Mapped_Path_Name
41572         Change File_Name_Of to Mapped_File_Name
41573         Fix copyright dates in header
41574
41575         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41576         Add use clause for Fmap.
41577
41578         * make.adb: Minor reformatting
41579
41580         * osint.adb: Minor reformatting.  Change of names in Fmap.
41581         Add use clause for Fmap.
41582
41583         * prj-env.adb: Minor reformatting
41584
41585         * prj-env.ads: Minor reformatting
41586
41587         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41588         error found (there were odd exceptions to this general rule in
41589         -gnatec/-gnatem processing)
41590
41591 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41592
41593         * raise.c (__gnat_eh_personality): Exception handling personality
41594         routine for Ada.  Still in rough state, inspired from the C++ version
41595         and still containing a bunch of debugging artifacts.
41596         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41597         inspired from the C++ library.
41598
41599         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41600         exception handling integration.
41601
41602 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41603
41604         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41605         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41606         (HIE_OBJS): Add s-fat*.o
41607         (RAVEN_SOURCES): Remove files that are no longer required. Add
41608         interrupt handling files.
41609         (RAVEN_MOD): Removed, no longer needed.
41610
41611 2001-12-19  Robert Dewar  <dewar@gnat.com>
41612
41613         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41614         Add 2001 to copyright date
41615
41616         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41617         need to force universal inlining for these cases.
41618
41619 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41620
41621         * s-taprob.adb: Minor clean ups so that this unit can be used in
41622         Ravenscar HI.
41623
41624         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41625         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41626
41627 2001-12-19  Vincent Celier  <celier@gnat.com>
41628
41629         * prj-tree.ads (Project_Node_Record): Add comments for components
41630         Pkg_Id and Case_Insensitive.
41631
41632 2001-12-19  Pascal Obry  <obry@gnat.com>
41633
41634         * g-socket.adb: Minor reformatting. Found while reading code.
41635
41636 2001-12-19  Robert Dewar  <dewar@gnat.com>
41637
41638         * prj-tree.ads: Minor reformatting
41639
41640 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41641
41642         * config-lang.in (diff_excludes): Remove.
41643
41644 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41645
41646         * sem_res.adb (Resolve_Selected_Component): do not generate a
41647         discriminant check if the selected component is a component of
41648         the argument of an initialization procedure.
41649
41650         * trans.c (tree_transform, case of arithmetic operators): If result
41651         type is private, the gnu_type is the base type of the full view,
41652         given that the full view itself may be a subtype.
41653
41654 2001-12-17  Robert Dewar  <dewar@gnat.com>
41655
41656         * sem_res.adb: Minor reformatting
41657
41658         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41659         parameter in call to Machine (unknown horrible effects from this
41660         omission).
41661
41662         * urealp.h: Add definition of Round_Even for call to Machine
41663         Add third parameter for Machine
41664
41665 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41666
41667         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41668         predefined units in No_Run_Time mode.
41669
41670 2001-12-17  Richard Kenner  <kenner@gnat.com>
41671
41672         * misc.c (insn-codes.h): Now include.
41673
41674 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41675
41676         * a-except.adb: Preparation work for future integration of the GCC 3
41677         exception handling mechanism
41678         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41679         to factorize previous code sequences and make them externally callable,
41680         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41681         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41682         Use the new notification routines.
41683
41684 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41685
41686         * prj-tree.ads (First_Choice_Of): Document the when others case
41687
41688 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41689
41690         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41691         HI-E mode, in order to support Ravenscar profile properly.
41692
41693         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41694         mode on 32 bits targets.
41695
41696 2001-12-17  Vincent Celier  <celier@gnat.com>
41697
41698         * fmap.adb: Initial version.
41699
41700         * fmap.ads: Initial version.
41701
41702         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41703         If search is successfully done, add to mapping.
41704
41705         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41706
41707         * make.adb:
41708         (Gnatmake): Add new local variable Mapping_File_Name.
41709          Create mapping file when using project file(s).
41710          Delete mapping file before exiting.
41711
41712         * opt.ads (Mapping_File_Name): New variable
41713
41714         * osint.adb (Find_File): Use path name found in mapping, if any.
41715
41716         * prj-env.adb (Create_Mapping_File): New procedure
41717
41718         * prj-env.ads (Create_Mapping_File): New procedure.
41719
41720         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41721         (Mapping_File)
41722
41723         * usage.adb: Add entry for new switch -gnatem.
41724
41725         * Makefile.in: Add dependencies for fmap.o.
41726
41727 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41728
41729         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41730         is a package instantiation rewritten as a package body.
41731         (Install_Withed_Unit): Undo previous change, now redundant.
41732
41733 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41734
41735         * layout.adb:
41736         (Compute_Length): Move conversion to Unsigned to callers.
41737         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41738         Compute_Length and Determine_Range.
41739         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41740         Compute_Length and Determine_Range.
41741         Above changes fix problem with length computation for supernull arrays
41742         where Max (Len, 0) wasn't getting applied due to the Unsigned
41743         conversion used by Compute_Length.
41744
41745 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41746
41747         * rtsfind.ads:
41748         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41749          System.Secondary_Stack.
41750         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41751          in HI-E mode.
41752         Remove unused entity RE_Exception_Data.
41753
41754         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41755
41756         * rident.ads (No_Secondary_Stack): New restriction.
41757
41758 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41759
41760         * gnat_rm.texi: Fix minor typos. Found while reading the section
41761         regarding "Bit_Order Clauses" that was sent to a customer.
41762         Very interesting documentation!
41763
41764 2001-12-17  Robert Dewar  <dewar@gnat.com>
41765
41766         * sem_case.adb (Choice_Image): Avoid creating improper character
41767         literal names by using the routine Set_Character_Literal_Name. This
41768         fixes bombs in certain error message cases.
41769
41770 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41771
41772         * a-reatim.adb: Minor reformatting.
41773
41774 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41775
41776         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41777         case where the formal is an extension of another formal in the current
41778         unit or in a parent generic unit.
41779
41780 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41781
41782         * s-tposen.adb: Update comments.  Minor reformatting.
41783         Minor code clean up.
41784
41785         * s-tarest.adb: Update comments.  Minor code reorganization.
41786
41787 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41788
41789         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41790         when Java_VM.
41791
41792 2001-12-17  Robert Dewa  <dewar@gnat.com>
41793
41794         * exp_attr.adb: Minor reformatting
41795
41796 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41797
41798         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41799         derivations nested within a child unit: verify that the parent
41800         type is declared in an outer scope.
41801
41802 2001-12-17  Robert Dewar  <dewar@gnat.com>
41803
41804         * sem_ch12.adb: Minor reformatting
41805
41806 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41807
41808         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41809         warning if current unit is a predefined one, from which bodies may
41810         have been deleted.
41811
41812 2001-12-17  Robert Dewar  <dewar@gnat.com>
41813
41814         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41815         Fix header format. Add 2001 to copyright date.
41816
41817         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41818         which caused CE during compilation if checks were enabled.
41819
41820 2001-12-17  Vincent Celier  <celier@gnat.com>
41821
41822         * make.adb:
41823         (Switches_Of): New function
41824         (Test_If_Relative_Path): New procedure
41825         (Add_Switches): Use new function Switches_Of
41826         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41827         When using a project file, test if there are any relative
41828         search path. Fail if there are any.
41829         (Gnatmake): Only add switches for the primary directory when not using
41830         a project file. When using a project file, change directory to the
41831         object directory of the main project file. When using a project file,
41832         test if there are any relative search path. Fail if there are any.
41833         When using a project file, fail if specified executable is relative
41834         path with directory information, and prepend executable, if not
41835         specified as an absolute path, with the exec directory.  Make sure
41836         that only one -o switch is transmitted to the linker.
41837
41838         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41839
41840         * prj-nmsc.adb:
41841         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41842         when using a non standard naming scheme.
41843         (Check_Ada_Naming_Scheme): Make sure that error messages
41844         do not raise exceptions.
41845         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41846         (Language_Independent_Check): Check the exec directory.
41847
41848         * prj.adb (Project_Empty): Add new component Exec_Directory
41849
41850         * prj.ads:
41851         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41852         (Project_Data): Add component Exec_Directory
41853
41854         * snames.adb: Updated to match snames.ads revision 1.215
41855
41856         * snames.ads: Added Exec_Dir
41857
41858 2001-12-17  Robert Dewar  <dewar@gnat.com>
41859
41860         * make.adb: Minor reformatting
41861
41862         * prj-nmsc.adb: Minor reformatting
41863
41864         * snames.adb: Updated to match snames.ads
41865
41866         * snames.ads: Alphebetize entries for project file
41867
41868 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41869
41870         * trans.c (process_freeze_entity): Do nothing if the entity is a
41871         subprogram that was already elaborated.
41872
41873 2001-12-17  Richard Kenner  <kenner@gnat.com>
41874
41875         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41876         and Esize if object is referenced via pointer.
41877
41878 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41879
41880         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41881         is discrete before analyzing choices.
41882
41883 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41884
41885         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41886         containing the name of the Ada Main Program. This string is mainly
41887         intended for the debugger.
41888         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41889
41890 2001-12-17  Robert Dewar  <dewar@gnat.com>
41891
41892         * ali.adb: Set new Dummy_Entry field in dependency entry
41893
41894         * ali.ads: Add Dummy_Entry field to source dependency table
41895
41896         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41897
41898         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41899
41900         * lib-writ.ads: Document dummy D lines for missing files.
41901
41902         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41903
41904 2001-12-17  Robert Dewar  <dewar@gnat.com>
41905
41906         * ali.adb: Type reference does not reset current file.
41907
41908         * ali.adb: Recognize and scan renaming reference
41909
41910         * ali.ads: Add spec for storing renaming references.
41911
41912         * lib-xref.ads: Add documentation for handling of renaming references
41913
41914         * lib-xref.adb: Implement output of renaming reference.
41915
41916         * checks.adb:
41917         (Determine_Range): Document local variables
41918         (Determine_Range): Make sure Hbound is initialized. It looks as though
41919          there could be a real problem here with an uninitialized reference
41920          to Hbound, but no actual example of failure has been found.
41921
41922 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41923
41924         * g-socket.ads:
41925         Fix comment of Shutdown_Socket and Close_Socket. These functions
41926         should not fail silently because if they are called twice, this
41927         probably means that there is a race condition in the user program.
41928         Anyway, this behaviour is consistent with the rest of this unit.
41929         When an error occurs, an exception is raised with the error message
41930         as exception message.
41931
41932 2001-12-17  Robert Dewar  <dewar@gnat.com>
41933
41934         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41935         that it happens before modification of Sloc values for -gnatD.
41936
41937         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41938         so that it happens before modification of Sloc values for -gnatD.
41939
41940         * switch.adb: Minor reformatting
41941
41942 2001-12-15  Richard Henderson  <rth@redhat.com>
41943
41944         * sem_ch7.adb: Wrap comment.
41945
41946 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41947
41948         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41949         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41950         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41951         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41952         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41953         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41954         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41955         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41956         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41957         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41958         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41959         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41960         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41961         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41962         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41963         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41964         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41965         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41966         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41967         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41968         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41969         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41970         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41971         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41972         spelling errors.
41973
41974 2001-12-14  Vincent Celier  <celier@gnat.com>
41975
41976         * osint.adb(Create_Debug_File): When an object file is specified,
41977         put the .dg file in the same directory as the object file.
41978
41979 2001-12-14  Robert Dewar  <dewar@gnat.com>
41980
41981         * osint.adb: Minor reformatting
41982
41983         * lib-xref.adb (Output_Instantiation): New procedure to generate
41984         instantiation references.
41985
41986         * lib-xref.ads: Add documentation of handling of generic references.
41987
41988         * ali.adb (Read_Instantiation_Ref): New procedure to read
41989         instantiation references
41990
41991         * ali.ads: Add spec for storing instantiation references
41992
41993         * bindusg.adb: Minor reformatting
41994
41995         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41996
41997         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41998
41999         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42000
42001         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42002
42003         * csets.ads:
42004         Fix header format
42005         Add 2001 to copyright date
42006         Add entry for Latin-5 (Cyrillic ISO-8859-5)
42007
42008 2001-12-14  Matt Gingell  <gingell@gnat.com>
42009
42010         * adaint.c: mktemp is a macro on Lynx and can not be used as an
42011         expression.
42012
42013 2001-12-14  Richard Kenner  <kenner@gnat.com>
42014
42015         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42016         if operand is CONSTRUCTOR.
42017
42018 2001-12-14  Ed Schonberg  <schonber@gnat.com>
42019
42020         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42021         before emiting check on right-hand side, so that exception information
42022         is correct.
42023
42024 2001-12-14  Richard Kenner  <kenner@gnat.com>
42025
42026         * utils.c (create_var_decl): Throw away initializing expression
42027         if just annotating types and non-constant.
42028
42029 2001-12-14  Vincent Celier  <celier@gnat.com>
42030
42031         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42032         Default_Ada_...
42033
42034         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42035         Remove functions.
42036         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42037
42038         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42039         Remove functions.
42040         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42041
42042 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
42043
42044         * ChangeLog: Remove piece of diff output.
42045
42046 2001-12-14  Geert Bosch  <bosch@gnat.com>
42047
42048         * config-lang.in: Update copyright notice
42049
42050         * layout.adb: Remove commented out code.
42051
42052         * mdllfile.ads: Update copyright notice. Fix header format.
42053
42054         * sem_case.ads: Likewise.
42055
42056         * sem_ch3.adb: Minor reformatting.
42057
42058 2001-12-12  Geert Bosch  <bosch@gnat.com>
42059
42060         * freeze.ads: Update copyright date.
42061
42062         * g-comlin.ads: Minor reformatting.
42063
42064         * gnat-style.texi: Fix typo.
42065
42066 2001-12-12  Geert Bosch  <bosch@gnat.com>
42067
42068         *  einfo.h: Regenerate.
42069
42070 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42071
42072         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42073         on known node types, rather than untyped fields. Further cleanups.
42074
42075 2001-12-12  Robert Dewar  <dewar@gnat.com>
42076
42077         * sem_ch12.adb:
42078         (Save_Entity_Descendant): Minor comment update.
42079         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42080          of an N_Attribute_Reference node. As per note below, this does not
42081         eliminate need for Associated_Node in attribute ref nodes.
42082         (Associated_Node): Documentation explicitly mentions attribute
42083         reference nodes, since this field is used in such nodes.
42084
42085         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42086
42087 2001-12-12  Robert Dewar  <dewar@gnat.com>
42088
42089         * s-stalib.adb: Add more comments on with statements being needed
42090
42091         * par-ch12.adb: Minor reformatting
42092
42093         * prj-dect.ads: Fix copyright header
42094
42095         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42096         inputs fit in 32 bits, but the result still overflows.
42097
42098         * s-fatgen.ads: Minor comment improvement
42099
42100 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42101
42102         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42103         formal derived type, look for an inherited component from the full
42104         view of the parent, if any.
42105
42106 2001-12-12  Robert Dewar  <dewar@gnat.com>
42107
42108         * checks.ads (Apply_Alignment_Check): New procedure.
42109
42110         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42111         ensure that the alignment of objects with address clauses is
42112         appropriate, and raise PE if not.
42113
42114         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42115         Exp_Pakd.Known_Aligned_Enough
42116
42117         * mdllfile.ads: Minor reformatting
42118
42119         * mlib-fil.ads: Minor reformatting
42120
42121 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42122
42123         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42124         fix to any component reference if enclosing record has non-standard
42125         representation.
42126
42127 2001-12-12  Vincent Celier  <celier@gnat.com>
42128
42129         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42130         Iteration
42131
42132 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42133
42134         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42135         sem_attr.
42136
42137 2001-12-12  Robert Dewar  <dewar@gnat.com>
42138
42139         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42140
42141 2001-12-12  Emmanuel Briot  <briot@gnat.com>
42142
42143         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42144         and it adds dependencies to system.io.
42145
42146 2001-12-12  Pascal Obry  <obry@gnat.com>
42147
42148         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42149         variable name.
42150
42151 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42152
42153         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42154         that is the parent of other generics, the instance body replaces the
42155         instance node.  Retrieve the instance of the spec, which is the one
42156         that is visible in clients and within the body.
42157
42158 2001-12-11  Vincent Celier  <celier@gnat.com>
42159
42160         * gnatmain.adb: Initial version.
42161
42162         * gnatmain.ads: Initial version.
42163
42164         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42165
42166         * snames.adb: Updated to match snames.ads.
42167
42168         * snames.ads: Added Gnatstub.
42169
42170 2001-12-11  Vincent Celier  <celier@gnat.com>
42171
42172         * prj-attr.adb (Initialization_Data): Change name from
42173         Initialisation_Data.
42174
42175 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42176
42177         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42178         + and * applied to backslashed expressions like \r.
42179
42180 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
42181
42182         * g-os_lib.ads: String_List type added, Argument_List type is now
42183         subtype of String_List.
42184
42185 2001-12-11  Robert Dewar  <dewar@gnat.com>
42186
42187         * g-os_lib.ads: Change copyright to FSF
42188         Add comments for String_List type
42189
42190 2001-12-11  Vincent Celier  <celier@gnat.com>
42191
42192         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42193         string to the buffer).
42194
42195 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42196
42197         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42198         sem_attr.
42199
42200         * sem_attr.adb: Simplify previous fix for Address.
42201         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42202         to avoid anomalies where the bound of the type appears to raise
42203         constraint error.
42204
42205 2001-12-11  Robert Dewar  <dewar@gnat.com>
42206
42207         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42208         handled.
42209
42210 2001-12-11  Ed Schonber   <schonber@gnat.com>
42211
42212         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42213         renamed unit before checking for recursive instantiations.
42214
42215 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42216
42217         * prj.ads: Add comments for some of the fields.
42218
42219 2001-12-11  Robert Dewar  <dewar@gnat.com>
42220
42221         * lib-xref.adb (Output_Refs): Don't output type references outside
42222         the main unit if they are not otherwise referenced.
42223
42224 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42225
42226         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42227         code and diagnose additional illegal uses
42228
42229         * sem_util.adb (Is_Object_Reference): An indexed component is an
42230         object only if the prefix is.
42231
42232 2001-12-11  Vincent Celier  <celier@gnat.com>
42233
42234         * g-diopit.adb: Initial version.
42235
42236         * g-diopit.ads: Initial version.
42237
42238         * g-dirope.adb:
42239         (Expand_Path): Avoid use of Unbounded_String
42240         (Find, Wildcard_Iterator): Moved to child package Iteration
42241
42242         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42243
42244 2001-12-11  Robert Dewar  <dewar@gnat.com>
42245
42246         * sem_attr.adb: Minor reformatting
42247
42248 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42249
42250         * sem_ch3.adb: Clarify some ???.
42251
42252 2001-12-11  Robert Dewar  <dewar@gnat.com>
42253
42254         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42255         Exp_Pakd.Known_Aligned_Enough
42256
42257         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42258         version is moved to Exp_Ch13.
42259
42260 2001-12-11  Robert Dewar  <dewar@gnat.com>
42261
42262         * einfo.ads: Minor reformatting
42263
42264         * exp_ch5.adb: Add comment for previous.change
42265
42266         * ali.adb: New interface for extended typeref stuff.
42267
42268         * ali.ads: New interface for typeref stuff.
42269
42270         * checks.adb (Apply_Alignment_Check): New procedure.
42271
42272         * debug.adb: Add -gnatdM for modified ALI output
42273
42274         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42275
42276         * lib-xref.adb: Extend generation of <..> notation to cover
42277         subtype/object types. Note that this is a complete rewrite,
42278         getting rid of the very nasty quadratic algorithm previously
42279         used for derived type output.
42280
42281         * lib-xref.ads: Extend description of <..> notation to cover
42282         subtype/object types. Uses {..} for these other cases.
42283         Also use (..) for pointer types.
42284
42285         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42286
42287         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
42288         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42289
42290 2001-12-11  Vincent Celier  <celier@gnat.com>
42291
42292         * gnatcmd.adb:
42293         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42294         Changed /BIND_ONLY to /ACTIONS=BIND
42295         Changed /LINK_ONLY to /ACTIONS=LINK
42296
42297 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42298
42299         * sem_ch8.adb (Find_Selected_Component): improved search for a
42300         candidate package in case of error.
42301
42302         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42303         chain back on scope stack before reinstalling use clauses.
42304
42305         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42306         is enabled, do not kill the code for the condition, to preserve
42307         warning.
42308
42309 2001-12-11  Robert Dewar  <dewar@gnat.com>
42310
42311         * checks.adb (Insert_Valid_Check): Apply validity check to expression
42312         of conversion, not to result of conversion.
42313
42314 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42315
42316         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42317         before freezing parent. If the declarations are mutually recursive,
42318         an access to the current record type may be frozen before the
42319         derivation is complete.
42320
42321 2001-12-05  Vincent Celier  <celier@gnat.com>
42322
42323         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42324         -c /COMPILE_ONLY, -l /LINK_ONLY
42325
42326         * opt.ads:
42327         (Bind_Only): New Flag
42328         (Link_Only): New flag
42329
42330         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42331         and -l (Link_Only)
42332
42333         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42334
42335         * make.adb:
42336         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42337         (Gnatmake): Set the step flags. Only perform a step if the
42338         corresponding step flag is True.
42339         (Scan_Make_Arg): Reset the bind and link step flags when -u
42340         or -gnatc has been specified.
42341
42342 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42343
42344         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42345         get bounds from right operand.
42346
42347         * sem_eval.adb: Minor reformatting
42348
42349         * exp_util.adb (Make_Literal_Range): use bound of literal rather
42350         than Index'First, its lower bound may be different from 1.
42351
42352         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42353         and C48009J
42354
42355 2001-12-05  Vincent Celier  <celier@gnat.com>
42356
42357         * prj-nmsc.adb Minor reformatting
42358
42359         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42360         set and libraries are not supported.
42361
42362 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42363
42364         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42365         private view explicitly, so the back-end can treat as a global
42366         when appropriate.
42367
42368 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42369
42370         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42371          unit, always replace instance node with new body, for ASIS use.
42372
42373 2001-12-05  Vincent Celier  <celier@gnat.com>
42374
42375         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42376         libraries are not supported and both attributes Library_Name and
42377         Library_Dir are specified.
42378
42379         * prj-proc.adb (Expression): Set location of Result to location of
42380         first term.
42381
42382         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42383         (prj-nmsc is now importing MLib.Tgt)
42384
42385         * prj-proc.adb: Put the change indicated above that was forgotten.
42386
42387 2001-12-05  Robert Dewar  <dewar@gnat.com>
42388
42389         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42390
42391 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42392
42393         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42394         constraint, introduce explicit subtype declaration and derive from it.
42395
42396         * sem_ch3.adb: Minor reformatting
42397
42398 2001-12-05  Robert Dewar  <dewar@gnat.com>
42399
42400         * checks.adb (Determine_Range): Increase cache size for checks.
42401         Minor reformatting
42402
42403         * exp_ch6.adb: Minor reformatting
42404         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42405         a parameter whose root type is System.Address, since treating such
42406         subprograms as pure in the code generator is almost surely a mistake
42407         that will lead to unexpected results.
42408
42409         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42410         change handling of conversions.
42411
42412         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42413
42414 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42415
42416         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42417         aggregate with static wrong size, attach generated Raise node to
42418         declaration.
42419
42420 2001-12-05  Robert Dewar  <dewar@gnat.com>
42421
42422         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42423         Fixes compilation abandoned bomb in B24009B.
42424
42425 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42426
42427         * sem_ch12.adb:
42428         Document use of Associated_Node on Selected_Components.
42429         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42430         to clarify use of untyped descendant fields.
42431
42432 2001-12-05  Robert Dewar  <dewar@gnat.com>
42433
42434         * prj-dect.ads: Add ??? comment
42435         Add 2001 to copyright notice (was not done in after all)
42436
42437         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42438
42439         * prj.ads: Minor reformatting throughout, and add some ??? comments
42440
42441         * snames.ads: Minor reformatting
42442
42443 2001-12-05  Geert Bosch  <bosch@gnat.com>
42444
42445         * snames.adb: Autoupdate
42446
42447 2001-12-05  Vincent Celier  <celier@gnat.com>
42448
42449         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42450
42451         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42452
42453         * prj-env.adb: Minor comment changes (modifying -> extends).
42454
42455         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42456
42457         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42458         Tok_Extends.
42459
42460         * prj.adb (Initialize): Change Modifying to Extends.
42461
42462         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42463
42464         * prj.ads: Minor comment change (Modifying -> extending).
42465
42466         * snames.ads: Change modifying to extends.
42467
42468 2001-12-05  Robert Dewar  <dewar@gnat.com>
42469
42470         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42471         do this after all.
42472
42473         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42474         do this after all.  Add 2001 to copyright notice
42475
42476 2001-12-04  Geert Bosch  <bosch@gnat.com>
42477
42478         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42479
42480 2001-12-04  Robert Dewar  <dewar@gnat.com>
42481
42482         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42483         location if we already have errors. Stops some cases of cascaded
42484         errors.
42485
42486         * errout.adb: Improve comment.
42487
42488 2001-12-04  Robert Dewar  <dewar@gnat.com>
42489
42490         * sem_ch12.adb:
42491         (Analyze_Formal_Type_Definition): Defend against Error.
42492         (Analyze_Formal_Subprogram): Defend against Error.
42493
42494         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42495         remove following semicolon if present. Removes cascaded error.
42496
42497 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42498
42499         * bindgen.adb:
42500         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42501          exceptions equals 0.
42502         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42503         Fixes PIWG E tests (which have to be run with -gnatL).
42504
42505 2001-12-04  Robert Dewar  <dewar@gnat.com>
42506
42507         * einfo.ads: Minor reformatting
42508
42509 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42510
42511         * einfo.ads: Block_Node points to the identifier of the block, not to
42512         the block node itself, to preserve the link when the block is
42513         rewritten, e.g. within an if-statement with a static condition.
42514
42515         * inline.adb (Cleanup_Scopes): recover block statement from block
42516         entity using new meaning of Block_Node.
42517
42518         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42519         identifier of block node, rather than to node itself.
42520
42521 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42522
42523         * layout.adb:
42524         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42525         (Discrimify): Go back to setting the Etypes of the selected component
42526         because the Vname component does not exist at this point and will
42527         fail name resolution. Also set Analyzed.
42528         Remove with and use of Sem_Res.
42529
42530 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42531
42532         * Makefile.in: (HIE_SOURCES): add s-fat*.
42533
42534 2001-12-04  Robert Dewar  <dewar@gnat.com>
42535
42536         * sem_attr.adb:
42537         (Compile_Time_Known_Attribute): New procedure.
42538         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42539          proper range check.
42540
42541 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42542
42543         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42544         processing discriminants to diagnose illegal default values.
42545
42546 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42547
42548         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42549         access discriminant within a type extension that constrains its
42550         parent discriminants.
42551
42552 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42553
42554         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42555         is malformed, use instance of Any_Id to allow analysis to proceed.
42556
42557         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42558         type definition is illegal.
42559         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42560         misplaced.
42561
42562 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42563
42564         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42565         constants.
42566
42567 2001-12-04  Robert Dewar  <dewar@gnat.com>
42568
42569         * errout.adb: Minor reformatting
42570
42571 2001-12-04  Robert Dewar  <dewar@gnat.com>
42572
42573         * exp_util.adb: Minor reformatting from last change
42574
42575         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42576         which is a rewriting of an expression, traverse the original
42577         expression to remove warnings that may have been posted on it.
42578
42579 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42580
42581         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42582         record that has other packed components.
42583
42584 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42585
42586         * adaint.c: Minor cleanups.
42587
42588 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42589
42590         * adaint.c: Do not use utime.h on vxworks.
42591
42592 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42593
42594         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42595         more confusion than it solves.
42596
42597 2001-12-04  Geert bosch  <bosch@gnat.com>
42598
42599         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42600
42601 2001-12-04  Geert Bosch  <bosch@gnat.com>
42602
42603         * Makefile.in (update-sources): New target.
42604         For use by gcc_release script.
42605
42606 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42607
42608         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42609         a configuration pragma, it is now legal wherever a pragma can appear.
42610
42611 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42612
42613         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42614         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42615         is now @CROSS@ -DIN_GCC; update comment.
42616
42617 2001-12-04  Robert Dewar  <dewar@gnat.com>
42618
42619         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42620         Fix problem that stopped ceinfo from working
42621
42622         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42623
42624         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42625
42626 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42627
42628         * gnatchop.adb:
42629         (File_Time_Stamp): New procedure.
42630         (Preserve_Mode): New boolean.
42631         (Write_Unit): Pass time stamp.
42632         Implement -p switch (preserve time stamps).
42633
42634         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42635
42636         * gnatchop.adb: Do usage info for -p switch
42637
42638         * adaint.h (__gnat_set_file_time_name): New function
42639
42640         * adaint.c (__gnat_set_file_time_name): Implement
42641
42642         * adaint.h: Fix typo
42643
42644 2001-12-03  Robert Dewar  <dewar@gnat.com>
42645
42646         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42647         have Associated_Node.
42648
42649 2001-12-03  Robert Dewar  <dewar@gnat.com>
42650
42651         * prj-proc.adb: Minor reformatting
42652
42653         * make.adb: Minor reformatting
42654
42655 2001-12-03  Geert Bosch  <bosch@gnat.com>
42656
42657         * make.adb: Minor reformatting.
42658
42659 2001-12-03 Robert Dewar  <dewar@gnat.com>
42660
42661         * sem_ch12.adb: Minor reformatting
42662
42663 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42664
42665         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42666         push Standard on the stack before analyzing the instance body,
42667         in order to have a clean visibility environment.
42668
42669         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42670
42671 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42672
42673         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42674         instantiation of a body that contains an inlined body.
42675
42676 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42677
42678         * sem_ch12.adb:
42679         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42680         to prevent freezing within formal packages.
42681         (Freeze_Subprogram_Body): If body comes from another instance that
42682         appeared before its own body, place freeze node at end of current
42683         declarative part, to prevent a back-end crash.
42684         (Inline_Instance_Body): Handle properly a package instance within
42685         a subprogram instance that is a child unit.
42686
42687 2001-12-01  Graham Stott  <grahams@redhat.com>
42688
42689         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42690         and add optabs.h dependency.
42691
42692         * misc.c: Include optabs.h
42693         (gnat_tree_code_type): Make static and const.
42694         (gnat_tree_code_length): Likewise.
42695         (gnat_tree_code_name): Likewise.
42696         (update_setjmp_buf): Obtain operands mode from insn_data.
42697
42698 2001-11-29  Richard Henderson  <rth@redhat.com>
42699
42700         * init.c: Remove obsolete dwarf2 frame.h section.
42701
42702 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42703
42704         * Make-lang.in (ada.generated-manpages): New dummy target.
42705
42706 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42707
42708         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42709         into Command, an array conversion is illegal here. Uncovered by
42710         ACATS B460005.
42711
42712 2001-11-28  Geert Bosch  <bosch@gnat.com>
42713
42714         * init.c: Minor whitespace changes.
42715
42716 2001-11-28  Doug Rupp  <rupp@gnat.com>
42717
42718         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42719         signal stack.
42720
42721 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42722
42723         * misc.c (gnat_expand_constant): Move declaration above
42724         definition of lang_hooks.
42725         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42726         (gnat_init): lang_expand_constant no longer exists.
42727
42728         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42729         always have vprintf.
42730         (gnat_init): Always call set_internal_error_function.
42731
42732 2001-11-27  Andreas Jaeger  <aj@suse.de>
42733
42734         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42735
42736 2001-11-27  Laurent Guerby  <guerby@acm.org>
42737
42738         * Makefile.in: Regenerate Ada dependencies.
42739
42740 2001-11-26  Richard Henderson  <rth@redhat.com>
42741
42742         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42743         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42744         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42745
42746 2001-11-25  Laurent Guerby  <guerby@acm.org>
42747
42748         * sysdep.c (rts_get_*): Fix style.
42749
42750 2001-11-19  Laurent Guerby  <guerby@acm.org>
42751
42752         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42753         since it is of no apparent use and cause warnings.
42754
42755 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42756
42757         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42758         static too.
42759         (gnat_init): Don't return NULL.
42760         (finish_parse): Remove.
42761
42762 2001-11-17  Laurent Guerby  <guerby@acm.org>
42763
42764         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42765         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42766         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42767         * lang-spec.h: Add missing struct field to silence warnings.
42768         * sysdep.c (rts_get_*): Provide K&R prototype.
42769         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42770         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42771         * tracebak.c (__gnat_backtrace): Remove unused variable.
42772         * utils.c (end_subprog_body): Move to K&R style.
42773
42774 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42775
42776         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42777
42778 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42779
42780         * misc.c (gnat_init): Change prototype.  Include the
42781         functionality of the old init_parse and init_decl_processing.
42782         (gnat_init_decl_processing): New prototype.
42783         (init_parse): Remove.
42784         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42785
42786 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42787
42788         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42789         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42790         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42791         set_yydebug): Remove.
42792
42793 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42794
42795         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42796         (struct lang_hooks): Constify.
42797         (language_string, lang_identify): Remove.
42798         * utils.c (init_decl_processing): Update.
42799
42800 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42801
42802         * misc.c: Include langhooks-def.h.
42803         * Makefile.in: Update.
42804
42805 2001-10-30  Robert Dewar  <dewar@gnat.com>
42806
42807         * style.adb:
42808         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42809         in the upper half of ASCII.
42810         (Check_Identifier): Minor reformatting
42811
42812 2001-10-30  Geert Bosch  <bosch@gnat.com>
42813
42814         * (Associated_Node, Set_Associated_Node): Do not check for
42815         Freeze_Entity.
42816
42817 2001-10-30  Robert Dewar  <dewar@gnat.com>
42818
42819         * a-reatim.ads: Minor reformatting
42820
42821 2001-10-30  Robert Dewar  <dewar@gnat.com>
42822
42823         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42824         undocumented declarations.
42825
42826 2001-10-30  Pascal Obry  <obry@gnat.com>
42827
42828         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42829         to the binder and linker.
42830         Minor style fix.
42831
42832         * mdll.ads: Fix layout.  Update copyright notice.
42833
42834         * mdll.adb: Fix layout.  Update copyright notice.
42835
42836 2001-10-30  Robert Dewar  <dewar@gnat.com>
42837
42838         * usage.adb: Minor fix to output for -gnaty.
42839
42840 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42841
42842         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42843         to accommodate all its possible values.
42844
42845         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42846         and of small absolute values of T.
42847
42848 2001-10-30  Richard Kenner  <kenner@gnat.com>
42849
42850         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42851         set_mem_attributes since not needed and wrong if RESULT if a REG;
42852         fixes ACATS failures.
42853
42854 2001-10-30  Geert Bosch  <bosch@gnat.com>
42855
42856         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42857         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42858
42859 2001-10-30  Robert Dewar  <dewar@gnat.com>
42860
42861         * bindusg.adb: Undocument -f switch.
42862
42863         * gnatcmd.adb: Remove /FULL_ELABORATION.
42864
42865         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42866         obsolescent.
42867
42868         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42869
42870         * gnatbind.adb: Minor update of warning msg.
42871
42872 2001-10-30  Vincent Celier  <celier@gnat.com>
42873
42874         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42875         for project file switches (-P (/PROJECT_FILE=),
42876          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42877         or MEDIUM or HIGH)
42878
42879 2001-10-30  Geert Bosch  <bosch@gnat.com>
42880
42881         * decl.c: Minor whitespace fixes.
42882
42883 2001-10-30  Richard Kenner  <kenner@gnat.com>
42884
42885         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42886
42887 2001-10-30  Geert Bosch  <bosch@gnat.com>
42888
42889         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42890         Found due to GCC 3.0 warning of using uninitialized value.
42891
42892         * layout.adb:
42893         (Get_Max_Size): Use variant record for tracking value/expression.
42894          Makes logic clearer and prevents warnings for uninitialized variables.
42895         (Layout_Array_Type): Use variant record for tracking value/expression.
42896          Makes logic clearer and prevents warnings for uninitialized variables.
42897
42898 2001-10-30  Robert Dewar  <dewar@gnat.com>
42899
42900         * lib.adb: Minor reformatting
42901
42902         * s-taprop.ads: Minor reformatting
42903
42904 2001-10-29  Laurent Guerby  <guerby@acm.org>
42905
42906         * init.c:
42907         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42908         const.
42909         (_gnat_error_handler): Make MSG const.
42910
42911 2001-10-29  Richard Kenner  <kenner@gnat.com>
42912
42913         * sysdep.c: Fix localtime_r problem on LynxOS.
42914         Also remove #elif to avoid warnings.
42915
42916         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42917         used by this.
42918
42919         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42920
42921 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42922
42923         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42924         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42925         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42926         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42927         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42928         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42929         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42930         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42931         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42932         types.ads, urealp.adb: Fix spelling errors.
42933
42934 2001-10-27  Laurent Guerby  <guerby@acm.org>
42935
42936         * trans.c (gigi): Fix non determinism leading to bootstrap
42937         comparison failures for debugging information.
42938
42939 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42940
42941         * gnat_rm.texi: Use @./@: where appropriate.
42942
42943 2001-10-26  Robert Dewar  <dewar@gnat.com>
42944
42945         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42946
42947 2001-10-26  Richard Kenner  <kenner@gnat.com>
42948
42949         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42950
42951 2001-10-26  Richard Kenner  <kenner@gnat.com>
42952
42953         * decl.c (validate_size): Modify message for bad size to avoid
42954         implication that compiler is modifying the size.
42955
42956 2001-10-26  Robert Dewar  <dewar@gnat.com>
42957
42958         * prj-util.adb: Minor reformatting. Fix bad header format.
42959
42960 2001-10-26  Robert Dewar  <dewar@gnat.com>
42961
42962         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42963
42964         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42965
42966         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42967         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42968         much more narrowly in places where needed. These are cleanups.
42969
42970 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42971
42972         * 5zosinte.ads (null_pthread): new constant.
42973
42974         * 5ztaprop.adb:
42975         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42976          later that this field has been set.
42977         (Finalize_TCB): ditto.
42978         (Suspend_Task): Verify that the thread ID is not null before using it.
42979         (Resume_Task): ditto.
42980
42981         * s-tasdeb.adb:
42982         (Resume_All_Tasks): Lock the tasks list before using it.
42983         (Suspend_All_Tasks): ditto.
42984
42985 2001-10-26  Richard Kenner  <kenner@gnat.com>
42986
42987         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42988         Make constant variant of designated type for Is_Access_Constant.
42989         Call update_pointer_to with main variant.
42990
42991         * trans.c (process_freeze_entity, process_type):
42992         Call update_pointer_to on main variant.
42993
42994         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42995         If main variant, update all other variants.
42996
42997         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42998         TREE_STATIC.
42999
43000 2001-10-26  Robert Dewar  <dewar@gnat.com>
43001
43002         * prj-util.adb: Minor reformatting
43003
43004 2001-10-26  Robert Dewar  <dewar@gnat.com>
43005
43006         * prj-util.adb: Minor reformatting
43007
43008 2001-10-26  Robert Dewar  <dewar@gnat.com>
43009
43010         * prj-attr.adb: Minor reformatting throughout
43011
43012 2001-10-26  Robert Dewar  <dewar@gnat.com>
43013
43014         * prj-attr.ads: Minor reformatting
43015         Add ??? comment (this whole spec has almost no comments)
43016
43017 2001-10-26  Vincent Celier  <celier@gnat.com>
43018
43019         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43020         ("//") that precede the drive letter on Interix.
43021
43022 2001-10-26  Geert Bosch  <bosch@gnat.com>
43023
43024         * gnat_rm.texi: Add GNAT Reference Manual.
43025
43026 2001-10-25  Robert Dewar  <dewar@gnat.com>
43027
43028         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43029         is Error. Similar change for other renaming cases.
43030
43031 2001-10-25  Robert Dewar  <dewar@gnat.com>
43032
43033         * s-atacco.ads: Add pragma Inline_Always for functions.
43034         Fix header format. Add copyright 2001
43035
43036 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43037
43038         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43039         return Error rather than Empty so that analysis can proceed.
43040
43041 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43042
43043         * sem_util.adb (Enter_Name): better handling of cascaded error
43044         messages when a unit appears in its own context.
43045
43046 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43047
43048         * sem_util.adb (Defining_Entity): in case of error, attach created
43049         entity to specification, so that semantic analysis can proceed.
43050
43051 2001-10-25  Robert Dewar  <dewar@gnat.com>
43052
43053         * sem_util.adb
43054         (Defining_Entity): Deal with Error.
43055         (Process_End_Label): Deal with bad end label for.
43056
43057 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43058
43059         * sem_elab.adb (Check_A_Call): refine message when call is in an
43060         instance but callee is not declared in the generic unit.
43061
43062 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43063
43064         * sem_elab.adb (Check_A_Call): check for renaming before finding the
43065         enclosing unit, which may already be different from the calling unit.
43066
43067 2001-10-25  Geert Bosch  <bosch@gnat.com>
43068
43069         * 4gintnam.ads: fix header format.
43070
43071 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43072
43073         * sem_res.adb (Resolve_Call): if the call is actually an indexing
43074         operation on the result of a parameterless call, perform elaboration
43075         check after the node has been properly rewritten.
43076
43077         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43078         inlined within the generic tree, the defining identifier is not a
43079         compilation_unit.
43080
43081 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43082
43083         * sem_res.adb (Resolve): special-case resolution of Null in an
43084          instance or an inlined body to avoid view conflicts.
43085
43086         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43087          compatibility by retrieving the access type of the generic copy.
43088
43089 2001-10-25  Robert Dewar  <dewar@gnat.com>
43090
43091         * sem_ch3.adb:
43092         (Analyze_Number_Declaration): Handle error expression.
43093         (Signed_Integer_Type_Declaration): Handle error bound.
43094         (Analyze_Subtype_Indication): Handle error range.
43095
43096         * sem_util.adb (Get_Index_Bounds): Check for Error.
43097
43098 2001-10-25  Robert Dewar  <dewar@gnat.com>
43099
43100         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43101         in no run time mode.
43102
43103 2001-10-25  Pascal Obry  <obry@gnat.com>
43104
43105         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43106         mode case for ALLOC case.
43107
43108         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43109         all platforms. Improvement of last change.
43110
43111 2001-10-25  Robert Dewar  <dewar@gnat.com>
43112
43113         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43114
43115 2001-10-25  Geert Bosch  <bosch@gnat.com>
43116
43117         * osint.adb (Is_Relative): Remove duplicate.
43118
43119 2001-10-25  Pascal Obry  <obry@gnat.com>
43120
43121         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43122         pathnames in UNIX and DOS style with drive letter.
43123         (Is_Relative): new routine.
43124
43125         * osint.adb: Minor reformatting
43126
43127         * osint.adb (Is_Relative): implementation using
43128         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43129
43130 2001-10-25  Pascal Obry  <obry@gnat.com>
43131
43132         * g-dirope.adb (Basename): correctly compute offset between the
43133         original Path and the translated one.
43134
43135         * g-dirope.adb: (Base_Name): add some comments.
43136
43137 2001-10-25  Robert Dewar  <dewar@gnat.com>
43138
43139         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43140         in HIE mode, avoids compilation abandoned message
43141
43142         * exp_imgv.adb: Correct typo in previous change
43143
43144         * exp_imgv.adb: Correct typo in previous change (not my day!)
43145
43146 2001-10-25  Robert Dewar  <dewar@gnat.com>
43147
43148         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43149
43150 2001-10-25  Pascal Obry  <obry@gnat.com>
43151
43152         * g-awk.ads: Move all pragma inlines next to the routine
43153          declarations. This is more uniform with other GNAT spec.
43154
43155 2001-10-22  Geert Bosch  <bosch@gnat.com>
43156
43157         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43158
43159 2001-10-19  Geert Bosch  <bosch@gnat.com>
43160
43161         * Makefile.in (tools, gnattools): Remove gnatmem.
43162
43163 2001-10-17  Richard Henderson  <rth@redhat.com>
43164
43165         * Makefile.in (misc.o): Depend on langhooks.h.
43166         * misc.c: Include it.
43167         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43168         (LANG_HOOKS_DECODE_OPTION): New.
43169         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43170
43171 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
43172
43173         * trans.c (tree_transform): Adjust to recent change in
43174         expand_asm_operands to implement named asm operands.
43175
43176 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43177
43178         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43179         renaming of discriminant for mutable record type.
43180
43181 2001-10-11  Robert Dewar  <dewar@gnat.com>
43182
43183         * validsw.adb: Properly save -gnatVn status.
43184
43185 2001-10-11  Robert Dewar  <dewar@gnat.com>
43186
43187         * usage.adb: Add lines for V switch.
43188
43189         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43190         (/VALIDITY_CHECKING).
43191
43192 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43193
43194         * sem_type.adb (Add_One_Interp): an operator for a type declared in
43195         an extension of System is known to be visible.
43196
43197 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43198
43199         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43200         properly. Fixes regression on ACATS C34005G.
43201
43202 2001-10-11  Robert Dewar  <dewar@gnat.com>
43203
43204         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43205         loop in generic instance, since this is likely not very useful.
43206
43207 2001-10-11  Robert Dewar  <dewar@gnat.com>
43208
43209         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43210         the error message for high integrity mode.
43211
43212         * rtsfind.adb (RTE): Give message if we try to find an entity that
43213         is not available in high integrity mode.
43214
43215         * rtsfind.ads:
43216         (OK_To_Use_In_HIE_Mode): New array.
43217         (RTE): May return Empty in high integrity mode.
43218
43219         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43220         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43221
43222         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43223         unit if not inlined always and in no runtime mode. Fixes problem
43224         caused by new Rtsfind changes.
43225
43226         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43227         body is deleted.
43228
43229         * rtsfind.adb (RTE): Make sure we do not try to load unit after
43230         giving message for entity not available in high integrity mode.
43231
43232 2001-10-11  Pascal Obry  <obry@gnat.com>
43233
43234         * impunit.adb: Add GNAT.CRC32.
43235
43236 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43237
43238         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43239         properly the case where one universal operand in a non-static
43240         exponentiation of a real literal.
43241
43242 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43243
43244         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43245         clause, return the gobal finalization list, for lack of anthing else.
43246
43247 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43248
43249         * exp_ch7.adb (Make_Transient_Block): if statement is within
43250         exception handler, always use new transient scope to place Clean
43251         procedure.
43252
43253 2001-10-11  Pascal Obry  <obry@gnat.com>
43254
43255         * Makefile.in:
43256         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43257         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43258         (GNATLS_RTL_OBJS): add g-crc32.o
43259         (GNATMAKE_RTL_OBJS): add g-crc32.o
43260
43261         * ali-util.adb:
43262         (CRC_Match): new function.
43263         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43264         instead of the previous simple checksum algorithm.
43265         (Time_Stamp_Mismatch): use CRC_Match for comparison.
43266         (Set_Source_Table): idem.
43267
43268         * ali-util.ads:
43269         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43270         instead of simple checksum.
43271         (CRC_Match): new function.
43272         (CRC_Error): new constant.
43273
43274         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43275         a CRC now and not a simple checksum. A CRC uses lower-case hex
43276         letters, fixes ambiguity in parsing.
43277
43278         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43279         is what this variable will store.
43280
43281         * bcheck.adb: Change reference to chechsum in comments by CRC.
43282         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43283         rename All_Checksum_Match to All_CRC_Match. Change due to API
43284         renaming since now GNAT does not use a simple checksum but a
43285         CRC using GNAT.CRC32.
43286
43287         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43288         now and not anymore a simple checksum.
43289
43290         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43291         places.
43292
43293         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43294
43295         * scans.adb:
43296         (Restore_Scan_State): rename Checksum to CRC.
43297         (Save_Scan_State): idem.
43298
43299         * scans.ads:
43300         With GNAT.CRC32.
43301         (Checksum): rename to CRC.
43302         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43303
43304         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43305         GNAT.CRC32).  Update copyright notice.
43306
43307         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43308         GNAT.CRC32).  Update copyright notice.
43309
43310         * scn.adb:
43311         (Accumulate_Checksum): removed.
43312         (Update): new procedure. Add a wide-character into the CRC.
43313
43314         * sinput-l.adb:
43315         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43316         (Load_File): fix initialization of S (change Source_Checksum to
43317         Source_CRC)
43318
43319         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43320         Source_CRC in S initialization.
43321
43322         * sinput.adb (Source_Checksum): renamed to Source_CRC.
43323
43324         * sinput.ads (Source_Checksum): renamed to Source_CRC.
43325         Update comments for the CRC.
43326
43327         * types.adb (Hex): Use lowercase for the letter part.
43328
43329         * types.ads (Get_Hex_String): Returns the hexadecimal representation
43330         for a word. This is currently used only for CRC. In previous version,
43331         the checksum was using a representation with all letter being
43332         upper-case. With the new implementation (using CRC) we do not remove
43333         the 32th bit of the CRC, so we can have an upper-case starting letter
43334         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43335         It is ambigous since the CRC was optional and could be followed by
43336         options like EB, EE. So now this routines uses lower-case letter for
43337         the hexadecimal representation. Strange enough only lower case letters
43338         where checked in Scan_ALI (even if this was not a possible case).
43339
43340         * gnatvsn.ads (Library_Version): changed to 3.15a.
43341
43342         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43343         for the compiler.
43344
43345         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43346         for the compiler.
43347
43348         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43349         Add 2001 to copyright notice
43350         (Accumulate_Checksum): Modify to use System.CRC32.
43351
43352         * ali-util.ads: Redo changes of previous revision to continue to use
43353         the word Checksum. Add 2001 to copyright notice.
43354
43355         * ali.adb: Undo some of previous changes, not needed.
43356         Keep the change for lower case letters in the checksum.
43357
43358         * ali.ads: Undo previous change not needed.
43359
43360         * bcheck.adb: Undo most of previous change, not needed.
43361         But do use Checksums_Match for checksum comparison.
43362
43363         * gnatls.adb: Undo most of previous change, not needed.
43364         But do use Checksums_Match for comparing checksums.
43365
43366         * lib-load.adb: Undo previous change, not needed.
43367
43368         * lib-writ.adb: Undo previous change, not needed.
43369
43370         * lib-writ.ads: Document that checksums use lower case,
43371         not upper case letters.
43372
43373         * scans.adb: Undo previous change, not needed
43374
43375         * scans.ads: Undo previous change, not needed.
43376
43377         * scn-nlit.adb: Undo previous changes, not needed.
43378
43379         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43380
43381         * scn.adb:
43382         (Accumulate_Checksum): Use System.CRC32.
43383         (Initialize_Checksum): New procedure.
43384         Remove other changes of previous revision.
43385
43386         * sinput-p.adb: Undo previous change, not needed.
43387
43388         * sinput.adb: Undo previous change, not needed.
43389
43390         * sinput-l.adb: Undo previous change, not needed.
43391
43392         * sinput.ads: Undo previous change, not needed.  Keep only comment
43393         on new checksum algorithm
43394
43395         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43396         Also remove a-tags and a-stream from GNAT sources.
43397
43398         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43399
43400         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43401
43402 2001-10-11  Geert Bosch  <bosch@gnat.com>
43403
43404         * einfo.h: Regenerate.
43405
43406         * nmake.ads: Regenerate.
43407
43408         * nmake.adb: Regenerate.
43409
43410         * sinfo.h: Regenerate.
43411
43412         * treeprs.adb: Regenerate.
43413
43414 2001-10-10  Geert Bosch  <bosch@gnat.com>
43415
43416         * gnat-style.texi: New file describing coding guidelines for Ada.
43417
43418 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43419
43420         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43421         is Flag174.
43422
43423 2001-10-10  Geert Bosch  <bosch@gnat.com>
43424
43425         * snames.ads: Add new names for project facility.
43426
43427         * snames.adb: Update to reflect snames.ads changes.
43428
43429         * snames.h: Update to reflect snames.ads changes.
43430
43431 2001-10-10  Vincent Celier  <celier@gnat.com>
43432
43433         * make.adb:
43434         (Add_Switches): reflect the changes for the switches attributes
43435         Default_Switches indexed by the programming language,
43436         Switches indexed by the file name.
43437         (Collect_Arguments_And_Compile): Idem.
43438         Reflect the attribute name changes.
43439
43440         * prj-attr.adb:
43441         (Initialisation_Data): Change the names of some packages and
43442         attributes.
43443         (Initialize): process case insensitive associative arrays.
43444
43445         * prj-attr.ads:
43446         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43447
43448         * prj-dect.adb:
43449         (Parse_Attribute_Declaration): For case insensitive associative
43450          arrays, set the index string to lower case.
43451
43452         * prj-env.adb:
43453         Reflect the changes of the project attributes.
43454
43455         * prj-nmsc.adb:
43456         Replace Check_Naming_Scheme by Ada_Check and
43457         Language_Independent_Check.
43458
43459         * prj-nmsc.ads:
43460         Replaced Check_Naming_Scheme by 2 procedures:
43461         Ada_Check and Language_Independent_Check.
43462
43463         * prj-proc.adb:
43464         (Process_Declarative_Items): For case-insensitive associative
43465         arrays, set the index string to lower case.
43466         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43467         Prj.Nmsc.Check_Naming_Scheme.
43468
43469         * prj-tree.adb:
43470         (Case_Insensitive): New function
43471         (Set_Case_Insensitive): New procedure
43472
43473         * prj-tree.ads:
43474         (Case_Insensitive): New function
43475         (Set_Case_Insensitive): New procedure
43476         (Project_Node_Record): New flag Case_Insensitive.
43477
43478         * prj-util.adb:
43479         (Value_Of): new function to get the string value of a single
43480         string variable or attribute.
43481
43482         * prj-util.ads:
43483         (Value_Of): new function to get the string value of a single
43484         string variable or attribute.
43485
43486         * prj.adb:
43487         (Ada_Default_Spec_Suffix): New function
43488         (Ada_Default_Impl_Suffix): New function
43489         Change definitions of several constants to reflect
43490         new components of record types.
43491
43492         * prj.ads:
43493         (Naming_Data): Change several components to reflect new
43494         elements of naming schemes.
43495         (Project_Data): New flags Sources_Present and
43496         Language_Independent_Checked.
43497         (Ada_Default_Spec_Suffix): New function.
43498         (Ada_Default_Impl_Suffix): New function.
43499
43500         * snames.ads:
43501         Modification of predefined names for project manager: added
43502         Implementation, Specification_Exceptions, Implementation_Exceptions,
43503         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43504         Default_Switches, _Languages, Builder, Cross_Reference,
43505         Finder. Removed Body_Part, Specification_Append, Body_Append,
43506         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43507         Gnatlink.
43508
43509         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43510         Add comments.
43511
43512         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43513         not that it is Nil_Variable_Value.
43514
43515         * prj.ads: Add ??? for uncommented declarations
43516
43517 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43518
43519         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43520         constant, do not indicate possible modification, so that gigi can
43521         treat it as a bona fide constant.
43522
43523 2001-10-10  Robert Dewar  <dewar@gnat.com>
43524
43525         * sem_prag.adb: Add processing for pragma External.
43526
43527         * snames.ads: Add entry for pragma External.
43528
43529         * par-prag.adb: Add pragma External.
43530
43531         * snames.adb: Updated to match snames.ads.
43532
43533 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43534
43535         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43536         a dynamic task if the allocator appears in an indexed assignment
43537         or selected component assignment.
43538
43539         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43540         For a dynamic task in an assignment statement, use target of
43541         assignment to generate meaningful name.
43542
43543 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43544
43545         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43546         a generic package.
43547
43548         * einfo.ads: Body_Entity is also defined for generic package.
43549         Documentation change only
43550
43551         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43552         others_choice for a discriminated component initialization,
43553         convert discriminant references into the corresponding discriminals.
43554
43555         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43556         only if original type is private and expression has to be wrapped
43557         in a conversion.
43558
43559         * checks.adb:
43560         (Apply_Constraint_Check): Do not perform length check
43561         if expression is an aggregate with only an others_choice.
43562         (Length_N_Cond): two references to the same in_parameter
43563         (typically the discriminal in an init_proc) denote the same value.
43564         Two useful optimization uncovered by bugfixes above.
43565
43566 2001-10-10  Robert Dewar  <dewar@gnat.com>
43567
43568         * xeinfo.adb: Change int to char in translation of enumeration types.
43569         This fixes a problem in the C representation of component alignment.
43570         Add 2001 to copyright notice
43571
43572 2001-10-10  Richard Kenner  <kenner@gnat.com>
43573
43574         * decl.c: (validate_size): Do check size of object of integral type
43575         if it is a packed array type.
43576
43577 2001-10-10  Richard Kenner  <kenner@gnat.com>
43578
43579         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43580         VAR_DECL for constant if not Is_Public but -O0.
43581
43582 2001-10-10  Richard Kenner  <kenner@gnat.com>
43583
43584         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43585
43586 2001-10-10  Geert Bosch  <bosch@gnat.com>
43587
43588         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43589         use '/' as switch character, allowing for absolute file names.
43590
43591 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43592
43593         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43594         FSF address.
43595
43596 2001-10-08  Geert Bosch  <bosch@gnat.com>
43597
43598         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43599         Automatically build utilities when files need to be regenerated.
43600
43601 2001-10-08  Geert Bosch  <bosch@gnat.com>
43602
43603         * xsnames.adb: New utility for updating snames.ads and snames.adb
43604
43605 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43606
43607         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43608         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43609         (gnat1): Also depend on attribs.o.
43610         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43611         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43612         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43613         (ADAFLAGS): Add -W -Wall.
43614         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43615         take out CFLAGS.
43616
43617         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43618         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43619         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43620         Use $(ADAC), not $(CC), as compilation command.
43621
43622         (gnattools): Depend directly on tools to build, don't use
43623         recursive make.
43624         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43625
43626         * einfo.h, sinfo.h: New files (autogenerated).
43627
43628 2001-10-08  Richard Henderson  <rth@redhat.com>
43629
43630         * comperr.adb (Abort_In_Progress): New.
43631         (Compiler_Abort): Use it to prevent recursion.
43632
43633 2001-10-08  Robert Dewar  <dewar@gnat.com>
43634
43635         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43636
43637         * par-endh.adb (Output_End_Expected): We should also not test
43638         Error_Posted on the Error node, since now it is always set.
43639
43640         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43641         to help error recovery. Part of general work on 9407-004.
43642
43643         * par.adb: Add ??? for misuse of error
43644
43645         * sem_res.adb:
43646         (Resolve): Defend against Error, fixes 9407-003.
43647         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43648
43649         * sinfo.ads (N_Error): Now has Etype field (which will be set
43650         to Any_Type to help error recovery).
43651
43652 2001-10-08  Richard Kenner  <kenner@gnat.com>
43653
43654         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43655         Consistently set MEM attributes from expression; fixes
43656         bootstrap failure on x86.
43657
43658 2001-10-08  Geert Bosch  <bosch@gnat.com>
43659
43660         * 5oosinte.adb: Add 2001 to copyright notice.
43661
43662 2001-10-08  Geert Bosch  <bosch@gnat.com>
43663
43664         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43665
43666         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43667
43668 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43669
43670         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43671
43672 2001-10-05  Geert Bosch  <bosch@gnat.com>
43673
43674         * adaint.h: Small formatting fix.
43675
43676 2001-10-04  Geert Bosch  <bosch@gnat.com>
43677
43678         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43679         Arg is int, not FILE *, in dummy version of functions.
43680
43681         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43682         Arg is int, not FILE *.
43683
43684 2001-10-04  Geert Bosch  <bosch@gnat.com>
43685
43686         * 3lsoccon.ads: Added file, missed with initial check ins.
43687
43688         * 4lintnam.ads: Fix header format.
43689         Change Linux to GNU/Linux.
43690
43691         * 5iosinte.adb: Change Linux to GNU/Linux.
43692
43693         * 5iosinte.ads: Change Linux to GNU/Linux.
43694
43695         * 5itaprop.adb: Change Linux to GNU/Linux.
43696
43697         * 5itaspri.ads: Change Linux to GNU/Linux.
43698         Update copyright notice.
43699
43700         * 5lintman.adb: Change Linux to GNU/Linux.
43701
43702         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43703
43704         * 5losinte.ads: Change Linux to GNU/Linux.
43705
43706         * 5lsystem.ads: Change Linux to GNU/Linux.
43707
43708         * 5qosinte.adb: Change Linux to GNU/Linux.
43709
43710         * 5qosinte.ads: Change Linux to GNU/Linux.
43711
43712         * 5qparame.ads: Change Linux to GNU/Linux.
43713
43714         * 5qtaprop.adb: Change Linux to GNU/Linux.
43715
43716         * 5qtaspri.ads: Change Linux to GNU/Linux.
43717         Add 2001 to copyright notice.
43718
43719         * 5vintman.ads: Change Linux to GNU/Linux.
43720         Fix header format.  Add 2001 to copyright notice.
43721
43722         * g-soccon.ads: Change Linux to GNU/Linux.
43723
43724         * g-trasym.ads: Change Linux to GNU/Linux.
43725         Add 2001 to copyright notice.
43726
43727         * memtrack.adb: Change Linux to GNU/Linux.
43728
43729         * s-intman.ads: Change Linux to GNU/Linux.
43730         Add 2001 to copyright notice.  Fix header format.
43731
43732         * s-stache.adb: Change Linux to GNU/Linux.
43733
43734         * adaint.c: Change Linux to GNU/Linux.
43735
43736         * cio.c: Change Linux to GNU/Linux.
43737
43738         * cstreams.c: Change Linux to GNU/Linux.
43739
43740         * init.c: Change Linux to GNU/Linux.
43741
43742         * gmem.c: Change Linux to GNU/Linux.
43743
43744         * tracebak.c: Change Linux to GNU/Linux.
43745
43746
43747 2001-10-02  Geert Bosch  <bosch@gnat.com>
43748
43749         * misc.c (insert_default_attributes): Add dummy version.