OSDN Git Service

2009-02-25 Laurent GUERBY <laurent@guerby.net>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-02-25  Laurent GUERBY <laurent@guerby.net>
2
3         * gcc-interface/Makefile.in: Fix multilib handling for
4         sparc64-linux.
5         
6 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7
8         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9
10 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11
12         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
13
14 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
15
16         * gcc-interface/deftarg.c: Remove.
17
18 2009-02-10  Olivier Hainque  <hainque@adacore.com>
19             Eric Botcazou  <ebotcazou@adacore.com>
20
21         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
22         (copy_alias_set): Rename into...
23         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
24         underlying array of unconstrained arrays for the new type as well.
25         If the old and new alias sets don't conflict, make one a subset of
26         the other as per the OP parameter.
27         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
28         <E_Record_Type>: Do not copy the alias set for derived types.
29         For all types, make the alias set of derived types a superset of
30         that of their parent type.
31         (make_aligning_type): Adjust calls to copy_alias_set.
32         (make_packable_type): Likewise.
33         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
34         Check for alias set conflict instead of strict equality to issue the
35         warning.
36
37 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
38
39         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
40         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
41         (copy_alias_set): Assert that arrays have the same aliasing settings.
42         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
43
44 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
45
46         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
47         Set TYPE_NONALIASED_COMPONENT on the array type.
48
49 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
50
51         * gcc-interface/Makefile.in: Fix mipsel linux handling.
52         
53 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
54
55         * gcc-interface/Makefile.in: Fix multilib handling for
56         powerpc64-linux.
57
58 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
59
60         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
61         only useless conversions around renamed objects.
62
63 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
64
65         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
66         the _Tag field before any discriminants in the field list.
67         (components_to_record): Remove obsolete comment.
68
69 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
70
71         PR ada/38450
72         * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
73         * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
74         Likewise.
75
76 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
77
78         PR bootstrap/38262
79         * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
80
81 2008-11-29  Eric Botcazou  <ebotcazou@adacore.com>
82
83         PR ada/30827
84         * g-comver.adb (Ver_Len_Max): Fix inconsistency.
85
86 2008-11-27  Eric Botcazou  <ebotcazou@adacore.com>
87
88         * gcc-interface/decl.c: Fix various nits.
89
90 2008-11-20  Eric Botcazou  <ebotcazou@adacore.com>
91
92         * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
93
94 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
95
96         PR ada/38127
97         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
98         special-case boolean types.  Propagate  the name.
99         * gcc-interface/targtyps.c: Tweak comment.
100
101 2008-11-15  Geert Bosch  <bosch@adacore.com>
102
103         * gcc-interface/trans.c (emit_check): Put back a final save_expr
104         to prevent exponential expansion during gimplification.
105
106 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
107
108         * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
109
110 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
111
112         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
113         initialized to a static constant to be statically allocated even if
114         they are of a padding type, provided the original type also has
115         constant size.
116
117 2008-11-15  Laurent Guerby  <laurent@guerby.net>
118
119         PR ada/37993
120         * gcc-interface/Makefile.in: Add multilib handling for x86_64
121         on darwin.
122         * system-darwin-x86_64.ads: New file.
123
124 2008-11-13  Olivier Hainque  <hainque@adacore.com>
125
126         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
127         Turn Ada Pure on subprograms back into GCC CONST when eh constructs
128         are explicit to the middle-end.  Tidy.
129
130 2008-11-09  Eric Botcazou  <ebotcazou@adacore.com>
131
132         * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
133         (MINUS_NOMOD_EXPR): Likewise.
134         * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
135         unreachable.
136         <PLUS_NOMOD_EXPR>: New case.
137         <MINUS_NOMOD_EXPR>: Likewise.
138         * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
139         assignment statement instead of using an increment operator.
140
141 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
142
143         * system-irix-n64.ads: New file.
144         * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
145         multilibs.
146
147 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
148
149         PR ada/37681
150         * system-solaris-x86_64.ads: New file.
151         * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
152
153 2008-11-07  Bechir Zalila  <bechir.zalila@gmail.com>
154             Eric Botcazou  <ebotcazou@adacore.com>
155
156         PR ada/34289
157         * lib.ads: (Enable_Switch_Storing): Declare.
158         * lib.adb: (Enable_Switch_Storing): New procedure.
159         * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
160         * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
161         (Display): Never display -gnatea
162         * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
163
164 2008-11-07  Thomas Quinot  <quinot@adacore.com>
165
166         * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
167         for empty range in original base type, not converted result type.
168
169 2008-11-07  Geert Bosch  <bosch@adacore.com>
170
171         * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
172         and result for call to __gnat_mulv64.
173
174 2008-11-07  Eric Botcazou  <ebotcazou@adacore.com>
175
176         * gcc-interface/trans.c: Fix formatting nits.
177
178 2008-11-07  Geert Bosch  <bosch@adacore.com>
179
180         * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
181         overflow check for constant result.
182
183 2008-11-07  Geert Bosch  <bosch@adacore.com>
184
185         * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
186         overflow check for addition/subtraction if neither operand is constant.
187
188 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
189
190         * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
191         files for the target-dependent part of the runtime.
192         (SPARC/Linux): Likewise.
193
194 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
195
196         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
197         optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
198         purposes.
199
200 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
201
202         * gcc-interface/misc.c (gnat_printable_name): Always return a copy
203         in GC memory.
204
205 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
206
207         PR ada/19419
208         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
209         Generate a call to memmove for an assignment between overlapping
210         array slices.
211
212 2008-11-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
213
214         PR target/37977
215         * gcc-interface/Makefile.in: Add multilib handling for
216         s390-linux and s390x-linux.
217
218 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
219
220         * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
221         check-acats-subtargets and check-gnat-subtargets.
222         (check_acats_targets): New variable.
223         (check-acats-subtargets, check-acats%): New targets.
224         (check-acats): If -j is used and CHAPTERS is empty, run the testing
225         in multiple make goals, possibly parallel, and afterwards run
226         dg-extract-results.sh to merge the sum and log files.
227
228 2008-10-17  Geert Bosch  <bosch@adacore.com>
229
230         * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
231         to use only a single check instead of three, and avoid unnecessary
232         COMPOUND_EXPR.
233         (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
234         creating more opportunities for optimizations.
235
236 2008-10-13  Jakub Jelinek  <jakub@redhat.com>
237
238         PR middle-end/37601
239         * gcc-interface/utils.c (gnat_types_compatible_p): Handle
240         NULL TYPE_DOMAIN.
241
242 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
243
244         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
245         dealing with volatileness to after code dealing with renaming.
246
247 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
248
249         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
250         * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
251
252 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
253
254         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
255         (unchecked_convert): Use it to disable problematic folding with
256         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
257         special VIEW_CONVERT_EXPR built for integral types and cope with
258         its addressability issues by preserving the first conversion.
259
260 2008-10-01  Andreas Schwab  <schwab@suse.de>
261
262         * system-linux-ppc64.ads: New file.
263         * gcc-interface/Makefile.in: Add multilib handling for
264         powerpc-linux.
265
266 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
267
268         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
269         to that of ptr_mode instead of word_mode.
270
271 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
272
273         PR ada/5911
274         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
275
276 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
277
278         PR ada/37641
279         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
280         instead of deprecated FILE_WRITE_PROPERTIES.
281
282 2008-09-22  Olivier Hainque  <hainque@adacore.com>
283
284         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
285         are never assigned, volatile entities are not constant for code
286         generation purposes.
287
288 2008-09-21  Laurent Guerby  <laurent@guerby.net>
289
290         PR ada/5911
291         * gcc-interface/Makefile.in: Add multilib handling for x86_64
292         and sparc.
293         * system-linux-sparcv9.ads: New file.
294
295 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
296
297         * exp_dbug.ads: Document new convention for the XVZ variable.
298         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
299         debug info if necessary for the type padding the component type.
300         <E_Array_Subtype>: Likewise.
301         (maybe_pad_type): Emit the XVZ variable in units.
302         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
303         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
304         on statements generated to initialize the parameter attributes cache.
305         Set the source line of the end label of the body on the special return
306         statement built for a procedure with copy-in copy-out parameters.
307
308 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
309
310         PR ada/37585
311         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
312         inlined external functions if they contain a nested function not
313         declared inline.
314
315 2008-09-18  Jan Hubicka  <jh@suse.cz>
316
317         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
318         (end_subprog_body): Do not set DECL_INLINE.
319
320 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
321
322         PR ada/21327
323         * gnat_ugn.texi: Use proper format in direntry.
324
325 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
326
327         * gcc-interface/trans.c (gigi): Declare the name of the compilation
328         unit as the first global name.
329
330 2008-09-14  Jan Hubicka  <jh@suse.cz>
331
332         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
333
334 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
335
336         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
337         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
338         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
339         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
340         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
341         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
342         gcc-interface/gigi.h, gcc-interface/trans.c,
343         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
344         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
345         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
346         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
347         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
348         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
349         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
350         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
351         comments.
352         * gnathtml.pl: Fix typos.
353
354 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
355
356         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
357         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
358         layer. RTEMS binds to OS provided adapter routines so there are
359         no modifications to s-osinte-rtems.adb.
360
361 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
362             Joel Sherrill  <joel.sherrill@oarcorp.com>
363
364        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
365
366        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
367
368        * s-interr-hwint.adb: New file.
369
370         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
371         needed by s-interr-hwint.adb.
372
373         * s-osinte-vxworks-kernel.adb: New file.
374
375 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
376
377         * s-stchop-rtems.adb: Add file missed in early commit.  Already
378         referenced in gcc-interface/Makefile.in.
379
380 2008-08-30  Thomas Quinot  <quinot@adacore.com>
381
382         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
383         be built even without a separate libada directory.
384
385 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
386
387         * lib-xref.ads: Fix typo in subprogram reference definition.
388
389 2008-08-22  Robert Dewar  <dewar@adacore.com>
390
391         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
392         to avoid warning.
393
394         * g-trasym.adb: Ditto
395
396         * s-utf_32.adb (Get_Category): Fix obvious typo
397
398         * s-wwdcha.adb: Minor code reorganization
399         Remove dead code
400
401 2008-08-22  Robert Dewar  <dewar@adacore.com>
402
403         * checks.adb (Determine_Range): Deal with values that might be invalid
404
405         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
406         configuration switches.
407
408         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
409
410         * sem_prag.adb: Implement pragma Assume_No_Default_Values
411
412         * snames.adb, snames.ads, snames.h:
413         Add entries for pragma Assume_No_Invalid_Values
414
415         * switch-c.adb: Add processing for -gnatB switch
416
417         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
418
419 2008-08-22  Javier Miranda  <miranda@adacore.com>
420
421         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
422         init procedure all the expanded code associated with the spec of
423         task types and protected types.
424
425 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
426
427         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
428         component expression copies rather than directly setting Etype and
429         Is_Static_Expression.
430
431 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
432
433         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
434         private types to allow for types derived from a private type with
435         preelaborable initialization, but return False for a private extension
436         (unless it has the pragma).
437
438 2008-08-22  Robert Dewar  <dewar@adacore.com>
439
440         * opt.ads: Minor code reorganization (put entries in alpha order)
441
442 2008-08-22  Pascal Obry  <obry@adacore.com>
443
444         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
445         spawn.
446
447 2008-08-22  Geert Bosch  <bosch@adacore.com>
448
449         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
450         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
451
452 2008-08-22  Doug Rupp  <rupp@adacore.com>
453
454         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
455         __gnat_set_features.
456
457         * init.c
458         (__gnat_set_features): New function.
459         (__gnat_features_set): New tracking variable.
460         (__gl_no_malloc_64): New feature global variable
461
462 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
463
464         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
465         use_type_clause in an instance.
466
467 2008-08-22  Bob Duff  <duff@adacore.com>
468
469         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
470
471 2008-08-22  Robert Dewar  <dewar@adacore.com>
472
473         * exp_ch6.adb: Minor reformatting
474
475         * exp_ch7.adb: Minor reformatting
476
477         * exp_ch7.ads: Put routines in proper alpha order
478
479         * exp_dist.adb: Minor reformatting
480
481 2008-08-22  Vincent Celier  <celier@adacore.com>
482
483         * prj.ads: Minor comment update
484
485 2008-08-22  Robert Dewar  <dewar@adacore.com>
486
487         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
488
489 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
490
491         * exp_tss.adb:
492         (Base_Init_Proc): For a protected subtype, use the base type of the
493         corresponding record to locate the propoer initialization procedure.
494
495 2008-08-22  Robert Dewar  <dewar@adacore.com>
496
497         * checks.adb:
498         (In_Subrange_Of): New calling sequence
499         (Determine_Range): Prepare for new processing using base type
500
501         * exp_ch4.adb:
502         (Compile_Time_Compare): Use new calling sequence
503
504         * exp_ch5.adb:
505         (Compile_Time_Compare): Use new calling sequence
506
507         * sem_eval.adb:
508         (Compile_Time_Compare): New calling sequence allows dealing with
509         invalid values.
510         (In_Subrange_Of): Ditto
511
512         * sem_eval.ads:
513         (Compile_Time_Compare): New calling sequence allows dealing with
514         invalid values.
515         (In_Subrange_Of): Ditto
516
517 2008-08-22  Pascal Obry  <obry@adacore.com>
518
519         * adaint.c: Fix possible race condition on win32_wait().
520
521 2008-08-22  Bob Duff  <duff@adacore.com>
522
523         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
524         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
525         exp_intr.adb, exp_ch3.adb: Rename:
526         Exp_Ch7.Controlled_Type => Needs_Finalization
527         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
528         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
529          Has_Controlled_Parts
530         (Has_Some_Controlled_Component): Fix bug in array case.
531
532 2008-08-22  Robert Dewar  <dewar@adacore.com>
533
534         * sem_ch8.adb: Minor reformatting
535
536 2008-08-22  Kevin Pouget  <pouget@adacore.com>
537
538         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
539         Shared_Var_Close procedure specifications from package spec to package body.
540
541         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
542         RE_Shared_Var_WOpen entries.
543
544         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
545         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
546
547 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
548
549         * init.c: adjust EH support code on Alpha/Tru64 as well.
550
551         * raise-gcc.c: Add back a couple of comments.
552
553 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
554
555         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
556         involved and the return type is class-wide, use the type of the expression
557         for the generated access type. Suppress useless discriminant checks on the
558         allocator.
559
560 2008-08-22  Bob Duff  <duff@adacore.com>
561
562         * exp_ch7.adb: Minor comment fix
563
564         * exp_ch6.ads: Minor comment fix
565
566 2008-08-22  Thomas Quinot  <quinot@adacore.com>
567
568         * sem_ch8.adb: Minor reformatting
569         Minor code reorganization (introduce subprogram to factor duplicated
570         code).
571
572 2008-08-22  Sergey Rybin  <rybin@adacore.com>
573
574         * gnat_ugn.texi: Change the description of gnatcheck default rule
575         settings.
576
577 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
578
579         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
580         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
581         do not adjust the PC anymore.
582         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
583         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
584
585         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
586         instead of _Unwind_GetIP.
587
588 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
589
590         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
591         with a range is transformed into a positional aggregate, any copied
592         component literals should be marked Is_Static_Expression.
593
594         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
595         not being known at at compile time when Configurable_Run_Time_Mode is
596         true.
597
598 2008-08-22  Robert Dewar  <dewar@adacore.com>
599
600         * exp_attr.adb:
601         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
602         Read or Input attribute.
603
604 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
605
606         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
607         clauses in related units is redundant, if one of the units is a package
608         instantiation, use its instance_spec to determine which unit is the
609         ancestor of the other.
610
611 2008-08-22  Javier Miranda  <miranda@adacore.com>
612
613         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
614         attributes add missing support to handle designated types that come
615         from the limited view.
616
617         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
618
619 2008-08-22  Sergey Rybin  <rybin@adacore.com>
620
621         * vms_data.ads: Add entry for new gnatcheck -mNNN option
622
623         * gnat_ugn.texi: Add description for gnatcheck option '-m'
624
625 2008-08-22  Sergey Rybin  <rybin@adacore.com>
626
627         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
628         acoording to the latest changes in the metric rule interface
629
630 2008-08-22  Vincent Celier  <celier@adacore.com>
631
632         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
633         (Check): Check if the file names registered in the ALI file for the
634         spec, the body and each of the subunits are the ones expected.
635
636 2008-08-22  Robert Dewar  <dewar@adacore.com>
637
638         * g-catiio.adb: Code cleanup.
639
640 2008-08-20  Vincent Celier  <celier@adacore.com>
641
642         * make.adb (Gnatmake): Remove extra space in version line
643
644         * ali.adb:
645         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
646         as the name may already have been entered in the table by the Project
647         Manager.
648
649 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
650
651         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
652         weak symbols so we use the version provided by MaRTE when available.
653
654 2008-08-20  Emmanuel Briot  <briot@adacore.com>
655
656         * g-catiio.ads, g-catiio.adb:
657         (Value): Avoid an unnecessary system call to Clock in most cases.
658         This call is only needed when only the time is provided in the string,
659         and ignored in all other cases. This is more efficient.
660
661 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
662
663         * raise-gcc.c: Fix formatting nits.
664
665 2008-08-20  Robert Dewar  <dewar@adacore.com>
666
667         * sem_ch13.adb:
668         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
669         non-existing component clause.
670
671         * exp_ch5.adb: Minor reformatting
672
673         * g-comlin.adb: Minor reformatting
674
675         * make.adb: Minor reformatting
676
677         * prj-proc.adb: Minor reformatting
678
679         * stylesw.ads: Minor reformatting
680
681 2008-08-20  Vincent Celier  <celier@adacore.com>
682
683         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
684         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
685         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
686          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
687         and a switch is not recognized by gnatmake.
688         (Gnatmake): Implement new scheme for gnatmake switches and global
689         compilation switches.
690         (Switches_Of): Try successively Switches (<file name>),
691         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
692
693 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
694
695         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
696         implement style check that overriding operations are explicitly marked
697         at such.
698
699         * style.ads (Missing_Overriding): new procedure that provides interface
700         to previous one.
701
702         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
703         that the declaration or body of overriding operations carries an
704         explicit overriding indicator.
705
706         * sem_ch8.adb
707         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
708         explicit indicator should be present.
709
710         * sem_ch6.adb (Verify_Overriding_Indicator,
711         Check_Overriding_Indicator): If operation is overriding, check whether
712         declaration and/or body of subprogram should be present
713
714 2008-08-20  Vincent Celier  <celier@adacore.com>
715
716         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
717         gprbuild when casing is MixedCase, whatever the casing of the letters
718         in the file name.
719
720 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
721
722         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
723         creating dummy init proc.
724         (Requires_Init_Proc): Return False in the case No_Default_Initialization
725         is in force and the type does not have associated default
726         initialization. Move test of Is_Public (with tests of restrictions
727         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
728         for default initialization.
729
730 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
731
732         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
733         of any alias or prefix but having attached parameters (as \"-O2\").
734
735 2008-08-20  Robert Dewar  <dewar@adacore.com>
736
737         * s-fileio.adb: Minor reformatting
738
739 2008-08-20  Thomas Quinot  <quinot@adacore.com>
740
741         * exp_strm.adb (Build_Elementary_Input_Call,
742         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
743         selects the stream attribute routines for long float types.
744
745 2008-08-20  Vincent Celier  <celier@adacore.com>
746
747         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
748
749         * prj.ads (Array_Data): Add a component Location
750
751 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
752
753         * sem_prag.adb:
754         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
755         argument for ASIS and navigation use.
756
757 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
758
759         * einfo.ads: Add comment.
760
761 2008-08-20  Bob Duff  <duff@adacore.com>
762
763         * sem_eval.ads: Minor comment fix.
764
765 2008-08-20  Bob Duff  <duff@adacore.com>
766
767         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
768         folding. We were folding things like "False and then ...", but not
769         "X and then ..." where X is a constant whose value is known at compile
770         time.
771
772 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
773
774         * exp_ch5.adb (Controlled_Type): New routine.
775         (Expand_N_Extended_Return_Statement): When generating a move of the
776         final list in extended return statements, check the type of the
777         function and in the case of double expanded return statements, the type
778         of the returned object.
779         (Expand_Simple_Function_Return): Perform an interface conversion when
780         the type of the returned object is an interface and the context is an
781         extended return statement.
782
783 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
784
785         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
786         and the full view is visible, set flag on full view as well.
787
788 2008-08-20  Thomas Quinot  <quinot@adacore.com>
789
790         * g-comlin.adb: Minor reformatting
791         Minor code reorganization.
792
793         * freeze.adb: Minor reformatting
794
795 2008-08-20  Vincent Celier  <celier@adacore.com>
796
797         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
798         source of another project.
799
800 2008-08-20  Pascal Obry  <obry@adacore.com>
801
802         * s-os_lib.ads: Minor reformatting.
803
804 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
805
806         * gnatvsn.ads: Minor reformatting.
807
808 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
809
810         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
811         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
812         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
813         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
814         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
815         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
816         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
817         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
818         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
819         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
820         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
821         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
822         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
823         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
824         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
825         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
826         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
827         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
828         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
829         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
830         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
831         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
832         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
833         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
834         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
835         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
836         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
837         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
838         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
839         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
840         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
841         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
842         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
843         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
844         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
845         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
846         s-poosiz.adb, link.c: Fix copyright notice.
847
848 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
849
850         * g-comlin.ads: Update comments.
851
852 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
853
854         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
855
856 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
857
858         * exp_ch11.adb:
859         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
860         Make_Implicit_Exception_Handler when rewriting an exception handler with
861         a choice parameter, and pass the handler's Sloc instead of that of the
862         handled sequence of statements. Make_Implicit_Exception_Handler sets the
863         Sloc to No_Location (unless debugging generated code), which we don't
864         want for the case of a user handler.
865
866 2008-08-20  Robert Dewar  <dewar@adacore.com>
867
868         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
869
870         * sem_ch13.adb:
871         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
872         now labeled as info msgs, not warnings.
873
874         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
875
876         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
877
878         * a-textio.adb: Remove redundant test.
879
880         * a-witeio.adb: Minor code reorganization
881         Remove redundant test found working on another issue
882
883         * a-ztexio.adb: Minor code reorganization
884         Remove redundant test found working on another issue
885
886 2008-08-20  Thomas Quinot  <quinot@adacore.com>
887
888         * s-fileio.adb (Open) Use C helper function to determine whether a
889         given errno value corresponds to a "file not found" error.
890
891         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
892
893 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
894
895         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
896         to get access to the per-task errno variable.
897         (__set_errno for MaRTE): Do not redefine this function here since it is
898         already defined in MaRTE.
899
900 2008-08-20  Tristan Gingold  <gingold@adacore.com>
901
902         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
903
904 2008-08-20  Robert Dewar  <dewar@adacore.com>
905
906         * freeze.adb: Minor reformatting
907
908         * g-comlin.adb: Minor reformatting
909
910         * g-socket.adb: Minor reformatting
911
912         * g-socthi-mingw.adb: Minor reformatting
913
914         * g-stheme.adb: Minor reformatting
915
916 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
917
918         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
919         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
920         confusion between partial and full views of an ancestor of the context
921         type when the parent is a private extension declared in a parent unit,
922         and full views are available for the context type.
923
924 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
925             Robert Dewar  <dewar@adacore.com>
926
927         PR ada/30827
928         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
929         version string.
930         Move comment in the right place.
931         * g-comver.adb (Version): Look for a zero-termination in
932         addition to a closing parenthesis.
933
934 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
935
936         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
937         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
938         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
939         Is_Package_Or_Generic_Package instead of hand-crafted tests.
940
941 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
942
943         PR ada/15808
944         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
945         as well.
946
947 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
948
949         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
950
951 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
952
953         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
954         for back-copy statements in lieu of that of the actual.
955
956 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
957
958         PR ada/20548
959         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
960         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
961         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
962         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
963
964 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
965
966         PR ada/36777
967         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
968         * sem_attr.adb (Check_Type): The current instance of a protected
969         object is not a type name.
970         (Analyze_Access_Attribute): Accept instances of protected objects.
971         (Analyze_Attribute, Attribute_Address clause): Ditto.
972         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
973         the prefix as being the current instance if needed.
974
975 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
976
977         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
978         Remove duplicate s-win32.o. Add s-winext.o.
979
980 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
981
982         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
983         with SOSC.SOCK__STREAM.
984         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
985         SOSC.MSG_OOB.
986
987 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
988
989         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
990         * gsocket.h, socket.c: Update to support RTEMS.
991         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
992
993 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
994             Robert Dewar <dewar@adacore.com>
995
996         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
997         left argument even when right argument is 0.
998         (Expand_N_Op_Mod): Ditto when right argument is 1.
999         (Expand_N_Op_Multiply): Ditto when any argument is 0.
1000         (Expand_N_Op_Rem): Ditto when right argument is 1.
1001
1002 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1003
1004         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1005         by warn_unused.
1006
1007 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
1008
1009         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1010         from Freeze_Entity. Used to generate cross-reference information for
1011         types declared in generic packages.
1012
1013 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1014
1015         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1016         compatibility shim.
1017
1018 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1019
1020         * gsocket.h:
1021         On Windows, include <errno.h> and redefine only selected errno values
1022         from their <winsock2.h> definitions.
1023
1024         * s-osinte-freebsd.ads: Minor reformatting
1025
1026         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1027
1028         * g-soccon.ads: New file.
1029
1030         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1031         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1032         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1033         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1034         unit, to allow building software that depends on this internal unit
1035         with both older and newer compilers.
1036
1037 2008-08-08  Robert Dewar  <dewar@adacore.com>
1038
1039         * s-strxdr.adb: Minor reformatting
1040
1041 2008-08-08  Bob Duff  <duff@adacore.com>
1042
1043         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1044         checking for integer operations (including division by zero)", which
1045         is wrong -- divide by zero is not part of overflow checking.
1046         Also added misc clarification about what check-suppression means.
1047
1048         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1049
1050 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
1051
1052         * g-comlin.adb (Add_Switch): Handle addition of switches at the
1053         begining of the command line.
1054         (Append, Add): Renaming of Append to Add as this now allows addition
1055         at the begining of the list.
1056
1057         * g-comlin.ads (Add_Switch): Handle addition of switches at the
1058         begining of the command line.
1059
1060 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1061
1062         * g-sercom.ads:
1063         (Name): Document application scope (only legacy PC serial ports on
1064         Linux and Windows).
1065
1066 2008-08-08  Thomas Quinot  <quinot@adacore.com>
1067
1068         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1069         previous change, not needed after all.
1070
1071 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
1072
1073         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1074         exclusion indicator is present
1075
1076 2008-08-08  Robert Dewar  <dewar@adacore.com>
1077
1078         * g-comlin.adb: Minor code reorganization
1079         Minor reformatting
1080
1081         * g-comlin.ads: Minor reformatting
1082
1083         * s-fileio.adb: Minor reformatting
1084
1085         * sem_attr.adb: Minor code reorganization (use Nkind_In)
1086         Minor reformatting
1087
1088 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
1089
1090         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1091         with s-oscons-tmplt.i.
1092
1093 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
1094
1095         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1096
1097 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1098
1099         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1100         of incomplete type.
1101
1102         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1103         of a formal parameter of an incomplete type. Improve error message for
1104         other improper uses of incomplete types.
1105
1106 2008-08-06  Robert Dewar  <dewar@adacore.com>
1107
1108         * gnat_ugn.texi: Clarify -gnato documentation
1109
1110 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1111
1112         * gcc-interface/Makefile.in,
1113         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1114         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1115         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1116         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1117         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1118         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1119         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1120         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1121         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1122         Remove GNAT.Sockets.Constants. This internal package is replaced by
1123         System.OS_Constants.
1124
1125 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1126
1127         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1128         Remove obsolete targets referencing gen-soccon
1129         When generating s-oscons.ads, use a file name that includes the
1130         THREAD_KIND, to ensure that the (potentially different) version from a
1131         previous build with a different threads flavour does not get reused.
1132
1133 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1134
1135         * sem_res.adb: Minor reformatting
1136
1137         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1138         only when the operating system reports a non-existing file or directory
1139         (ENOENT), otherwise raise Name_Error.
1140
1141         * exp_ch11.adb: Minor reformatting
1142
1143 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1144
1145         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1146         incomplete, add the access_to_subprogram type to the list of private
1147         dependents only if the incomplete type will be completed in the current
1148         scope.
1149         (Build_Discriminant_Constraints): If the type of the discriminant is
1150         access_to_variable, reject a constraint that is access_to_constant.
1151
1152 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1153
1154         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1155         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1156         g-sttsne-dummy.ads: New files.
1157
1158         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1159         with pragma Unimplemented_Unit for sockets packages on Nucleus.
1160
1161 2008-08-06  Pascal Obry  <obry@adacore.com>
1162
1163         * adaint.c: Another fix for ACL support on Windows.
1164
1165 2008-08-06  Javier Miranda  <miranda@adacore.com>
1166
1167         * exp_disp (Expand_Interface_Actuals): Adds missing support for
1168         expansion of calls to subprograms using selected components.
1169
1170 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1171
1172         * sem_res.adb (Resolve_Call): Use base type to determine whether a
1173         dereference is needed because a subtype of an access_to_subprogram is
1174         simply an access-subtype
1175
1176 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1177
1178         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1179         parameters, always specify the expected separator.
1180
1181 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1182
1183         * xnmake.adb: Use new XUtil package for platform independent text
1184         output.
1185
1186 2008-08-06  Vincent Celier  <celier@adacore.com>
1187
1188         * gnat_ugn.texi: Document compiler switch -gnateG
1189
1190 2008-08-06  Quentin Ochem  <ochem@adacore.com>
1191
1192         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1193         in the case of an empty pattern size.
1194         (Compute_Result): Do not do any computation in the case of an empty
1195         pattern size.
1196         (Report_Result): Fixed computation of the overflow guard.
1197
1198 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1199
1200         * g-awk.adb (Finalize): Do not use directly objects of the type in the
1201         finalization routine to prevent elaboration order anomalies in new
1202         finalization scheme.
1203
1204 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1205
1206         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1207         declaration for the same type.
1208
1209 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1210
1211         * sem.adb: Minor rewording (comment)
1212
1213 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1214
1215         * g-comlin.adb (Define_Switch, Get_Switches): New.
1216         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1217         ungrouping switches.
1218         (For_Each_Simple_Switch): Allow more control over parameters handling.
1219         This generic method now allows ungrouping of switches with parameters
1220         and switches with more than one letter after the prefix.
1221         (Set_Command_Line): Take care of switches that are prefixed with a
1222         switch handling parameters without delimiter (-gnatya and -gnaty3 for
1223         example).
1224         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1225         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1226         the operation.
1227         (Start, Alias_Switches, Group_Switches): Take care of parameters
1228         possibly present inside a group.
1229
1230         * g-comlin.ads (Define_Switch): New method used to define a list of
1231         expected switches, that are necessary for correctly ungrouping switches
1232         with more that one character after the prefix.
1233         (Get_Switches): Method that builds a getopt string from the list of
1234         switches as set previously by Define_Switch.
1235         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1236         status of the operation. Also allow the removal of switches with
1237         parameters only.
1238         (Command_Line_Configuration_Record): Maintain a list of expected
1239         switches.
1240
1241 2008-08-06  Doug Rupp  <rupp@adacore.com>
1242
1243         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1244         TARGET_MALLOC64 clear.
1245
1246         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1247         if TARGET_MALLOC64 clear.
1248
1249         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1250         (TARGET_MALLC64): New macro. Default to clear.
1251
1252 2008-08-06  Doug Rupp  <rupp@adacore.com>
1253
1254         * gcc-interface/utils2.c (snames.h) Include
1255         (TARGET_ABI_OPEN_VMS): Initialize.
1256         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1257         for Convention C.
1258
1259 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1260
1261         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1262         null exclusion in a discriminant declaration
1263
1264         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1265         indicators when type is not an access type.
1266
1267         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1268         indicators when type is not an access type.
1269
1270 2008-08-06  Javier Miranda  <miranda@adacore.com>
1271
1272         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1273         with the target interface before expanding the code of the interface
1274         conversion.
1275
1276 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1277
1278         * freeze.adb:
1279         (Freeze_Entity): A deferred constant does not violate the restriction
1280         No_Default_Initialization,
1281
1282         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1283         can carry a null exclusion indicator, and on which an error may be
1284         posted if the indicator is redundant.
1285
1286         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1287         does not apply to a subtype mark that already excludes null.
1288
1289         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1290         exclusion does not apply to a subtype mark that already excludes null.
1291
1292 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1293
1294         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1295
1296 2008-08-05  Doug Rupp  <rupp@adacore.com>
1297
1298         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1299
1300 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1301
1302         * gsocket.h: Make this file includable in a Nucleus environment, which
1303         does not support sockets.
1304
1305         * socket.c: Remove Nucleus-specific hack.
1306
1307 2008-08-05  Pascal Obry  <obry@adacore.com>
1308
1309         * adaint.c: Remove support for readable attribute on vxworks and nucleus
1310
1311 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1312
1313         * sem_attr.adb:
1314         (Analyze_Attribute, case 'Result): handle properly the case where some
1315         operand of the expression in a post-condition generates a transient
1316         block.
1317
1318         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1319         right-hand side when it is an anonymous access_to_subprogram, to force
1320         static accessibility check when needed.
1321
1322 2008-08-05  Sergey Rybin  <rybin@adacore.com>
1323
1324         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1325         rule according to the change in the rule option.
1326         Add documentation for -gnatw.b/-gnatw.B
1327
1328 2008-08-05  Robert Dewar  <dewar@adacore.com>
1329
1330         * ug_words: Add entries for -gnatw.b/-gnatw.B
1331
1332         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1333
1334 2008-08-05  Vincent Celier  <celier@adacore.com>
1335
1336         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1337         (File).
1338
1339         * a-ztdeio.adb: Ditto.
1340
1341 2008-08-05  Pascal Obry  <obry@adacore.com>
1342
1343         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1344         readable attribute.
1345
1346 2008-08-05  Vincent Celier  <celier@adacore.com>
1347
1348         * s-wchwts.adb:
1349         (Wide_String_To_String): Returns a String with the same 'First as its
1350         parameter S.
1351         (Wide_Wide_String_To_String): Ditto
1352
1353         * s-wchwts.ads:
1354         (Wide_String_To_String): Document that the lowest index of the returned
1355         String is equal to S'First.
1356
1357 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1358
1359         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1360
1361         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1362         s-oscons.ads
1363
1364 2008-08-05  Robert Dewar  <dewar@adacore.com>
1365
1366         * opt.ads (Warn_On_Biased_Representation): New flag
1367
1368         * sem_ch13.adb:
1369         (Analyze_Attribute_Definition_Clause): Issue warning when biased
1370         representation is required.
1371         (Minimum_Size): Don't allow biasing if enum rep clause case
1372
1373         * sem_warn.adb:
1374         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1375         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1376
1377         * usage.adb: Add lines for -gnatw.b/B switches
1378
1379 2008-08-05  Pascal Obry  <obry@adacore.com>
1380
1381         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1382
1383         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1384
1385 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1386
1387         * socket.c: Minor reformatting.
1388
1389 2008-08-05  Robert Dewar  <dewar@adacore.com>
1390
1391         * sem_ch3.adb: Minor reformatting
1392
1393         * prj-nmsc.adb: Minor reformatting
1394
1395 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1396
1397         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1398         visibility check on the component type if the simple test fails.
1399
1400 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1401
1402         * init.c (__gnat_install_handler for linux): If we are building the
1403         Xenomai run time then we need to do two additional things: avoid
1404         memory swapping and transform the Linux environment task into a native
1405         Xenomai task.
1406
1407         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1408         time): Use interface to Xenomai native skin and avoid linux-specific
1409         way of setting CPU affinity.
1410         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1411
1412 2008-08-05  Bob Duff  <duff@adacore.com>
1413
1414         * checks.ads: Minor comment fix
1415
1416 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1417
1418         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1419         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1420         CS8.
1421
1422 2008-08-05  Robert Dewar  <dewar@adacore.com>
1423
1424         * mlib.adb: Minor code reorganization
1425         Minor reformatting
1426
1427         * make.adb: Minor reformatting
1428
1429         * prj-attr.ads: Minor reformatting
1430
1431         * s-os_lib.adb: Minor reformatting
1432
1433         * s-fileio.adb: Minor code reorganization
1434         Minor reformatting
1435
1436         * prj.ads: Minor reformatting
1437
1438 2008-08-05  Bob Duff  <duff@adacore.com>
1439
1440         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1441         unresolved initial value of "null", because it causes implicitly
1442         generated "=" operators to be ambiguous, and because this type should
1443         not be passed to gigi.
1444
1445 2008-08-05  Vincent Celier  <celier@adacore.com>
1446
1447         * mlib.adb: Update comments.
1448
1449         * make.adb (Switches_Of): Check for Switches (others), before checking
1450         for Default_Switches ("Ada").
1451         (Gnatmake): Use Builder'Switches (others) in preference to
1452         Builder'Default_Switches ("Ada") if there are several mains.
1453
1454         * prj-attr-pm.adb:
1455         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1456         aggregate.
1457
1458         * prj-attr.adb:
1459         Add markers to indicates that attributes Switches allow others as index
1460         (Others_Allowed_For): New Boolean function, returning True for
1461         attributes with the mark.
1462         (Initialize): Recognize optional letter 'O' as the marker for
1463         associative array attributes where others is allowed as the index.
1464
1465         * prj-attr.ads:
1466         (Others_Allowed_For): New Boolean function
1467         (Attribute_Record): New Boolean component Others_Allowed
1468
1469         * prj-dect.adb:
1470         (Parse_Attribute_Declaration): For associative array attribute where
1471         others is allowed as the index, allow others as an index.
1472
1473         * prj-nmsc.adb:
1474         (Process_Binder): Skip associative array attributes with index others
1475         (Process_Compiler): Ditto
1476
1477         * prj-util.adb:
1478         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1479         index is All_Other_Names.
1480
1481         * prj.ads:
1482         (All_Other_Names): New constant
1483
1484         * prj-proc.adb:
1485         (Process_Declarative_Items): Skip associative array attribute when index
1486         is reserved word "others".
1487
1488 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1489
1490         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1491
1492 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1493
1494         * a-rttiev.adb: Minor reformatting (comments)
1495
1496         * gen-soccon.c: Rename to gen-oscons.c
1497
1498         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1499         GNAT.Sockets.Constants.
1500         Add new constants for GNAT.Serial_Communications and System.File_IO.
1501
1502 2008-08-05  Javier Miranda  <miranda@adacore.com>
1503
1504         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1505         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1506         implementation of this routine has been simplified.
1507
1508 2008-08-05  Pascal Obry  <obry@adacore.com>
1509
1510         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1511         Set_Read_Only Win32 implementation.
1512
1513 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1514
1515         * exp_strm.adb: Minor reformatting (comments)
1516
1517         * sem_ch12.adb: Minor reformatting.
1518
1519 2008-08-05  Robert Dewar  <dewar@adacore.com>
1520
1521         * sem_ch3.adb: Minor reformatting
1522
1523         * checks.adb: Minor reformatting
1524
1525 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1526
1527         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1528         restriction on Prefix.
1529
1530 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1531
1532         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1533         methods needed to handle switch sections when building a command line.
1534         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1535         Current_Section): New public methods or methods modified to handle
1536         building command lines with sections.
1537         (Set_Command_Line): Take into account sections when analysing a switch
1538         string.
1539         (Start): Sort the switches by sections before iterating the command line
1540         elements.
1541
1542         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1543         Is_New_Section, Current_Section): New methods or methods modified to
1544         handle building command lines with sections.
1545
1546 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1547
1548         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1549         discriminants, indicate that the corresponding object declaration has
1550         no initialization, to prevent spurious warnings when the access type is
1551         null-excluding.
1552
1553 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1554
1555         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1556         Abort_Task, warn if the call appears within a protected operation.
1557
1558 2008-08-04  Robert Dewar  <dewar@adacore.com>
1559
1560         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1561
1562 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1563
1564         * sem_ch3.adb:
1565         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1566         anonymous access to protected subprogram that is the return type of the
1567         specification of a subprogram body.
1568
1569         * sem_ch6.adb:
1570         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1571         subprogram, freeze it now to prevent access anomalies in the back-end.
1572
1573         * exp_ch9.adb: Minor code cleanup.
1574         Make sure that new declarations are inserted into the tree before
1575         analysis (from code reading).
1576
1577 2008-08-04  Robert Dewar  <dewar@adacore.com>
1578
1579         * exp_ch5.adb:
1580         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1581         at point of return.
1582
1583 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1584
1585         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1586
1587 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1588
1589         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1590
1591 2008-08-04  Javier Miranda  <miranda@adacore.com>
1592
1593         * sem_prag.adb (Process_Convention): Add missing support for
1594          N_Private_Extension_Declaration nodes.
1595
1596 2008-08-04  Robert Dewar  <dewar@adacore.com>
1597
1598         * exp_ch4.adb: Minor reformatting
1599
1600 2008-08-04  Pascal Obry  <obry@adacore.com>
1601
1602         * adaint.h: Add missing prototype.
1603
1604         * adaint.c: Refine support for Windows file attributes.
1605
1606 2008-08-04  Robert Dewar  <dewar@adacore.com>
1607
1608         * sem_res.adb:
1609         (Valid_Conversion): Catch case of designated types having different
1610         sizes, even though they statically match.
1611
1612 2008-08-04  Javier Miranda  <miranda@adacore.com>
1613
1614         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1615         added in previous patch to handle access to subprograms.
1616
1617 2008-08-04  Robert Dewar  <dewar@adacore.com>
1618
1619         * freeze.adb:
1620         (Freeze_Entity): Only check No_Default_Initialization restriction for
1621         constructs that come from source
1622
1623 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1624
1625         * exp_ch6.adb: Minor comment fix.
1626
1627         * sem_ch4.adb: Minor reformatting.
1628
1629 2008-08-04  Robert Dewar  <dewar@adacore.com>
1630
1631         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1632
1633 2008-08-04  Pascal Obry  <obry@adacore.com>
1634
1635         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1636         file attributes.
1637
1638 2008-08-04  Javier Miranda  <miranda@adacore.com>
1639
1640         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1641         for N_Formal_Object_Declaration nodes. Adding kludge required by
1642         First_Formal to provide its functionality with access to functions.
1643         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1644         for anonymous access types returned by functions.
1645
1646         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1647         conversion of null-excluding access types (required only once to force
1648         the generation of the required runtime check).
1649
1650         * sem_type.adb (Covers): minor reformating
1651
1652         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1653         with internally generated nodes. Avoid generating the error inside init
1654         procs.
1655
1656         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1657         (Resolve_Null): Generate the null-excluding check in case of assignment
1658         to a null-excluding object.
1659         (Valid_Conversion): Add missing support for anonymous access to
1660         subprograms.
1661
1662         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1663         anonymous access types whose designated type is an itype. This case
1664         occurs with anonymous access to protected subprograms types.
1665         (Analyze_Return_Type):  Add missing support for anonymous access to
1666         protected subprogram.
1667
1668         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1669         subprograms addition of missing check on matching convention. Required
1670         to properly handle access to protected subprogram types.
1671
1672         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1673         null excluding access types.
1674
1675 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1676
1677         * sem_ch12.adb: Add comments
1678
1679         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1680         access type and the allocator is not initialized, warn rather than
1681         reporting an error.
1682
1683 2008-08-04  Robert Dewar  <dewar@adacore.com>
1684
1685         * exp_ch4.adb: Minor reformatting
1686
1687         * exp_dist.adb: Minor reformatting
1688
1689         * g-comlin.adb: Minor reformatting
1690
1691 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1692
1693         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1694         target to the type of the aggregate in the case where the target object
1695         is class-wide.
1696
1697         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1698         result type is class-wide and inherently limited, and the expression
1699         has a specific type, create a return object of the specific type, for
1700         more efficient handling of returns of build-in-place aggregates (avoids
1701         conversions of the class-wide return object to the specific type on
1702         component assignments).
1703
1704         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1705         about a type mismatch for a class-wide function with a return object
1706         having a specific type when the object declaration doesn't come from
1707         source. Such an object can result from the expansion of a simple return.
1708
1709 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1710
1711         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1712
1713         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1714         compiling for 64bit windows.
1715
1716 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1717
1718         * g-comlin.adb (Group_Switches): Preserve the switch order when
1719         grouping and allow switch grouping of switches with more than one
1720         character extension (e.g. gnatw.x).
1721         (Args_From_Expanded): Remove this now obsolete method.
1722
1723 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1724
1725         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1726         chain at once, to ensure that type is properly decorated for back-end,
1727         when allocator appears within a loop.
1728
1729 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1730
1731         * snames.h, snames.adb, snames.ads:
1732         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1733
1734         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1735         Build_To_Any_Call and Build_TypeCode_Call procedures.
1736
1737         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1738
1739         * rtsfind.ads: Add corresponding names.
1740
1741         * tbuild.adb: Update prefix restrictions to allow '_' character.
1742
1743 2008-08-04  Doug Rupp  <rupp@adacore.com>
1744
1745         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1746         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1747         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1748         use it.  Calculate pointer range overflow using 64bit types.
1749
1750 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1751
1752         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1753         legal context for an anonymous access to subprogram.
1754
1755         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1756         indirect call, report success to the caller to include possible
1757         interpretation.
1758
1759         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1760         check when the type
1761         of the extended return is an anonymous access_to_subprogram type.
1762
1763         * sem_res.adb:
1764         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1765         access_to_subprogram and the context requires its return type, and a
1766         dereference has not been introduced previously.
1767
1768 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1769
1770         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1771         gnatcheck support in GPS.
1772
1773 2008-08-04  Vincent Celier  <celier@adacore.com>
1774
1775         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1776         requested
1777
1778 2008-08-04  Vincent Celier  <celier@adacore.com>
1779
1780         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1781         variable, but don't check the resulting value as it has no impact on
1782         the processing.
1783
1784         * opt.ads:
1785         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1786         when switch -gnateG is used.
1787
1788         * prep.adb:
1789         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1790         when the source is modified by the preprocessor and there is no
1791         preprocessing errors.
1792
1793         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1794
1795         * sinput-l.adb:
1796         (Load_File): Output the result of preprocessing if the source text was
1797         modified.
1798
1799         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1800
1801         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1802
1803         * ug_words: Add VMS equivalent for -gnateG
1804
1805         * vms_data.ads:
1806         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1807
1808 2008-08-04  Doug Rupp  <rupp@adacore.com>
1809
1810         * gcc-interface/utils2.c:
1811         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1812         in 32bit descriptor.
1813
1814 2008-08-04  Robert Dewar  <dewar@adacore.com>
1815
1816         * par-ch10.adb: Minor reformatting
1817
1818         * i-cobol.adb: Minor reformatting.
1819
1820 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1821
1822         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1823         anonymous access return type of a regular function that is not a
1824         compilation unit.
1825
1826 2008-08-04  Vincent Celier  <celier@adacore.com>
1827
1828         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1829
1830         * snames.adb: New standard name Global_Compilation_Switches
1831
1832         * snames.ads: New standard name Global_Compilation_Switches
1833
1834         * make.adb: Correct spelling error in comment
1835
1836 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1837
1838         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1839         target.
1840
1841 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1842
1843         * sem_ch10.adb: Minor comment fix.
1844
1845 2008-08-04  Robert Dewar  <dewar@adacore.com>
1846
1847         * restrict.adb: Improved messages for restriction warnings
1848
1849         * restrict.ads: Improved messages for restriction messages
1850
1851         * s-rident.ads (Profile_Name): Add No_Profile
1852
1853 2008-08-04  Robert Dewar  <dewar@adacore.com>
1854
1855         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1856
1857 2008-08-04  Robert Dewar  <dewar@adacore.com>
1858
1859         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1860
1861 2008-08-04  Vincent Celier  <celier@adacore.com>
1862
1863         * prj-proc.adb:
1864         (Copy_Package_Declarations): When inheriting package Naming from a
1865         project being extended, do not inherit source exception names.
1866
1867 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1868
1869         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1870         list of declaration to find previous subprogram, do not go to the
1871         original node of a generic unit.
1872
1873 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1874
1875         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1876         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1877
1878 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1879
1880         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1881         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1882         and adjust for above renaming.
1883         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1884         gnu_expr_alt_type parameter.  Convert the expression to it instead
1885         of changing its type in place.
1886         (build_function_stub): Adjust call to above function.
1887
1888 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1889
1890         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1891         code.  Do not get full definition of deferred constants with address
1892         clause for a use.  Do not ignore deferred constant definitions with
1893         address clause.  Ignore constant definitions already marked with the
1894         error node.
1895         <object>: Remove obsolete comment.  For a deferred constant with
1896         address clause, get the initializer from the full view.
1897         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1898         Rework and remove obsolete comment.
1899         <N_Object_Declaration>: For a deferred constant with address clause,
1900         mark the full view with the error node.
1901         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1902         formatting nits.
1903
1904 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1905
1906         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1907
1908         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1909         sem_prag.adb, snames.adb, snames.ads, snames.h,
1910         par-prag.adb: Undo previous stream related changes.
1911
1912         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1913
1914         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1915         Define enumeration type to designate different IO mechanisms.
1916         Enchance generic package Stream_Ops_Internal to include an
1917         implementation of Input and Output.
1918
1919         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1920         No_Stream_Optimization is active, choose the default byte IO
1921         implementations of stream attributes for Strings.
1922         Otherwise use the corresponding block IO version.
1923
1924 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1925
1926         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1927         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1928
1929 2008-08-01  Robert Dewar  <dewar@adacore.com>
1930
1931         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1932         convert plain identifier into defining identifier.
1933
1934 2008-08-01  Robert Dewar  <dewar@adacore.com>
1935
1936         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1937         warnings
1938
1939         * lib-xref.adb: Add error defense.
1940
1941 2008-08-01  Bob Duff  <duff@adacore.com>
1942
1943         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1944
1945 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1946
1947         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1948         correct accessibility levels. In the "when others" case, retrieve the
1949         access level of the Etype of Prev rather than Prev_Orig, because the
1950         original exression has not always been analyzed.
1951
1952 2008-08-01  Robert Dewar  <dewar@adacore.com>
1953
1954         * prj-nmsc.adb: Minor reformatting
1955
1956         * sem_ch4.adb: Minor reformatting
1957         Minor code reorganization
1958
1959         * prj.ads: Minor reformatting
1960
1961         * s-os_lib.adb: Minor reformatting
1962
1963         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1964         half encodings
1965
1966         * scans.ads: Minor reformatting.
1967
1968         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1969         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1970
1971         * sem_res.adb:
1972         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1973
1974         * sem_ch12.adb: Minor comment reformatting
1975
1976         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1977         keyword
1978
1979 2008-08-01  Robert Dewar  <dewar@adacore.com>
1980
1981         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1982         generating code
1983
1984 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1985
1986         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1987         converted is a real literal and the target type has static bounds,
1988         perform the conversion exactly to prevent floating-point anomalies on
1989         some targets.
1990
1991 2008-08-01  Vincent Celier  <celier@adacore.com>
1992
1993         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1994
1995         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1996
1997         * prj.adb (Object_Exist_For): Use Object_Generated, not
1998         Objects_Generated that is removed and was never modified anyway.
1999
2000         * prj.ads:
2001         (Path_Syntax_Kind): New enumeration type
2002         (Language_Config): New component Path_Syntax, defaulted to Host.
2003         Components PIC_Option and Objects_Generated removed, as they are not
2004         used.
2005
2006         * snames.adb: New standard name Path_Syntax
2007
2008         * snames.ads: New standard name Path_Syntax
2009
2010 2008-08-01  Vincent Celier  <celier@adacore.com>
2011
2012         * mlib-utl.adb:
2013         (Adalib_Path): New variable to store the path of the adalib directory
2014         when procedure Specify_Adalib_Dir is called.
2015         (Lib_Directory): If Adalib_Path is not null, return its value
2016         (Specify_Adalib_Dir): New procedure
2017
2018         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2019
2020 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2021
2022         * sem_prag.adb:
2023         (Check_Precondition_Postcondition): If not generating code, analyze the
2024         expression in a postcondition that appears in a subprogram body, so that
2025         it is properly decorated for ASIS use.
2026
2027 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
2028
2029         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2030         Orig_Prev to Prev in the case where the actual is N_Function_Call or
2031         N_Identifier. This was interfering with other cases that are rewritten
2032         as N_Identifier, such as allocators, resulting in passing of the wrong
2033         accessibility level, and based on testing this code is apparently no
2034         longer needed at all.
2035
2036 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2037
2038         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2039         procedure call whose prefix
2040         is a parameterless function call that returns an access_to_procedure.
2041
2042 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2043
2044         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2045         for RTX. Adding a suffix that is incremented at each iteration.
2046
2047 2008-08-01  Robert Dewar  <dewar@adacore.com>
2048
2049         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2050         Raise_Exception
2051
2052 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
2053
2054         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2055         paths, which are authorized by Windows but can lead to errors when used
2056         elsewhere.
2057
2058 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2059
2060         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2061         a pending instantiation for the body of a subprogram that is to be
2062         inlined.
2063
2064         * sem_ch12.adb:
2065         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2066
2067         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2068         create a pending instance for its body, so that calls to the subprogram
2069         can be inlined by the back-end.
2070
2071 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2072
2073         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2074         rts-rtx-w32).
2075
2076 2008-08-01  Robert Dewar  <dewar@adacore.com>
2077
2078         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2079
2080 2008-08-01  Doug Rupp  <rupp@adacore.com>
2081
2082         * gnat_rm.texi: Document new mechanism Short_Descriptor.
2083
2084         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2085         mechanism values.
2086
2087         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2088         mechanism and Short_Descriptor mechanism values.
2089
2090         * snames.adb (preset_names): Add short_descriptor entry.
2091
2092         * snames.ads: Add Name_Short_Descriptor.
2093
2094         * types.h: Add new By_Short_Descriptor mechanism values.
2095
2096         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2097         mechanism and Short_Descriptor mechanism values.
2098
2099         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2100         values.
2101         (Descriptor_Codes): Modify range for new mechanism values.
2102
2103         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2104         mechanism values.
2105
2106         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2107         (gnat_to_gnu_param): Handle By_Short_Descriptor.
2108
2109         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2110         (build_vms_descriptor32): New prototype.
2111         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2112
2113         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2114         argument in call fill_vms_descriptor.
2115
2116         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2117         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2118         (build_vms_descriptor): Renamed from build_vms_descriptor64.
2119         (convert_vms_descriptor32): New function.
2120         (convert_vms_descriptor64): New function.
2121         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2122         descriptors.
2123
2124         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2125         no longer needed.
2126
2127 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2128
2129         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2130         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2131         name.
2132
2133 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
2134
2135         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2136         current directory so only fully qualified names are allowed.
2137
2138 2008-08-01  Robert Dewar  <dewar@adacore.com>
2139
2140         * gnat_ugn.texi:
2141         Minor editing, remove uncomfortable use of semicolon
2142
2143         * s-ststop.adb: Add some ??? comments
2144
2145         * sem_ch10.adb: Minor reformatting
2146
2147         * snames.ads:
2148         Minor comment fixes, some pragmas were not properly
2149         categorized in the comments, documentation change only
2150
2151         * xref_lib.adb: Minor reformatting
2152
2153         * sinput.adb: Minor reformatting
2154
2155         * gnatchop.adb: Minor reformatting
2156
2157         * sem_util.ads: Minor reformatting.
2158
2159         * opt.ads: Minor documentation fix
2160
2161         * scng.adb: Minor reformatting
2162
2163         * prj-part.adb: Update comments
2164
2165 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2166
2167         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2168         tagged synchronized type, use corresponding record type.
2169
2170 2008-08-01  Doug Rupp  <rupp@adacore.com>
2171
2172         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2173         dummy transfer address for debugging.
2174
2175         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2176
2177         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2178
2179 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2180
2181         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2182         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2183
2184 2008-07-31  Pascal Obry  <obry@adacore.com>
2185
2186         * prj-nmsc.adb: Keep Object and Exec directory casing.
2187
2188 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
2189
2190         * system-rtx-rtss.ads
2191         Change the default stack size. It is important to set the commit part.
2192
2193         * s-taprop-rtx.adb
2194         (Initialize): Get the clock resolution.
2195         (RT_Resolution): Return the clock resolution that is indicated by the
2196         system.
2197
2198         * s-parame-vxworks.adb
2199         Document that this body is used for RTX in RTSS (kernel) mode.
2200
2201         * gcc-interface/Makefile.in
2202         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2203         s-parame-vxworks.adb body in order to have reasonable stack sizes in
2204         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2205         cannot ask for too big values.
2206
2207 2008-07-31  Robert Dewar  <dewar@adacore.com>
2208
2209         * exp_aggr.adb: Minor reformatting
2210
2211         * makeutl.adb: Minor reformatting
2212
2213         * prj-env.adb: Minor reformatting
2214
2215 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2216
2217         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2218         tagged type is completed by a concurrent type.
2219
2220 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2221
2222         * sem_aggr.adb:
2223         (Resolve_Record_Aggregate): Bypass error that a type without
2224         components must have a "null record" aggregate when compiling for Ada
2225         2005, since it's legal to give an aggregate of form (others => <>)
2226         for such a type.
2227
2228 2008-07-31  Javier Miranda  <miranda@adacore.com>
2229
2230         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2231         handle synchronized types. Required to handle well the object.operation
2232         notation applied to synchronized types.
2233
2234 2008-07-31  Quentin Ochem  <ochem@adacore.com>
2235
2236         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2237         anymore - just used internally.
2238         Added handling of very small tasks - when the theoretical size is
2239         already full at the point of the call.
2240         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2241         not need to be added to the result.
2242
2243 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2244
2245         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2246         corresponding spec is a primitive wrapper. Update comment.
2247
2248 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2249
2250         * bindgen.adb Comment reformatting. Update the list of run-time globals.
2251         (Gen_Adainit_Ada): Add the declaration, import and value set for
2252         configuration flag Canonical_Streams.
2253         (Gen_Adainit_C): Add the declaration and initial value of external
2254         symbol __gl_canonical_streams.
2255
2256         * init.c: Update the list of global values computed by the binder.
2257
2258         * opt.ads: Add flag Canonical_Streams.
2259
2260         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2261         semantically handled pragmas.
2262
2263         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2264         (Analyze_Pragma): Add case for pragma Canonical_Streams.
2265
2266         * snames.adb: Add character value for name Canonical_Streams.
2267
2268         * snames.ads:
2269         Add Name_Canonical_Streams to the list of configuration pragmas.
2270         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2271
2272         * snames.h: Add a definition for Pragma_Canonical_Streams.
2273
2274         * s-ststop.adb:
2275         Add a flag and import to seize the value of external symbol
2276         __gl_canonical_streams. Update comment and initial value of constant
2277         Use_Block_IO.
2278
2279         * gnat_rm.texi: Add section of pragma Canonical_Streams.
2280
2281         * gnat_ugn.texi:
2282         Add pragma Canonical_Streams to the list of configuration pragmas.
2283
2284 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2285
2286         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2287         has the form A.B.C and B is a unit renaming, analyze its compilation
2288         unit and add a with_clause on A.b to the context.
2289
2290 2008-07-31  Vincent Celier  <celier@adacore.com>
2291
2292         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2293         return the empty string, instead of raising Constraint_Error.
2294
2295 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2296
2297         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2298
2299         * checks.adb (Apply_Accessibility_Check): Insert the check on
2300         Insert_Node.
2301
2302         * exp_attr.adb:
2303         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2304         to new parameter Insert_Node on call to Apply_Accessibility_Check.
2305         Necessary to distinguish the insertion node because the dereferenced
2306         formal may come from a rename, but the check must be inserted in
2307         front of the attribute.
2308
2309         * exp_ch4.adb:
2310         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2311         call to Apply_Accessibility_Check.
2312         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2313         on call to Apply_Accessibility_Check.
2314         Minor reformatting
2315
2316 2008-07-31  Javier Miranda  <miranda@adacore.com>
2317
2318         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2319         types when the candidate type is a synchronized type.
2320
2321         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2322         types, and complete management of synchronized types adding missing
2323         code to handle formal that is a synchronized type.
2324
2325         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2326         are not available and cause the compiler to blowup. Found compiling
2327         test with switch -gnatc
2328
2329         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2330         Has_Correct_Formal_Mode plus code cleanup.
2331
2332 2008-07-31  Bob Duff  <duff@adacore.com>
2333
2334         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2335         recognized as two end-of-lines, but it should be just one.
2336
2337 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2338
2339         * exp_ch9.adb: Minor reformatting
2340
2341         * tbuild.ads: Fix several occurrences of incorrectly referring to
2342         Name_Find as Find_Name.
2343
2344 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2345
2346         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2347         and the context is an object declaration with non-static bounds, treat
2348         the aggregate as non-static.
2349
2350 2008-07-31  Vincent Celier  <celier@adacore.com>
2351
2352         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2353         Move back spec of Parse_Single_Project to body, as it is not called
2354         outside of package Prj.Part.
2355         (Project_Data): Remove components Linker_Name, Linker_Path and
2356         Minimum_Linker_Options as they are no longer set.
2357         Remove function There_Are_Ada_Sources from package Prj and move code
2358         in the only place it was used, in Prj.Env.Set_Ada_Paths.
2359
2360 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2361
2362         * mlib-utl.ads: Fix typo.
2363
2364 2008-07-31  Robert Dewar  <dewar@adacore.com>
2365
2366         * sem_ch12.adb: Minor reformatting
2367
2368 2008-07-31  Sergey Rybin  <rybin@adacore.com>
2369
2370         * gnat_ugn.texi: Change the description of the
2371         Overly_Nested_Control_Structures: now the rule always requires a
2372         positive parameter for '+R' option
2373
2374 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2375
2376         * g-pehage.adb: Minor reformatting
2377
2378 2008-07-31  Pascal Obry  <obry@adacore.com>
2379
2380         * s-finimp.ads: Minor reformatting.
2381
2382 2008-07-31  Vincent Celier  <celier@adacore.com>
2383
2384         * s-regexp.ads: Minor comment fix
2385
2386 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2387
2388         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2389         so that we can compile this file successfully with -gnatc.
2390
2391 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2392
2393         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2394         of the type when looking for stream subprograms for type String,
2395         Wide_String and Wide_Wide_String.
2396
2397         * s-ststop.adb: Change the initialization expression of constant
2398         Use_Block_IO.
2399
2400 2008-07-31  Geert Bosch  <bosch@adacore.com>
2401
2402         * arit64.c:
2403         New file implementing __gnat_mulv64 signed integer multiplication with
2404         overflow checking
2405
2406         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2407
2408         * gcc-interface/gigi.h:
2409         (standard_types): Add ADT_mulv64_decl
2410         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2411
2412         * gcc-interface/utils.c:
2413         (init_gigi_decls): Add initialization of mulv64_decl
2414
2415         * gcc-interface/trans.c:
2416         (build_unary_op_trapv): New function
2417         (build_binary_op_trapv): New function
2418         (gnat_to_gnu): Use the above functions instead of
2419         build_{unary,binary}_op
2420
2421         * gcc-interface/Makefile.in
2422         (LIBGNAT_SRCS): Add arit64.c
2423         (LIBGNAT_OBJS): Add arit64.o
2424
2425 2008-07-31  Vincent Celier  <celier@adacore.com>
2426
2427         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2428         Linker'Default_Switches are declared. Warn if they are declared.
2429
2430 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2431
2432         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2433         Insert_Actions to place the pointer declaration in the code, rather
2434         than Insert_Before_And_Analyze, so that insertions of temporaries are
2435         kept in the proper order when transient scopes are present.
2436
2437
2438 2008-07-31  Robert Dewar  <dewar@adacore.com>
2439
2440         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2441
2442         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2443
2444         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2445         subprogram case
2446
2447 2008-07-31  Vincent Celier  <celier@adacore.com>
2448
2449         * s-os_lib.adb: Minor comment fix
2450
2451 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2452
2453         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2454         transfer pre/postconditions from generic copy to original tree, so that
2455         they will appear in each instance.
2456         (Process_PPCs): Do not transform postconditions into a procedure in a
2457         generic context, to prevent double expansion of check pragmas.
2458
2459         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2460         can be the renaming of the
2461         current instance, so check validity of the name accordingly.
2462
2463 2008-07-31  Robert Dewar  <dewar@adacore.com>
2464
2465         * mlib-utl.ads: Minor reformatting
2466
2467 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2468
2469         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2470         from context. This attribute must be usable in Ada95 mode.
2471         The attribute can appear in the body of a function marked
2472         Inline_Always, but in this case the postocondition is not enforced.
2473
2474         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2475         of an inlined call pre- and postconditions are legal
2476
2477 2008-07-31  Vincent Celier  <celier@adacore.com>
2478
2479         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2480         were for gprmake only
2481
2482 2008-07-31  Robert Dewar  <dewar@adacore.com>
2483
2484         * gnat_ugn.texi: Update -gnatN documentation.
2485
2486         * gnat_rm.texi: Add note about pre/postcondition
2487         pragmas not checked in conjunction with front-end inlining.
2488
2489 2008-07-31  Robert Dewar  <dewar@adacore.com>
2490
2491         * g-pehage.adb, g-pehage.ads: Minor reformatting
2492
2493 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2494
2495         * mlib-utl.ads, prj-makr.ads: Add comments.
2496
2497 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2498
2499         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2500         [WINDOWS]: Add s-winext.o.
2501
2502 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2503
2504         PR ada/36554
2505         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2506         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2507         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2508         Set precision to 1 for subtype of BOOLEAN_TYPE.
2509         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2510         (make_type_from_size): Deal with BOOLEAN_TYPE.
2511         * gcc-interface/misc.c (gnat_print_type): Likewise.
2512         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2513         Set boolean_type_node as its translation in the table, as well
2514         as boolean_false_node for False and boolean_true_node for True.
2515         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2516         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2517         (create_param_decl): Deal with BOOLEAN_TYPE.
2518         (build_vms_descriptor): Likewise.
2519         (build_vms_descriptor64): Likewise.
2520         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2521
2522 2008-07-30  Robert Dewar  <dewar@adacore.com>
2523
2524         * exp_ch9.adb: Minor reformatting
2525
2526         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2527         if no primitive operation is found.
2528
2529         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2530
2531         * sem_ch8.adb: Minor reformatting
2532
2533 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2534
2535         * g-pehage.adb:
2536         Remove a limitation on the length of the words handled by the minimal
2537         perfect hash function generator.
2538
2539         * g-pehage.ads:
2540         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2541         Fix some typos.
2542
2543 2008-07-30  Robert Dewar  <dewar@adacore.com>
2544
2545         * gnatlink.adb: Minor reformatting
2546
2547 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2548
2549         * rtsfind.adb (Check_RPC): Check version consistency even when not
2550         generating RCI stubs. Provide more detailed error message in case of
2551         mismatch.
2552
2553 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2554
2555         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2556         as a actual in an instance, check for a missing attribute to prevent
2557         program_error on an illegal program.
2558
2559         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2560         error if primitive is not found, so that exception can be handled
2561         elsewhere on illegal programs.
2562
2563 2008-07-30  Robert Dewar  <dewar@adacore.com>
2564
2565         * uintp.adb (UI_GCD): Fix potential overflow
2566
2567 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2568
2569         * einfo.adb: Flag245 is now used.
2570         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2571         check to include functions.
2572         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2573         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2574         include functions.
2575         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2576         to the list of displayed flags.
2577
2578         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2579         Wrapped_Entity. These two flags are now present in functions.
2580         New flag Is_Private_Primitive.
2581         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2582
2583         * exp_ch9.adb:
2584         (Build_Wrapper_Bodies): New subprogram.
2585         (Build_Wrapper_Body): The spec and body have been moved to in
2586         Build_Wrapper_ Bodies. Code cleanup.
2587         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2588         Wrappers are now generated for primitives declared between the private
2589         and full view of a concurrent type that implements an interface.
2590         (Build_Wrapper_Specs): New subprogram.
2591         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2592         creation mechanism with a call to Build_Wrapper_Bodies.
2593         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2594         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2595         (Expand_N_Task_Body): Replace the wrapper body creation
2596         mechanism with a call to Build_Wrapper_Bodies.
2597         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2598         creation mechanism with a call to Build_Wrapper_Specs.
2599         (Is_Private_Primitive_Subprogram): New subprogram.
2600         (Overriding_Possible): Code cleanup.
2601         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2602
2603         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2604
2605         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2606         (Process_Full_View): Build wrapper specs for all primitives
2607         that belong to a private view completed by a concurrent type
2608         implementing an interface.
2609
2610         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2611         is a primitive of a
2612         concurrent type with a private view that implements an interface, try to
2613         find the proper spec.
2614         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2615         primitive if the type of its first parameter is a non-generic tagged
2616         private type.
2617         (Analyze_Subprogram_Specification): Code reformatting.
2618         (Disambiguate_Spec): New routine.
2619         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2620         (Is_Private_Concurrent_Primitive): New routine.
2621
2622         * sem_ch6.ads:
2623         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2624
2625 2008-07-30  Doug Rupp  <rupp@adacore.com>
2626
2627         * gigi.h (build_vms_descriptor64): New function prototype.
2628         (fill_vms_descriptor): Modified function prototype.
2629
2630         * utils.c (build_vms_descriptor64): New function.
2631
2632         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2633
2634         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2635         argument.
2636
2637         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2638         64bit and 32bit descriptor and save the 64bit version as an alternate
2639         TREE_TYPE in the parameter.
2640         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2641         thin pointer.
2642
2643         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2644
2645 2008-07-30  Robert Dewar  <dewar@adacore.com>
2646
2647         * make.adb: Minor reformatting
2648
2649         * mlib-utl.adb: Minor reformatting
2650
2651         * osint.ads: Minor reformatting
2652
2653 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2654
2655         * adaint.c
2656         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2657         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2658         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2659
2660         * cio.c
2661         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2662         the function RtPrintf for console output.
2663
2664         * argv.c Do not use the environ variable for RTX.
2665
2666         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2667         been moved before the call to Osint.Add_Default_Search_Dirs in order
2668         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2669         from the appropriate run time.
2670
2671         * targparm.ads
2672         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2673         target is a RTSS module for RTX.
2674
2675         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2676         RTX_RTSS_Kernel_Module
2677         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2678
2679         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2680         exception handling mechanism for Windows and RTX in Win32 mode, but
2681         not for RTX in kernel mode (RTSS).
2682         (LIBGNAT_SRCS): Remove ada.h
2683
2684 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2685
2686         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2687         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2688         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2689         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2690         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2691         ALL_ADA_CFLAGS): Remove.
2692         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2693         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2694         (GCC_CFLAGS): Remove X_CFLAGS.
2695         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2696         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2697         (ADA_CFLAGS): Substitute.
2698
2699 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2700
2701         PR ada/5911
2702         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2703         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2704         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2705         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2706         by stamp-gnatlib2-rts.
2707
2708 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2709
2710         PR documentation/15479
2711         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2712         statement for GNAT.  Add @copying stanza, use it.  Update to
2713         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2714         title as Front-Cover Text.
2715         * gnat_rm.texi: Likewise.
2716         * gnat_ugn.texi: Likewise.
2717
2718 2008-07-29  Jan Hubicka  <jh@suse.cz>
2719
2720         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2721         check.
2722
2723 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2724
2725         * gcc-interface: New directory.
2726
2727         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2728         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2729         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2730         to gcc-interface subdirectory.
2731
2732 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2733
2734         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2735
2736 2008-07-28  Jan Hubicka  <jh@suse.cz>
2737
2738         * misc.c (gnat_post_options): Do not set flag_no_inline.
2739
2740 2008-07-28  Richard Guenther  <rguenther@suse.de>
2741
2742         Merge from gimple-tuples-branch.
2743
2744         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2745
2746         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2747         this is called for an elab proc to be discarded if empty.
2748         * utils.c (end_subprog_body): Honor ELAB_P.
2749         (build_function_stub): Adjust call to end_subprog_body.
2750         * trans.c (Subprogram_Body_to_gnu): Likewise.
2751         (gigi): Reorganize processing of elab procs to prevent
2752         gimplifying twice, using the new end_subprog_body argument.
2753
2754         2008-07-19  Richard Guenther  <rguenther@suse.de>
2755
2756         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2757         (utils.o): Likewise.
2758         * trans.c: Include tree-iterator.h.
2759         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2760         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2761         (set_expr_location_from_node): Likewise.
2762         (gigi): Tuplify.
2763         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2764         of GENERIC_NEXT.
2765         * utils.c: Include tree-iterator.h.
2766         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2767
2768         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2769
2770         * trans.c: Include gimple.h instead of tree-gimple.h.
2771         * utils.c: Same.
2772
2773         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2774
2775         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2776
2777 2008-07-25  Jan Hubicka  <jh@suse.cz>
2778
2779         * utils.c (end_subprog_body): Remove inline trees check.
2780         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2781
2782 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2783
2784         * raise-gcc.c: Move tsystem.h before tm.h.
2785
2786 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2787
2788         * gnathtml.pl: New file.
2789
2790 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2791
2792         * targtyps.c (get_target_default_allocator_alignment): Use
2793         MALLOC_ABI_ALIGNMENT.
2794
2795 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2796
2797         * adaint.c (__MINGW32__ section): Include ctype.h and define
2798         a fallback ISALPHA if IN_RTS.
2799         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2800
2801 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2802
2803         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2804         argument, to apply to references in addition to definitions.  Prevent
2805         setting TREE_STATIC on externals.
2806         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2807
2808 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2809
2810         PR documentation/15479
2811         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2812         Replace backets around optional parameters with @ovar
2813         where possible, use @r{[}, @r{]} otherwise.
2814         Replace some @r, @i, and @emph with @var where appropriate.
2815
2816 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2817
2818         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2819
2820 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2821
2822         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2823         -Wc++-compat warnings.
2824         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2825         __gnat_locate_exec_on_path): Likewise.
2826         * decl.c (annotate_value): Likewise.
2827         * misc.c (gnat_handle_option): Likewise.
2828         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2829         post_error_ne_tree): Likewise.
2830
2831 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2832
2833         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2834         version of its type, attempt to first convert its elements.
2835
2836 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2837
2838         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2839
2840 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2841
2842         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2843
2844 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2845
2846         * utils2.c (known_alignment): Derive the alignment from pointed-to
2847         types only if it is otherwise unknown.
2848         <INTEGER_CST>: Tidy.
2849         <MULT_EXPR>: Likewise.
2850         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2851         that of the base.
2852
2853 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2854
2855         PR ada/36573
2856         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2857
2858 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2859
2860         * gnat_rm.texi (Implementation Defined Characteristics)
2861         (Standard Library Routines): Use @smallexample for indented
2862         text.  Drop Indentation outside examples.
2863         * gnat_ugn.texi: Likewise.
2864
2865 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2866
2867         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2868         if undefined.
2869         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2870         realignment with force_align_arg_pointer attribute on foreign
2871         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2872
2873 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2874
2875         * utils.c (rest_of_record_type_compilation): When computing
2876         encodings for the components of a variable size type, early
2877         strip conversions on the current position expression to make
2878         sure it's shape is visible.  Use remove_conversions for this
2879         purpose.
2880
2881 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2882
2883         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2884         constrained subtype of a discriminated type, discard the fields that
2885         are beyond its limits according to its size.
2886
2887 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2888
2889         * utils.c (create_subprog_decl): If this is for the 'main' entry
2890         point according to the asm name, redirect main_identifier_node.
2891
2892 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2893
2894         * decl.c (components_to_record): Adjust the packedness for the
2895         qualified union as well.
2896
2897 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2898
2899         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2900         checks non fatal.
2901
2902 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2903
2904         * sem_res.adb (Large_Storage_Type): A type is large if it
2905         requires as many bits as Positive to store its values and its
2906         bounds are known at compile time.
2907         * sem_ch13.adb (Minimum_Size): Note that this function returns
2908         0 if the size is not known at compile time.
2909
2910 2008-06-06  Nicolas Setton  <setton@adacore.com>
2911             Olivier Hainque  <hainque@adacore.com>
2912
2913         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2914         attribute, parallel descriptive type attached to another
2915         type for debug info generation purposes.
2916         * utils.c (add_parallel_type): New function, register
2917         parallel type to be attached to a type.
2918         (get_parallel_type): New function, fetch a registered
2919         parallel type, if any.
2920         (rest_of_record_type_compilation): Register the parallel
2921         type we make for variable size records.
2922         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2923         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2924         parallel debug types we make.
2925         * trans.c (extract_encoding, decode_name): New functions.
2926         (gigi): If the DWARF attribute extensions are available, setup
2927         to use them.
2928         * lang.opt: Register language specific processing request
2929         for -gdwarf+.
2930         * misc.c (gnat_dwarf_extensions): New global variable. How much
2931         do we want of our DWARF extensions. 0 by default.
2932         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2933         (gnat_post_options): Map gnat_dwarf_extensions to the
2934         commonuse_gnu_debug_info_extensions for later processing.
2935
2936 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2937
2938         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2939
2940 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2941
2942         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2943         * gnat_ugn.texi (Style Checking)
2944         (Adding the Results of Compiler Checks to gnatcheck Output)
2945         (Example of Binder Output File): Fix typos.
2946         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2947         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2948         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2949         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2950         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2951         sinfo.ads, utils.c: Fix typos in comments.
2952         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2953
2954 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2955
2956         * sem_eval.adb: Minor reformatting
2957
2958 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2959
2960         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2961         is abstract, do not apply abstractness check on subprogram if this is
2962         a renaming declaration.
2963
2964 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2965
2966         PR ada/864
2967         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2968         allow recognition of program suffix in addition to prefix.
2969
2970         * gnatchop.adb (Locate_Executable): Add support for prefix.
2971
2972         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2973         mlib-utl.adb: Adjust calls to Program_Name.
2974
2975 2008-05-29  Robert Dewar  <dewar@adacore.com>
2976
2977         * sem_ch3.adb: Minor reformatting
2978         * sem_prag.adb: Minor reformatting
2979         * sem_res.adb: Minor reformatting
2980         * sinput-p.ads: Minor reformatting
2981
2982 2008-05-29  Javier Miranda  <miranda@adacore.com>
2983
2984         * sem_util.adb:
2985         (Abstract_Interface_List): Add missing support for full type-declaration
2986         associated with synchronized types.
2987
2988 2008-05-29  Robert Dewar  <dewar@adacore.com>
2989
2990         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2991
2992 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2993
2994         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2995         access type, wrap the expression in a conversion to force an
2996         accessibility check.
2997
2998         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2999         accessibility checks even when expansion is disabled in order to
3000         generate messages in the presence of previous errors or in
3001         semantics-only mode.
3002
3003 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3004
3005         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3006         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3007
3008 2008-05-28  Vincent Celier  <celier@adacore.com>
3009
3010         PR ada/34446
3011         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3012         preprocessing expressions
3013
3014 2008-05-28  Vincent Celier  <celier@adacore.com>
3015
3016         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3017         for preprocessing
3018
3019         * sinput-p.ads: Minor comment update and reformatting
3020
3021 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3022
3023         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3024         type has a deeper level than any master only when it is the type of an
3025         access parameter.
3026
3027 2008-05-28  Javier Miranda  <miranda@adacore.com>
3028
3029         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3030
3031 2008-05-28  Javier Miranda  <miranda@adacore.com>
3032
3033         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3034         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3035         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3036         Add code that was previously located in
3037         Find_Overridden_Synchronized_Primitive because it is only used here.
3038
3039 2008-05-28  Sergey Rybin  <rybin@adacore.com>
3040
3041         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3042         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3043
3044 2008-05-28  Robert Dewar  <dewar@adacore.com>
3045
3046         * restrict.ads:
3047         Add missing restrictions, and properly label all GNAT defined ones
3048
3049         * rtsfind.ads:
3050         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3051         Add entry for Ada.Task_Termination.Set_Specific_Handler
3052         Add entry for Ada.Task_Termination.Specific_Handler
3053
3054         * s-rident.ads:
3055         Add missing restrictions and properly mark all gnat defined ones
3056
3057         * sem_ch3.adb:
3058         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3059
3060         * sem_res.adb:
3061         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3062
3063         * gnat_rm.texi: Add missing restrictions, and properly label all
3064         GNAT defined ones
3065
3066 2008-05-28  Robert Dewar  <dewar@adacore.com>
3067
3068         * restrict.adb:
3069         (Check_Restriction): violation of restriction No_Finalization is
3070         treated as a serious error to stop expansion
3071
3072 2008-05-28  Robert Dewar  <dewar@adacore.com>
3073
3074         * exp_util.adb: Minor reformatting
3075         * exp_util.ads: Minor reformatting.
3076
3077 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
3078
3079         * Make-lang.in: Remove gprmake.
3080
3081         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3082
3083 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
3084
3085         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3086         improper progenitor names, and avoid cascaded errors.
3087
3088 2008-05-28  Robert Dewar  <dewar@adacore.com>
3089
3090         * gnat_rm.texi: Add note on Old giving warning when applied to constant
3091
3092         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3093         a constant
3094
3095 2008-05-28  Robert Dewar  <dewar@adacore.com>
3096
3097         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3098         size
3099
3100 2008-05-28  Robert Dewar  <dewar@adacore.com>
3101
3102         * exp_ch5.adb:
3103         (Expand_Simple_Function_Return): Copy unaligned result into temporary
3104
3105 2008-05-28  Javier Miranda  <miranda@adacore.com>
3106
3107         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3108         for user-defined predefined primitives.
3109
3110         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3111         (Find_Overridden_Synchronized_Primitive): Ditto.
3112
3113         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3114
3115 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3116
3117         * a-ststio.adb, s-direio.adb:
3118         Further code clean up of previous change.
3119         Update comments.
3120
3121 2008-05-27  Vincent Celier  <celier@adacore.com>
3122
3123         * prj-nmsc.adb: Minor reformatting
3124
3125 2008-05-27  Bob Duff  <duff@adacore.com>
3126
3127         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3128         untagged private type with a tagged full type, where the full type has
3129         a self reference, create the corresponding class-wide type early, in
3130         case the self reference is "access T'Class".
3131
3132 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3133
3134         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3135         tasks and context is an object declaration. create master entity before
3136         expansion.
3137
3138 2008-05-27  Robert Dewar  <dewar@adacore.com>
3139
3140         * mlib-prj.adb: Minor reformatting
3141
3142         * prj-part.adb: Minor reformatting
3143
3144         * prj.ads: Minor reformatting
3145
3146         * exp_ch3.adb: Minor reformatting.
3147
3148         * sem_ch3.ads: Minor reformatting
3149
3150         * sem_eval.adb: Minor reformatting
3151
3152 2008-05-27  Vincent Celier  <celier@adacore.com>
3153
3154         * gnatcmd.adb:
3155         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3156
3157 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3158
3159         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3160         tasks, create an activation chain now, before the expansion into
3161         assignments and build-in-place calls that require the presence of an
3162         activation chain.
3163         (Backend_Processing_Possible): If the component type is inherently
3164         limited, the aggregate must be expanded into individual built-in-place
3165         assignments.
3166
3167         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3168         determine whether an allocation extra parameter must be built, to
3169         handle case of a private type whose full type is a discriminated type
3170         with defaults.
3171
3172 2008-05-27  Bob Duff  <duff@adacore.com>
3173
3174         * gnat_rm.texi:
3175         Document the new behavior regarding trampolines.
3176
3177 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3178
3179         * a-direio.adb, a-sequio.adb: Replace address clause by
3180         unrestricted_access, simpler and compatible with .NET.
3181
3182 2008-05-27  Vincent Celier  <celier@adacore.com>
3183
3184         * prj-part.adb:
3185         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3186         a project file, so that symbolic links are not resolved.
3187
3188 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3189
3190         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3191         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3192         portable across GNAT targets, since this kind of address clause is not
3193         supported by VM back-ends (.NET/JGNAT).
3194
3195 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3196
3197         * bindgen.adb: Update comments.
3198
3199         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3200
3201 2008-05-27  Vincent Celier  <celier@adacore.com>
3202
3203         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3204         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3205         mlib-tgt.adb, prj-env.adb, prj-env.ads:
3206         (Path_Information): New record type
3207         Use component of type Path_Information when there are two paths, one in
3208         canonical format and one in display format.
3209         Update the project manager to these new components.
3210
3211 2008-05-27  Robert Dewar  <dewar@adacore.com>
3212
3213         * makeutl.adb: Minor reformatting
3214         * prj-nmsc.adb: Minor reformatting
3215         * s-stausa.adb: Minor reformatting
3216         * s-stausa.ads: Minor reformatting
3217         * sem_ch6.adb: Minor reformatting
3218
3219 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3220
3221         * sem_res.adb: Minor comment fixes
3222
3223 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3224
3225         * makeutl.adb: Minor code reorganization
3226
3227         * exp_aggr.adb: Add ??? comment
3228         Fix typo
3229
3230         * exp_ch6.adb: Minor reformatting
3231
3232 2008-05-27  Quentin Ochem  <ochem@adacore.com>
3233
3234         * s-stausa.adb (Initialize): Updated result initialization, and
3235         initialization of environment stack.
3236         (Fill_Stack): Improved computation of the pattern zone, taking into
3237         account already filled at the calling point.
3238         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3239         Measure and Overflow_Guard.
3240         (Report_Result): Fixed computation of the result using new fields of
3241         Stack_Analyzer.
3242
3243         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3244         params by more explicit Stack_Size / Max_Pattern_Size params.
3245         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3246         Added Stack_Used_When_Filling field.
3247         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3248         Min_Measure and Max_Measure fields.
3249
3250         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3251
3252 2008-05-27  Vincent Celier  <celier@adacore.com>
3253
3254         * prj-nmsc.adb:
3255         (Check_File): Make sure that a unit that replaces the same unit in a
3256          project being extended is properly processed.
3257
3258 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3259
3260         * sem_ch3.adb:
3261         (Get_Discr_Value): Remove obsolete code that failed to find the value
3262         of a discriminant for an inherited task component appearing in a type
3263         extension.
3264
3265 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3266
3267         (System.File_IO.{Close, Delete, Reset}):
3268         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3269
3270         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3271         Pass File parameter by reference.
3272
3273 2008-05-27  Vincent Celier  <celier@adacore.com>
3274
3275         * prj-nmsc.adb:
3276         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3277         sources of the same project that have the same object file name.
3278         (Find_Explicit_Sources): Always remove a source exception that was not
3279         found.
3280
3281 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3282
3283         * sem_ch3.adb: Minor reformatting
3284
3285 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3286
3287         * sem_ch6.adb:
3288         (Is_Interface_Conformant): Handle properly a primitive operation that
3289         overrides an interface function with a controlling access result.
3290         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3291         inherited and overriding operations, omit as well the conformance check
3292         on result types, to prevent spurious errors.
3293
3294 2008-05-27  Vincent Celier  <celier@adacore.com>
3295
3296         * makeutl.ads, makeutl.adb:
3297         (Set_Location): New procedure
3298         (Get_Location): New function
3299         (Update_Main): New procedure
3300
3301 2008-05-27  Vincent Celier  <celier@adacore.com>
3302
3303         * prj-nmsc.adb:
3304         (Check_Library): Allow standard project to be extended as a static
3305         library project.
3306         (Get_Mains): Do not inherit attribute Main in an extending library
3307         project.
3308
3309 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3310
3311         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3312         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3313         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3314         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3315         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3316         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3317         * system-mingw.ads (Always_Compatible_Rep): Likewise.
3318         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3319         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3320         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3321
3322 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3323
3324         * sem_attr.adb: add guard to previous patch.
3325
3326 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3327
3328         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3329         a synchronized tagged type, do not attempt to build dispatch table for
3330         full view. The table is built for the corresponding record type, which
3331         has its own declaration.
3332
3333 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
3334
3335         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3336         to the known type entity E, rather than setting it to Any_Type. Fixes
3337         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3338         for objects whose type had an illegal constraint.
3339
3340 2008-05-27  Vincent Celier  <celier@adacore.com>
3341
3342         * gnat_ugn.texi:
3343         Add succinct documentation for attribute Excluded_Source_List_File
3344
3345 2008-05-27  Vincent Celier  <celier@adacore.com>
3346
3347         * prj-attr.adb: Add new project level attribute Map_File_Option
3348
3349         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3350
3351         * prj.ads: Minor reformatting and comment update
3352         (Project_Configuration): New component Map_File_Option
3353
3354         * snames.adb: New standard name Map_File_Option
3355
3356         * snames.ads: New standard name Map_File_Option
3357
3358 2008-05-27  Vincent Celier  <celier@adacore.com>
3359
3360         * xsnames.adb: Remove unused variable Oname
3361
3362 2008-05-27  Doug Rupp  <rupp@adacore.com>
3363
3364         * exp_ch6.adb:
3365         (Expand_N_Function_Call): Fix comments. Minor reformatting.
3366
3367         * exp_vfpt.ads:
3368         (Expand_Vax_Foreign_Return): Fix comments.
3369
3370 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3371
3372         * exp_dist.adb: Minor reformating
3373
3374 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3375
3376         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3377         No_Default_Initialization, which is now delayed until the freeze point
3378         of the object. Add a comment about deferral of the check.
3379
3380         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3381         on objects is moved here.
3382
3383 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3384
3385         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3386         (Compare_Array_S16): Adjust for above change.
3387         * s-casi32.adb (Uword): Likewise.
3388         (Compare_Array_S32): Likewise.
3389         * s-casi64.adb (Uword): Likewise.
3390         (Compare_Array_S64): Likewise.
3391         * s-caun16.adb (Uhalf): Likewise.
3392         (Compare_Array_U16): Likewise.
3393         * s-caun32.adb (Uword): Likewise.
3394         (Compare_Array_U32): Likewise.
3395         * s-caun64.adb (Uword): Likewise.
3396         (Compare_Array_U64): Likewise.
3397
3398 2008-05-26  Robert Dewar  <dewar@adacore.com>
3399
3400         * exp_ch6.adb: Add ??? comment for previous change
3401
3402         * exp_vfpt.adb: Minor reformatting
3403
3404         * exp_vfpt.ads: Add ??? comment for last change
3405
3406         * sem_attr.adb: Add some ??? comments for previous change
3407
3408         * s-vaflop.ads: Add comments for previous change
3409
3410 2008-05-26  Doug Rupp  <rupp@adacore.com>
3411
3412         * s-vaflop-vms-alpha.adb:
3413         Remove System.IO use clause, to prevent spurious ambiguities when
3414         package is access through rtsfind.
3415
3416 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3417
3418         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3419         made in front-end
3420
3421 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3422
3423         * sem_attr.adb:
3424         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3425         converted to S (A)'address only if A .. B is known to be a non-null
3426         range.
3427
3428 2008-05-26  Doug Rupp  <rupp@adacore.com>
3429
3430         * s-vaflop.adb:
3431         (Return_D, Return_F, Return_G): New functions.
3432
3433         * s-vaflop.ads:
3434         (Return_D, Return_F, Return_G): New functions.
3435
3436         * exp_vfpt.adb:
3437         (Expand_Vax_Foreign_Return): New procedure
3438
3439         * exp_vfpt.ads:
3440         (Expand_Vax_Foreign_Return): New procedure
3441
3442         * rtsfind.ads:
3443         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3444         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3445
3446         * exp_ch6.adb:
3447         Import Exp_Vfpt
3448         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3449
3450         * s-vaflop-vms-alpha.adb:
3451         (Return_D, Return_F, Return_G): New functions.
3452
3453 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3454
3455         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3456         init proc entity when there is actual default initialization associated
3457         with the component type, to avoid spurious errors on objects of scalar
3458         array types that are marked Is_Public when No_Default_Initialization
3459         applies.
3460
3461 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3462
3463         * rtsfind.ads, rtsfind.adb:
3464         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3465         (Check_RPC): Support per-PCS-kind API versioning.
3466
3467         exp_dist.ads, exp_dist.adb:
3468         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3469         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3470          library function Get_RACW.
3471         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3472         library function Get_Reference.
3473         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3474         through an intermediate Any.
3475         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3476         going through an intermediate Any.
3477
3478         * sem_dist.adb: Minor reformatting.
3479
3480 2008-05-26  Javier Miranda  <miranda@adacore.com>
3481
3482         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3483         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3484         (Is_Internal): Adding documentation on internal entities that have
3485         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3486
3487         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3488         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3489         Added assertion to force entities with this attribute to have
3490         attribute Is_Internal set to True.
3491         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3492
3493         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3494         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3495         a new implementation.
3496         (Add_Interface_Tag_Components): Remove special management of
3497         synchronized interfaces.
3498         (Analyze_Interface_Declaration): Minor reformating
3499         (Build_Derived_Record_Type): Minor reformating
3500         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3501         predefined primitive inherited from interface type because the body of
3502         internally generated predefined primitives of tagged types are generated
3503         later by Freeze_Type
3504         (Derive_Subprogram): Avoid generating an internal name if the parent
3505         subprogram overrides an interface primitive.
3506         (Derive_Subprograms): New implementation that keeps separate the
3507         management of tagged types not implementing interfaces, from tagged
3508         types that implement interfaces.
3509         (Is_Progenitor): New implementation.
3510         (Process_Full_View): Add documentation
3511         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3512         by call to Derive_Progenitor_Subprograms.
3513
3514         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3515         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3516         Skip_Controlling_Formals.
3517
3518         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3519         (Check_Conventions): New implementation. Remove local subprogram
3520         Skip_Check. Remove formal Search_From of routine Check_Convention.
3521         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3522         Skip_Controlling_Formals.
3523         (New_Overloaded_Entity): Enable addition of predefined dispatching
3524         operations.
3525
3526         * sem_disp.ads
3527         (Find_Primitive_Covering_Interface): New subprogram.
3528
3529         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3530         the task body procedure as a primitive of the corresponding tagged
3531         type.
3532         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3533         to the list of primitives.
3534         (Find_Primitive_Covering_Interface): New subprogram.
3535         (Override_Dispatching_Operation): Add documentation.
3536
3537         * sem_type.adb (Covers): Minor reformatings
3538
3539         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3540         Collect_Interfaces.
3541         Rename formal.
3542         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3543         (Implements_Interface): New subprogram.
3544         (Is_Parent): Removed.
3545         (Primitive_Names_Match): New subprogram.
3546         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3547         (Ultimate_Alias): New subprogram.
3548
3549         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3550         Collect_Interfaces.
3551         Remove special management for synchronized types. Rename formal. Remove
3552         internal subprograms Interface_Present_In_Parent and Add_Interface.
3553         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3554         on non-record types by code to return false in such case.
3555         (Implements_Interface): New subprogram.
3556         (Is_Parent): Removed. No special management is now required for
3557         synchronized types covering interfaces.
3558         (Primitive_Names_Match): New subprogram.
3559         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3560         (Ultimate_Alias): New subprogram.
3561
3562         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3563         Add internal entities associated with secondary dispatch tables to
3564         the list of tagged type primitives that are not interfaces.
3565         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3566         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3567         the management of predefined equality operator. In addition, if
3568         the type has an equality function corresponding with a primitive
3569         defined in an interface type, the inherited equality is abstract
3570         as well, and no body can be created for it.
3571
3572         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3573         exp_util to exp_disp.
3574         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3575         an entity corresponds with one of the predefined primitives required
3576         to implement interfaces.
3577         Update copyright notice.
3578
3579         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3580         final check on abstract subprograms all the primitives associated with
3581         interface primitives because they must be visible in the public and
3582         private part.
3583         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3584         interface type. This allows the use of this routine, for debugging
3585         purposes, when the tagged type is not fully decorated.
3586         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3587         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3588         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3589         entity corresponds with one of the predefined primitives required to
3590         implement interfaces.
3591
3592         * exp_util.adb (Find_Interface_ADT): New implementation
3593         (Find_Interface): Removed.
3594
3595         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3596         list of interfaces associated with nodes
3597         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3598
3599 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3600
3601         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3602         condition for assignment to temporary.
3603
3604 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3605
3606         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3607         checks on the upper bound if the index type is a modular type, to
3608         prevent wrap-around computations when size is close to upper bound of
3609         type.
3610
3611 2008-05-26  Robert Dewar  <dewar@adacore.com>
3612
3613         * sem_ch3.adb: Minor reformatting
3614
3615 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3616
3617         * sem_ch12.adb (Remove_Parent): Use specification of instance
3618         to retrieve generic parent,
3619         to handle properly the case where the instance is a child unit.
3620         Add guard to handle properly wrapper packages.
3621         Minor reformatting
3622
3623 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3624
3625         * sinfo.ads: Minor reformatting
3626
3627 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3628
3629         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3630         Generate a tag check when the result subtype of a function, defined by
3631         an access definition, designates a specific tagged type.
3632         (Make_Tag_Check): New routine.
3633
3634 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3635
3636         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3637
3638 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3639
3640         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3641         (builtin_decl_for): Likewise.
3642         * trans.c (gigi): Likewise.
3643         * utils.c (def_builtin_1): Fix formatting.
3644
3645 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3646
3647         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3648         Create the statements which map a string name to protected or task
3649         entry indix.
3650
3651         * exp_ch9.adb: Add with and use clause for Stringt.
3652         Minor code reformatting.
3653         (Build_Entry_Names): New routine.
3654         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3655         for flag Build_Entry_Names which controls the allocation of the data
3656         structure for the string names of entries.
3657
3658         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3659
3660         * exp_util.adb (Entry_Names_OK): New function.
3661
3662         * exp_util.ads (Entry_Names_OK): New function.
3663
3664         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3665         enumerations RE_Id and RE_Unit_Table.
3666
3667         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3668         (Free_Entry_Names_Array): New routine.
3669
3670         * s-taskin.ads: Comment reformatting.
3671         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3672         Add component Entry_Names to record Ada_Task_Control_Block.
3673         (Free_Entry_Names_Array): New routine.
3674
3675         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3676         dynamically allocate an array
3677         of string pointers. This structure holds string entry names.
3678         (Free_Entry_Names): New routine.
3679         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3680         (Set_Entry_Names): New routine.
3681
3682         * s-tassta.ads:
3683         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3684         control the allocation of the data structure which stores entry names.
3685         (Set_Entry_Name): New routine.
3686
3687         * s-tpoben.adb:
3688         Add with and use clause for Ada.Unchecked_Conversion.
3689         (Finalize): Deallocate the entry names array.
3690         (Free_Entry_Names): New routine.
3691         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3692         create an array of string pointers to hold the entry names.
3693         (Set_Entry_Name): New routine.
3694
3695         * s-tpoben.ads:
3696         Add field Entry_Names to record Protection_Entries.
3697         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3698         (Set_Entry_Name): New routine.
3699
3700 2008-05-26  Vincent Celier  <celier@adacore.com>
3701
3702         * prj-nmsc.adb:
3703         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3704
3705         * prj.ads:
3706         (Project_Configuration): New component Shared_Lib_Driver
3707
3708 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3709
3710         * inline.adb:
3711         (Cleanup_Scopes): For a protected operation, transfer finalization list
3712         to protected body subprogram, to force cleanup actions when needed.
3713
3714 2008-05-26  Robert Dewar  <dewar@adacore.com>
3715
3716         * sem_cat.adb: Minor reformatting
3717
3718         * gnatname.adb: Minor reformatting
3719
3720         * osint.ads: Minor reformatting
3721
3722         * s-carun8.ads: Minor reformatting
3723
3724         * g-heasor.ads: Minor comment fix (unit is now pure)
3725
3726 2008-05-26  Robert Dewar  <dewar@adacore.com>
3727
3728         * exp_ch2.adb:
3729         (Expand_Current_Value): Properly type generated integer literal
3730
3731 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3732
3733         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3734         Separate_Numeric_Error_Handlers.
3735
3736 2008-05-26  Pascal Obry  <obry@adacore.com>
3737
3738         * sem_aggr.adb: Minor reformatting.
3739
3740 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3741
3742         * s-osinte-aix.adb:
3743         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3744         the scheduling policy to FIFO within priorities or round-robin
3745         respectively.
3746         Hence, the priority must be set in this case to the one selected by the
3747         user.
3748
3749 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3750
3751         * sem_ch12.adb:
3752         (Remove_Parent): If the enclosing scope is an instance whose generic
3753         parent is declared within some parent scope of the just completed
3754         instance, make full views of the entities in that parent visible, when
3755         applicable.
3756
3757 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3758
3759         * mingw32.h (STD_MINGW): Set to true for target w64.
3760
3761 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3762
3763         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3764         instead of TREE_STATIC on the ADDR_EXPR.
3765
3766 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3767
3768         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3769         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3770         GNAT standard locations.
3771
3772 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3773
3774         * gigi.h (mark_visited): Declare.
3775         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3776         only the topmost node of expressions.
3777         (elaborate_expression_1): Look deeper for read-only variables.
3778         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3779         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3780         (mark_visited_r): New function.
3781
3782 2008-05-23  Vincent Celier  <celier@adacore.com>
3783
3784         * snames.adb: New standard name Excluded_Source_List_File.
3785
3786         * snames.ads: New standard name Excluded_Source_List_File.
3787
3788         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3789
3790         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3791         Get excluded sources from
3792         file indicated by attribute Excluded_Source_List_File, when present and
3793         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3794
3795 2008-05-23  Robert Dewar  <dewar@adacore.com>
3796
3797         * exp_dist.adb: Minor reformatting
3798
3799 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3800
3801         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3802         slice, convert it to an indexed component, which is equivalent, more
3803         efficient, and usable even if the slice itself is not addressable.
3804
3805 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3806
3807         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3808         convention also allows access to named compiler built-in subprograms
3809         such as the GCC __builtin family.
3810
3811 2008-05-23  Vincent Celier  <celier@adacore.com>
3812
3813         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3814         sep. If there are several possibilities, choose the one with the
3815         longer prefix.
3816
3817 2008-05-23  Vincent Celier  <celier@adacore.com>
3818
3819         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3820         back end switches when executable specified with --GCC= is same as
3821         default, even if there are additional options.
3822
3823         * gnat_ugn.texi:
3824         Document when the back end switches from the ALI file are taken into
3825         account when gnatlink is invoked with --GCC=
3826
3827 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3828
3829         * s-os_lib.adb:
3830         (copy_File): Do not open destination file if source file is unreadable.
3831
3832 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3833
3834         * utils.c (handle_type_generic_attribute): Adjust to accept
3835         fixed arguments before an elipsis.
3836
3837 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3838
3839         * g-sothco.ads, g-sothco.adb: New files.
3840
3841 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3842
3843         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3844
3845         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3846         Add missing "with" of Ada.Unchecked_Conversion
3847
3848         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3849         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3850         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3851         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3852         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3853         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3854         Move common code out of GNAT.Sockets.Thin implementations and into
3855         Thin_Common.
3856         New constant SIZEOF_fd_set
3857         New flag Has_Sockaddr_Len
3858         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3859
3860         * g-stsifd-sockets.adb
3861         (Create): Remove call to Set_Length; use Set_Family to set the family
3862         and (on appropriate platforms) length fields in struct sockaddr.
3863
3864         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3865         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3866         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3867         Move common code out of GNAT.Sockets.Thin implementations and into
3868         Thin_Common.
3869
3870         * g-socket.ads, g-socket.adb:
3871         Move common code out of GNAT.Sockets.Thin implementations and into
3872         Thin_Common.
3873         (Connect_Socket, Accept_Socket): Provide new versions of these two
3874         routines that operate with a user specified timeout.
3875         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3876         this is now handled automatically by Set_Family on platforms that
3877         require it.
3878
3879         * gen-soccon.c:
3880         Move common code out of GNAT.Sockets.Thin implementations and into
3881         Thin_Common.
3882         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3883         this constant to 0 (not -1) because we use it to initialize an
3884         unsigned_char value.
3885         Align values for numeric constants only.
3886         Handle the case of systems that do not support AF_INET6.
3887         New constant SIZEOF_fd_set
3888         New flag Has_Sockaddr_Len
3889         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3890
3891         * gsocket.h: New flag Has_Sockaddr_Len
3892         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3893
3894 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3895
3896         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3897
3898 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3899
3900         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3901         the underlying issue with malloc/free has been fixed. Remove associated
3902         comments.
3903         Minor reformatting.
3904         Related to PR ada/24533
3905
3906 2008-05-20  Robert Dewar  <dewar@adacore.com>
3907
3908         * ali.adb: Correct casing of ASCII.NUL
3909
3910         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3911         properly.
3912
3913 2008-05-20  Robert Dewar  <dewar@adacore.com>
3914             Gary Dismukes  <dismukes@adacore.com>
3915
3916         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3917         overflow if result converted to wider integer type.
3918         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3919         discriminated types when discriminant checks are suppressed.
3920
3921 2008-05-20  Vincent Celier  <celier@adacore.com>
3922
3923         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3924         Wide_Wide_Character.
3925
3926 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3927
3928         * decl.c: Do not emit a variable for a object that has an address
3929         representation clause whose value is known at compile time.
3930         When a variable has an address clause whose value is known at compile
3931         time, refer to this variable by using directly the address instead of
3932         dereferencing a pointer.
3933
3934 2008-05-20  Robert Dewar  <dewar@adacore.com>
3935
3936         PR ada/30740
3937         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3938         subtypes, always False for non-modular types.
3939         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3940         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3941         for Shared_Storage package.
3942         (Is_RACW_Stub_Type): New entity flag.
3943
3944         * exp_ch4.adb
3945         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3946         case where we have a modular type with a non-binary modules.
3947         Comments reformattings.
3948
3949         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3950         all types.
3951
3952 2008-05-20  Javier Miranda  <miranda@adacore.com>
3953
3954         * exp_aggr.adb
3955         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3956         tests did not covered the case in which the type of the aggregate has
3957         no progenitors but some its parents has progenitors.
3958
3959 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3960             Hristian Kirtchev  <kirtchev@adacore.com>
3961
3962         * exp_ch3.adb
3963         (Expand_N_Object_Declaration): Correct the condition which triggers the
3964         generation of a call to Displace when initializing a class-wide object.
3965         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3966         when Frontend_Layout_On_Target is true to ensure that they're available
3967         for calling when a record variant size function is built in Layout.
3968
3969 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3970
3971         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3972         procedure for a derived type retrieve the discriminant values from the
3973         parent using the corresponding discriminant.
3974         (Expand_N_Assignment_Statement): Skip generation of implicit
3975         if-statement associated with controlled types if we are
3976         compiling with restriction No_Finalization.
3977
3978 2008-05-20  Vincent Celier  <celier@adacore.com>
3979
3980         * prj.adb (Hash (Project_Id)): New function
3981         (Project_Empty): Add new component Interfaces_Defined
3982
3983         * prj.ads (Source_Data): New component Object_Linked
3984         (Language_Config): New components Object_Generated and Objects_Linked
3985         (Hash (Project_Id)): New function
3986         (Source_Data): New Boolean components In_Interfaces and
3987         Declared_In_Interfaces.
3988         (Project_Data): New Boolean component Interfaces_Defined
3989
3990         * prj-attr.adb:
3991         New project level attribute Object_Generated and Objects_Linked
3992         Add new project level attribute Interfaces
3993
3994         * prj-dect.adb: Use functions Present and No throughout
3995         (Parse_Variable_Declaration): If a string type is specified as a simple
3996         name and is not found in the current project, look for it also in the
3997         ancestors of the project.
3998
3999         * prj-makr.adb:
4000         Replace procedure Make with procedures Initialize, Process and Finalize
4001         to implement H414-023: process different directories with different
4002         patterns.
4003         Use functions Present and No throughout
4004
4005         * prj-makr.ads:
4006         Replace procedure Make with procedures Initialize, Process and Finalize
4007
4008         * prj-nmsc.adb
4009         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4010         the language configuration.
4011         (Process_Project_Level_Array_Attributes): Process new attributes
4012         Object_Generated and Object_Linked.
4013         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4014         False, to indicate that the erreor/warning is a continuation.
4015         (Check): Call Report_No_Sources with Contnuation = True after the first
4016         call.
4017         (Error_Msg): Process successively contnuation character and warning
4018         character.
4019         (Find_Explicit_Sources): Check that all declared sources have been found
4020         (Check_File): Indicate in hash table Source_Names when a declared source
4021         is found.
4022         (Check_File): Set Other_Part when found
4023         (Find_Explicit_Sources): In multi language mode, check if all exceptions
4024         to the naming scheme have been found. For Ada, report an error if an
4025         exception has not been found. Otherwise, disregard the exception.
4026         (Check_Interfaces): New procedure
4027         (Add_Source): When Other_Part is defined, set mutual pointers in spec
4028         and body.
4029         (Check): In multi-language mode, call Check_Interfaces
4030         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4031         for an excluded source.
4032         (Remove_Source): A source replacing a source in the interfaces is also
4033         in the interfaces.
4034
4035         * prj-pars.adb: Use function Present
4036
4037         * prj-part.adb: Use functions Present and No throughout
4038         (Parse_Single_Project): Set the parent project for child projects
4039         (Create_Virtual_Extending_Project): Register project with no qualifier
4040         (Parse_Single_Project): Allow an abstract project to be extend several
4041         times. Do not allow an abstract project to extend a non abstract
4042         project.
4043
4044         * prj-pp.adb: Use functions Present and No throughout
4045         (Print): Take into account the full associative array attribute
4046         declarations.
4047
4048         * prj-proc.adb: Use functions Present and No throughout
4049         (Expression): Call itself with the same From_Project_Node for the
4050         default value of an external reference.
4051
4052         * prj-strt.adb: Use functions Present and No throughout
4053         (Parse_Variable_Reference): If a variable is specified as a simple name
4054         and is not found in the current project, look for it also in the
4055         ancestors of the project.
4056
4057         * prj-tree.ads, prj-tree.adb (Present): New function
4058         (No): New function
4059         Use functions Present and No throughout
4060         (Parent_Project_Of): New function
4061         (Set_Parent_Project_Of): New procedure
4062
4063         * snames.ads, snames.adb:
4064         Add new standard names Object_Generated and Objects_Linked
4065
4066 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4067
4068         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4069         and the derived type are of the same kind.
4070         (Expand_Call): Generate type conversions for actuals of
4071         record or array types when the parent and the derived types differ in
4072         size and/or packed status.
4073
4074 2008-05-20  Javier Miranda  <miranda@adacore.com>
4075             Ed Schonberg  <schonberg@adacore.com>
4076
4077         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4078         generating dispatch tables of locally defined tagged types statically.
4079         Remove implicit if-statement that is no longer required.
4080         (Expand_Dispatching_Call): If this is a call to an instance of the
4081         generic dispatching constructor, the type of the first argument may be
4082         a subtype of Tag, so always use the base type to recognize this case.
4083
4084 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4085
4086         * exp_dist.adb
4087         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4088         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4089         assigning NULL into the result, to avoid a spurious warning.
4090         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4091         is not frozen.
4092         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4093         type.
4094         (Build_From_Any_Function, Build_To_Any_Function,
4095         Build_TypeCode_Function): For a type that has user-specified stream
4096         attributes, use an opaque sequence of octets as the representation.
4097
4098 2008-05-20  Kevin Pouget  <pouget@adacore.com>
4099
4100         * exp_smem.ads, exp_smem.adb: Construction of access and assign
4101         routines has been replaced by an instantiation of
4102         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4103         shared variable declaration.
4104         Calls to access and assign routines have been replaced by calls to
4105         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4106         instantiated package.
4107
4108         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4109         It identifies the new generic package added in s-shasto.
4110
4111         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4112         is instantiated for each shared passive variable. It provides
4113         supporting procedures called upon each read or write access by the
4114         expanded code.
4115
4116         * sem_attr.adb:
4117         For this runtime unit (always compiled in GNAT mode), we allow
4118         stream attributes references for limited types for the case where
4119         shared passive objects are implemented using stream attributes,
4120         which is the default in GNAT's persistent storage implementation.
4121
4122 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4123
4124         * freeze.adb
4125         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4126         convention from its base type, do not set the type to that of integer,
4127         because it may inherit a size clause.
4128         Warn on a size clause with a size different
4129         from that of Integer, if the type has convention C.
4130
4131 2008-05-20  Vincent Celier  <celier@adacore.com>
4132
4133         * gnatname.adb
4134         (Scan_Args): Rewrite to take into account new switch --and to separate
4135         arguments into sections.
4136         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4137         section, then Finalize.
4138
4139 2008-05-20  Tristan Gingold  <gingold@adacore.com>
4140
4141         * init.c: Enable stack probing on ppc-linux.
4142
4143         * tracebak.c: Add symbolic traceback for ppc-linux.
4144
4145         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4146
4147 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4148
4149         * Makefile.in
4150         (common-tools): New rule, to avoid parallel build failure on gnat tools.
4151         Reenable parallel builds on this Makefile.
4152
4153         * Make-lang.in: Update dependencies.
4154
4155 2008-05-20  Robert Dewar  <dewar@adacore.com>
4156
4157         * opt.ads (Treat_Restrictions_As_Warnings): New switch
4158
4159         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4160         Treat_Restrictions_As_Warnings.
4161
4162         * switch-c.adb: Recognize new switch -gnatr
4163
4164         * usage.adb: Add line for -gnatr
4165
4166 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4167
4168         * par-ch3.adb
4169         (P_Access_Definition): Change the error message when parsing "access
4170         all" in Ada 95 mode. The message no longer forces the user to recompile
4171         in 05 mode only to discover that anonymous access types are not allowed
4172         to have "all".
4173
4174 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4175
4176         * par-ch9.adb
4177         (P_Protected): Update the error message on missing "-gnat05" switch when
4178         using interfaces in conjunction with protected types. Remove the
4179         incorrect error message associated with the presence of "private" after
4180         a "with".
4181
4182 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4183
4184         * sem_aggr.adb: Update comments.
4185         Improve previous change for PR ada/17985
4186
4187 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4188
4189         * sem_cat.adb
4190         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4191         the visible part of the spec of a remote types unit.
4192         (Validate_Remote_Access_Object_Type_Declaration):
4193         New local subprogram Is_Valid_Remote_Object_Type, replaces
4194         Is_Recursively_Limited_Private.
4195         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4196         non-controlling formals (and the return type, even though this is not
4197         explicit in the standard) must support external streaming.
4198         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4199         as above for of RAS types and RCI subprograms. (The return type is not
4200         checked yet).
4201         Update comments related to RACWs designating limited interfaces per
4202         ARG ruling on AI05-060.
4203
4204         * sem_util.ads, sem_util.adb
4205         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4206         Is_Remote_Call_Interface to identify RACW types in a stable and
4207         consistent way. We used to rely in this predicate on the privateness of
4208         the designated type and its ancestors, but depending on the currently
4209         visible private parts, this caused false negatives. We now uniformly
4210         rely on checks made at the point where the RACW type is declared.
4211         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4212
4213 2008-05-20  Javier Miranda  <miranda@adacore.com>
4214             Ed Schonberg  <schonberg@adacore.com>
4215             Hristian Kirtchev  <kirtchev@adacore.com>
4216
4217         * sem_ch3.adb
4218         (Analyze_Object_Declaration): Fix over-conservative condition
4219         restricting use of predefined assignment with tagged types that have
4220         convention CPP.
4221         (Analyze_Object_Declaration): Relax the check regarding deferred
4222         constants declared in scopes other than packages since they can be
4223         completed with pragma Import.
4224         Add missing escaping of all-caps word 'CPP' in error messages.
4225         (Build_Discriminated_Subtype): Do not inherit representation clauses
4226         from parent type if subtype already carries them, because they are
4227         inherited earlier during derivation and already include those that may
4228         come from a partial view.
4229
4230         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4231         Check the declarations of a subprogram body for proper deferred
4232         constant completion.
4233
4234         * sem_ch7.ads, sem_ch7.adb
4235         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4236
4237 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4238             Thomas Quinot  <quinot@adacore.com>
4239
4240         * sem_ch4.adb
4241         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4242         F is a parameterless function that returns an array, and S is a subtype
4243         mark.
4244         (Analyze_Call): Insert dereference when the prefix is a parameterless
4245         function that returns an access to subprogram and the call has
4246         parameters.
4247         Reject a non-overloaded call whose name resolves to denote
4248         a primitive operation of the stub type generated to support a remote
4249         access-to-class-wide type.
4250
4251 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4252
4253         * sem_ch8.adb
4254         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4255         when there is a use clause for the same entity in the context.
4256         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4257         created for a stream attribute of an abstract type or interface type.
4258
4259 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4260
4261         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4262         subprogram.
4263
4264         * sem_type.adb
4265         (Add_One_Interp): Ignore any interpretation that is a primitive
4266         operation of an RACW stub type (these primitives are only executed
4267         through dispatching, never through static calls).
4268         (Collect_Interps): When only one interpretation has been found, set N's
4269         Entity and Etype to that interpretation, otherwise Entity and Etype may
4270         still refer to an interpretation that was ignored by Add_One_Interp,
4271         in which case would end up with being marked as not overloaded but with
4272         an Entity attribute not pointing to its (unique) correct interpretation.
4273
4274 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4275
4276         * sem_eval.adb
4277         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4278         denotes the whole array of its prefix.
4279
4280 2008-05-20  Robert Dewar  <dewar@adacore.com>
4281
4282         * sem_res.adb (Resolve_Op_Not): Warn on double negation
4283
4284 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4285
4286         * sprint.adb
4287         (Print_Itype): Do not modify the sloc of the component type of a
4288         (packed) array itype, because it is an unrelated type whose source
4289         location is independent of the point of creation of the itype itself.
4290
4291 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4292
4293         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4294         Append.
4295
4296 2008-05-20  Robert Dewar  <dewar@adacore.com>
4297             Vincent Celier  <celier@adacore.com>
4298
4299         * vms_data.ads: Add entry for -gnatr
4300         Put GNAT SYNC section in proper alpha order
4301         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4302
4303         * gnat_ugn.texi: Add documentation for new gnatname switch --and
4304         Update the style checks section
4305         Add documentation of -gnatr
4306         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4307         subsection the explanation how compiler checks should be disabled for
4308         gnatcheck.
4309         Update the list of Ada 95 reserved words used by in the project language
4310         Add documentation for project qualifiers.
4311         Document that abstract projects may be extended by different projects in
4312         the same project tree.
4313         Add documentation for gnatmake switch -d
4314
4315         * ug_words: Add -gnatyy VMS equivalence string.
4316         Add entry for -gnatr
4317
4318 2008-05-20  Bob Duff  <duff@adacore.com>
4319
4320         * a-rttiev.adb
4321         (Set_Handler): Remove code from both of these that implements
4322         RM-D.15(15/2), because it causes a race condition and potential
4323         deadlock.
4324         (Process_Queued_Events): Add comment explaining "exception when others
4325         => null". Add clarifying ".all", even though implicit .all is legal
4326         here.
4327
4328 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4329
4330         * s-winext.ads: Replace representation clause by pragma Pack. Gives
4331         equivalent representation, but has the advantage of allowing
4332         compilation of this file under 64 bits platforms.
4333
4334         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4335
4336         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4337
4338         * adaint.c:
4339         Don't define dummy implementation of convert_addresses on ppc-linux.
4340
4341 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4342
4343         * exp_ch7.adb
4344         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4345         if expression is aggregate component.
4346
4347 2008-05-20  Robert Dewar  <dewar@adacore.com>
4348
4349         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4350         sem_ch12.adb: Update comments. Minor reformatting.
4351
4352         * exp_ch2.adb: Typo
4353
4354         * s-unstyp.ads: Fixed some typos in comments.
4355
4356 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4357
4358         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4359         type/constant.
4360
4361         * g-socthi-vxworks.ads: Update to latest socket changes.
4362
4363         * a-caldel-vms.adb: Resync with a-caldel spec.
4364
4365         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4366         Update comments.
4367
4368 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4369
4370         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4371         for dummy types pointed to by the converted pointer types.
4372
4373 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4374
4375         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4376         of records and unions.
4377         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4378
4379 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
4380             Robert Dewar <dewar@adacore.com>
4381
4382         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4383         restrictions to the prefix of 'Old.
4384         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4385         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4386         variables.
4387
4388 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4389
4390         PR ada/24880
4391         PR ada/26635
4392         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4393         expression to an integral type with lower precision, use NOP_EXPR
4394         directly in a couple of special cases.
4395
4396 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4397             Ed Schonberg <schonberg@adacore.com>
4398
4399         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4400         constraint expressions.
4401
4402 2008-05-12  Tomas Bily  <tbily@suse.cz>
4403
4404         * utils2.c (known_alignment, contains_save_expr_p)
4405         (gnat_mark_addressable): Use CASE_CONVERT.
4406         * decl.c (annotate_value): Likewise.
4407         * trans.c (maybe_stabilize_reference): Likewise.
4408         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4409         * utils.c (rest_of_record_type_compilation): Likewise.
4410         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4411         (protect_multiple_eval): Likewise.
4412
4413 2008-05-08  Andreas Schwab  <schwab@suse.de>
4414
4415         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4416         DECL_IS_PURE to DECL_PURE_P.
4417
4418 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4419
4420         * decl.c (maybe_pad_type): Add ??? comment.
4421
4422 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4423
4424         * decl.c (components_to_record): Zero the alignment of the qualified
4425         union built for the variant part upon creating it.
4426
4427 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4428
4429         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4430         mode even if the alignment is not a factor of the original size.  But
4431         make sure to create the inner field with the original size.  Reorder.
4432         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4433         record as always addressable.
4434         * utils.c (convert): Deal specially with conversions between original
4435         and packable versions of a record type.
4436         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4437         recognizing an assignment between padded objects.
4438
4439 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4440
4441         * decl.c (make_packable_type): Resize the last component to its RM size
4442         only if it is of an aggregate type.
4443         * trans.c (call_to_gnu): Fix nit in comment.
4444         (gnat_to_gnu): Likewise.
4445
4446 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4447
4448         * Makefile.in: Adapt sh4-linux target.
4449
4450 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4451
4452         PR ada/35792
4453         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4454         tagged type by an untagged protected or task type.
4455
4456 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4457             Tristan Gingold  <gingold@adacore.com>
4458
4459         PR ada/36007
4460         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4461         of aliased objects with an unconstrained nominal subtype.
4462         Cap the promotion to the effective alignment of the word mode.
4463
4464 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4465
4466         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4467         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4468         Use '&&' instead of ';'.
4469
4470 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4471
4472         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4473         doesn't require signed arithmetic anymore.
4474
4475 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4476
4477         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4478         (call_to_gnu): Don't set TREE_INVARIANT.
4479         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4480
4481 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4482
4483         * s-osinte-rtems.adb: Add sigalstack function.
4484         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4485         function. Add Alternate_Stack and Alternate_Stack_Size.
4486         Add missing process_shared field to pthread_condattr_t
4487         and change ss_low_priority to int from timespec.
4488
4489 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4490
4491         * i-forbla.adb: Link against -llapack and -lblas by default
4492         instead of the private -lgnalasup.
4493
4494 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4495
4496         Access to most C builtins from Ada
4497         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4498         (handle_pure_attribute, handle_novops_attribute,
4499         handle_nonnull_attribute, handle_sentinel_attribute,
4500         handle_noreturn_attribute, handle_malloc_attribute,
4501         handle_type_generic_attribute): New attribute handlers, from C fe.
4502         (gnat_internal_attribute_table): Map the new handlers.
4503         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4504         (init_gigi_decls): ... here.
4505         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4506         Move to a section dedicated to builtins processing.
4507         (build_void_list_node, builtin_type_for_size): New functions.
4508         (def_fn_type, get_nonnull_operand): Likewise.
4509         (install_builtin_elementary_type, install_builtin_function_types,
4510         install_builtin_attributes): Likewise.
4511         (fake_attribute_handler): Fake handler for attributes we don't
4512         support in Ada.
4513         (def_builtin_1): New function, worker for DEF_BUILTIN.
4514         (install_builtin_functions): New function.
4515         (gnat_install_builtins): Move to the builtins processing section.
4516         Now calling the newly introduced installers.
4517
4518 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4519
4520         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4521         constant objects, but not exceptions.
4522         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4523         compatibility test.
4524         * utils.c (create_var_decl_1): Likewise.
4525         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4526         the type when copying to padded object and the source is a constructor.
4527
4528 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4529
4530         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4531         alignment, reset it to zero if it would end up not being greater
4532         than that of the type.
4533
4534 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4535
4536         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4537         the padded type has a variable size.
4538
4539 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4540
4541         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4542         target pointer mechanism as soon as the size is not constant.
4543
4544 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4545
4546         * gigi.h (create_var_decl_1): Declare.
4547         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4548         (create_true_var_decl): Likewise.
4549         * utils.c (create_var_decl_1): Make global and reorder parameters.
4550         (create_var_decl): Delete.
4551         (create_true_var_decl): Likewise.
4552
4553 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4554
4555         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4556         objects by default.
4557         * fe.h (Debug_Flag_Dot_A): Delete.
4558         * debug.adb (-gnatd.a): Update documentation.
4559
4560 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4561
4562         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4563         "not null" parameter.
4564
4565 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4566
4567         * g-socket.adb: Add a message "IPv6 not supported" to the
4568         Socket_Error exception.
4569
4570 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4571
4572         PR ada/29015
4573         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4574         the type is known instead of the underlying type.
4575
4576 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4577
4578         PR ada/22387
4579         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4580         procedure for a derived type retrieve the discriminant values from
4581         the parent using the corresponding discriminant.
4582
4583 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4584             Gary Dismukes  <dismukes@adacore.com>
4585
4586         PR ada/28733
4587         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4588         which is not an entity (and hence not a package).
4589         (End_Use_Package): Ditto.
4590
4591 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4592
4593         PR ada/16086
4594         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4595         protected operation that matches the signature, not only an entry, a
4596         regular subprogram or a literal.
4597
4598 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4599
4600         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4601         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4602         if a size or alignment is specified.  Do not take into account
4603         alignment promotions for the computation of the object's size.
4604         <type>: Call maybe_pad_type only if a size or alignment is specified.
4605         (maybe_pad_type): Really reuse the RM_Size of the original type if
4606         requested.
4607         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4608         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4609         statements.  Use the padded view of the type when copying between
4610         padded objects of the same underlying type.
4611
4612 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4613
4614         * vms_data.ads: Fix typo in constant.
4615         * gen-soccon.c: Fix typo in error string.
4616         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4617         Fix typos.
4618         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4619         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4620         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4621         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4622         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4623         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4624         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4625         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4626         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4627         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4628         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4629         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4630         sinfo.ads: Fix typos in comments.
4631
4632 2008-04-14  Robert Dewar  <dewar@adacore.com>
4633
4634         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4635         to every non-object and change error message.
4636
4637 2008-04-14  Robert Dewar  <dewar@adacore.com>
4638
4639         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4640         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4641         directly.
4642
4643 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4644
4645         PR ada/18680
4646         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4647         apply pragma Linker_Section on type.
4648
4649 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4650
4651         PR ada/16098
4652         * sem_prag.adb (Error_Pragma_Ref): New.
4653         (Process_Convention): Specialized message for non-local
4654         subprogram renaming. Detect the problem in homonyms as well.
4655
4656 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4657
4658         PR ada/15915
4659         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4660         * sem_ch12.adb (Instantiate_Object): Use it.
4661         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4662         storage pool denotes a variable as per RM 13.11(15).
4663
4664 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4665
4666         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4667         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4668
4669 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4670
4671         PR ada/20822
4672         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4673         line endings even on non-Unix platforms.
4674
4675 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4676
4677         PR ada/35050
4678         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4679         renaming information.
4680
4681 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
4682
4683         PR ada/17985
4684         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4685         itself.
4686
4687 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4688
4689         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4690         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4691         snames.ads, sprint.adb, stand.ads, stringt.ads,
4692         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4693         switch.ads, sysdep.c, table.adb, table.ads,
4694         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4695         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4696         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4697         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4698         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4699         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4700         Fix comment typos.
4701
4702         * sem_ch10.adb, sem_ch10.ads,
4703         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4704         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4705         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4706         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4707         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4708         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4709         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4710         sem_warn.ads: Fix comment typos.
4711
4712         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4713         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4714         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4715         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4716         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4717         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4718         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4719         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4720         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4721         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4722         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4723         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4724         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4725         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4726         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4727         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4728         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4729         sem_cat.adb, sem_cat.ads: Fix comment typos.
4730
4731 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4732
4733         PR ada/35825
4734         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4735
4736 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4737
4738         * s-linux-hppa.ads: Fix syntax errors.
4739
4740 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4741
4742         * gnat_ugn.texi: Fix typos.
4743         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4744         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4745         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4746         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4747         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4748         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4749         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4750         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4751         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4752         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4753         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4754         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4755         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4756         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4757         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4758         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4759         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4760         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4761         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4762         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4763         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4764         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4765         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4766         s-rident.ads: Fix comment typos.
4767
4768 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4769
4770         PR ada/28305
4771         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4772         environment if generic instance is a top-level one.
4773
4774 2008-04-09  Doug Rupp  <rupp@adacore.com>
4775
4776         * decl.c (validate_size): Set minimum size for fat pointers same as
4777         access types. Code clean ups.
4778
4779         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4780         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4781
4782         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4783
4784         * s-crtl.ads (malloc32) New function, alias for malloc
4785         (realloc32) New function, alias for realloc
4786
4787         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4788
4789         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4790         allocator size is 32 and default pointer size is 64.
4791         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4792         lhs type if smaller, whatever the modes.
4793
4794         * gigi.h (malloc32_decl): New macro definition
4795
4796         * utils.c (init_gigi_decls): New malloc32_decl
4797         Various code clean ups.
4798
4799         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4800         Task_Address vice System.Address.
4801
4802         * s-taspri-vms.ads: Import System.Aux_DEC
4803         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4804         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4805
4806         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4807         Task_Address vice System.Address.
4808
4809         * s-inmaop-vms.adb: Import System.Task_Primitives
4810         (To_Address): Unchecked convert to Task_Address vice System.Address
4811
4812         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4813         expires now.
4814         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4815         (To_Address) Unchecked convert to Task_Address vice System.Address
4816
4817         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4818
4819         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4820
4821 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4822
4823         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4824         (fdesc_type_node): Define.
4825         (null_fdesc_node): Likewise.
4826         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4827         uses descriptors for vtables and the type comes from a dispatch table,
4828         return the descriptor type.
4829         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4830         uses descriptors for vtables and the type comes from a dispatch table,
4831         build a descriptor in the static case and copy the existing one in the
4832         non-static case.
4833         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4834         the type is a pointer-to-subprogram coming from a dispatch table,
4835         return the null descriptor.
4836         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4837         vtables, the source type is the descriptor type and the target type
4838         is a pointer type, first build the pointer.
4839         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4840         build the descriptor type and the null descriptor.
4841
4842 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4843
4844         * decl.c (prepend_attributes): Fix typo.
4845         * trans.c (Pragma_to_gnu): Likewise.
4846         * utils.c (gnat_genericize): Likewise.
4847
4848 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4849             Richard Kenner  <kenner@adacore.com>
4850
4851         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4852         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4853         <E_Record_Type>: Try to get a better form of the component for
4854         packing, even if it has an integral mode.
4855         <E_Record_Subtype>: Likewise.
4856         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4857         exception suppressing the final conversion between record types.
4858
4859 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4860
4861         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4862         alignment for space, promote the alignment of non-scalar variables with
4863         no size and alignment.
4864         * gigi.h (gnat_types_compatible_p): Declare.
4865         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4866         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4867         * utils.c (gnat_types_compatible_p) : New predicate.
4868         (convert): Use it throughout to test for cases where a mere view
4869         conversion is sufficient.
4870         * utils2.c (build_binary_op): Minor tweaks.
4871         (build_unary_op): Likewise.
4872
4873 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4874
4875         * decl.c (adjust_packed): Expand comment.
4876
4877 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4878
4879         * s-tasuti.ads: Use Task_Address instead of System.Address.
4880
4881         * makeutl.adb (Path_Or_File_Name): New function
4882
4883         * nlists.ads, itypes.ads: Update comments.
4884
4885         * s-crtl.ads (malloc32, realloc32): New functions.
4886
4887         * s-auxdec.ads (Short_Address_Size): New constant.
4888
4889         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4890
4891         * s-ststop.ads, s-ststop.adb: New file.
4892
4893         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4894         Minor reformatting.
4895
4896 2008-04-08  Pascal Obry  <obry@adacore.com>
4897
4898         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4899         (Stop_Bits_Number): New type.
4900         (Parity_Check): Likewise.
4901         (Set): Add parameter to set the number of stop bits and
4902         the parity. Parameter timeout is now a duration instead
4903         of a plain integer.
4904
4905         * g-sercom-linux.adb:
4906         Implement the stop bits and parity support for GNU/Linux.
4907         Fix handling of timeout, it must be given in tenth of seconds.
4908
4909         * g-sercom-mingw.adb:
4910         Implement the stop bits and parity support for Windows.
4911         Use new s-win32.ads unit instead of declaring Win32 services
4912         directly into this body.
4913         Update handling of timeout as now a duration.
4914
4915         * s-win32.ads, s-winext.ads: New files.
4916
4917 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4918             Arnaud Charlet  <charlet@adacore.com>
4919
4920         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4921
4922         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4923         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4924
4925         * s-osinte-lynxos-3.ads,
4926         (Alternate_Stack): Remove when not needed. Simplify declaration
4927         otherwise.
4928         (Alternate_Stack_Size): New constant.
4929
4930         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4931         'Unrestricted_Access.
4932
4933         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4934         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4935         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4936         s-osinte-solaris.ads, s-osinte-vms.ads
4937         (SA_ONSTACK): New constant.
4938         (stack_t): New record type.
4939         (sigaltstack): New imported function.
4940         (Alternate_Stack): New imported variable.
4941         (Alternate_Stack_Size): New constant.
4942
4943         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4944
4945         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4946         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4947         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4948         (Task_Address_Size): New constant size of System.Address
4949         (Alternate_Stack_Size): New constant.
4950
4951         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4952         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4953         Establish the alternate stack if the platform makes use of n alternate
4954         signal stack for stack overflows.
4955         (Create_Task): Take into account the alternate stack in the stack size.
4956         (Initialize): Save the address of the alternate stack into the ATCB for
4957         the environment task.
4958         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4959
4960         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4961
4962         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4963
4964         * s-intman-posix.adb:
4965         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4966         alternate signal stack for stack overflows.
4967
4968         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4969         x86-64, adjust the saved value of the stack pointer if the signal was
4970         raised by a stack checking probe.
4971         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4972         stack and only for SIGSEGV.
4973         (Linux section): Likewise on x86 and x86-64.
4974         [VxWorks section]
4975         (__gnat_map_signal): Now static.
4976         (__gnat_error_handler): Not static any more.
4977         (__gnat_adjust_context_for_raise): New function. Signal context
4978         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4979         propagation circuitry.
4980         (__gnat_error_handler): Second argument of a sigaction handler is a
4981         pointer, not an int, and is unused.
4982         Adjust signal context before mapping to exception.
4983         Install signal handlers for LynxOS case.
4984
4985         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4986         (Task_Id): Set size to Task_Address_Size
4987         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4988         (To_Address): Unchecked convert to Task_Address vice System.Address
4989
4990         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4991         address into the ATCB if the platform makes use of an alternate signal
4992         stack for stack overflows.
4993         (Free_Task): Add call to Finalize_Attributes_Link.
4994         Add argument Relative_Deadline to pass the value specified for
4995         the task. This is not yet used for any target.
4996
4997         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4998         the value specified for the task.
4999
5000 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5001
5002         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5003         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5004         s-vxwext-rtp.adb): New files.
5005
5006         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5007         Minor updates to accomodate changes above.
5008
5009 2008-04-08  Pascal Obry  <obry@adacore.com>
5010
5011         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5012         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5013         Use new s-win32.ads unit instead of declaration
5014         from s-osinte-mingw.ads.
5015
5016         * s-osinte-mingw.ads:
5017         Move all non tasking based interface to s-win32.ads.
5018
5019         * s-osprim-mingw.adb:
5020         Remove duplicated declarations and use s-win32.ads
5021         unit instead.
5022
5023 2008-04-08  Vincent Celier  <celier@adacore.com>
5024             Arnaud Charlet  <charlet@adacore.com>
5025
5026         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5027         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5028         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5029         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5030         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5031
5032         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5033         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5034         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5035         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5036         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5037         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5038         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5039         mlib-tgt-specific-mingw.adb: New names.
5040
5041         * Makefile.in:
5042         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5043         Get rid of gnatbl.
5044         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5045         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5046         Minor updates for VMS
5047
5048         * gnatbl.c: Removed.
5049
5050 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5051
5052         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5053         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5054         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5055         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5056         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5057         ASCII.NUL throughout.
5058
5059 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5060             Matthew Heaney  <heaney@adacore.com>
5061
5062         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5063         renaming.
5064
5065         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5066         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5067         to convention for non-RM specs.
5068         Add descriptive header, and documented each operation
5069         document each operation
5070
5071 2008-04-08  Robert Dewar  <dewar@adacore.com>
5072             Bob Duff  <duff@adacore.com>
5073             Gary Dismukes  <dismukes@adacore.com>
5074             Ed Schonberg  <schonberg@adacore.com>
5075
5076         * alloc.ads: Add entries for Obsolescent_Warnings table
5077
5078         * einfo.ads, einfo.adb: Minor reformatting.
5079         (Is_Discriminal): New subprogram.
5080         (Is_Prival): New subprogram.
5081         (Is_Protected_Component): New subprogram.
5082         (Is_Protected_Private): Removed.
5083         (Object_Ref, Set_Object_Ref): Removed.
5084         (Prival, Set_Prival): Change assertion.
5085         (Privals_Chain, Set_Privals_Chain): Removed.
5086         (Prival_Link, Set_Prival_Link): New subprogram.
5087         (Protected_Operation, Set_Protected_Operation): Removed.
5088         (Protection_Object, Set_Protection_Object): New subprogram.
5089         (Write_Field17_Name): Remove case for Object_Ref.
5090         (Write_Field20_Name): Add case for Prival_Link.
5091         (Write_Field22_Name): Remove case for Protected_Operation,
5092         Privals_Chain.
5093         Add case for Protection_Object.
5094         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5095         so clients
5096         (Overlays_Constant): New flag
5097         (Is_Constant_Object): New predicate
5098         (Is_Standard_Character_Type): New predicate
5099         (Optimize_Alignment_Space): New flag
5100         (Optimize_Alignment_Time): New flag
5101         (Has_Postconditions): New flag
5102         (Obsolescent_Warrning): Field removed
5103         (Spec_PPC_List): New field
5104         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5105         subprograms to get and set the relative deadline associated to a task.
5106
5107         * exp_attr.adb (May_Be_External_Call): Account for the case where the
5108         Access attribute is part of a named parameter association.
5109         (Expand_Access_To_Protected_Op): Test for the attribute occurring
5110         within an init proc and use that directly as the scope rather than
5111         traversing up to the protected operation's enclosing scope. Only apply
5112         assertion on Is_Open_Scopes in the case the scope traversal is done.
5113         For the init proc case use the address of the first formal (_init) as
5114         the protected object reference.
5115         Implement Invalid_Value attribute
5116         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5117         contents of the dispatch table there is no need to duplicate the
5118         itypes associated with record types (i.e. the implicit full view
5119         of private types).
5120         Implement Enum_Val attribute
5121         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5122         within _Postconditions procedure
5123         (Expand_N_Attribute_Reference, case Result): Implement new attribute
5124
5125         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5126         a return statement calls a function that is not available in
5127         configurable runtime.
5128         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5129         (Expand_Non_Function_Return): Generate call to _Postconditions proc
5130         (Expand_Simple_Function_Return): Ditto
5131
5132         * frontend.adb: Add call to Sem_Aux.Initialize
5133
5134         * sem_aux.ads, sem_aux.adb: New file.
5135
5136         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5137         Add new Pragma_Relative_Deadline.
5138         Add support for pragmas Check and Check_Policy
5139
5140         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5141         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5142         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5143         missing check because they are not allowed in CPP tagged types.
5144         Add Sure parameter to Note_Possible_Modification calls
5145         Add implementation of Invalid_Value attribute
5146         Implement new attribute Has_Tagged_Values
5147         Implement Enum_Val attribute
5148         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5149         generated attributes.
5150         (Analyze_Attribute, case Result): If prefix of the attribute is
5151         overloaded, it always resolves to the enclosing function.
5152         (Analyze_Attribute, case Result): Properly deal with analysis when
5153         Postconditions are not active.
5154         (Resolve_Attribute, case Result): Properly deal with appearence during
5155         preanalysis in spec.
5156         Add processing for attribute Result
5157
5158         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5159         for operators.
5160         (Analyze_Subprogram_Body): Install private_with_clauses when the body
5161         acts as a spec.
5162         (Check_Inline_Pragma): recognize an inline pragma that appears within
5163         the subprogram body to which it applies.
5164         (Analyze_Function_Return): Check that type of the expression of a return
5165         statement in a function with a class-wide result is not declared at a
5166         deeper level than the function.
5167         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5168         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5169         user- defined operators.
5170         (Install_Formals): Moved to spec to allow use from Sem_Prag for
5171         analysis of precondition/postcondition pragmas.
5172         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5173         Last_Formal, along with lots of comments on what this is about
5174         (Analyze_Subprogram_Body): Fix case where we move entities from the
5175         spec to the body when there are no body entities (now possible with
5176         precondition and postcondition pragmas).
5177         (Process_PPCs): New procedure
5178         (Analyze_Subprogram_Body): Add call to Process_PPCs
5179
5180         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5181         clause.
5182         (Pop_Scope): Restore Check_Policy_List on scope exit
5183         (Push_Scope): Save Check_Policy_List on scope entry
5184         Change name In_Default_Expression      => In_Spec_Expression
5185         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5186         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5187         (Analyze_Object_Renaming): Allow 'Reference as object
5188         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5189         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5190         of restriction identifier.
5191         Add Sure parameter to Note_Possible_Modication calls
5192
5193         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5194         Don't check for primitive operations when calling Rep_Item_Too_Late.
5195         (Process_Import_Or_Interface): Do not place flag on formal
5196         subprograms.
5197         (Analyze_Pragma, case Export): If the entity is a deferred constant,
5198         propagate information to full view, which is the one elaborated by the
5199         back-end.
5200         (Make_Inline): the pragma is effective if it applies to an internally
5201         generated subprogram declaration for a body that carries the pragma.
5202         (Analyze_Pragma, case Optimize_Alignment): Set new flag
5203         Optimize_Alignment_Local.
5204         (Analyze_PPC_In_Decl_Part): New procedure
5205         (Get_Pragma_Arg): Moved to outer level
5206         (Check_Precondition_Postcondition): Change to allow new visibility
5207         rules for package spec
5208         (Analyze_Pragma, case Check_Policy): Change placement rules to be
5209         same as pragma Suppress/Unsuppress.
5210         Change name In_Default_Expression      => In_Spec_Expression
5211         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5212         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5213         (Check_Precondition_Postcondition): Do proper visibility preanalysis
5214         for the case of these pragmas appearing in the spec.
5215         (Check_Enabled): New function
5216         (Initialize): New procedure
5217         (Tree_Read): New procedure
5218         (Tree_Write): New procedure
5219         (Check_Precondition_Postcondition): New procedure
5220         Implement pragmas Check and Check_Policy
5221         Merge Assert processing with Check
5222
5223         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5224         New warning flag -gnatw.e
5225
5226         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5227         returning whether a task (or main procedure) has a pragma
5228         Relative_Deadline.
5229         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5230         (or main procedure) has a pragma Relative_Deadline.
5231         Add Next_Pragma field to N_Pragma node
5232         (PPC_Enabled): New flag
5233         (Next_Pragma): Now used for Pre/Postcondition processing
5234
5235         * snames.h, snames.ads, snames.adb: New standard name
5236         Inherit_Source_Path
5237         Add entry for 'Invalid_Value attribute
5238         Add entry for new attribute Has_Tagged_Values
5239         Add entry for Enum_Val attribute
5240         Add new standard names Aggregate, Configuration and Library.
5241         Add _Postconditions
5242         Add _Result
5243         Add Pragma_Precondition
5244         Add Pragma_Postcondition
5245         Add Attribute_Result
5246         New standard name Archive_Builder_Append_Option
5247         (Preset_Names): Add _relative_deadline and relative_deadline definitions
5248         There was also a missing non_preemptive_within_priorities.
5249         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5250         Relative_Deadline.
5251         Add support for pragmas Check and Check_Policy
5252
5253         * tree_gen.adb: Call Sem_Aux.Tree_Write
5254
5255         * tree_in.adb: Call Sem_Aux.Tree_Read
5256
5257         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5258         sequence
5259
5260         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5261         sequence
5262
5263         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5264         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5265         Relative_Deadline.
5266         (Expand_Pragma_Check): New procedure
5267
5268         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5269         buffer.
5270
5271         * sinfo.adb (PPC_Enabled): New flag
5272
5273 2008-04-08  Robert Dewar  <dewar@adacore.com>
5274             Gary Dismukes  <dismukes@adacore.com>
5275             Javier Miranda  <miranda@adacore.com>
5276             Ed Schonberg  <schonberg@adacore.com>
5277
5278         * fe.h: Remove global Optimize_Alignment flag, no longer used
5279
5280         * layout.adb: Test Optimize_Alignment flags rather than global switch
5281
5282         * lib.ads, lib.adb: New OA_Setting field in library record
5283
5284         * lib-load.adb: New OA_Setting field in library record
5285
5286         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5287         units mentioned in limited_with_ clauses in the ali file, with an
5288         'Y' marker.
5289         New Ox fields in U line
5290
5291         * opt.adb: New flag Optimize_Alignment_Local
5292         (Check_Policy_List[_Config]): New flags
5293
5294         * opt.ads (Invalid_Value_Used): New flag
5295         New switch Optimize_Alignment_Local
5296         (Warn_On_Parameter_Order): New flag
5297         (Check_Policy_List[_Config]): New flags
5298
5299         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5300         limited_with clauses.
5301         New data structures for Optimize_Alignment
5302
5303         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5304         New procedure
5305         (Check_Consistent_Optimize_Alignment): Rework for new structure
5306         (Check_Consistent_Restrictions): Fix incorrect error message
5307
5308         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5309         created class-wide type (to the Parent field of the specific type).
5310         (Install_Siblings): Handle properly private_with_clauses on subprogram
5311         bodies and on generic units.
5312         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5313         illegal limited_with_clause that names a non-existent package.
5314         (Check_Body_Required): Determine whether a unit named a limited_with
5315         clause needs a body.
5316         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5317         Capture Optimize_Alignment settings to set new OA_Setting field in
5318         library record.
5319         (Build_Limited_Views): Include task and protected type declarations.
5320
5321         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5322         case of a possible constant redeclaration where the current object is
5323         an entry index constant.
5324         (Analyze_Object_Declaration): Generate an error in case of CPP
5325         class-wide object initialization.
5326         (Analyze_Object_Declaration): Add extra information on warnings for
5327         declaration of unconstrained objects.
5328         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5329         conflicts with the setting of Stored_Constraint in the case where the
5330         access type entity has already been created as an E_Incomplete_Type due
5331         to a limited with clause.
5332         Use new Is_Standard_Character_Type predicate
5333         (Analyze_Object_Declaration): Apply access_constant check only after
5334         expression has been resolved, given that it may be overloaded with
5335         several access types.
5336         (Constant_Redeclaration): Additional legality checks for deferred
5337         constant declarations tha involve anonymous access types and/or null
5338         exclusion indicators.
5339         (Analyze_Type_Declaration): Set Optimize_Alignment flags
5340         (Analyze_Subtype_Declaration): Ditto
5341         (Analyze_Object_Declaration): Ditto
5342         (Analyze_Object_Declaration): Don't count tasks in generics
5343         Change name In_Default_Expression      => In_Spec_Expression
5344         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5345         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5346         (Process_Discriminants): Additional check for illegal use of default
5347         expressions in access discriminant specifications in a type that is not
5348         explicitly limited.
5349         (Check_Abstract_Overriding): If an inherited function dispaches on an
5350         access result, it must be overridden, even if the type is a null
5351         extension.
5352         (Derive_Subprogram): The formals of the derived subprogram have the
5353         names and defaults of the parent subprogram, even if the type is
5354         obtained from the actual subprogram.
5355         (Derive_Subprogram): In the presence of interfaces, a formal of an
5356         inherited operation has the derived type not only if it descends from
5357         the type of the formal of the parent operation, but also if it
5358         implements it. This is relevant for the renamings created for the
5359         primitive operations of the actual for a formal derived type.
5360         (Is_Progenitor): New predicate, to determine whether the type of a
5361         formal in the parent operation must be replaced by the derived type.
5362
5363         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5364         predicate recursive to handle components that have a user-defined
5365         Initialize procedure. Handle controlled derived types whose ancestor
5366         has a user-defined Initialize procedured.
5367         (Note_Possible_Modification): Add Sure parameter, generate warning if
5368         sure modification of constant
5369         Use new Is_Standard_Character_Type predicate
5370         (Find_Parameter_Type): when determining whether a protected operation
5371         implements an interface operation, retrieve the type of the formal from
5372         the entity when the formal is an access parameter or an
5373         anonymous-access-to-subprogram.
5374         Move Copy_Parameter_List to sem_util, for use when building stubbed
5375         subprogram bodies.
5376         (Has_Access_Values): Tagged types now return False
5377         (Within_HSS_Or_If): New procedure
5378         (Set_Optimize_Alignment_Flags): New procedure
5379         Change name In_Default_Expression      => In_Spec_Expression
5380         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5381         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5382
5383 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5384
5385         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5386
5387 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5388
5389 PR ada/10768
5390
5391         * cuintp.c: Fix 16 bits issue for AVR.
5392         On AVR, integer is 16 bits, so it can't be used to do math with
5393         Base (=32768).
5394         So use long_integer instead.
5395
5396 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5397
5398         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5399         System.OS_Primitives.
5400         Change type of various constants, parameters and local variables from
5401         Time to representation type OS_Time.
5402         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5403         Remove the declaration of constant Mili_F from several routines. New
5404         body for internal package Conversions_Operations.
5405         (Time_Of): Add default parameters for several formals.
5406
5407         * a-caldel.adb: Minor reformatting
5408
5409         * a-calend.ads, a-calend.adb: New body for internal package
5410         Conversions_Operations.
5411         (Time_Of): Add default parameters for several formals.
5412
5413         * Makefile.rtl: Add a-ststop
5414         Add Ada.Calendar.Conversions to the list of runtime files.
5415         Add g-timsta
5416
5417         * a-calcon.adb, a-calcon.ads: New files.
5418
5419 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5420             Tristan Gingold  <gingold@adacore.com>
5421
5422         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5423         (Install_Restricted_Handlers): New procedure
5424         which is a simplified version of Install_Handlers that does not store
5425         previously installed.
5426
5427         * s-interr-vxworks.adb: Fix ACATS cxc3001
5428         On VxWorks interrupts can't be detached.
5429         (Install_Restricted_Handlers): New procedure.
5430
5431         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5432         procedure.
5433
5434 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5435
5436         * s-intman-vxworks.ads, s-intman-vxworks.adb
5437         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5438         required services already implemented elsewhere.
5439         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5440         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5441         argument passed to the handler, which we need for ZCX propagation
5442         purposes.
5443
5444 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5445
5446         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5447
5448         * g-timsta.adb, g-timsta.ads: New files.
5449
5450 2008-04-08  Robert Dewar  <dewar@adacore.com>
5451
5452         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5453         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5454         (Raise_Exception_Always): Fix documentation accordingly
5455
5456 2008-04-08  Robert Dewar  <dewar@adacore.com>
5457
5458         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5459         Stream_Convert)
5460
5461         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5462         FOnly
5463
5464 2008-04-08  Javier Miranda  <miranda@adacore.com>
5465             Robert Dewar  <dewar@adacore.com>
5466             Ed Schonberg  <schonberg@adacore.com>
5467
5468         * a-tags.adb (Register_Interface_Offset): New subprogram.
5469         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5470         (To_Predef_Prims_Table_Ptr): Removed.
5471         (Acc_Size): Removed.
5472         (To_Acc_Size): Removed.
5473         (Parent_Size): Modified to the call the subprogram returning the size of
5474         the parent by means of the new TSD component Size_Func.
5475
5476         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5477         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5478         code referencing the Offset_To_Top component of the dispatch table's
5479         prologue.
5480         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5481         use of 'address to initialize dispatch table slots.
5482         (Size_Func): New component of the TSD. Used by the run-time to call the
5483         size primitive of the tagged type.
5484
5485         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5486         Offset_To_Top component of a dispatch table.
5487         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5488         deferred constant declaration. do not add a null expression, to prevent
5489         spurious errors when full declaration is analyzed.
5490         (Apply_Discriminant_Check): If both discriminant constraints share a
5491         node which is not static but has no side effects, do not generate a
5492         check for that discriminant.
5493         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5494         subexpr, since the prefix of an attribute is a name.
5495
5496         * checks.ads: Fix nit in comment.
5497
5498         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5499         and body of predefined primitives in case of CPP tagged type
5500         derivations.
5501         (Freeze_Type): Deal properly with no storage pool case
5502         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5503         primitive Deep_Adjust if a nonlimited interface is derived from a
5504         limited interface.
5505         (Build_Dcheck_Functions): Create discriminant-checking functions only
5506         for variants that have some component(s).
5507         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5508         properly the case where the slice bounds extend to the last value of the
5509         underlying representation.
5510         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5511         (Is_Variable_Size_Record): An array component has a static size if
5512         index bounds are enumeration literals.
5513
5514         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5515         an external tag has been specified for the type.
5516         (Building_Static_DT): Add missing support for private types.
5517         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5518         to the entity associated with the parent of Typ. This is done to
5519         avoid wrong access when the parent is a private type.
5520         (Expand_Interface_Conversion): Improve error message when the
5521         configurable runtime has no support for dynamic interface conversion.
5522         (Expand_Interface_Thunk): Add missing support to interface types in
5523         configurable runtime.
5524         (Expand_Dispatching_Call): remove obsolete code.
5525         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5526         ensure that all subtypes and aggregates associated with dispatch
5527         tables have the attribute Is_Dispatch_Table_Entity set to true.
5528         (Register_Primitive): Rename one variable to improve code reading.
5529         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5530         of the pointer to the 'size primitive in the TSD.
5531
5532         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5533         (RE_Offset_To_Top_Ptr): New entity.
5534         (RE_Register_Interface_Offset): New entity.
5535         (RE_Set_Dynamic_Offset_To_Top): New entity.
5536         (RE_Set_Offset_To_Top): Removed entity.
5537         (RE_Prim_Ptr): New entity
5538         (RE_Size_Func): New entity
5539         (RE_Size_Ptr): New entity
5540         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5541         (Ada_Dispatching_Child): Define this new subrange.
5542         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5543          RE_Time_Span, and RE_Time_Span_Zero).
5544         (RE_Unit_Table): Add new required run-time calls
5545
5546         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5547         children.
5548
5549         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5550         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5551          initializes the Offset_To_Top component of a dispatch table.
5552         (Build_Predef_Prims): Removed.
5553         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5554          its actual code.
5555         (Build_Set_Size_Function): New subprogram.
5556
5557         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5558         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5559
5560 2008-04-08  Robert Dewar  <dewar@adacore.com>
5561
5562         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5563         computing Fore when Exp > 0
5564
5565 2008-04-08  Robert Dewar  <dewar@adacore.com>
5566
5567         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5568
5569         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5570         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5571
5572         * fmap.adb: Remove Big_String declarations (now in Types)
5573         (No_Mapping_File): New Boolean global variable
5574         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5575         False.
5576         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5577         tables were empty before adding entries, open the mapping file
5578         with Truncate = True, instead of delete/re-create.
5579
5580         * fname-sf.adb: Remove Big_String declarations (now in Types)
5581
5582         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5583         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5584         big pointer types
5585
5586         * table.ads: Add for Table_Ptr'Storage_Size use 0
5587
5588         * types.ads: Add Big_String declarations
5589         Add Size_Clause of zero for big pointer types
5590
5591 2008-04-08  Vincent Celier  <celier@adacore.com>
5592
5593         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5594         (Usage): Add line for switch --subdirs=
5595         Add new switch -eL, to follow symbolic links when processing project
5596         files.
5597
5598         * gnatcmd.adb: Process switches -eL and --subdirs=
5599         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5600         Program_Name to get proper tool names when AAMP_On_Target is set.
5601         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5602         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5603         Osint.Program_Name).
5604
5605         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5606         (Usage): Add lines for switches -eL and --subdirs=
5607
5608         * makeusg.adb: Add line for switch --subdirs=
5609
5610         * prj.ads:
5611         (Source_Data): New Boolean component Compiled, defaulted to True
5612         (Empty_File_Name: New global variable in private part, initialized in
5613         procedure Initialize.
5614         (Subdirs_Option): New constant string
5615         (Subdirs): New String_Ptr global variable
5616         (Language_Config): New component Include_Compatible_Languages
5617         (Project_Qualifier): New type for project qualifiers
5618         (Project_Data): New component Qualifier
5619         (Project_Configuration): New component Archive_Builder_Append_Option
5620
5621         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5622         another imported project indicate the name of this imported project.
5623         (Check_File): When a unit is in two project files, indicate the project
5624         names and the paths of the source files for each project.
5625         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5626         set object, dependency and switches file names if Compiled is True.
5627         (Process_Compiler): Allow the empty string for value of attribute Driver
5628         (Get_Directories): When Subdirs is not null and Object_Dir is not
5629          specified, locate and create if necessary the actual object dir.
5630         (Locate_Directory): When Subdirs is not empty and Create is not the
5631         empty string, locate and create if necessary the actual directory
5632         as a subdirectory of directory Name.
5633         (Check_Library_Attributes.Check_Library): Allow a project where the only
5634         "sources" are header files of file based languages to be imported by
5635         library projects, in multi-language mode (gprbuild).
5636         (Check_Library_Attributes.Check_Library): In multi-language mode
5637         (gprbuild), allow a library project to import a project with no
5638         sources, even when this is not declared explicitly.
5639         (Check_If_Externally_Built): A virtual project extending an externally
5640         built project is also externally built.
5641         (Check_Library_Attributes): For a virtual project extending a library
5642         project, inherit the library directory.
5643         (Process_Project_Level_Array_Attributes): Process new attribute
5644         Inherit_Source_Path.
5645         For projects with specified qualifiers "standard", "library" or
5646         "abstract", check that the project conforms to the qualifier.
5647         (Process_Project_Level_Simple_Attributes): Process new attribute
5648          Archive_Builder_Append_Option.
5649
5650         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5651         (Normalize_Compiler_Switches): Only keep compiler switches that are
5652         passed to gnat1 by the gcc driver and that are stored in the ALI file
5653         by gnat1.
5654         Do not take into account switc -save-temps
5655
5656         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5657         gprmake is called with -eL.
5658         (Scan_Arg): Recognize switch -eL
5659         (Usage): Add line for switch -eL
5660
5661         * prj.adb (Initialize): Initialize Empty_File_Name
5662         (Project_Empty): New component Qualifier
5663
5664         * prj-attr.ads, prj-attr.adb: New project level attribute
5665         Inherit_Source_Path.
5666         New project level attribute Archive_Builder_Append_Option
5667
5668         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5669
5670         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5671         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5672         upward compatibility.
5673
5674         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5675         each Trying ..." on different lines.
5676         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5677         is "configuration" when not in configuration. Fail when in configuration
5678         when a specified qualifier is other than "configuration".
5679
5680         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5681         full associative array together.
5682         (Recursive_Process): Put the project qualifier in the project data
5683
5684         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5685         (Set_Project_Qualifier_Of): New procedure
5686
5687 2008-04-08  Robert Dewar  <dewar@adacore.com>
5688
5689         * errout.ads: Update comments for new handling of info: messages
5690
5691         * erroutc.adb (Matches): New procedure
5692         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5693         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5694          info messages as well as style messages.
5695
5696         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5697
5698         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5699         subprograms.
5700         (Check_A_Call): Special "info: " warnings now have ? in the text
5701         (Elab_Warning): Use info message in static case
5702
5703 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5704
5705         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5706         whether an array aggregate with static bounds and scalar components
5707         should be expanded into a static constant.
5708
5709 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5710             Ed Schonberg  <schonberg@adacore.com>
5711             Robert Dewar  <dewar@adacore.com>
5712
5713         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5714         Has_Stream_Attribute_ Definition when checking for available stream
5715         attributes on parameters of a limited type in Ada 2005. Necessary for
5716         proper recognition of visible stream attribute clauses.
5717         (Has_Stream_Attribute_Definition): If the type is derived from a
5718         private type, then use the derived type's underlying type for checking
5719         whether it has stream attributes.
5720         (Validate_Object_Declaration): The check for a user-defined Initialize
5721         procedure applies also to types with controlled components or a
5722         controlled ancestor.
5723         Reject an object declaration in a preelaborated unit if the type is a
5724         controlled type with an overriding Initialize procedure.
5725         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5726         checking when the parent of a dereference is a selected component and
5727         the name has not been analyzed.
5728
5729         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5730         prefixes that are invalid explicit dereferences of remote
5731         access-to-class-wide values, first checking whether the selected
5732         component is a prefixed form of call to a tagged operation.
5733         (Analyze_Call): Remove code that issues an error for limited function
5734         calls in illegal contexts, as we now support all of the contexts that
5735         were forbidden here.
5736         Allow a function call that returns a task.and appears as the
5737         prefix of a selected component.
5738         (Analyze_Reference): Give error message if we try to make a 'Reference
5739         for an object that is atomic/aliased without its type having the
5740         corresponding attribute.
5741         (Analyze_Call): Remove condition checking for attributes to allow
5742         calls to functions with inherently limited results as prefixes of
5743         attributes. Remove related comment about Class attributes.
5744         (Analyze_Selected_Component): If the prefix is a remote type, check
5745         whether this is a prefixed call before reporting an error.
5746         (Complete_Object_Operation): If the controlling formal is an access to
5747         variable reject an actual that is a constant or an access to one.
5748         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5749         primitive operations from base type.
5750
5751         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5752         build-in-place
5753         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5754         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5755         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5756         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5757         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5758         (Analyze_Call): Remove code that issues an error for limited function
5759         calls in illegal contexts, as we now support all of the contexts that
5760         were forbidden here.
5761         New calling sequence for Get_Simple_Init_Val
5762         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5763         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5764
5765 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5766             Ed Schonberg  <schonberg@adacore.com>
5767             Robert Dewar  <dewar@adacore.com>
5768
5769         * exp_ch2.adb: Minor reformatting.
5770         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5771         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5772         (Expand_Protected_Component): New routine.
5773         (Expand_Protected_Private): Removed.
5774         Add Sure parameter to Note_Possible_Modification calls
5775
5776         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5777         generated subprogram declaration must inherit the overriding indicator
5778         from the instantiation node.
5779         (Validate_Access_Type_Instance): If the designated type of the actual is
5780         a limited view, use the available view in all cases, not only if the
5781         type is an incomplete type.
5782         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5783         and the actual subtype does not exclude null.
5784         (Process_Default): Handle properly abstract formal subprograms.
5785         (Check_Formal_Package_Instance): Handle properly defaulted formal
5786         subprograms in a partially parameterized formal package.
5787         Add Sure parameter to Note_Possible_Modification calls
5788         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5789         actual cannot be limited.
5790         (Collect_Previous_Instances): Generate instance bodies for subprograms
5791         as well.
5792
5793         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5794         try to set RM_Size.
5795         Add Sure parameter to Note_Possible_Modification calls
5796         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5797         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5798         constant overlaid by variable and issue warning.
5799         Use new Is_Standard_Character_Type predicate
5800         (Analyze_Record_Representation_Clause): Check that the specified
5801         Last_Bit is not less than First_Bit - 1.
5802         (Analyze_Attribute_Definition_Clause, case Address): Check for
5803         self-referential address clause
5804
5805         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5806         detection mechanism when the lhs is a prival.
5807         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5808         assignment of a pointer to protected data, to an object declared
5809         outside of the protected object.
5810         (Analyze_Loop_Statement): Check for unreachable code after loop
5811         Add Sure parameter to Note_Possible_Modication calls
5812         Protect analysis from previous syntax error such as a scope mismatch
5813         or a missing begin.
5814         (Analyze_Assignment_Statement): The assignment is illegal if the
5815         left-hand is an interface.
5816
5817         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5818         violation of restriction No_Implicit_Conditionals
5819         Add Sure parameter to Note_Possible_Modication calls
5820         Use new Is_Standard_Character_Type predicate
5821         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5822         call as operator. Fixes problems (e.g. validity checking) which
5823         come from the result looking as though it does not come from source).
5824         (Resolve_Call): Check case of name in named parameter if style checks
5825         are enabled.
5826         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5827         from the checking that such calls should not occur from an entry body.
5828         (Resolve_Call): If the return type of an Inline_Always function
5829         requires the secondary stack, create a transient scope for the call
5830         if the body of the function is not available for inlining.
5831         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5832         that are actuals for in-out formals.
5833         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5834         primitive operations from base type.
5835         (Analyze_Selected_Component): If the context is a call to a protected
5836         operation the parent may be an indexed component prior to expansion.
5837         (Resolve_Actuals): If an actual is of a protected subtype, use its
5838         base type to determine whether a conversion to the corresponding record
5839         is needed.
5840         (Resolve_Short_Circuit): Handle pragma Check
5841
5842         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5843         Use new Is_Standard_Character_Type predicate
5844         (Eval_Relational_Op): Catch more cases of string comparison
5845
5846 2008-04-08  Robert Dewar  <dewar@adacore.com>
5847             Gary Dismukes  <dismukes@adacore.com>
5848
5849         * s-rident.ads: Add No_Default_Initialization restriction
5850
5851         * exp_tss.adb:
5852         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5853         (Set_TSS): Handle No_Default_Initialization case
5854
5855         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5856         No_Default_Initialization
5857         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5858         parameters when Normalize_Scalars is active.
5859         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5860         Fix casing error in formal parameter name in call
5861         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5862         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5863         dispatching call on VM targets.
5864
5865 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5866             Thomas Quinot  <quinot@adacore.com>
5867
5868         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5869         selected component from an access type's Associated_Final_Chain to
5870         check for the presence of that field, rather than assuming it exists
5871         for all named access types.
5872         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5873         procedure to call at the end of the generated cleanup procedure.
5874         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5875         and an At_End_Proc already exists in the handled sequence of statements
5876         for which cleanup actions are being expanded, the original cleanup
5877         action must be preserved.
5878
5879 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5880             Ed Schonberg  <schonberg@adacore.com>
5881             Robert Dewar  <dewar@adacore.com>
5882             Gary Dismukes  <dismukes@adacore.com>
5883
5884         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5885         Build_Unprotected_Subprogram_Body): Generate debug info for
5886         declarations related to the handling of private data in task and
5887         protected types.
5888         (Debug_Private_Data_Declarations): New subprogram.
5889         (Install_Private_Data_Declarations): Remove all debug info flagging.
5890         This is now done by Debug_Private_Data_Declarations at the correct
5891         stage of expansion.
5892         (Build_Simple_Entry_Call): If the task name is a function call, expand
5893         the prefix into an object declaration, and make the surrounding block a
5894         task master.
5895         (Build_Master_Entity): An internal block is a master if it wraps a call.
5896         Code reformatting, update comments. Code clean up.
5897         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5898         (Replicate_Entry_Formals): If the formal is an access parameter or
5899         anonymous access to subprogram, copy the original tree to create new
5900         entities for the formals of the subprogram.
5901         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5902         for tasks to store the value passed using pragma Relative_Deadline.
5903         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5904         run-time call to create a task.
5905         (Build_Wrapper_Spec): If the controlling argument of the interface
5906         operation is an access parameter with a non-null indicator, use the
5907         non-null indicator on the wrapper.
5908
5909         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5910         present, which it may not be in the case where the type entity is an
5911         incomplete view brought in by a limited with.
5912         (Analyze_Task_Type): Only retrieve the full view when present, which it
5913         may not be in the case where the type entity is an incomplete view brought
5914         in by a limited with.
5915         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5916         private components of a protected type, to prevent the generation of freeze
5917         nodes for which there is no proper scope of elaboration.
5918
5919         * exp_util.ads, exp_util.adb
5920         (Remove_Side_Effects): If the expression is a function call that returns a
5921         task, expand into a declaration to invoke the build_in_place machinery.
5922         (Find_Protection_Object): New routine.
5923         (Remove_Side_Effects): Also make a copy of the value
5924         for attributes whose result is of an elementary type.
5925         (Silly_Boolean_Array_Not_Test): New procedure
5926         (Silly_Boolean_Array_Xor_Test): New procedure
5927         (Is_Volatile_Reference): New function
5928         (Remove_Side_Effects): Use Is_Volatile_Reference
5929         (Possible_Bit_Aligned_Component): Handle slice case properly
5930
5931         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5932         case test to Exp_Util
5933         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5934
5935 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5936
5937         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5938         in call
5939         (Add_RACW_Features): When processing an RACW in another unit than the
5940         main unit, set Body_Decls to No_List to indicate that the bodies of
5941         the type's TSS must not be generated.
5942         (GARLIC_Support.Add_RACW_Read_Attribute,
5943         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5944         Body_Decls is No_List.
5945         (PolyORB_Support.Add_RACW_Read_Attribute,
5946         PolyORB_Support.Add_RACW_Write_Attribute,
5947         PolyORB_Support.Add_RACW_From_Any,
5948         PolyORB_Support.Add_RACW_To_Any,
5949         PolyORB_Support.Add_RACW_TypeCode): Same.
5950         (Transmit_As_Unconstrained): New function.
5951         (Build_Ordered_Parameters_List): Use the above to order parameters.
5952         (GARLIC_Support.Build_General_Calling_Stubs):
5953         Use the above to determine which parameters to unmarshall using 'Input
5954         at the point where their temporary is declared (as opposed to later on
5955         with a 'Read call).
5956         (PolyORB_Support.Build_General_Calling_Stubs):
5957         Use the above to determine which parameters to unmarshall using From_Any
5958         at the point where their temporary is declared (as opposed to later on
5959         with an assignment).
5960
5961 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5962
5963         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5964         an Input function for an access type, do not perform default
5965         initialization on the local variable that receives the value, to
5966         prevent spurious warnings when the type is null-excluding.
5967
5968 2008-04-08  Robert Dewar  <dewar@adacore.com>
5969             Ed Schonberg  <schonberg@adacore.com>
5970
5971         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5972         units.
5973         (Size_Known): Generic formal scalar types have known at compile
5974         time size, so remove check.
5975         Fix casing error in formal parameter name in call
5976         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5977         recheck its overriding indication.
5978
5979 2008-04-08  Vincent Celier  <celier@adacore.com>
5980
5981         * gnat1drv.adb: Send all messages indicating an error to standard error
5982
5983 2008-04-08  Robert Dewar  <dewar@adacore.com>
5984
5985         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5986         (List_Applicable_Restrictions): Do not list existing restrictions
5987
5988 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5989
5990         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5991         add a pointer to generic sockets literature
5992         do not mention that the given example is "typical" usage.
5993         Remove obsolete comment about multicast not being supported on Windows.
5994         (Connect_Socket): Make Server mode IN rather than IN OUT
5995         since this formal is never modified.
5996
5997 2008-04-08  Robert Dewar  <dewar@adacore.com>
5998
5999         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6000         the declaration for some different entity.
6001         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6002         list is precent (following the parent subtype indication), display
6003         appropriate "and" keyword.
6004
6005         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6006         Remove unnecessary calls to Init_Size_Align and Init_Esize.
6007         Add notes on use of Parent field of an Itype
6008
6009 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6010             Robert Dewar  <dewar@adacore.com>
6011             Gary Dismukes  <dismukes@adacore.com>
6012
6013         * lib-xref.adb (Is_On_LHS): Remove dead code
6014         (Output_Overriden_Op): If the overridden operation is itself inherited,
6015         list the ancestor operation, which is the one whose body or absstract
6016         specification is actually being overridden. For source navigation
6017         purposes.
6018
6019         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6020         operation is primitive for the type.
6021         (Declare_Inherited_Private_Subprograms): If the new operation overrides
6022         an inherited private subprogram, set properly the Overridden_Operation
6023         attribute, for better cross-reference information.
6024         (Analyze_Package_Specification): Do late analysis of spec PPCs
6025         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6026         properly the full view and underlying full views of a private type in a
6027         child unit, whose full view is derived from a private type in a parent
6028         unit, and whose own full view becomes visible in the child body.
6029
6030         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6031         primitive operation after the type has been frozen, add an explicit
6032         reference to the type and the operation, because other primitive
6033         references have been emitted already.
6034         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6035         dispatching call on VM targets.
6036
6037 2008-04-08  Vincent Celier  <celier@adacore.com>
6038             Thomas Quinot  <quinot@adacore.com>
6039
6040         * make.adb: (Gnatmake_Called): Remove, no longer necessary
6041         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6042         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6043         (Insert_Project_Sources): Take into account index in multi-unit source
6044         files.
6045         After building a library project, delete all temporary files.
6046         (Initialize): Reset current output after parsing project file.
6047         (Collect_Arguments_And_Compile): Never insert in the queue the sources
6048         of library projects that are externally built.
6049         Put file name in error and inform messages if -df is used
6050         (Display): If invoked with -d7, do not display path names, but only
6051         file names.
6052
6053         * makeutl.ads (Path_Or_File_Name): New function
6054         (Path_Or_File_Name): New function
6055
6056 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
6057
6058         * Make-lang.in: Disable warnings during first stage of bootstrap
6059         Get rid of gnatbl.
6060         Update dependencies.
6061
6062 2008-04-08  Vincent Celier  <celier@adacore.com>
6063
6064         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6065         case to decide if ALI object file is included in library.
6066         (Build_Library): Never attempt to build a library if the project is
6067         externally built.
6068
6069 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6070
6071         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6072         (No_List) is defined to return Empty.
6073
6074 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
6075
6076         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6077         documentation.
6078         Update comments.
6079         (Read_Default_Search_Dirs): Do not consider spaces as path separators
6080         because spaces may be part of legal paths.
6081
6082 2008-04-08  Robert Dewar  <dewar@adacore.com>
6083
6084         * par-ch11.adb (P_Exception_Handler): Check indentation level for
6085         handler
6086
6087 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6088
6089         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6090         in a type declaration, if this is not an interface declaration or
6091         private type extension.
6092
6093 2008-04-08  Vincent Celier  <celier@adacore.com>
6094
6095         * prj-util.adb (Executable_Of): New String parameter Language. When
6096         Ada_Main is False and Language is not empty, attempt to remove the body
6097         suffix or the spec suffix of the language to get the base of the
6098         executable file name.
6099         (Put): New Boolean parameter Lower_Case, defauilted to False. When
6100         Lower_Case is True, put the value in lower case in the name list.
6101         (Executable_Of): If there is no executable suffix in the configuration,
6102         then do not modify Executable_Extension_On_Target.
6103
6104         * prj-util.ads (Executable_Of): New String parameter Language,
6105         defaulted to the empty string.
6106         (Put): New Boolean parameter Lower_Case, defauilted to False
6107
6108 2008-04-08  Robert Dewar  <dewar@adacore.com>
6109
6110         * scng.adb (Scan_Identifier): Handle case of identifier starting with
6111         wide character using UTF-8 encoding.
6112
6113 2008-04-08  Javier Miranda  <miranda@adacore.com>
6114
6115         * sem.adb (Analyze): Consider case in which we analyze an empty node
6116         that was generated by a call to a runtime function that is not
6117         available under the configurable runtime.
6118
6119         * sem.ads (Inside_Freezing_Actions): New flag.
6120         (Save_Check_Policy_List): New field in scope stack entry
6121
6122 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6123             Robert Dewar  <dewar@adacore.com>
6124
6125         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6126         the ancestor part of an extension aggregate for a limited type.
6127         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6128         enumeration index bounds.
6129         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6130         when array is too short.
6131         (Check_Expr_OK_In_Limited_Aggregate): Move function
6132         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6133         change name).
6134         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6135         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6136         component associations.
6137         (Check_Non_Limited_Type): Moved to outer level and renamed.
6138         (Resolve_Record_Aggregate): In an extension aggregate, an association
6139         with a box initialization can only designate a component of the
6140         extension, not a component inherited from the given ancestor
6141
6142         * sem_case.adb: Use new Is_Standard_Character_Type predicate
6143
6144 2008-04-08  Robert Dewar  <dewar@adacore.com>
6145
6146         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6147         negative scale
6148         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6149         Properly handle case where Aft > Scale and input number is less than
6150         one.
6151
6152 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6153
6154         * s-stoele.ads, s-soflin.ads: Move the location of
6155         Dummy_Communication_Block from System.Storage_Elements to
6156         System.Soft_Links.
6157
6158         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6159         emulate Communication_Block in certain scenarios.
6160
6161 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6162
6163         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6164         subprogram.
6165         Add new subtype S_WWC, unchecked conversion routines From_WWC and
6166         To_WWC.
6167         (I_WWC, O_WWC): New routines for input and output of
6168         Wide_Wide_Character.
6169
6170 2008-04-08  Robert Dewar  <dewar@adacore.com>
6171
6172         * stringt.adb (Write_String_Table_Entry): Handle wide characters
6173         properly
6174
6175 2008-04-08  Robert Dewar  <dewar@adacore.com>
6176
6177         * styleg.adb (Check_Comment): Allow special char after -- in
6178         non-end-of-line case
6179
6180 2008-04-08  Robert Dewar  <dewar@adacore.com>
6181
6182         * stylesw.adb: Implement -gnaty + - y options
6183         (Set_GNAT_Style_Check_Options): Includ I in style check string
6184
6185         * stylesw.ads: Add comments for new style switch options
6186
6187 2008-04-08  Sergey Rybin  <rybin@adacore.com>
6188
6189         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6190         to the set of the GNAT components needed by ASIS.
6191
6192 2008-04-08  Bob Duff  <duff@adacore.com>
6193
6194         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6195
6196 2008-04-08  Tristan Gingold  <gingold@adacore.com>
6197
6198         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6199         Improve error message generation.
6200
6201 2008-04-08  Vincent Celier  <celier@adacore.com>
6202
6203         * a-direct.adb (Start_Search): Check for Name_Error before checking for
6204         Use_Error, as specified in the RM. Check if directory is open and raise
6205         Use_Error if it is not.
6206
6207 2008-04-08  Vincent Celier  <celier@adacore.com>
6208             Robert Dewar  <dewar@adacore.com>
6209
6210         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6211         AAMP_On_Target is set.
6212
6213         * vms_data.ads: Add NOxxx to style check switch list
6214         Add entry COMPONENTS for -gnatVe
6215         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6216         (/SUBDIRS=).
6217         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6218         Add qualifiers for gnatmetric coupling options
6219         Add note that -gnata enables all checks
6220         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6221         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6222         New warning flag -gnatw.e
6223
6224         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6225         Add entry for -gnatyN (forgotten before)
6226         Line for new warning switch -gnatw.p
6227         New warning flag -gnatw.e
6228
6229         * gnat_ugn.texi: Add documentation fpr project file switch -aP
6230         Document -gnaty - + y
6231         Replace occurences of "package specification" with "package spec"
6232         Define preprocessing symbols in documentation of gnatprep
6233         Clarify reason for distinguishing overflow checking
6234         Add documentation for project-aware tool switches -eL and --subdirs=
6235         Complete list of configuration pragmas
6236         Specify that, even when gnatmake switch -x is used, mains on the command
6237         line need to be sources of project files.
6238         Editing of gnatcheck/gnatmetric doc.
6239         Add documentation for -gnatw.p/-gnatw.P
6240         Add missing documentation for -fno-inline-functions.
6241         Add documentation for -gnatw.e
6242
6243         * gnat_rm.texi: Add documentation for No_Default_Initialization
6244         Replace occurences of "package specification" with "package spec"
6245         Document use of * in Warnings Off string
6246         Update documentation of alignment/component clauses.
6247         Add documentation for Invalid_Value
6248         Document new consistency rule for Optimize_Alignment
6249         Add documentation for Precondition and Postcondition pragmas
6250         Add documentation for Check and Check_Policy pragmas
6251         Document new Enum_Val attribute
6252         Remove requirement for static string in pragma Assert
6253         Add documentation on GNAT.Time_Stamp
6254
6255         * ug_words: add entry for -gnatVe
6256         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6257         Add entry for -gnatw.e
6258
6259         * debug.adb: Add missing documentation for d.a flag
6260         Document new -gnatd.a switch.
6261         Add documentation for new gnatmake debug switch -df
6262
6263 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6264
6265         * gen-soccon.c: Bump year in copyright notices.
6266
6267         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6268
6269 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6270
6271         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6272         Minor reformatting.
6273
6274 2008-04-08  Robert Dewar  <dewar@adacore.com>
6275             Bob Duff  <duff@adacore.com>
6276
6277         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6278         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6279
6280         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6281
6282         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6283
6284         * g-trasym.ads: Minor comment improvements
6285
6286         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6287
6288         * a-sequio.ads, a-direio.ads: improve message for tagged type
6289
6290         * a-strunb.ads: Minor reformatting
6291
6292         * a-tifiio.adb: Minor reformatting
6293
6294         * atree.adb (Fix_Parents): Use clearer names for formals
6295         Cleanup and simplify code
6296         Use named notation in calls
6297
6298         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6299         confusing calls
6300
6301         * uintp.adb: Used named notation for some confusing calls
6302
6303         * bindusg.adb: Minor change in one line of output
6304
6305         * cstand.adb: Minor reformatting of src representation of Standard
6306
6307         * a-assert.ads: Add comment.
6308
6309         * g-decstr.adb: Fix bad indentation
6310
6311         * expander.ads, expander.adb: Code clean up.
6312
6313         * sem_dist.ads: Minor comment improvement
6314
6315         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6316         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6317
6318         * i-cstrin.adb: Fix casing error in formal parameter name in call
6319
6320 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6321
6322         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6323         mentioned in limited_with_clauses to do create semantic dependencies
6324         even though they appear in the ali file.
6325
6326 2008-04-08  Emmanuel Briot  <briot@adacore.com>
6327
6328         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6329         statement.
6330         (Get_Configuration): New subprogram.
6331
6332         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6333         These optional parameters help preserve the casing of the project's name
6334         when pretty-printing.
6335
6336 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
6337             Arnaud Charlet  <charlet@adacore.com>
6338
6339         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6340         then use __gnat_set_exit_status to report the returned status code.
6341
6342         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6343         messages on .NET, since some constructs of the language are not
6344         properly supported.
6345
6346         * gnatlink.adb (Gnatlink): In case the command line is too long for the
6347         .NET linker, gnatlink now concatenate all .il files and pass this to
6348         ilasm.
6349
6350 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6351             Xavier Grave  <grave@ipno.in2p3.fr>
6352
6353         * Makefile.in: Add make ifeq define for mips/mipsel support.
6354         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6355         system-linux-mips.ads: New files.
6356
6357 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6358
6359         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6360         detect systems using GNU libc.
6361         * gsocket.h: ditto.
6362         * socket.c: ditto.
6363         * adaint.c: ditto.
6364         * link.c: ditto.
6365
6366 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6367
6368         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6369         constant constant for sysconf call.
6370         (bit_field): New packed boolean type used by cpu_set_t.
6371         (cpu_set_t): New type corresponding to the C type with
6372         the same name. Note that on the Ada side we use a bit
6373         field array for the affinity mask. There is not need
6374         for the C macro for setting individual bit.
6375         (pthread_setaffinity_np): New imported routine.
6376         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6377         on GNU/kFreeBSD.
6378
6379 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6380
6381         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6382
6383 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6384
6385         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6386         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6387         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6388         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6389         Return by Depressed Stack Pointer.
6390
6391 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6392
6393         * decl.c (is_variable_size): Do not unconditionally return false
6394         on non-strict alignment platforms.
6395
6396 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6397
6398         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6399         used to process all the variants of the specified type.
6400         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6401         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6402         (rest_of_type_decl_compilation): Likewise.
6403         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6404
6405 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6406
6407         * gigi.h (insert_block): Kill.
6408         * utils.c (insert_block): Kill.
6409
6410 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6411
6412         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6413         type has self-referential size, get the size from the initializing
6414         expression directly if it is also a constant whose nominal type
6415         has self-referential size.
6416
6417 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6418
6419         PR ada/33688
6420         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6421
6422         PR ada/33857
6423         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6424         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6425
6426 2008-04-01  Andreas Jaeger  <aj@suse.de>
6427
6428         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6429         IP_PKTINFO.
6430
6431 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6432
6433         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6434         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6435         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6436         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6437         gnatlink.adb, gnatmem.adb, gprep.adb,
6438         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6439         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6440         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6441         lib-xref.ads, lib.adb, link.c, live.ads,
6442         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6443         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6444         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6445         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6446         namet.adb, namet.h, nlists.adb, nlists.ads,
6447         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6448         osint-c.ads, osint.adb, osint.ads, output.ads,
6449         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6450         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6451         par-endh.adb, par-labl.adb, par-prag.adb,
6452         par-sync.adb, par-tchk.adb, par-util.adb,
6453         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6454         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6455         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6456         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6457
6458 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6459
6460         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6461         size if it has overflowed.
6462
6463 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6464             Eric Botcazou  <ebotcazou@adacore.com>
6465
6466         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6467         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6468
6469 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6470
6471         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6472         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6473         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6474         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6475         exp_tss.ads, exp_util.adb, exp_util.ads,
6476         exp_vfpt.adb, freeze.adb, freeze.ads,
6477         frontend.adb, g-alleve.adb, g-altcon.adb,
6478         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6479         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6480         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6481         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6482         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6483         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6484         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6485         g-except.ads, g-expect.ads, g-heasor.adb,
6486         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6487         g-locfil.ads, g-md5.adb, g-md5.ads,
6488         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6489         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6490         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6491         g-soccon-aix.ads, g-soccon-darwin.ads,
6492         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6493         g-soccon-hpux.ads, g-soccon-irix.ads,
6494         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6495         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6496         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6497         g-soccon-solaris.ads, g-soccon-tru64.ads,
6498         g-soccon-vms.ads, g-soccon-vxworks.ads,
6499         g-soccon.ads, g-socket.adb, g-socket.ads,
6500         g-socthi-mingw.adb, g-socthi-vms.adb,
6501         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6502         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6503         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6504         typos.
6505
6506 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6507
6508         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6509         if the procedure is imported.
6510
6511 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6512
6513         * adaint.c: Fix warnings.
6514
6515 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6516
6517         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6518
6519 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6520
6521         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6522         Fix problem of status check for null file
6523
6524 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6525
6526         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6527         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6528         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6529         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6530         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6531         comments.
6532
6533 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6534
6535         PR ada/33688
6536         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6537         Get_Socket_Option): Add support for Receive_Packet_Info.
6538
6539         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6540         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6541         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6542         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6543         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6544         new constants SO_REUSEPORT and IP_PKTINFO
6545
6546 2008-03-26  Robert Dewar  <dewar@adacore.com>
6547
6548         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6549         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6550         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6551         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6552         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6553         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6554         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6555         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6556         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6557         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6558         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6559         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6560         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6561         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6562         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6563         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6564         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6565         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6566         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6567         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6568         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6569         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6570         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6571         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6572         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6573         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6574         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6575         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6576         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6577         s-tasloc.adb: Minor reformatting.
6578         Update comments.
6579         Remove "used for" sections from comments.
6580
6581 2008-03-26  Robert Dewar  <dewar@adacore.com>
6582
6583         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6584         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6585         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6586         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6587         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6588         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6589         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6590         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6591         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6592         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6593         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6594         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6595         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6596         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6597         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6598         double spaced if it fits on one line and otherwise single spaced.
6599
6600 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6601
6602         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6603         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6604         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6605         or task info if the thread could not be created.
6606
6607 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6608
6609         * gnatvsn.ads (Library_Version): Bump to 4.4.
6610         (Current_Year): Bump to 2008.
6611
6612 2008-03-26  Robert Dewar  <dewar@adacore.com>
6613
6614         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6615
6616         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6617
6618         * debug.adb: Add debug flags d.r and d.v
6619         Add debug flag .T (Optimize_Alignment (Time))
6620         Add debug flag .S (Optimize_Alignment (Space))
6621
6622         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6623         depending on setting of relevant debug flags.
6624         Replace use of Warnings_Off by Has_Warnings_Off
6625         (Freeze_Entity): In circuit for warning on suspicious convention
6626         actuals, do not give warning if subprogram has same entity as formal
6627         type, or if subprogram does not come from source.
6628         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6629         if Optimize_Alignment set to Space.
6630
6631         * frontend.adb: Add call to Sem_Warn.Initialize
6632         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6633         Reset Optimize_Alignment mode from debug switches .S and .T
6634
6635         * layout.adb (Layout_Composite_Object): Rewritten for
6636         Optimize_Aligment pragma.
6637
6638         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6639         mode.
6640
6641         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6642
6643         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6644         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6645         this change. Add entry for pragma Optimize_Alignment
6646
6647         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6648         (Pragma_Identifier (..
6649         instead, adjustments throughout to accomodate this change.
6650         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6651         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6652         Add implementation of pragma Optimize_Alignment
6653
6654 2008-03-26  Vincent Celier  <celier@adacore.com>
6655
6656         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6657         Improve memory usage to avoid use of stack.
6658
6659 2008-03-26  Robert Dewar  <dewar@adacore.com>
6660
6661         * a-teioed.ads: Correct value of Default_Fill
6662
6663         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6664
6665 2008-03-26  Robert Dewar  <dewar@adacore.com>
6666
6667         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6668         with Current_Output (introduce Self).
6669
6670 2008-03-26  Robert Dewar  <dewar@adacore.com>
6671
6672         * checks.adb (Ensure_Valid): Capture valid status if possible
6673         (eliminate checks)
6674
6675 2008-03-26  Robert Dewar  <dewar@adacore.com>
6676
6677         * stand.ads: Deal with reordering of package standard declarations
6678
6679         * cstand.adb: Put package Standard declarations in proper order
6680
6681 2008-03-26  Robert Dewar  <dewar@adacore.com>
6682
6683         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6684         (Pragma_Identifier (.. instead.
6685         (OK_To_Reorder_Components): New flag
6686         (Has_Entries): Code cleanup.
6687         (Warnings_Off_Used): New flag
6688         (Warnings_Off_Used_Unmodified): New flag
6689         (Warnings_Off_Used_Unreferenced): New flag
6690         (Has_Warnings_Off): New function
6691         (Has_Unmodified): New function
6692         (Has_Unreferenced): New function
6693         (Is_Trivial_Subprogram): New flag
6694         (Is_Static_Dispatch_Table_Entity): New attribute.
6695         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6696         (more consistent with other similar names)
6697         (Access_Subprogram_Type): New classification function
6698
6699 2008-03-26  Robert Dewar  <dewar@adacore.com>
6700
6701         * errout.ads: Document new !! insertion sequence
6702
6703         * errout.adb (N_Pragma): Chars field removed, use Chars
6704         (Pragma_Identifier (..  instead.
6705         Replace use of Warnings_Off by Has_Warnings_Off
6706         (Error_Msg_Internal): Don't delete warning ending in !!
6707
6708 2008-03-26  Robert Dewar  <dewar@adacore.com>
6709
6710         * par.adb (Check_No_Right_Paren): Removed no longer used
6711
6712         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6713         (Pragma_Identifier (..  instead.
6714
6715         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6716
6717         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6718         par-ch4.adb: Minor improvements in error recovery and messages.
6719
6720         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6721         non-serious
6722
6723         * par-ch9.adb: Minor improvements in error recovery and messages
6724         (P_Protected): Better error recovery for "protected type x;"
6725
6726         * par-util.adb: Minor improvements in error recovery and messages
6727         (Check_No_Right_Paren): Removed no longer used
6728
6729 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6730
6731         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6732         that the prefix of an attribute is the type of the aggregate being
6733         expanded.
6734
6735 2008-03-26  Javier Miranda  <miranda@adacore.com>
6736             Robert Dewar  <dewar@adacore.com>
6737
6738         * exp_attr.adb (N_Pragma): Chars field removed.
6739         (Expand_N_Attribute_Reference): If the designated type associated with
6740         attribute 'Unrestricted_Access is a subprogram entity then replace it
6741         by an E_Subprogram_Type itype.
6742         Implement attribute Old
6743
6744         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6745
6746         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6747         Replace call to
6748         New_Internal_Entity by call to Create_Itype to centralize calls
6749         building itypes, ad propagate the convention of the designated
6750         subprogram. In addition, disable the machinery cleaning constant
6751         indications from all entities in current scope when 'Unrestricted_Access
6752         corresponds with a node initializing a dispatch table slot.
6753         (Analyze_Attribute): Parameterless attributes returning a string or a
6754         type will not be called with improper arguments, so we can remove junk
6755         code that was dealing with this case.
6756         Implement attribute Old
6757
6758         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6759         Add entry for pragma Optimize_Alignment
6760         New standard names Sync and Synchronize
6761
6762 2008-03-26  Robert Dewar  <dewar@adacore.com>
6763             Arnaud Charlet  <charlet@adacore.com>
6764
6765         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6766         stmt.
6767         (No_Exception_Propagation_Active): New function.
6768         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6769         Update comments, and review all uses of No_Exception_Propagation, which
6770         are now correct and in sync with what gigi expects.
6771
6772         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6773         function.
6774         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6775         Update comments, and review all uses of No_Exception_Propagation, which
6776         are now correct and in sync with what gigi expects.
6777
6778 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6779
6780         * sem_ch3.adb (Access_Definition): If the access type is the return
6781         result of a protected function, create an itype reference for it
6782         because usage will be in an inner scope from the point of declaration.
6783         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6784         OK_To_Reorder_Components.
6785         (Make_Index): If an overloaded range includes a universal integer
6786         interpretation, resolve to Standard.Integer.
6787         (Analyze_Subtype_Indication): Copy Convention to subtype
6788         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6789         limited an synchronized progenitors in type declaration and private
6790         extension declarations.
6791
6792         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6793         protected subprogram body, determine proper scope from subprogram
6794         declaration.
6795
6796 2008-03-26  Robert Dewar  <dewar@adacore.com>
6797
6798         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6799         No_Run_Time_Mode
6800
6801 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6802
6803         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6804         of a heap allocator for a limited unconstrained function return when
6805         resstriction No_Allocators is active.
6806         (Analyze_Allocator): The restriction No_Allocators is now only checked
6807         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6808
6809         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6810         of a heap allocator for a limited unconstrained function return when
6811         resstriction No_Allocators is active.
6812         (Analyze_Allocator): The restriction No_Allocators is now only checked
6813         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6814         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6815         operands are fixed-point types, the universal_fixed predefined operation
6816         is used, regardless of whether the operand type (s) have a primitive
6817         operation of the same name.
6818
6819 2008-03-26  Javier Miranda  <miranda@adacore.com>
6820
6821         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6822         Is_Static_Dispatch_Table
6823         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6824         to Exchange_Declarations to exchange the private and full-view. Bug
6825         found working in this issue.
6826         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6827         to the subprogram pointer type.
6828         (Make_Secondary_DT): Replace generation of Prim'Address by
6829         Address (Prim'Unrestricted_Access)
6830         (Make_DT): Replace generation of Prim'Address by
6831         Address (Prim'Unrestricted_Access)
6832         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6833         simple call form for single entry.
6834         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6835         tables of predefined primitives).
6836         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6837         predefined primitives.
6838         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6839         access to dispatch tables containing predefined primitives.
6840
6841         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6842         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6843         this change.
6844         (Register_Predefined_DT_Entry): Updated to handle the new contents
6845         of attribute Access_Disp_Table (pointers to dispatch tables containing
6846         predefined primitives).
6847
6848         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6849         subprogram.
6850         (Find_Interface_ADT): Updated to skip the new contents of attribute
6851         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6852         primitives).
6853
6854         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6855         concurrent types.
6856         (Set_Convention): Use new function Is_Access_Subprogram_Type
6857         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6858         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6859         primitives).
6860
6861         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6862         expanded code avoiding calls to Build_Predef_Prims.
6863         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6864         call to Build_Get_Predefined_Prim_Op_Address.
6865
6866 2008-03-26  Javier Miranda  <miranda@adacore.com>
6867
6868         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6869         subprogram Corresponding_Runtime_Package to know the runtime package
6870         that will provide support to a given protected type.
6871
6872         * exp_ch9.adb (Add_Private_Declarations,
6873         Build_Protected_Subprogram_Call,
6874         Build_Protected_Entry, Build_Simple_Entry_Call,
6875         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6876         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6877         cleanup using the new centralized subprogram Corresponding_Runtime
6878         Package to know the runtime package that provides support to
6879         a given protected type.
6880
6881 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6882
6883         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6884         assignment is within the initialization procedure for a packed array,
6885         and Initialize_Scalars is enabled, compile right-hand side with checks
6886         off, because the value is purposely out of range.
6887
6888 2008-03-26  Vincent Celier  <celier@adacore.com>
6889
6890         * gnatcmd.adb: Add processing for GNAT SYNC
6891
6892         * vms_conv.ads: (Command_Type): Add command Sync
6893
6894         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6895
6896         * vms_data.ads: Add entries for -gnatw.w
6897         Add qualifier for gnatstub --header-file option
6898         Add switches for GNAT SYNC
6899
6900         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6901         (Add_Package_Name): New procedure
6902         (Package_Name_List): New function
6903         (Initialize): Add known package names to the list
6904         (Register_New_Package): Add the new package name to the list
6905
6906 2008-03-26  Robert Dewar  <dewar@adacore.com>
6907
6908         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6909         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6910         Raise_Exception by "raise with" construct.
6911
6912 2008-03-26  Pascal Obry  <obry@adacore.com>
6913
6914         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6915         supported platforms.
6916
6917         * Makefile.rtl: Add g-sercom.o.
6918
6919         * impunit.adb: Add g-sercom.adb.
6920
6921         * s-crtl.ads (open): New routine.
6922         (close): Likewise.
6923         (write): Likewise.
6924
6925         * s-osinte-mingw.ads (BYTE): New type.
6926         (CHAR): Likewise.
6927         (OVERLAPPED): Likewise.
6928         (GENERIC_READ): New constant.
6929         (GENERIC_WRITE): Likewise.
6930         (OPEN_EXISTING): Likewise.
6931         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6932         type instead.
6933         (CreateFile): New routine.
6934         (WriteFile): Likewise.
6935         (ReadFile): Likewise.
6936         (CloseHandle): Move next to the other file oriented routines.
6937
6938         * g-sercom.ads: New unit.
6939
6940         * g-sercom.adb: Default implementation, calls to this unit will raise
6941         a program error exception.
6942
6943         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6944         GNU/Linux implementations.
6945
6946 2008-03-26  Robert Dewar  <dewar@adacore.com>
6947
6948         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6949
6950         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6951         unchecked conversion for different conventions only for subprogram
6952         pointers or on VMS.
6953
6954 2008-03-26  Vincent Celier  <celier@adacore.com>
6955
6956         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6957         to check if the specified object file is correct.
6958
6959 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6960
6961         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6962         Comes_From_Source to exclude primitives from being checked. We want to
6963         exclude predefined primitives only, so use the appropriate specific
6964         predicate. Also, flag a formal parameter of an anonymous
6965         access-to-subprogram type as illegal for a primitive operation of a
6966         remote access to class-wide type.
6967
6968 2008-03-26  Vincent Celier  <celier@adacore.com>
6969
6970         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6971         known, check if it may be a missspelling of a known package name. In
6972         not verbose, not mode, issue warnings only if the package name is a
6973         possible misspelling.
6974         In verbose mode, always issue a warning for a not known package name,
6975         plus a warning if the name is a misspelling of a known package name.
6976
6977         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6978         limited withs or limited withs are parse during one call.
6979         (Parse_Single_Project): Post parse context clause in two passes: non
6980         limited withs before current project and limited withs after current
6981         project.
6982
6983         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6984         project with the name With_Name, even if it is only extended indirectly.
6985         (Recursive_Process): Process projects in order: first single withs, then
6986         current project, then limited withs.
6987
6988         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6989         project with the name With_Name, even if it is only extended indirectly.
6990
6991 2008-03-26  Robert Dewar  <dewar@adacore.com>
6992
6993         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6994
6995 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6996
6997         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6998         a generic subprogram that is imported, do not attempt to compile
6999         non-existent body.
7000
7001         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7002         imported, do not generate a raise_program_error for the non-existent
7003         body.
7004         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7005         perform minimal name resolution on the generic to avoid spurious
7006         warnings.
7007         (Find_Actual_Type): the designated type of the actual in a child unit
7008         may be declared in a parent unit without being an actual.
7009
7010 2008-03-26  Robert Dewar  <dewar@adacore.com>
7011
7012         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7013         * sinfo.ads, sinfo.adb (From_At_End): New flag
7014
7015 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
7016
7017         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7018         operations that have an interface parameter.
7019         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7020         Don't treat No_Return call as raise.
7021
7022         * sem_disp.adb (Check_Dispatching_Operations): apply check for
7023         non-primitive interface primitives to access parameters, not to all
7024         parameters of an access type.
7025
7026 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
7027
7028         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7029         declarations of a parent unit are made visible when compiling a child
7030         instance, the parent is not a hidden open scope, even though it may
7031         contain other pending instance.
7032
7033         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7034         hidden open scope for some child instance, it does affect the
7035         visibility status of other stach entries.
7036         (Analyze_Object_Renaming): Check that a class-wide object cannot be
7037         renamed as an object of a specific type.
7038
7039 2008-03-26  Robert Dewar  <dewar@adacore.com>
7040
7041         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7042         recursion and raise SE directly.
7043         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7044         set for formal type for IN mode parameter.
7045
7046 2008-03-26  Robert Dewar  <dewar@adacore.com>
7047
7048         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7049         (Initialize): New procedure
7050         (Output_Warnings_Off_Warnings): New procedure
7051         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7052         (Output_Non_Modifed_In_Out_Warnings): Ditto
7053         (Warn_On_Unreferenced_Entity): Ditto
7054
7055 2008-03-26  Vincent Celier  <celier@adacore.com>
7056
7057         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7058         readable.
7059
7060 2008-03-26  Matthew Heaney  <heaney@adacore.com>
7061
7062         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7063         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7064         Marked with clauses as private, and controlled operations as overriding
7065
7066 2008-03-26  Robert Dewar  <dewar@adacore.com>
7067
7068         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7069
7070 2008-03-26  Robert Dewar  <dewar@adacore.com>
7071
7072         * back_end.adb, back_end.ads: Minor reformatting
7073
7074         * bindgen.adb: Minor clarification of comments
7075
7076         * fname.ads: Minor comment fixes
7077
7078         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7079         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7080
7081         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7082         xsnames.adb: Remove warnings off pragma no longer needed
7083
7084         * a-catizo.ads, a-calari.ads, a-calfor.adb,
7085         a-calfor.ads: Fix header.
7086
7087 2008-03-26  Tristan Gingold  <gingold@adacore.com>
7088
7089         * init.c: Do not adjust pc for HPARITH on alpha/vms.
7090
7091 2008-03-26  Robert Dewar  <dewar@adacore.com>
7092
7093         * lib-xref.adb: (OK_To_Set_Reference): New function
7094         (Generate_Reference): Don't set referenced from occurrence in Warnings,
7095         Unmodified, or Unreferenced pragma
7096
7097 2008-03-26  Robert Dewar  <dewar@adacore.com>
7098
7099         * alloc.ads: Add entries for Warnings_Off_Pragmas table
7100
7101 2008-03-26  GNAT Script  <nobody@adacore.com>
7102
7103         * Make-lang.in: Makefile automatically updated
7104
7105 2008-03-26  Robert Dewar  <dewar@adacore.com>
7106
7107         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7108         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7109         removed, use Chars (Pragma_Identifier (..  instead, adjustments
7110         throughout to accomodate this change.
7111
7112         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7113
7114         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7115         Einfo.Set_Needs_Debug_Info)
7116
7117 2008-03-26  Robert Dewar  <dewar@adacore.com>
7118
7119         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7120         Add description for the new gnatstub option '--header-file'
7121         clarification of -gnatwz/-gnatwZ
7122         Add a "Irix-Specific Considerations" section to document the need to
7123         set LD_LIBRARY_PATH when using the default shared runtime library.
7124         Added documentation for both gcov and gprof.
7125
7126         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7127         messages that are not suppressed when clients are compiled.
7128         Add documentation of s-pooglo s-pooloc
7129         Document the new GNAT.Serial_Communications API.
7130         Add documentation for 'Old attribute
7131         Add description of pragma Optimize_Alignment
7132
7133         * ug_words: Add entries for -gnatw.w -gnatw.W
7134
7135         * usage.adb: Add line for -gnatw.w (warn on warnings off)
7136
7137 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7138
7139         Revert
7140         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7141         PR ada/35186
7142         * decl.c (maybe_pad_type): Avoid padding an integral type when
7143         bumping its alignment is sufficient.
7144
7145 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
7146
7147         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7148         Fix wrong formatting (lines too long)
7149
7150 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7151
7152         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7153         a-calend-vms.adb, a-calend.adb, a-calend.ads,
7154         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7155         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7156         a-cohama.ads, a-comlin.ads, a-coorse.adb,
7157         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7158         a-except-2005.ads, a-except.adb, a-except.ads,
7159         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7160         a-exextr.adb, a-filico.ads, a-finali.ads,
7161         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7162         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7163         a-sequio.ads, a-strbou.ads, a-strfix.adb,
7164         checks.adb, exp_ch3.adb, exp_ch4.adb,
7165         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7166         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7167         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7168         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7169         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7170
7171 2008-03-24  Robert Dewar  <dewar@adacore.com>
7172
7173         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7174         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7175         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7176         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7177         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7178         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7179         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7180         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7181         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7182         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7183         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7184         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7185         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7186         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7187         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7188         double spaced if it fits on one line and otherwise single spaced.
7189
7190 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7191
7192         PR documentation/15479
7193         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7194         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7195         (doc/gnat_ugn.info): Renamed from ...
7196         (doc/gnat_ugn_unw.info): ... this.
7197         (doc/gnat_ugn.dvi): Renamed from ...
7198         (doc/gnat_ugn_unw.dvi): ... this.
7199         (doc/gnat_ugn.pdf): Renamed from ...
7200         (doc/gnat_ugn_unw.pdf): ... this.
7201         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7202         Adjusted.
7203         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7204         unconditionally to gnat_ugn.info.  Fix cross references to the
7205         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
7206         and GNU make manuals to be proper texinfo links.
7207         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7208
7209 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7210
7211         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7212         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7213
7214 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
7215
7216         * trans.c (addressable_p): Add notes on addressability issues.
7217
7218 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7219             Ed Schonberg  <schonberg@adacore.com>
7220
7221         * trans.c (addressable_p): Accept COND_EXPR when both arms
7222         are addressable.
7223         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7224         (call_to_gnu): Do not use name reference in the error message
7225         for a misaligned by_reference_parameter. The actual may be a
7226         general expression.
7227
7228 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7229
7230         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7231
7232 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7233
7234         * gnat_rm.texi (Implementation Defined Characteristics)
7235         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7236         appropriate.
7237         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7238         (Switches for gnatchop, Installing a library): Likewise.
7239
7240 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
7241
7242         * trans.c (emit_range_check): Do not emit the check if the base type
7243         of the expression is the type against which its range must be checked.
7244
7245 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7246
7247         * decl.c (maybe_pad_type): Use value_factor_p.
7248
7249 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7250
7251         * lang.opt (nostdlib): Move around.
7252         * misc.c (gnat_handle_option): Fix formatting.
7253         (gnat_dwarf_name): Move around.
7254         * trans.c (Case_Statement_to_gnu): Fix formatting.
7255         (gnat_to_gnu): Likewise.
7256         * utils.c (aggregate_type_contains_array_p): Likewise.
7257         (create_subprog_decl): Likewise.
7258
7259 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7260
7261         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7262         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7263
7264 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7265
7266         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7267         BIGGEST_ALIGNMENT when capping the alignment of records with
7268         strict alignment and size clause.
7269
7270 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7271
7272         * lang-specs.h: Pass -gnatwa if -Wall is passed.
7273         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7274         and -Wuninitialized.
7275         (gnat_post_options): Clear warn_unused_parameter.
7276
7277 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7278
7279         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7280         aligned bit-fields, bumping the alignment of the record type if deemed
7281         profitable.
7282         (value_factor_p): Return false instead of 0.
7283
7284 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7285
7286         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7287         for scalar types with small alignment.
7288
7289 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7290
7291         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7292         from that of the front-end's end label.
7293         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7294         from that of the loop label.
7295
7296 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7297
7298         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7299         comment for the packed array type case.
7300         * utils.c (build_template): Use a loop to strip padding or
7301         containing records for justified modular types.
7302
7303 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7304
7305         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7306         large alignments specified for types.
7307         (validate_alignment): Minor cleanup.
7308
7309 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7310
7311         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7312         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7313         the component for packing, if possible, as well as if a component
7314         size clause is specified.
7315         <E_Record_Subtype>: For an array type used to implement a packed
7316         array, get the component type from the original array type.
7317         Try to get a smaller form of the component for packing, if possible,
7318         as well as if a component size clause is specified.
7319         (round_up_to_align): New function.
7320         (make_packable_type): Add in_record parameter.
7321         For a padding record, preserve the size.  If not in_record and the
7322         size is too large for an integral mode, attempt to shrink the size
7323         by lowering the alignment.
7324         Ditch the padding bits of the last component.
7325         Compute sizes and mode manually, and propagate the RM size.
7326         Return a BLKmode record type if its size has shrunk.
7327         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7328         Use Original_Array_Type to retrieve the type in case of an error.
7329         Adjust call to make_packable_type.
7330         (gnat_to_gnu_field): Likewise.
7331         (concat_id_with_name): Minor tweak.
7332         * trans.c (larger_record_type_p): New predicate.
7333         (call_to_gnu): Compute the nominal type of the object only if the
7334         parameter is by-reference.  Do the conversion actual type -> nominal
7335         type if the nominal type is a larger record.
7336         (gnat_to_gnu): Do not require integral modes on the source type to
7337         avoid the conversion for types with identical names.
7338         (addressable_p): Add gnu_type parameter.  If it is specified, do not
7339         return true if the expression is not addressable in gnu_type.
7340         Adjust recursive calls.
7341         * utils.c (finish_record_type): Remove dead code.
7342
7343 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7344
7345         PR ada/35186
7346         * decl.c (maybe_pad_type): Avoid padding an integral type when
7347         bumping its alignment is sufficient.
7348
7349 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7350
7351         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7352         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7353         statement.
7354         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7355         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7356         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7357         code output strings.
7358         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7359         system-vms_64.ads: Fix typos in ada source code comments.
7360         * sinfo-cn.adb: Remove incomplete sentence.
7361
7362         PR documentation/15479
7363         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7364
7365 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7366
7367         PR ada/22255
7368         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7369
7370 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7371
7372         PR ada/34799
7373         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7374         that underlying type is present.
7375
7376 2008-02-26  Tom Tromey  <tromey@redhat.com>
7377
7378         * misc.c (internal_error_function): Remove test of
7379         USE_MAPPED_LOCATION.
7380         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7381         (Sloc_to_locus): Remove old location code.
7382
7383 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7384
7385         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7386         `i.e.' by adding comma or `@:' as appropriate.
7387         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7388         plain characters `C', use `@samp{C}'.
7389         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7390         (Krunching Method): Likewise.
7391
7392         * gnat_ugn.texi (Conventions): List environment variables and
7393         metasyntactic variables.
7394         (Compiling Programs): Fix notation of metasyntactic variables.
7395         Add @file where appropriate.  Use @file for file extensions,
7396         @samp for strings.
7397         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7398         instead of @file, @env instead of @code.
7399
7400 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7401
7402         PR documentation/15479
7403         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7404         and `...' with `@dots{}' or `@enddots{}'.
7405
7406         PR documentation/15479
7407         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7408         use @command instead of @code, @option instead of @samp or @code,
7409         @code instead of @var, @samp instead of @file.
7410
7411         PR documentation/15479
7412         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7413         in Makefile rules, by using `&&' rather than `;'.
7414
7415 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7416
7417         PR documentation/15479
7418         * gnat_ugn.texi: In non-code, avoid space before colon.
7419         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7420         (Examples of gnatxref Usage): Use @command{vi} instead of
7421         @file{vi}.
7422         (Character Set Control): Do not use @code for UTF-8.
7423         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7424         use @code for IEEE.
7425         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7426         sample.
7427         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7428
7429 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7430
7431         PR ada/35143
7432         * env.c: Add __rtems__ to if defined.
7433         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7434         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7435         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7436         pragma Convention as required.
7437         * gsocket.h: Make compile in and out of RTS.
7438         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7439         Use g-soccon-rtems.ads.
7440         * g-soccon-rtems.ads, system-rtems.ads: New files.
7441
7442 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7443
7444         PR other/35107
7445         * Make-lang.in (gnat1): Add $(GMPLIBS).
7446
7447 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7448
7449         * decl.c (components_to_record): Improve comment.
7450
7451 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7452
7453         * decl.c (components_to_record): Do not reuse the empty union type
7454         if there is a representation clause on the record.
7455         * trans.c (addressable_p): Return true for INTEGER_CST.
7456
7457 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7458
7459         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7460         in pointer arithmetics.
7461         * utils2.c (build_allocator): Likewise.
7462
7463 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7464
7465         * utils.c (build_function_stub): Properly build the call expression.
7466
7467 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7468
7469         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7470         before converting the expression to the type of the object.
7471         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7472         Stabilize constructors for special wrapping types.
7473
7474 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7475
7476         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7477         when necessary.  Merge some conditional statements.  Update comments.
7478         Rename unchecked_convert_p local variable to suppress_type_conversion.
7479         Do not suppress conversions in the In case.
7480         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7481         into account on non strict-alignment platforms.
7482
7483 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7484
7485         * utils.c (aggregate_type_contains_array_p): New predicate.
7486         (create_field_decl): In a packed record, force byte alignment
7487         for fields without specified position that contain an array.
7488
7489 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7490
7491         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7492
7493 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7494
7495         PR ada/34466
7496         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7497         sysconf call.
7498         (bit_field): New packed boolean type used by cpu_set_t.
7499         (cpu_set_t): New type corresponding to the C type with
7500         the same name. Note that on the Ada side we use a bit
7501         field array for the affinity mask. There is not need
7502         for the C macro for setting individual bit.
7503         (pthread_setaffinity_np): New imported routine.
7504
7505 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7506
7507         PR ada/34647
7508         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7509         on OpenBSD as is done on other BSD systems.
7510
7511         PR ada/34645
7512         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7513         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7514         I/O.
7515
7516         PR ada/34644
7517         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7518         clearenv().
7519
7520         PR ada/34646
7521         * init.c (__gnat_error_handler, __gnat_install_handler,
7522         __gnat_init_float): Define for OpenBSD.
7523
7524         * initialize.c (__gnat_initialize): Define for OpenBSD.
7525
7526 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7527
7528         PR ada/34553
7529         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7530         instead of mktemp() or tmpnam() on NetBSD.
7531
7532 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7533
7534         * trans.c (call_to_gnu): Make the temporary for non-addressable
7535         In parameters passed by reference.
7536         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7537
7538 2007-12-19  Robert Dewar  <dewar@adacore.com>
7539
7540         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7541         Add pragma Warnings (Off) for unassigned IN OUT arguments
7542
7543         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7544         (Check_References): Extensive changes to tune up warnings
7545         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7546         (Has_Pragma_Unmodifed_Check_Spec): New function
7547         (Check_References): Implement pragma Unmodified
7548         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7549
7550         * par-prag.adb: Dummy entry for pragma Unmodified
7551
7552         * sem_prag.adb: Implement pragma Unmodified
7553
7554         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7555         (Proc_Next_Component_Or_Discriminant): Fix typo.
7556         Update comments.
7557
7558         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7559         Unmodified.
7560         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7561         because the former already takes care of discarding the result.
7562         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7563         Add comment.
7564
7565         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7566
7567 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7568
7569         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7570         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7571         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7572         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7573         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7574         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7575         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7576         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7577         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7578         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7579         (Dynamic_Trampolines_Used): Delete.
7580
7581         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7582         Turn on stack probing mechanism on LynxOS.
7583
7584 2007-12-19  Bob Duff  <duff@adacore.com>
7585
7586         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7587         the resulting tail recursion by hand. This prevents running out of
7588         memory on deeply nested concatenations, since Field2 is where the left
7589         operand of concatenations is stored.
7590         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7591         clarify that it can only return OK or Abandon.
7592
7593         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7594         operand by iteration, in order to avoid running out of memory on
7595         deeply-nested concatenations. Use the Parent pointer to get back up the
7596         tree.
7597         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7598          Resolve_Op_Concat_Rest): New procedures split out of
7599         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7600         clearer.
7601
7602         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7603         Traverse_Func, because the former already takes care of discarding the
7604         result.
7605
7606         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7607         because the former already takes care of discarding the result.
7608         (Remove_Warning_Messages): Use appropriate subtype for Status and
7609         Discard
7610
7611 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7612
7613         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7614         discriminants forces expansion of the aggregate into assignments.
7615         (Init_Record_Controller):  If the type of the aggregate is untagged and
7616         is not inherently limited, the record controller is not limited either.
7617
7618 2007-12-19  Robert Dewar  <dewar@adacore.com>
7619
7620         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7621         handling compile time known size of record or array (case of front end
7622         layout active, e.g. in GNAAMP).
7623
7624 2007-12-19  Javier Miranda  <miranda@adacore.com>
7625
7626         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7627         that forces the construction of static dispatch tables in case of
7628         record subtypes.
7629
7630 2007-12-19  Robert Dewar  <dewar@adacore.com>
7631
7632         * exp_ch9.adb (Null_Statements): Moved to library level
7633         (Trivial_Accept_OK): New function
7634         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7635         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7636
7637 2007-12-19  Robert Dewar  <dewar@adacore.com>
7638
7639         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7640         in complex case where array is Volatile.
7641
7642 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7643
7644         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7645         properly the Ada2005 rules concerning when the current instance of a
7646         record type is aliased.
7647
7648 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7649
7650         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7651         mangled declaration
7652         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7653         declarations.
7654         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7655
7656 2007-12-19  Vincent Celier  <celier@adacore.com>
7657
7658         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7659         package is not known
7660
7661         * prj-attr.ads (Unknown_Package): New constant
7662         Do not crash when an unknown package is in several projects
7663
7664         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7665         ignored
7666
7667         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7668         existing package Language_Processing.
7669
7670 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7671             Gary Dismukes  <dismukes@adacore.com>
7672             Samuel Tardieu  <sam@rfc1149.net>
7673
7674         PR ada/15803, ada/15805
7675         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7676         illegal access subtypes when there is a constrained partial view.
7677         (Check_For_Premature_Usage): New procedure inside
7678         Access_Subprogram_Declaration for checking that an access-to-subprogram
7679         type doesn't reference its own name within any formal parameters or
7680         result type (including within nested anonymous access types).
7681         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7682         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7683         context is an access_to_variable, the expression cannot be an
7684         access_to_constant.
7685
7686 2007-12-19  Bob Duff  <duff@adacore.com>
7687
7688         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7689         (Analyze_Concatenation): Use iteration instead of recursion in order
7690         to avoid running out of stack space for deeply nested concatenations.
7691
7692 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7693             Gary Dismukes  <dismukes@adacore.com>
7694
7695         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7696         whose renamed entity is a subprogram that requires overriding.
7697         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7698         issuing an error for premature usage and issue a message that says
7699         'type' rather than 'object'.
7700
7701 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7702
7703         PR ada/34149
7704         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7705         presence of a statically tagged operand (Present (Static_Tag)) with
7706         test for Indeterm_Ancestor_Call when determining whether to propagate
7707         the static tag to tag-indeterminate operands (which forces dispatching
7708         on such calls).
7709         (Check_Controlling_Formals): Ada2005, access parameters can have
7710         defaults.
7711         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7712         not insert subprogram in list of primitive operations if already there.
7713
7714 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7715
7716         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7717         global variable.
7718
7719 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7720
7721         Part of PR ada/33688
7722         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7723         datagram info on Linux.
7724
7725 2007-12-19  Vincent Celier  <celier@adacore.com>
7726
7727         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7728         that the source path name is always found in the dependencies.
7729
7730 2007-12-19  Robert Dewar  <dewar@adacore.com>
7731
7732         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7733         Fix name of Wide_Wide_Latin_1/9 file names
7734         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7735         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7736         Add missing documentation for Ada.Command_Line.Response_File
7737         Update list of warning letters for Warnings pragma
7738         Add documentation for pragma Unmodified
7739
7740 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7741
7742         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7743
7744 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7745
7746         * s-vxwork-alpha.ads: Removed, no longer used.
7747
7748 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7749
7750         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7751
7752 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7753
7754         PR ada/34360
7755         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7756         mlib-tgt-specific.adb.
7757
7758 2007-12-13  Bob Duff  <duff@adacore.com>
7759
7760         * trans.c (Attribute_to_gnu): Check for violations of the
7761         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7762         the front end, but is moved here so we can make it more accurate.
7763
7764 2007-12-13  Pascal Obry  <obry@adacore.com>
7765
7766         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7767          version is provided for older GNU/Linux distribution not
7768          supporting thread affinity sets.
7769
7770         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7771         call.
7772         (bit_field): New packed boolean type used by cpu_set_t.
7773         (cpu_set_t): New type corresponding to the C type with
7774         the same name. Note that on the Ada side we use a bit
7775         field array for the affinity mask. There is not need
7776         for the C macro for setting individual bit.
7777         (pthread_setaffinity_np): New imported routine.
7778
7779         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7780         no null.
7781         (Create_Task): Set the processor affinity mask if information
7782         is present.
7783
7784         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7785
7786 2007-12-13  Robert Dewar  <dewar@adacore.com>
7787
7788         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7789         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7790         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7791         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7792         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7793         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7794         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7795         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7796         for subprogram pointers.
7797
7798         * g-ctrl_c.adb: New file.
7799
7800         * g-ctrl_c.ads (Install_Handler): New body.
7801
7802         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7803         instead of obsolete function Is_Always_Inlined.
7804         (Freeze_Entity): check for tagged type in imported C subprogram
7805         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7806         (Freeze_Entity): check for convention Ada subprogram pointer in
7807         imported C subprogram.
7808         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7809         bound would be chopped off and go from negative to zero, force
7810         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7811         bound) so that the size computation for the base type will take
7812         negative values into account.
7813
7814 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7815             Bob Duff  <duff@adacore.com>
7816             Tristan Gingold  <gingold@adacore.com>
7817
7818         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7819         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7820         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7821         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7822         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7823         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7824         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7825         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7826         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7827         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7828         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7829         (Always_Compatible_Rep): New flag to control trampolines globally.
7830         (Dynamic_Trampolines_Used): New flag for implementing the
7831         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7832         and not yet set correctly for some targets).
7833
7834         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7835         Simply indirectly call s-stchop when a task is created.
7836
7837         * ali.ads:
7838         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7839         appears as an argument (entries A) in an ALI file.
7840
7841         * fe.h (Stack_Check_Limits): Declare new target parameter.
7842         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7843
7844         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7845         This variable is declared in C to be sure not subject to elaboration
7846         code.
7847         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7848         Storage_Error.
7849
7850         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7851         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7852
7853         * s-stchop.ads: Add comments.
7854
7855         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7856         limit method of stack checking.
7857
7858         * s-stchop-limit.ads: New file.
7859
7860 2007-12-13  Robert Dewar  <dewar@adacore.com>
7861
7862         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7863         a-cihama.adb, g-awk.adb,
7864         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7865         warnings
7866
7867         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7868
7869         * sem.adb: Update handling of assigned value/unreferenced warnings
7870
7871         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7872
7873         * lib-xref.ads: Improve documentation for k xref type
7874
7875         * lib-xref.adb:
7876         Update handling of assigned value/unreferenced warnings
7877         (Generate_Reference): Warning for reference to entity for which a
7878         pragma Unreferenced has been given should be unconditional.
7879         If the entity is a discriminal, mark the original
7880         discriminant as referenced.
7881
7882         * sem_warn.ads, sem_warn.adb
7883         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7884         no entities referenced in package
7885         (Check_One_Unit): Don't give message about no entities referenced in
7886         a package if a pragma Unreferenced has appeared.
7887         Handle new warning flag -gnatw.a/-gnatw.A
7888         Update handling of assigned value/unreferenced warnings
7889
7890         * atree.h: Add flags up to Flag247
7891         (Flag231): New macro.
7892
7893 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7894
7895         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7896
7897         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7898         RTX systems.
7899
7900         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7901         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7902         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7903         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7904
7905         * mingw32.h:
7906         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7907
7908         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7909         since we only have problems with Windows 95/98, which are not
7910         supported by RTX.
7911         (__gnat_ttyname): Return the empty string on Nucleus, just as
7912         done on vxworks.
7913
7914 2007-12-13  Robert Dewar  <dewar@adacore.com>
7915
7916         * a-textio.adb, a-textio.ads:
7917         Extensive changes to private part for wide character encoding
7918
7919         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7920         (Look_Ahead): Fix mishandling of encoded sequences
7921         Move declaration of Wch_Con to private part (should not be visible)
7922
7923         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7924         UTF-8. Probably this is never used, but if it is, brackets is
7925         clearly correct.
7926
7927         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7928         setting wide character encoding for no main program case and when
7929         encoding is specified using -W?
7930         Initialize stack limit of environment task if stack limit method of
7931         stack checking is enabled.
7932         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7933         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7934         (Get_Main_Unit_Name): New function.
7935         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7936         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7937
7938         * bindusg.adb: Add line for -Wx switch
7939
7940         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7941         Add comments
7942         Add new useful constant WC_Longest_Sequences
7943
7944         * switch-b.adb: Clean up handling of -Wx switch
7945         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7946
7947         * switch-c.adb: -gnatg activates warning on assertion errors
7948         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7949
7950         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7951
7952 2007-12-13  Robert Dewar  <dewar@adacore.com>
7953             Ed Schonberg  <schonberg@adacore.com>
7954
7955         * a-ngcoty.adb: New pragma Fast_Math
7956
7957         * opt.adb: New pragma Fast_Math
7958
7959         * par-prag.adb:
7960         Add Implemented_By_Entry to the list of pragmas which do not require any
7961         special processing.
7962         (Favor_Top_Level): New pragma.
7963         New pragma Fast_Math
7964
7965         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7966         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7967         Expand_Allocator_Expression): Take into account VM_Target
7968         (Expand_Attribute, case 'Identity):  Handle properly the case where
7969         the prefix is a task interface.
7970         New pragma Fast_Math
7971
7972         * par.adb (Next_Token_Is): New function
7973         (P_Pragma): Add Skipping parameter
7974         (U_Left_Paren): New procedure
7975         (U_Right_Paren): New procedure
7976         New pragma Fast_Math
7977
7978         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7979         subunit
7980         New pragma Fast_Math
7981
7982         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7983         Implemented_By_Entry.
7984         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7985         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7986         items, since it can apply to more than one overloadable entity. Set
7987         new flag Has_Pragma_Inline_Always for Inline_Always case.
7988         (Analyze_Pragma, case Complex_Representation): Improve error message.
7989         (Analyze_Pragma, case Assert): When assertions are disabled build the
7990         rewritten code with Sloc of expression rather than pragma, so new
7991         warning about failing is not deleted.
7992         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7993         protected types and update error message to reflect that. Test whether
7994         the protected type is allowed for the pragma (an error is issued if the
7995         type has any entries, or components that do not have preelaborable
7996         initialization).
7997         New pragma Fast_Math
7998         (Analyze_Pragma, case No_Return): Handle generic instance
7999
8000         * snames.h, snames.ads, snames.adb:
8001         Add new predefined name for interface primitive _Disp_Requeue.
8002         New pragma Fast_Math
8003
8004         * a-tags.ads, a-tags.adb: New calling sequence for
8005         String_To_Wide_[Wide_]String
8006         (Secondary_Tag): New subprogram.
8007
8008         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8009         from Exp_Attr
8010         New calling sequence for String_To_Wide_[Wide_]String
8011         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8012         the use of the secondary stack for image routines.
8013
8014         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8015         calling sequence for String_To_Wide_[Wide_]String
8016
8017         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8018         Ada 95 mode
8019         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8020         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8021
8022         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8023         (P_Formal_Part): Use Skipping parameter in P_Pragma call
8024         to improve error recovery
8025
8026         * par-util.adb (Next_Token_Is): New function
8027         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8028
8029         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8030         semicolon if missing
8031         (P_Pragma): Implement new Skipping parameter
8032         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8033         Fix location of flag for unrecognized pragma message
8034
8035         * par-tchk.adb (U_Left_Paren): New procedure
8036         (U_Right_Paren): New procedure
8037
8038 2007-12-13  Geert Bosch  <bosch@adacore.com>
8039
8040         * a-tifiio.adb:
8041         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8042         the second or later Scaled_Divide would omit leading zeroes,
8043         resulting in too few digits produced and a Layout_Error as result.
8044         (Put): Initialize Pos.
8045
8046 2007-12-13  Robert Dewar  <dewar@adacore.com>
8047
8048         atree.ads, atree.adb (Flag231..Flag247): New functions
8049         (Set_Flag231..Set_Flag247): New procedures
8050         (Basic_Set_Convention): Rename Set_Convention to be
8051         Basic_Set_Convention
8052         (Nkind_In): New functions
8053         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8054
8055         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8056         instead
8057          of obsolete function Is_Always_Inlined
8058         (Register_Predefined_DT_Entry): Initialize slots of the second
8059         secondary dispatch table.
8060         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8061         (Expand_N_Function_Call): Remove special provision for stack checking.
8062
8063         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8064         Include _Disp_Requeue in the list of predefined operations.
8065         (Find_Interface_ADT): Modified to fulfill the new specification.
8066         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8067
8068         * par-ch4.adb, nlists.ads, nlists.adb:
8069         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8070
8071         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8072         Fix location of flag for unrecognized pragma message
8073
8074         * sem_ch7.adb: Use Nkind_In
8075
8076 2007-12-13  Vincent Celier  <celier@adacore.com>
8077
8078         * opt.ads:
8079         Indicate what flags are used by the Project Manager, gprbuild and
8080         gprclean.
8081         (Opt.Follow_Links_For_Dirs): New flag
8082         (Warn_On_Assertion_Failure): New flag
8083         (Wide_Character_Encoding_Method_Specified): New flag
8084         (Suppress_All_Inlining): New switch set by -fno-inline
8085         (Real_VMS_Target): New flag
8086         New pragma Fast_Math
8087
8088 2007-12-13  Robert Dewar  <dewar@adacore.com>
8089
8090         * back_end.adb: Recognize -fno-inline
8091
8092 2007-12-13  Robert Dewar  <dewar@adacore.com>
8093
8094         * checks.adb: Fix optimization problem with short-circuited form
8095
8096 2007-12-13  Bob Duff  <duff@adacore.com>
8097
8098         * clean.adb (Usage): Add line for -aP
8099         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8100         with a parameter "procedure Usage", instead of passing a pointer to a
8101         procedure. This is to eliminate trampolines (since the Usage procedure
8102         is often nested in a main procedure, and it would be inconvenient to
8103         unnest it).
8104
8105         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8106         to be generic, with a parameter "procedure Callback (...)", instead of
8107         passing a pointer to a procedure. This is to eliminate trampolines
8108         (since the Callback procedure is usually nested).
8109
8110         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8111         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8112         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8113
8114         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8115         Use the generic Heap_Sort_G instead of Heap_Sort_A.
8116
8117 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8118
8119         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8120         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8121         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8122         (Renamed_In_Spec): New flag
8123         (Has_Pragma_Inline_Always): New flag
8124         Add missing doc for pragma Obsolescent_Warning
8125         Add missing doc for 17 additional unused flags (230-247)
8126         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8127         Alphabetize with clauses.
8128         Separate Is_Thunk and Has_Thunks flags
8129         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8130         (Related_Interface): Renamed to Related_Type.
8131         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8132         (Set_Is_Flag): Restrict the assertion.
8133
8134 2007-12-13  Vincent Celier  <celier@adacore.com>
8135
8136         * errout.adb (Output_Source_Line): Do not keep a trailing space after
8137         the source line number if the source line is empty.
8138
8139 2007-12-13  Geert Bosch  <bosch@adacore.com>
8140
8141         * eval_fat.adb (Decompose_Int): Handle argument of zero.
8142         (Compose): Remove special casing of zero.
8143         (Exponent): Likewise.
8144         (Fraction): Likewise.
8145         (Machine): Likewise.
8146         (Decompose): Update comment.
8147
8148 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8149
8150         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8151         limited ancestor part, initialize controllers of enclosing record
8152         before expanding ancestor aggregate.
8153         (Gen_Assign): If a component of the aggregate is box-initialized, add
8154         code to call Initialize if the component is controlled, and explicit
8155         assignment of null if the component is an access type.
8156
8157         Handle properly aggregates for limited types that appear in object
8158         declarations when the aggregate contains controlled values such as
8159         protected types.
8160         When expanding limited aggregates into individual components, do not
8161         call Adjust on controlled components that are limited.
8162
8163 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8164
8165         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8166
8167 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8168
8169         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8170         predefined primitive _Disp_Requeue.
8171         (Make_Predefined_Primitive_Specs): Create the spec for predefined
8172         primitive _Disp_Requeue.
8173         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8174         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8175         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8176         an interface type. In case of limited interfaces we now declare all the
8177         predefined primitives associated with synchronized interfaces as
8178         abstract.
8179         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8180         declarations.
8181         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8182         tagged type is an interface type and there is no user-defined equality
8183         function.
8184         Add also bodies of predefined primitives associated with synchronized
8185         interfaces.
8186         (Freeze_Record_Type): Do not build bodies of predefined primitives of
8187         interface types because they are now defined abstract.
8188         Add missing documentation.
8189         (Expand_Record_Controller): Update occurrence of Related_Interface
8190         to Related_Type.
8191         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8192         (Expand_N_Object_Declaration): Take into account VM_Target when handling
8193         class wide interface object declaration.
8194         (Expand_Previous_Access_Type): Do not create a duplicate master entity
8195         if the access type already has one.
8196         (Expand_N_Object_Declaration): Defend against attempt to validity check
8197         generic types. Noticed for -gnatVcf specified with previous errors.
8198
8199 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8200
8201         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8202         Expand_Allocator_Expression): Take into account VM_Target
8203
8204         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8205         secondary stack when VM_Target /= No_VM
8206
8207 2007-12-13  Javier Miranda  <miranda@adacore.com>
8208             Ed Schonberg  <schonberg@adacore.com>
8209
8210         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8211         Is_Complation_Unit by Is_Library_Level_Entity in the code
8212         that decides if the static dispatch tables need to be built.
8213         (Wrap_Transient_Declaration): Do not generate a finalization call if
8214         this is a renaming declaration and the renamed object is a component
8215         of a controlled type.
8216
8217 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8218
8219         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8220         In the case where the renamed subprogram is a dereference, call
8221         Force_Evaluation on the prefix.
8222
8223 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8224             Ed Schonberg  <schonberg@adacore.com>
8225
8226         * exp_ch9.adb (Expand_N_Asynchronous_Select,
8227         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8228         comment reformatting.
8229         (Set_Privals): Inherit aliased flag from formal. From code reading.
8230         (Build_Simple_Entry_Call): Out parameters of an access type are passed
8231         by copy and initialized from the actual. This includes entry parameters.
8232         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8233         and Ada 2005 models of requeue.
8234         (Null_Statements): Still connsider do-end block null if it contains
8235         Unreferenced and Warnings pragmas.
8236         (Expand_N_Accept_Statement): Do not optimize away null do end if
8237         dispatching policy is other than defaulted.
8238         (Expand_N_Timed_Entry_Call): When the triggering statement is a
8239         dispatching call, manually analyze the delay statement.
8240         (Find_Parameter_Type): Move subprogram to Sem_Util.
8241
8242 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8243             Javier Miranda  <miranda@adacore.com>
8244
8245         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8246         _Disp_Requeue occupies dispatch table slot number 15. Move
8247         _Disp_Timed_Select to slot 16.
8248         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8249         generate the spec and body of _Disp_Reqeueue.
8250         (Make_DT): Build and initialize the second dispatch table.
8251         Handle initialization of RC_Offset when the parent
8252         is a private type with variable size components.
8253         (Make_Secondary_DT): Complete documentation. Add support to
8254         initialize the second dispatch table.
8255         (Make_Tags): Generate the tag of the second dispatch table.
8256         (Register_Primitive): Add support to register primitives in the
8257         second dispatch table.
8258
8259 2007-12-13  Pascal Obry  <obry@adacore.com>
8260
8261         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8262         Windows. This signal is used by gnatmake to kill child processes for
8263         example.
8264
8265 2007-12-13  Javier Miranda  <miranda@adacore.com>
8266
8267         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8268         support for generic dispatching constructor calls in which we need to
8269         locate the tag of a secondary dispatch table associated with an
8270         interface type to properly dispatch the call.
8271         (Expand_N_Attribute_Reference [case Address],
8272         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8273         handling of VM targets.
8274
8275 2007-12-13  Robert Dewar  <dewar@adacore.com>
8276             Ed Schonberg  <schonberg@adacore.com>
8277
8278         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8279         assert fail
8280
8281         * ug_words: Add entries for -gnatw.a -gnatw.A
8282
8283         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8284         literal is a subtype with non-static constraints, use the base type of
8285         the context as the base of the string subtype, to prevent type
8286         mismatches in gigi.
8287         (Resolve_Actuals): If the actual is an entity name, generate a
8288         reference before the actual is resolved and expanded, to prevent
8289         spurious warnings on formals of enclosing protected operations.
8290         (Analyze_Overloaded_Selected_Component): If type of prefix if
8291         class-wide, use visible components of base type.
8292         (Resolve_Selected_Component): Ditto.
8293         (Resolve_Short_Circuit): Detect case of pragma Assert argument
8294         evaluating to False, and issue warning message.
8295
8296         * usage.adb: Add lines for -gnatw.a and -gnatw.A
8297
8298 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8299
8300         * g-calend.ads (No_Time): New constant, to represent an uninitialized
8301         time value
8302
8303         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8304         formats.
8305         (Month_Name_To_Number): New subprogram
8306
8307         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8308         letter to upper-case.
8309
8310 2007-12-13  Robert Dewar  <dewar@adacore.com>
8311             Ed Schonberg  <schonberg@adacore.com>
8312
8313         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8314
8315         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8316         context is a limited view, use non-limited view when available. If the
8317         non-limited view is an unconstrained array, this enforces consistency
8318         requirements in 3.10.2 (27).
8319         (Layout_Type): For an access type whose designated type is a limited
8320         view, examine its declaration to determine if it is an unconstrained
8321         array, and size the access type accordingly.
8322         (Layout_Type): Do not force 32-bits for convention c subprogram
8323         pointers in -gnatdm mode, only if real vms target.
8324
8325         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8326         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8327         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8328         violations of the No_Implicit_Dynamic_Code restriction.
8329         (Resolve_Attribute, case 'Access): If designated type of context is a
8330         limited view, use non-limited view when available. If the non-limited
8331         view is an unconstrained array, this enforces consistency requirements
8332         in 3.10.2 (27).
8333         (Layout_Type): For an access type whose designated type is a limited
8334         view, examine its declaration to determine if it is an unconstrained
8335         array, and size the access type accordingly.
8336
8337 2007-12-13  Vincent Celier  <celier@adacore.com>
8338
8339         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8340         object directory of main project does not exist.
8341         On VMS, correctly set then environment variable for the source
8342         directories.
8343
8344 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8345
8346         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8347         set to True this procedure will create the value of type REG_EXPAND_SZ.
8348         It was only possible to create REG_SZ values before.
8349
8350 2007-12-13  Robert Dewar  <dewar@adacore.com>
8351
8352         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8353         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8354         namet-sp.adb, namet-sp.ads: New files.
8355
8356         * g-speche.adb: Use generic routine in g-spchge
8357
8358         * s-wchcnv.ads, s-wchcnv.adb:
8359         Minor code cleanup (make formal type consistent with spec)
8360
8361         * namet.adb: Update comments.
8362
8363         * par-endh.adb (Evaluate_End_Entry): Use new
8364         Namet.Sp.Is_Bad_Spelling_Of function
8365
8366         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8367
8368         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8369         ancestor is an access type initialized with a box, set its type
8370         explicitly, for use in subsequent expansion.
8371         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8372         function
8373
8374 2007-12-13  Robert Dewar  <dewar@adacore.com>
8375
8376         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8377         access Vstring)
8378
8379 2007-12-13  Robert Dewar  <dewar@adacore.com>
8380
8381         * inline.adb (Back_End_Cannot_Inline): Use new flag
8382         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8383
8384         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8385         Has_Pragma_Inline_Always instead.
8386         of obsolete function Is_Always_Inlined
8387         (Build_Body_To_Inline): Same change
8388         (Cannot_Inline): Same change
8389         Do not give warning on exception raise in No_Return function
8390
8391         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8392         component has two inconsistent component clauses in the same record
8393         representation clause, favor the message that complains about
8394         duplication rather than inconsistency.
8395         Update comments.
8396         (Record_Representation_Clause): Do not warn on missing component
8397         clauses for inherited components of a type extension.
8398         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8399         an overloadable item if it is a pragma that can apply to multiple
8400         overloadable entities (e.g. Inline) because a pragma cannot be on
8401         more than one chain at a time.
8402         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8403         conversion where one of the operands is Ada.Calendar.Time.
8404         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8405         For now, ignore Component_Size clause on VM targets, as done for
8406         pragma Pack.
8407
8408 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8409             Vincent Celier  <celier@adacore.com>
8410
8411         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8412         string
8413         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8414         prj.ads
8415         (Hash): Move instantiation of System.HTable.Hash from spec to body
8416         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8417         systems, since we do not need to recompute the Name_Id for the canonical
8418         file name.
8419         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8420         as a parameter. This parameter is in fact always "ada" in all calls, and
8421         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8422         while loading a project with 40000 files
8423
8424         * prj-attr.adb: Fix name of attribute Dependency_Driver
8425         Change the kind of indexing for attribute Root
8426
8427         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8428         variables already declared, in case constructions.
8429
8430         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8431         Current_Object_Path_File to No_Path.
8432
8433         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8434         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8435
8436         * prj-makr.adb: new parameter Current_Dir
8437
8438         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8439         Ada sources when language is not Ada.
8440         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8441         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8442         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8443         (Locate_Directory): Always resolve links when computing Canonical_Path
8444         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8445         in Source_Files before checking for the presence of a directory
8446         separator.
8447         Optimize calls to Name_Find when on case sensitive systems.
8448         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8449         as a parameter.
8450         (Prj.Nmsc.Check): new parameter Current_Dir
8451         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8452         cannot be empty and the spec suffix cannot be the same as the body or
8453         separate suffix.
8454         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8455         subunit), always consider the longest suffix.
8456         (Check_Configuration): Do not issue an error if there is no compiler
8457         for a language. Just issue a warning and ignore the sources for the
8458         language.
8459         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8460         not empty.
8461         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8462         (Unit_Exceptions): New hash table
8463         (Check_Naming_Schemes): Check if a file that could be a unit because of
8464         the naming scheme is not in fact a source because there is an exception
8465         for the unit.
8466         (Look_For_Sources): Put the unit exceptions in hash table
8467         Unit_Exceptions
8468         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8469         Other_Part to avoid exception when code is compiled with validity
8470         checking.
8471         (Get_Sources_From_File): Check that there is no directory information
8472         in the file names.
8473         (Look_For_Sources): Check that there is no directory information in the
8474         list of file names in Source_Files.
8475         (Look_For_Sources): In multi-language mode, do not allow exception file
8476         names that are excluded.
8477         (Excluded_Sources_Htable): New hash table
8478         (Search_Directories.Check_File): New procedure to simplify
8479         Search_Directories.
8480         (Search_Directories): Do not consider excluded sources
8481         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8482         Search_Directories.
8483         (Get_Exceptions): Set component Lang_Kind of Source_Data
8484         (Get_Unit_Exceptions): Ditto
8485         (Search_Directories): Ditto
8486
8487         * prj-pars.adb: new parameter Current_Dir
8488
8489         * prj-part.ads, prj-part.adb:
8490         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8491         (Opt.Follow_Links_For_Dirs): New flag
8492         (Project_Path_Name_Of): Cache information returned by this routine as
8493         Locate_Regular_File is a costly routine. The code to output a log
8494         information and the effective call to Locate_Regular_File is now
8495         factorized into a routine (code clean-up).
8496         (Parse, Parse_Single_Project): new parameter Current_Dir
8497         When main project file cannot be found, indicate in the error
8498         message the project path that was used to do the search.
8499
8500         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8501         (Prj.Proc.Process*): new parameter Current_Dir
8502
8503         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8504
8505 2007-12-13  Bob Duff  <duff@adacore.com>
8506
8507         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8508         procedure to be called from the back end to check the
8509         No_Implicit_Dynamic_Code restriction.
8510
8511 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8512
8513         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8514         Fixes another case where RTE_Available_Call was ignored instead of being
8515         taken into account.
8516         (Load_Fail): Ditto.
8517
8518         * rtsfind.ads: Add new entries.
8519
8520 2007-12-13  Robert Dewar  <dewar@adacore.com>
8521
8522         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8523         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8524
8525         * scn.adb: Implement BOM recognition
8526
8527 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8528             Ed Schonberg  <schonberg@adacore.com>
8529
8530         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8531         subprogram body that acts as its own spec may not have a non-private
8532         WITH clause on a private sibling.
8533         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8534         child unit is a renaming, create an implicit with_clause on that
8535         parent, and not on the unit it renames, to prevent visibility errors
8536         in the current unit.
8537
8538 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8539
8540         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8541         renaming declaration, use the Slocs of the formal parameters from the
8542         declaration of the formal subprogram when creating the formal parameter
8543         entities in the renaming declaration.
8544         (Analyze_Formal_Type_Declaration): Change the placement of the error
8545         message concerning illegal known discriminants. It is now posted on the
8546         type rather than on the first discriminant. This change ensures early
8547         error report.
8548         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8549         the package body that contains the instance, do not generate an
8550         out-of-place freeze node for the enclosing package.
8551         (Collect_Previous_Instantiations): Ignore internal instantiations
8552         generated for formal packages.
8553         (Validate_Derived_Type_Instance): Add a check that when a formal
8554         derived type is Known_To_Have_Preelab_Init then the actual type must
8555         have preelaborable initialization, and issue an error when this
8556         condition is violated.
8557
8558 2007-12-13  Robert Dewar  <dewar@adacore.com>
8559
8560         * s-imenne.adb, s-imenne.ads: New files.
8561
8562         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8563         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8564         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8565         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8566         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8567         stack usage.
8568
8569 2007-12-13  Javier Miranda  <miranda@adacore.com>
8570             Ed Schonberg  <schonberg@adacore.com>
8571
8572         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8573         generation of spurious error if parent is an interface type; caused
8574         because predefined primitive bodies will be generated later by
8575         Freeze_Record_Type.
8576         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8577         flag.
8578         (Derive_Subprograms): Handle derivations of predefined primitives
8579         after all the user-defined primitives to ensure that they are
8580         found in proper order in instantiations.
8581         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8582         of Related_Interface to Related_Type.
8583         (Record_Type_Declaration): Minor reordering of calls to decorate the
8584         Tag component because the entity must have set its Ekind attribute
8585         before setting its Is_Tag attribute.
8586         (Analyze_Subtype_Declaration): In the case of subtypes with
8587         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8588
8589 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8590             Ed Schonberg  <schonberg@adacore.com>
8591
8592         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8593         statement to the list of contexts where a selected component with a
8594         concurrent tagged type prefix should yield a primitive operation.
8595         (Find_Primitive_Operation): Handle case of class-wide types.
8596         (Analyze_Overloaded_Selected_Component): If type of prefix is
8597         class-wide, use visible components of base type.
8598         (Resolve_Selected_Component): Ditto.
8599         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8600         formal of a generic subprogram. find candidate interpretations by
8601         scanning the list of generic formal declarations.:
8602         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8603         type from a limited_with_clause, and the full view is available, use it
8604         for subsequent semantic checks.
8605         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8606         (Find_Primitive_Operation): New function.
8607         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8608         only once if several interpretations of the prefix yield an access type.
8609         (Try_Object_Operation): Code and comment cleanup.
8610         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8611         code reformatting. When the type of the prefix is tagged concurrent, a
8612         correct interpretation might be available in the primitive and
8613         class-wide operations of the type.
8614
8615 2007-12-13  Robert Dewar  <dewar@adacore.com>
8616             Ed Schonberg  <schonberg@adacore.com>
8617
8618         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8619         renaming entry as subprogram using rename-as-body if subprogram spec
8620         frozen.
8621         (Use_One_Type): The clause is legal on an access type whose designated
8622         type has a limited view.
8623         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8624         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8625         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8626         operation denoted by a selected component.
8627         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8628         it can be an expression, possibly overloaded, that returns a task or
8629         an access to one.
8630
8631 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8632             Gary Dismukes  <dismukes@adacore.com>
8633
8634         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8635         requeue statement is dispatching. Do not emit an error when the name is
8636         not an entry and the context is a dispatching select. Add code to
8637         perform subtype conformance between the formals of the current entry
8638         and those of the target interface primitive.
8639         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8640         Timed_Entry_Call): Analyze the triggering statement as the first step of
8641         the processing. If this is a dispatching select, postpone the analysis
8642         of all select statements until the Expander transforms the select. This
8643         approach avoids generating duplicate identifiers after the Expander has
8644         replicated some of the select statements. In case the Expander is
8645         disabled, perform regular analysis.
8646         (Check_Triggering_Statement): New routine.
8647         (Analyze_Requeue): Exclude any interpretations that are not entries when
8648         checking overloaded names in a requeue. Also test type conformance for
8649         matching interpretations rather than requiring subtype conformance at
8650         that point to conform with the RM's resolution rule for requeues.
8651
8652 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8653
8654         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8655         inherited operation is a defaulted tag-indeterminate call, and there is
8656         a statically tagged actual, use the static tag as a controlling actual
8657         for the defaulted actual.
8658
8659 2007-12-13  Geert Bosch  <bosch@adacore.com>
8660
8661         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8662         context, so do not call Check_Non_Static_Context.
8663
8664 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8665
8666         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8667         whether formal E is an entity which may have parameters.
8668
8669 2007-12-13  Bob Duff  <duff@adacore.com>
8670             Javier Miranda  <miranda@adacore.com>
8671             Robert Dewar  <dewar@adacore.com>
8672
8673         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8674         (Set_Convention): New procedure to set the Convention flag, and in
8675         addition make sure the Favor_Top_Level flag is kept in sync (all
8676         foreign-language conventions require Favor_Top_Level = True).
8677         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8678         to Related_Type.
8679         (Collect_Interfaces_Info): Minor update to handle the two secondary
8680         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8681         (Generate_Parent_Ref): Add parameter to specify entity to check
8682         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8683         initialize a component of a type with preelaborable initialization.
8684         This includes the case of a discriminal used in such a context.
8685         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8686         latest Ada 2005 rules about renaming and 'Access of
8687         discriminant-dependent components.
8688         (Check_Nested_Access): Add handling when there are no enclosing
8689         subprograms (e.g. case of a package body).
8690         (Find_Parameter_Type): Factor routine from several other compiler files.
8691         Remove routine from Find_Overridden_Synchronized_Primitive.
8692
8693 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8694
8695         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8696         an invalid access to an uninitialized slot in the
8697         Source_File_Index_Table.
8698
8699 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8700
8701         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8702
8703 2007-12-13  Bob Duff  <duff@adacore.com>
8704
8705         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8706         access-to-subprogram types in this package.
8707
8708 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8709
8710         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8711         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8712         Stack_Overlay_Address and document that we are using an internal
8713         abstraction.
8714         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8715         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8716         consistently throughout the various implementation pieces.
8717
8718         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8719         overlay we are using to fill the stack area with patterns.
8720         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8721         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8722         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8723
8724 2007-12-13  Robert Dewar  <dewar@adacore.com>
8725
8726         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8727
8728 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8729
8730         * s-tassta.adb:
8731         (Create_Task): Take into account tasks created by foreign threads.
8732         Code clean up: use constants instead of hard coded values.
8733
8734 2007-12-13  Robert Dewar  <dewar@adacore.com>
8735
8736         * styleg.adb (Check_Comment): More liberal rules for comment placement
8737
8738 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8739
8740         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8741         of Procedure Value instead of Frame Pointer as the invocation
8742         identifier associated with the instruction pointer in each traceback
8743         entry.
8744
8745         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8746         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8747         Pointer as the invocation identifier passed to tbk$symbolize.
8748
8749         * s-traent-vms.ads, s-traent-vms.adb
8750         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8751         Procedure Value instead of Frame Pointer as the invocation identifier
8752         passed to tbk$symbolize.
8753
8754 2007-12-13  Robert Dewar  <dewar@adacore.com>
8755
8756         * tbuild.ads, tbuild.adb:
8757         Fix location of flag for unrecognized pragma message
8758
8759 2007-12-13  Robert Dewar  <dewar@adacore.com>
8760
8761         * treepr.ads, treepr.adb: (pl): implement use of positive value
8762         shorthands
8763
8764 2007-12-13  Robert Dewar  <dewar@adacore.com>
8765
8766         * xeinfo.adb: Remove warnings
8767         * xnmake.adb: Remove warnings
8768         * xsinfo.adb: Remove warnings
8769         * xtreeprs.adb: Remove warnings
8770         * xsnames.adb: Remove warnings
8771
8772         * a-ngcoar.adb: Fix typo.
8773         * s-interr.adb: Minor reformatting
8774         * env.c: Minor reformatting.
8775         * g-bytswa.adb: Minor reformatting.
8776         * g-rannum.ads: Minor documentation improvements
8777         * s-tasinf-mingw.adb: Minor header fix
8778         * a-clrefi.adb: Minor reformatting
8779         * g-sttsne.ads: Minor documentation improvement
8780         * g-sttsne-locking.ads: Minor documentation improvement
8781         * g-soliop-solaris.ads: Minor documentation improvement
8782         * g-soliop-mingw.ads: Minor documentation improvement
8783         * g-soliop.ads: Minor documentation improvement
8784         * exp_aggr.ads: Minor reformatting
8785         * debug.adb: Add documentation for the gprbuild debug flags
8786         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8787         * exp_pakd.adb: Minor reformatting
8788
8789         * g-altive.ads, g-alleve.adb: Remove assertions.
8790         Add comment about minor differences between targets regarding
8791         floating-point operations.
8792
8793         * g-thread.adb: Remove pragma unreferenced.
8794         * lib.ads: Minor reformatting
8795         * par-ch9.adb: Minor reformatting of error messages
8796         * sem_case.adb: Minor reformatting
8797         * s-fileio.adb: Minor reformattinng
8798         * s-vmexta.ads: Minor typo
8799         * vxaddr2line.adb:
8800         Take into account 'Success' value as per new GNAT warning.
8801
8802 2007-12-13  Vincent Celier  <celier@adacore.com>
8803
8804         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8805         even on Windows
8806
8807 2007-12-13  Robert Dewar  <dewar@adacore.com>
8808             Bob Duff  <duff@adacore.com>
8809
8810         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8811         Document that suffixes may be terminations of each others
8812         Add doc for -gnatw.a and -gnatw.A
8813         Document gnatbind -Wx switch
8814         Document BOM recognition
8815         Document pragma Implemented_By_Entry.
8816         Document new units.
8817
8818         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8819         Add doc for pragma Unreferenced suppressing no entities referenced msg
8820         Add documentation of GNAT.Directory_Operations.Iteration
8821         Add documentation of GNAT.Random_Numbers
8822         Add documentation for pragma Shared.
8823         Correct documentation for Bit_Order
8824         Add documentation for the Pool_Address attribute.
8825         Fix and improve documentation of pragma machine_attribute.
8826         New pragma Fast_Math
8827         Document BOM recognition
8828
8829         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8830         Add /Wide_Character_Encoding for binder
8831         Add qualifier for the new gnatpp option --no-separate-loop-then
8832
8833 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8834
8835         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8836         which generic formal operations are called for each operation.
8837
8838 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8839
8840         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8841         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8842
8843 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8844
8845         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8846         Reference_Dir unless we actually need it.
8847
8848 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8849             Tristan Gingold  <gingold@adacore.com>
8850
8851         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8852
8853         * s-osprim-vms.adb,
8854         a-calend-vms.adb: Remove pragma warning off and add pragma
8855         unreferenced.
8856
8857 2007-12-13  Robert Dewar  <dewar@adacore.com>
8858
8859         * impunit.adb: Add entries for missing units
8860
8861         * Makefile.rtl: Add new run-time units.
8862
8863         * Make-lang.in:  Update dependencies.
8864
8865 2007-12-13  Bob Duff  <duff@adacore.com>
8866
8867         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8868         types, set Can_Use_Internal_Rep appropriately, based on
8869         Always_Compatible_Rep_On_Target.
8870
8871 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8872             Arnaud Charlet  <charlet@adacore.com>
8873
8874         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8875         it to the front end and setting the aamp_target environment variable
8876         to the switch's argument to ensure that gnaampbind and gnaamplink will
8877         take the specified library into account.
8878         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8879         target, since the CIL compiler supports an "object" file (.il files).
8880
8881 2007-12-13  Vincent Celier  <celier@adacore.com>
8882
8883         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8884         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8885
8886 2007-12-13  Geert Bosch  <bosch@adacore.com>
8887
8888         * s-parame-vxworks.adb:
8889         Update comments to reflect usage of this package by Nucleus.
8890
8891 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8892
8893         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8894         spec would break code.
8895
8896         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8897
8898         * system-vxworks-alpha.ads: Removed.
8899
8900 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8901
8902         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8903
8904 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8905
8906         PR ada/34366
8907         * sem_ch3.adb (Designates_T): New function.
8908         (Mentions_T): Factor reusable part of the logic into Designates_T.
8909         Consider non-access parameters and access and non-access result.
8910         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8911         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8912
8913         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8914
8915 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8916
8917         PR ada/34361
8918         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8919         the new implementation of target-specific calls.
8920
8921 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8922
8923         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8924         the designated full view, only follow a second level Full_View link
8925         for Non_Limited_Views of from_limited_with references.
8926
8927 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8928
8929         PR ada/15805
8930         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8931         to be initialized with an access to constant object.
8932
8933         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8934         when an access to constant is used to initialize an access
8935         value.
8936
8937         PR ada/21346
8938         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8939
8940 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8941
8942         PR ada/34173
8943         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8944         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8945         this is from an alignment clause on the GNAT entity.
8946         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8947         to distinguish the case where we set it from the type's alignment.
8948         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8949         whether this alignment was set from an explicit alignment clause.
8950
8951 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8952
8953         * decl.c (make_packable_type): Revert last change.
8954         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8955         * utils.c (finish_record_type): Retrieve the real name of the type.
8956
8957 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8958
8959         * trans.c (lvalue_required_p): Take base node directly instead
8960         of its parent.  Rename second parameter to 'gnu_type'.
8961         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8962         <N_Slice>: Likewise.
8963         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8964         Adjust calls to lvalue_required_p.
8965
8966 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8967
8968         PR ada/21489
8969         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8970         parameters of an entry call.
8971
8972 2007-12-03  Robert Dewar  <dewar@adacore.com>
8973             Samuel Tardieu  <sam@rfc1149.net>
8974
8975         PR ada/34287
8976         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8977         of variables declared in a library-level package.
8978
8979 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8980
8981         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8982         of Empty_String'Unchecked_Access.
8983
8984         * Makefile.in: Add support for sh4-linux.
8985
8986         * system-linux-sh4.ads: New file.
8987
8988 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8989
8990         PR ada/33722
8991         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8992         and its argument must not be free()ed.
8993
8994 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8995
8996         * decl.c (make_packable_type): Retrieve the real name of the type.
8997         (maybe_pad_type): Simplify similar code.
8998
8999 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
9000
9001         PR ada/15804
9002         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9003         than an identifier is used after "case" in a variant_part.
9004
9005         PR ada/17318
9006         * par-ch4.adb (Is_Parameterless_Attribute): New map.
9007         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9008         attribute name or not depending on the new map.
9009
9010         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9011         returning a string or a type will not be called with improper
9012         arguments.
9013
9014         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9015
9016         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9017
9018         PR ada/32792
9019         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9020         Signal an error when attribute argument is a fixed-point value of
9021         an unknown type.
9022
9023         PR ada/22559
9024         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9025         a derived ordinary fixed point type.
9026
9027         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9028         RM_Size when a Small clause is found.
9029
9030 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
9031
9032         PR 34081/C++
9033         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9034         Pass 'false' for the new allocate_struct_function parameter.
9035         * utils.c (build_function_stub): Likewise.
9036
9037 2007-11-25  Richard Guenther  <rguenther@suse.de>
9038
9039         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9040         (gnat_poplevel): Likewise.
9041
9042 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
9043
9044         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9045         strict alignment, no alignment clause and a known static size, cap
9046         the type alignment to the greatest power of 2 factor of the size.
9047         (gnat_to_gnu_field): If the field has a component clause, is aliased
9048         or of a type with strict alignment, require that its size be equal to
9049         that of the type.
9050         (validate_size): Use the type size as the minimum size for a type with
9051         strict alignment.
9052
9053 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
9054
9055         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9056         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9057         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9058         Use 'Access instead of 'Unchecked_Access in second and third
9059         arguments of pthread_sigmask.
9060
9061 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
9062
9063         * decl.c (ceil_alignment): New function.
9064         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9065         (make_packable_type): Likewise.
9066
9067 2007-11-22  Olivier Hainque  <hainque@adacore.com>
9068
9069         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9070         to fit in 80 columns.
9071
9072 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
9073
9074         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9075         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9076
9077 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
9078
9079         PR ada/34098
9080         * misc.c (gnat_adjust_rli): Delete.
9081         (gnat_init): Do not initialize the translation code here.
9082         Do not call set_lang_adjust_rli.
9083         * trans.c (init_code_table): Make static.
9084         (gnat_init_stmt_group): Delete.
9085         (gigi): Initialize the translation code entirely here.
9086         Emit debug info for the common types here instead of...
9087         * utils.c (gnat_init_decl_processing): ...here.
9088         * gigi.h (init_code_table): Delete.
9089         (gnat_init_stmt_group): Likewise.
9090
9091 2007-11-16  Olivier Hainque  <hainque@adacore.com>
9092
9093         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9094         retrieving an allocator return value from a super-aligned address from
9095         here to ...
9096         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9097         expect a super-aligned address for a fat or thin pointer.
9098
9099 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
9100
9101         * trans.c (call_to_gnu): Always set the source location on the call
9102         expression.  If the function returns-by-target, also set it on the
9103         address expression.
9104
9105 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
9106
9107         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9108         sections of non-supported Interix target.
9109
9110         * s-osinte-interix.ads: Removed.
9111
9112         * i-cstrin.ads (chars_ptr): Make it a C convention type.
9113
9114 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
9115
9116         * a-tasatt.adb: Add a comment at the beginning of the package
9117         explaining why in general 'Unchecked_Access must be used instead
9118         of 'Access.
9119
9120         * sem_prag.adb (Process_Convention): Move the test for the
9121         entity on which the Convention pragma applies down to also
9122         forbid pragma Convention on enumeration literals reached
9123         through renamings.
9124
9125 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
9126
9127         * a-tasatt.adb: Revert previous change for this file as it will
9128         generate an error when this package is instantiated from a
9129         local context.
9130
9131 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
9132
9133         * a-tasatt.adb: Type Wrapper should be declared in comment instead
9134         of already declared type Node_Access.
9135         Use 'Access instead of 'Unchecked_Access when applicable. Local
9136         lifetime is the one of the package.
9137         (Set_Value): W is allocated on the heap.
9138
9139         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9140         applicable.
9141         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9142         access type.
9143         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9144         access type.
9145
9146         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9147         applicable.
9148         (elaboration code): Timer_Queue lifetime is the one of the
9149         package.
9150
9151         * tracebak.c (i386 alternative): Remove useless comparaison
9152         which is always false; LOWEST_ADDRESS is 0 and is never greater
9153         than an unsigned integer.
9154
9155         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9156         embedded check for "Ada_Version >= Ada_05".
9157
9158 2007-11-07  Olivier Hainque  <hainque@adacore.com>
9159
9160         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9161         craft and expand comment.
9162
9163 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
9164
9165         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9166
9167 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
9168
9169         * misc.c (gnat_handle_option): Replace call to abort with
9170         call to gcc_unreachable.
9171         (gnat_init): Likewise.
9172         (gnat_expand_expr): Likewise.
9173         (fp_prec_to_size): Likewise.
9174         (fp_size_to_prec): Likewise.
9175
9176 2007-10-23  Richard Guenther  <rguenther@suse.de>
9177
9178         PR bootstrap/33608
9179         * tracebak.c: #undef abort after including system.h.
9180
9181 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
9182
9183         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9184         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9185         for win32 targets.
9186         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9187
9188 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
9189
9190         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9191         Set the protection status of the guard page based on the value of On.
9192
9193         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9194
9195         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9196         (Exit_Task): Pass False to Hide_Yellow_Zone.
9197
9198 2007-10-15  Robert Dewar  <dewar@adacore.com>
9199
9200         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9201         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9202         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9203         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9204         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9205         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9206         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9207         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9208         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9209         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9210         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9211         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9212         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9213         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9214         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9215         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9216         Minor reformatting.
9217         Add Unreferenced and Warnings (Off) pragmas for cases of
9218         variables modified calls where they are IN OUT or OUT parameters and
9219         the resulting values are not subsequently referenced. In a few cases,
9220         we also remove redundant code found by the new warnings.
9221
9222         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9223         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9224         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9225         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9226         warning controlled by -gnatw.o that warns on cases of out parameter
9227         values being ignored.
9228
9229 2007-10-15  Geert Bosch  <bosch@adacore.com>
9230
9231         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9232
9233         * expect.c: Initial port to arm-mentor-nucleus.
9234         Use kill for __gnat_kill() on VMS.
9235
9236 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9237
9238         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9239         value.
9240         (Xref_Record): Change type for Line, since in the case of a reference to
9241         a predefined entity (as happens for array index types), the line is set
9242         to 0.
9243         Add support for parsing multiple array index types info, or
9244         multiple inherited interfaces info. This information cannot be stored
9245         in Xref_Entity_Record, which only supports a single instance of Tref_*,
9246         and is therefore stored in the list of references instead. It has a
9247         special treatement later on in tools that use this information.
9248
9249 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9250
9251         * debug.adb: Document use of -gnatd.a and -gnatd.I
9252
9253         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9254
9255 2007-10-15  Javier Miranda  <miranda@adacore.com>
9256
9257         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9258         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9259         care of access to class-wide interface types plus removal of bizarre
9260         conversion of tagged object to access type (reported by Gary
9261         Dismukes). After this patch there is no need to perform any
9262         additional management on these nodes in Expand_Interface_Actuals.
9263
9264         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9265         that handles use of 'Access and 'Unchecked_Access applied to
9266         actuals covering interface types. Such code is now
9267         centralized in Expand_N_Attribute_Reference.
9268
9269 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9270
9271         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9272         of tagged types whose ultimate ancestor is a CPP type.
9273         (Freeze_Array_Type): For a packed array type, generate an initialization
9274         procedure if the type is public, to handle properly a client that
9275         specifies Normalize_Scalars.
9276
9277 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9278
9279         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9280         inside a generic body, retrieve the full view of the entry family
9281         discrete subtype if available.
9282
9283 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9284
9285         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9286         attempt to generate stubs for hidden primitive operations.
9287
9288 2007-10-15  Vincent Celier  <celier@adacore.com>
9289
9290         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9291         returning None, used when there is no platform specific body for
9292         MLib.Tgt.Specific.
9293
9294 2007-10-15  Bob Duff  <duff@adacore.com>
9295
9296         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9297         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9298         the generic Heap_Sort_G, in order to avoid trampolines.
9299
9300 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
9301             Jose Ruiz  <ruiz@adacore.com>
9302
9303         * vx_stack_info.c: New file.
9304
9305         * i-forbla-unimplemented.ads: New file.
9306
9307         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9308         for unsupported configurations; use it on VMS targets instead of the
9309         real one.
9310         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9311         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9312         used by VxWorks targets to have access to task-specific data and be
9313         able to extract the stack boundaries for stack checking.
9314         Use system-vms-ia64.ads on ivms.
9315
9316         * Make-lang.in: Update dependencies.
9317
9318         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9319         (vx_stack_info.c).
9320
9321 2007-10-15  Vincent Celier  <celier@adacore.com>
9322
9323         * snames.adb, snames.ads: Add new standard name runtime_library_dir
9324
9325         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9326
9327         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9328
9329         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9330         the source is unknown.
9331
9332         * prj-ext.adb: Spelling error fix
9333
9334         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9335         95 reserved word in its name.
9336         (Process_Project_Level_Array_Attributes): Process new attribute
9337         Runtime_Library_Dir.
9338
9339         * prj-part.adb (Parse_Single_Project): Do not check the name of the
9340         config project against the user project names.
9341
9342         * prj-proc.adb (Expression): In multi-language mode, indexes that do
9343         not include a dot are always case insensitive.
9344         (Process_Declarative_Items): Ditto
9345         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9346         detected.
9347
9348         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9349         True, compare both indexes in lower case.
9350
9351 2007-10-15  Robert Dewar  <dewar@adacore.com>
9352
9353         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9354
9355 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9356
9357         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9358         association for an access component, add an association with null as
9359         the expression. Remove testing for array subtypes and the setting in
9360         that case of Ctyp to the array component type, which prevented proper
9361         inclusion of an association for null-initialized arrays. Collapse
9362         condition that tests for array subtypes into just a test of
9363         Is_Partially_Initialized_Type (which already covers arrays anyway).
9364
9365 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9366
9367         * sem_ch12.adb: Minor code reformatting.
9368         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9369         find the parent package which may have been hidden by local
9370         declarations.
9371
9372 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9373
9374         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9375         flag of derived concurrent types, taking into account the flag setting
9376         on the parent subtype and any new set of discriminants.
9377
9378 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9379
9380         * sem_ch4.adb: Minor code and comment reformatting.
9381         (Analyze_Allocator): When the designated type of an unconstrained
9382         allocator is a record with unknown discriminants or an array with
9383         unknown range bounds, emit a detailed error message depending on the
9384         compilation mode and whether the designated type is limited.
9385
9386 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9387
9388         * system-vms-ia64.ads: New file.
9389
9390         * system-vms_64.ads: Minor comment fix.
9391
9392 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9393
9394         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9395         body generated for a function with a controlling result that is a null
9396         extension, discard the generated body in favor of the current explicit
9397         one.
9398
9399 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9400
9401         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9402         examining its original form, to handle properly operator calls that
9403         have been rewritten.
9404
9405 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9406
9407         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9408         instead of a procedure value in each traceback entry.
9409
9410         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9411         instead of procedure value to TBK$SYMBOLIZE.
9412
9413         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9414         field.
9415         (TB_Entry_For): Account for the PV/FP renaming.
9416
9417         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9418         add comment.
9419         (Null_TB_Entry): Account for change of component name.
9420         (PV_For): Rename as FP_For.
9421
9422 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9423
9424         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9425         This optimize assignment to over-aligned record.
9426
9427 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9428
9429         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9430         interfaces.
9431
9432         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9433         type, for dispatching calls.
9434
9435 2007-10-15  Vincent Celier  <celier@adacore.com>
9436             Robert Dewar  <dewar@adacore.com>
9437
9438         * gnat_ugn.texi: Add documentation for switches --version and --help
9439         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9440         gnatxref, gnatfind, gnatls, and gnatclean.
9441         Document -gnatw.o.
9442         Mention attribute Excluded_Source_Dirs
9443         Replace obsolescent attribute Locally_Removed_Files with attribute
9444         Excluded_Source_Files.
9445         Improve documentation of -u (gnatbind)
9446         Document how to do reliable stack checking for the environmental task
9447         on iVMS.
9448
9449         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9450         Document attribute Excluded_Source_Files and indicate that attribute
9451         Locally_Removed_Files is obsolescent.
9452
9453 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9454
9455         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9456
9457         * gen-soccon.c:
9458         Update documentation to note that OpenVMS 8.3 or later must be used
9459         to generate g-soccon-vms.ads.
9460
9461         * atree.adb: Add ??? comment
9462
9463         * exp_util.adb: Minor reformatting.
9464         Add ??? comment in Kill_Dead_Code.
9465
9466 2007-10-15  Robert Dewar  <dewar@adacore.com>
9467
9468         * errout.ads: Comment clarification
9469
9470         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9471         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9472
9473         * lib.ads: Comment update
9474
9475         * init.c: Minor reformatting.
9476
9477         * sem_attr.adb: Minor formatting
9478
9479         * osint-b.ads: Minor reformatting
9480
9481         * sem_ch9.adb: Implement -gnatd.I switch
9482
9483         * g-comlin.adb: (Start): Fix handling of empty command line.
9484
9485         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9486         even when -rules follows the -cargs section.
9487
9488 2007-10-08  Ollie Wild  <aaw@google.com>
9489
9490         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9491         gnat_return_tree.
9492         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9493         gnat_return_tree.
9494         (gnat_eh_runtime_type): Removed.
9495         (gnat_return_tree): New function.
9496
9497 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9498
9499         PR ada/33454
9500         Revert:
9501         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9502
9503         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9504         when compiling for powerpc64-*-linux.
9505         * system-linux-ppc64.ads: New file.
9506
9507 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9508
9509         Mapped location support
9510         * back_end.adb (Call_Back_End): Pass information about source
9511         files instead of units to gigi.
9512         * gigi.h (struct File_Info_Type): New.
9513         (gigi): Rename and change type of number_units parameter, change
9514         type of file_info_ptr parameter.
9515         * trans.c (number_files): New global variable.
9516         (gigi): Rename and change type of number_units parameter, change
9517         type of file_info_ptr parameter.
9518         If mapped location support is enabled, create the isomorphic mapping
9519         between source files and line maps.
9520         (Sloc_to_locus): If mapped location support is enabled, translate
9521         source location into mapped location.
9522         (annotate_with_node): Rename into set_expr_location_from_node.
9523         Call set_expr_location instead of annotate_with_locus.
9524         (Pragma_to_gnu): Adjust for above change.
9525         (Loop_Statement_to_gnu): Likewise.
9526         (call_to_gnu): Likewise.
9527         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9528         (gnat_to_gnu): Likewise.
9529         (add_stmt_with_node): Likewise.
9530         (add_cleanup): Likewise.
9531         * utils.c (gnat_init_decl_processing): Do not set input_line.
9532
9533 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9534
9535         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9536         (Applicable_Use): Emit a warning when a package tries to use itself.
9537         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9538         is already in use or the package where it is declared is in use or is
9539         declared in the current package.
9540         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9541
9542         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9543         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9544         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9545
9546 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9547
9548         * a-calend-vms.adb, a-calend.adb:
9549         Add a section on leap seconds control along with two entities used to
9550         enable and disable leap seconds support. The array Leap_Second_Times is
9551         now constant and contains hard time values pre-generated. Remove
9552         all elaboration code used to populate the table of leap seconds.
9553
9554         * bindgen.adb:
9555         Add entity Leap_Seconds_Support to the list of global run-time variables
9556         along with a comment on its usage and values.
9557         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9558         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9559         or one (enabled) depending on the presence of binder switch "-y".
9560         (Gen_Adainit_C): Add code to generate the declaration of external int
9561         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9562         (enabled) depending on the presence of binder switch "-y".
9563
9564         * init.c: Add __gl_leap_seconds_support to the list of global values
9565         computed by the binder.
9566
9567 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9568
9569         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9570         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9571          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9572         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9573
9574         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9575
9576         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9577         function which can be called by the debugger to interrupt the tasks of
9578         an Ada application asynchronously, as needed on VxWorks.
9579         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9580
9581         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9582         renamed from Stop_All_Tasks. Update comments.
9583         (Stop_All_tasks): New function declaration.
9584
9585 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9586
9587         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9588         #include <utime.h> and #define GCC_RESOURCE_H before
9589         #include <sys/wait.h>.
9590         Add more protections in __gnat_translate_vms.
9591
9592         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9593         #include <sys/wait.h>.
9594
9595 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9596             Sergey Rybin  <rybin@adacore.com>
9597
9598         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9599
9600         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9601         where it belongs.
9602
9603         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9604
9605         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9606         where it belongs.
9607
9608         * sem_dist.ads: Minor comment fix
9609
9610         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9611
9612 2007-09-26  Javier Miranda  <miranda@adacore.com>
9613             Eric Botcazou  <ebotcazou@adacore.com>
9614
9615         * a-tags.adb:
9616         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9617          indirection added to the HT_Link component of the TSD. This is required
9618          to statically allocate the TSD.
9619
9620         * a-tags.ads:
9621         Minor reordering of the declarations in the private part. Required to
9622         add a level of indirection to the contents of the TSD component HT_Link.
9623         This is required to statically allocate the TSD.
9624
9625         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9626         Is_Statically_Allocated set from constant objects.
9627         Do not make exported constants created by the compiler volatile.
9628         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9629         as read-only.
9630
9631         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9632         before returning them.
9633
9634         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9635         public part of the package.
9636         (Make_DT): Move HT_Link component out of the TSD record. For this
9637         purpose Make_DT now declares a separate object that stores the
9638         HT_Link value, and initializes the TSD component with the address
9639         of this new object. The addition of this level of indirection is
9640         required to statically allocate the TSD because the TSD cannot
9641         have variable components.
9642         (Expand_Interface_Conversion): Improve the expanded code.
9643         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9644
9645         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9646         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9647         if we are building static dispatch tables then we must not generate
9648         extra code to register the primitive because the dispatch table will
9649         be built at the end of the library package; otherwise we notify that
9650         we cannot build the static dispatch table.
9651
9652 2007-09-26  Robert Dewar  <dewar@adacore.com>
9653
9654         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9655         overlays.
9656
9657         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9658         (Analyze_Record_Representation_Clause): Suppress junk warning for
9659         missing component clause.
9660         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9661         tests for controlled type overlay to composites with controlled
9662         components.
9663         (Analyze_Record_Representation_Clause): Add reference for component name
9664
9665 2007-09-26  Javier Miranda  <miranda@adacore.com>
9666             Gary Dismukes  <dismukes@adacore.com>
9667
9668         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9669         for thunks associated with interface types.
9670
9671         * einfo.ads: Improve documentatation of Is_Internal
9672         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9673         associated with interface types.
9674         Extensive comment fixes regarding flags that appear in all entities. The
9675         documentation is now consistent for all such flags (there were a number
9676         of errors in the documentation in this regard).
9677
9678         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9679
9680         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9681         of these procedures are passed a function call that already has
9682         build-in-place actuals (testing new flag
9683         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9684         the case where processing continues.
9685         (Expand_Call): If the call is generated from a thunk body then we
9686         propagate the extra actuals associated with the accessibility
9687         level of the access type actuals.
9688
9689         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9690         of each extra formal of a protected operation to reference the
9691         corresponding extra formal of the subprogram denoted by the
9692         operation's Protected_Body_Subprogram.
9693
9694         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9695         N_Function_Call nodes.
9696
9697 2007-09-26  Robert Dewar  <dewar@adacore.com>
9698
9699         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9700
9701         * debug.adb: Add d.s flag.
9702
9703 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9704
9705         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9706         debug variable so that it won't be initialized when pragma
9707         Initialize_Scalars is in effect.
9708
9709 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9710
9711         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9712         initialization of a full view. This is moved to
9713         Analyze_Package_Specification.
9714
9715         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9716         preelaborable initialization of a full view in entity loop.
9717         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9718         its child units are use-visible only if they are visible child units.
9719
9720         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9721         whether an expression can be used within a type declaration that
9722         requires preelaborable init.
9723         (Check_Components): Replace inline code that does partial checking for
9724         preelaborable default expressions with call to
9725         Is_Preelaborable_Expression.
9726         (Has_Preelaborable_Initialization): In the case of a generic actual
9727         subtype, (that is, Is_Generic_Actual is True), return the result of
9728         applying Has_Preelaborable_Initialization to the generic actual's base
9729         type.
9730
9731 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9732
9733         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9734         call to Jan_1_Day _Of_Week to optimize its performance.
9735         (Is_Leap): Move the routine to the scope of Week_In_Year.
9736         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9737         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9738         avoids calling Time_Of and Split, thus making it more efficent.
9739         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9740
9741         * g-calend.ads (Week_In_Year): Change comment to reflect new
9742         implementation.
9743
9744 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9745
9746         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9747         Command_Line): New types
9748         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9749         support for defining how switches can be grouped on a command line (as
9750         is the case for -gnatw... for GNAT), and how simple switches can be
9751         used as aliases for more complex switches (-gnatwa is same as
9752         -gnatwbcef...)
9753         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9754         (Start, Current_*): New subprograms
9755         Added support for parsing an array of strings in addition to the real
9756         command line.
9757         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9758          be moved from the body to the private part of the spec.
9759         (*): All subprograms now have an extra parameter with default value to
9760         specify which parser should be used. For backward compatibility, it
9761         defaults to parsing the command line of the application. They were also
9762         modified to properly handle cases where each of the argument does not
9763         start at index 1 (which is always true for Ada.Command_Line, but not
9764         when processing any Argument_List).
9765         (Free): New subprogram
9766         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9767         Argument): New subprograms
9768         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9769         special characters like ':', '=',... are now handled in a single place,
9770         which makes the code more extensible eventually.
9771         (Getopt, Full_Switch): When the switch was returned as part of the
9772         special character '*', make sure it is prepended by the switch character
9773         ('-' in general), so that the application knows whether "foo" or "-foo"
9774         was specified on the command line.
9775
9776 2007-09-26  Florian Villoing  <villoing@adacore.com>
9777
9778         * g-dirope.adb (Remove_Dir): In case we are removing directories
9779         recursively, make sure that if an exception is raised during the
9780         processing, the current working directory is reset to its initial
9781         value before propagating the exception.
9782
9783 2007-09-26  Vincent Celier  <celier@adacore.com>
9784
9785         * gnatbind.adb: If there are several ALI files specified and there is
9786         a main program to bind, the first ALI is expected to contain the main
9787         subprogram and the names of the binder generated files will be derived
9788         from the first ALI file name.
9789         (Gnatbind): Fix insertion character in invocation of Error_Msg
9790
9791 2007-09-26  Vincent Celier  <celier@adacore.com>
9792
9793         * gnatcmd.adb (Check_Files): Do not include sources that have been
9794         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9795
9796 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9797
9798         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9799         information about each of its index types, following the type
9800         reference for its component type.
9801
9802 2007-09-26  Vincent Celier  <celier@adacore.com>
9803
9804         * make.adb: (Kill): New procedure (__gnat_kill imported)
9805         (Running_Compile, Outstanding_Compiles): Global variables that
9806         were previously local to procedure Compile_Sources.
9807         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9808         compilation processes.
9809
9810         (Gnatmake): If project files are used, create the mapping of all the
9811         sources, so that the correct paths will be found.
9812
9813         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9814
9815 2007-09-26  Vincent Celier  <celier@adacore.com>
9816
9817         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9818
9819         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9820         Replace components Compiler_Min_Options and Binder_Min_Options with
9821         Compiler_Required_Switches and Binder_Required_Switches in record
9822         Language_Config.
9823         Remove components Default_Language and Config in Project_Tree_Data,
9824         no longer used.
9825
9826         * prj-attr.adb: New attributes Required_Switches (<language>) in
9827         packages Compiler and Binder.
9828
9829         * prj-nmsc.adb: Major rewrite of the processing of configuration
9830         attributes for gprbuild. No impact on GNAT tools.
9831
9832         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9833         process configuration attributes: this is done in Prj.Nmsc.Check.
9834         (Recursive_Process): Make a full copy of packages inherited from project
9835         being extended, instead of a shallow copy.
9836         (Process_Project_Tree_Phase_1): New procedure
9837         (Process_Project_Tree_Phase_1): New procedure
9838         (Process): Implementation now uses the two new procedures
9839
9840         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9841         from the project config, not the tree config that no longer exists.
9842
9843 2007-09-26  Vincent Celier  <celier@adacore.com>
9844
9845         * Make-lang.in: Update dependencies..
9846
9847 2007-09-26  Vincent Celier  <celier@adacore.com>
9848
9849         * osint.adb, osint.ads: Minor reformatting
9850
9851         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9852
9853 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9854
9855         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9856         message to cite use of <> in aggregate component associations rather
9857         than wrongly indicating use of limited aggregates.
9858
9859 2007-09-26  Robert Dewar  <dewar@adacore.com>
9860
9861         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9862         Address_Taken.
9863
9864 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9865
9866         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9867         ancestor of the derived type, the operations are inherited from the
9868         primary dispatch table of the parent.
9869         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9870         when the context is an explicit type conversion.
9871
9872 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9873
9874         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9875         rule for qualified expressions properly, to detect improper conversions
9876         and resolve some cases of overloading.
9877
9878 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9879
9880         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9881         proper kind of reference to the primitive operation, for better source
9882         navigation.
9883         (Valid_Conversion): A tagged conversion is legal if both operands are
9884         tagged.
9885
9886 2007-09-26  Robert Dewar  <dewar@adacore.com>
9887
9888         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9889         packages.
9890
9891 2007-09-26  Vincent Celier  <celier@adacore.com>
9892
9893         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9894
9895 2007-09-26  Robert Dewar  <dewar@adacore.com>
9896
9897         * s-wchstw.adb: provide messages for run time unit exceptions
9898
9899         * a-witeio.adb: Minor reformatting
9900
9901         * exp_ch13.adb: Minor reformatting
9902
9903 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9904
9905         * vms_data.ads: Revise gnatmetric qualifiers.
9906         Add qualified for the new gnatbind option '-y'
9907
9908         * gnat_ugn.texi: Revise the gnatmetric section.
9909         Add entry for new gnatbind option '-y'.
9910
9911         * gnat_rm.texi: Minor spelling correction.
9912         Document restriction on overlaying controlled types
9913
9914 2007-09-26  Vincent Celier  <celier@adacore.com>
9915
9916         * makegpr.adb (Link_Executables): Do not fail when the root project has
9917         no sources, but is an extending project.
9918
9919 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9920
9921         * trans.c: Fix misplaced #define.
9922
9923 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9924
9925         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9926         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9927
9928 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9929
9930         * utils.c (type_for_nonaliased_component_p): Return false for
9931         all AGGREGATE_TYPEs.
9932
9933 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9934
9935         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9936         object covered by 13.3(19) volatile.
9937
9938 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9939
9940         PR ada/26797
9941         PR ada/32407
9942         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9943         in the special VIEW_CONVERT_EXPR case.
9944
9945 2007-09-12  Robert Dewar  <dewar@adacore.com>
9946
9947         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9948
9949         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9950         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9951         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9952         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9953         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9954         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9955         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9956         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9957         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9958         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9959         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9960         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9961         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9962         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9963         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9964         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9965         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9966         pragma Compiler_Unit and adds it to relevant library units.
9967
9968 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9969
9970         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9971         a box need not correspond to any component.
9972
9973 2007-09-12  Robert Dewar  <dewar@adacore.com>
9974
9975         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9976         the tasking version of the Ada run time when foreign threads are
9977         present and there are no explicit Ada tasks or tasking constructs.
9978
9979         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9980
9981 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9982
9983         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9984         the usage of switch -y.
9985
9986         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9987         when switch -y is present.
9988
9989         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9990         leap seconds in Ada.Calendar and its children.
9991
9992 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9993
9994         * a-extiti.ads (Timer): The discriminant is a "not null access
9995         constant" in the Reference Manual.
9996         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9997
9998 2007-09-12  Robert Dewar  <dewar@adacore.com>
9999
10000         * a-swuwha.adb: Remove junk RM header
10001
10002 2007-09-12  Vincent Celier  <celier@adacore.com>
10003
10004         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10005         indicator
10006
10007         * g-bytswa.ads: Minor reformatting
10008
10009 2007-09-12  Thomas Quinot  <quinot@adacore.com>
10010
10011         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10012         Add new constant Thread_Blocking_IO, always True by default, set False
10013         on a per-runtime basis.
10014         (Need_Netdb_Buffer): New constant.
10015
10016 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
10017
10018         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10019         Added renames for corresponding functions in System.Partition_Interface.
10020
10021 2007-09-12  Doug Rupp  <rupp@adacore.com>
10022
10023         * Makefile.in: Remove VMS specific System.CRTL packages which are no
10024         longer needed.
10025
10026         * s-crtl-vms64.ads: Removed.
10027
10028 2007-09-12  Olivier Hainque  <hainque@adacore.com>
10029
10030         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10031         with discriminant constraints, generalize the code for BIT_FIELDs
10032         to PACKED fields of constant size and propagate DECL_PACKED.
10033
10034 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
10035
10036         * decl.c (array_type_has_nonaliased_component): New predicate.
10037         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10038         set the TYPE_NONALIASED_COMPONENT flag on the type.
10039         <E_Array_Subtype>: Likewise.
10040         * gigi.h (type_for_nonaliased_component_p): Declare.
10041         * utils.c (type_for_nonaliased_component_p): New predicate.
10042         (create_field_decl): Invoke the above predicate to set the
10043         DECL_NONADDRESSABLE_P flag on the field.
10044
10045 2007-09-11  Javier Miranda  <miranda@adacore.com>
10046
10047         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10048         in library level record type entities if we are generating statically
10049         allocated dispatch tables.
10050
10051         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10052         importing/exporting the _tag declaration by new code
10053         importing/exporting the dispatch table wrapper. This change allows us
10054         to statically allocate of the TSD.
10055         (Make_DT.Export_DT): New procedure.
10056         (Build_Static_DT): New function.
10057         (Has_DT): New function.
10058
10059         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10060         True_Constant and Current_Value. Required to statically
10061         allocate the dispatch tables.
10062         (Check_Allocator): Make function iterative instead of recursive.
10063         Also return inner allocator node, when present, so that we do not have
10064         to look for that node again in the caller.
10065
10066 2007-09-11  Jan Hubicka  <jh@suse.cz>
10067
10068         * misc.c (gnat_expand_body): Kill.
10069         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10070
10071 2007-09-10  Robert Dewar  <dewar@adacore.com>
10072
10073         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10074         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10075         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10076         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10077         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10078         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10079         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10080         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10081         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10082         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10083         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10084         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10085         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10086         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10087         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10088         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10089         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10090         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10091         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10092         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10093         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10094         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10095         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10096         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10097         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10098         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10099         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10100         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10101         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10102         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10103         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10104         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10105         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10106         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10107         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10108         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10109         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10110         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10111         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10112         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10113         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10114         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10115         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10116         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10117         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10118         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10119         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10120         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10121         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10122         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10123         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10124         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10125         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10126         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10127         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10128         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10129         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10130         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10131         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10132         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10133         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10134         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10135         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10136         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10137         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10138         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10139         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10140         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10141         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10142         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10143         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10144         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10145         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10146         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10147         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10148         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10149         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10150         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10151         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10152         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10153         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10154         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10155         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10156
10157 2007-09-10  Emmanuel Briot  <briot@adacore.com>
10158
10159         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10160         classes ("[]").
10161
10162 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
10163
10164         * adaint.c (__gnat_translate_vms): new function.
10165
10166 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
10167             Thomas Quinot  <quinot@adacore.com>
10168
10169         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10170         create an abstract subprogram in the case of 'Input. For 'Output we now
10171         create a real spec/body when the type is abstract, since it can
10172         potentially be called.
10173         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10174         body for 'Output when the type is abstract (only the creation of the
10175         body for 'Input is excluded when the type is abstract).
10176         (Stream_Operation_OK): Add an additional condition in the return
10177         statement, so that False will be returned for TTS_Stream_Input if the
10178         associated tagged type is an abstract extension. Add comments for
10179         return statement.
10180         (Expand_N_Object_Declaration): For the case of a shared passive
10181         variable, insert init proc call only after the shared variable
10182         procedures have been processed, because the IP call needs to undergo
10183         shared passive variable reference expansion, which requires these
10184         procedures to be available (and elaborated).
10185
10186 2007-09-10  Vincent Celier  <celier@adacore.com>
10187
10188         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10189         parameter Runtime_Project.
10190
10191 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10192
10193         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10194         given a box association, the type of the component is discriminated,
10195         and the value of the discriminant is the discriminant of the enclosing
10196         type, retrieve its value from the aggregate itself, where it must have
10197         been supplied.
10198
10199         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10200         to remove other spurious ambiguities on arithmetic operations involving
10201         literals and addresses, on systems where Address is a visible integer
10202         type, when the operator is called in functional notation.
10203         (Try_Primitive_Operation): Within an instance, a call in prefixed form
10204         is legal when the types match, even if the operation is currently
10205         hidden.
10206
10207 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10208
10209         * sem_ch12.adb (Build_Local_Package): A formal package with no
10210         associations is legal if all formals have defaults. It is not
10211         equivalent to a formal declared with a box.
10212
10213 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10214
10215         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10216
10217 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10218
10219         * gnat_ugn.texi: Add description of the new '-lratio' option
10220         Update 7.3.1 section about availability of the feature.
10221
10222 2007-09-10  Thomas Quinot  <quinot@adacore.com>
10223
10224         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10225         inserted node.
10226
10227 2007-09-10  Olivier Hainque  <hainque@adacore.com>
10228
10229         * Makefile.in: (mips-irix section): Activate build of libgmem.
10230
10231 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10232
10233         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10234         x87 registers.
10235
10236 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10237
10238         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10239         a debug renaming declaration specially.
10240
10241 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10242
10243         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10244         which a constant renaming is treated as a normal object declaration.
10245         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10246         the N_Indexed_Component case.
10247         <N_Indexed_Component>: Fall through to above case.
10248         <N_Object_Renaming_Declaration>: Return true for all composite types.
10249
10250 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10251
10252         * decl.c (make_packable_type): If the new type has been given BLKmode,
10253         try again to get an integral mode for it.
10254
10255 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
10256
10257         Re-apply accidentally reverted change:
10258
10259         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10260
10261         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10262         get_action_description_for): Replace _Unwind_Word with _uleb128_t
10263         and _Unwind_SWord with _sleb128_t.
10264
10265 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10266
10267         * trans.c (convert_with_check): Update call to real_2expN.
10268
10269 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
10270
10271         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10272         * utils.c (end_subprog_body): Likewise.
10273
10274 2007-09-03  Nick Clifton  <nickc@redhat.com>
10275
10276         * Make-lang.in: Change copyright header to refer to version 3 of
10277         the GNU General Public License and to point readers at the
10278         COPYING3 file and the FSF's license web page.
10279         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10280         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10281         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10282         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10283         Likewise.
10284
10285 2007-08-31  Vincent Celier  <celier@adacore.com>
10286
10287         PR ada/4720
10288
10289         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10290         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10291         (Check_Version_And_Help): New procedure in package Switch to process
10292         switches --version and --help.
10293         Use Check_Version_And_Help in GNAT tools
10294
10295         * make.adb:  Ditto.
10296         (Compile_Sources): Make sure that sources that are "excluded" are not
10297         compiled.
10298         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10299         project file is used.
10300         (Version_Switch): Remove, moved to Switch
10301         (Help_Switch): Remove, moved to Switch
10302         (Display_Version): Remove, moved to Switch
10303
10304         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10305         package Switch to process switches --version and --help.
10306         (Display_Version): New procedure
10307
10308         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10309
10310 2007-08-31  Javier Miranda  <miranda@adacore.com>
10311
10312         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10313         internal tags.
10314
10315 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10316
10317         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10318         (Mark_Non_Null): If the node for which we just generated an access check
10319         is a reference to an *in* parameter and the reference appears in the
10320         declarative part of a subprogram body, mark the node as known non null.
10321
10322 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10323
10324         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10325         structure of E_Exception to reflect the new flag.
10326         (Is_Raised, Set_Is_Raised): New inlined routines.
10327         Update the usage of available flag to reflect the addition of Is_Raised.
10328         (Is_Raised, Set_Is_Raised): Bodies of new routines.
10329         (Write_Entity_Flags): Write the status of flag Is_Raised.
10330         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10331         spurious ambiguities when integer literals appear in the context of an
10332         address type that is a visible integer type.
10333
10334         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10335         exceptions never being raised.
10336         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10337         explicitly raised.
10338
10339 2007-08-31  Javier Miranda  <miranda@adacore.com>
10340
10341         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10342         statement when compiling under restriction No_Exceptions_Proparation.
10343
10344 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10345
10346         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10347         initialization aggregate for the type, generate itype references for
10348         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10349
10350 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
10351
10352         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10353         library-level package renaming, pass the declaration associated with
10354         the renaming's special debug variable to Qualify_Entity_Names to ensure
10355         that its encoded name is properly qualified.
10356
10357         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10358         occurring in the list of entities to qualify, and do not attempt to
10359         traverse an entity list in that case. Variables associated with
10360 `       library-level package renamings can now occur in the table.
10361
10362         * exp_dbug.ads: Revise documentation of the encoding for renaming
10363         declarations.
10364
10365 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10366
10367         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10368         access type points to an unconstrained array.
10369
10370 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10371
10372         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10373         conversion.
10374
10375         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10376         simple redundant qualifications. The check is performed whenever the
10377         expression is a non-overloaded identifier.
10378         (Resolve_Type_Conversion): Enchance the redundant type conversion check
10379         to include loop parameters.
10380         (Valid_Conversion): Avoid generation of spurious error message.
10381
10382 2007-08-31  Bob Duff  <duff@adacore.com>
10383
10384         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10385         concatenations of string literals into a single literal, in order to
10386         avoid very deep recursion in the front end, which was causing stack
10387         overflow.
10388
10389         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10390         string, and the right operand is a string literal (the case of "" &
10391         "..."), optimize by avoiding copying the right operand -- just use the
10392         value of the right operand directly.
10393
10394         * stringt.adb (Store_String_Chars): Optimize by growing the
10395         String_Chars table all at once, rather than appending characters one by
10396         one.
10397         (Write_String_Table_Entry): If the string to be printed is very long,
10398         just print the first few characters, followed by the length. Otherwise,
10399         doing "pn(n)" in the debugger can take an extremely long time.
10400
10401         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10402         Store_String_Char with Store_String_Chars.
10403
10404 2007-08-31  Vincent Celier  <celier@adacore.com>
10405
10406         * prj-attr.adb: Add new attribute Excluded_Source_Files
10407
10408         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10409         Locally_Removed_Files.
10410
10411         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10412
10413 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10414
10415         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10416         clauses of subunits, ignore limited_with_clauses that are illegal and
10417         have not been fully analyzed.
10418
10419 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10420
10421         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10422         flag, for effiency. It is called when analyzing arithmetic operators
10423         and also for actuals in calls that are universal_integers. The flag is
10424         set for the predefined type address, and for any type or subtype
10425         derived from it.
10426
10427         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10428         Universal_Integer, when the formal is a descendent of address and the
10429         call appears in user code.
10430         (Analyze_Selected_Component): if the prefix is a private extension, the
10431         tag component is visible.
10432
10433         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10434         entity flag.
10435
10436 2007-08-31  Robert Dewar  <dewar@adacore.com>
10437
10438         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10439         sensitive file name systems to avoid unexpected mismatch in Vista.
10440
10441 2007-08-31  Vincent Celier  <celier@adacore.com>
10442
10443         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10444
10445 2007-08-31  Vincent Celier  <celier@adacore.com>
10446
10447         * symbols-vms.adb (Initialize): Read symbol files with continuation
10448         lines
10449         (Finalize): If symbol is long, split the line
10450
10451 2007-08-31  Vincent Celier  <celier@adacore.com>
10452
10453         * fmap.ads: Minor comment updates
10454
10455 2007-08-31  GNAT Script  <nobody@adacore.com>
10456
10457         * Make-lang.in: Makefile automatically updated
10458
10459 2007-08-31  Bob Duff  <duff@adacore.com>
10460
10461         * sinfo.ads: Minor comment fix.
10462
10463 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10464
10465         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10466         with implementation.
10467         Documentation cleanup only.
10468
10469 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10470
10471         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10472         gnatpp '--separate-stmt-name' option.
10473         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10474         option.
10475
10476         * gnat_ugn.texi: Add description for the new gnatpp
10477         '--separate-stmt-name' and '--use-on-new-line' options.
10478
10479 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10480
10481         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10482         when compiling for powerpc64-*-linux.
10483         * system-linux-ppc64.ads: New file.
10484
10485 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10486
10487         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10488         NetBSD.
10489
10490 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10491
10492         * misc.c (gnat_type_max_size): Constify.
10493
10494 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10495
10496         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10497         associated with Standard_Debug_Renaming_Type, to be used as the type of
10498         the special variables whose names provide debugger encodings for
10499         renaming declarations.
10500
10501         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10502         (Set_Debug_Renaming_Link): Change to set Node25.
10503         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10504         (Write_Field25_Name): Add case for E_Variable to output
10505         "Debug_Renaming_Link".
10506         (Write_Field23_Name): Correct the output string for "Limited_View".
10507
10508         * exp_dbug.adb: Add with and use of Tbuild.
10509         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10510         and literal with creation of a variable of type
10511         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10512         and the entity of the renaming declaration.
10513         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10514         part of the name of a variable that has a Debug_Renaming_Link.
10515
10516         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10517         special type to be associated with variables that provide debugger
10518         encodings for renaming declarations.
10519
10520 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10521             Ed Schonberg  <schonberg@adacore.com>
10522             Javier Miranda  <miranda@adacore.com>
10523
10524         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10525         ancestor part given by an aggregate to test for an unchecked conversion,
10526         since this can occur in some cases when the ancestor part is a function
10527         call, and we don't want to fall into the recursive call to this
10528         procedure in that case.
10529
10530         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10531         stream attributes on limited types to account for user-specified
10532         attributes as well as whether Input (resp. Output) becomes available
10533         due to Read (resp. Write) being available for the type. Change Boolean
10534         variable to the more accurate name
10535         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10536         double-"not" predicate at beginning of return statement to more
10537         understandable form.
10538
10539         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10540         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10541         in a block statement and use that as the first statement of the
10542         expanded return rather than incorrectly using the handled sequence as
10543         the first statement.
10544
10545         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10546         operation, generate an explicit freeze node for it rather than
10547         generating extra formals, to ensure that gigi has the proper order of
10548         elaboration for anonymous subtypes in the signature of the subprograms.
10549         (Build_In_Place_Formal): Move assertion to beginning of loop.
10550         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10551         applied to a function call (occurs for some cases of 'Input).
10552         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10553         applied to a function call (occurs for some cases of 'Input).
10554
10555         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10556         2005, generate an extended return statement enclosing the result object
10557         and 'Read call.
10558
10559         * freeze.adb (Freeze_Record_Type): Extend the current management of
10560         components that are access type with an allocator as default value: add
10561         missing support to the use of qualified expressions of the
10562         allocator (which also cause freezing of the designated type!)
10563         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10564         dispatching operation, since extra formals may be needed by calls to
10565         build-in-place functions (such as stream 'Input).
10566
10567         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10568         formals for 'Constrained and accessibility level in the case of a
10569         predefined dispatching operation.
10570
10571         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10572         point, no need to find the parent node.
10573
10574 2007-08-16  Javier Miranda  <miranda@adacore.com>
10575
10576         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10577         and entry barriers.
10578
10579 2007-08-16  Javier Miranda  <miranda@adacore.com>
10580
10581         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10582         is not really required and can introduce regression with the debugger.
10583         The original problem is fixed with the patch written for checks.adb.
10584
10585 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10586
10587         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10588         Range_Check on Allocated_Table.
10589
10590 2007-08-16  Vincent Celier  <celier@adacore.com>
10591
10592         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10593         Including_Non_Switch set to False.
10594         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10595         Including_Non_Switch set to False.
10596
10597         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10598         parameter Including_Non_Switch, defaulted to True. When
10599         Including_Non_Switch is False, options that are not switches and
10600         appear as relative path are not converted to absolute paths.
10601
10602 2007-08-16  Nicolas Roche  <roche@adacore.com>
10603
10604         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10605         makefiles
10606
10607         * Make-lang.in: Update dependencies
10608
10609 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10610
10611         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10612         currently inspected is a selected component, retrieve the entity of
10613         its selector.
10614         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10615         from the immediate ancestor of Main_Unit_Entity.
10616         (Install_Limited_Withed_Unit): Do not install the limited view of
10617         package P if P is reachable through an ancestor chain from package C
10618         and C also has a with clause for P in its body.
10619         (Has_Limited_With_Clause): New routine.
10620         (Has_With_Clause): New routine.
10621
10622 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10623
10624         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10625         generic for an enclosing instance is a global reference, even though
10626         its scope is the enclosing instance.
10627
10628 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10629             Javier Miranda  <miranda@adacore.com>
10630
10631         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10632         initialize a limited object.
10633         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10634         13/2 and 14/2.
10635         Make sure Has_Complex_Representation is inherited by derived type.
10636
10637 2007-08-16  Robert Dewar  <dewar@adacore.com>
10638
10639         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10640         exception case
10641
10642 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10643
10644         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10645         implements an operation inherited from a progenitor interface, verify
10646         that they are subtype-conformant.
10647
10648 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10649             Bob Duff  <duff@adacore.com>
10650             Nicolas Setton  <setton@adacore.com>
10651
10652         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10653         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10654         the statement which is being resolved comes from a predefined library
10655         unit, all non-predefined library interpretations are skipped.
10656         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10657         but the "&" is user defined, give an error, because the folding would
10658         be wrong.
10659
10660         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10661         the parser has folded a long sequence of concatenations of string
10662         literals.
10663
10664         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10665         and "JMP_BUF" variables as artificial.
10666         (N_String_Literal): Do not use alloca for very long string literals. Use
10667         xmalloc/free instead. Otherwise the stack might overflow.
10668
10669         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10670         compiler.
10671
10672 2007-08-16  Vincent Celier  <celier@adacore.com>
10673
10674         * vms_conv.adb (Process_Argument): Ensure that project related options
10675         are not put in the -cargs section when using GNAT COMPILE.
10676
10677 2007-08-16  Robert Dewar  <dewar@adacore.com>
10678
10679         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10680
10681 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10682
10683         * a-tags.adb: Minor reformatting.
10684
10685 2007-08-16  Bob Duff  <duff@adacore.com>
10686
10687         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10688
10689 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10690
10691         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10692         s-osinte-interix.ads, system-interix.ads: Removed.
10693
10694 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10695
10696         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10697         calls to Check_Within_Time_Bounds.
10698         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10699         (Difference): Account for possible rounding of the resulting difference
10700
10701 2007-08-14  Robert Dewar  <dewar@adacore.com>
10702
10703         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10704         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10705         s-osinte-solaris.adb, s-osinte-solaris.ads,
10706         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10707
10708         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10709         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10710
10711 2007-08-14  Robert Dewar  <dewar@adacore.com>
10712             Ed Schonberg  <schonberg@adacore.com>
10713
10714         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10715         Suppress unmodified in-out parameter warning in some cases
10716         This patch is a also fairly significant change to the way suppressible
10717         checks are handled.
10718
10719         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10720         needed for access to concurrent record types generated by the expander.
10721         (Generate_Range_Check): When generating a temporary to capture the
10722         value of a conversion that requires a range check, set the type of the
10723         temporary before rewriting the node, so that the type is always
10724         properly placed for back-end use.
10725         (Apply_Float_Conversion_Check): Handle case where the conversion is
10726         truncating.
10727         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10728         for a protected type in order to examine its discriminants.
10729
10730 2007-08-14  Robert Dewar  <dewar@adacore.com>
10731             Gary Dismukes  <dismukes@adacore.com>
10732             Ed Schonberg  <schonberg@adacore.com>
10733             Thomas Quinot  <quinot@adacore.com>
10734
10735         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10736         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10737         tests optimized out.
10738
10739         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10740         (Get_Allocator_Final_List): For the case of an anonymous access type
10741         that has a specified Associated_Final_Chain, do not go up to the
10742         enclosing scope.
10743         (Expand_N_Type_Conversion): Test for the case of renamings of access
10744         parameters when deciding whether to apply a run-time accessibility
10745         check.
10746         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10747         aggregate code before allocator, and ahead of declaration for
10748         temporary, to prevent access before elaboration when the allocator is
10749         an actual for an access parameter.
10750         (Expand_N_Type_Conversion): On an access type conversion involving an
10751         access parameter, do not apply an accessibility check when the
10752         operand's original node was an attribute other than 'Access. We now
10753         create access conversions for the expansion of 'Unchecked_Access and
10754         'Unrestricted_Access in certain cases and clearly accessibility should
10755         not be checked for those.
10756
10757         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10758         includes a type conversion of a packed component that has been expanded,
10759         recover the original expression for the object, and use this expression
10760         in the post-call assignment statement, so that the assignment is made
10761         to the object and not to a back-end temporary.
10762         (Freeze_Subprogram): In case of primitives of tagged types not defined
10763         at the library level force generation of code to register the primitive
10764         in the dispatch table. In addition some code reorganization has been
10765         done to leave the implementation clear.
10766         (Expand_Call): When expanding an inherited implicit conversion,
10767         preserve the type of the inherited function after the intrinsic
10768         operation has been expanded.
10769
10770         * exp_ch2.ads, exp_ch2.adb
10771         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10772         of an entry formal appearing in an assignment statement does not assign
10773         to the formal.
10774         (Expand_Current_Value): Instead of calling a routine to determine
10775         whether the prefix of an attribute reference should be optimized or
10776         not, prevent the optimization of such prefixes all together.
10777
10778         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10779         component whose prefix is known to be of an access type is an implicit
10780         dereference and does not assign to the prefix.
10781
10782 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10783             Robert Dewar  <dewar@adacore.com>
10784
10785         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10786         itype is visited, make an entry into table to link associated node and
10787         new itype.
10788         Add comments and correct harmless error in Build_NCT_Hash_Tables
10789         (Array_Aggr_Subtype): Associate each itype created for an index type to
10790         the corresponding range construct, and not to the aggregate itself. to
10791         maintain a one-to-one correspondence between itype and its associated
10792         node, to prevent errors when complex expression is copied.
10793         Fix mishandling of multiple levels of parens
10794
10795         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10796         treatment of limited views uniform for all visible declarations in a
10797         limited_withed package.
10798         (New_Copy_Tree): If hash table is being used and itype is visited,
10799         make an entry into table to link associated node and new itype.
10800         (Resolve_Record_Aggregate): Do not add an others box association for a
10801         discriminated record component that has only discriminants, when there
10802         is a box association for the component itself.
10803
10804         * par-ch4.adb: Fix mishandling of multiple levels of parens
10805
10806 2007-08-14  Robert Dewar  <dewar@adacore.com>
10807
10808         * comperr.adb: Fix problem with suppressing warning messages from gigi
10809
10810         * erroutc.ads, erroutc.adb, errout.ads,
10811         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10812         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10813         possible trailing spaces.
10814         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10815         Fix problem with suppressing warning messages from back end
10816         Improve handling of deleted warnings
10817
10818         * gnat1drv.adb:
10819         Fix problem with suppressing warning messages from back end
10820         Handle setting of Static_Dispatch_Tables flag.
10821
10822         * prepcomp.adb:
10823         Fix problem with suppressing warning messages from back end
10824
10825         * exp_intr.adb: Improve handling of deleted warnings
10826
10827 2007-08-14  Robert Dewar  <dewar@adacore.com>
10828
10829         * debug.adb: Improve -gnatdI to cover all cases of serialization
10830         Add documentation of dZ, d.t
10831
10832         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10833         serialization.
10834         (Sprint_Node_Actual): Generate new output associated with implicit
10835         importation and implicit exportation of object declarations.
10836
10837 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10838             Robert Dewar  <dewar@adacore.com>
10839             Javier Miranda  <miranda@adacore.com>
10840             Gary Dismukes  <dismukes@adacore.com>
10841
10842         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10843         to make treatment of limited views uniform for all visible declarations
10844         in a limited_withed package.
10845         Improve warnings for in out parameters
10846         (Set_Related_Interaface/Related_Interface): Allow the use of this
10847         attribute with constants.
10848         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10849         Warn on duplicate pragma Preelaborable_Initialialization
10850
10851         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10852         generation of a freezing node to ensure proper management of null
10853         excluding access types in the backend.
10854         (Create_Extra_Formals): Test base type of the formal when checking for
10855         the need to add an extra accessibility-level formal. Pass the entity E
10856         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10857         originally being done in a couple of cases), to ensure that the
10858         Extra_Formals list gets set on the entity E when the first entity is
10859         added.
10860         (Conforming_Types): Add missing calls to Base_Type to the code that
10861         handles anonymous access types. This is required to handle the
10862         general case because Process_Formals builds internal subtype entities
10863         to handle null-excluding access types.
10864         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10865         functions that need it, even when not marked Requires_Overriding.
10866         Improve warnings for in out parameters
10867         (Analyze_Function_Return): Warn for disallowed null return
10868         Warn on return from procedure with unset out parameter
10869         Ensure consistent use of # in error messages
10870         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10871         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10872         the implicit conversion of the expression done for anonymous access
10873         types. This is required to generate the code of the null excluding
10874         check (if required).
10875
10876         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10877         A formal parameter is never publicly referenceable outside of its body.
10878         (Check_References): For an unreferenced formal parameter in an accept
10879         statement, use the same warning circuitry as for subprogram formal
10880         parameters.
10881         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10882         Output_Unreferenced_Messages, containing the part of that routine that
10883         is now reused for entry formals as described above.
10884         (Goto_Spec_Entity): New function
10885         (Check_References): Do not give IN OUT warning for dispatching operation
10886         Improve warnings for in out parameters
10887         (Test_Ref): Check that the entity is not undefinite before calling
10888         Scope_Within, in order to avoid infinite loops.
10889         Warn on return from procedure with unset out parameter
10890         Improved warnings for unused variables
10891
10892 2007-08-14  Robert Dewar  <dewar@adacore.com>
10893             Javier Miranda  <miranda@adacore.com>
10894             Gary Dismukes  <dismukes@adacore.com>
10895
10896         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10897         (Expand_N_Attribute_Reference): Further unify the handling of the
10898         three forms of access attributes, using common code now for all three
10899         cases. Add a test for the case of applying an access attribute to
10900         an explicit dereference when the context is an access-to-interface
10901         type. In that case we need to apply the conversion to the prefix
10902         of the explicit dereference rather than the prefix of the attribute.
10903         (Attribute_Version, UET_Address): Set entity as internal to ensure
10904         proper dg output of implicit importation.
10905         (Expand_Access_To_Type): Removed.
10906         (Expand_N_Attribute_Reference): Merge the code from the three cases
10907         of access attributes, since the processing is largely identical for
10908         these cases. The substantive fix here is to process the case of a
10909         type name prefix (current instance case) before handling the case
10910         of interface prefixes.
10911
10912 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10913             Ed Schonberg  <schonberg@adacore.com>
10914             Javier Miranda  <miranda@adacore.com>
10915             Robert Dewar  <dewar@adacore.com>
10916
10917         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10918         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10919         type that is an anonymous access to controlled object, establish
10920         an associated finalization chain to avoid corrupting the global
10921         finalization list when a dynamically allocated object designated
10922         by such a component is deallocated.
10923         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10924         functions that need it, even when not marked Requires_Overriding.
10925         (Initialize_Tag): Replace call to has_discriminants by call to
10926         Is_Variable_Size_Record in the circuitry that handles the
10927         initialization of secondary tags.
10928         (Is_Variable_Size_Record): New implementation.
10929         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10930         Suppress_Initialization pragma for a derived type.
10931         (Is_Variable_Size_Record): New subprogram.
10932         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10933         initial version of this routine and also fixes problems causing
10934         incomplete initialization of the table of interfaces.
10935         (Build_Init_Procedure): Improve the generation of code to initialize the
10936         the tag components of secondary dispatch tables.
10937         (Init_Secondary_Tags): New implementation that simplifies the previous
10938         version of this routine.
10939         (Make_DT): Add parameter to indicate when type has been frozen by an
10940         object declaration, for diagnostic purposes.
10941         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10942         diagnose attemps to freeze a subprogram when some untagged type of its
10943         profile is a private type whose full view has not been analyzed yet.
10944         (Freeze_Array_Type): Generate init proc for packed array if either
10945         Initialize or Normalize_Scalars is set.
10946         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10947         constructing the new profile, copy the null_exclusion indicator for each
10948         parameter, to ensure full conformance of the new body with the spec.
10949
10950         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10951         Create wrappers for constructor functions that need it, even when not
10952         marked Requires_Overriding.
10953         (Covers): Handle properly designated types of anonymous access types,
10954         whose non-limited views are themselves incomplete types.
10955         (Add_Entry): Use an entity to store the abstract operation which hides
10956         an interpretation.
10957         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10958         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10959         initialization aggregate.
10960         (Function_Interp_May_Be_Hidden): Rename to
10961         Function_Interp_Has_Abstract_Op.
10962         (Has_Compatible_Type): Remove machinery that skips interpretations if
10963         they are labeled as potentially hidden by an abstract operator.
10964         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10965         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10966         (Write_Overloads): Output the abstract operator if present.
10967         (Add_Entry): Before inserting a new entry into the interpretation table
10968         for a node, determine whether the entry will be disabled by an abstract
10969         operator.
10970         (Binary_Op_Interp_May_Be_Hidden): New routine.
10971         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10972         aggregate.
10973         (Function_Interp_May_Be_Hidden): New routine.
10974         (Has_Compatible_Type): Do not consider interpretations hidden by
10975         abstract operators when trying to determine whether two types are
10976         compatible.
10977         (Has_Hidden_Interp): New routine.
10978         (Set_May_Be_Hidden_Interp): New routine.
10979         (Write_Overloads): Write the status of flag May_Be_Hidden.
10980
10981 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10982             Javier Miranda  <miranda@adacore.com>
10983
10984         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10985         types declared in the declarative part of a nested package body or in
10986         the proper body of a stub.
10987         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10988         of the same dispatch table slot to renamed primitives.
10989         (Make_Select_Specific_Data_Table): Handle private types.
10990         (Tagged_Kind): Handle private types.
10991         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10992         output of implicit importation and exportation.
10993         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10994         first formal of the thunk is always associated with the controlling
10995         type. In addition perform the following code cleanup: remove formal
10996         Thunk_Alias which is no longer required, cleanup evaluation of the
10997         the controlling type, and update the documentation.
10998         Replace occurrence of Default_Prim_Op_Count by
10999         Max_Predef_Prims. Addition of compile-time check to verify
11000         that the value of Max_Predef_Prims is correct.
11001         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11002         (Make_DT): Add parameter to indicate when type has been frozen by an
11003         object declaration, for diagnostic purposes.
11004         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11005         construction of statically allocated dispatch tables.
11006         (Make_DT): In case of library-level tagged types export the declaration
11007         of the primary tag. Remove generation of tags (now done by Make_Tags).
11008         Additional modifications to handle non-static generation of dispatch
11009         tables. Take care of building tables for asynchronous interface types
11010         (Make_Tags): New subprogram that generates the entities associated with
11011         the primary and secondary tags of Typ and fills the contents of Access_
11012         Disp_Table. In case of library-level tagged types imports the forward
11013         declaration of the primary tag that will be declared later by Make_DT.
11014         (Expand_Interface_Conversion): In case of access types to interfaces
11015         replace an itype declaration by an explicit type declaration to avoid
11016         problems associated with the scope of such itype in transient blocks.
11017
11018 2007-08-14  Robert Dewar  <dewar@adacore.com>
11019             Ed Schonberg  <schonberg@adacore.com>
11020             Javier Miranda  <miranda@adacore.com>
11021
11022         * exp_util.ads, exp_util.adb:
11023         This patch replaces a number of occurrences of explicit tests for N_Null
11024         with calls to Known_Null. This improves tracking of null values, since
11025         Known_Null also catches null constants, and variables currently known to
11026         be null, so we get better tracking.
11027         (Ensure_Defined): create an itype reference only in the scope of the
11028         itype.
11029         (Side_Effect_Free): A selected component of an access type that
11030         denotes a component with a rep clause must be treated as not
11031         side-effect free, because if it is part of a linked structure its
11032         value may be affected by a renaming.
11033         (Expand_Subtype_From_Expr): For limited objects initialized with build
11034         in place function calls, do nothing; otherwise we prematurely introduce
11035         an N_Reference node in the expression initializing the object, which
11036         breaks the circuitry that detects and adds the additional arguments to
11037         the called function. Bug found working in the new patch for statically
11038         allocated dispatch tables.
11039         (Is_Library_Level_Tagged_Type): New subprogram.
11040         (Remove_Side_Effects): If the expression of an elementary type is an
11041         operator treat as a function call.
11042         (Make_Literal_Range): If the index type of the array is not integer, use
11043         attributes properly to compute the constraint on the resulting aggregate
11044         which is a string.
11045
11046         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11047         class-wide type whose base type is an incomplete private type, leave
11048         class-wide type unfrozen so that freeze nodes can be generated
11049         properly at a later point.
11050         (Freeze_Entity, array case): Handle case of pragma Pack and component
11051         size attributre clause for same array.
11052
11053 2007-08-14  Vincent Celier  <celier@adacore.com>
11054
11055         * prj.ads, prj.adb: Update Project Manager to new attribute names for
11056         gprbuild.
11057         Allow all valid declarations in configuration project files
11058         (Reset): Initialize all tables and hash tables in the project tree data
11059         Major update of the Project Manager and of the project aware tools,
11060         including gprmake, so that the same sources in the GNAT repository
11061         can be used by gprbuild.
11062         (Slash_Id): Change type to be Path_Name_Type
11063         (Slash): Return a Path_Name_Type instead of a File_Name_Type
11064
11065         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11066         gprbuild.
11067         Update Project Manager to new attribute names for ghprbuild
11068         Allow all valid declarations in configuration project files
11069         Major update of the Project Manager and of the project aware tools,
11070         including gprmake, so that the same sources in the GNAT repository
11071         can be used by gprbuild.
11072
11073         * prj-com.ads:
11074         Major update of the Project Manager and of the project aware tools,
11075         including gprmake, so that the same sources in the GNAT repository
11076         can be used by gprbuild.
11077
11078         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11079         insensitive flag for attributes with optional index.
11080         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11081         array attribute, put the index in lower case.
11082         Update Project Manager to new attribute names for ghprbuild
11083         Allow all valid declarations in configuration project files
11084         Major update of the Project Manager and of the project aware tools,
11085         including gprmake, so that the same sources in the GNAT repository
11086         can be used by gprbuild.
11087
11088         * prj-env.ads, prj-env.adb:
11089         Major update of the Project Manager and of the project aware tools,
11090         including gprmake, so that the same sources in the GNAT repository
11091         can be used by gprbuild.
11092         (Get_Reference): Change type of parameter Path to Path_Name_Type
11093
11094         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11095         removing '-' from the path to start with the first character of the
11096         next directory.
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         Major update of the Project Manager and of the project aware tools,
11101         including gprmake, so that the same sources in the GNAT repository
11102         can be used by gprbuild.
11103
11104         * prj-nmsc.ads, prj-nmsc.adb:
11105         Update Project Manager to new attribute names for ghprbuild
11106         Allow all valid declarations in configuration project files
11107         (Search_Directories): Detect subunits that are specified with an
11108         attribute Body in package Naming. Do not replace a source/unit in the
11109         same project when the order of the source dirs are known. Detect
11110         duplicate sources/units in the same project when the order of the
11111         source dirs are not known.
11112         (Check_Ada_Name): Allow all identifiers that are not reserved words
11113         in Ada 95.
11114         Major update of the Project Manager and of the project aware tools,
11115         including gprmake, so that the same sources in the GNAT repository
11116         can be used by gprbuild.
11117         (Look_For_Sources): If the list of sources is empty, set the object
11118         directory of non extending project to nil.
11119         Change type of path name variables to be Path_Name_Type
11120         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11121         otherwise creating missing directories will fail.
11122
11123         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11124         prj-part.ads, prj-part.adb:
11125         Major update of the Project Manager and of the project aware tools,
11126         including gprmake, so that the same sources in the GNAT repository
11127         can be used by gprbuild.
11128
11129         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11130         insensitive flag for attributes with optional index.
11131         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11132         array attribute, put the index in lower case.
11133         (Parse_Variable_Reference): Allow the current project name to be used in
11134         the prefix of an attribute reference.
11135
11136         * prj-util.ads, prj-util.adb
11137         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11138         defaulted to False. When True, always check against indexes in lower
11139         case.
11140
11141         * snames.ads, snames.h, snames.adb:
11142         Update Project Manager to new attribute names for gprbuild
11143         Allow all valid declarations in configuration project files
11144
11145 2007-08-14  Robert Dewar  <dewar@adacore.com>
11146             Ed Schonberg  <schonberg@adacore.com>
11147
11148         * opt.ads: Warning for non-local exception propagation now off by
11149         default
11150         New switch -gnatI to disable representation clauses
11151         Implement new pragma Implicit_Packing
11152
11153         * usage.adb:
11154         Warning for non-local exception propagation now off by default
11155         Add warning for unchecked conversion of pointers wi different
11156         conventions.
11157         New switch -gnatI to disable representation clauses
11158
11159         * usage.adb: new switch -gnatyS
11160
11161         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11162         note that aggregates of anonymous array types are not flagged.
11163         -gnatwc now includes membership tests optimized away
11164         -gnatw.x warnings are now off by default
11165         Added conditional compilation Appendix
11166         Add documentation of -gnatI
11167         Add documentation for new -gnatyS style check
11168         Update documentation about SAL and auto-init on Windows.
11169
11170         * gnat_rm.texi:
11171         Add documentation for pragma Check_Name and 'Enabled attribute
11172         Document that Eliminate on dispatching operation is ignored
11173         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11174         Document pragma Main
11175         Document pragma Implicit_Packing
11176
11177         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11178         different conventions
11179         New switch -gnatI to disable representation clauses
11180
11181         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11182         recognized, report the invalid characters including "-gnat" instead of
11183         just the first character in the switch.
11184         New switch -gnatI to disable representation clauses
11185         Set Warn_On_Object_Renames_Function true for -gnatg
11186
11187         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11188         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11189         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11190         to switch -aP (add directory to project search dir).
11191
11192         * par-prag.adb: Implement new pragma Implicit_Packing
11193
11194         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11195         type as having a non-standard representation, to force expansion on
11196         conversion to related types.
11197         (Analyze_Pragma): Warn on misspelled pragma
11198         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11199         Ensure consistent use of # in error messages
11200         Implement pragma Implicit_Packing
11201
11202 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11203             Eric Botcazou  <ebotcazou@adacore.com>
11204
11205         * targtyps.c (get_target_maximum_default_alignment): New function.
11206         Maximum alignment
11207         that the compiler might choose by default for a type or object.
11208         (get_target_default_allocator_alignment): New function. Alignment known
11209         to be honored by the target default allocator.
11210         (get_target_maximum_allowed_alignment): New function. Maximum alignment
11211         we might accept for any type or object on the target.
11212         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11213
11214         * gigi.h (get_target_maximum_default_alignment): Declare new function.
11215         (get_target_default_allocator_alignment): Likewise.
11216         (get_target_maximum_allowed_alignment): Likewise.
11217
11218         PR ada/19037
11219         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11220         result of a function call, first try to use a stabilized reference for
11221         a constant renaming too.
11222         (validate_alignment): Use target_maximum_allowed_alignment instead of
11223         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11224         (gnat_to_gnu_entity): Use common nodes directly.
11225         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11226         alignment and size for the object.
11227         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11228         and N_Procedure_Call_Statement.
11229         (takes_address): Rename to lvalue_required_p, add third parameter
11230         'aliased' and adjust recursive calls.
11231         <N_Indexed_Component>: Update 'aliased' from the array type.
11232         <N_Selected_Component>: New case.
11233         <N_Object_Renaming_Declaration>: New Likewise.
11234         (Identifier_to_gnu): Adjust for above changes.
11235         (maybe_stabilize_reference) <CONST_DECL>: New case.
11236
11237         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11238         between type variants.
11239         (build_simple_component_ref): Likewise.
11240         (build_call_alloc_dealloc): Use target_default_allocator_alignment
11241         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11242         aligning type circuitry for allocations from the default storage pool.
11243         (build_allocator): Likewise.
11244         (build_simple_component_ref): Manually fold the reference for a
11245         constructor if the record type contains a template.
11246
11247         * utils.c (value_zerop): Delete.
11248         (gnat_init_decl_processing): Emit debug info for common types.
11249         (rest_of_record_type_compilation): If a union contains a field
11250         with a non-constant qualifier, treat it as variable-sized.
11251         (finish_record_type): Give the stub TYPE_DECL a name.
11252         (rest_of_record_type_compilation): Likewise.
11253         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
11254         types are equivalent array types.
11255         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11256         even if the type is not passed by reference.
11257         (static_ctors, static_dtors): Delete.
11258         (end_subprog_body): Do not record constructors and destructors.
11259         (build_global_cdtor): Delete.
11260         (gnat_write_global_declarations): Do not call build_global_cdtor.
11261
11262         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11263         -fRTS=rtp is specified.
11264         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11265         specified.
11266
11267         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11268         of the personality function with SJLJ exceptions.
11269
11270         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11271         the name of the personality function with SJLJ exceptions.
11272
11273 2007-08-14  Robert Dewar  <dewar@adacore.com>
11274             Ed Schonberg  <schonberg@adacore.com>
11275
11276         * par.ads, par.adb: Improve handling of extra right parens.
11277         (Par): Remove flag From_Limited_With_Clause.
11278
11279         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11280         Improve handling of extra right parens.
11281
11282 2007-08-14  Robert Dewar  <dewar@adacore.com>
11283
11284         * par-tchk.adb (TF_Semicolon): Improve error recovery
11285
11286 2007-08-14  Robert Dewar  <dewar@adacore.com>
11287             Ed Schonberg  <schonberg@adacore.com>
11288
11289         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11290         enumeration type, mark all literals as referenced.
11291         (Eval_Attribute, case 'Image): If the argument is an enumeration
11292         literal and names are available, constant-fold but mark nevertheless as
11293         non-static.
11294         Clean up function names.
11295         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11296         comment.
11297         (Requires_Simple_Name_Prefix): Removed.
11298
11299 2007-08-14  Robert Dewar  <dewar@adacore.com>
11300             Ed Schonberg  <schonberg@adacore.com>
11301
11302         * sem_ch11.adb: Improved warnings for unused variables
11303
11304         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11305         is a synchronized interface, the derived type is limited.
11306         (Analyze_Object_Declaration): Mark the potential coextensions in the
11307         definition and expression of an object declaration node.
11308         (Build_Derived_Type): For the completion of a private type declaration
11309         with a derived type declaration, chain the parent type's representation
11310         items to the last representation item of the derived type (not the
11311         first one) if they are not present already.
11312         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11313         object declaration of forward references to tags.
11314         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11315         subprogram types can appear as access discriminants of synchronized
11316         types.
11317         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11318         given in prefixed form as a selected component.
11319         (Process_Discriminants): If not all discriminants have defaults, place
11320         error message on a default that is present.
11321         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11322         extend a synchronized tagged type.
11323         Improved warnings for unused variables
11324         (Is_Visible_Component): Fix a visibility hole on a component inherited
11325         by a private extension when parent is itself declared as a private
11326         extension, and the derivation is in a child unit.
11327         (Find_Hidden_Interface): Move spec from the package body.
11328
11329 2007-08-14  Robert Dewar  <dewar@adacore.com>
11330             Ed Schonberg  <schonberg@adacore.com>
11331
11332         * sem_ch5.adb: Improve warnings on redundant assignments
11333
11334         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11335         parameter
11336         (Is_Synchronized_Tagged_Type): New subprogram that returns true
11337         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11338         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11339         is set to False. Improves handling of Known_[Not_]Null.
11340         (Wrong_Type): Special case address arithmetic attempt
11341         (Collect_Abstract_Interfaces): Add new formal to allow collecting
11342         abstract interfaces just using the partial view of private types.
11343         (Has_Abstract_Interfaces): Add new formal to allow checking types
11344         covering interfaces using the partial view of private types.
11345         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11346         component still needs to be defined in this case, but is never
11347         initialized as VMs are using other dispatching mechanisms.
11348         (Abstract_Interface_List): For a protected type, use base type to get
11349         proper declaration.
11350         Improve warnings on redundant assignments
11351         (Is_Variable): Handle properly an implicit dereference of a prefixed
11352         function call.
11353         (Build_Actual_Subtype): If this is an actual subtype for an
11354         unconstrained formal parameter, use the sloc of the body for the new
11355         declaration, to prevent anomalises in the debugger.
11356
11357 2007-08-14  Robert Dewar  <dewar@adacore.com>
11358
11359         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11360         dispatching operation
11361
11362 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11363             Gary Dismukes  <dismukes@adacore.com>
11364
11365         * exp_aggr.ads,
11366         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11367         expanded aggregate code before allocator, and ahead of declaration for
11368         temporary, to prevent access before elaboration when the allocator is
11369         an actual for an access parameter.
11370         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11371         the TSD and the table of interfaces.
11372         (Convert_To_Assignments): Augment the test for delaying aggregate
11373         expansion for limited return statements to include the case of extended
11374         returns, to prevent creation of an unwanted transient scope.
11375         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11376         (Expand_Array_Aggregate): Handle aggregates associated with
11377         statically allocated dispatch tables.
11378         (Expand_Record_Aggregate): Handle aggregates associated with
11379         statically allocated dispatch tables.
11380         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11381         of anonymous access type.
11382
11383 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11384
11385         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11386         is a variable that renames a slice, use the variable itself in the
11387         expannsion when the renamed expression itself may be modified between
11388         the declaration of the renaming and the array assignment.
11389
11390 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11391
11392         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11393         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11394         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11395         New functions; dummy implementations.
11396
11397         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11398         functions, used to implement the multi-tasks mode routines on VxWorks.
11399
11400         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11401         New functions, thin
11402         binding to the VxWorks routines which have changed between VxWorks 5
11403         and 6.
11404         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11405         which are not callable from a RTP.
11406
11407         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11408         implemented for the multi-tasks mode on VxWorks 5 and 6.
11409
11410         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11411
11412         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11413         functions.
11414
11415 2007-08-14  Vincent Celier  <celier@adacore.com>
11416
11417         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11418         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11419         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11420         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11421         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11422         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11423         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11424         procedure.
11425         (Major_Id_Name): New function.
11426         mlib-tgt.ads/mlib.tgt.adb:
11427         (Library_Major_Minor_Id_Supported): New function, default returns True
11428         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11429         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11430         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11431         Implementation of Library_Major_Minor_Id_Supported returns False
11432         clean.adb:
11433         (Clean_Library_Directory): If major/minor ids are supported, clean all
11434         library files.
11435         Major update of the Project Manager and of the project aware tools,
11436         including gprmake, so that the same sources in the GNAT repository
11437         can be used by gprbuild.
11438
11439 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11440
11441         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11442         (GCC_ZCX_Support): Switch to True.
11443
11444         * s-intman-solaris.adb (Notify_Exception): Call
11445         Adjust_Context_For_Raise before raising, as expected for signal
11446         handlers in general.
11447
11448         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11449         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11450         to other implementation bodies.
11451
11452         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11453         be visible by multiple implementation bodies.
11454
11455         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11456         only for conditions coming from hardware.
11457         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11458         adjustments to signal context prior to exception raise from signal
11459         handler.
11460         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11461         mode.
11462         Solaris section: (__gnat_adjust_context_for_raise): New function.
11463         Implementation of the machine context adjustments to perform prior to
11464         raise from a signal handler. Version for both sparc and x86.
11465         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11466         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11467         prior to raising as expected for any handler, before possible nested
11468         faults to make sure all the contexts in a chain have been adjusted by
11469         the time we propagate.
11470
11471 2007-08-14  Pascal Obry  <obry@adacore.com>
11472
11473         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11474         (SYSTEM_INFO): New record.
11475         (SetThreadIdealProcessor): New imported routine needed for supporting
11476         task_info pragma on Windows.
11477
11478         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11479         info can be applied to the current host.
11480         (Create_Task): Set the ideal processor if information is present.
11481
11482         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11483         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11484
11485 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11486
11487         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11488         stack size and initial stack pointer value for a given task.
11489         (Enter_Task): Get the stack attributes of the task we are entering and
11490         let the stack checking engine know about them.
11491
11492         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11493         Let the stack-checking engine know about the initial sp value and stack
11494         size associated with the current task.
11495         (Set_Stack_Info): If a stack base has been notified for the current
11496         task, honor it. Fallback to the previous less accurate method otherwise.
11497
11498         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11499
11500 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11501
11502         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11503         treatment of limited views uniform for all visible declarations in a
11504         limited_withed package.
11505         Set flag indicating that a subprogram body for a child unit has a
11506         generated spec.
11507         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11508         separate declaration, remove the unit name from visibility after
11509         compilation, so that environment is clean for subsequent compilations.
11510         (Install_Limited_Context_Clauses): Do not install a
11511         limited_private_with_clause unless the current unit is a body or a
11512         private child unit.
11513         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11514         in the same fashion.
11515         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11516         it applies to the declaration of the current package body.
11517         (Remove_Private_With_Clauses): If there is a regular with_clause for
11518         the unit, delete Private_With_Clause from context, to prevent improper
11519         hiding when processing subsequent nested packages and instantiations.
11520
11521 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11522
11523         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11524         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11525         representing absolute path names.
11526         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11527
11528         * cstreams.c (__gnat_full_name for VxWorks): Use
11529         __gnat_is_absolute_path to detect whether we need to add the current
11530         directory to normalize the path.
11531
11532 2007-08-14  Javier Miranda  <miranda@adacore.com>
11533
11534         * a-tags.ads,
11535         a-tags.adb (Displace): Associate a message with the raised CE
11536         exception.
11537         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11538         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11539         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11540         spec.
11541         (Default_Prim_Op_Count): Removed.
11542         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11543         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11544         Remove pragma Inline_Always.
11545
11546         * rtsfind.ads (Default_Prim_Op_Count): Removed
11547         (Max_Predef_Prims): New entity
11548         (RE_Expanded_Name): Removed
11549         (RE_HT_Link): Removed
11550         (RE_Iface_Tag): Remmoved
11551         (RE_Ifaces_Table): Removed
11552         (RE_Interfaces_Array): Removed
11553         (RE_Interface_Data_Element): Removed
11554         (RE_Nb_Ifaces): Removed
11555         (RE_RC_Offset): Removed
11556         (RE_Static_Offset_To_Top): Removed
11557
11558         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11559         formal.
11560         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11561         Prim_Op_Count by Max_Predef_Prims.
11562
11563 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11564             Vincent Celier  <celier@adacore.com>
11565
11566         * binde.adb (Elab_All_Links): Remove unnecessary call to
11567         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11568         won't be an associated Afile).
11569         (Elab_All_Links): Fail if a referenced unit cannot be found
11570
11571         * bindgen.adb:
11572         Fix comments in bindgen regarding consistency checks done in Bcheck:
11573         the checks are made across units within a partition, not across several
11574         partitions.
11575         Fix generation of C binder file for VxWorks.
11576
11577         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11578         Generic_May_Lack_ALI, more descriptive of the current use of the
11579         predicate, and update documentation.
11580
11581         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11582         reorganization and documentation update for the case of predefined
11583         library generics (for which we do not reference an Afile).
11584
11585 2007-08-14  Robert Dewar  <dewar@adacore.com>
11586
11587         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11588         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11589         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11590         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11591         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11592         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11593         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11594         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11595         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11596         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11597         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11598         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11599         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11600         g-altcon.adb: Minor reformatting
11601
11602         ada-tree.h: Delete empty line.
11603
11604         ali.ads: Minor reformatting
11605         Clarification of comments.
11606         Minor spelling correction
11607
11608         * exp_dbug.adb: Add Warnings Off to suppress new warning
11609
11610         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11611         formal
11612
11613         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11614         value
11615
11616         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11617
11618         * a-textio.ads: Reorder the standard input/output/error declarations
11619         for consistency.
11620
11621         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11622
11623         * par-ch2.adb: Recognize RM specially in errout
11624         Change 'R'M to RM in all error messages
11625
11626         * scng.adb: Recognize RM specially in errout
11627
11628         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11629         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11630
11631         * s-direio.adb: Add missing routine header box.
11632
11633         * sem_attr.ads: Add ??? comments
11634
11635         * sem_eval.adb: Recognize RM specially in errout
11636         Change 'R'M to RM in all error messages
11637
11638         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11639
11640         * s-tasinf.ads: Fix minor comment typo.
11641
11642         * a-cihama.adb: Minor comment addition
11643
11644         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11645         formal
11646
11647         * s-tasinf-tru64.ads: Fix minor comment typo.
11648
11649         * itypes.ads: Comment update.
11650
11651         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11652         anymore.
11653
11654         * argv.c: Added protection against null gnat_argv and gnat_envp.
11655
11656         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11657         warning message when Tolerate_Consistency_Errors is True.
11658
11659         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11660         Any_Id, as this subprogram is only applicable to *type* entities (it
11661         sets RM_Size). Instead initialize just Esize and Alignment.
11662
11663 2007-08-14  Bob Duff  <duff@adacore.com>
11664
11665         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11666         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11667         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11668         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11669         a-coorse.ads (Next): Applied pragma Inline.
11670         Make all Containers packages Remote_Types (unless they are already
11671         Pure).
11672         (Previous): applied pragma Inline
11673         (Elements_Type): is now a record instead of an array
11674
11675 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11676
11677         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11678         of Set_Item.
11679         (Set_Item): When the new item is an element of the currently allocated
11680         table passed by reference, save a copy on the stack if we're going
11681         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11682         variable to determine whether to call Set_Last.
11683
11684         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11685         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11686         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11687         some occurrences of the pattern
11688            T.Increment_Last;
11689            T.Table (T.Last) := Value;
11690         with a cleaner call to
11691            T.Append (Value);
11692
11693 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11694             Gary Dismukes  <dismukes@adacore.com>
11695             Thomas Quinot  <quinot@adacore.com>
11696
11697         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11698         derived type with interface progenitors use the analyzed formal as the
11699         parent of the actual, to create renamings for all the inherited
11700         operations in Derive_Subprograms.
11701         (Collect_Previous_Instances): new procedure within of
11702         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11703         unit being loaded, to ensure that the generation of global symbols is
11704         consistent in different compilation modes.
11705         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11706         takes progenitor types into account.
11707         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11708         traversing over the primitives of the formal and actual types to locate
11709         any abstract subprograms of the actual type that correspond to a
11710         nonabstract subprogram of the formal type's ancestor type(s), and issue
11711         an error if such is found.
11712         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11713         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11714         Remove bogus guard around calls to Inherit_Context.
11715         (Reset_Entity): If the entity is the selector of a selected component
11716         that denotes a named number, propagate constant-folding to the generic
11717         template only if the named number is global to the generic unit.
11718         (Set_Instance_Env): Only reset the compilation switches when compiling
11719         a predefined or internal unit.
11720
11721 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11722
11723         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11724         parameter to determine whether operation applies to the prefix.
11725         (Complete_Object_Operation): If actual has an access type and
11726         controlling formal is not an in_parameter, reject the actual if it is
11727         an access_to_constant type.
11728         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11729         type, the candidate operations are found in the scope of declaration of
11730         the type, because the type has no primitive subprograms.
11731         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11732         a private extension, only examine visible components before trying to
11733         analyze as a prefixed call.
11734         Change Entity_List to Type_To_Use, for better readability.
11735         (Has_Fixed_Op): Use base type when checking whether the type of an
11736         operator has a user-defined multiplication/division
11737         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11738         user-defined operators are available for fixed-point types.
11739
11740 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11741             Ed Schonberg  <schonberg@adacore.com>
11742
11743         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11744         formal At_Any_Place indicating, when True, that we want to test for
11745         availability of the stream attribute at any place (as opposed to the
11746         current visibility context only).
11747         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11748         purpose of enforcing E.2.2(8) only if it is not available at any place.
11749         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11750         when checking the legality of an extension aggregate in a preelaborable
11751         package. Treat the literal null as a valid default expression in a
11752         component declaration for a type with preelaborable initialization.
11753         A limited interface is a legal progenitor for the designated type of a
11754         remote access to class-wide type.
11755
11756 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11757             Ed Schonberg  <schonberg@adacore.com>
11758
11759         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11760         reference): Use correct entity as denoted entity for the selector of
11761         the rewritten node.
11762         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11763         setting the Referenced_As_LHS flag for entities that are implicitly
11764         dereferenced.
11765         (Find_Type): If the type is an internally generated incomplete type,
11766         mark the full view as referenced, to prevent spurious warnings.
11767         (Find_Selected_Component, Has_Components): Handle properly non-limited
11768         views that are themselves incomplete types.
11769         Handle interfaces visible through limited-with clauses.
11770         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11771         subprogram generic actual for which we have generated a renaming.
11772         Warn when the renaming introduces a homonym of
11773         the renamed entity, and the renamed entity is directly visible.
11774
11775 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11776             Hristian Kirtchev  <kirtchev@adacore.com>
11777
11778         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11779         appear in the subtree to the current allocator if it is not a static
11780         coextension.
11781         (Resolve_Allocator): Perform cleanup if resolution has determined that
11782         the allocator is not a coextension.
11783         (Resolve): Skip an interpretation hidden by an abstract operator only
11784         when the type of the interpretation matches that of the context.
11785         (Resolve): When looping through all possible interpretations of a node,
11786         do not consider those that are hidden by abstract operators.
11787         (Resolve_Actuals): When verifying that an access to class-wide object
11788         is an actual  for a controlling formal, ignore anonymous access to
11789         subprograms whose return type is an access to class_wide type.
11790         (Resolve_Slice): If the prefix of the slice is a selected component
11791         whose type depends on discriminants, build its actual subtype before
11792         applying range checks on the bounds of the slice.
11793         (Valid_Conversion): In an instance or inlined body, compare root types,
11794         to prevent anomalies between private and public views.
11795         (Resolve): Improve error message for ambiguous fixed multiplication
11796         expressions that involve universal_fixed multiplying operations.
11797
11798 2007-08-14  Javier Miranda  <miranda@adacore.com>
11799             Hristian Kirtchev  <kirtchev@adacore.com>
11800
11801         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11802         location to allow the correct generation of errors in case of
11803         restrictions applied to the expanded code.
11804         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11805         function if the condition does not reference them.
11806         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11807         valid value.
11808
11809 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11810             Pablo Oliveira  <oliveira@adacore.com>
11811
11812         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11813         typecode parameters for a union (in a variant record), remove
11814         extraneous layer of Any wrapping for member label.
11815         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11816         elabration statements, register the package with the name server
11817         at the beginning, not at the end, of the elaboration statements so
11818         that they can create remote access to subprogram values that designate
11819         remote subprograms from the package.
11820
11821 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11822
11823         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11824         values to compute the number of seconds since the Unix Epoc in order to
11825         account for Daylight Savings Time. Perform special processing for dates
11826         that are earlier than the Unix Epoc to obtain a negative number.
11827
11828 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11829
11830         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11831         switches.
11832
11833 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11834
11835         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11836         binder-generated file is not in Ada.
11837         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11838         recorded in the ALI file.
11839         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11840
11841 2007-08-14  Vincent Celier  <celier@adacore.com>
11842
11843         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11844         (Output_Source): Do nothing if parameter is No_Sdep_Id
11845
11846         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11847         shared library it imports has a later time stamp.
11848         (Check): Resolve the symbolic links in the path name of the object
11849         directory.
11850         Check that the ALI file is in the correct object directory
11851         Check if a file name does not correspond to the mapping of units
11852         to file names.
11853         (Display_Version): New procedure
11854         (Initialize): Process switches --version and --help
11855         Use type Path_Name_Type for path name
11856
11857 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11858
11859         * impunit.adb: Re-organize System.Random_Numbers and
11860         GNAT.Random_Numbers and add to builds.
11861
11862         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11863
11864         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11865
11866         * a-assert.ads, a-assert.adb: New files.
11867
11868 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11869
11870         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11871         if AAMP_On_Target is True, then the size of the type encompasses two
11872         addresses (a static link and a subprogram address), except in the case
11873         of library-level access types.
11874
11875 2007-08-14  Vincent Celier  <celier@adacore.com>
11876
11877         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11878         writing the line.
11879         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11880         possible trailing spaces.
11881         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11882
11883 2007-08-14  Javier Miranda  <miranda@adacore.com>
11884
11885         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11886         null-excluding access types.
11887
11888 2007-08-14  Javier Miranda  <miranda@adacore.com>
11889
11890         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11891         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11892         of private types add missing check on matching interfaces in the
11893         partial and full declarations.
11894         (Analyze_Protected_Type): Code cleanup.
11895         (Analyze_Task_Type): Code cleanup.
11896
11897 2007-08-14  Javier Miranda  <miranda@adacore.com>
11898
11899         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11900         generated interface thunk.
11901
11902 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11903
11904         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11905         obsolescent warning on application of 'Class to an incomplete type.
11906
11907         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11908         prevent obsolescent warning on application of 'Class to an incomplete
11909         type.
11910
11911 2007-08-14  Pascal Obry  <obry@adacore.com>
11912
11913         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11914         file stream.
11915
11916 2007-08-14  Cyrille Comar  <comar@adacore.com>
11917
11918         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11919         since it is potentially used in cases implying double finalization of
11920         the same object.
11921
11922 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11923
11924         * s-tasini.adb (Get_Stack_Info): Move this function to
11925         System.Soft_Links.Tasking because it is common to the full and the
11926         restricted run times.
11927         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11928         in SSL.Tasking.Init_Tasking_Soft_Links.
11929
11930         * s-solita.adb (Get_Stack_Info): Function moved from
11931         System.Tasking.Initialization because it is common to the full and the
11932         restricted run times.
11933         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11934
11935 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11936
11937         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11938         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11939         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11940         parameter.
11941
11942         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11943         guard to 12K.
11944
11945 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11946
11947         * s-veboop.adb (SU): New named number initialized to
11948         System.Storage_Unit.
11949         (True_Val): The initialization expression is revised to use SU (=
11950         Storage_Unit) rather than assuming 8 for the component size of an
11951         unpacked Boolean array.
11952
11953 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11954
11955         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11956
11957         * tb-ivms.c: New file.
11958
11959         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11960
11961 2007-08-14  Geert Bosch  <bosch@adacore.com>
11962
11963         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11964         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11965         Add required linker pragmas for automatically linking with the gnalasup
11966         linear algebra support library, and the systems math library.
11967         Rename cdot to cdotu and zdot to zdotu.
11968         Update header comment to describe purpose of package.
11969
11970 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11971
11972         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11973         an explicitly specified Associated_Final_Chain, use that list.
11974         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11975         types.
11976         (Expand_N_Package_Declaration): Build dispatch tables of library level
11977         tagged types. Minor code cleanup.
11978
11979 2007-08-14  Vincent Celier  <celier@adacore.com>
11980
11981         * gnatchop.adb (Terminate_Program): Remove exception and use
11982         Types.Terminate_Program instead.
11983
11984         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11985         (Find_Program_Name): Added protection against empty name.
11986         (OS_Exit_Through_Exception): New procedure
11987
11988         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11989         (OS_Exit_Default): New procedure that contains the previous
11990         implementation of procedure OS_Exit.
11991         (Final_Value): Remove obsolete Interix stuff.
11992
11993 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11994
11995         * g-socket.ads: Reorganize example code so that it also works on
11996         Windows XP.
11997
11998 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11999
12000         * g-trasym.ads: AIX now supports symbolic backtraces.
12001
12002 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
12003
12004         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12005         units being loaded to detect circularities. A circularity may be
12006         present even if the current chain of pending units to load starts from
12007         a limited_with_clause.
12008
12009         * lib-load.ads: Change profile of Load_Unit to use a with_clause
12010         rather than a boolean flag, in order to detect circularities in
12011         with_clauses.
12012
12013         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12014         than propagating the From_Limited_With flag, in order to handle
12015         properly circularities involving with_clauses.
12016
12017 2007-08-14  Nicolas Setton  <setton@adacore.com>
12018
12019         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12020         warnings.
12021
12022 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
12023
12024         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12025         to build for libgnala.
12026         libgnat: Add rules to build libgnala.a
12027         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12028         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12029         Add s-osinte-vxworks-kernel.adb to the target pairs of the
12030         kernel run-time lib for VxWorks 6, which would provide a different
12031         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12032         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12033         running ZCX by default.
12034         Add g-sttsne-locking to LynxOS version.
12035         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12036         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12037
12038         * system-darwin-x86.ads: New file.
12039
12040         * Make-lang.in: Delete files before copying onto them, so if they are
12041         read-only, the copy won't fail.
12042         Update dependencies
12043
12044 2007-08-14  Pascal Obry  <obry@adacore.com>
12045
12046         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12047         naming scheme.
12048
12049 2007-08-14  Vincent Celier  <celier@adacore.com>
12050
12051         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12052         (Gcc): Initialize Gcc_Name at the first call
12053
12054 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
12055
12056         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12057         with_clauses of the enclosing unit when analyzing the package
12058         specification of a nested instance.
12059
12060 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
12061
12062         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12063         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12064         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12065         layout of N_Allocator.
12066
12067 2007-08-14  Thomas Quinot  <quinot@adacore.com>
12068
12069         * rtsfind.adb (Check_RPC): Add PCS version check.
12070
12071         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12072         (Gnat_Free_Software): New function.
12073
12074         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12075         the PCS_Version value from s-parint, used to check that it is consistent
12076         with what exp_dist expects.
12077
12078         * s-parint.ads (PCS_Version): New entity for checking consistency
12079         between exp_dist and PCS.
12080
12081         * gen-soccon.c: (SO_REUSEPORT): New constant.
12082
12083 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
12084
12085         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12086         variable Sub_Second to Duration in order to accomodate a larger range
12087         of arithmetic operations.
12088
12089 2007-08-14  Bob Duff  <duff@adacore.com>
12090
12091         * g-sttsne-locking.ads: Move comments from spec to body.
12092         * g-sttsne-locking.adb: Move comments from spec to body.
12093         * g-sttsne-vxworks.ads: Removed.
12094         * g-sttsne-vxworks.adb: Removed.
12095
12096 2007-08-11  Ian Lance Taylor  <iant@google.com>
12097
12098         * misc.c (gnat_get_alias_set): Change return type to
12099         alias_set_type.
12100
12101 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12102
12103         * decl.c, utils2.c: Fix whitespace in last change.
12104
12105 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12106
12107         * decl.c (compare_field_bitpos): Constify.
12108         * utils2.c (compare_elmt_bitpos): Likewise.
12109
12110 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
12111
12112         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12113         anonymous access type.
12114         (pthread_sigmask): Now take an access sigset_t.
12115
12116 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
12117
12118         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12119
12120 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
12121
12122         PR tree-optimization/25737
12123         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12124
12125 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12126
12127         * trans.c (Attribute_to_gnu): When subtracting an
12128         offset from a pointer, use POINTER_PLUS_EXPR with
12129         NEGATE_EXPR instead of MINUS_EXPR.
12130         (gnat_to_gnu): Likewise.
12131         * utils.c (convert): When converting between
12132         thin pointers, use POINTER_PLUS_EXPR and sizetype
12133         for the offset.
12134         * utils2.c (known_alignment): POINTER_PLUS_EXPR
12135         have the same semantics as PLUS_EXPR for alignment.
12136         (build_binary_op): Add support for the semantics of
12137         POINTER_PLUS_EXPR's operands.
12138         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12139
12140 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
12141
12142         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12143         of get_signed_or_unsigned_type.
12144         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12145
12146 2007-06-11  Bob Duff  <duff@adacore.com>
12147             Thomas Quinot  <quinot@adacore.com>
12148
12149         * g-stsifd-sockets.adb (Create): Work around strange behavior of
12150         'bind' on windows that causes 'connect' to fail intermittently, by
12151         retrying the 'bind'.
12152         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12153
12154 2007-06-10  Duncan Sands  <baldrick@free.fr>
12155
12156         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12157         than to void, for the fields when making a new fat pointer type.
12158         (gnat_substitute_in_type): Now substitute_in_type.
12159         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
12160         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12161         * utils.c (update_pointer_to): Update fat pointers by updating the
12162         dummy node pointers used for the fields.
12163
12164 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12165             Bob Duff  <duff@adacore.com>
12166
12167         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12168         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12169         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
12170         constant Thread_Blocking_IO, always True by default, set False
12171         on a per-runtime basis.
12172         (Need_Netdb_Buffer): New constant.
12173
12174         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12175         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12176         files.
12177
12178         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12179         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12180         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12181         child package Task_Safe_NetDB
12182         (Host_Error_Messages): Add stub body.
12183         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12184
12185         * g-soccon-mingw.ads: Add Windows-specific constants.
12186         (Need_Netdb_Buffer): New constant.
12187         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12188         wrapper and import inet_addr(3) from the standard sockets library
12189         directly instead.
12190         (In_Addr): Add alignment clause.
12191         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12192
12193 2007-06-06  Robert Dewar  <dewar@adacore.com>
12194
12195         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12196         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12197         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12198         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12199         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12200         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12201         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12202         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12203         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12204         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12205         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12206         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12207         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12208         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12209         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12210         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12211         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12212         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12213         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12214         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12215         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12216         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12217         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12218         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12219         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12220         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12221         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12222         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12223         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12224         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12225         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12226         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12227         Unchecked_* by Ada.Unchecked_*
12228
12229 2007-06-06  Robert Dewar  <dewar@adacore.com>
12230
12231         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12232         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12233         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12234         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12235         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12236         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12237
12238         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12239         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12240         s-tasloc.adb, s-tasloc.ads: New files.
12241
12242 2007-06-06  Bob Duff  <duff@adacore.com>
12243
12244         * g-expect-vms.adb:
12245         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12246         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12247         (Send_Signal, Close): Raise Invalid_Process if the process id is
12248         invalid.
12249         (Pattern_Matcher_Access): Is now a general access type to be able to
12250         use aliased string.
12251
12252 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12253             Arnaud Charlet  <charlet@adacore.com>
12254
12255         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12256         (SIGEMT is now used instead of SIGTERM on AIX).
12257
12258         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12259         (Time_Slice_Supported): Set to True.
12260         Use SIGEMT instead of SIGTERM as SIGADAABORT.
12261
12262 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12263
12264         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12265         (Time, Time)): Use To_Relative_Time rather than manual calculation to
12266         express the bounds of Duration as Time. Raise Time_Error when the
12267         result is greater or equal to the higher bound of Duration (on the
12268         margin case).
12269         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12270         Ada_High_And_Leaps.
12271         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12272         Ada_High_And_Leaps.
12273         ("-" (Time, Time)): Reorder code.
12274         (All_Leap_Seconds): Removed.
12275         (Arithmetic_Operations.Add): Remove sign related kludge.
12276         (Arithmetic_Operations.Difference): Control the leaps seconds processing
12277         with flag Leap_Support.
12278         (Arithmetic_Operations.Subtract): Remove sign related kludge.
12279         (Check_Within_Time_Bounds): New procedure.
12280         (Clock): Control the leap seconds processing with flag Leap_Support.
12281         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12282         (Formatting_Operations.Split): Control the leap seconds processing with
12283         flag Leap_Support.
12284         (Formatting_Operations.Time_Of): Control the leaps seconds processing
12285         with flag Leap_Support. Adjust the year, month and day (if applicable)
12286         when the value of day seconds designates a new day.
12287         (Split): Use parameter associations for better readability. Integrate
12288         flag Is_Ada_05.
12289         (Time_Of): Use parameter associations for better readability. Integrate
12290         flag Is_Ada_05.
12291
12292         * a-calfor.adb (Split): Use parameter associations for better
12293         readability. Integrate flag Is_Ada_05.
12294         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12295         better readability. Integrate flag Is_Ada_05.
12296
12297 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12298
12299         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12300         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12301         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12302         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12303         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12304         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12305         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12306         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12307         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12308         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12309         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12310         time when entering this routine to detect a backward clock setting
12311         (manual setting or DST adjustment), to avoid waiting for a longer delay
12312         than needed.
12313         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12314         Remove handling of deferred priority change, and replace by setting the
12315         task priority directly, as required by AI-188.
12316         Update comments.
12317         (Max_Task_Image_Length): New constant.
12318         Replace Warnings (Off) by Unreferenced pragma, cleaner.
12319         (Dynamic_Priority_Support): Removed, no longer needed.
12320         (Poll_Base_Priority_Change): Ditto.
12321         (Set_Ceiling): Add this procedure to change the ceiling priority
12322         associated to a lock. This is a dummy implementation because dynamic
12323         priority ceilings are not supported by the underlying system.
12324
12325         * a-dynpri.adb (Set_Priority): Take into account case where Target is
12326         accepting a RV with its priority boosted.
12327         Remove handling of deferred priority change, and replace by setting the
12328         task priority directly, as required by AI-188.
12329
12330         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12331         Succeeded = True.
12332         Remove handling of deferred priority change, and replace by setting the
12333         task priority directly, as required by AI-188.
12334         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12335         of Self_Id earlier.
12336
12337         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12338         (Poll_Base_Priority_Change): Removed.
12339         Code clean up: use SSL.Current_Target_Exception.
12340
12341         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12342         to run as this is a potentially dispatching point.
12343         (Call_Synchronous): Use Local_Defer_Abort.
12344         (Callable): Relax assertion.
12345         (Selective_Wait): Relax assertion in case abort is not allowed.
12346         Remove handling of deferred priority change, and replace by setting the
12347         task priority directly, as required by AI-188.
12348
12349         * s-tasuti.adb (Make_Passive): Adjust assertions.
12350         Remove handling of deferred priority change, and replace by setting the
12351         task priority directly, as required by AI-188.
12352
12353 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12354
12355         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12356         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12357         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12358         system-vxworks-mips.ads, system-vxworks-alpha.ads,
12359         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12360         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12361         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12362         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12363         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12364         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12365         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12366         This patch changes the largest non-binary modulus from 2**31-1 to
12367         2**32-1.
12368         (Compiler_System_Version): Removed, no longer used.
12369         Clean up system files by removing flags only used on a single target.
12370         Also remove obsolete flags, only used during bootstrap from system.ads
12371         (Address): Add a pragma Preelaborable_Initialization.
12372
12373         * system-aix.ads:  Ditto.
12374         (GCC_ZCX_Support): Set to true.
12375         Update priority range on AIX and map Ada priorities to target
12376         priorities appropriately for different scheduling policies.
12377
12378         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12379
12380 2007-06-06  Vincent Celier  <celier@adacore.com>
12381
12382         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12383         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12384
12385         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12386         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12387         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12388         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12389         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12390         MLib.Tgt, containing the default versions of the exported subprograms.
12391         For each platform, create a specific version of the body of new child
12392         package MLib.Tgt.Specific that contains only the body of subprograms
12393         that are different from the default.
12394         (Archive_Builder_Append_Options): New function.
12395
12396 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12397
12398         * s-osinte-aix.adb: Map Ada priorities to target priorities
12399         appropriately for different scheduling policies.
12400
12401 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12402
12403         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12404         its C counterpart.
12405         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12406         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12407
12408 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12409
12410         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12411         Noop on VMS, added for interface commonality.
12412
12413 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12414             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12415             Olivier Hainque  <hainque@adacore.com>
12416
12417         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12418         renamed expression of a full renaming at toplevel.
12419         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12420         the values the constant is initialized to if it is an N_Allocator.
12421         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12422         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12423         (make_aligning_type): Accept an extra ROOM argument for storage to be
12424         made available before the aligned field, and an extra BASE_ALIGN
12425         argument for callers to pass the alignment guaranteed to be honored for
12426         the whole aligning object. Avoid call to finish_record_type, which only
12427         interferes with the sizes we want to set.
12428         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12429         make_aligning_type for super-aligned objects on stack.
12430         (components_to_record): Pass the adjusted size of the type when creating
12431         fields in the qualified union for the variant part.
12432         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12433         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12434         packed array type.
12435         (maybe_pad_type): Set TYPE_USER_ALIGN.
12436         (make_aligning_type): Likewise.
12437         ALIGN argument is unsigned int.
12438         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12439         (gnat_to_gnu_param): Likewise, for parameters.
12440         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12441         if it is constant and stems from a function call.
12442         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12443         of the record is specified.  Adjust accordingly.
12444         (adjust_packed): New static function.
12445         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12446         (components_to_record): Likewise.
12447         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12448         side-effects if the object is deemed constant.
12449         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12450         type instead of merely finalizing it.  Tidy.
12451         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12452         <E_Access_Type>: Likewise.
12453         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12454         (defer_debug_level): Delete.
12455         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12456         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12457         type.
12458         <E_Record_Type>: Do not explicitly defer finalizing the type.
12459         Adjust for write_record_type_debug_info renaming.
12460         <E_Subprogram_Type>: Likewise.
12461         Finalize deferred types right after deferred incomplete types are
12462         expanded.
12463         (rest_of_type_decl_compilation): New global function.
12464         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12465         (components_to_record): Propagate the packedness to the fields of the
12466         qualified union type if there is a variant part.
12467         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12468         instead of inline code to adjust the XUT field offsets.
12469         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12470         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12471         and write the debug info if the type derives from a discriminated one.
12472         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12473         <E_Array_Subtype>: Likewise.
12474         <E_String_Literal_Subtype>: Likewise.
12475         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12476         an alignment clause.
12477         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12478         before giving warning.
12479         (prepend_one_attribute_to): New function, helper to prepend an attribute
12480         to an attribute list.
12481         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12482         (prepend_attributes): Likewise.
12483         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12484         <E_Array_Type>: Declare the padding type for the element type, if any.
12485         <E_Array_Subtype>: Likewise.
12486         (defer_limited_with): New variable.
12487         (Gigi_Equivalent_Type): New function.
12488         (gnat_to_gnu_entity): Use it at start and use result throughout.
12489         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12490         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12491         indirection, precompute if unconstrained array to simplify logic, and
12492         use defer_limited_with to defer elaboration of some types from limited
12493         with.
12494         (finalize_from_with_types): New function.
12495
12496 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12497             Eric Botcazou  <ebotcazou@adacore.com>
12498             Tristan Gingold  <gingold@adacore.com>
12499             Olivier Hainque  <hainque@adacore.com>
12500
12501         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12502         adding guard that the entity is an E_Constant before testing presence
12503         of Full_view (and remove unnecessary test that entity is not a type).
12504         For a CONST_DECL used by reference, manually retrieve
12505         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12506         (struct language_function): Move from utils.c to here.
12507         (struct parm_attr): New structure.
12508         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12509         (f_parm_attr_cache): New macro.
12510         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12511         expressions for the 'First, 'Last and 'Length attributes of the
12512         unconstrained array IN parameters.
12513         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12514         Allocate the information structure for the function earlier, as well
12515         as the language-specific part.
12516         If the parameter attributes cache has been populated, evaluate the
12517         cached expressions on entry.
12518         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12519         N_Procedure_Call_Statement and N_Indexed_Component.
12520         (Pragma_to_gnu): Translate inspection_point to an asm statement
12521         containaing a comment and a reference to the object (either its address
12522         for BLKmode or its value).
12523         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12524         to go to DECL_INITIAL. Together with the size constraint relaxation
12525         in create_var_decl, enlarges the set of situations in which an
12526         identifier may be used as an initializer without implying elaboration
12527         code.
12528         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12529         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12530         node.
12531         (maybe_stabilize_reference): Remove lvalues_only parameter.
12532         (gnat_stabilize_reference): Adjust for above change.
12533         (gnat_to_gnu): Do not set location information on the result
12534         if it is a reference.
12535         (add_cleanup): Add gnat_node parameter and set the location of the
12536         cleanup to it.
12537         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12538         (Exception_Handler_to_gnu_zcx): Likewise.
12539         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12540         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12541         the former right after the latter.
12542         (start_stmt_group): Make global.
12543         (end_stmt_group): Likewise.
12544         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12545         vars.
12546         (gnu_program_error_label_stack): Likewise.
12547         (gigi): Initialize them.
12548         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12549         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12550         New cases.
12551         (push_exception_label_stack): New function.
12552         (takes_address): New function.
12553
12554         * utils.c (struct language_function): Move to trans.c from here.
12555         (unchecked_convert): Do not wrap up integer constants in
12556         VIEW_CONVERT_EXPRs.
12557         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12558         the latter for aggregate types, unexpected by later passes, and relax an
12559         arbitrary size constraint on the former.
12560         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12561         to compare the sizes.
12562         (convert_vms_descriptor): When converting to a fat pointer type, be
12563         prepared for a S descriptor at runtime in spite of a SB specification.
12564         (shift_unc_components_for_thin_pointers): New function.
12565         (write_record_type_debug_info): For variable-sized fields, cap the
12566         alignment of the pointer to the computed alignment.
12567         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12568         If REP_LEVEL is 2, do not compute the sizes.
12569         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12570         (build_unc_object_type): Likewise.
12571         (declare_debug_type): New function.
12572
12573         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12574
12575         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12576         no statement is expandable anymore.
12577         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12578         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12579         when the user requested it explicitely.
12580         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12581         to 0 for Ada.
12582         (get_alias_set): Return alias set 0 for a type if
12583         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12584
12585         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12586         (DECL_FUNCTION_STUB): New accessor macro.
12587         (SET_DECL_FUNCTION_STUB): New setter macro.
12588
12589         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12590
12591         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12592         declarations.
12593
12594 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12595
12596         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12597         Rename to Abort_Task_Interrupt to be able to keep the same interface
12598         as the rest of the targets.
12599
12600         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12601         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12602
12603         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12604         New files.
12605
12606 2007-06-06  Robert Dewar  <dewar@adacore.com>
12607
12608         * a-chahan.ads: Remove obsolescent pragmas
12609
12610         * a-chlat1.ads: Minor reformatting
12611
12612 2007-06-06  Robert Dewar  <dewar@adacore.com>
12613
12614         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12615         for Errout
12616
12617         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12618         implementation
12619
12620         * errout.ads (Finalize): Changed interface
12621         (Output_Messages): New procedure
12622         (Compilation_Errors): New Interface
12623
12624         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12625         Finalize/Output_Messages interface for Errout
12626         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12627         Errout.
12628
12629 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12630             Olivier Hainque  <hainque@adacore.com>
12631             Robert Dewar  <dewar@adacore.com>
12632
12633         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12634         check.
12635         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12636         propagation starts, to let debuggers know about the event in a reliable
12637         fashion.
12638         (Local_Raise): Moved to System.Exceptions
12639         More convenient to have this as a separate unit
12640
12641         * s-except.adb, s-except.ads: New files.
12642
12643         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12644         Debug_Unhandled_Exception in System.Exceptions where it belongs
12645         together with a couple of other debug helpers.
12646         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12647         the former Unhandled_Exception.
12648
12649         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12650         (Warn_No_Exception_Propagation): New procedure
12651         (Warn_If_No_Propagation): Rewritten for new warning generation
12652         (Expand_Exception_Handlers): New warning generation
12653         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12654         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12655         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12656         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12657         even if restriction is set (makes life easier in Check_Returns)
12658         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12659         checking exception identities.
12660         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12661         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12662         block for handler (used by Check_Returns)
12663         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12664         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12665         remove all exception handlers when optimizing local raise statements.
12666         (Find_Local_Handler): Use Get_Renamed_Entity
12667         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12668         marked analyzed after expanding exception handlers, do not generate
12669         redundant cleanup actions, because they have been constructed already.
12670
12671 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12672
12673         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12674         presence of this categorization pragma is mandated by the language.
12675         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12676         for this type.
12677
12678 2007-06-06  Vincent Celier  <celier@adacore.com>
12679             Robert Dewar  <dewar@adacore.com>
12680
12681         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12682         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12683         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12684         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12685         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12686         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12687         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12688         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12689         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12690         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12691         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12692         ali.ads, ali.adb:
12693         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12694         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12695         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12696         Use variables of types File_Name_Type and Unit_Name_Type in error
12697         messages.
12698         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12699         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12700         here.
12701         Define flags Flag217-Flag230 with associated subprograms
12702         (Flag_Word5): New record type.
12703         (Flag_Word5_Ptr): New access type.
12704         (To_Flag_Word5): New unchecked conversion.
12705         (To_Flag_Word5_Ptr): Likewise.
12706         (Flag216): New function.
12707         (Set_Flag216): New procedure.
12708
12709 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12710
12711         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12712         instead of 'Size.
12713
12714         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12715
12716 2007-06-06  Javier Miranda  <miranda@adacore.com>
12717
12718         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12719         the package.
12720         (Object_Specific_Data_Array): This is now internal to the package.
12721         (Object_Specific_Data): This is now internal to the package.
12722         (Select_Specific_Data_Element): This is now internal to the package.
12723         (Select_Specific_Data_Array): This is now internal to the package.
12724         (Select_Specific_Data): This is now internal to the package.
12725         (Offset_To_Top_Function_Ptr): This is now public.
12726         (To_Offset_To_Top_Function_Ptr): Removed.
12727         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12728          local to subprogram Offset_To_Top.
12729         (Predefined_DT): Removed.
12730         (Typeinfo_Ptr): Removed.
12731         (OSD): This function is now internal to this package.
12732         (SSD): This function is now internal to this package.
12733         (DT): New function that displaces the pointer to the table of primitives
12734          to get access to the enclosing wrapper record.
12735         (IW_Membership): Code cleanup.
12736         (Offset_To_Top): Code cleanup.
12737         (Predefined_DT): Removed.
12738         (Register_Interface_Tag): Removed.
12739         (Set_Interface_Table): Removed.
12740         (Set_Offset_Index): Removed.
12741         (Set_Offset_To_Top): Code cleanup.
12742         (Set_OSD): Removed.
12743         (Set_Signature): Removed.
12744         (Set_SSD): Removed.
12745         (Set_Tagged_Kind): Removed.
12746         (Typeinfo_Ptr): Removed.
12747         (TSD): Removed.
12748         (Displace): Add missing check on null actual.
12749
12750         * exp_disp.ads, exp_disp.adb
12751         (Select_Expansion_Utilities): Removed.
12752         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12753         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12754         the interface requires a new parameter.
12755         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12756         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12757         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12758         Done to remove package Select_Expansion_Utilities.
12759         (Make_DT): New implementation for statically allocated dispatch tables.
12760         (Make_Secondary_DT): Moved to the scope of Make_DT.
12761         (Register_Primitive): Code cleanup plus incoporate the use of the new
12762         function DT_Address_Attribute.
12763         (Expand_Interface_Thunk): The profile of this subprogram has been
12764         changed to return the Thunk_Id and the corresponding code.
12765         (Fill_DT_Entry): Removed. Its functionality is now provided by
12766         subprogram Register_Primitive.
12767         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12768         subprogram Register_Primitive.
12769         (Register_Primitive): New subprogram that incorporates the previous
12770         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12771         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12772         was only required to call Make_DT_Access_Action, which is now removed.
12773         (Ada_Actions): Removed
12774         (Action_Is_Proc): Removed
12775         (Action_Nb_Arg): Removed
12776         Replace all the calls to Make_DT_Access_Action by direct calls to
12777         Make_Procedure_Call_Statement or Make_Function_Call.
12778         (Set_DTC_Entity_Value): New subprogram.
12779         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12780         (Expand_Interface_Thunk): Add missing support for primitives that are
12781         functions with a controlling result (case in which there is no need
12782         to generate the thunk).
12783
12784         * exp_atag.ads, exp_atag.adb
12785         (Build_DT): New subprogram that displaces the pointer to reference the
12786         base of the wrapper record.
12787         (Build_Typeinfo_Offset): Removed.
12788         (RTE_Tag_Node): Removed.
12789         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12790         (Build_Get_RC_Offset): Removed.
12791         (Build_Inherit_Predefined_Prims): Removed.
12792         (Build_Inherit_TSD: Removed.
12793         (Build_New_TSD): Removed.
12794         (Build_Set_External_Tag): Removed.
12795         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12796         (Build_Set_Prim_Op_Address): Add documentation.
12797         (Build_Set_TSD): Removed.
12798
12799         * rtsfind.ads, rtsfind.adb
12800         (Load_Fail): If load fails and we are not in configurable run-time
12801         mode, then raise Unrecoverable_Error.
12802         (Text_IO_Kludge): Generate an error message if a run-time library is
12803         not available in a given run-time (ie. zfp run-time).
12804         (RTE_Record_Component): Add code to check that the component we search
12805         for is not found in two records in the given run-time package.
12806         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12807         (RE_DT_Predef_Prims_Offset): New entity
12808         (RE_Static_Offset_To_Top): New entity
12809         (RE_HT_Link): New entity.
12810         (System_Address_Image): Addition of this run-time package.
12811         (RE_Address_Image): New entity.
12812         (RE_Abstract_Interface): Removed.
12813         (RE_Default_Prim_Op_Count): Removed.
12814         (RE_DT_Entry_Size): Removed.
12815         (RE_DT_Min_Prologue_Size): Removed.
12816         (RE_DT_Prologue_Size): Removed.
12817         (RE_Ifaces_Table_Ptr): Removed.
12818         (RE_Interface_Data_Ptr): Removed.
12819         (RE_Type_Specific_Data): Removed.
12820         (RE_Primary_DT): Removed.
12821         (RE_Register_Interface_Tag): Removed.
12822         (RE_Set_Offset_Index): Removed.
12823         (RE_Set_OSD): Removed.
12824         (RE_Set_SSD): Removed.
12825         (RE_Set_Signature): Removed.
12826         (RE_Set_Tagged_Kind): Removed.
12827         (RE_Address_Array): New entity.
12828         (RE_DT): New entity.
12829         (RE_Iface_Tag): New entity.
12830         (RE_Interfaces_Table): New entity.
12831         (RE_No_Dispatch_Table): New entity.
12832         (RE_NDT_Prims_Ptr): New entity.
12833         (RE_NDT_TSD): New entity.
12834         (RE_Num_Prims): New entity.
12835         (RE_Offset_To_Top_Function_Ptr): New entity.
12836         (RE_OSD_Table): New entity.
12837         (RE_OSD_Num_Prims): New entity.
12838         (RE_Predef_Prims): New entity
12839         (RE_Predef_Prims_Table_Ptr): New entity.
12840         (RE_Primary_DT): New entity.
12841         (RE_Signature): New entity.
12842         (RE_SSD): New entity.
12843         (RE_TSD): New entity.
12844         (RE_Type_Specific_Data): New entity.
12845         (RE_Tag_Kind): New entity.
12846
12847 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12848
12849         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12850         C imported variable.
12851         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12852         on entry.
12853
12854 2007-06-06  Robert Dewar  <dewar@adacore.com>
12855
12856         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12857         character
12858
12859 2007-06-06  Vincent Celier  <celier@adacore.com>
12860
12861         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12862         is room for at least one digit and the minus sign.
12863         (Put.Put_Character): Never put a character outside of the range of
12864         string To.
12865
12866 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12867             Eric Botcazou  <ebotcazou@adacore.com>
12868
12869         * utils2.c (build_allocator): Provide the extra arguments to
12870         make_aligning_type for super-aligned objects allocated from the default
12871         pool. Leave enough room for a pointer before the aligning field, and
12872         store the system's allocator return value there.
12873         (build_call_alloc_dealloc): When releasing a super-aligned object,
12874         retrieve the system's allocator return value from where build_allocator
12875         has stored it, just ahead of the adjusted address we are passed.
12876         (build_call_raise): Handle properly the generation of line numbers when
12877         the node is marked No_Location.
12878         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12879         by using DECL_UID on ties.
12880         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12881         main variant.
12882         (build_call_raise): Handle converting exception into goto; support new
12883         argument KIND.
12884         (build_component_ref): Add new arg to build_call_raise.
12885
12886 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12887
12888         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12889         "." in the case of nnn.xxx when nnn terminates with an underscore.
12890         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12891
12892 2007-06-06  Robert Dewar  <dewar@adacore.com>
12893
12894         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12895
12896 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12897             Vincent Celier  <celier@adacore.com>
12898             Robert Dewar  <dewar@adacore.com>
12899
12900         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12901         needed.
12902         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12903         ((destructor)) for adafinal, even when switch -a is used.
12904         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12905         used.
12906         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12907         Output_Linker_Option_List is set. Suppress this formatting when
12908         Zero_Formatting is set.
12909         Add case for CLI_Target.
12910         (System_Restrictions_Used): New flag, used to avoid generating with of
12911         System_Restrictions and initialization of the data unless there is
12912         some use of System.Restrictions in the partition.
12913         (Check_System_Restrictions_Used): New procedure
12914
12915         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12916         since we only with this unit in the binder file if it is used elsewhere
12917         in the partition.
12918
12919 2007-06-06  Vincent Celier  <celier@adacore.com>
12920
12921         * bindusg.adb: Add line for @<response file>
12922         Add lines for new switches -R and -Z
12923
12924         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12925         hierarchy in the list of files of the closure when -R is used
12926         (Gnatbind): Accept arguments starting with '@' to indicate response
12927         files and take the arguments from the response files.
12928         If List_Closure is set, display the referenced files
12929
12930 2007-06-06  Javier Miranda  <miranda@adacore.com>
12931             Robert Dewar  <dewar@adacore.com>
12932             Ed Schonberg  <schonberg@adacore.com>
12933
12934         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12935         which the address-clause is applied to in-mode actuals (allowed by
12936         13.1(22)).
12937         (Apply_Discriminant_Check): Do not generate a check if the type is
12938         constrained by a current instance.
12939         (Activate_Division_Check): New procedure
12940         (Activate_Overflow_Check): New procedure
12941         (Activate_Range_Check): New procedure
12942         Call these new Activate procedures instead of setting flags directly
12943         (Apply_Array_Size_Check): Removed, no longer needed.
12944         Code clean up: remove obsolete code related to GCC 2.
12945         (Get_E_Length): Protect against bomb in case scope is standard
12946         (Selected_Range_Checks): If the node to be checked is a conversion to
12947         an unconstrained array type, and the expression is a slice, use the
12948         bounds of the slice to construct the required constraint checks.
12949         Improve NOT NULL error messages
12950         (Apply_Constraint_Check): If the context is a null-excluding access
12951         type, diagnose properly the literal null.
12952
12953 2007-06-06  Pascal Obry  <obry@adacore.com>
12954
12955         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12956         and the corresponding .deps file.
12957         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12958         src directory. Minor code-clean-up. Use untouched casing for files
12959         read into the library src dir.
12960         (Clean_Library_Directory): Idem.
12961         (Parse_Cmd_Line): Accept new switch -aP
12962
12963 2007-06-06  Javier Miranda  <miranda@adacore.com>
12964             Ed Schonberg  <schonberg@adacore.com>
12965             Robert Dewar  <dewar@adacore.com>
12966             Eric Botcazou  <ebotcazou@adacore.com>
12967             Arnaud Charlet  <charlet@adacore.com>
12968
12969         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12970         applicable to types that have the With_Type flag set. Returns the
12971         non-limited view of the type, if available, otherwise the type itself.
12972         For class-wide types, there is no direct link in the tree, so we have
12973         to retrieve the class-wide type of the non-limited view of the Etype.
12974         New attributes Static_Initialization and Static_Elaboration_Desired.
12975         Remove the pragma Thread_Body, and the associated flag
12976         Is_Thread_Body in entities, and all related code.
12977         (Suppress_Value_Tracking_On_Call): New flag
12978         E_Exception has Esize and Alignment fields
12979         (Universal_Aliasing): New function.
12980         (Set_Universal_Aliasing): New procedure.
12981         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12982         (Check_Nested_Access): New procedure.
12983         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12984         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12985         (Related_Interface): New attribute. Present in dispatch table pointer
12986         components of records. Set to point to the entity of the corresponding
12987         interface type.
12988         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12989         (Original_Access_Type): Remove, not needed.
12990         (Root_Type): Handle properly subtypes of class-wide-types.
12991         Update comments.
12992
12993         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12994         class-wide types visible through limited-with clauses.
12995         (Try_Primitive_Operation): When examining all primitive operations of a
12996         tagged type, do not consider subprograms labeled as hidden unless they
12997         belong to a private generic type with a tagged parent.
12998         (Try_Object_Operation): Extensive rewriting, to handle properly various
12999         overloading cases, when several ancestors may have class-wide operations
13000         that are possible candidates, and when the overloaded functions return
13001         array types and have defaulted parameters so that the call may be
13002         interpreted as an indexing.
13003         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13004         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13005         successive actuals before analyzing the call itself.
13006         (Try_Primitive_Operation): A primitive operation is compatible with the
13007         prefix if the prefix has a synchronized type and the type of the formal
13008         is its corresponding record, as can be the case when the primitive
13009         operation is declared outside of the body of the type.
13010         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13011         perform homonym traversal, looking for class-wide operation matches
13012         (formerly done in statements of Try_Class_Wide_Operation). Matches on
13013         access parameters are now restricted to anonymous access types.
13014         (Mark_Allocator): An allocator with a discriminant association parent is
13015         a coextension.
13016         (Try_One_Prefix_Interpretation): If the type of the object is
13017         incomplete, as can be happen when it is a limited view obtained through
13018         a limited_with_clause, the selected component is not part of a prefixed
13019         call.
13020         (Complete_Object_Operation): Diagnose properly an object that is not
13021         aliased when the corresponding controlling formal is an access
13022         parameter.
13023         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13024         ambiguous calls in prefixed notation, where two primitives differ only
13025         in that the controlling argument of one is an access parameter.
13026
13027         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13028         whether a function that returns an unconstrained type can be inlined.
13029         (Process_Formals): Diagnose properly the illegal use of an incomplete
13030         type in the profile of an access_to_subprogram declaration.
13031         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13032         operations are attached to the corresponding record.
13033         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13034         When processing a primitive of a concurrent type which implements an
13035         interface change the type of all controlling formals to that of the
13036         corresponding record type.
13037         (Check_Synchronized_Overriding): Relax the conditional logic when trying
13038         to determine the tagged type to which a primitive belongs.
13039         (Check_Conventions): Capture condition to ignore a primitive operation
13040         (which is shared between the loop in Check_Conventions and the one in
13041         Check_Convention) in a new local function Skip_Check.
13042         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13043         confusion with Check_Conventions' own Prim_Op local variable.
13044         (Create_Extra_Formals): Test for a tagged result type rather than a
13045         controlling result when determining whether to add a BIP_Alloc_Form
13046         formal and a BIP_Final_List formal to the function.
13047         (Check_Conformance); For parameters that are anonymous access types,
13048         subtype conformance requires that the not null and the constant
13049         indicators must match
13050         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13051         to retrieve the appropriate type when processing a concurrent type
13052         declared within a generic. Minor comment reformatting. Change invocation
13053         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13054         mitive.
13055         (Analyze_Subprogram_Body): If the return type of a function is an
13056         anonymous access to the limited view of a class-wide type, and the
13057         non-limited view of the type is available, update the type of the
13058         function so that code can be generated.
13059         (Process_Formals): In case of access-subtype itype whose designated
13060         type is also an itype (situation that happens now with access to
13061         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13062         attribute to avoid backend problems.
13063         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13064         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13065         anonymous types' designated types are same before testing
13066         Subtypes_Statically_Match.
13067         (Create_Extra_Formals): Test for a named access parameter that is a
13068         controlling formal as an additional condition for adding an
13069         accessibility level formal. This can occur in the subp type created for
13070         dispatching calls in Expand_Dispatching_Call, and allows calling
13071         Create_Extra_Formals from that procedure rather than special-casing the
13072         extra formals there.
13073         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13074         when the function has a controlling result.
13075         (Check_Returns): Add much more knowledge of the optimization of local
13076         raise statements to gotos, to retain proper warnings in this case.
13077         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13078         nodes when looking for last statement.
13079
13080         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13081         class-wide types visible through limited with clauses.
13082         (Add_One_Interp): If the operands are anonymous access types, the
13083         predefined operator on universal_access is immediately visibles
13084         (Find_Unique_Type): Handle anonymous access to subprogram types just as
13085         other anonymous access types.
13086         (Disambiguate): Take into account CIL convention.
13087         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13088
13089 2007-06-06  Robert Dewar  <dewar@adacore.com>
13090
13091         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13092         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13093         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13094         Fix lower bound of tables.
13095         Add rep clauses.
13096
13097         * nlists.adb: Ditto.
13098         (Prev_Node, Next_Node): Change index type to Int so that it properly
13099         covers the range First_Node_Id - 1 up.
13100
13101 2007-06-06  Javier Miranda  <miranda@adacore.com>
13102             Ed Schonberg  <schonberg@adacore.com>
13103             Bob Duff  <duff@adacore.com>
13104             Hristian Kirtchev  <kirtchev@adacore.com>
13105
13106         * exp_aggr.ads, exp_aggr.adb:
13107         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13108         in extension aggregates.
13109         (Flatten): Other conditions being met, an aggregate is static if the
13110         low bound given by component associations is different from the low
13111         bound of the base index type.
13112         (Packed_Array_Aggregate_Handled): If the component type is itself a
13113         packed array or record, the front-end must expand into assignments.
13114         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13115         Init_Pr, instead of Ancestor_Is_Expression.
13116         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13117         coextension chain root, either generate a list controller or use the
13118         already existing one.
13119         (Static_Array_Aggregate): New procedure to construct a positional
13120         aggregate that can be handled by the backend, when all bounds and
13121         components are compile-time known constants.
13122         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13123         types covering interface types into assignments.
13124         (Replace_Type): move to Build_Record_Aggr_Code.
13125         (Expand_Record_Aggr_Code): if the target of the aggregate is an
13126         interface type, convert to the definite type of the aggregate itself,
13127         so that needed components are visible.
13128         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13129         components and the context is an extended return statement do not
13130         create a transient block for it, to prevent premature finalization
13131         before the return is executed.
13132         (Gen_Assign): Do not generate a call to deep adjust routine if the
13133         component type is itself an array of controlled (sub)-components
13134         initialized with an inner aggregate.
13135         (Component_Check): New name for Static_Check. This name is now more
13136         appropriate, and documentation is added which was missing.
13137         (Component_Check): Add test for bit aligned component value
13138         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13139         Tagged_Comps, name is more appropriate given added function below.
13140         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13141
13142 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13143             Javier Miranda  <miranda@adacore.com>
13144             Robert Dewar  <dewar@adacore.com>
13145
13146         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13147         Terminated: Add unchecked type conversion from System.Address to
13148         System.Tasking.Task_Id when calling the predefined primitive
13149         _disp_get_task_id.
13150         Disable new Ada 05 accessibility check for JVM.NET targets, which
13151         cannot be implemented in a practical way.
13152         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13153         the sources always references the tag of the actual object. Therefore,
13154         if 'Tag is applied in the sources to class-wide interface objects we
13155         generate code that displaces "this" to reference the base of the object.
13156         (Expand_N_Attribute_Reference, case Size): Return specified size if
13157         known to front end.
13158         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13159         has code that displaces the pointer of the object to manage interface
13160         types. However this code must not be executed when the prefix is a
13161         subprogram. This bug caused the wrong expansion of the internally
13162         generated assignment that fills the dispatch table when the primitive
13163         is a function returning a class-wide interface type.
13164         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13165         Set_Attribute_Name for Name_Unaligned_Valid.
13166
13167 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13168             Gary Dismukes  <dismukes@adacore.com>
13169
13170         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13171         If the initialization is the equivalent aggregate of the initialization
13172         procedure of the type, do not remove it.
13173         (Expand_N_Attribute_Definition_Clause): Exclude access variables
13174         initialized to null from having their expression reset to empty and
13175         note this exception in the comment.
13176
13177 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13178             Robert Dewar  <dewar@adacore.com>
13179             Ed Schonberg  <schonberg@adacore.com>
13180             Gary Dismukes  <dismukes@adacore.com>
13181
13182         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13183         Add "with" and "use" clauses for Sem_Attr.
13184         (Expand_Current_Value): Do not replace occurences of attribute
13185         references where the prefix must be a simple name.
13186
13187         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13188         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13189         Attribute_Requires_Simple_Name_Prefix.
13190         (Name_Modifies_Prefix): Body of new function.
13191         (Requires_Simple_Name_Prefix): Body of new function.
13192         (Resolve_Attribute, case Access): Improve error message for case of
13193         mismatched conventions.
13194         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13195         incomplete type.
13196         (Analyze_Attribute, case 'Access): If the type of the prefix is a
13197         constrained subtype for a nominal unconstrained type, use its base type
13198         to check for conformance with the context.
13199         (Resolve_Attribute): Remove test of the access type being associated
13200         with a return statement from condition for performing accessibility
13201         checks on access attributes, since this case is now captured by
13202         Is_Local_Anonymous_Access.
13203         (Analyze_Access_Attribute): Set Address_Taken on entity
13204         (Analyze_Attribute, case Address): Set Address_Taken on entity
13205         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13206         validating an access attribute whose prefix is a current instance.
13207         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13208         applied to dispatching operations, if freezing is required then we set
13209         the attribute Has_Delayed_Freeze in the prefix's entity.
13210         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13211         current scope if access of local subprogram taken
13212         (Analyze_Access_Attribute): Check legality of self-reference even if the
13213         expression comes from source, as when a single component association in
13214         an aggregate has a box association.
13215         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13216         the prefix if it is a protected operation and the attribute is
13217         Unrestricted_Access.
13218         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13219         reference to the base type of the context, to force a constraint check
13220         when the context is an access subtype with an explicit constraint.
13221         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13222         node is rewritten as an interface conversion. leave unanalyzed after
13223         resolution, to ensure that type checking against the context will take
13224         place.
13225
13226 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13227             Javier Miranda  <miranda@adacore.com>
13228             Robert Dewar  <dewar@adacore.com>
13229
13230         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13231         wrapper when the full view of the controlling type of an inherited
13232         function that dispatches on result implements interfaces.
13233         (Expand_N_Object_Declaration): In cases where the type of the
13234         declaration is anonymous access, create finalization list for it.
13235         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13236         if the object has no explicit initialization, to match description of
13237         functionality of pragam Persistent_BSS.
13238         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13239         new function to build static aggregates, to replace initialization call
13240         when static initialization is desired.
13241         (Freeze_Type): Generate a list controller for an access type whenever
13242         its designated type has controlled anonymous access discriminants.
13243         (Build_Equivalent_Aggregate): New procedure to compute a static
13244         aggregate to be used as default initialization for composite types,
13245         instead of a generating a call to the initialization procedure for the
13246         type.
13247         (Build_Initialization_Call): When available, replace a call to the
13248         initialization procedure with a copy of the equivalent static aggregate
13249         for the type.
13250         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
13251         declarations for objects of a class-wide interface type, rather than
13252         just identifiers, to prevent visibility problems.
13253         (Expand_N_Object_Declaration): When expanding the declaration for an
13254         object of a class-wide interface type, preserve the homonym chain of
13255         the original entity before exchanging it with that of the generated
13256         renaming declaration.
13257         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13258         active, because there is no way to handle the exception.
13259         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13260         to do a minimum decoration of the Access_Disp_Table list.
13261         (Expand_Record_Controller): Avoid the addition of the controller between
13262         the component containing the tag of a secondary dispatch table and its
13263         adjacent component that stores the offset to the base of the object.
13264         This latter component is only generated when the parent type has
13265         discriminants ---documented in Add_Interface_Tag_Components).
13266         (Apply_Array_Size_Check): Removed, no longer needed.
13267         (Expand_N_Full_Type_Declaration): If the type has anonymous access
13268         components, create a Master_Entity for it only if it contains tasks.
13269         (Build_Init_Procedure): Suppress the tag assignment compiling under
13270         no run-time mode.
13271         (Freeze_Record_Type): Remove code associated with creation of dispatch
13272         table.
13273         (Init_Secondary_Tags): Update type of actuals when generating calls to
13274         Ada.Tags.Set_Offset_To_Top
13275         (Stream_Operation_OK): Disable use of streams compiling under no
13276         run-time mode
13277         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13278         if Has_Init_Expression set.
13279         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13280         Register_Primitive, which provides the same functionality.
13281         (Requires_Init_Proc): Return false in case of interface types.
13282         (Add_Secondary_Tables): Use the new attribute Related_Interface to
13283         cleanup the code.
13284         (Predefined_Primitive_Freeze): Do not assume that an internal entity
13285         is always associated with a predefined primitive because the internal
13286         entities associated with interface types are not predefined primitives.
13287         Therefore, the call to Is_Internal is replaced by a call to the
13288         function Is_Predefined_Dispatching_Operation.
13289         (Make_Eq_If): When generating the list of comparisons for the
13290         components of a given variant, omit the controller component that is
13291         present if the variant has controlled components.
13292
13293 2007-06-06  Javier Miranda  <miranda@adacore.com>
13294             Hristian Kirtchev  <kirtchev@adacore.com>
13295             Bob Duff  <duff@adacore.com>
13296
13297         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13298         handle the creation of finalization lists and calls for nested
13299         coextensions when the root of the chains is part of a return statement.
13300         (Inside_A_Return_Statement): New function inside Complete_Coextension_
13301         Finalization.
13302         (Expand_Record_Equality): Skip components that are interface types.
13303         (Displace_Allocator_Pointer): Add missing support for interface subtypes
13304         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13305         with Rewrite_Coextension. Change the condition for detecting coextension
13306         root nodes.
13307         (Is_Local_Access_Discriminant): Removed.
13308         (Rewrite_Coextension): New routine which rewrites a static coextension
13309         as a temporary and uses its unrestricted access in the construction of
13310         the outer object.
13311         (Complete_Coextension_Finalization): New routine. Generate finalization
13312         attachment calls to all delayed coextensions.
13313         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13314         the allocator is not a coextension itself and has delayed coextensions.
13315         If the current allocator is controlled, but also a coextension, delay
13316         the generation of the finalization attachment call.
13317         Rename local variable "Node" to "Nod" in order to avoid confusion with
13318         "Elists.Node".
13319         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13320         limited types that are not inherently limited. Such an allocator is
13321         illegal, but is generated by the expander for a return statement, to
13322         copy the result onto the secondary stack. This is the only case where a
13323         limited object can be copied. Generate code to displace the pointer
13324         to the object if the qualified expression is a class-wide interface
13325         object. Such displacement was missing and hence the copy of the object
13326         was wrong.
13327         (Apply_Accessibility_Check): Handle allocated objects initialized in
13328         place.
13329         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13330         and Expand_Allocator_Expression. Allocating class-wide interface objects
13331         this routine displaces the pointer to the allocated object to reference
13332         the component referencing the corresponding secondary dispatch table.
13333         Expand_Allocator_Expression): Add missing support to allocate class-wide
13334         interface objects initialized with a qualified expression.
13335         (Get_Allocator_Final_List): Test for an anonymous access type that is a
13336         function result type, and use the finalization list associated with the
13337         function scope in that case (such an anonymous type should not be
13338         treated like an access parameter's type).
13339
13340 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13341             Gary Dismukes  <dismukes@adacore.com>
13342             Javier Miranda  <miranda@adacore.com>
13343
13344         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13345         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13346         required exception handler.
13347         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13348         properly the case of a function whose return type is a limited
13349         class-wide interface type. Modify the code of the accessibility
13350         check to handle class-wide interface objects. In this case we need to
13351         displace "this" to reference the primary dispatch table to get access
13352         to the TSD of the object (to evaluate its accessibility level).
13353         (Expand_N_Extended_Return_Statement): Test for a tagged result type
13354         rather than a controlling result as one of the conditions for
13355         generating tests of the implicit BIP_Alloc_Form formal. The
13356         initialization assignment is also handled according to whether the
13357         result is tagged instead of controlling.
13358         In the case where the init assignment is inserted in the "then" part of
13359         the allocation conditional, rewrite the target to be a dereference of
13360         the implicit BIP_Object_Access formal.
13361         If the returned value is unconstrained and created on the secondary
13362         stack, mark the enclosing block and function so that the secondary
13363         stack is not reclaimed on return.
13364         Treat returns from functions with controlling results similarly to
13365         returns from functions with unconstrained result subtypes.
13366         If the object returned is unconstrained, and an allocator must be
13367         created for it, analyze the allocator once the block for the extended
13368         return is installed, to ensure that finalizable components
13369         of the expression use the proper finalization list. Guard the call to
13370         Move_Final_List with a check that there is something to finalize.
13371         (Make_Tag_Ctrl_Assignment): Use "old" handling
13372         of controlled type assignment for virtual machines, since new code uses
13373         unsupported features (such as direct access to bytes in memory).
13374
13375 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
13376             Ed Schonberg  <schonberg@adacore.com>
13377
13378         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13379         accessibility actual, check for the case of an aliased object that has
13380         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13381         we fall into processing for the attribute rather than the name of the
13382         object.
13383         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13384         formal has its address taken in the body, create a temporary to capture
13385         value.  If the return type is a limited interface, do not treat the
13386         return value as Controlled.
13387         (Is_In_Place_Function):  If the return type is a limited interface,
13388         treat as returning in place. The actual returned object may not always
13389         be limited, but the caller has to assume that it is returned in place.
13390         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13391         context of an allocator, use the correct finalization chain (that is,
13392         the chain belonging to the access type, rather than the chain belonging
13393         to the current scope).
13394         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13395         result type rather than a controlling result as a precondition for
13396         adding an allocation form actual to a build-in-place call.
13397         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13398         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13399         primitive in the dispatch tables. This work is now done by Make_DT when
13400         the type is frozen.
13401         (Register_Predefined_DT_Entry): Removed.
13402         (Add_Return): If end label is not present, use sloc of last statement
13403         for generated return statement in procedure, for better gdb behavior
13404         on expanded code.
13405         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13406         object address nodes to ensure proper processing by routines like
13407         Insert_After*.
13408         (Expand_Call): Fix generation of validity check for parameter
13409         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13410         the allocation form parameter if the result subtype is constrained,
13411         except when the function has a controlling result.
13412         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13413         rather than Is_Controlled and Has_Controlled_Component, since we want to
13414         include class-wide result types in this treatment. Also test for a
13415         controlling result, since that also requires passing a finalization
13416         list.
13417         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13418         even when the result subtype is constrained, to handle calls involving
13419         controlling results.
13420         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13421         is now called even when the result subtype is constrained, to handle
13422         calls involving controlling results.
13423         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13424         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13425         now performs the test).
13426         (Make_Build_In_Place_Call_In_Object_Declaration):
13427         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13428         constrained, to handle calls involving controlling results.
13429         (Add_Return): Accomodate rewritten pattern from local raise to goto
13430         transformation, so that we still recognize an transfer statement
13431         and do the right thing here in that case.
13432         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13433         and end of subprogram code.
13434         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13435         support for primitives that are functions (without formals) with a
13436         controlling result.
13437         (Inherited_From_Formal): If the actual subtype has not generic parent
13438         type, it is not an actual for a formal derived type, and there is no
13439         operation to inherit from the formal.
13440
13441 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13442             Thomas Quinot  <quinot@adacore.com>
13443
13444         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13445         inserted cleanup code appropriately for GDB use.
13446         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13447         exception handler for Deep_Adjust or Deep_Finalize.
13448         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13449         Raise_From_Controlled_Operation is available, use a call to that
13450         subprogram instead of a plain "raise Program_Error" node to raise
13451         Program_Error if an exception is propagated from an Adjust or Finalize
13452         operation.
13453         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13454         appears in the optional statement list of a triggering alternative, the
13455         scope actions can be inserted directly there, and not in the list that
13456         includes the asynchronous select itself.
13457
13458 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13459             Robert Dewar  <dewar@adacore.com>
13460             Hristian Kirtchev  <kirtchev@adacore.com>
13461
13462         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13463         generated exception handler appropriately when debugging generated code.
13464         Deal properly with No_Exception_Propagation restriction mode.
13465         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13466         System.Address to System.Tasking.Task_Id when processing the result of
13467         the predefined primitive _disp_get_task_id.
13468         (Expand_N_Asynchronous_Select): Clarify comment.
13469         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13470         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13471         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13472         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13473         privals and for generated call to Complete_Entry_Body, for better gdb
13474         behavior.
13475         (Copy_Result_Type): Utility to construct a parameter and result profile
13476         for protected functions whose return type is an anonymous access to
13477         subprogram.
13478         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13479         call the above.
13480         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13481         point when the local-raise-to-goto transformation has taken place.
13482
13483 2007-06-06  Javier Miranda  <miranda@adacore.com>
13484             Nicolas Setton  <setton@adacore.com>
13485
13486         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13487         functionality when the backend is generating code.
13488         Otherwise any serious error
13489         reported by the backend calling the frontend routine Error_Msg
13490         changes the Compilation_Mode to Check_Semantics, disables the
13491         functionality of this routine and causes the generation of
13492         spureous additional errors.
13493
13494         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13495         debugging information now generated by the compiler for fat-pointer
13496         types.
13497         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13498         DWARF2/3.
13499         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13500
13501 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13502
13503         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13504         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13505         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13506         For a remote call to a function with a classwide return type, apply an
13507         E.4(18) check to the returned value.
13508         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13509         stream attributes of the designated type of an RACW, as they are not
13510         dispatching primitive operations.
13511
13512 2007-06-06  Geert Bosch  <bosch@adacore.com>
13513
13514         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13515         negative literal
13516         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13517         positive
13518         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13519         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13520         positive
13521         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13522
13523 2007-06-06  Javier Miranda  <miranda@adacore.com>
13524
13525         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13526         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13527
13528 2007-06-06  Javier Miranda  <miranda@adacore.com>
13529
13530         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13531         deallocation of class-wide interface objects.
13532         (Expand_Dispatching_Constructor_Call): Take into account that if the
13533         result of the dispatching constructor is an interface type, the
13534         function returns a class-wide interface type; otherwise the returned
13535         object would be actual. The frontend previously accepted returning
13536         interface types because Expand_Interface_Actuals silently performed
13537         the management of the returned type "as if" it were a class-wide
13538         interface type.
13539         (Expand_Dispatching_Constructor_Call): Replace call to
13540         Make_DT_Access_Action by direct call to Make_Function_Call.
13541
13542 2007-06-06  Robert Dewar  <dewar@adacore.com>
13543             Ed Schonberg  <schonberg@adacore.com>
13544
13545         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13546         compute masking constant, since we now set Esize properly to the
13547         underlying size.
13548         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13549         to match the alignment.
13550         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13551         packed arrays of 8 bits or less.
13552
13553         * freeze.adb (Freeze_Entity): When freezing the formals of a
13554         subprogram, freeze the designated type of a parameter of an access type
13555         only if it is an access parameter.
13556         Increase size of C convention enumeration object
13557         (Freeze_Entity, array type case): Make sure Esize value is properly
13558         adjusted for the alignment if it is known.
13559         (Freeze_Entity, array type case): When checking bit packed arrays for
13560         the size being incorrect, check RM_Size, not Esize.
13561         (Freeze_Record_Type): Check for bad discriminated record convention
13562         (In_Exp_Body): Return true if the body is generated for a subprogram
13563         renaming, either an attribute renaming or a renaming as body.
13564         (Check_Itype): If the designated type of an anonymous access component
13565         is a non-protected subprogram type, indicate that it is frozen, to
13566         prevent out-of-scope freeze node at some subsequent call.
13567         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13568         only if the subprogram is neither imported nor exported, as well as the
13569         NCA descriptor class if the subprogram is exported.
13570
13571 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13572             Arnaud Charlet  <charlet@adacore.com>
13573             Robert Dewar  <dewar@adacore.com>
13574             Gary Dismukes  <dismukes@adacore.com>
13575
13576         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13577         default initialization on an imported object, when there is no
13578         initialization call generated for it.
13579         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13580         restriction
13581
13582         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13583         Static_Elaboration_Desired.
13584         Remove pragma Thread_Body.
13585         Implement a new pragma No_Body
13586         Removes the Explicit_Overriding pragma
13587         Remove Optional_Overriding pragma
13588         (Prag): Deal with Universal_Aliasing.
13589         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13590         Pragma_CIL_Constructor): New names.
13591
13592         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13593         uses the equivalent aggregate of a type must be treated as an implicit
13594         initialization.
13595         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13596         has none of the other categories.
13597         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13598         to apply Import to an object renaming declaration.
13599
13600         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13601         from a C++ class should be declared as limited and that it will be
13602         considererd limited.
13603         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13604         should be declared as limited and that it will be considererd limited.
13605         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13606         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13607         (Analyze_Pragma): Deal with Universal_Aliasing.
13608         (Sig_Flags): Likewise.
13609         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13610         (Overflow_Checks_Unsuppressed): New flag.
13611         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13612         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13613         case of JVM or .NET targets, and compiling user code.
13614         Add debugging convenience routine rv
13615
13616 2007-06-06  Robert Dewar  <dewar@adacore.com>
13617
13618         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13619         are interface type.
13620         (Build_Elementary_Input_Call): For floating-point use right type in the
13621         absence of strange size or stream size clauses.
13622         (Build_Elementary_Write_Call): Same fix
13623         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13624         set to value that does not match base type size.
13625
13626 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13627
13628         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13629         object of a limited type can be initialized with a call to a function
13630         that returns in place. If the limited type has unknown discriminants,
13631         and the underlying type is a constrained composite type, build an actual
13632         subtype from the function call, as is done for private types.
13633         (Side_Effect_Free): An expression that is the renaming of an object or
13634         whose prefix is the renaming of a object, is not side-effect free
13635         because it may be assigned through the renaming and its value must be
13636         captured in a temporary.
13637         (Has_Controlled_Coextensions): New routine.
13638         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13639         as is done for other limited types.
13640         (Non_Limited_Designated_Type): new predicate.
13641         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13642         objects.
13643         Remove all handling of with_type clauses.
13644
13645         * par-ch10.adb: Remove all handling of with_type clauses.
13646
13647         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13648         checksum if the main source could not be parsed.
13649         (Loat_Unit): When processing a child unit, determine properly whether
13650         the parent unit is a renaming when the parent is itself a child unit.
13651         Remove handling of with_type clauses.
13652
13653         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13654         (Set_Is_Static_Coextension): New procedure.
13655         (Has_Local_Raise): New function
13656         (Set_Has_Local_Raise): New procedure
13657         (Renaming_Exception): New field
13658         (Has_Init_Expression): New flag
13659         (Delay_Finalize_Attach): Remove because flag is obsolete.
13660         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13661         Remove all handling of with_type clauses.
13662         (Exception_Junk): Can now be set in N_Block_Statement
13663
13664 2007-06-06  Vincent Celier  <celier@adacore.com>
13665             Robert Dewar  <dewar@adacore.com>
13666
13667         * frontend.adb (Frontend): Return immediately if the main source could
13668         not be parsed, because of preprocessing errors.
13669
13670         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13671         (Gnat1drv): Exit with errors if the main source could not be parsed,
13672         because of preprocessing errors.
13673         (Check_Rep_Info): New procedure
13674
13675 2007-06-06  Robert Dewar  <dewar@adacore.com>
13676
13677         * g-hesorg.ads, g-heasor.ads,
13678         g-busorg.ads, g-bubsor.ads: Update documentation
13679         GNAT.Heap/Bubble_Sort_G is now pure
13680
13681 2007-06-06  Robert Dewar  <dewar@adacore.com>
13682
13683         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13684
13685 2007-06-06  Robert Dewar  <dewar@adacore.com>
13686             Ed Schonberg  <schonberg@adacore.com>
13687
13688         * g-comlin.ads, g-comlin.adb:
13689         Add new warning for renaming of function return objects
13690
13691         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13692         (Tree_Read): Use size of object instead of type'object_size, since the
13693         latter is incorrect for packed array types.
13694         (Tree_Write): Same fix
13695
13696         * opt.ads: Add new warning for renaming of function return objects
13697         (Generating_Code): New boolean variable used to indicate that the
13698         frontend as finished its work and has called the backend to process
13699         the tree and generate the object file.
13700         (GCC_Version): Is now private
13701         (Static_Dispatch_Tables): New constant declaration.
13702         (Overflow_Checks_Unsuppressed): New flag.
13703         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13704         (List_Closure): New flag for gnatbind (-R)
13705         Zero_Formatting: New flag for gnatbind (-Z)
13706         (Special_Exception_Package_Used): New flag.
13707         (Warn_On_Unrepped_Components): New flag.
13708
13709         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13710         unit is a compilation unit, rather than relying on its scope, so that
13711         Standard can be renamed.
13712         (Analyze_Object_Renaming): Add new warning for renaming of function
13713         return objects.
13714         Also reject attempt to rename function return object in Ada 83 mode.
13715         (Attribute_Renaming): In case of tagged types, add the body of the
13716         generated function to the freezing actions of the type.
13717         (Find_Type): A protected type is visible right after the reserved word
13718         "is" is encountered in its type declaration. Set the entity and type
13719         rather than emitting an error message.
13720         (New_Scope): Properly propagate Discard_Names to inner scopes
13721         (Check_Nested_Access): New procedure.
13722         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13723         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13724
13725         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13726         Add new warning for renaming of function return objects
13727         (Check_References): Suppress warnings for objects whose type or
13728         base type has Warnings suppressed.
13729         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13730         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13731
13732 2007-06-06  Vincent Celier  <celier@adacore.com>
13733             Emmanuel Briot  <briot@adacore.com>
13734             Olivier Hainque  <hainque@adacore.com>
13735
13736         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13737         absolute value of Header.Block_Size when displaying the freed physical
13738         memory in traces.
13739         (Allocate): Compute Storage_Address using Integer_Address, not
13740         Storage_Offset, because the range of Storage_Offset may not be large
13741         enough.
13742         (Configure): New parameter Low_Level_Traces
13743         (Allocate, Deallocation, Free_Physically): Added low-level traces
13744         (Configure): new parameter Errors_To_Stdout.
13745         (Output_File): new subprogram
13746         (Deallocate, Dereference): Send error messages to the proper stream
13747         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13748         documented. Previous code would send it to the current output file
13749         defined in GNAT.IO, which might not be stdout
13750         (Is_Valid): Adjust comment to mention that a positive reply means that
13751         Header_Of may be used to retrieve the allocation header associated with
13752         the subprogram Storage address argument. Return False early if this
13753         address argument is misaligned.
13754
13755 2007-06-06  Vincent Celier  <celier@adacore.com>
13756
13757         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13758         switch -P
13759         (ASIS_Main): New global variable
13760         (Get_Closure): New procedure
13761         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13762         check, metric or pretty. Call Get_Closure in this case.
13763         (Check_Files): For GNAT LIST, check all sources of all projects when
13764         All_Projects is True.
13765         (GNATCmd): Accept -U for GNAT LIST
13766
13767 2007-06-06  Vincent Celier  <celier@adacore.com>
13768
13769         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13770         has been specified
13771         Correct error message when invocation of the linker fails
13772         Add explicit size clause for the C imported variables
13773         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13774         we expect char size.
13775         Read target parameters earlier, since this is needed to set
13776         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13777         targets.
13778
13779 2007-06-06  Vincent Celier  <celier@adacore.com>
13780
13781         * gnatls.adb:
13782         Add 3 spaces before the default project directory when displaying
13783         the project search path.
13784         Add new command line switch '-l' to display license information.
13785
13786 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13787
13788         * gmem.c: Add support for timestamps on memory operations.
13789
13790         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13791         operations (not used currently, just foundation for future
13792         enhancements). Add possibility to perform full dump of gmem.out file.
13793         (Print_Back_Traces): Declare accesses to root arrays constants since
13794         they aren't modified.
13795         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13796
13797 2007-06-06  Vincent Celier  <celier@adacore.com>
13798
13799         * gnatsym.adb: Update Copyright notice
13800         (Parse_Cmd_Line): Accept new switch -D
13801         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13802          file.
13803
13804         * prj.ads (Policy): New policy Direct
13805         (Yes_No_Unknown): New enumeration type
13806         (Project_Data): New component Libgnarl_Needed
13807
13808         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13809         use the untouched pathname casing.
13810         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13811         proper casing on non case-sensitive platforms like Windows.
13812         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13813         on all platforms, as it is not possible to know which one is allowed
13814         before processing the project files.
13815         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13816         specified when symbol policy is Direct. Check that when there is a
13817         symbol file defined (either by default or with attribute
13818         Library_Symbol_File) it is not the same as the reference symbol file.
13819         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13820         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13821         extending projects.
13822         (Record_Ada_Source): Record a source that has been locally removed in an
13823         imported project.
13824
13825         * symbols.ads (Policy): New policy Direct
13826
13827         * symbols-vms.adb (Initialize): Take new policy Direct in case
13828         statement
13829
13830 2007-06-06  Vincent Celier  <celier@adacore.com>
13831
13832         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13833         Correct obvious bug (return Dir; instead of return Directory;).
13834         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13835
13836 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13837
13838         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13839         they have UNIX line endings (LF only) even on Windows, and thus pass
13840         all GNAT style checks.
13841
13842 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13843
13844         * g-regpat.adb (Quote): Fix improper quoting of '.'
13845
13846 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13847
13848         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13849         default, set False on a per-runtime basis.
13850         (Need_Netdb_Buffer): New constant.
13851
13852         * g-socket.ads, g-socket.adb: Import new package
13853         GNAT.Sockets.Thin.Task_Safe_NetDB.
13854         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13855         binding to obtain proper message.
13856         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13857         Replace various occurrences of Arry (Arry'First)'Address with the
13858         equivalent Arry'Address (GNAT always follows implementation advice from
13859         13.3(14)).
13860         (Get_Host_By_Address, Get_Host_By_Name,
13861         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13862         instead, rely on platform-specific task safe netdb operations provided
13863         by g-socthi.
13864
13865         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13866         parameter Process_Blocking_IO.
13867         (Host_Error_Messages): Add stub body.
13868         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13869         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13870         Safe_Getservbyport): Move functions into new child package
13871         Task_Safe_NetDB.
13872         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13873         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13874         (In_Addr): Add alignment clause.
13875
13876 2007-06-06  Robert Dewar  <dewar@adacore.com>
13877
13878         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13879         Add note about symbolic traceback
13880
13881 2007-06-06  Pascal Obry  <obry@adacore.com>
13882
13883         * hostparm.ads (Normalized_CWD): Use the host directory separator
13884         instead of the hardcoded forward slash which is not the proper
13885         character on Windows for example.
13886         (Java_VM): Removed.
13887
13888 2007-06-06  Vincent Celier  <celier@adacore.com>
13889             Arnaud Charlet  <charlet@adacore.com>
13890
13891         * a-clrefi.adb, a-clrefi.ads: New files
13892
13893         * impunit.adb: Add s-os_lib in the list of user visible units.
13894         (Non_Imp_File_Names_95): Add a-clrefi to this list
13895         Remove obsolete run-time entries.
13896         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13897          "a-exetim" -- Ada.Execution_Time
13898          "a-extiti" -- Ada.Execution_Time.Timers
13899
13900         * mlib-prj.ads, mlib-prj.adb
13901         (Build_Library): Use untouched object dir and library dir. At the
13902         same time makes sure that the checks are done using the canonical
13903         form. Removes hard-coded directory separator and use the proper host
13904         one instead.
13905         (Process_Project): Do not look in object directory to check if libgnarl
13906         is needed for a library, if there is no object directory.
13907         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13908         linking.
13909         (Build_Library): When invoking gnatbind, use a response file if the
13910         total size of the arguments is too large.
13911
13912         * Makefile.rtl: (g-sttsne): New object file.
13913         Add entry for a-clrefi, s-utf_32, System.Exceptions
13914
13915         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13916         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13917         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13918         Change g-string to s-string, g-os_lib to s-os_lib
13919         Change all g-utf_32 references to s-utf_32
13920
13921 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13922             Olivier Hainque  <hainque@adacore.com>
13923
13924         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13925         LIB$STOP is called to raise an exception and the IP of the exception
13926         is the instruction right after the call.
13927         (__gnat_adjust_context_for_raise, AIX): Implement.
13928         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13929          adjust_context_for_raise before Raise_From_Signal_Hanler.
13930         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13931         siginfo is passed to the handler, necessary to let the zcx propagation
13932         engine unwind past it.
13933
13934 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13935
13936         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13937         on the ZCX support, using different sets of crtstuff objects than with
13938         GCC 3.4.
13939
13940 2007-06-06  Robert Dewar  <dewar@adacore.com>
13941
13942         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13943         spec from body
13944         (Layout_Type): Fix recomputation of size from alignment.
13945
13946 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13947             Javier Miranda  <miranda@adacore.com>
13948
13949         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13950         association in an instance.
13951         (Copy_Generic_Node): If the node is a string literal, no need to copy
13952         its descendants.
13953         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13954         grandparent of the entity.
13955         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13956         to simplify handling of formal interfaces that derive from other formal
13957         interfaces.
13958         (Instantiate_Subprogram_Body): The defining unit name of the body of
13959         the instance should be a defining identifier.
13960         (Install_Formal_Packages): make global to the package, for use in
13961         instantiations of child units.
13962         (Analyze_Package_Instantiation): Do not attempt to set information on an
13963         enclosing master of an entry when expansion is disabled.
13964         (Instantiate_Type): If the actual is a tagged synchronized type and the
13965         generic ancestor is an interface, create a generic actual for the
13966         corresponding record.
13967         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13968         declaration, to ensure that the interface list is processed correctly.
13969         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13970         its entities from visibiility as well.
13971         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13972         given with a named association, analyze the expression only, not the
13973         discriminant association itself.
13974         (Reset_Entity): If the analysis of a selected component is transformed
13975         into an expanded name in the prefix of a call with parameters, do not
13976         transform the original node into an expanded name, to prevent visibility
13977         errors in the case of nested generics.
13978         (Check_Private_View): For an array type, check whether the index types
13979         may need exchanging.
13980
13981 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13982             Vincent Celier  <celier@adacore.com>
13983
13984         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13985         since both are separated.
13986         Add support for imported CIL packages.
13987         Add further special handling of "value_type" for CIL.
13988         Add special handling of pragma Import for CIL.
13989
13990         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13991         standard output instead of standard error, except errors.
13992         (Absolute_Path): Use untouched casing for the parent directory.
13993         (Add_Library_Search_Dir): Use the untouched directory name.
13994         (Add_Source_Search_Dir): Idem.
13995         (Change_To_Object_Directory): Update output to use proper casing.
13996         (Create_Binder_Mapping_File): Use the untouched filename to set
13997         ALI_Name.
13998         (Gnatmake): Use untouched library and executable directory names.
13999         (Insert_Project_Sources): Use untouched filename for spec and body.
14000         (Is_In_Object_Directory): Use untouched object directory.
14001         (Mark_Directory): Idem.
14002         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14003         contains the non-canonical filename in all cases.
14004         (Change_To_Object_Directory): In verbose mode, display the name of the
14005         object directory we're changing to.
14006         (Compile_Sources): Make sure, when a project file is used, to compile
14007         the body of the unit, when there is one, even when only the spec is
14008         recorded in an ALI file.
14009         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14010         spec to the body.
14011         (Report_Compilation_Failed): New procedure
14012         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14013         procedures moved from the spec to the body.
14014         (Extract_Failure): Removed, not used
14015         Replace explicit raises of exception Bind_Failed and Link_Failed with
14016         calls to Make_Failed with the proper message.
14017         Replace explicit raises of exception Compilation_Failed with calls to
14018         procedure Report_Compilation_Failed.
14019         (Initialize): Create mapping files unconditionally when using project
14020         files.
14021
14022         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14023         Pragma_CIL_Constructor): New names.
14024
14025         * targparm.ads, targparm.adb
14026         (Compiler_System_Version): Removed, no longer used.
14027         (Get_Target_Parameters): Relax checks on system.ads validity. Add
14028         handling of two new system flags: JVM and CLI.
14029
14030 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14031             Arnaud Charlet  <charlet@adacore.com>
14032
14033         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14034         time, use the default s-interr body that provides interrupt support
14035         based on signals.
14036         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14037         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14038         g-soccon.ads, and s-taprop.adb for the marte run time.
14039         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14040         timers are supported on marte.
14041         (EH_MECHANISM for marte): Do not use ZCX.
14042         (THREADSLIB for marte): Use -lmarte.
14043         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14044         Add mlib-tgt-specific.o to gnatmake objects
14045         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14046         longer of MLib.Tgt.
14047         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14048         6, either kernel or rtp, use a specialized version of s-osinte.ads.
14049
14050 2007-06-06  Pascal Obry  <obry@adacore.com>
14051
14052         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14053
14054 2007-06-06  Vincent Celier  <celier@adacore.com>
14055
14056         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14057         separator, use instead the proper host directory separator.
14058         (Copy_ALI_Files): Make sure that an already existing ALI file in the
14059         ALI copy dir is writable, before doing the copy.
14060
14061         * mlib-utl.ads, mlib-utl.adb:
14062         (Gcc): If length of command line is too long, put the list of object
14063         files in a response file, if this is supported by the platform.
14064         (Ar): If invocation of the archive builder is allowed to be done in
14065         chunks and building it in one shot would go above an OS dependent
14066         limit on the number of characters on the command line, build the archive
14067         in chunks.
14068
14069 2007-06-06  Vincent Celier  <celier@adacore.com>
14070
14071         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14072         of specified object file is not equal to base name of source.
14073
14074 2007-06-06  Javier Miranda  <miranda@adacore.com>
14075             Hristian Kirtchev  <kirtchev@adacore.com>
14076             Ed Schonberg  <schonberg@adacore.com>
14077
14078         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14079         the full type declaration.
14080         (Analyze_Component_Declaration): Add local variable E to capture the
14081         initialization expression of the declaration. Replace the occurences of
14082         Expression (N) with E.
14083         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14084         limited interface object with a function call.
14085         (Array_Type_Declaration): If the declaration lacks subtype marks for
14086         indices, create a simple index list to prevent cascaded errors.
14087         (Is_Null_Extension): Ignore internal components created for secondary
14088         tags when checking whether a record extension is a null extension.
14089         (Check_Abstract_Interfaces): Add missing support for interface subtypes
14090         and generic formals.
14091         (Derived_Type_Declaration): Add missing support for interface subtypes
14092         and generic formals.
14093         (Analyze_Object_Declaration): If an initialization expression is
14094         present, traverse its subtree and mark all allocators as static
14095         coextensions.
14096         (Add_Interface_Tag_Component): When looking for components that may be
14097         secondary tags, ignore pragmas that can appear within a record
14098         declaration.
14099         (Check_Abstract_Overriding): an inherited function that dispatches on
14100         result does not need to be overriden if the controlling type is a null
14101         extension.
14102         (Mentions_T): Handle properly a 'class attribute in an anonymous access
14103         component declaration, when the prefix is an expanded name.
14104         (Inherit_Component): If the derivation is for a private extension,
14105         inherited components remain visible and their ekind should not be set
14106         to Void.
14107         (Find_Type_Of_Object): In the case of an access definition, always set
14108         Is_Local_Anonymous_Access. We were previously not marking the anonymous
14109         access type of a return object as a local anonymous type.
14110         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14111         range with character literal bounds.
14112         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14113         (Access_Subprogram_Declaration): Indicate that the type declaration
14114         depends on an incomplete type only if the incomplete type is declared
14115         in an open scope.
14116         (Analyze_Subtype_Declaration): Handle properly subtypes of
14117         synchronized types that are tagged, and that may appear as generic
14118         actuals.
14119         (Access_Subprogram_Declaration): An anonymous access to subprogram can
14120         appear as an access discriminant in a private type declaration.
14121         (Add_Interface_Tag_Components): Complete decoration of the component
14122         containing the tag of a secondary dispatch table and the component
14123         containing the offset to the base of the object (this latter component
14124         is only generated when the parent type has discriminants --as documented
14125         in this routine).
14126         (Inherit_Components): Use the new decoration of the tag components to
14127         improve the condition that avoids inheriting the components associated
14128         with secondary tags of the parent.
14129         (Build_Discriminanted_Subtype): Indicate to the backend that the
14130         size of record types associated with dispatch tables is known at
14131         compile time.
14132         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14133         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14134         to include task, protected, and synchronized interfaces as limited
14135         interfaces.
14136         (Process_Discriminants): Remove the setting of
14137         Is_Local_Anonymous_Access on the type of (anonymous) access
14138         discriminants of nonlimited types.
14139         (Analyze_Interface_Type_Declaration): Complete the decoration of the
14140         class-wide entity it is is already present. This situation occurs if
14141         the limited-view has been previously built.
14142         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14143         field.
14144         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14145         Related_Interface.
14146
14147 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14148
14149         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14150         of the type that specify the position of interface tags when the type
14151         inherits discriminated array components from the parent type.
14152         If a component is initialized with a box, check for the presence of a
14153         default expression in its declaration before using its default
14154         initialization procedure.
14155         (Resolve_Record_Aggregate): If a component is box-initialized, and the
14156         component type has a discriminants, create a partial aggregate for it
14157         by copying the discriminants of the component subtype.
14158         Reject attempt to initialize a discriminant with a box.
14159         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14160         associated with dispatch tables is known at compile time.
14161         (Get_Value): If an association in a record aggregate has a box
14162         association, and the corresponding record component has a default
14163         expression, always copy the default expression, even when the
14164         association has a single choice, in order to create a proper
14165         association for the expanded aggregate.
14166
14167 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14168             Robert Dewar  <dewar@adacore.com>
14169
14170         * par-ch12.adb (P_Generic_Associations): The source position of an
14171         Others association is that of the others keyword, not that of the token
14172         that follows the box.
14173         (P_Formal_Type_Definition): Handle formal access types that carry a
14174         not null indicator.
14175
14176         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14177         multiple identifier are present, save Scan_State before scanning the
14178         colon, to ensure that separate trees are constructed for each
14179         declaration.
14180         (P_Identifier_Declarations): For object declaration, set new flag
14181         Has_Init_Expression if initialization expression present.
14182         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14183         Improve NOT NULL error messages
14184
14185 2007-06-06  Robert Dewar  <dewar@adacore.com>
14186
14187         * par-ch4.adb: (P_Name): Recover from literal used as name
14188
14189 2007-06-06  Vincent Celier  <celier@adacore.com>
14190
14191         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14192         defaulted to False.
14193         In the "not" case, recursive call with Complemented set to True.
14194         Do not allow "or" or "and" operators when Complemented is True.
14195
14196 2007-06-06  Vincent Celier  <celier@adacore.com>
14197
14198         * prj.adb (Project_Empty): Gives default value for new component
14199         Libgnarl_Needed
14200
14201         * prj-attr.ads: Minor reformatting
14202
14203         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14204         directory using the untouched casing.
14205         (For_All_Source_Dirs): Idem.
14206
14207         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14208         directories specified with switches -aP.
14209         (Add_Search_Project_Directory): New procedure
14210         (Initialize_Project_Path): Put the directories in table
14211         Search_Directories in the project search path.
14212         (Initialize_Project_Path): For VMS, transform into canonical form the
14213         project path.
14214
14215 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14216
14217         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14218         true if configurable run-time or No_Run_Time is set.
14219         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14220         processing an unit which is not the one being compiled.
14221
14222 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14223
14224         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14225         Replace UC by Ada.UC
14226
14227         * s-bitops.adb: Get rid of System.Pure_Exceptions.
14228         Replace UC by Ada.UC
14229
14230 2007-06-06  Robert Dewar  <dewar@adacore.com>
14231
14232         * scng.adb: (Check_End_Of_Line): Deal with very long lines
14233
14234 2007-06-06  Robert Dewar  <dewar@adacore.com>
14235
14236         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14237         Remove no longer used nodes.
14238
14239 2007-06-06  Javier Miranda  <miranda@adacore.com>
14240             Ed Schonberg  <schonberg@adacore.com>
14241             Robert Dewar  <dewar@adacore.com>
14242
14243         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14244         on obsolescent withed unit in case of limited-withed units.
14245         (Analyze_Compilation_Unit): Add guard to code that removed an
14246         instantiation from visibility, to prevent compiler aborts when
14247         instantiation is abandoned early on.
14248         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14249         current unit being analyzed, and Distinguish local incomplete types
14250         from limited views of types declared elsewhere.
14251         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14252         to state that the class-wide entity is shared by the limited-view
14253         and the full-view.
14254         (Analyze_With_Clause): Improve placement of flag for case of
14255         unimplemented unit.
14256         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14257         manner similar to GNAT.Current_Exception. This is a violation of
14258         restriction (No_Exception_Propagation), and also inhibits the
14259         optimization of local raise to goto.
14260         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14261         and if so set Most_Recent_Exception_Used flag in Opt, and also check
14262         for violation of restriction No_Exception_Propagation.
14263
14264 2007-06-06  Javier Miranda  <miranda@adacore.com>
14265             Hristian Kirtchev  <kirtchev@adacore.com>
14266             Gary Dismukes  <dismukes@adacore.com>
14267
14268         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14269         use of entity Exception_Occurrence if it is not available in the
14270         target run-time.
14271
14272         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14273         concurrent types are declared within an Ada 2005 generic, build their
14274         corresponding record types since they are needed for overriding-related
14275         semantic checks.
14276         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14277         protected type does not implement a task interface or a nonlimited
14278         interface.
14279         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14280         type does not implement a protected interface or a nonlimited interface.
14281         (Single_Task_Declaration, Single_Protected_Declaration): use original
14282         entity for variable declaration, to ensure that debugging information
14283         is correcty generated.
14284         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14285         routines if the expander is not active.
14286         (Analyze_Task_Body): Mark all handlers to stop optimization of local
14287         raise, since special things happen for task exception handlers.
14288
14289         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14290         concurrent types declared within a generic.
14291         (Check_Dispatching_Operation): Do not emit warning about late interface
14292         operations in the context of an instance.
14293         (Check_Dispatching_Call): Remove restriction against calling a
14294         dispatching operation with a limited controlling result.
14295         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14296         Register_Interface_DT_Entry by calls to Register_Primitive.
14297         (Check_Dispatching_Formals): Handle properly a function with a
14298         controlling access result.
14299
14300 2007-06-06  Robert Dewar  <dewar@adacore.com>
14301             Arnaud Charlet  <charlet@adacore.com>
14302
14303         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14304         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14305         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14306         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14307         message when using a VM, since this attribute is not supported.
14308         (Analyze_Record_Representation_Clause): Give unrepped component warnings
14309
14310         * usage.adb: Add new warning for renaming of function return objects
14311         Indicate that -gnatwp and -gnatwP concern front-end inlining
14312         Add line for -gnatyg
14313         Add usage information for -gnatw.c/C
14314
14315 2007-06-06  Robert Dewar  <dewar@adacore.com>
14316             Ed Schonberg  <schonberg@adacore.com>
14317
14318         * sem_ch5.adb
14319         (Find_Var): Do not consider function call in test for infinite loop
14320         warning if warnings set off for function entity.
14321         (One_Bound): Do not create a temporary for a loop bound if it is a
14322         character literal.
14323         (Analyze_Assignment): Traverse the right hand side of an assignment and
14324         mark all allocators as static coextensions.
14325         (Analyze_Assignment): Exempt assignments involving a dispatching call
14326         to a function with a controlling access result from the check requiring
14327         the target to be class-wide.
14328
14329 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14330             Ed Schonberg  <schonberg@adacore.com>
14331             Robert Dewar  <dewar@adacore.com>
14332             Javier Miranda  <miranda@adacore.com>
14333
14334         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14335         chain of coextensions when an allocator serves as the root of such a
14336         chain.
14337         (Propagate_Coextensions): Remove the test for the root being an
14338         allocator.
14339         (Resolve_Allocator): Add condition to ensure that all future decoration
14340         occurs on an allocator node. Add processing and cleanup for static
14341         coextensions.
14342         (Valid_Conversion): If the operand type is the limited view of a
14343         class-wide type, use the non-limited view is available to determine
14344         legality of operation.
14345         (Ambiguous_Character): move to spec, for use elsewhere.
14346         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14347         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14348         character literals.
14349         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14350         Do_Division_Check flag explicitly.
14351         (Resolve_Actuals): If the actual is of a synchronized type, and the
14352         formal is of the corresponding record type, this is a call to a
14353         primitive operation of the type, that is declared outside of the type;
14354         the actual must be unchecked-converted to the type of the actual
14355         (Resolve_Call): Kill all current values for any subprogram call if
14356         flag Suppress_Value_Tracking_On_Call is set.
14357         (Resolve_Type_Conversion): Generate error message the the operand
14358         or target of interface conversions come from a limited view.
14359         (Check_Infinite_Recursion): Ignore generated calls
14360         (Check_Allocator_Discrim_Accessibility): New procedure for checking
14361         that an expression that constrains an access discriminant in an
14362         allocator does not denote an object with a deeper level than the
14363         allocator's access type.
14364         (Resolve_Allocator): In the case of an allocator initialized by an
14365         aggregate of a discriminated type, check that associations for any
14366         access discriminants satisfy accessibility requirements by calling
14367         Check_Allocator_Discrim_Accessibility.
14368         (Resolve_Equality_Op): Handle comparisons of anonymous access to
14369         subprogram types in the same fashion as other anonymous access types.
14370         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14371         message that is not a continuation message.
14372         (Resolve_Type_Conversion): Add missing support for conversion to
14373         interface type.
14374         (Resolve_Actuals): Introduce a transient scope around the call if an
14375         actual is a call to a function returning a limited type, because the
14376         resulting value must be finalized after the call.
14377         (Resolve_Actuals): If the call was given in prefix notations, check
14378         whether an implicit 'Access reference or implicit dereference must be
14379         added to make the actual conform to the controlling formal.
14380
14381 2007-06-06  Robert Dewar  <dewar@adacore.com>
14382             Javier Miranda  <miranda@adacore.com>
14383
14384         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14385         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14386         overriding of an inherited private subprogram now there is no need to
14387         inherit its dispatching slot and reduce the size of the dispatch table.
14388         Set_All_DT_Position now ensures that the same slot is now assigned to
14389         both entities. This is required to statically build the dispatch table.
14390         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14391         of calling Set_All_DT_Position to re-evaluate the position of the
14392         entries in the dispatch table. Such reevaluation is not desired if
14393         the tagged type is already frozen.
14394
14395 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14396             Gary Dismukes  <dismukes@adacore.com>
14397             Robert Dewar  <dewar@adacore.com>
14398             Javier Miranda  <miranda@adacore.com>
14399
14400         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14401         reference acts as an lvalue when the attribute name modifies the prefix
14402         (Is_Coextension_Root): New routine.
14403         (Mark_Static_Coextensions): New routine.
14404         (Type_Access_Level): Revise code for checking the level of the
14405         anonymous access type of a return object.
14406         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14407         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14408         retrieval of the corresponding controlling record type.
14409         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14410         concurrent types declared within a generic as well as class wide types.
14411         Emit a mode incompatibility error whenever a protected entry or routine
14412         override an interface routine whose first parameter is not of mode
14413         "out", "in out" or access to variable.
14414         (Overrides_Synchronized_Primitive): Rename to
14415         Find_Overridden_Synchronized_Primitive.
14416         (Collect_Interface_Components): New subprogram that collects all the
14417         components of a tagged record containing tags of secondary dispatch
14418         tables.
14419         (Add_Global_Declaration): New procedure
14420         (Abstract_Interface_List): Handle properly the case of a subtype of a
14421         private extension.
14422         (Type_Access_Level): In the case of a type whose parent scope is a
14423         return statement, call Type_Access_Level recursively on the enclosing
14424         function's result type to determine the level of the return object's
14425         type.
14426         (Build_Elaboration_Entity): Build name of elaboration entity from the
14427         scope chain of the entity, rather than the unit name of the file name.
14428         (Check_Nested_Access): New procedure.
14429         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14430         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14431         (Get_Renamed_Entity): Utility routine for performing common operation
14432         of chasing the Renamed_Entity field of an entity.
14433
14434 2007-06-06  Robert Dewar  <dewar@adacore.com>
14435
14436         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14437         elaboration model
14438         (Check_A_Call): Add check for entry call which was causing blowup
14439
14440 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14441
14442         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14443         special code on ia64-vms to handle major incompatibilities between the
14444         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14445         this routine with a very different set of arguments and expectations on
14446         the return value.
14447
14448 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14449
14450         * socket.c (__gnat_close_signalling_fd): New function.
14451         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14452         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14453         New supporting functions for task safe Netdb operations.
14454
14455 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14456             Olivier Hainque  <hainque@adacore.com>
14457
14458         * a-except-2005.ads, a-except-2005.adb
14459         (Raise_From_Controlled_Operation): New procedure in
14460         (private part of) Ada.Exceptions (standard runtime version). Used to
14461         provide informational exception message when Program_Error is raised as
14462         a result of an Adjust or Finalize operation propagating an exception.
14463         (Rmsg_28): Fix description for E.4(18) check.
14464         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14465         propagation starts, to let debuggers know about the event in a reliable
14466         fashion.
14467         Take the address of E and dereference to make sure it is homed on stack
14468         and prevent the stores from being deleted, necessary for proper
14469         debugger behavior on "break exception" hits.
14470         (Local_Raise): Moved to System.Exceptions
14471
14472         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14473         exception message from the current occurrence and raise Program_Error
14474         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14475
14476 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14477             Arnaud Charlet  <charlet@adacore.com>
14478
14479         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14480         lock, if needed.
14481
14482         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14483         priority associated to a lock.
14484
14485         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14486         assertion to take into account case of no abort restriction.
14487         (Initialize_Protection_Entries): Add initialization for the field
14488         New_Ceiling associated to the protected object.
14489         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14490         needed.
14491
14492         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14493         since this function needs to be set consistently with Update_Exception.
14494
14495         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14496         since this function needs to be set consistently with Update_Exception.
14497
14498         * s-taskin.ads: Update comments on
14499         Interrupt_Server_Blocked_On_Event_Flag.
14500         (Unbind_Handler): Fix handling of server_task wakeup
14501         (Server_Task): Set self's state so that Unbind_Handler can take
14502         appropriate actions.
14503         (Common_ATCB): Now use a constant from System.Parameters to determine
14504         the max size of the Task_Image field.
14505
14506         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14507         Initialize_Analyzer function.
14508         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14509         take into account case of no abort restriction.
14510         ([Vulnerable_]Complete_Master): Modify assertion.
14511
14512         * s-tataat.adb (Finalize): Use the nestable versions of
14513         Defer/Undefer_Abort.
14514
14515         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14516
14517         * s-tpobop.ads: Update comments.
14518
14519         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14520         of locking the object manually, to avoid inconsistencies between
14521         Lock/Unlock_Entry assertions.
14522
14523         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14524         terminating
14525         application and System.Parameters.No_Abort is True.
14526         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14527         (Unbind_Handler): Fix handling of server_task wakeup
14528         (Server_Task): Set self's state so that Unbind_Handler can take
14529         appropriate actions.
14530
14531 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14532
14533         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14534         declarations instead of an explicit null body, for conciseness.
14535
14536 2007-06-06  Robert Dewar  <dewar@adacore.com>
14537
14538         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14539         illegal aggregate and the type is still Any_Composite.
14540         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14541
14542 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14543
14544         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14545         to prevent subsequent expansion.
14546
14547 2007-06-06  Robert Dewar  <dewar@adacore.com>
14548
14549         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14550
14551 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14552             Robert Dewar  <dewar@adacore.com>
14553
14554         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14555         exceptions.
14556         (Write_Itype): Handle case of string literal subtype, which
14557         comes up in this context.
14558         (Update_Itype): when debugging expanded code, update sloc of itypes
14559         associated with defining_identifiers and ranges, for gdb use.
14560         (Sprint_Node_Actual): Add static keyword to object or exception
14561         declaration output if Is_Statically_Allocated is True.
14562         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14563         or task body, so that the tree carries the proper Sloc information for
14564         debugging use.
14565         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14566
14567 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14568
14569         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14570         compile time, to avoid dynamic memory allocation
14571         (Elaboration code): Only use dynamic memory allocation when needed.
14572
14573 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14574
14575         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14576         "Overflow_Guard".
14577         (Stack_Analyzer): Added field "Overflow_Guard"
14578         (Task_Result): Added field "Overflow_Guard".
14579         (Index_Str): New constant.
14580         (Task_Name_Str): New constant.
14581         (Actual_Size_Str): New constant.
14582         (Pattern_Array_Element_Size): New constant.
14583         (Get_Usage_Range): New subprogram.
14584         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14585         Now align the output.
14586         Added comments.
14587         (Initialize): Added value for Overflow_Guard.
14588         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14589         Update the value of the overflow guard according to the actual
14590         beginning of the pattern array.
14591         (Initialize_Analyzer): Added parameter Overflow_Guard.
14592         Take this parameter into accound when computing the max size.
14593         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14594         (Report_Result): Removed extra useless procedure.
14595         Updated call to Output_Result.
14596         Moved full computation of the Task_Result here.
14597
14598 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14599
14600         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14601         Thread_Blocking_IO, always True by default, set False on a per-runtime
14602         basis.
14603         Add Windows-specific constants
14604         Add new constant Need_Netdb_Buffer.
14605         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14606         not, whether to use getXXXbyYYY_r.
14607
14608         * gsocket.h: Add new constant Need_Netdb_Buffer.
14609         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14610         not, whether to use getXXXbyYYY_r.
14611
14612 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14613
14614         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14615         than their first call.
14616         Add type Dummy_Communication_Block used in the generation of the pre-
14617         defined dispatching primitive _disp_asynchronous_select.
14618         (Storage_Element): Put Pragma Universal_Aliasing on it.
14619
14620 2007-06-06  Vincent Celier  <celier@adacore.com>
14621
14622         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14623         function.
14624
14625         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14626         letter if it is not followed by a '/' or a '\'.
14627         (Windows): New Boolean function
14628
14629         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14630         Ada 2005.
14631         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14632         drive letter.
14633         (Containing_Directory): Raise Use_Error when the directory is a root
14634         directory.
14635         (Extension): When returning the result, use a conversion to Result_Type,
14636         not a qualification.
14637
14638 2007-06-06  Robert Dewar  <dewar@adacore.com>
14639
14640         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14641         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14642
14643         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14644         Warn_On_Non_Local_Exception to False, to turn off warnings for
14645         No_Exception_Propagation in ZFP runtime.
14646         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14647         back-ends.
14648         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14649
14650 2007-06-06  Vincent Celier  <celier@adacore.com>
14651
14652         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14653         switches -R and -Z
14654
14655         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14656         (Scan_Make_Switches): Recognize new switch -aP
14657
14658 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14659             Jose Ruiz  <ruiz@adacore.com>
14660
14661         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14662         VxWorks task descriptor in the Ada run time, call a C subprogram
14663         (__gnat_get_stack_info) that extracts the required information.
14664
14665         * sysdep.c: Back out temporary lynxos workaround.
14666         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14667         time the stack information associated to the currently executing task.
14668         Only VxWorks systems require this function.
14669
14670 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14671
14672         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14673         add the stack bias if the offset is computed from a frame address.
14674         (__gnat_backtrace): Adjust for above change.
14675
14676 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14677
14678         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14679         PE_Non_Transportable_Actual.
14680         (By_Descriptor_Last): New constant.
14681         (By_Copy_Return): Likewise.
14682
14683 2007-06-06  Vincent Celier  <celier@adacore.com>
14684
14685         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14686         is.
14687
14688         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14689         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14690         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14691         Add missing comment for /OPTIMIZE=SPACE
14692         Add entry for OPTIMIZE=SPACE
14693         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14694         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14695
14696 2007-06-06  Vincent Celier  <celier@adacore.com>
14697             Robert Dewar  <dewar@adacore.com>
14698
14699         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14700         -gnatw.C)
14701
14702         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14703         Document gnatbind switch -a
14704         (case Constructions): Document that variables declarations are allowed
14705         for previously declared variables.
14706         Fix external lib project example
14707         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14708         Indicate that "#if not X or Y then" is not allowed in input files to
14709         gnatprep.
14710         Document gnatw.x and gnatw.X warning flags
14711         Mention -Winline switch to activate warnings when back-end inlining is
14712         ineffective.
14713         Add gnatcheck rule descriptions
14714         Describe how to use the GNAT driver to call a tool on a closure.
14715         Describe how to run project-wide checks or metrics.
14716         Document gnatbind's -R option
14717         Updated to account for Ada 2005 support
14718
14719         * gnat_rm.texi (Case Construction): Allow variable declarations for
14720         previously declared variables.
14721         (Representation Clauses and Pragmas): Lift restriction on alignment
14722         clauses for record types.
14723         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14724         Document No_Exception_Propagation restriction
14725         Document No_Body pragma
14726         Updated to account for Ada 2005 support; corrected some typos
14727         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14728
14729         * gnat-style.texi: Make it clear that we never use mode IN for
14730         procedures or functions
14731
14732         * ug_words: Add entries for -gnatw.x and -gnatw.X
14733         Add entries for -gnatw.c/.C
14734
14735 2007-06-06  Pascal Obry  <obry@adacore.com>
14736             Vincent Celier  <celier@adacore.com>
14737
14738         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14739         dirs and library name.
14740         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14741         comments.
14742         (Build_Library): Idem.
14743         (Compile_Individual_Sources): Idem.
14744         (Compile_Link_With_Gnatmake): Idem.
14745         (Compile_Sources): Idem.
14746         (Get_Imported_Directories): Idem.
14747         (Link_Executables): Idem. Same change for the executable dir.
14748         (Check_Compilation_Needed): C_Source_Path new variable containing
14749         the canonical form of Source_Path to check against the source names
14750         in the dependency file.
14751         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14752         verbose mode, display the name of the object directory we're changing
14753         to.
14754         (Saved_Switches): New name of table X_Switches
14755         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14756         (Usage): New line for switch -aP
14757         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14758         testing if a directory should be added to the search path.
14759
14760 2007-06-06  Javier Miranda  <miranda@adacore.com>
14761
14762         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14763         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14764         declaration after freezing point of all its associated tagged types;
14765         otherwise such types are frozen too early.
14766
14767 2007-06-06  Robert Dewar  <dewar@adacore.com>
14768
14769         * a-reatim.adb: Documentation addition
14770
14771         * g-cgideb.adb: Minor code reorganization
14772
14773         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14774         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14775         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14776
14777         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14778         function.  Change name New_Scope to Push_Scope
14779         (Get_Debug_Flag_K): Remove unused obsolete function.
14780
14781         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14782         Push_Scope.
14783
14784         * makeusg.adb: Update Copyright notice
14785         Add line for switch -aP
14786
14787         * makeusg.adb: Fix wording of some usage messages
14788
14789         * s-assert.adb (Raise_Assert_Failure): Add call to
14790         Debug_Raise_Assert_Failure.
14791
14792         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14793         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14794         is restricted to 1).
14795
14796         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14797
14798         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14799         node location to No_Location when we're not debugging the expanded
14800         code.
14801
14802 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14803
14804         * misc.c (enumerate_modes): Consider log2_b to always be one.
14805
14806 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
14807
14808         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14809
14810 2007-05-02  Pascal Obry  <obry@adacore.com>
14811
14812         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14813         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14814         encoding support of Stream_IO.
14815         (Write_Unit): Idem.
14816
14817         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14818         filename and corresponding encoding to match the OS requirement.
14819         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14820         routine will fail on specific devices like CON: AUX: ...
14821
14822         PR ada/29856: Add missing braces
14823
14824 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14825
14826         PR ada/31660
14827         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14828
14829 2007-04-21  Jan Hubicka  <jh@suse.cz>
14830
14831         * misc.c (gnat_expand_body): Don't call target for destructors,
14832         avoid redundant check on syntax errors.
14833
14834 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14835
14836         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14837         instead of checking GIMPLE_STMT_P in chain_next.
14838
14839 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14840
14841         PR ada/31576
14842         * system-linux-alpha.ads: Disable constant condition warning for the
14843         Default_Bit_Order variable.
14844         * system-linux-s390.ads: Likewise.
14845         * system-linux-s390x.ads: Likewise.
14846         * system-linux-sparc.ads: Likewise.
14847
14848 2007-04-06  Javier Miranda  <miranda@adacore.com>
14849             Matt Heaney  <heaney@adacore.com>
14850             Robert Dewar  <dewar@adacore.com>
14851
14852         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14853         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14854         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14855         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14856         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14857         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14858         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14859         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14860         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14861         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14862         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14863         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14864         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14865         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14866         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14867         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14868         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14869         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14870         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14871         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14872         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14873         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14874         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14875         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14876         s-taprop-tru64.adb, s-taprop-irix.adb,
14877         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14878         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14879         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14880         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14881         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14882         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14883         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14884         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14885         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14886         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14887         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14888         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14889         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14890         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14891         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14892         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14893         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14894         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14895         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14896         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14897         access types.
14898         Update documentation.
14899         Minor rewording.
14900
14901 2007-04-06  Robert Dewar  <dewar@adacore.com>
14902
14903         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14904         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14905         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14906         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14907         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14908         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14909         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14910         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14911         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14912         system-hpux-ia64.ads, targparm.adb,
14913         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14914
14915         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14916         kept for bootstrap purposes only.
14917
14918 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14919
14920         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14921         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14922         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14923         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14924
14925 2007-04-06  Robert Dewar  <dewar@adacore.com>
14926
14927         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14928         (Local_Raise): New dummy procedure called when a raise is converted
14929         to a local goto. Used for debugger to detect that the exception
14930         is raised.
14931
14932         * debug.adb: Document new d.g flag (expand local raise statements to
14933         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14934
14935         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14936
14937         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14938         suppress warnings for unused handlers.
14939         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14940         warnings for raise statements not handled locally.
14941         (Get_RT_Exception_Entity): New function
14942         (Get_Local_Call_Entity): New function
14943         (Find_Local_Handler): New function
14944         (Warn_If_No_Propagation): New procedure
14945         (Expand_At_End_Handler): Call Make_Implicit_Handler
14946         (Expand_Exception_Handlers): Major additions to deal with local handlers
14947         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14948         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14949         for local raise
14950
14951         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14952         (Get_Local_Call_Entity): New function
14953
14954         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14955         of restrictions that the binder will never suggest adding.
14956
14957         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14958         to No_Elist.
14959
14960         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14961         be with'ed in the presence of pragma Restriction
14962         (No_Exception_Propagation).
14963
14964         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14965
14966         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14967         parameter, then the handler is not a suitable target for a local raise,
14968         and this is a violation of restriction No_Exception_Propagation.
14969         (Analyze_Handled_Statements): Analyze choice parameters in exception
14970         handlers before analyzing statement sequence (needed for proper
14971         detection of local raise statements).
14972         (Analyze_Raise_Statement): Reraise statement is a violation of the
14973         No_Exception_Propagation restriction.
14974
14975         * s-rident.ads: Add new restriction No_Exception_Propagation
14976
14977         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14978         function, like Make_Exception_Handler but sets Local_Raise_Statements
14979         to No_List.
14980         (Add_Unique_Serial_Number): Deal with case where this is called during
14981         processing of configuration pragmas.
14982
14983 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14984             Pat Rogers  <rogers@adacore.com>
14985             Pascal Obry  <obry@adacore.com>
14986
14987         * g-stsifd-sockets.adb: New file.
14988
14989         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14990         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14991         g-socthi-vms.adb: Move signalling
14992         fd management to a nested package, so that they can conveniently be
14993         moved to a subunit that is shared across Windows, VMS, and VxWorks
14994         (Ada implementation) or completed with imported bodies from socket.c
14995         (UNIX case).
14996         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14997         subprograms.
14998         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14999         the signalling file descriptor.
15000         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15001         signalling file descriptor.
15002         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15003         instead of creating a pair of sockets for signalling here.
15004
15005         * g-socthi.adb: Ditto.
15006         Set the runtime process to ignore SIGPIPEs on platforms that support
15007         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15008
15009         * g-socthi-mingw.adb: Ditto.
15010         (WS_Version): Use Windows 2.2.
15011         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15012
15013         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15014         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15015
15016         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15017         added GNAT byte swapping facility
15018         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15019
15020         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15021
15022         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15023         New subprograms.
15024         (__gnat_create_signalling_fds): New subprogram.
15025         Set the runtime process to ignore SIGPIPEs on platforms that support
15026         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15027
15028 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
15029             Vincent Celier  <celier@adacore.com>
15030
15031         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15032         New version of Ada.Calendar which supports the new upper bound of Ada
15033         time (2399-12-31 86_399.999999999).
15034         The following modifications have been made to the package:
15035          - New representation of time as count of nanoseconds since the start of
15036            Ada time (1901-1-1 0.0).
15037          - Target independent Split and Time_Of routines which service both
15038            Ada 95 and Ada 2005 code.
15039          - Target independent interface to the Ada 2005 children of Calendar.
15040          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15041          - Handling of non-leap centenial years.
15042          - Updated clock function.
15043          - Updated arithmetic and comparison operators.
15044
15045         * a-caldel.adb (To_Duration): Add call to target independent routine in
15046         Ada.Calendar to handle the conversion of time to duration.
15047
15048         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15049         (UTC Offset).
15050         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15051         set off to 0.
15052         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15053         targets do not have a natural time zone, GMT is used as a default.
15054         (__gnat_get_task_options): New.
15055
15056         * a-direct.adb (Modification_Time): Add with and use clauses for
15057         Ada.Calendar and Ada.
15058         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15059         since it is no longer needed.
15060         (Duration_To_Time): Removed.
15061         (OS_Time_To_Long_Integer): Removed.
15062         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15063         Formatting Time_Of routines which automatically handle time zones,
15064         buffer periods and leap seconds.
15065
15066         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15067         target independent routines in Ada.Calendar.
15068
15069         * a-calfor.ads, a-calfor.adb:
15070         Code cleanup and addition of validity checks in various routines.
15071         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15072         Ada.Calendar.
15073
15074         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15075         independent routine in Ada.Calendar.
15076
15077 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15078
15079         * adaint.c:
15080         (convert_addresses): Adjust prototype and dummy definition to expect an
15081          extra file_name argument.
15082
15083         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15084         filling the now expected file_name argument with the appropriate
15085         argv[0] expansion.
15086         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15087         (tracebk): Array of void * instead of char *, corresponding to what
15088          convert_addresses expects.
15089         (exename): New static global, to hold the executable file name to be
15090         used in all convert_addresses invocations.
15091         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15092         change.
15093         (__gnat_gmem_a2l_initialize): Resolve exename.
15094         (__gnat_convert_addresses): Use exename as the convert_addresses
15095         file_name argument.
15096
15097         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15098         "convert_addresses", now expecting a filename argument. Import the
15099         necessary entities to compute the filename to use and pass it to
15100         convert_addresses.
15101
15102 2007-04-06  Matt Gingell  <gingell@adacore.com>
15103
15104         * system-aix.ads: Back out previous change.
15105         (Functions_Return_By_DSP): Removed
15106
15107 2007-04-06  Pascal Obry  <obry@adacore.com>
15108
15109         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15110         or the monotonic used by Ada.Real_Time) to compute the sleep duration
15111         on Windows.
15112
15113 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15114
15115         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15116         function. Its value changes in different VxWorks versions, and it is
15117         now handled by the function __gnat_get_task_options.
15118
15119         * s-taprop-vxworks.adb (Create_Task): Call the function
15120         __gnat_get_task_options to get the required options for creating a task.
15121
15122 2007-04-06  Pascal Obry  <obry@adacore.com>
15123             Thomas Quinot  <quinot@adacore.com>
15124
15125         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15126         dealing with filename.
15127         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15128         filename from a standard string to a wide-string depending on the
15129         encoding value.
15130         (__gnat_freopen): Idem.
15131         (__gnat_current_time): New function (wrapper for time(3) standard C
15132         function).
15133
15134         * g-os_lib.ads (Current_Time): New function. Returns the current
15135         system time as an OS_Time value.
15136
15137         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15138         (Monotonic_Clock): Same.
15139
15140 2007-04-06  Quentin Ochem  <ochem@adacore.com>
15141
15142         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15143         not on a natural.
15144         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15145
15146 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15147
15148         * a-retide.adb: Add elaboration code to ensure that the tasking run
15149         time is initialized when using delay operations even when no task is
15150         created.
15151
15152 2007-04-06  Javier Miranda  <miranda@adacore.com>
15153
15154         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15155         component Num_Prim_Ops.
15156         (Set_Num_Prim_Ops): Removed.
15157         Remove all the assertions because all the routines of this
15158         package are inline always.
15159         (Get_Offset_Index): Add support to primary dispatch tables.
15160         Move the documentation about the dispatch table to a-tags.ads
15161         (Set_External_Tag): Removed
15162         (Inherit_TSD): Removed.
15163         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15164         moved to a-tags.ads
15165         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15166         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15167         of the TSD field "Table" because this field has been renamed to
15168         "Ifaces_Table".
15169         (Inherit_CPP_DT): Removed.
15170         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15171         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15172         declarations have been moved to a-tags.ads
15173         (Check_Size): Removed.
15174         (Expanded_Name): Updated to get access to the new field of TSD
15175         containing the address of the expanded name.
15176         (Get_Access_Level/Set_Access_Level): Removed.
15177         (Get_Predefined_Prim_Op_Address): Removed.
15178         (Set_Predefined_Prim_Op_Address): Removed.
15179         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15180         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15181         (Set_Expanded_Name): Removed.
15182         (Inherit_DT): Removed.
15183         (Inherit_CPP_DT): Removed.
15184         (Set_RC_Offset): Removed.
15185         (Set_TSD): Removed.
15186         (Base_Address): New function that displaces "this" to point to the base
15187         of the object (that is, to point to the primary tag of the object).
15188
15189 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15190             Javier Miranda  <miranda@adacore.com>
15191
15192         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15193         anonymous access component, do not create a master_id if type already
15194         has one, as may happen if the type is a subcomponent of a packed array
15195         type.
15196         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15197         Initialize_Tag): Remove code associated with the old CPP pragmas.
15198         CPP_Virtual and CPP_Vtable are no longer supported.
15199         (Build_Offset_To_Top_Internal): Add support for concurrent record types
15200         (Build_Offset_To_Top_Functions): Add support for concurrent record types
15201         (Freeze_Record_Type): Remove call to
15202         Init_Predefined_Interface_Primitives.
15203         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15204         code required to initialize the tags of the secondary dispatch tables.
15205         This leaves the algoritm more clear.
15206         (Init_Secondary_Tags): Add support for concurrent record types
15207         (Make_Predefined_Primitive_Specs): Code cleanup.
15208         (Predefined_Primitive_Bodies): Code cleanup.
15209         (Build_Master_Renaming): New local subprogram.
15210         (Expand_N_Full_Type_Declaration): Build the master_id associated with
15211         anonymous access to task type components.
15212         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15213         subtype indication are resolved during analysis, and must not be done
15214         here.
15215         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15216
15217 2007-04-06  Geert Bosch  <bosch@adacore.com>
15218             Ed Schonberg  <schonberg@adacore.com>
15219             Javier Miranda  <miranda@adacore.com>
15220             Bob Duff  <duff@adacore.com>
15221
15222         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15223         for conversion of a Float_Type'Truncation to integer.
15224
15225         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15226         check if a node is an attribute that can be handled directly by the
15227         back end.
15228         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15229         attributes that can be handled directly by the back end.
15230         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15231         use new predicate Is_Access_Protected_Subprogram_Type.
15232         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15233         and Unchecked_Union if it is generated as part of the default  Output
15234         procedure for a type with default discriminants.
15235         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15236         if we are compiling under restriction No_Dispatching_Calls.
15237         (Constrained): Use Underlying_Type, in case the type is private without
15238         discriminants, but the full type has discriminants.
15239         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15240         call to Build_Get_Access_Level.
15241         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15242         interface objects requires a call to the run-time subprogram that
15243         returns the base address of the object.
15244         (Valid_Conversion): Improve error message on illegal attempt to store
15245         an anonymous access to subprogram value into a record component.
15246
15247         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15248         null".
15249         (Simplify_Type_Conversion): New procedure that performs simplification
15250         of Int_Type (Float_Type'Truncation (X)).
15251         (Resolve_Type_Conversion): Call above procedure after resolving operand
15252         and before performing checks. This replaces the existing ineffective
15253         code in Exp_Ch4.
15254         (Set_String_Literal_Subtype): When creating the internal static lower
15255         bound subtype for a string literal, use a newly created copy of the
15256         subtree representing the lower bound.
15257         (Resolve_Call): Exclude build-in-place function calls from transient
15258         scope treatment. Update comments to describe this exception.
15259         (Resolve_Equality_Op): In case of dispatching call check violation of
15260         restriction No_Dispatching_Calls.
15261         (Resolve_Call): If the call returns an array, the context imposes the
15262         component type of the array, and the function has one non-defaulted
15263         parameter, rewrite the call as the indexing of a call with a single
15264         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15265         in prefix form.
15266         (Resolve_Actuals): If an actual is an allocator for an access parameter,
15267         the master of the created object is the innermost enclosing statement.
15268         (Remove_Conversions): For a binary operator, check if type of second
15269         formal is numeric, to check if an abstract interpretation is present
15270         in the case of exponentiation as well.
15271
15272 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15273             Bob Duff  <duff@adacore.com>
15274
15275         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15276         copying a parameter list in a call, set properly the First_Named_Formal
15277         and Next_Named_Formal fields in the new list and in the enclosing call.
15278         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15279         names, to ease typing in the debugger. Improve comments.
15280         (Watch_Node): New variable, intended to be set in the debugger.
15281         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15282         called when the watched node is created.
15283         (New_Node_Debugging_Output): Combined version of local procedures
15284         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15285         with a parameter so that conditional breakpoints like "if Node = 12345"
15286         work.
15287         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15288         Add Elist1 function
15289
15290 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15291             Ed Schonberg  <schonberg@adacore.com>
15292             Gary Dismukes  <dismukes@adacore.com>
15293
15294         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15295         required for a conversion between two access-to-unconstrained-array
15296         types.
15297         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15298         to discriminant constraints on discriminant objects. This rule must
15299         apply as well to discriminants of protected types in private components.
15300         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15301         object of a null-excluding access type then don't require the
15302         the object declaration to have an expression and don't emit a
15303         run-time check.
15304
15305 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15306             Eric Botcazou  <botcazou@adacore.com>
15307
15308         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15309         and made constant.
15310
15311         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15312         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15313         carry any.
15314
15315         * fe.h (Compiler_Abort): Add third parameter.
15316
15317         * misc.c (internal_error_function): Build third argument from current
15318         input location and pass it to Compiler_Abort.
15319
15320 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
15321
15322         * cstand.adb (Create_Standard): When the target's storage unit size is
15323         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15324         Standard_String.
15325
15326 2007-04-06  Nicolas Roche  <roche@adacore.com>
15327
15328         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15329         absolute path can have the following form: device:/a/b. In this case
15330         '/' should be inserted between the path and the filename.
15331
15332 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15333             Eric Botcazou  <botcazou@adacore.com>
15334
15335         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15336         VAR_DECL to a CONST_DECL we make for a public constant when we know the
15337         corresponding definition has created the so made visible variable.
15338         Handle anonymous access to protected subprogram.
15339         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15340         object with an address clause volatile.  Re-enable original fix.
15341         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15342         too.
15343         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15344         associated with either the Equivalent or Root type, instead of the
15345         naked type node.
15346         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15347         subtree for every field of a global record type.
15348         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15349         discriminants, invoke again variable_size on its newly computed sizes.
15350
15351 2007-04-06  Robert Dewar  <dewar@adacore.com>
15352             Thomas Quinot  <quinot@adacore.com>
15353             Ed Schonberg  <schonberg@adacore.com>
15354             Bob Duff  <duff@adacore.com>
15355
15356         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15357         (Next_Component_Or_Discriminant): New function and procedure
15358         (First_Index, First_Literal, Master_Id,
15359         Set_First_Index, Set_First_Literal, Set_Master_Id):
15360         Add missing Ekind assertions.
15361         (Is_Access_Protected_Subprogram_Type): New predicate.
15362         (Has_RACW): New entity flag, set on package entities to indicate that
15363         the package contains the declaration of a remote accecss-to-classwide
15364         type.
15365         (E_Return_Statement): This node type has the Finalization_Chain_Entity
15366         attribute, in case the result type has controlled parts.
15367         (Requires_Overriding): Add this new flag, because "requires
15368         overriding" is subtly different from "is abstract" (see AI-228).
15369         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15370         Is_Abstract_Type. Make sure these are called only when appropriate.
15371         (Has_Pragma_Unreferenced_Objects): New flag
15372
15373         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15374         class-wide, the tag of the right-hand side must be an exact match, not
15375         an ancestor of that of the object on left-hand side.
15376         (Move_Activation_Chain): New procedure to create the call to
15377         System.Tasking.Stages.Move_Activation_Chain.
15378         (Expand_N_Extended_Return_Statement): Generate code to call
15379         System.Finalization_Implementation.Move_Final_List at the end of a
15380         return statement if the function's result type has controlled parts.
15381         Move asserts to Build_In_Place_Formal.
15382         (Move_Final_List): New function to create the call statement.
15383         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15384         tagged type, replace generation of call to the run-time subprogram
15385         CW_Membership by call to Build_CW_Membership.
15386         (Expand_N_Return_Statement): Replace generation of call to the run-time
15387         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15388         (Expand_N_Simple_Function_Return): Replace generation of call to the
15389         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15390
15391         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15392         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15393         access to protected operations.
15394         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15395         master and chain actual parameters to a build-in-place function call
15396         involving tasks.
15397         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15398         statement.
15399         (Make_Build_In_Place_Call_In_Allocator,
15400         Make_Build_In_Place_Call_In_Anonymous_Context,
15401         Make_Build_In_Place_Call_In_Assignment,
15402         Make_Build_In_Place_Call_In_Object_Declaration): Call
15403         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15404         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15405         stubbed procedure with a null body, replace the call with a null
15406         statement without using the full inlining machinery, for efficiency
15407         and to avoid invalid values in source file table entries.
15408
15409         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15410         renamings of calls to build-in-place functions.
15411
15412         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15413         provides the functionality of RTE_Available to record components.
15414         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15415         to avoid undesired overloading.
15416         (Entity): New subprogram that returns the entity for the referened
15417         unit. If this unit has not been loaded, it returns Empty.
15418         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15419         Remove no longer used entities.
15420         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15421         (RE_Type_Specific_Data): New entity.
15422         (RE_Move_Any_Value): New entity.
15423         (RE_TA_A, RE_Get_Any_Type): New entities.
15424         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15425          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15426          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15427         (Entity): New subprogram that returns the entity for the referened
15428         unit. If this unit has not been loaded, it returns Empty.
15429         (RTE): Addition of a new formal that extends the search to the scopes
15430         of the record types found in the chain of the package.
15431
15432         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15433         "abstract subprograms must be visible" message, whether or not the type
15434         is an interface; that is, remove the special case for interface types.
15435         (Analyze_Function_Return): Remove error message "return of task objects
15436         is not yet implemented" because this is now implemented.
15437         (Create_Extra_Formals): Add the extra master and activation chain
15438         formals in case the result type has tasks.
15439         Remove error message "return of limited controlled objects is not yet
15440         implemented".
15441         (Create_Extra_Formals): Add the extra caller's finalization list formal
15442         in case the result type has controlled parts.
15443         (Process_Formals): In case of access formal types there is no need
15444         to continue with the analysis of the formals if we already notified
15445         errors.
15446         (Check_Overriding_Indicator): Add code to check overriding of predefined
15447         operators.
15448         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15449         flags for formals that do not require them,.
15450         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15451         hidden entity is use visible or directly visible.
15452         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15453         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15454         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15455         New_Overloaded_Entity): Split Is_Abstract flag into
15456         Is_Abstract_Subprogram and Is_Abstract_Type.
15457
15458         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15459         a return statement's finalization list to the caller's list, used for
15460         build-in-place functions with result type with controlled parts.
15461         Remove no longer used entities.
15462
15463         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15464         longer needed, because the full type is now limited, and therefore a
15465         pass-by-reference type.
15466         (Foreign_Task_Level): New constant.
15467
15468         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15469         move tasks from the activation chain belonging to a return statement to
15470         the one passed in by the caller, and update the master to the one
15471         passed in by the caller.
15472         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15473         of unactivated tasks, so we don't kill the ones that are being returned
15474         by a build-in-place function.
15475         (Create_Task): Ignore AI-280 for foreign threads.
15476
15477 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15478             Robert Dewar  <dewar@adacore.com>
15479             Bob Duff  <duff@adacore.com>
15480             Gary Dismukes  <dismukes@adacore.com>
15481
15482         * errout.adb (Unwind_Internal_Type): Use predicate
15483         Is_Access__Protected_Subprogram_Type.
15484
15485         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15486         (Freeze_Entity, packed array case): Do not override explicitly set
15487         alignment and size clauses.
15488         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15489         the enclosing subprogram is a child unit body that acts as a spec.
15490         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15491         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15492         Remove all code for DSP option
15493
15494         * layout.adb (Layout_Record_Type): Use First/
15495         Next_Component_Or_Discriminant
15496         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15497         to handle properly the anonymous access case.
15498
15499         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15500         for all access attributes, because overload resolution should work the
15501         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15502         causes the error message for the ambiguous "X'Access = Y'Access" and
15503         "X'Unrestricted_Access = Y'Access" and so forth to match.
15504         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15505         now that anonymous access to protected operations have their own kind.
15506         (Resolve_Attribute): In case of dispatching call check the violation of
15507         restriction No_Dispatching_Calls.
15508         (Check_Array_Type): Check new -gnatyA array index style option
15509
15510         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15511         attempt to derive from a synchronized tagged type.
15512         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15513         type, inherit the class-wide type already created, because it may
15514         already have been used in a self-referential anonymous access component.
15515         (Mentions_T): Recognize self-referential anonymous access components
15516         that use (a subtype of) the class-wide type of the enclosing type.
15517         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15518         Derived_Type for Prev formal on call to
15519         Check_Anonymous_Access_Components rather than Empty.
15520         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15521         a record extension in deciding whether to create a class-wide type,
15522         rather than just checking Tagged_Present.
15523         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15524         to stand-alone object declarations as well as component declarations.
15525         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15526         prevent accidental overwriting when enclosing package appears in
15527         a limited_with_clause.
15528         (Array_Type_Declaration): If the component type is an anonymous access,
15529         the associated_node for the itype is the type declaration itself.
15530         (Add_Interface_Tag_Components): Modified to support concurrent
15531         types with abstract interfaces.
15532         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15533         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15534         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15535         to complete the decoration of synchronized interface types. Add also
15536         a call to Check_Abstract_Interfaces to verify the ARM rules.
15537         (Derive_Interface_Subprograms): Modified to support concurrent types
15538         with abstract interfaces.
15539         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15540         mark, rather than delaying the full resolution depending on context.
15541         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15542         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15543         Array_Type_Declaration,Build_Derived_Record_Type,
15544         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15545         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15546         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15547         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15548         called only when appropriate.
15549         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15550         to private type.
15551         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15552         an itype reference for the anonymous designated subtype, to prevent
15553         scope anonmalies in gigi.
15554         (Build_Itype_Reference): New utility, to simplify construction of such
15555         references.
15556
15557 2007-04-06  Vincent Celier  <celier@adacore.com>
15558
15559         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15560         are suppressed, supply an initial dummy entry covering all possible
15561         source locations.
15562
15563         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15564         and start with only one, such as "-RTS=none".
15565         (Collect_Arguments): Do not check for sources outside of projects.
15566         Do not collect arguments if project is externally built.
15567         (Compile_Sources): Do nothing, not even check if the source is up to
15568         date, if its project is externally built.
15569         (Compile): When compiling a predefined source, add -gnatpg
15570         as the second switch, after -c.
15571         (Compile_Sources): Allow compilation of Annex J renames without -a
15572         (Is_In_Object_Directory): Check if the ALI file is in the object
15573         even if there is no project extension.
15574         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15575         gnatbind if the ALI file effectively exists.
15576         (Initialize): Add the directory where gnatmake is invoked in front of
15577         the path if it is invoked from a bin directory, even without directory
15578         information, so that the correct GNAT tools will be used when spawned
15579         without directory information.
15580
15581         * makeusg.adb: Change switch -S to -eS
15582         Add lines for new switches -we, -wn and -ws
15583         Add line for new switch -p
15584
15585         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15586         Treat_As_Error and there are warnings.
15587
15588         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15589         -gnatww Change gnatmake switch -S to -eS
15590         (Scan_Make_Switches): Code reorganisation. Process separately multi
15591         character switches and single character switches.
15592         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15593         False when switch is not recognized by gnatmake.
15594         (Scan_Make_Switches): Set Setup_Projects True when -p or
15595         --create-missing-dirs is specified.
15596
15597         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15598         renamings Calendar, Machine_Code, Unchecked_Conversion and
15599         Unchecked_Deallocation only when Renamings_Included is True.
15600
15601         * par.adb: Allow library units Calendar, Machine_Code,
15602         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15603         when -gnatg is not specified.
15604         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15605         there is no need to generate always a record_definition_node in case
15606         of synchronized interface types.
15607         (SIS_Entry_Active): Initialize global variable to False
15608         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15609         indicate cases where AI-447 says "not null" is legal.
15610
15611         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15612
15613         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15614         files with with several lines starting with the object fileb name.
15615         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15616         is specified.
15617         (Initialize): Add the directory where gprmake is invoked in front of the
15618         path, if it is invoked from a bin directory or with directory
15619         information, so that the correct GNAT tools will be used when invoked
15620         directly.
15621         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15622
15623         * vms_data.ads: Update switches/qualifiers
15624
15625 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15626             Thomas Quinot  <quinot@adacore.com>
15627
15628         * exp_aggr.adb:
15629         If the array component is a discriminated record, the array aggregate
15630         is non-static even if the component is given by an aggregate with
15631         static components.
15632         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15633         (Convert_Aggr_In_Allocator): If the allocator is for an access
15634         discriminant and the type is controlled. do not place on a finalization
15635         list at this point. The proper list will be determined from the
15636         enclosing object.
15637         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15638         initialize record controller if needed, before the components, to ensure
15639         that they are properly finalized.
15640         (Build_Record_Aggr_Code): For the case of an array component that has a
15641         corresponding array aggregate in the record aggregate, perform sliding
15642         if required.
15643
15644 2007-04-06  Javier Miranda  <miranda@adacore.com>
15645             Gary Dismukes  <dismukes@adacore.com>
15646             Ed Schonberg  <schonberg@adacore.com>
15647
15648         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15649         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15650
15651         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15652         accessibility on class-wide allocators if the allocator occurs at the
15653         same scope level as the allocator's type. The check is guaranteed to
15654         succeed in that case, even when the expression originates from a
15655         parameter of the containing subprogram.
15656         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15657         under No_Dispatching_Calls restriction. During the semantic analysis
15658         we already notified such violation.
15659         (Tagged_Membership): Constant folding. There is no need to check
15660         the tag at run-time if the type of the right operand is non
15661         class-wide abstract.
15662         Replace call to Is_Ancestor by call to Is_Parent
15663         to support concurrent types with interface types.
15664         (Expand_N_Allocator): Add an assertion associated with the generation
15665         of the master_id.
15666         (Expand_N_Slice): Do not enable range check to nodes associated
15667         with the frontend expansion of the dispatch table.
15668         (Is_Local_Access_Discriminant): Subsidiary function to
15669         Expand_N_Allocator.
15670         (Tagged_Membership): Replace generation of call to the run-time
15671         subprogram CW_Membership by call to Build_CW_Membership.
15672         (Expand_Allocator_Expression): Replace generation of call to the
15673         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15674
15675         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15676         initialize most the TSD components by means of an aggregate.
15677         Modify the declaration of the object containing the TSD
15678         because we now expand code that has a higher level of abstraction.
15679         The TSD has a discriminant containing the Inheritance Depth Level,
15680         value that is used in the membership test but also to fix the size
15681         of the table of ancestors.
15682         (Expand_Interface_Conversion): Insert function body at the closest place
15683         to the conversion expression, to prevent access-before-elaboration
15684         errors in the backend.
15685         Code improved to reduce the size of the dispatch table if
15686         compiling under restriction No_Dispatching_Calls plus code cleanup.
15687         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15688         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15689         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15690         code to return immediately if compiling under No_Dispatching_Calls
15691         restriction.
15692         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15693         CPP_Virtual and CPP_Vtable are no longer supported.
15694         (Expand_Interface_Conversion): Add missing support for interface type
15695         derivations.
15696         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15697         Is_Parent to support concurrent types with interfaces.
15698         (Init_Predefined_Interface_Primitives): Removed.
15699         (Make_Secondary_DT): Modified to support concurrent record types.
15700         (Set_All_DT_Position): Modified to support concurrent record types.
15701         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15702         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15703         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15704         with CW_Membership.
15705         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15706         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15707         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15708         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15709         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15710         (Expand_Dispatching_Call): Replace generation of call to the run-time
15711         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15712         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15713         Address.
15714         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15715         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15716         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15717         Build_Set_Prim_Op_Address.
15718         (Get_Remotely_Callable): Subprogram removed.
15719         (Init_Predefined_Interface_Primitives): Replace generation of call to
15720         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15721         Prims.
15722
15723         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15724         First (Parameter_Associations ()) with the call to First_Actual that
15725         returns an actual parameter expression for both named and positional
15726         associations.
15727
15728         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15729         check violation of restriction No_Dispatching_Calls.
15730         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15731         controlling argument.
15732
15733         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15734         First/Next_Component_Or_Discriminant
15735         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15736         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15737         specify Any_Limited_Interface, and this functionality is already
15738         provided by the function Has_Abstract_Interfaces.
15739         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15740         support concurrent types implementing interfaces.
15741         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15742         specify kind Any_Limited_Interface, and this functionality is already
15743         provided by the function Has_Abstract_Interfaces.
15744         (Remove_Side_Effects): replace Controlled_Type by
15745         CW_Or_Controlled_Type whenever the issue is related to
15746         using or not the secondary stack.
15747
15748         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15749         P_Interface_Type_Definition to fulfill the new interface (the formal
15750         Is_Synchronized is no longer required).
15751
15752         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15753         Update dependencies.
15754
15755         * exp_atag.ads, exp_atag.adb: New file
15756
15757 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15758             Bob Duff  <duff@adacore.com>
15759             Cyrille Comar  <comar@adacore.com>
15760
15761         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15762         anonymous, use finalization list of enclosing dynamic scope.
15763         (Expand_N_Package_Declaration): For a library package declaration
15764         without a corresponding body, generate RACW subprogram bodies in the
15765         spec (just as we do for the task activation call).
15766         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15767         Is_Abstract_Type. Make sure these are called only when appropriate.
15768         Remove all code for DSP option
15769         (CW_Or_Controlled_Type): new subprogram.
15770
15771 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15772             Ed Schonberg  <schonberg@adacore.com>
15773             Gary Dismukes  <dismukes@adacore.com>
15774
15775         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15776         parameter. If it is set to true, return a result capped according to
15777         the global upper bound for the index of an entry family.
15778         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15779         (Build_Find_Body_Index): Adjust for above change.
15780         (Entry_Index_Expression): Likewise.
15781         (Is_Potentially_Large_Family): New function extracted from...
15782         (Collect_Entry_Families): ...here. Call it to detect whether the family
15783         is potentially large.
15784         (Build_Entry_Count_Expression): If the family is potentially large, call
15785         Family_Size with 'Cap' set to true.
15786         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15787         a protected version of an operation declared in the private part of
15788         a protected object, because they may be invoked through a callback.
15789         (Set_Privals): If the type of a private component is an anonymous access
15790         type, do not create a new itype for each protected body.
15791         If the body of a protected operation creates
15792         controlled types (including allocators for class-widetypes), the
15793         body of the corresponding protected subprogram must include a
15794         finalization list.
15795         (Build_Activation_Chain_Entity): Build the chain entity for extended
15796         return statements.
15797         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15798         to determine whether operation overrides an inherited primitive.
15799         (Build_Wrapper_Spec): Add code to examine the parents while looking
15800         for a possible overriding candidate.
15801         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15802         hold an actual parameter value since its initialization is separated
15803         from the the declaration. Prevents errors on null-excluding access
15804         formals.
15805
15806 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15807             Pablo Oliveira  <oliveira@adacore.com>
15808
15809         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15810         Do an Unchecked_Conversion to handle the passage from the Underlying
15811         Type to the Base Type when calling Build_To_Any_Call and
15812         Build_From_Any_Call.
15813         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15814         E_Constant, depending upon Variable formal.
15815         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15816         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15817         parameter that requires an extra constrained parameter, declare
15818         temporary for actual as a variable, not a constant.
15819         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15820         the unit being compiled is the one that contains the stub type.
15821         Change primitive operation name for the RACW associated with a RAS
15822         from Call to _Call so it cannot clash with any legal identifier.
15823         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15824         Is_RAS.
15825         (Append_RACW_Bodies): New subprogram.
15826         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15827         Add_Receiving_Stubs_To_Declarations functions.
15828         When expanding a package body, this list correspond to the
15829         statements in the HSS at the end of the pacakge.
15830         When expanding a package spec, this list correspond to the
15831         spec declarations.
15832         (Add_Receiving_Stubs_To_Declarations): Append the function
15833         registering the receiving stubs at the end of the 'Stmts' list.
15834         (RCI_Package_Locator): Pass the new Version generic formal when
15835         instantiating a RCI_Locator package.
15836         (Build_From_Any_Function): To compute the High bound for an
15837         unconstrained array actual, we add the Low bound with the length.
15838         Thus we must convert the low bound and the length to an appropriate
15839         type before doing the sum.
15840         (Build_Subprogram_Receiving_Stubs, PolyORB):
15841          * Retrieve the extra formals parameters at the
15842            end of the parameter stream.
15843          * Use Move_Any_Value to write back out parameters
15844            after executing the request as it is more efficient
15845            than Copy_Any_Value.
15846          * Build the any containing Extra Formals with the
15847            appropriate typecode.
15848         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15849         empty Component_List.
15850         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15851         the tree the declaration for an object that serves as actual parameter
15852         in server-side stubs.
15853         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15854         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15855         Use Build_Actual_Object_Declaration to prepare the actuals.
15856         (Add_Parameter_To_NVList): Set the parameter mode to In for
15857         Extra Constrained Parameters.
15858         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15859         Extra Constrained parameters.
15860         (Build_To_Any_Function, Build_From_Any_Function,
15861         Built_TypeCode_Function): When Typ is implicit, call the correct
15862         function with the first not implicit parent type.
15863         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15864         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15865         typecode from the Etype. Therefore we retrieve the correct typecode
15866         with a call to Get_Any_Type.
15867         (Copy_Specification): Do controlling formal type substitution based on
15868         Is_Controlling_Formal flag, instead of caller-provided object type.
15869         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15870         a RACW primitive operation, we might get a subprogram declaration for an
15871         ancestor of the RACW designated type (not for the designated type
15872         itself), in the case where this operation is inherited. In this case we
15873         have no easy means of determining the original tagged type for which
15874         the primitive was declared, so instead we now rely on
15875         Copy_Specification to use the Is_Controlling_Formal flag to determine
15876         which formals require type substitution.
15877
15878 2007-04-06  Robert Dewar  <dewar@adacore.com>
15879             Ed Schonberg  <schonberg@adacore.com>
15880
15881         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15882         GNAT.Current_Exception are not allowed if pragma Restrictions
15883         (No_Exception_Propagation) is set and in any case make the associated
15884         handler unsuitable as a target for a local raise statement.
15885         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15886         run-time subprogram CW_Membership by call to Build_CW_Membership.
15887         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15888         by a function call, a temporary must be created before expanding the
15889         Constructor_Call itself, to prevent out-of-order elaboration in the
15890         back-end when stack checking is enabled..
15891
15892 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15893
15894         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15895         result are the bounds of the left operand, not the right.
15896
15897 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15898
15899         * exp_strm.adb
15900         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15901          discriminant defaults.
15902         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15903         (Make_Component_List_Attributes): Ditto.
15904
15905 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15906             Bob Duff  <duff@adacore.com>
15907
15908         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15909         an association with a box as providing a value even though the
15910         initialization procedure for the type is not available.
15911         (Resolve_Record_Aggregate): Check that a choice of an association with a
15912         box corresponds to a component of the type.
15913         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15914         Is_Abstract_Subprogram and Is_Abstract_Type.
15915
15916         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15917         assert.
15918
15919         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15920         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15921         called only when appropriate.
15922
15923 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15924
15925         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15926         associated vector view instead of all to the unsigned char view.
15927
15928         * g-altcon.adb (Generic_Conversions): New internal generic package,
15929         offering facilities for all the Vector/View conversion routines
15930         implemented by this unit.
15931         (To_View/To_Vector - all versions): Reimplemented in a systematic
15932         manner, using the internal Generic_Conversions facilities.
15933
15934 2007-04-06  Pascal Obry  <obry@adacore.com>
15935
15936         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15937         string.
15938         (Create): Free the source string before storing the new one.
15939
15940 2007-04-06  Vincent Celier  <celier@adacore.com>
15941
15942         * g-debpoo.adb (Validity): New package with a complete new
15943         implementation of subprograms Is_Valid and Set_Valid.
15944         (Is_Valid): Move to local package Validity
15945         (Set_Valid): Move to local package Validity
15946
15947 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15948             Pablo Oliveira  <oliveira@adacore.com>
15949
15950         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15951         we must ensure that there is enough place for the new data we are going
15952         to copy in.
15953
15954 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15955
15956         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15957         computation.
15958
15959 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15960             Vincent Celier  <celier@adacore.com>
15961
15962         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15963         (Stack_String): Add this String that contains the name of the Stack
15964         package in the project file.
15965         (Packages_To_Check_By_Stack): Add this list that contains the packages
15966         to be checked by gnatstack, which are the naming and the stack packages.
15967         (Check_Files): If no .ci files were specified for gnatstack we add all
15968         the .ci files belonging to the projects, including binder generated
15969         files.
15970         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15971         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15972         Add gnatstack to the list of commands that use project file related
15973         switches, and get the single attribute Switches from the stack package
15974         in a project file when calling gnatstack. Parse the -U flag for
15975         processing files belonging to all projects in the project tree.
15976         Remove all processing for command Setup
15977
15978         * prj-attr.adb: Add new package Stack with single attribute Switches
15979
15980         * vms_conv.ads (Command_Type): Add command Stack.
15981         Move to body declarations that are only used in the body: types Item_Id,
15982         Translation_Type, Item_Ptr, Item and its subtypes.
15983
15984         * vms_conv.adb: (Initialize): Add data for new command Stack.
15985         Add declarations moved from the spec: types Item_Id, Translation_Type,
15986         Item_Ptr, Item and its subtypes.
15987         (Cargs_Buffer): New table
15988         (Cargs): New Boolean global variable
15989         (Process_Buffer): New procedure to create arguments
15990         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15991          value of Cargs.
15992         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15993         COMPILE
15994         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15995         empty, for table Cargs_Buffer.
15996         (Initialize): Remove component Setup in Command_List
15997
15998 2007-04-06  Vincent Celier  <celier@adacore.com>
15999
16000         * gprep.adb (Process_Files.Process_One_File): Use full file name when
16001         issuing pragma Source_Reference.
16002
16003 2007-04-06  Emmanuel Briot  <briot@adacore.com>
16004
16005         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16006         [[:xdigit:]] character class.
16007         Also raise an exception when an invalid character class is used.
16008
16009 2007-04-06  Pascal Obry  <obry@adacore.com>
16010
16011         * i-cstrea.ads: (fopen): Add encoding parameter.
16012         (freopen): Idem.
16013         Change reference from a-sysdep.c to sysdep.c in comment.
16014         Update copyright notice.
16015         This set of patch add support for the encoding form parameter.
16016
16017         * mingw32.h (S2WSU): New macro to convert from a string to a
16018         wide-string using the UTF-8 encoding. The S2WS macro supports now only
16019         standard 8bits encoding.
16020         (WS2SU): As above but converting from wide-sring to string.
16021         This is needed as it is necessary to have access to both versions in the
16022         runtime for the form parameter encoding support.
16023         This set of patch add support for the encoding form parameter.
16024         (S2WS): Improve implementation to handle cases where the filename is not
16025         UTF-8 encoded. In this case we default to using the current code page
16026         for the conversion.
16027
16028         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16029         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16030         the constants defined in adaint.h.
16031         (fopen): Add encoding parameter.
16032         (freopen): Idem.
16033
16034         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16035         encoding. This is needed for the Reset routine (freopen low level-call).
16036
16037         * s-fileio.adb (Open): Decode encoding form parameter and set the
16038         corresponding encoding value into AFCB structure.
16039         (Reset): Pass the encoding value to freopen.
16040         (Close): Move the call to Lock_Task to the beginning of the procedure.
16041
16042 2007-04-06  Geert Bosch  <bosch@adacore.com>
16043             Robert Dewar  <dewar@adacore.com>
16044
16045         * i-fortra.ads: Add Double_Complex type.
16046
16047         * impunit.adb: (Is_Known_Unit): New function
16048         Add Gnat.Byte_Swapping
16049         Add GNAT.SHA1
16050         Add new Ada 2005 units
16051         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16052         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16053         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16054         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16055
16056         * impunit.ads (Is_Known_Unit): New function
16057
16058         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16059         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16060         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16061         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16062         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16063         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16064         New files.
16065
16066         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16067
16068         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16069
16070 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16071             Arnaud Charlet  <charlet@adacore.com>
16072
16073         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16074         __gnat_adjust_context_for_raise.
16075         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16076         implementation of floating point operations as native x86 targets.
16077         So the FPU should be initialized in the same way using finit. Fix
16078         floating point operations accuracy issues.
16079         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16080         member in struct sigaction, so as to avoid warning for incompatible
16081         pointer types.
16082
16083 2007-04-06 Serguei Rybin  <rybin@adacore.com>
16084
16085         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16086         switches from previously loaded tree
16087
16088 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16089
16090         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16091         cases where a given dependency has a body or not.
16092         (Write_With_File_Names): New subprogram, common code for the two cases
16093         above.
16094
16095 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16096             Javier Miranda  <miranda@adacore.com>
16097
16098         * lib-xref.ads, lib-xref.adb:
16099         Modify the loop that collects type references, to include interface
16100         types that the type implements. List each of these interfaces when
16101         building the entry for the type.
16102         (Generate_Definition): Initialize component Def and Typ of new entry
16103         in table Xrefs, to avoid to have these components unitialized.
16104         (Output_References): Split Is_Abstract flag into
16105         Is_Abstract_Subprogram and Is_Abstract_Type.
16106         (Generate_Reference): Add barrier to do not generate the warning
16107         associated with Ada 2005 entities with entities generated by the
16108         expander.
16109
16110 2007-04-06  Robert Dewar  <dewar@adacore.com>
16111             Arnaud Charlet  <charlet@adacore.com>
16112             Vincent Celier  <celier@adacore.com>
16113
16114         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16115         Update 'Exception Handling Control' chapter which was outdated.
16116         Minor fix to documentation of -gnatwq
16117         Remove section "Adapting the Run Time to a New C++ Compiler" because
16118         it is now obsolete.
16119         Add passage on need of -nostart-files in some non-ada-main cases.
16120         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16121         Update documentation about Interfacing with C++
16122         Add documentation for new gnatmake switch -p
16123         Add missing protocol part in URLs.
16124         Document -gnatyA
16125         Document pragma Compile_Time_Error
16126         Add documentation for Object_Size indicating that stand alone
16127         objects can have a larger size in some cases.
16128         Add node for GNAT.Byte_Swapping, GNAT.SHA1
16129         Update reference to the Ravenscar profile.
16130         Document pragma Unreferenced_Objects
16131
16132         * gnat-style.texi: Fix typo
16133
16134 2007-04-06  Vincent Celier  <celier@adacore.com>
16135
16136         * mlib.adb (Building_Library): Only output "building a library..." in
16137         verbose mode
16138
16139         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16140         files in verbose mode.
16141
16142         * mlib-utl.adb (Ar): Only output the first object files when not in
16143         verbose mode.
16144         (Gcc): Do not display all the object files if not in verbose mode, only
16145         the first one.
16146
16147 2007-04-06  Robert Dewar  <dewar@adacore.com>
16148
16149         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16150         it no longer destroys the contents of Name_Buffer or Name_Len and
16151         non-standard and invalid names are handled better.
16152         (Get_Decoded_Name_String): Improve performance by using
16153         Name_Has_No_Encodings flag in the name table.
16154         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16155         Used for debugging printouts.
16156
16157 2007-04-06  Robert Dewar  <dewar@adacore.com>
16158             Javier Miranda  <miranda@adacore.com>
16159             Bob Duff  <duff@adacore.com>
16160
16161         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16162         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16163         there is no need to generate always a record_definition_node in case
16164         of synchronized interface types.
16165         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16166         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16167         illegal in Ada 95, in cases where it is legal. Change the warnings to
16168         errors in other cases. Don't give the error unless the "not null"
16169         parses properly. Correct the source position at which the error occurs.
16170         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16171         P_Null_Exclusion, to suppress "not null" warnings.
16172         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16173         associated goto statements.
16174
16175         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16176         of END RECORD
16177
16178         * scans.ads (Type_Token_Location): New flag
16179
16180         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16181         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16182         P_Null_Exclusion, to suppress "not null" warnings.
16183
16184 2007-04-06  Robert Dewar  <dewar@adacore.com>
16185             Javier Miranda  <miranda@adacore.com>
16186             Bob Duff  <duff@adacore.com>
16187             Vincent Celier  <celier@adacore.com>
16188
16189         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16190         (Extensions_Allowed): No longer sets Ada_Version
16191         Entry for pragma Unreferenced_Objects
16192
16193         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16194         system.tasking if pragma priority used in a procedure
16195         (Analyze_Pragma, case Warning): Handle dot warning switches
16196         (Process_Compile_Time_Warning_Or_Error): New procedure
16197         (Analyze_Pragma): Add processing for Compile_Time_Error
16198         Add support for extra arguments External_Name and Link_Name.
16199         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16200         (Process_Import_Or_Interface): Add support for the use of pragma Import
16201         with tagged types.
16202         (Extensions_Allowed): No longer affects Ada_Version
16203         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16204         Is_Abstract_Type. Make sure these are called only when appropriate.
16205         Add processing for pragma Unreferenced_Objects
16206
16207         * snames.h, snames.ads, snames.adb: Add entry for pragma
16208         Compile_Time_Error
16209         Add new standard name Minimum_Binder_Options for new gprmake
16210         Add new standard names for gprmake: Archive_Suffix,
16211         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16212         Library_Support, Library_Version_Options,
16213         Shared_Library_Minimum_Options,
16214         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16215         Change Name_Call to Name_uCall so that it cannot clash with a legal
16216         subprogram name.
16217         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16218         Append C_Plus_Plus to convention identifiers as synonym for CPP
16219         Add new standard names Stack and Builder_Switches
16220         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16221         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16222         Run_Path_Option, Toolchain_Version.
16223         Entry for pragma Unreferenced_Objects
16224
16225         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16226         switches, without repetition of "eD". Make sure that last character of
16227         -gnatep= switch is not taken as -gnat switch character.
16228         Complete rewrite of circuit for handling saving compilation options
16229         Occasioned by need to support dot switchs for -gnatw, but cleans up
16230         things in general.
16231         -gnatX does not affect Ada_Version
16232         Include -gnatyA in -gnatg style switches
16233
16234         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16235         warnings on return objects.
16236         (Warn_On_Useless_Assignment): Exclude warnings on return objects
16237         (Set_Dot_Warning_Switch): New procedure
16238         (Check_References): Add missing case of test for
16239         Has_Pragma_Unreferenced_Objects
16240         (Output_Unreferenced_Messages): Implement effect of new pragma
16241         Unreferenced_Objects, remove special casing of limited controlled
16242         variables.
16243
16244 2007-04-06  Vincent Celier  <celier@adacore.com>
16245
16246         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16247         the default project path, initially done during elaboration of the
16248         package.
16249         If the prefix returned by Sdefault is null, get the prefix from a call
16250         to Executable_Prefix_Path.
16251         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16252         null.
16253
16254         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16255         canonical directory name to open the directory from which files are
16256         retrieved.
16257         (Record_Other_Sources): Idem.
16258         (Locate_Directory): Add the possibility to create automatically missing
16259         directories when Setup_Projects is True.
16260         Call Locate_Directory so that the directory will be created when
16261         Setup_Projects is True, for object dir, library dir, library ALI dir,
16262         library source copy dir and exec dir.
16263
16264         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16265         versions of GNAT.
16266
16267 2007-04-06  Robert Dewar  <dewar@adacore.com>
16268
16269         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16270         Use First/Next_Component_Or_Discriminant
16271         (Analyze_Record_Representation_Clause):
16272         Use First/Next_Component_Or_Discriminant
16273         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16274         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16275         definition if type is unconstrained.
16276         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16277         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16278         Is_Abstract_Subprogram and Is_Abstract_Type.
16279         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16280
16281         * repinfo.adb (List_Record_Info): Use First/
16282         Next_Component_Or_Discriminant.
16283
16284         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16285         New procedure.
16286
16287         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16288         Include -gnatyA in default switches
16289
16290         * opt.ads: (Warn_On_Non_Local_Exception): New flag
16291         (Warn_On_Reverse_Bit_Order): New flag
16292         (Extensions_Allowed): Update the documentation.
16293         (Warn_On_Questionable_Missing_Parens): Now on by default
16294
16295         * usage.adb: Add documentation of -gnatw.x/X switches
16296         Document new -gnatyA style switch
16297         -gnatq warnings are on by default
16298
16299 2007-04-06  Ed Falis  <falis@adacore.com>
16300
16301         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16302         full word is no longer compared twice.
16303
16304 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16305
16306         * sem_ch10.adb (Install_Limited_Context_Clauses.
16307         Expand_Limited_With_Clause): Use a new copy of selector name in the
16308         call to Make_With_Clause. This fixes the tree structure for ASIS
16309         purposes. Nothing is changed in the compiler behaviour.
16310         (Process_Body_Clauses): Handle properly use clauses whose prefix is
16311         a package renaming.
16312         (Install_Limited_With_Clauses): Do not install non-limited view when it
16313         is still incomplete.
16314
16315 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16316             Gary Dismukes  <dismukes@adacore.com>
16317
16318         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16319         when capturing size information, instead of base type, which for a
16320         formal array type will be the unconstrained type.
16321         (Analyze_Formal_Object_Declaration): Add check for illegal default
16322         expressions for a formal in object of a limited type.
16323         (Instantiate_Object): Ditto.
16324         (Check_Formal_Package_Instance): Skip entities that are formal objects,
16325         because they were defaulted in the formal package and no check applies
16326         to them.
16327         (Check_Formal_Package_Instance): Extend conformance check to other
16328         discrete types beyond Integer.
16329         (Process_Default): Copy directly the unmatched formal. A generic copy
16330         has already been performed in Analyze_Formal_Package.
16331         (Analyze_Associations): If a formal subprogram has no match, check for
16332         partial parametrization before looking for a default, to prevent
16333         spurious errors.
16334         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16335         not set the instantiation environment before analyzing the actuals.
16336         Fixes regression on 8515-003 with implementation of AI-133.
16337         Set_Instance_Env checks whether the generic unit is a predefined
16338         unit, in which case the instance must be analyzed with the latest Ada
16339         mode. This setting must take place after analysis of the actuals,
16340         because the actuals must be analyzed and frozen in the Ada mode extant
16341         outside of the current instantiation.
16342         (Save_Env, Restore_Env): Preserve and restore the configuration
16343         parameters so that predefined units can be compiled in the proper Ada
16344         mode.
16345         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16346         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16347         and Is_Abstract_Type.
16348         (Analyze_Formal_Package): For better error recovery, Add exception
16349         handler to catch Instantion_Error, which can be raised in
16350         Analyze_Associations
16351
16352 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16353             Bob Duff  <duff@adacore.com>
16354             Gary Dismukes  <dismukes@adacore.com>
16355
16356         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16357         prefix type is a discriminated subtype of the type of the formal.
16358         (Analyze_Allocator): Collect all coextensions regardless of the context.
16359         Whether they can be allocated statically is determined in exp_ch4.
16360         (Analyze_Selected_Component): If the prefix is a limited view and the
16361         non-limited view is available, use the non-limited one.
16362         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16363         therefore illegal), suggest a qualified expression rather than a type
16364         conversion, because a type conversion would be illegal in this context.
16365         (Anayze_Allocator): Trace recursively all nested allocators so that all
16366         coextensions are on the corresponding list for the root. Do no mark
16367         coextensions if the root allocator is within a declaration for a stack-
16368         allocated object, because the access discriminants will be allocated on
16369         the stack as well.
16370         (Analyze_Call): Remove restriction on calls to limited functions for the
16371         cases of generic actuals for formal objects, defaults for formal objects
16372         and defaults for record components.
16373         (Analyze_Allocator): Before analysis, chain coextensions on the proper
16374         element list. Their expansion is delayed until the enclosing allocator
16375         is processed and its finalization list constructed.
16376         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16377         for an operation with the given name among the primitive operations of
16378         the corresponding record type.
16379         (Analyze_Selected_Component): If the prefix is a task type that
16380         implements an interface, and there is no entry with the given name,
16381         check whether there is another primitive operation (e.g. a function)
16382         with that name.
16383         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16384         properly the indexing of a function call written in prefix form, where
16385         the function returns an array type, and all parameters of the function
16386         except the first have defaults.
16387         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16388         the original operands, rather than relocating them, for efficiency and
16389         to work properly when an operand is overloaded.
16390         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16391         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16392         (Analyze_Selected_Component): If the prefix is a private extension, only
16393         scan the visible components, not those of the full view.
16394         (Try_Primitive_Operation): If the operation is a procedure, collect all
16395         possible interpretations, as for a function, because in the presence of
16396         classwide parameters several primitive operations of the type can match
16397         the given arguments.
16398
16399 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16400             Robert Dewar  <dewar@adacore.com>
16401
16402         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16403         tag-indeterminate call to an abstract function, when the left-hand side
16404         is not classwide.
16405         (Analyze_Loop_Statement): Improve detection of infinite loops
16406
16407 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16408             Thomas Quinot  <quinot@adacore.com>
16409
16410         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16411         out of Analyze_Package_Declaration, because processing must be applied
16412         to package bodies as well, for deferred constants completed by pragmas.
16413         (Analyze_Package_Declaration): When the package declaration being
16414         analyzed does not require an explicit body, call Check_Completion.
16415         (May_Need_Implicit_Body): An implicit body is required when a package
16416         spec contains the declaration of a remote access-to-classwide type.
16417         (Analyze_Package_Body): If the package contains RACWs, append the
16418         pending subprogram bodies generated by exp_dist at the end of the body.
16419         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16420         Is_Abstract_Subprogram and Is_Abstract_Type.
16421         (Preserve_Full_Attributes): The full entity list is not an attribute
16422         that must be preserved from full to partial view.
16423
16424         * sem_dist.adb (Add_RAS_Dereference_TSS):
16425         Change primitive name to _Call so it cannot clash with any legal
16426         identifier, and be special-cased in Check_Completion.
16427         Mark the full view of the designated type for the RACW associated with
16428         a RAS as Comes_From_Source to get proper view switching when installing
16429         private declarations.
16430         Provite a placeholder nested package body along with the nested spec
16431         to have a place for Append_RACW_Bodies to generate the calling stubs
16432         and stream attributes.
16433
16434 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16435             Robert Dewar  <dewar@adacore.com>
16436
16437         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16438         that is a limited view, check the non-limited view if available.
16439         (Undefined): Refine error message for missing with of Text_IO
16440         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16441         to distinguish real missing with cases.
16442         Fix format of all missing with messages
16443         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16444         renaming as body when renamed entity is abstract.
16445
16446 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16447             Javier Miranda  <miranda@adacore.com>
16448
16449         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16450         predicate recursive, to handle complex expressions on literals whose
16451         spurious ambiguity comes from the abstract interpretation of some
16452         subexpression.
16453         (Interface_Present_In_Ancestor): Add support to concurrent record
16454         types.
16455         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16456         Is_Abstract_Subprogram and Is_Abstract_Type.
16457
16458 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16459             Javier Miranda  <miranda@adacore.com>
16460
16461         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16462         dereference of a local object R created as a reference to another
16463         object O, use the access level of O.
16464         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16465         rather than local Same_Formal_Type, to check whether protected operation
16466         overrides an inherited one.
16467         (Same_Formal_Type): New predicate, used when matching signatures of
16468         overriding synchronized operations, to handle the case when a formal
16469         has a type that is a generic actual.
16470         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16471         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16472         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16473         syntactic ambiguities involving indexing of function calls that return
16474         arrays.
16475         (Abstract_Interface_List): New subprogram that returns the list of
16476         abstract interfaces associated with a concurrent type or a
16477         concurrent record type.
16478         (Interface_Present_In_Parent): New subprogram used to check if a
16479         given type or some of its parents implement a given interface.
16480         (Collect_Abstract_Interfaces): Add support for concurrent types
16481         with interface types.
16482         (Has_Abstract_Interfaces): Add support for concurrent types with
16483         interface types.
16484         (Is_Parent): New subprogram that determines whether E1 is a parent
16485         of E2. For a concurrent type its parent is the first element of its
16486         list of interface types; for other types this function provides the
16487         same result than Is_Ancestor.
16488         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16489         (Collect_Synchronized_Interfaces): Removed because the subprogram
16490         Collect_Abstract_Interfaces provides this functionality.
16491         (Collect_Abstract_Interfaces): Minor update to give support to
16492         concurrent types and thus avoid undesired code duplication.
16493         (Get_Subprogram_Entity): Handle entry calls.
16494         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16495         entry calls.
16496         (Enter_Name): Do not give -gnatwh hiding warning for record component
16497         entities, they never result in hiding.
16498
16499 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16500             Robert Dewar  <dewar@adacore.com>
16501
16502         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16503         to chain nested components that are allocators for access discriminants
16504         of the enclosing object.
16505         Add N_Push and N_Pop nodes
16506         New field Exception_Label added
16507         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16508         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16509         (Is_Coextension): New flag for allocators, to mark allocators that
16510         correspond to access discriminants of dynamically allocated objects.
16511         (N_Block_Statement): Document the fact that the corresponding entity
16512         can be an E_Return_Statement.
16513         (Is_Coextension): New flag for allocators.
16514         Remove all code for DSP option
16515
16516         * sprint.ads, sprint.adb: Display basic information for class_wide
16517         subtypes. Add handling of N_Push and N_Pop nodes
16518
16519 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16520
16521         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16522         before propagating exception.
16523
16524 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16525
16526         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16527         an address always within the call instruction from a return address.
16528
16529 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16530             Eric Botcazou  <botcazou@adacore.com>
16531
16532         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16533         expression with a COMPOUND_EXPR including the call instead of emitting
16534         the call directly here.
16535         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16536         high bound is constant and the slice is empty.  Tidy.
16537         (tree_transform, case N_Op_Not): Handle properly the case where the
16538         operation applies to a private type whose full view is a modular type.
16539         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16540         Address_Clause, use the associated Expression as the GNAT tree
16541         representing the choice value to ensure the corresponding GCC tree is
16542         of the proper kind.
16543         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16544         instead of just the operands, as the base GCC stabilize_reference does.
16545         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16546         requested; otherwise fail.
16547         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16548
16549 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16550
16551         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16552         implementation of UI_Div.
16553         (UI_Div): Reimplement as a call to UI_Div_Rem.
16554         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16555         remainder, avoiding the cost of a multiplication and a subtraction.
16556         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16557         provides both quotient and remainder in a single computation.
16558         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16559         functions for uint.
16560         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16561         is undefined if the given n is not inversible.
16562
16563 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16564
16565         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16566         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16567         opcodes.
16568
16569 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16570             Olivier Hainque  <hainque@adacore.com>
16571
16572         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16573         when updating the contents of the old pointer to an unconstrained array.
16574         (end_subprog_body): Set error_gnat_node to Empty.
16575         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16576         (unchecked_convert): For subtype to base type conversions, require that
16577         the source be a subtype if it is an integer type.
16578         (builtin_decls): New global, vector of available builtin functions.
16579         (gnat_pushdecl): Add global builtin function declaration nodes to the
16580         builtin_decls list.
16581         (gnat_install_builtins): Adjust comments.
16582         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16583         calling gnat_pushdecl, so that it knows when it handed a builtin
16584         function declaration node.
16585         (builtin_decl_for): Search the builtin_decls list.
16586
16587 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16588
16589         * s-stchop-vxworks.adb:
16590         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16591
16592 2007-04-06  Robert Dewar  <dewar@adacore.com>
16593             Arnaud Charlet  <charlet@adacore.com>
16594
16595         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16596
16597         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16598         of files
16599         Add mention of -Sev (set initialize_scalars option from environment
16600         variable at run time) in gnatbind usage message.
16601
16602         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16603
16604         * fname-uf.ads: Minor comment fix
16605
16606         * osint.ads: Change pragma Elaborate to Elaborate_All
16607
16608         * par-load.adb: Add documentation.
16609
16610         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16611
16612         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16613
16614         * s-secsta.ads: Extra comments
16615
16616         * s-soflin.ads: Minor comment fixes
16617
16618         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16619
16620         * s-wchcon.ads: Minor comment addition
16621
16622         * treepr.adb: Minor change in message
16623         (Print_Name,Print_Node): Make these debug printouts more robust: print
16624         "no such..." instead of crashing on bad input.
16625
16626 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
16627
16628         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16629         instead of gnat_signed_or_unsigned_type.
16630         * utils.c (gnat_signed_or_unsigned_type): Remove.
16631         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16632         * gigi.h (gnat_signed_or_unsigned_type): Remove
16633
16634 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16635
16636         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16637         fold with the result of buildN.
16638         * decl.c (gnat_to_gnu_entity): Likewise.
16639         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16640         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16641         Likewise.
16642         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16643         nonbinary_modular_operation, build_binary_op, build_unary_op,
16644         build_cond_expr): Likewise.
16645
16646         * utils.c (convert): Use fold_build1 when casting values to void.
16647         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16648         fold_convert instead of convert when appropriate.
16649
16650 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16651
16652         * Make-lang.in: Add install-pdf target as copied from
16653         automake v1.10 rules.
16654
16655 2007-02-28  Andreas Schwab  <schwab@suse.de>
16656
16657         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16658         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16659         (doc/gnat-style.info): Likewise.
16660
16661 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16662
16663         * gnat-style.texi: Standardize title page.
16664         * gnat_rm.texi: Likewise.
16665         * gnat_ugn.texi: Likewise.
16666
16667 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16668
16669         * decl.c (annotate_value): Adjust for refactoring of tree_map
16670         hierarchy.
16671
16672 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16673
16674         * decl.c (annotate_value): Adjust for refactoring of tree_map
16675         hierarchy.
16676
16677 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16678
16679         PR ada/18819
16680         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16681         untagged derived type, add hidden components to keep discriminant
16682         layout consistent, when a given discriminant of the derived type
16683         constraints several discriminants of the parent type.
16684
16685 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16686             Sandra Loosemore  <sandra@codesourcery.com>
16687
16688         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16689         build the call expression.
16690         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16691         * utils.c (max_size) <tcc_exceptional>: Delete.
16692         <tcc_vl_exp>: New case.
16693         <tcc_expression>: Delete CALL_EXPR subcase.
16694         (build_global_cdtor): Use build_call_nary instead of build3.
16695         * utils2.c (build_call_1_expr): Likewise.
16696         (build_call_2_expr): Likewise.
16697         (build_call_0_expr): Likewise.
16698         (build_call_alloc_dealloc): Likewise.
16699
16700 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16701
16702         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16703         get_action_description_for): Replace _Unwind_Word with _uleb128_t
16704         and _Unwind_SWord with _sleb128_t.
16705
16706 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16707
16708         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16709         * decl.c: Include gt-ada-decl.h.
16710         (annotate_value_cache): New.
16711         (annotate_value): Use it instead of TREE_COMPLEXITY.
16712
16713 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16714
16715         * misc.c, utils2.c: Fix comment typos.
16716
16717 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16718
16719         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16720         TREE_CONSTANT_OVERFLOW.
16721         (allocatable_size_p, annotate_value): Likewise.
16722         * trans.c (gnat_to_gnu): Likewise.
16723         * utils.c (unchecked_convert): Likewise.
16724         * utils2.c (build_simple_component_ref): Likewise.
16725
16726 2007-01-23  Richard Guenther  <rguenther@suse.de>
16727
16728         PR bootstrap/30541
16729         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16730         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16731         (gnatboot3): Likewise.
16732         (GNATBIND): Do not define.
16733         * Makefile.in (GNATBIND): Do not define.
16734
16735 2007-01-08  Richard Guenther  <rguenther@suse.de>
16736
16737         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16738         * trans.c (gnat_to_gnu): Likewise.
16739
16740 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16741
16742         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16743         * adaint.c: Likewise.
16744
16745 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16746
16747         Merge from gimple-tuples-branch:
16748         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16749
16750         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16751         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16752         GIMPLE_MODIFY_STMT.
16753
16754 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16755
16756         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16757         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16758         Fix typos.
16759
16760 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16761
16762         PR ada/27936
16763         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16764         if the initializer takes into account the padding.
16765
16766 2006-11-11  Richard Guenther  <rguenther@suse.de>
16767
16768         * trans.c (maybe_stabilize_reference): Remove handling of
16769         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16770
16771 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16772
16773         PR ada/29707
16774         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16775         (To_Target_Priority): New function.
16776
16777 2006-10-31  Robert Dewar  <dewar@adacore.com>
16778
16779         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16780         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16781         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16782         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16783         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16784         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16785         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16786         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16787         a-szbzha.adb: Minor reformatting. Fix header.
16788
16789         * a-numaux-x86.adb: Add parentheses for use of unary minus
16790         * a-ngcefu.adb: Supply missing parentheses for unary minus
16791         * a-ngcoty.adb: Add parens for use of unary minus
16792         * a-ngelfu.adb: Add missing parens for unary minus
16793         * a-tifiio.adb: Add parentheses for uses of unary minus
16794
16795 2006-10-31  Robert Dewar  <dewar@adacore.com>
16796             Bob Duff  <duff@adacore.com>
16797             Ed Schonberg  <schonberg@adacore.com>
16798
16799         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16800         with multiplying operator.
16801         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16802         pointer whether the context expects "any real type".
16803         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16804         universal_fixed "*" and "/" operators when they are used in a context
16805         that expects any real type. Also set the type of the node to
16806         Universal_Real in this case, because downstream processing requires it
16807         (mainly static expression evaluation).
16808         Reword some continuation messages
16809         Add some \\ sequences to continuation messages
16810         (Resolve_Call): Refine infinite recursion case. The test has been
16811         sharpened to eliminate some false positives.
16812         Check for Current_Task usage now includes entry barrier, and is now a
16813         warning, not an error.
16814         (Resolve): If the call is ambiguous, indicate whether an interpretation
16815         is an inherited operation.
16816         (Check_Aggr): When resolving aggregates, skip associations with a box,
16817         which are priori correct, and will be replaced by an actual default
16818         expression in the course of expansion.
16819         (Resolve_Type_Conversion): Add missing support for conversion from
16820         a class-wide interface to a tagged type. Minor code cleanup.
16821         (Valid_Tagged_Converion): Add support for abstact interface type
16822         conversions.
16823         (Resolve_Selected_Component): Call Generate_Reference here rather than
16824         during analysis, and use May_Be_Lvalue to distinguish read/write.
16825         (Valid_Array_Conversion): New procedure, abstracted from
16826         Valid_Conversion, to incorporate accessibility checks for arrays of
16827         anonymous access types.
16828         (Valid_Conversion): For a conversion to a numeric type occurring in an
16829         instance or inlined body, no need to check that the operand type is
16830         numeric, since this has been checked during analysis of the template.
16831         Remove legacy test for scope name Unchecked_Conversion.
16832
16833         * sem_res.ads: Minor reformatting
16834
16835         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16836         (PE_Current_Task_In_Entry_Body): New exception code
16837         (SE_Restriction_Violation): Removed, not used
16838
16839         * a-except.ads:  Update comments.
16840
16841         * types.h, types.ads: Add definition for Validity_Check
16842         (PE_Current_Task_In_Entry_Body): New exception code
16843         (SE_Restriction_Violation): Removed, not used
16844
16845 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16846
16847         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16848         error status.
16849
16850 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16851             Jose Ruiz  <ruiz@adacore.com>
16852
16853         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16854         part of Ada.Calendar: all subprogram raise Unimplemented.
16855         (Split_W_Offset): Temp function body, raising Unimplemented
16856
16857         * a-calend.ads, a-calend-vms.ads:
16858         Add imported variable Invalid_TZ_Offset used to designate targets unable
16859         to support time zones.
16860         (Unimplemented): Temporary function raised by the body of new
16861         subprograms below.
16862         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16863         unit provides handling of leap seconds and is used by the new Ada 2005
16864         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16865         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16866         version returns an extra value which is the offset to UTC.
16867
16868         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16869         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16870         (Split_W_Offset): New function body.
16871         (Time_Of): When a date is close to UNIX epoch, compute the time for
16872         that date plus one day (that amount is later substracted after
16873         executing mktime) so there are no problems with time zone adjustments.
16874
16875         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16876
16877         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16878         a-catizo.ads, a-catizo.adb: New files.
16879
16880         * impunit.adb: Add new Ada 2005 entries
16881
16882         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16883         Rename all occurences of "__gnat_localtime_r" to
16884         "__gnat_localtime_tzoff".
16885         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16886         zone data and calculate the GMT offset.
16887         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16888         Use the field "tm_gmtoff" to extract the GMT offset.
16889         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16890         the external variable "timezone" to calculate the GMT offset.
16891
16892 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16893             Jose Ruiz  <ruiz@adacore.com>
16894
16895         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16896         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16897         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16898         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16899         System.Any_Priority to a POSIX priority on the target.
16900
16901         * system-linux-ia64.ads:
16902         Extend range of Priority types on Linux to use the whole range made
16903         available by the system.
16904
16905         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16906         function maps from System.Any_Priority to a POSIX priority on the
16907         target.
16908         (PTHREAD_PRIO_PROTECT): Set real value.
16909         (PTHREAD_PRIO_INHERIT): Now a function.
16910         (SIGCPUFAIL): New signal.
16911         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16912         are documented as reserved by the OS.
16913
16914         * system-aix.ads: Use the full range of priorities provided by the
16915         system on AIX.
16916
16917         * s-taprop-posix.adb: Call new function To_Target_Priority.
16918         (Set_Priority): Take into account Task_Dispatching_Policy and
16919         Priority_Specific_Dispatching pragmas when determining if Round Robin
16920         must be used for scheduling the task.
16921
16922         * system-linux-x86_64.ads, system-linux-x86.ads,
16923         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16924         the whole range made available by the system.
16925
16926         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16927         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16928         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16929         when deallocating the TCB in order to avoid potential references to
16930         deallocated data.
16931         (Set_Priority): Take into account Task_Dispatching_Policy and
16932         Priority_Specific_Dispatching pragmas when determining if Round Robin
16933         or FIFO within priorities must be used for scheduling the task.
16934
16935         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16936         the Thread field (to be used internally by the run-time system) and the
16937         kernel-level task id in the LWP field (to be used by the debugger).
16938         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16939         instance, and propagate the current task options to the spawned task.
16940         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16941         (Initialize): Set Round Robin dispatching when the corresponding pragma
16942         is in effect.
16943
16944 2006-10-31  Robert Dewar  <dewar@adacore.com>
16945
16946         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16947         system-linux-hppa.ads, system-hpux-ia64.ads,
16948         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16949         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16950         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16951         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16952         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16953         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16954         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16955         Default_Bit_Order) to kill constant condition warnings for references
16956         to this switch.
16957
16958 2006-10-31  Vincent Celier  <celier@adacore.com>
16959             Eric Botcazou  <ebotcazou@adacore.com>
16960
16961         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16962         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16963         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16964         Ext_To, when building the library file name
16965
16966         * mlib-tgt-vxworks.adb: ditto.
16967         (Get_Target_Suffix): Add support for x86 targets.
16968
16969         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16970
16971         * mlib-tgt-darwin.adb:
16972         Use Append_To, instead of Ext_To, when building the library file name
16973         (Flat_Namespace): New global variable.
16974         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16975         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16976         (Link_Shared_Libgcc): Delete.
16977         (Build_Dynamic_Library): Adjust for above changes.
16978         Use Opt package.
16979         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16980
16981 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16982
16983         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16984         (Initialize): Add type conversions required by above change.
16985
16986 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16987
16988         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16989         (getpid): New body for this function that uses the underlying taskIdSelf
16990         function for VxWorks 5 and VxWorks 6 in kernel mode.
16991         (unsigned_int): New type, modular to allow logical bit operations.
16992         (taskOptionsGet): New imported function.
16993
16994         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16995         field to be compliant with the type used by the corresponding operating
16996         system primitive.
16997
16998 2006-10-31  Pascal Obry  <obry@adacore.com>
16999             Eric Botcazou  <ebotcazou@adacore.com>
17000             Vincent Celier  <celier@adacore.com>
17001
17002         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17003         ASCII version of the registry API. This is needed as the GNAT runtime
17004         is now UNICODE by default.
17005         Include version.h.
17006         (get_gcc_version): Do not hardcode the return value.
17007         (__gnat_file_time_name): On Windows properly set the default returned
17008         value to -1 which corresponds to Invalid_Time.
17009         (__gnat_fopen): New routine. A simple wrapper on all plateforms
17010          except on Windows where it does conversion for unicode support.
17011         (__gnat_freopen): Idem.
17012         (__gnat_locate_exec_on_path): If environment variable PATH does not
17013         exist, return a NULL pointer
17014
17015         * adaint.h: (__gnat_fopen): Declare.
17016         (__gnat_freopen): Likewise.
17017
17018         * mingw32.h (_tfreopen): Define this macro here for older MingW
17019         version.
17020         Activate the unicode support on platforms using a MingW runtime
17021         version 3.9 or newer.
17022
17023         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17024         This is needed for proper unicode support on Windows.
17025         (freopen): Idem.
17026
17027 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
17028             Nicolas Setton  <setton@adacore.com>
17029             Olivier Hainque  <hainque@adacore.com>
17030             Gary Dismukes  <dismukes@adacore.com>
17031
17032         * gigi.h: (tree_code_for_record_type): Declare.
17033         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17034         (get_global_renaming_pointers): Rename to
17035         invalidate_global_renaming_pointers.
17036         (static_ctors): Delete.
17037         (static_dtors): Likewise.
17038         (gnat_write_global_declarations): Declare.
17039         (create_var_decl): Adjust descriptive comment to indicate that the
17040         subprogram may return a CONST_DECL node.
17041         (create_true_var_decl): Declare new function, similar to
17042         create_var_decl but forcing the creation of a VAR_DECL node.
17043         (get_global_renaming_pointers): Declare.
17044         (add_global_renaming_pointer): Likewise.
17045
17046         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17047
17048         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17049         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17050         processing.
17051         (gnat_to_gnu_entity): Remove From_With_Type from computation for
17052         imported_p.
17053         <E_Access_Type>: Use the Non_Limited_View as the full view of the
17054         designated type if the pointer comes from a limited_with clause.  Make
17055         incomplete designated type if it is in the main unit and has a freeze
17056         node.
17057         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17058         Underlying_Full_View similarly.  Return earlier if the full view already
17059         has an associated tree.
17060         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17061         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17062         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17063         reference type built for objects with an address clause.
17064         Use create_true_var_decl with const_flag set for
17065         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17066         TREE_READONLY set.
17067         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17068         for Character and Wide_Character types. This info is read by the
17069         dwarf-2 writer, and is needed to be able to use the command "ptype
17070         character" in the debugger.
17071         (gnat_to_gnu_entity): When generating a type representing
17072         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17073         so that debug writers can distinguish it from ordinary integers.
17074         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17075         addition to TREE_READONLY to assert the constantness of variables for
17076         elaboration purposes.
17077         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17078         parameters to call new Einfo function First_Formal_With_Extras.
17079         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17080         protected type with its corresponding discriminant, to obtain a usable
17081         declaration
17082         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17083         for a multiple elaboration of the "equivalent" type.
17084         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17085         into record_global_renaming_pointer.
17086         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17087         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17088         <E_Array_Subtype>: Likewise.
17089         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17090         incomplete subtypes and incomplete subtypes of incomplete types visible
17091         through a limited with clause.
17092         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17093         the base index type for the maximum size of the array only if they are
17094         constant.
17095         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17096         expression into a SAVE_EXPR if stabilization failed.
17097
17098         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17099         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17100         by lower level compilation passes.
17101         (gnat_genericize): New function, lowering a function body to GENERIC.
17102         Turn the type of RESULT_DECL into a real reference type if the decl
17103         has been marked DECL_BY_REFERENCE, and adjust references to the latter
17104         accordingly.
17105         (gnat_genericize_r): New function. Tree walking callback for
17106         gnat_genericize.
17107         (convert_from_reference, is_byref_result): New functions. Helpers for
17108         gnat_genericize_r.
17109         (create_type_decl): Call gnat_pushdecl before calling
17110         rest_of_decl_compilation, to make sure that field TYPE_NAME of
17111         type_decl is properly set before calling the debug information writers.
17112         (write_record_type_debug_info): The heuristics which compute the
17113         alignment of a field in a variant record might not be accurate. Add a
17114         safety test to make sure no alignment is set to a smaller value than
17115         the alignment of the field type.
17116         (make_dummy_type): Use the Non_Limited_View as the underlying type if
17117         the type comes from a limited_with clause. Do not loop on the full view.
17118         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17119         (dummy_node_table): New global variable, moved from decl.c.
17120         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17121         (save_gnu_tree): Use above macros.
17122         (get_gnu_tree): Likewise.
17123         (present_gnu_tree): Likewise.
17124         (init_dummy_type): New function, moved from decl.c. Use above macros.
17125         (make_dummy_type): Likewise.
17126         (tree_code_for_record_type): New function extracted from make_dummy_type
17127         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17128         (static_ctors): Change it to a vector, make static.
17129         (static_dtors): Likewise.
17130         (end_subprog_body): Adjust for above change.
17131         (build_global_cdtor): Moved from trans.c.
17132         (gnat_write_global_declarations): Emit global constructor and
17133         destructor, and call cgraph_optimize before emitting debug info for
17134         global declarations.
17135         (global_decls): New global variable.
17136         (gnat_pushdecl): Store the global declarations in global_decls, for
17137         later use.
17138         (gnat_write_global_declarations): Emit debug information for global
17139          declarations.
17140         (create_var_decl_1): Former create_var_decl, with an extra argument to
17141          state whether the creation of a CONST_DECL is allowed.
17142         (create_var_decl): Behavior unchanged. Now a wrapper around
17143         create_var_decl_1 allowing CONST_DECL creation.
17144         (create_true_var_decl): New function, similar to create_var_decl but
17145         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17146         (create_field_decl): Do not always mark the field as addressable
17147         if its type is an aggregate.
17148         (global_renaming_pointers): New static variable.
17149         (add_global_renaming_pointer): New function.
17150         (get_global_renaming_pointers): Likewise.
17151
17152         * misc.c (gnat_dwarf_name): New function.
17153         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17154         (gnat_post_options): Add comment about structural alias analysis.
17155         (gnat_parse_file): Do not call cgraph_optimize here.
17156         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17157
17158         * trans.c (process_freeze_entity): Don't abort if we already have a
17159         non dummy GCC tree for a Concurrent_Record_Type, as it might
17160         legitimately have been elaborated while processing the associated
17161         Concurrent_Type prior to this explicit freeze node.
17162         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17163         exception handler volatile if it is of variable size.
17164         (process_type): Remove bypass for types coming from a limited_with
17165         clause.
17166         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17167         actual, convert the corresponding gnu_actual to the real destination
17168         type when necessary.
17169         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17170         originally TREE_READONLY but whose elaboration cannot be performed
17171         statically.
17172         Part of fix for F504-021.
17173         (tree_transform, subprogram cases): Change loops on formal parameters to
17174         call new Einfo function First_Formal_With_Extras.
17175         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17176         stemming from type conversion for the lhs.
17177         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17178         number of bits per unit for components of records.
17179         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17180         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17181         with At_End_Proc after the SJLJ EH cleanup.
17182         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17183         compilation unit.
17184         (elaborate_all_entities): Do not retest type_annotate_only.
17185         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17186         result type of an abstract subprogram, which may be an itype associated
17187         with an anonymous access result (related to AI-318-02).
17188         (build_global_cdtor): Move to utils.c.
17189         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17190         this choice is not a null tree nor an integer constant.
17191         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17192         on the body of elaboration routines instead of mark_unvisited.
17193         (add_stmt): Do not mark the tree.
17194         (add_decl_expr): Tweak comment.
17195         (mark_unvisited): Delete.
17196         (unshare_save_expr): New static function.
17197         (call_to_gnu): Issue an error when making a temporary around a
17198         procedure call because of non-addressable actual parameter if the
17199         type of the formal is by_reference.
17200         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17201         after building the elaboration routine.
17202
17203 2006-10-31  Bob Duff  <duff@adacore.com>
17204
17205         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17206         as finalization-started, so we can raise Program_Error on 'new'.
17207
17208         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17209         collection has already started.
17210
17211         * s-finimp.ads (Collection_Finalization_Started): Added new special
17212         flag value for indicating that a collection's finalization has started.
17213
17214         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17215         create a task whose master has already waited for dependent tasks.
17216
17217 2006-10-31  Robert Dewar  <dewar@adacore.com>
17218
17219         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17220
17221         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17222         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17223         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17224         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17225         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17226         a-except-2005.ads: Add pragma Preelaborable_Warning
17227
17228 2006-10-31  Robert Dewar  <dewar@adacore.com>
17229             Jose Ruiz  <ruiz@adacore.com>
17230
17231         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17232
17233         * ali.adb (Get_Name): Properly handle scanning of wide character names
17234         encoded with brackets notation.
17235         (Known_ALI_Lines): Add S lines to this list.
17236         (Scan_ALI): Acquire S (priority specific dispatching) lines.
17237         New flag Elaborate_All_Desirable in unit table
17238
17239         * ali.ads (Priority_Specific_Dispatching): Add this range of
17240         identifiers to be used for Priority_Specific_Dispatching table entries.
17241         (ALIs_Record): Add First_Specific_Dispatching and
17242         Last_Specific_Dispatching that point to the first and last entries
17243         respectively in the priority specific dispatching table for this unit.
17244         (Specific_Dispatching): Add this table for storing each S (priority
17245         specific dispatching) line encountered in the input ALI file.
17246         New flag Elaborate_All_Desirable in unit table
17247
17248         * bcheck.adb: (Check_Configuration_Consistency): Add call to
17249         Check_Consistent_Dispatching_Policy.
17250         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17251         verifying that the use of Priority_Specific_Dispatching,
17252         Task_Dispatching_Policy, and Locking_Policy is consistent across the
17253         partition.
17254
17255         * bindgen.adb: (Public_Version_Warning): function removed.
17256         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17257         required information from ALI files in order to initialize the table
17258         containing the specific dispatching policy.
17259         (Gen_Adainit_Ada): Generate the variables required for priority specific
17260         dispatching entries (__gl_priority_specific_dispatching and
17261         __gl_num_specific_dispatching).
17262         (Gen_Adainit_C): Generate the variables required for priority specific
17263         dispatching entries (__gl_priority_specific_dispatching and
17264         __gl_num_specific_dispatching).
17265         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17266         pragma entries.
17267         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17268         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17269         (Tab_To): Removed.
17270         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17271         a call to gnat_set_globals.
17272         Generate a string containing settings from
17273         Priority_Specific_Dispatching pragma entries.
17274         (Gen_Object_Files_Options): Do not include the runtime libraries when
17275         pragma No_Run_Time is specified.
17276
17277         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17278         consistency with s-intman-posix.adb.
17279         (__gnat_error_handler, case FreeBSD): Account for the fact that the
17280         handler is installed with SA_SIGINFO.
17281         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17282         FreeBSD ZCX support, copied from Linux version.
17283         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17284         sigfillset, and sigemptyset so the routines defined by MaRTE.
17285         (__gl_priority_specific_dispatching): Add this variable that stores the
17286         string containing priority specific dispatching policies in the
17287         partition.
17288         (__gl_num_specific_dispatching): Add this variable that indicates the
17289         highest priority for which a priority specific dispatching pragma
17290         applies.
17291         (__gnat_get_specific_dispatching): Add this routine that returns the
17292         priority specific dispatching policy, as set by a
17293         Priority_Specific_Dispatching pragma appearing anywhere in the current
17294         partition. The input argument is the priority number, and the result
17295         is the upper case first character of the policy name.
17296         (__gnat_set_globals): Now a dummy function.
17297         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17298         mechargs instead of sigargs, as the latter can be retrieved from the
17299         former and sigargs is not what we want on ia64.
17300         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17301         mechargs argument.
17302         (__gnat_adjust_context_for_raise, ia64-vms): New function.
17303         (tasking_error): Remove unused symbol.
17304         (_abort_signal): Move this symbol to the IRIX specific part since this
17305         is the only target that uses this definition.
17306         (Check_Abort_Status): Move this symbol to the IRIX specific part since
17307         this is the only target that uses this definition.
17308         (Lock_Task): Remove unused symbol.
17309         (Unlock_Task): Remove unused symbol.
17310
17311         * lib-writ.adb (Write_ALI): Output new S lines for
17312         Priority_Specific_Dispatching pragmas.
17313         Implement new flag BD for elaborate body desirable
17314
17315         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17316         (Specific_Dispatching): Add this table for storing the entries
17317         corresponding to Priority_Specific_Dispatching pragmas.
17318         Document new BD flag for elaborate body desirable
17319
17320         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17321         of known pragmas.
17322
17323 2006-10-31  Javier Miranda  <miranda@adacore.com>
17324
17325         * a-tags.ads, a-tags.adb:
17326         (Predefined_DT): New function that improves readability of the code.
17327         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17328         Inherit_DT): Use the new function Predefined_DT to improve code
17329         readability.
17330         (Register_Interface_Tag): Update assertion.
17331         (Set_Interface_Table): Update assertion.
17332         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17333         determining progenitor interfaces in Tags.
17334         (Inherit_CPP_DT): New subprogram.
17335
17336         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17337         analysis of the thunk code.
17338         (Expand_Interface_Conversion): Handle run-time conversion of
17339         access to class wide types.
17340         (Expand_Dispatching_Call): When generating the profile for the
17341         subprogram itype for a dispatching operation, properly terminate the
17342         formal parameters chaind list (set the Next_Entity of the last formal
17343         to Empty).
17344         (Collect_All_Interfaces): Removed. This routine has been moved to
17345         sem_util and renamed as Collect_All_Abstract_Interfaces.
17346         (Set_All_DT_Position): Hidden entities associated with abstract
17347         interface primitives are not taken into account in the check for
17348         3.9.3(10); this check is done with the aliased entity.
17349         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17350         interfacing with CPP by default.
17351         (Expand_Interface_Conversion): Add missing support for static conversion
17352         from an interface to a tagged type.
17353         (Collect_All_Interfaces): Add new out formal containing the list of
17354         abstract interface types to cleanup the subprogram Make_DT.
17355         (Make_DT): Update the code to generate the table of interfaces in case
17356         of abstract interface types.
17357         (Is_Predefined_Dispatching_Alias): New function that returns true if
17358         a primitive is not a predefined dispatching primitive but it is an
17359         alias of a predefined dispatching primitive.
17360         (Make_DT): If the ancestor of the type is a CPP_Class and we are
17361         compiling under full ABI compatibility mode we avoid the generation of
17362         calls to run-time services that fill the dispatch tables because under
17363         this mode we currently inherit the dispatch tables in the IP subprogram.
17364         (Write_DT): Emit an "is null" indication for a null procedure primitive.
17365         (Expand_Interface_Conversion): Use an address as the type of the formal
17366         of the internally built function that handles the case in which the
17367         target type is an access type.
17368
17369 2006-10-31  Robert Dewar  <dewar@adacore.com>
17370
17371         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17372
17373 2006-10-31  Robert Dewar  <dewar@adacore.com>
17374
17375         * bindusg.ads, bindusg.adb:
17376         Change to package and rename procedure as Display, which
17377         now ensures that it only outputs usage information once.
17378
17379 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17380
17381         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17382         using RTPs.
17383
17384         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17385         when using RTPs.
17386
17387 2006-10-31  Robert Dewar  <dewar@adacore.com>
17388             Ed Schonberg  <schonberg@adacore.com>
17389
17390         * treepr.adb: Use new subtype N_Membership_Test
17391
17392         * checks.ads, checks.adb: Add definition for Validity_Check
17393         (Range_Or_Validity_Checks_Suppressed): New function
17394         (Ensure_Valid): Test Validity_Check suppressed
17395         (Insert_Valid_Check): Test Validity_Check suppressed
17396         (Insert_Valid_Check): Preserve Do_Range_Check flag
17397         (Validity_Check_Range): New procedure
17398         (Expr_Known_Valid): Result of membership test is always valid
17399         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17400         by themselves. Disabling those checks must also be done for task types,
17401         where discriminants may be used for the bounds of entry families.
17402         (Apply_Address_Clause_Check): Remove side-effects if address expression
17403         is non-static and is not the name of a declared constant.
17404         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17405         Code cleanup and new error messages.
17406         (Enable_Range_Check): Test for some cases of suppressed checks
17407         (Generate_Index_Checks): Suppress index checks if index checks are
17408         suppressed for array object or array type.
17409         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17410         length check failure, even if checks are off.
17411         (Ensure_Valid): Do not generate a check on an indexed component whose
17412         prefix is a packed boolean array.
17413         * checks.adb: (Alignment_Checks_Suppressed): New function
17414         (Apply_Address_Clause_Check): New procedure, this is a completely
17415         rewritten replacement for Apply_Alignment_Check
17416         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17417         we request a discriminal value only in case of discriminants.
17418         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17419         assignments where the target subtype is unconstrained and the target
17420         object is a parameter or dereference (other aliased cases are known
17421         to be unconstrained).
17422
17423 2006-10-31  Robert Dewar  <dewar@adacore.com>
17424
17425         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17426         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17427         vms_conv.adb: Fix bad table increment values (much too small)
17428
17429         * table.adb (Realloc): Make sure we get at least some new elements
17430         Defends against silly small values for table increment
17431
17432 2006-10-31  Robert Dewar  <dewar@adacore.com>
17433             Ed Schonberg  <schonberg@adacore.com>
17434             Bob Duff  <duff@adacore.com>
17435
17436         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17437         entities. Move other fields around to make this possible
17438         (Is_Derived_Type): Add missing call to Is_Type.
17439         (Extra_Formals): New function for subprograms, entries, subprogram
17440         types.
17441         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17442         (First_Formal_With_Extras): New function for subprogs, entries, subp
17443         types.
17444         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17445         Add node information for E_Return_Statement.
17446         (Elaborate_Body_Desirable): New flag
17447         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17448         to be Is_Inherently_Limited_Type, because return-by-reference has
17449         no meaning in Ada 2005.
17450         (E_Return_Statement): New entity kind.
17451         (Return_Applies_To): Field of E_Return_Statement.
17452         (Is_Return_Object): New flag in object entities.
17453         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17454         (Must_Have_Preelab_Init): New flag
17455         (Known_To_Have_Preelab_Init): New flag
17456         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17457         (Is_Visible_Formal): New flag on entities in formal packages.
17458         (Low_Bound_Known): New flag
17459         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17460         Incomplete_Kind.
17461         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17462         output when Id is an incomplete subtype.
17463
17464 2006-10-31  Robert Dewar  <dewar@adacore.com>
17465
17466         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17467         Avoid abbreviation Creat
17468         (Finalize): List all sources in extended mail source if -gnatl
17469         switch is active.
17470         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17471         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17472         (Set_Specific_Warning_On): New procedure
17473         (Set_Specific_Warning_Off): New procedure
17474         Add implementation of new insertion \\
17475         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17476         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17477         types.
17478         (Error_Msg_Internal): Make sure that we set Last_Killed to
17479         True when a message from another package is suppressed.
17480         Implement insertion character ~ (insert string)
17481         (First_Node): Minor adjustments to get better placement.
17482
17483         * frontend.adb:
17484         Implement new -gnatl=xxx switch to output listing to file
17485
17486         * gnat1drv.adb:
17487         Implement new -gnatl=xxx switch to output listing to file
17488
17489         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17490         (Commands_To_Stdout): New flag
17491         Implement new -gnatl=xxx switch to output listing to file
17492         New switch Dump_Source_Text
17493         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17494         Define Error_Msg_Line_Length
17495         (Warn_On_Assumed_Low_Bound): New switch
17496
17497         * osint.ads, osint.adb
17498         (Normalize_Directory_Name): Fix bug.
17499         Implement new -gnatl=xxx switch to output listing to file
17500         (Concat): Removed, replaced by real concatenation
17501         Make use of concatenation now allowed in compiler
17502         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17503         we find the 'lib' or 'bin' directory even when the tool has been
17504         invoked with a relative path.
17505         (Executable_Name): New function taking string parameters.
17506
17507         * osint-c.ads, osint-c.adb:
17508         Implement new -gnatl=xxx switch to output listing to file
17509
17510         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17511
17512         * switch-c.adb:
17513         Implement new -gnatl=xxx switch to output listing to file
17514         Recognize new -gnatL switch
17515         (no longer keep in old warning about old style usage)
17516         Use concatenation to simplify code
17517         Recognize -gnatjnn switch
17518         (Scan_Front_End_Switches): Clean up handling of -gnatW
17519         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17520
17521 2006-10-31  Robert Dewar  <dewar@adacore.com>
17522
17523         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17524         (Set_Specific_Warning_Off): New procedure
17525         (Warning_Specifically_Suppressed): New function
17526         (Validate_Specific_Warnings): New procedure
17527         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17528
17529         * err_vars.ads: Implement insertion character ~ (insert string)
17530
17531 2006-10-31  Bob Duff  <duff@adacore.com>
17532             Ed Schonberg  <schonberg@adacore.com>
17533
17534         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17535         the parent part is a build-in-place function call, generate assignments.
17536         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17537         are build-in-place function calls.
17538         (Replace_Self_Reference): New subsidiary of
17539         Make_OK_Assignment_Statement, to replace an access attribute that is a
17540         self-reference into an access to the appropriate component of the
17541         target object. Generalizes previous mechanism to handle self-references
17542         nested at any level.
17543         (Is_Self_Referential_Init): Remove, not needed.
17544         (Is_Self_Referential_Init): New predicate to simplify handling of self
17545         referential components in record aggregates.
17546         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17547         check for presence of entity before checking for self-reference.
17548         (Has_Default_Init_Comps): Return True if a component association is a
17549         self-reference to the enclosing type, which can only come from a
17550         default initialization.
17551         (Make_OK_Assignment_Statement): If the expression is of the form
17552         Typ'Acc, where Acc is an access attribute, the expression comes from a
17553         default initialized self-referential component.
17554         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17555         that has been derived from several abstract interfaces we must also
17556         initialize the tags of the secondary dispatch tables.
17557
17558 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17559             Thomas Quinot  <quinot@adacore.com>
17560             Javier Miranda  <miranda@adacore.com>
17561             Robert Dewar  <dewar@adacore.com>
17562
17563         * exp_attr.adb:
17564         (Expand_Access_To_Protected_Op): If the context indicates that an access
17565         to a local operation may be transfered outside of the object, create an
17566         access to the wrapper operation that must be used in an external call.
17567         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17568         target, pass the Valid attribute applied to a floating-point prefix on
17569         to the back end without expansion.
17570         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17571         the allocated storage when it is specified by a per-object expression.
17572         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17573         Nothing to do here, the attribute has been rewritten during semantic
17574         analysis.
17575         (Expand_Attribute_Reference): Handle expansion of the new Priority
17576         attribute
17577         (Find_Fat_Info): Handle case of universal real
17578         (Expand_Access_To_Protected_Op): Fix use of access to protected
17579         subprogram from inside the body of a protected entry.
17580         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17581         'Access and 'Unrestricted_Access, to transform the attribute reference
17582         into a fat pointer.
17583         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17584         subcomponent's enclosing variable is aliased with a constrained subtype.
17585         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17586         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17587         an aliased prefix must be known to be constrained in order to use True
17588         for the attribute value, and now it's possible for some aliased views
17589         to be unconstrained.
17590
17591 2006-10-31  Robert Dewar  <dewar@adacore.com>
17592
17593         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17594         (Expand_Entity_Reference): Correct error of not handling subprogram
17595         formals in current_value processing.
17596
17597 2006-10-31  Javier Miranda  <miranda@adacore.com>
17598             Robert Dewar  <dewar@adacore.com>
17599             Ed Schonberg  <schonberg@adacore.com>
17600             Gary Dismukes  <dismukes@adacore.com>
17601
17602         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17603         register in the final list objects containing class-wide interfaces;
17604         otherwise we incorrectly register the tag of the interface in the final
17605         list.
17606         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17607         generate the wrapper if the parent primitive is abstract. This is
17608         required to report the correct error message.
17609         (Expand_N_Subtype_Indication): Do validity checks on range
17610         (Clean_Task_Names): If an initialization procedure includes a call to
17611         initialize a task (sub)component, indicate that the procedure will use
17612         the secondary stack.
17613         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17614         compatibility for interfacing with CPP by default.
17615         (Expand_N_Object_Declaration): Only build an Adjust call when the
17616         object's type is a nonlimited controlled type.
17617         * exp_ch3.adb: Add with and use of Exp_Ch6.
17618         (Expand_N_Object_Declaration): Check for object initialization that is a
17619         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17620         Object_Declaration to the call.
17621         (Freeze_Type): When the designated type of an RACW was not frozen at the
17622         point where the RACW was declared, validate the primitive operations
17623         with respect to E.2.2(14) when it finally is frozen.
17624         (Build_Initialization_Call,Expand_Record_Controller): Rename
17625         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17626         return-by-reference has no meaning in Ada 2005.
17627         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17628         to register tag of the immediate ancestor interfaces in the
17629         run-time structure.
17630         (Init_Secondary_Tags): Moved to the specification to allow the
17631         initialization of extension aggregates with abstract interfaces.
17632         (Build_Master_Renaming): Make public, for use by function declarations
17633         whose return type is an anonymous access type.
17634         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17635         Insert_List_Before_And_Analyze after the generation of the specs
17636         associated with null procedures.
17637         (Expand_Tagged_Root): Update documentation in its specification.
17638         (Init_Secondary_Tags): Update documentation.
17639         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17640         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17641         then generate code to inherit the contents of the dispatch table
17642         directly from the ancestor.
17643         (Expand_Record_Controller): Insert controller component after tags of
17644         implemented interfaces.
17645         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17646         create null procedure overridings when null procedures are inherited
17647         from interfaces.
17648         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17649         declarations for overriding null primitives inherited from interfaces.
17650         (Is_Null_Interface_Procedure): New function in
17651         Make_Null_Procedure_Specs.
17652         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17653         immediate ancestor of a tagged type is an abstract interface type we
17654         must generate the specification of the predefined primitives associated
17655         with controlled types (because the dispatch table of the ancestor is
17656         null and hence these entries cannot be inherited). This is required to
17657         elaborate well the dispatch table.
17658
17659 2006-10-31  Javier Miranda  <miranda@adacore.com>
17660             Ed Schonberg  <schonberg@adacore.com>
17661             Bob Duff  <duff@adacore.com>
17662             Gary Dismukes  <dismukes@adacore.com>
17663             Robert Dewar  <dewar@adacore.com>
17664
17665         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17666         conversion.
17667         (Expand_N_In): Do validity checks on range
17668         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17669         (Expand_N_Allocator): For "new T", if the object is constrained by
17670         discriminant defaults, allocate the right amount of memory, rather than
17671         the maximum for type T.
17672         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17673         when the allocator is initialized by a build-in-place call, since the
17674         allocator is already rewritten as a reference to the function result,
17675         and this prevents an unwanted duplication of the function call.
17676         Add with and use of Exp_Ch6.
17677         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17678         is a call to build-in-place function and apply
17679         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17680         untagged designated types).
17681         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17682         optimization if source or target is biased.
17683         (Expand_N_Allocator): Add comments for case of an allocator within a
17684         function that returns an anonymous access type designating tasks.
17685         (Expand_N_Allocator): apply discriminant checks for access
17686         discriminants of anonymous access types (AI-402, AI-416)
17687
17688 2006-10-31  Bob Duff  <duff@adacore.com>
17689             Robert Dewar  <dewar@adacore.com>
17690             Gary Dismukes  <dismukes@adacore.com>
17691             Ed Schonberg  <schonberg@adacore.com>
17692
17693         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17694
17695         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17696         (Expand_N_Assignment_Statement): Call
17697         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17698         build-in-place function call. Currently, this can happen only for
17699         assignments that come from aggregates.
17700         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17701         in order to alleviate the upward compatibility introduced by AI-318.
17702         (Expand_N_Extended_Return_Statement): Add support for handling the
17703         return object as a build-in-place result.
17704         (Expand_Non_Function_Return): Implement simple return statements nested
17705         within an extended return.
17706         (Enable_New_Return_Processing): Turn on the new processing of return
17707         statements.
17708         (Expand_Non_Function_Return): For a return within an extended return,
17709         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17710         (Expand_N_Extended_Return_Statement): Implement AI-318
17711         (Expand_Simple_Function_Return): Ditto.
17712         (Expand_N_If_Statement): Handle new -gnatwt warning
17713         (Expand_N_Case_Statement): Handle new -gnatwt warning
17714         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17715         a protected object.
17716         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17717         validity checking of assignments to elementary record components.
17718         (Expand_N_Return_Statement): return Class Wide types on the secondary
17719         stack independantly of their controlled status since with HIE runtimes,
17720         class wide types are not potentially controlled anymore.
17721
17722         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17723         node kind.
17724
17725         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17726         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17727         it expects a block, procedure, or task. The return statement will get
17728         turned into a block, and Expand_Cleanup_Actions will happen then.
17729
17730 2006-10-31  Robert Dewar  <dewar@adacore.com>
17731             Ed Schonberg  <schonberg@adacore.com>
17732             Bob Duff  <duff@adacore.com>
17733             Gary Dismukes  <dismukes@adacore.com>
17734
17735         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17736         capability.
17737         (Expand_Inlined_Call): Tagged types are by-reference types, and
17738         therefore should be replaced by a renaming declaration in the expanded
17739         body, as is done for limited types.
17740         (Expand_Call): If this is a call to a function with dispatching access
17741         result, propagate tag from context.
17742         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17743         CPP by default.
17744         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17745         build-in-place when the right-hand side of an assignment is a
17746         build-in-place function call.
17747         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17748         of the explicit dereference of the allocator to the result subtype of
17749         the build-in-place function. This is needed to satisfy type checking
17750         in cases where the caller's return object is created by an allocator for
17751         a class-wide access type and the type named in the allocator is a
17752         specific type.
17753         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17754         conversion of the reference to the declared object to the result subtype
17755         of the build-in-place function. This is needed to satisfy type checking
17756         in cases where the declared object has a class-wide type. Also, in the
17757         class-wide case, change the type of the object entity to the specific
17758         result subtype of the function, to avoid passing a class-wide object
17759         without explicit initialization to the back end.
17760         (Register_Interface_DT_Entry): Moved outside the body of
17761         Freeze_Subprogram because this routine is now public; it is called from
17762         Check_Dispatching_Overriding to handle late overriding of abstract
17763         interface primitives.
17764         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17765         adding an implicit access actual on a call to a build-in-place function.
17766         (Expand_Actuals): Test for an actual parameter that is a call to a
17767         build-in-place function and apply
17768         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17769         (Is_Build_In_Place_Function): New function to determine whether an
17770         entity is a function whose calls should be handled as build-in-place.
17771         (Is_Build_In_Place_Function_Call): New function to determine whether an
17772         expression is a function call that should handled as build-in-place.
17773         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17774         calls to build-in-place functions as the initialization of an allocator.
17775         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17776         handling calls to build-in-place functions in contexts that do not
17777         involve init of a separate object (for example, actuals of subprogram
17778         calls).
17779         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17780         handling calls to build-in-place functions as the initialization of an
17781         object declaration.
17782         (Detect_Infinite_Recursion): Add explicit parameter Process to
17783         instantiation of Traverse_Body to avoid unreferenced warning.
17784         (Check_Overriding_Inherited_Interfaces): Removed.
17785         (Register_Interface_DT_Entry): Code cleanup.
17786         (Register_Predefined_DT_Entry): Code cleanup.
17787         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17788         inlined statements if within a transient scope.
17789         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17790         formal parameters with occurrences of actuals in inlined body, establish
17791         visibility on the proper view of the actual's subtype for the body's
17792         context.
17793         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17794         compatibility mode and we have an imported CPP subprogram because
17795         for now we assume that imported CPP primitives correspond with
17796         objects whose constructor is in the CPP side (and therefore we
17797         don't need to generate code to register them in the dispatch table).
17798         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17799         aligned selected component.
17800         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17801         the actual of an in-mode parameter is a type conversion.
17802         (Expand_Actuals): If the call does not come from source and the actual
17803         is potentially misaligned, let gigi handle it rather than rejecting the
17804         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17805         Class Wide types as returning by reference independantly of their
17806         controlled status since with HIE runtimes class wide types are not
17807         potentially controlled anymore.
17808
17809 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17810
17811         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17812         references that are private components of the protected object.
17813         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17814         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17815         instantiation to deal with warnings.
17816         (Initialize_Protection): If expression for priority is non-static, use
17817         System_Priority as its expected type, in case the expression has not
17818         been analyzed yet.
17819
17820 2006-10-31  Robert Dewar  <dewar@adacore.com>
17821
17822         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17823         initialization of Homonym_Len.
17824         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17825         names from fully qualified name. Fixes problem of duplicate
17826         external names differing only in the presence of such a block name.
17827
17828 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17829             Pablo Oliveira  <oliveira@adacore.com>
17830
17831         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17832         subprogram Ids, even if they are not yet assigned.
17833         (Build_Subprogram_Id): It is now this function that will take care of
17834         calling Assign_Subprogram_Ids if necessary.
17835         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17836         should be done only once they are assigned.
17837         (Build_From_Any_Function, case of tagged types): Add missing call to
17838         Allocate_Buffer.
17839         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17840         type for an RACW type.
17841         (Add_RACW_Features): When processing an RACW declaration for which the
17842         designated type is already frozen, enforce E.2.2(14) rules immediately.
17843         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17844         special reordering of controlling formals.
17845
17846         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17847         associated stub type for an RACW type.
17848
17849 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17850
17851         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17852         fixed-point operations in an integer context, i.e. as operands of a
17853         conversion to an integer type, indicate that result must be rounded.
17854
17855 2006-10-31  Robert Dewar  <dewar@adacore.com>
17856
17857         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17858         cases, pass the encoding method, since it is now required by the run
17859         time.
17860
17861         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17862         assumption that Str'First = 1.
17863         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17864         it on to the Value_Wide_Wide_Character call.
17865         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17866         properly handles a string of the form quote-encoded_wide_char-quote.
17867
17868         * s-wchcnv.adb: Minor reformatting
17869
17870 2006-10-31  Javier Miranda  <miranda@adacore.com>
17871
17872         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17873         run-time membership test to ensure that the constructed object
17874         implements the target abstract interface.
17875
17876 2006-10-31  Robert Dewar  <dewar@adacore.com>
17877
17878         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17879         Machine_Attribute pragma internally to implement the user pragma.
17880         Add processing for pragma Interface so that it is now completely
17881         equivalent to pragma Import.
17882
17883         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17884         so that it can be applied to all entities, including record components
17885         and enumeration literals.
17886         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17887         priority ranges are correct, verify compatibility against task
17888         dispatching and locking policies, and if everything is correct an entry
17889         is added to the table containing priority specific dispatching entries
17890         for this compilation unit.
17891         (Delay_Config_Pragma_Analyze): Delay processing
17892         Priority_Specific_Dispatching pragmas because when processing the
17893         pragma we need to access run-time data, such as the range of
17894         System.Any_Priority.
17895         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17896         Allow pragma Unreferenced as a context item
17897         Add pragma Preelaborable_Initialization
17898         (Analyze_Pragma, case Interface): Interface is extended so that it is
17899         now syntactically and semantically equivalent to Import.
17900         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17901         insertion characters.
17902         Add handling for Pragma_Wide_Character_Encoding
17903         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17904         never supercedes a real restriction, and that a real restriction
17905         always supercedes a warning.
17906         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17907         appropriate form.
17908
17909 2006-10-31  Bob Duff  <duff@adacore.com>
17910             Ed Schonberg  <schonberg@adacore.com>
17911             Robert Dewar  <dewar@adacore.com>
17912
17913         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17914         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17915         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17916         in Ada 2005.
17917         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17918         type of the function containing a return statement, because the
17919         Return_Type field was removed. We now use the Return_Applies_To field.
17920
17921         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17922         (Build_Task_Image_Decl): If procedure is not called from an
17923         initialization procedure, indicate that function that builds task name
17924         uses the sec. stack. Otherwise the enclosing initialization procedure
17925         will carry the indication.
17926         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17927         N_Object_Declaration instead.
17928         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17929         conditional dead code killed, and change implementation accordingly.
17930         (Insert_Actions): Add N_Return_Object_Declaration case.
17931         Correct comment to mention N_Extension_Aggregate node.
17932         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17933         attempts to save information for global variables which cannot be
17934         safely tracked.
17935         (Get_Current_Value_Condition): Handle conditions the other way round
17936         (constant on left). Also handle right operand of AND and AND THEN
17937         (Set_Current_Value_Condition): Corresponding changes
17938         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17939         (Get_Current_Value_Condition): Handle simple boolean operands
17940         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17941         (Get_Current_Value_Condition): If the variable reference is within an
17942         if-statement, does not appear in the list of then_statments, and does
17943         not come from source, treat it as being at unknown location.
17944         (Get_Current_Value_Condition): Enhance to allow while statements to be
17945         processed as well as if statements.
17946         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17947         come from source.
17948         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17949         of loop. This is safe now that we fixed Kill_Current_Values.
17950         (OK_To_Do_Constant_Replacement): Check whether current scope is
17951         Standard, before examining outer scopes.
17952
17953 2006-10-31  Vincent Celier  <celier@adacore.com>
17954
17955         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17956         When True, apply VMS treatment to children of packages A, G, I and S.
17957         For F320-016
17958
17959         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17960
17961 2006-10-31  Robert Dewar  <dewar@adacore.com>
17962             Ed Schonberg  <schonberg@adacore.com>
17963
17964         * freeze.adb: Add handling of Last_Assignment field
17965         (Warn_Overlay): Supply missing continuation marks in error msgs
17966         (Freeze_Entity): Add check for Preelaborable_Initialization
17967
17968         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17969
17970         * g-expect.adb: Add Warnings (Off) to prevent new warning
17971
17972         * lib-xref.adb: Add handling of Last_Assignment field
17973         (Generate_Reference): Centralize handling of pragma Obsolescent here
17974         (Generate_Reference): Accept an implicit reference generated for a
17975         default in an instance.
17976         (Generate_Reference): Accept a reference for a node that is not in the
17977         main unit, if it is the generic body corresponding to an subprogram
17978         instantiation.
17979
17980         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17981
17982         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17983         -gnatwq/Q.
17984         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17985         exception handler.
17986         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17987         use clauses, to avoid messages on packages used to qualify, and also
17988         to avoid messages from obsolescent units.
17989         (Warn_On_Useless_Assignments): Don't generate messages for imported
17990         and exported variables.
17991         (Warn_On_Useless_Assignments): New procedure
17992         (Output_Obsolescent_Entity_Warnings): New procedure
17993         (Check_Code_Statement): New procedure
17994
17995         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17996         Change name Is_Ada_2005 to Is_Ada_2005_Only
17997         (Last_Assignment): New field for useless assignment warning
17998
17999 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18000
18001         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18002         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18003
18004 2006-10-31  Bob Duff  <duff@adacore.com>
18005             Robert Dewar  <dewar@adacore.com>
18006             Ed Schonberg  <schonberg@adacore.com>
18007
18008         * g-awk.adb (Default_Session, Current_Session): Compile this file in
18009         Ada 95 mode, because it violates the new rules for AI-318.
18010
18011         * g-awk.ads: Use overloaded subprograms in every case where we used to
18012         have a default of Current_Session. This makes the code closer to be
18013         correct for both Ada 95 and 2005.
18014
18015         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18016         code, relying on the fact that the compiler generates a warning
18017         instead of an error in -gnatg mode.
18018
18019         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18020         E_Return_Statement entity kind.
18021         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18022
18023         * par.adb (P_Interface_Type_Definition): Addition of one formal to
18024         report an error if the reserved word abstract has been previously found.
18025         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18026
18027         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18028         parenthesized range attribute usage
18029         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18030
18031         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18032         in the syntax for extended_return_statement. This is not in the latest
18033         RM, but the ARG is expected to issue an AI allowing this.
18034         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18035         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18036         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18037         P_Return_Statement): Parse the new syntax for extended_return_statement.
18038
18039         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18040         Output_End_Missing): Add error-recovery code for the new
18041         extended_return_statement syntax; that is, the new E_Return entry on
18042         the scope stack.
18043
18044         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18045         limited to nonlimited, because otherwise we violate the new Ada 2005
18046         rules about returning limited types in function Create_AST_Handler in
18047         s-asthan.adb.
18048
18049         * sem.adb (Analyze): Add cases for new node kinds
18050         N_Extended_Return_Statement and N_Return_Object_Declaration.
18051
18052         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18053         type is in the same category as type of context before applying check,
18054         to prevent anomalies in instantiations.
18055         (Resolve_Aggregate): Remove test for limited components in aggregates.
18056         It's unnecessary in Ada 95, because if it has limited components, then
18057         it must be limited. It's wrong in Ada 2005, because limited aggregates
18058         are now allowed.
18059         (Resolve_Record_Aggregate): Move check for limited types later, because
18060         OK_For_Limited_Init requires its argument to have been resolved.
18061         (Get_Value): When copying the component default expression for a
18062         defaulted association in an aggregate, use the sloc of the aggregate
18063         and not that of the original expression, to prevent spurious
18064         elaboration errors, when the expression includes function calls.
18065         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18066         were missing. We also didn't handle qualified expressions. Now also
18067         allow function calls. Use new common routine OK_For_Limited_Init.
18068         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18069         with space can upper case letter).
18070
18071         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18072         Has_Static_Discriminants flag
18073         (Record_Type_Declaration): Diagnose an attempt to declare an interface
18074         type with discriminants.
18075         (Process_Range_Expr_In_Decl): Do validity checks on range
18076         (Build_Discriminant_Constraints): Use updated form of
18077         Denotes_Discriminant.
18078         (Process_Subtype): If the subtype is a private subtype whose full view
18079         is a concurrent subtype, introduce an itype reference to prevent scope
18080         anomalies in gigi.
18081         (Build_Derived_Record_Type, Collect_Interface_Primitives,
18082         Record_Type_Declaration):  The functionality of the subprograms
18083         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18084         is now performed by a single routine.
18085         (Build_Derived_Record_Type): If the type definition includes an explicit
18086         indication of limitedness, then the type must be marked as limited here
18087         to ensure that any access discriminants will not be treated as having
18088         a local anonymous access type.
18089         (Check_Abstract_Overriding): Issue a detailed error message when an
18090         abstract subprogram was not overridden due to incorrect mode of its
18091         first parameter.
18092         (Analyze_Private_Extension_Declaration): Add support for the analysis of
18093         synchronized private extension declarations. Verify that the ancestor is
18094         a limited or synchronized interface or in the generic case, the ancestor
18095         is a tagged limited type or synchronized interface and all progenitors
18096         are either limited or synchronized interfaces.
18097         Derived_Type_Declaration): Check for presence of private extension when
18098         dealing with synchronized formal derived types.
18099         Process_Full_View): Enchance the check done on the usage of "limited" by
18100         testing whether the private view is synchronized.
18101         Verify that a synchronized private view is completed by a protected or
18102         task type.
18103         (OK_For_Limited_Init_In_05): New function.
18104         (Analyze_Object_Declaration): Move check for limited types later,
18105         because OK_For_Limited_Init requires its argument to have been resolved.
18106         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18107         in order to alleviate the upward compatibility introduced by AI-318.
18108         (Constrain_Corresponding_Record): If the constraint is for a component
18109         subtype, mark the itype as frozen, to avoid out-of-scope references to
18110         discriminants in the back-end.
18111         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18112         this subprogram against wrong sources.
18113         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18114         discriminant of limited type completed with a protected type, when the
18115         discriminant is used to constrain a private component of the type, and
18116         expansion is disabled.
18117         (Find_Type_Of_Object): Do not treat a return subtype that is an
18118         anonymous subtype as a local_anonymous_type, because its accessibility
18119         level is the return type of the enclosing function.
18120         (Check_Initialization): In -gnatg mode, turn the error "cannot
18121         initialize entities of limited type" into a warning.
18122         (OK_For_Limited_Init): Return true for generated nodes, since it
18123         sometimes violates the legality rules.
18124         (Make_Incomplete_Declaration): If the type for which an incomplete
18125         declaration is created happens to be the currently visible entity,
18126         preserve the homonym chain when removing it from visibility.
18127         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18128         inherited subprograms.
18129         (Access_Definition): If this is an access to function that is the return
18130         type of an access_to_function definition, context is a type declaration
18131         and the scope of the anonymous type is the current one.
18132         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18133         incomplete subtype to the set of private dependents of the original
18134         incomplete type.
18135         (Constrain_Discriminated_Type): Emit an error message whenever an
18136         incomplete subtype is being constrained.
18137         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18138         corresponding subtype of the full view of the original incomplete type.
18139         (Check_Incomplete): Properly detect invalid usage of incomplete types
18140         and subtypes.
18141
18142 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18143
18144         * g-catiio.ads, g-catiio.adb (Value): New function.
18145         Given an input String, try and parse a valid Time value.
18146
18147 2006-10-31  Vincent Celier  <celier@adacore.com>
18148
18149         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18150         Integer_Address arithmetic, as in Set_Valid.
18151
18152 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18153             Robert Dewar  <dewar@adacore.com>
18154
18155         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18156         handling executable extension manually and duplicating code.
18157
18158         * make.adb: Implement new -S switch
18159         (Gnatmake): Use new function Osint.Executable_Name instead
18160         of handling executable extension manually.
18161
18162         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18163         is specified, the executable name ends with this suffix.
18164         Take advantage of Osint.Executable_Name instead of duplicating code.
18165
18166         * switch-m.adb: Recognize new gnatmake -S switch
18167
18168         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18169         variable.
18170         (Get_Target_Parameters): Set Executable_Extension_On_Target if
18171         available.
18172
18173         * makeusg.adb: Add line for gnatmake -S switch
18174
18175 2006-10-31  Vincent Celier  <celier@adacore.com>
18176
18177         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18178         call it with -static-libgcc, as there are some platforms, such as
18179         Darwin, where one of these two switches is compulsory to link.
18180
18181 2006-10-31  Vincent Celier  <celier@adacore.com>
18182
18183         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18184         instead of ADA_PROJECT_PATH, for the project path.
18185         (Gnatls): When displaying the project path directories, use host dir
18186         specs.
18187
18188         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18189         names in the project path, as absolute paths may correspond to
18190         multi-valued VMS logical names.
18191
18192 2006-10-31  Vincent Celier  <celier@adacore.com>
18193
18194         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18195         absolute path name.
18196         (Locate_Regular_File): Ditto
18197         (Change_Dir): Remove, no longer used
18198         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18199         on Windows. Get it calling Get_Current_Dir.
18200         (OpenVMS): Remove imported boolean, no longer needed.
18201         (Normalize_Pathname)[VMS]: Do not resolve directory names.
18202         (Pid_To_Integer): New function to convert a Process_Id to  Integer
18203
18204 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18205
18206         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18207         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18208         to No_Socket.
18209         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18210         W_Sig_Socket.
18211
18212 2006-10-31  Robert Dewar  <dewar@adacore.com>
18213
18214         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18215         initial letter o as a zero.
18216
18217 2006-10-31  Robert Dewar  <dewar@adacore.com>
18218
18219         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18220
18221 2006-10-31  Robert Dewar  <dewar@adacore.com>
18222
18223         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18224         variant records
18225         (Layout_Variant_Record): Retrieve the discriminants from the entity
18226         rather than from the type definition, because in the case of a full
18227         type for a private type we need to take the discriminants from the
18228         partial view.
18229         (Layout_Component_List): When applying the Max operator to variants with
18230         a nonstatic size, check whether either operand is static and scale that
18231         operand from bits to storage units before applying Max.
18232         (Layout_Type): In VMS, if a C-convention access type has no explicit
18233         size clause (and does not inherit one in the case of a derived type),
18234         then the size is reset to 32 from 64.
18235
18236 2006-10-31  Vincent Celier  <celier@adacore.com>
18237
18238         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18239         its file has already been loaded, according to the unit being loaded,
18240         not to the current value of Multiple_Unit_Index.
18241
18242 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18243             Eric Botcazou  <ebotcazou@adacore.com>
18244             Arnaud Charlet  <charlet@adacore.com>
18245
18246         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18247         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18248         possible.
18249         (a-except.o): Pass it to the compiler.
18250         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18251         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18252         a-calend-mingw.adb version.
18253
18254         * Makefile.rtl: Added s-dsaser.
18255         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18256         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18257         Ada.Dispatching.Round_Robin.
18258         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18259
18260         * Make-lang.in: Remove all references to gt-ada-decl.h.
18261         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18262         sources.
18263         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18264         Update dependencies.
18265
18266         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18267
18268 2006-10-31  Vincent Celier  <celier@adacore.com>
18269
18270         * mlib-utl.adb (Initialized): Remove, no longer used
18271         (Initialize): Remove, no longer used
18272         (Ar): If Ar_Exec is null, get the location of the archive builder and,
18273         if there is one, the archive indexer. Fail if the archive builder cannot
18274         be found.
18275         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18276         be found.
18277
18278 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18279
18280         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18281         Process_Body_Clauses): If the context of a body includes a use clause
18282         for P.Q then a with_clause for P in the same body is not redundant,
18283         even if the spec also has a with_clause on P.
18284         Add missing continuation mark to error msg
18285         (Build_Limited_Views): A limited view of a type is tagged if its
18286         declaration includes a record extension.
18287         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18288         node, even if the subunit has errors. This avoids malfunction by
18289         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18290         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18291         generation of obsolescent messages for with statements (cannot do
18292         this too early, or we cannot implement avoiding the messages in the
18293         case of obsolescent units withing obsolescent units).
18294         (Install_Siblings): If the with_clause is on a remote descendant of
18295         an ancestor of the current compilation unit, find whether there is
18296         a sibling child unit that is immediately visible.
18297         (Remove_Private_With_Clauses): New procedure, invoked after completing
18298         the analysis of the private part of a nested package, to remove from
18299         visibility the private with_clauses of the enclosing package
18300         declaration.
18301         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18302         now centralized in Generate_Reference.
18303         (Install_Limited_Context_Clauses): Remove superfluous error
18304         message associated with unlimited view visible through use
18305         and renamings. In addition, at the point in which the error
18306         is reported, we add the backslash to the text of the error
18307         to ensure that it is reported as a single error message.
18308         Use new // insertion for some continuation messages
18309         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18310         to create implicit with_clause for parent unit mentioned in original
18311         limited_with_clause.
18312         (Install_Limited_With_Unit): Set entity of parent identifiers if the
18313         unit is a child unit. For ASIS queries.
18314         (Analyze_Subunit): If the subunit appears within a child unit, make all
18315         ancestor child units directly visible again.
18316
18317 2006-10-31  Robert Dewar  <dewar@adacore.com>
18318
18319         * par-ch10.adb (P_Context_Clause): Minor error message fix
18320
18321 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18322             Javier Miranda  <miranda@adacore.com>
18323
18324         * par-ch12.adb: Grammar update and cleanup.
18325         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18326         support for synchronized derived type definitions.
18327         Add the new actual Abstract_Present to every call to
18328         P_Interface_Type_Definition.
18329         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18330         a formal object declaration with an access definition or a subtype mark
18331         with a null exclusion.
18332         (P_Generic_Association): Handle association with box, and others_choice
18333         with box, to support Ada 2005 partially parametrized formal packages.
18334
18335 2006-10-31  Robert Dewar  <dewar@adacore.com>
18336             Javier Miranda  <miranda@adacore.com>
18337
18338         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18339         (P_Type_Declaration): Remove barrier against the reserved word "limited"
18340         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18341         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18342         private extensions.
18343         (P_Type_Declaration): Add the new actual Abstract_Present to every call
18344         to P_Interface_Type_Definition.
18345         (P_Interface_Type_Definition): Addition of one formal to report an error
18346         if the reserved word abstract has been previously found.
18347         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18348         object renaming declaration with an access definition or subtype mark
18349         with a possible null exclusion.
18350
18351         * par-ch9.adb: Minor error msg fix
18352
18353         * par-load.adb: Add missing continuation mark to error msg
18354
18355         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18356
18357 2006-10-31  Vincent Celier  <celier@adacore.com>
18358
18359         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18360         unknown attribute in unknown package or in package that does not need
18361         to be checked.
18362         (Parse_Package_Declaration): Do not issue warning for unknown package in
18363         quiet output.
18364
18365 2006-10-31  Vincent Celier  <celier@adacore.com>
18366
18367         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18368         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18369         Packages_To_Check.
18370
18371 2006-10-31  Vincent Celier  <celier@adacore.com>
18372
18373         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18374         on VMS, change "__" to '.' before checking the name.
18375         (Record_Ada_Source): Always add the source file name in the list of
18376         of sources, even if it is not the first time, as it is for another
18377         source index.
18378         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18379         dot, instead of replacing only the first '_'.
18380
18381         * prj-part.adb (Parse): Convert project file path to canonical form
18382
18383         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18384         extended, the project id of the project extending it is recorded in its
18385         data, even when it has already been processed as an imported project.
18386
18387 2006-10-31  Robert Dewar  <dewar@adacore.com>
18388
18389         * repinfo.adb (List_Entities): Don't list entities from renaming
18390         declarations.
18391
18392 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18393             Robert Dewar  <dewar@adacore.com>
18394
18395         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18396         only a restriction warning is active for the given restriction. This is
18397         desirable because we do not want to modify code in the case where only
18398         a warning is set.
18399         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18400         causes overriding of real restrictions.
18401         Take advantage of new No_Restrictions constant.
18402
18403         * raise.h: (__gnat_set_globals): Change profile.
18404
18405 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18406
18407         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18408
18409         * rtsfind.ads:
18410         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18411         Move all the entities in obsolete package System.PolyORB_Interface to
18412         System.Partition_Interface.
18413         (RE_Storage_Size): New function in System.Tasking.
18414         (RE_Get_Ceiling): New entity.
18415         (RE_Set_Ceiling): New entity.
18416         (RO_PE_Get_Ceiling): New entity.
18417         (RO_RE_Set_Ceiling): New entity.
18418         (Inherit_CPP_DT): New entity
18419
18420 2006-10-31  Robert Dewar  <dewar@adacore.com>
18421
18422         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18423         starting with a digit.
18424
18425 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18426             Thomas Quinot  <quinot@adacore.com>
18427             Javier Miranda  <miranda@adacore.com>
18428             Gary Dismukes  <dismukes@adacore.com>
18429
18430         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18431         properly an attempt to apply Unchecked_Access to a protected operation.
18432         (OK_Self_Reference): New subprogram to check the legality of an access
18433         attribute whose prefix is the type of an enclosing aggregate.
18434         Generalizes previous mechanism to handle attribute references nested
18435         arbitrarily deep within the aggregate.
18436         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18437         can appear in an aggregate if this is a default-initialized aggregate
18438         for a self-referential type.
18439         (Resolve_Attribute, case Access): Ditto.
18440         Add support for new implementation defined attribute Stub_Type.
18441         (Eval_Attribute, case Attribute_Stub_Type): New case.
18442         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18443         (Stream_Attribute_Available): Implement using new subprogram from
18444         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18445         Has_Specified_Stream_Attribute flag.
18446         Disallow Storage_Size and Storage_Pool for access to subprogram
18447         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18448         access types of return subtypes in extended return statements. Remove
18449         accessibility checks on anonymous access types when Unchecked_Access is
18450         used.
18451         (Analyze_Attribute): Add support for the use of 'Class to convert
18452         a class-wide interface to a tagged type.
18453         Add support for the attribute Priority.
18454         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18455         whether the designated type is discriminated with a constrained partial
18456         view and require static matching in that case.
18457         Add local variable Des_Btyp. The Designated_Type
18458         of an access to incomplete subtype is either its non-limited view if
18459         coming from a limited with or its etype if regular incomplete subtype.
18460
18461         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18462         Fix predicate to identify and allow cases of (expander-generated)
18463         references to tag of designated object of a RACW.
18464         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18465         non-static, and therefore cannot appear as a primary in a preelaborable
18466         package.
18467         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18468         Has_Read_Write_Attributes.
18469         (Has_Read_Write_Attributes): Reimplement in termes of
18470         Has_Stream_Attribute_Definition.
18471         (Missing_Read_Write_Attributes): When checking component types in a
18472         record, unconditionally call Missing_Read_Write_Attributes recursively
18473         (remove guard checking for Is_Record_Type / Is_Access_Type).
18474
18475 2006-10-31  Robert Dewar  <dewar@adacore.com>
18476
18477         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18478         useless assignments here and conditionalize it on absence of exception
18479         handlers.
18480         (Analyze_Exception_Handlers): Small code reorganization of error
18481         detection code, for new handling of formal packages.
18482
18483 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18484             Hristian Kirtchev  <kirtchev@adacore.com>
18485
18486         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18487         that has been constant-folded, preserve information of original tree,
18488         for ASIS uses.
18489         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18490         generated private extension declaration if the formal derived type is
18491         synchronized. Carry synchronized present over to the generated private
18492         extension.
18493         (Validate_Derived_Type_Instance): Ensure that the actual of a
18494         synchronized formal derived type is a synchronized tagged type.
18495         (Instantiate_Formal_Package): When creating the instantiation used to
18496         validate the actual package of a formal declared without a box, check
18497         whether the formal itself depends on a prior actual.
18498         (Instantiate_Formal_Subprogram): Create new entities for the defining
18499         identifiers of the formals in the renaming declaration, for ASIS use.
18500         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18501         a renaming declaration or a subtype declaration for an actual in an
18502         instance, capture location information of declaration in generic, for
18503         ASIS use.
18504         (Instantiate_Formal_Package): Add comments on needed additional tests.
18505         AI-317 (partial parametrization) is fully implemented.
18506         (Validate_Private_Type_Instance): Add check for actual which
18507         must have preelaborable initialization
18508         Use new // insertion for some continuation messages
18509         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18510         Default_Expression. Add type retrieval when the declaration has an
18511         access definition. Update premature usage of incomplete type check.
18512         (Check_Access_Definition): New subsidiary routine. Check whether the
18513         current compilation version is Ada 05 and the supplied node has an
18514         access definition.
18515         (Instantiate object): Alphabetize local variables. Handle the creation
18516         of new renaming declarations with respect to the kind of definition
18517         used - either an access definition or a subtype mark. Guard against
18518         unnecessary error message in the context of anonymous access types after
18519         they have been resolved. Add check for required null exclusion in a
18520         formal object declaration.
18521         (Switch_View): A private subtype of a non-private type needs to be
18522         switched (the base type can have been switched without its private
18523         dependents because of the last branch of Check_Private_View.
18524         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18525         value from BT.
18526         (Instantiate_Type): Emit an error message whenever a class-wide type of
18527         a tagged incomplete type is used as a generic actual.
18528         (Find_Actual_Type): Extend routine to handle a component type in a child
18529         unit that is imported from a formal package in a parent.
18530         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18531         agree on constrainedness, rather than checking against ultimate ancestor
18532         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18533         generic body, for navigation purposes.
18534
18535 2006-10-31  Robert Dewar  <dewar@adacore.com>
18536             Thomas Quinot  <quinot@adacore.com>
18537
18538         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18539         type.
18540         (New_Stream_Subprogram): When processing an attribute definition clause
18541         for a stream-oriented subprogram, record an entity node occurring at
18542         the point of clause to use for checking the visibility of the clause,
18543         as defined by 8.3(23) as amended by AI-195.
18544         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18545          New_Stream_Function and New_Stream_Procedure.
18546         (New_Stream_Function, New_Stream_Procedure): Removed.
18547         (Analyze_Attribute_Definition_Clause, case Address): Check new
18548         Alignment_Check check
18549
18550 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18551             Javier Miranda  <miranda@adacore.com>
18552             Robert Dewar  <dewar@adacore.com>
18553
18554         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18555         generate the same errors compiling under -gnatc.
18556         (Try_Object_Operation): If no candidate interpretation succeeds, but
18557         there is at least one primitive operation with the right name, report
18558         error in call rather than on a malformed selected component.
18559         (Analyze_Selected_Component): If the prefix is an incomplete type from
18560         a limited view, and the full view is available, use the full view to
18561         determine whether this is a prefixed call to a primitive operation.
18562         (Operator_Check): Verify that a candidate interpretation is a binary
18563         operation before checking the type of its second formal.
18564         (Analyze_Call): Add additional warnings for function call contexts not
18565         yet supported.
18566         (Analyze_Allocator): Move the check for "initialization not allowed for
18567         limited types" after analyzing the expression. This is necessary,
18568         because OK_For_Limited_Init looks at the structure of the expression.
18569         Before analysis, we don't necessarily know what sort of expression it
18570         is. For example, we don't know whether F(X) is a function call or an
18571         indexed component; the former is legal in Ada 2005; the latter is not.
18572         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18573         were missing. We also didn't handle qualified expressions. Now also
18574         allow function calls. Use new common routine OK_For_Limited_Init.
18575         (Analyze_Type_Conversion): Do not perform some legality checks in an
18576         instance, because the error message will be redundant or spurious.
18577         (Analyze_Overloaded_Selected_Component): Do not do style check when
18578         setting an entity, since we do not know it is the right entity yet.
18579         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18580         (Analyze_Overloaded_Selected_Component): Same change
18581         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18582         since regular incomplete subtypes are transformed into corresponding
18583         subtypes of their full views.
18584         (Complete_Object_Operation): Treat name of transformed subprogram call
18585         as coming from source, for browsing purposes.
18586         (Try_Primitive_Operation): If formal is an access parameter, compare
18587         with base type of object to determine whether it is a primitive
18588         operation.
18589         (Operator_Check): If no interpretation of the operator matches, check
18590         whether a use clause on any candidate might make the operation legal.
18591         (Try_Class_Wide_Operation): Check whether the first parameter is an
18592         access type whose designated type is class-wide.
18593
18594 2006-10-31  Robert Dewar  <dewar@adacore.com>
18595             Ed Schonberg  <schonberg@adacore.com>
18596             Gary Dismukes  <dismukes@adacore.com>
18597
18598         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18599         warn on infinite loops.
18600         Add \\ to some continuation messages
18601         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18602         (Process_Bounds): If the bounds are integer literals that result from
18603         constant-folding, and they carry a user-defined type, preserve that type
18604         rather than treating this as an integer range.
18605         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18606         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18607         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18608         left hand side of assignment.
18609         (Analyze_Assignment): Add suport to manage assigments to the attribute
18610         priority of a protected object.
18611         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18612         not just identifiers.
18613         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18614         or AND THEN for possible tracking.
18615         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18616         case of while loops so we can track values in the loop body.
18617
18618 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18619             Hristian Kirtchev  <kirtchev@adacore.com>
18620             Bob Duff  <duff@adacore.com>
18621
18622         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18623         procedure cannot be a protected operation (it is a basic_declaration,
18624         not a subprogram_declaration).
18625         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18626         Subp. Add logic for entry processing.
18627         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18628         Determine whether an entry or subprogram of a protected or task type
18629         override an inherited primitive of an implemented interface.
18630         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18631         Update the actual used in calls to Check_Overriding_Indicator.
18632         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18633         generate the proper reference to the parent unit, for cross-reference.
18634         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18635         Is_Formal.
18636         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18637         (Add_Extra_Formal): Revise procedure to allow passing in associated
18638         entity, scope, and name suffix, and handle setting of the new
18639         Extra_Formals field.
18640         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18641         pass new parameters. Add support for adding the new extra access formal
18642         for functions whose calls are treated as build-in-place.
18643         (Analyze_A_Return_Statement): Correct casing in error message.
18644         Move Pop_Scope to after Analyze_Function_Return, because an extended
18645         return statement really is a full-fledged scope. Otherwise, visibility
18646         doesn't work right. Correct use of "\" for continuation messages.
18647         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18648         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18649         the node doesn't get properly marked as analyzed.
18650         (Analyze_Subprogram_Body): If subprogram is a function that returns
18651         an anonymous access type that denotes a task, build a Master Entity
18652         for it.
18653         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18654         proper usage of null exclusion in a result definition.
18655         (Process_Formals): Code cleanup and new error message.
18656         (Process_Formals): Detect incorrect application of null exclusion to
18657         non-access types.
18658         (Conforming_Types): Handle conformance between [sub]types and itypes
18659          generated for entities that have null exclusions applied to them.
18660         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18661          base type is an access subtype. This case arrises with null exclusions.
18662         (New_Overloaded_Entity): Do not remove the overriden entity from the
18663         homonym chain if it corresponds with an abstract interface primitive.
18664         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18665         call to the synthesized predicate Is_Incomplete_Type.
18666         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18667         primitives.
18668         (Analyze_Subprogram_Declaration): Check that abstract interface
18669         primitives are abstract or null.
18670         (Analyze_Subprogram_Specification): Remove previous check for abstract
18671         interfaces because it was not complete.
18672         (Has_Interface_Formals): Removed.
18673
18674 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18675             Javier Miranda  <miranda@adacore.com>
18676
18677         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18678         of Analyze_Package_Body, to create Itype references for anonymous
18679         access types created in the package declaration, whose designated types
18680         may have only a limited view.
18681         (Analyze_Package_Specification): For the private part of a nested
18682         package, install private_with_clauses of enclosing compilation unit if
18683         we are in its visible part.
18684         (Declare_Inherited_Private_Subprograms): Complete barrier
18685         to ensure that the primitive operation has an alias to some parent
18686         primitive. This is now required because, after the changes done for the
18687         implementation of abstract interfaces, the contents of the list of
18688         primitives has entities whose alias attribute references entities of
18689         such list of primitives.
18690         (Analyze_Package_Specification): Simplify code that handles parent units
18691         of instances and formal packages.
18692         (Uninstall_Declarations): Check the convention consistency among
18693         primitive overriding operations of a tagged record type.
18694
18695 2006-10-31  Robert Dewar  <dewar@adacore.com>
18696             Hristian Kirtchev  <kirtchev@adacore.com>
18697             Javier Miranda  <miranda@adacore.com>
18698             Ed Schonberg  <schonberg@adacore.com>
18699
18700         * sem_ch8.adb: Minor error msg rewording
18701         (Undefined): When checking for misspellings, invert arguments (to get
18702         expected and found set right)
18703         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18704         (Analyze_Generic_Renaming): Same fix
18705         (Use_One_Package): Do not take into account the internal entities of
18706         abstract interfaces during the analysis of entities that are marked
18707         as potentially use-visible.
18708         (Find_Type): Handle the case of an attribute reference for
18709         implementation defined attribute Stub_Type (simply let the analysis of
18710         the attribute reference rewrite it).
18711         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18712         type that appears in a Use_Type clause.
18713         (Analyze_Object_Renaming): Add support for renaming of the Priority
18714         attribute.
18715         (Find_Type): In Ada 2005, a task type can be used within its own body,
18716         when it appears in an access definition.
18717         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18718         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18719          in a formal object declaration or in a subtype declaration.
18720         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18721         (Check_Null_Exclusion): New local routine to
18722         Analyze_Subprogram_Renaming. Check whether the formals and return
18723         profile of a renamed subprogram have required null exclusions when
18724         their counterparts of the renaming already impose them.
18725         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18726         Determine whether an entity is inside a generic scope.
18727         (In_Open_Scope): First pass of documentation update.
18728         (Find_Expanded_Name): Add support for shadow entities associated with
18729         limited withed packages. This is required to handle nested packages.
18730         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18731         that makes a renaming of a limited withed package illegal.
18732
18733 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18734             Ed Schonberg  <schonberg@adacore.com>
18735
18736         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18737         Check_Overriding_Indicator.
18738         (Analyze_Task_Definition): Ditto.
18739         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18740         (Check_Overriding_Indicator): To find overridden interface operation,
18741         examine only homonyms that have an explicit subprogram declaration, not
18742         inherited operations created by an unrelated type derivation.
18743         (Check_Overriding_Indicator): When checking for the presence of "null"
18744         in a procedure, ensure that the queried node is a procedure
18745         specification.
18746         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18747         type when the formal is an access to variable.
18748         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18749         (Analyze_Task_Type): Same addition
18750         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18751         provide navigation capabilities for entries.
18752
18753 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18754             Ed Schonberg  <schonberg@adacore.com>
18755             Javier Miranda  <miranda@adacore.com>
18756             Gary Dismukes  <dismukes@adacore.com>
18757
18758         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18759         inherited from an interface ancestor by another interface in the
18760         context of an instance as 'late'.
18761         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18762         of a call to a function that dispatches on access result.
18763         (Check_Dispatching_Operation): In case of late overriding of a primitive
18764         that covers abstract interface subprograms we register it in all the
18765         secondary dispatch tables associated with abstract interfaces.
18766         (Check_Dispatching_Call): Add check that a dispatching call is not made
18767         to a function with a controlling result of a limited type. This is a
18768         current implementation restriction.
18769         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18770         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18771         argument is an interface type that is a generic formal.
18772         (Is_Interface_Subprogram): Removed.
18773         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18774         operation, check the formals to handle the case in which it is
18775         associated with an abstract interface type.
18776
18777 2006-10-31  Robert Dewar  <dewar@adacore.com>
18778             Ed Schonberg  <schonberg@adacore.com>
18779
18780         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18781         Add new calls to this procedure during traversal
18782         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18783         another unit if expansion is disabled.
18784
18785 2006-10-31  Robert Dewar  <dewar@adacore.com>
18786
18787         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18788         Current_Value in the conditional case, to evaluate additional
18789         comparisons at compile time.
18790
18791 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18792             Hristian Kirtchev  <kirtchev@adacore.com>
18793             Javier Miranda  <miranda@adacore.com>
18794
18795         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18796         subprogram type to provide better diagnostics in case of ambiguity.
18797         (Covers): Handle coverage of formal and actual anonymous access types in
18798         the context of generic instantiation.
18799         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18800         abstract interface types; this is required to handle concurrent types
18801         with discriminants and abstract interface types.
18802         (Covers): Include type coverage of both regular incomplete subtypes and
18803         incomplete subtypes of incomplete type visibles through a limited with
18804         clause.
18805
18806 2006-10-31  Robert Dewar  <dewar@adacore.com>
18807             Hristian Kirtchev  <kirtchev@adacore.com>
18808             Ed Schonberg  <schonberg@adacore.com>
18809
18810         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18811         messages for entities in packages which are not used.
18812         (Collect_Synchronized_Interfaces): New procedure.
18813         (Overrides_Synchronized_Primitive): New function.
18814         (Denotes_Discriminant): Extend predicate to apply to task types.
18815         Add missing continuation marks in error msgs
18816         (Unqualify): New function for removing zero or more levels of
18817         qualification from an expression. There are numerous places where this
18818         ought to be used, but we currently only deal properly with zero or one
18819         level.
18820         (In_Instance); The analysis of the actuals in the instantiation of a
18821         child unit is not within an instantiation, even though the parent
18822         instance is on the scope stack.
18823         (Safe_To_Capture_Value): Exclude the case of variables that are
18824         renamings.
18825         (Check_Obsolescent): Removed
18826         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18827         is an aliased view, even when rewritten as a reference to the target
18828         object in an assignment.
18829         (Get_Subprogram_Entity): New function
18830         (Known_To_Be_Assigned): New function
18831         (Type_Access_Level): Compute properly the access level of a return
18832         subtype that is an anonymous access type.
18833         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18834         (Is_Transfer): The new extended_return_statement causes a transfer of
18835         control.
18836         (Has_Preelaborable_Initialization): New function
18837         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18838         has a null exclusion depending on its Nkind.
18839         Change Is_Lvalue to May_Be_Lvalue
18840         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18841         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18842         (Safe_To_Capture_Value): Extend functionality so it can be used for
18843         the current value condition case.
18844         (Has_Compatible_Alignment): New function
18845         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18846         objects to handle the Ada 2005 case, where aliasedness no longer implies
18847         that the object is constrained. In particular, for dereferenced names,
18848         the designated object must be assumed to be unconstrained.
18849         (Kill_Current_Values): Properly deal with the case where we encounter
18850         a loop in the scope chain.
18851         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18852         a value.
18853         (Compile_Time_Constraint_Error): Improve error message in error case
18854
18855         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18856         associated with entities of abstract interface primitives.
18857         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18858
18859 2006-10-31  Robert Dewar  <dewar@adacore.com>
18860
18861         * s-osinte-tru64.adb:
18862         Mark Asm statements Volatile to prevent warnings (seems a
18863         reasonable change anyway)
18864         Fixes new warnings
18865
18866         * s-mastop-irix.adb: Add Volatile to Asm statements
18867         Suppresses warning, and seems appropriate in any case
18868
18869         * s-osinte-vms.adb: Add Volatile to Asm statement
18870
18871         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18872
18873         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18874         returned.
18875         Add call to Check_Code_Statement
18876
18877 2006-10-31  Robert Dewar  <dewar@adacore.com>
18878             Ed Schonberg  <schonberg@adacore.com>
18879             Bob Duff  <duff@adacore.com>
18880
18881         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18882         Synchronized_Present): Add Formal_Derived_Type_Definition and
18883         Private_Extension_Declaration to the list of assertions.
18884         (Is_Entry_Barrier_Function): New flag
18885         (Has_Self_Reference): New flag on aggregates, to indicate that they
18886         contain a reference to the enclosing type, inserted through a default
18887         initialization.
18888         (Next_Rep_Item): Move from Node4 to Node5.
18889         (Entity): Add this field for N_Attribute_Definition_Clause.
18890         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18891         (N_Return_Object_Declaration): Remove this node kind. We now use
18892         N_Object_Declaration instead.
18893         (Actual_Designated_Subtype): Move to a different place to make room in
18894         N_Extended_Return_Statement.
18895         (Procedure_To_Call): Move to a different place to make room in
18896         N_Extended_Return_Statement.
18897         (Return_Type): Removed this field to make room in return statements
18898         (both kinds).
18899         (Return_Statement_Entity): New field in return statements, in part to
18900         replace Return_Type, and in part to support the fact that return
18901         statements are now pushed on the scope stack during semantic analysis.
18902         (Return_Object_Declarations): New field to support extended return
18903         statements.
18904         (N_Extended_Return_Statement): New node for extended_return_statement
18905         nonterminal.
18906         (N_Return_Object_Declaration): New node for part of
18907         extended_return_statement nonterminal. Needed because all the necessary
18908         fields won't fit in N_Extended_Return_Statement.
18909         Generic_associations now carry the Box_Present flag, to indicate a
18910         default for an actual in a partially parametrized formal package.
18911
18912         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18913         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18914         and for the new predefined dispatching policies: EDF_Across_Priorities,
18915         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18916         Introduce new name Stub_Type for implementation defined attribute.
18917         Add pragma Preelaborable_Initialization
18918         Add entry for Priority attribute.
18919         Add Pragma_Wide_Character_Encoding
18920         (Get_Convention_Name): Given a convention id, this function returns the
18921         corresponding name id from the names table.
18922
18923 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18924             Robert Dewar  <dewar@adacore.com>
18925             Bob Duff  <duff@adacore.com>
18926
18927         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18928         print null exclusion twice in the case of an access definition,
18929         Implement new -gnatL switch
18930         Remove N_Return_Object_Declaration. We now use
18931         N_Object_Declaration instead. Implement the case for
18932         N_Extended_Return_Statement. Alphabetize the cases.
18933         Add cases for new nodes N_Extended_Return_Statement and
18934         N_Return_Object_Declaration. The code is not yet written.
18935         Update the output for N_Formal_Object_Declaration
18936         and N_Object_Renaming_Declaration.
18937         (Write_Itype): Account for the case of a modular integer subtype whose
18938         base type is private.
18939
18940 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18941
18942         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18943         Remove elaboration code, now done in the binder.
18944
18945         * s-rident.ads: Make this unit Preelaborate.
18946         (No_Restrictions): New constant used to clean up code and follow
18947         preelaborate constraints.
18948
18949         * s-stalib.adb:
18950         Add System.Restrictions dependence, referenced directly from the
18951         binder generated file.
18952
18953 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18954
18955         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18956         True when AAMP extended floating-point is in use (48-bit). Change type
18957         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18958         the two byte array types on AFloat. Change type of IV_Ilf overlay
18959         variable from Byte8 to ByteLF. Add appropriate initializations of
18960         floating-point overlays for AAMP cases.
18961
18962 2006-10-31  Javier Miranda  <miranda@adacore.com>
18963
18964         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18965         (Get_Ceiling): New subprogram that returns
18966         the ceiling priority of the protected object.
18967         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18968         the protected object.
18969
18970         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18971
18972         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18973
18974 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18975
18976         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18977         requeuing to the same protected object to give higher priority tasks
18978         the opportunity to execute.
18979
18980 2006-10-31  Robert Dewar  <dewar@adacore.com>
18981
18982         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18983         add more precise check for the character sequence that follows '[' to
18984         avoid possible confusion in case if '[' is the last character of a
18985         string literals.
18986         (Scan_Wide): Always allow brackets encoding
18987
18988 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18989
18990         * s-stchop.ads: make this unit preelaborate. This is desirable in
18991         general and made mandatory by the use of this unit by s-taprop which
18992         is itself preelaborate.
18993
18994         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18995         Td_Events component.
18996
18997 2006-10-31  Vincent Celier  <celier@adacore.com>
18998
18999         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19000         in file names.
19001
19002 2006-10-31  Vincent Celier  <celier@adacore.com>
19003
19004         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19005
19006 2006-10-31  Vincent Celier  <celier@adacore.com>
19007
19008         * makegpr.adb (Check_Compilation_Needed): Take into account path names
19009         with spaces.
19010         (Check_Compilation_Needed): When checking a C or C++ source, do not
19011         resolve symbolic links.
19012         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19013         When not in verbose mode and Ellipse is True, display "..." for the
19014         first argument with Display set to False.
19015         (Build_Global_Archive): Always set Display True for the first object
19016         file. Call Display_Command with Ellipse set to True.
19017
19018 2006-10-31  Matt Heaney  <heaney@adacore.com>
19019
19020         * a-crbtgo.ads: Commented each subprogram
19021
19022         * a-crbtgo.adb: Added reference to book from which algorithms were
19023         adapted.
19024
19025         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19026         indicate which child.
19027         (Generic_Conditional_Insert): changed parameter name from "Success" to
19028         "Inserted".
19029         (Generic_Unconditional_Insert_With_Hint): improved algorithm
19030
19031         * a-coorse.adb (Replace_Element): changed parameter name in call to
19032         conditional insert operation.
19033
19034         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19035
19036         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19037         Generic_Iteration
19038
19039         * a-ciorse.adb (Replace_Element): changed parameter name in call to
19040         conditional insert operation.
19041
19042         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19043         Generic_Iteration.
19044
19045         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19046         instead of mode inout.
19047
19048         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19049         draft
19050         (Generic_Read): preserve existing buckets array if possible
19051         (Generic_Write): don't send buckets array length anymore
19052
19053         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19054         instead of mode inout.
19055
19056         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19057         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19058
19059         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19060         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19061         (Replace_Element): local operation is now an instantiation
19062
19063         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19064         check current length.
19065         (Generic_Replace_Element): new operation
19066
19067 2006-10-31  Doug Rupp  <rupp@adacore.com>
19068
19069         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19070         Call TBK$SYMBOLIZE without omitting parameters.
19071
19072 2006-10-31  Vincent Celier  <celier@adacore.com>
19073
19074         * symbols-processing-vms-ia64.adb,
19075         symbols-processing-vms-alpha.adb (Process): Do not include symbols
19076         that come from generic instantiations in bodies.
19077
19078 2006-10-31  Pat Rogers  <rogers@adacore.com>
19079
19080         * a-rttiev.ads, a-rttiev.adb:
19081         This is a significant redesign primarily for the sake of automatic
19082         timer task termination but also to fix a design flaw.
19083         Therefore we are now using an RTS lock, instead of a protected
19084         object, to provide mutual exclusion to the queue of pending events
19085         and the type Timing_Event is no longer a protected type.
19086
19087 2006-10-31  Robert Dewar  <dewar@adacore.com>
19088             Cyrille Comar  <comar@adacore.com>
19089             Ben Brosgol  <brosgol@adacore.com>
19090
19091         * debug.adb:  Update flags documentation
19092
19093         * gnat_ugn.texi: Add documentation for new -gnatwq switch
19094         Clean up documentation for several other warning switches
19095         Clarify how task stack size can be specified with various
19096         versions of Windows.
19097         Add note that -gnatVo includes ranges including loops
19098         Add documentation for -gnatL switch
19099         Add note on elaboration warning for initializing variables
19100         Add documentation for new -gnatwt warning switch
19101         Document new form of pragma Warnings (On|Off, string)
19102         Add comment on use of pragma Warnings to control warnings
19103         Add documentation for -gnatjnn switch
19104         Modify section on interfacing with C for VMS 64-bit.
19105         Add doc for -gnatVe/E
19106         Add documentation of new warning flags -gnatww/-gnatwW
19107         Add warnings about address clause overlays to list of warnings
19108         (Exception Handling Control): Document that the option --RTS must be
19109         used consistently for gcc and gnatbind.
19110         Clarify that inlining is not always possible
19111         Update documentation on pragma Unchecked_Union.
19112
19113         * gnat_rm.texi:
19114         Add documentation for new extended version of pragma Obsolescent
19115         Add documentation for implementation defined attribute 'Stub_Type.
19116         Add note on use of Volatile in asm statements
19117         Add documentation on use of pragma Unreferenced in context clause
19118         Document new form of pragma Warnings (On|Off, pattern)
19119         Document pragma Wide_Character_Encoding
19120         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19121         enforced if code generation is active.
19122         Add section on pragma Suppress to document GNAT specific check
19123         Alignment_Check
19124         Clarify difference between No_Dispatching_Calls & No_Dispatch.
19125         Add documentation for pragma Restrictions (No_Elaboration_Code)
19126
19127         * gnat-style.texi:
19128         Add comments on layout of subprogram local variables in the
19129         presence of nested subprograms.
19130
19131         * ug_words: Resync.
19132
19133         * elists.ads: Minor reformatting
19134         Node returns Node_Or_Entity_Id (doc change only)
19135
19136         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19137
19138         * g-arrspl.ads (Create): Update comments.
19139
19140         * sem.ads: Add details on the handling of the scope stack.
19141
19142         * usage.adb: Update documentation.
19143
19144         * validsw.ads, validsw.adb:
19145         Add definition of Validity_Check_Components and implement -gnatVe/E
19146
19147         * vms_data.ads: Add missing VMS qualifiers.
19148
19149         * s-addope.ads: Add documentation on overflow and divide by zero
19150
19151 2006-10-31  Robert Dewar  <dewar@adacore.com>
19152             Thomas Quinot  <quinot@adacore.com>
19153             Arnaud Charlet  <charlet@adacore.com>
19154
19155         * fmap.adb: Put routines in alpha order
19156
19157         * g-boumai.ads: Remove redundant 'in' keywords
19158
19159         * g-cgi.adb: Minor reformatting
19160
19161         * g-cgi.ads: Remove redundant 'in' keywords
19162
19163         * get_targ.adb: Put routines in alpha order
19164
19165         * prj-attr.ads: Minor reformatting
19166
19167         * s-atacco.ads: Minor reformatting
19168
19169         * scn.adb: Put routines in alpha order
19170
19171         * sinput-l.adb: Minor comment fix
19172
19173         * sinput-p.adb: Minor comment fix
19174
19175         * s-maccod.ads: Minor reformatting
19176
19177         * s-memory.adb: Minor reformatting
19178
19179         * s-htable.adb: Fix typo in comment.
19180
19181         * s-secsta.adb: Minor comment update.
19182
19183         * s-soflin.adb: Minor reformatting
19184
19185         * s-stoele.ads:
19186         Add comment about odd qualification in Storage_Offset declaration
19187
19188         * s-strxdr.adb:
19189         Remove unnecessary 'in' keywords for formal parameters.
19190
19191         * treeprs.adt: Minor reformatting
19192
19193         * urealp.adb: Put routines in alpha order
19194
19195         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19196         taking string.
19197
19198         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19199
19200         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19201
19202         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19203         workaround as on other platforms.
19204
19205         * g-eacodu-vms.adb: Remove redundant 'in' keywords
19206         * g-expect-vms.adb: Remove redundant 'in' keywords
19207
19208         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19209         clear error message if the list-of-files file cannot be opened.
19210
19211         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19212         equality operator is always visible.
19213
19214         * lang.opt: Woverlength-strings: New option.
19215
19216         * nmake.adt:
19217         Update copyright, since nmake.ads and nmake.adb have changed.
19218
19219         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19220         (Binder_Output_Time_Stamps_Set): removed.
19221         (Old_Binder_Output_Time_Stamp): idem.
19222         (New_Binder_Output_Time_Stamp): idem.
19223         (Recording_Time_From_Last_Bind): idem.
19224         (Recording_Time_From_Last_Bind): Make constant.
19225
19226         * output.ads, output.adb (Write_Str): Allow LF characters
19227         (Write_Spaces): New procedure
19228
19229         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19230
19231         * inline.adb: Minor reformatting
19232
19233         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19234
19235         * s-mastop-vms.adb: Remove redundant 'in' keywords
19236
19237         * s-osprim-vms.adb: Remove redundant 'in' keywords
19238
19239         * s-trafor-default.adb: Remove redundant 'in' keywords
19240
19241         * 9drpc.adb: Remove redundant 'in' keywords
19242
19243         * s-osinte-mingw.ads: Minor reformatting
19244
19245         * s-inmaop-posix.adb: Minor reformatting
19246
19247         * a-direio.ads: Remove quotes from Compile_Time_Warning message
19248
19249         * a-exexda.adb: Minor code reorganization
19250
19251         * a-filico.adb: Minor reformatting
19252
19253         * a-finali.adb: Minor reformatting
19254
19255         * a-nudira.ads: Remove quote from Compile_Time_Warning message
19256
19257         * a-numeri.ads: Minor reformatting
19258
19259         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19260
19261         * exp_pakd.ads: Fix obsolete comment
19262
19263         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19264         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19265         Probably not a bug, but certainly neater and more efficient.
19266
19267         * a-tienio.adb: Minor reformatting
19268
19269         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19270         Avoid assuming low bound of string is 1.
19271
19272         * gnatbind.adb: Change Bindusg to package and rename procedure as
19273         Display, which now ensures that it only outputs usage information once.
19274         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19275
19276         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19277         Table'First.
19278
19279         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19280         warning.
19281         (Match): Add pragma Assert to ensure that Matches'First is zero
19282
19283         * g-regpat.ads (Match): Document that Matches lower bound must be zero
19284
19285         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19286         documented preconditions (also kills warnings about bad indexes).
19287
19288         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19289         is 1.
19290         (Build_Import_Library): Ditto;
19291
19292         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19293
19294         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19295
19296         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19297         lower bound of choice table is 1.
19298
19299         * sem_case.ads (Analyze_Choices): Document that lower bound of
19300         Choice_Table is 1.
19301
19302         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19303         string is 1.
19304
19305         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19306         and add appropriate Assert pragma to suppress warnings.
19307
19308         * atree.h, atree.ads, atree.adb
19309         Change Elist24 to Elist25
19310         Add definitions of Field28 and Node28
19311         (Traverse_Field): Use new syntactic parent table in sinfo.
19312
19313         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19314
19315         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19316
19317         * exp_tss.adb: Put routines in alpha order
19318
19319         * fe.h: Remove redundant declarations.
19320
19321 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19322
19323         * utils.c (builtin_function): Rename to gnat_builtin_function.
19324         Move common code to add_builtin_function.
19325         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19326         gnat_builtin_function.
19327         * gigi.h (builtin_function): Rename to gnat_builtin_function.
19328         Change the signature.
19329
19330 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
19331
19332         * Makefile.in: Add TEXI2PDF definition.
19333         * Make-lang.in: Add "ada.pdf" target.
19334
19335 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
19336
19337         * decl.c, utils.c: Fix comment typos.
19338         * utils.c: Fix a typo.
19339
19340 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
19341
19342         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19343         on "pure" Ada subprograms if SJLJ exceptions are used.
19344         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19345         on the declaration node of JMPBUF_SAVE.
19346         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19347         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19348         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19349
19350 2006-08-20  Laurent Guerby  <laurent@guerby.net>
19351
19352         PR ada/28716
19353         g-socket.adb (Bind_Socket): Call Set_Address.
19354
19355 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
19356
19357         PR ada/15802
19358         * decl.c (same_discriminant_p): New static function.
19359         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19360         subtype and we have discriminants, fix up the COMPONENT_REFs
19361         for the discriminants to make them reference the corresponding
19362         fields of the parent subtype after it has been built.
19363
19364 2006-09-15  Roger Sayle  <roger@eyesopen.com>
19365
19366         PR ada/18817
19367         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19368         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19369
19370 2006-09-13  Olivier Hainque  <hainque@adacore.com>
19371
19372         PR ada/29025
19373         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19374         of a SAVE_EXPR, just make the operand addressable/not-readonly and
19375         let the common gimplifier code make and propagate a temporary copy.
19376         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19377         out/in-out actuals and defer setting the addressable/readonly bits
19378         to the gimplifier.
19379
19380 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19381
19382         PR ada/28591
19383         * decl.c (components_to_record): Defer emitting debug info for the
19384         record type associated with the variant until after we are sure to
19385         actually use it.
19386
19387 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19388
19389         PR ada/21952
19390         * gigi.h (gnat_internal_attribute_table): Declare.
19391         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19392         * utils.c (gnat_internal_attribute_table): New global variable.
19393         (builtin_function): Always call decl_attributes on the builtin.
19394         (handle_const_attribute): New static function.
19395         (handle_nothrow_attribute): Likewise.
19396
19397 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19398
19399         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19400
19401 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19402
19403         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19404         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19405
19406 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19407             Eric Botcazou  <ebotcazou@adacore.com>
19408
19409         PR ada/18692
19410         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19411         check-gnat into check-acats.
19412
19413 2006-06-17  Karl Berry  <karl@gnu.org>
19414
19415         * gnat-style.texi (@dircategory): Use "Software development"
19416         instead of "Programming", following the Free Software Directory.
19417
19418 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19419
19420         PR ada/27944
19421         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19422
19423 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19424
19425         PR ada/27769
19426         mlib-utl.adb: Use Program_Name.
19427
19428 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19429
19430         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19431         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19432         trans.c, utils.c: Fix comment typos.  Follow spelling
19433         conventions.
19434         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19435         conventions.
19436
19437 2006-05-19  Nicolas Setton  <setton@adacore.com>
19438
19439         * misc.c (gnat_dwarf_name): New function.
19440         (LANG_HOOKS_DWARF_NAME): Define to it.
19441
19442 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19443
19444         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19445         (ada/misc.o): Likewise.
19446         (ada/utils.o): Likewise.
19447
19448 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19449
19450         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19451         * s-osinte-kfreebsd-gnu.ads: New file.
19452
19453 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19454
19455         * Make-lang.in: Rename docdir to gcc_docdir.
19456
19457 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19458
19459         * gigi.h (get_ada_base_type): Delete.
19460         * utils2.c (get_ada_base_type): Likewise.
19461         * trans.c (convert_with_check): Operate in the real base type.
19462
19463 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19464
19465         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19466
19467 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19468
19469         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19470         whether to make the decl common.
19471
19472 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19473
19474         * Make-lang.in (Ada): Remove.
19475         (.PHONY): Remove Ada
19476
19477 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19478
19479         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19480         aggregate, check the interpretations of the other operand to find one
19481         that may be a boolean array.
19482
19483         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19484         the prefix is a private extension.
19485
19486 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19487
19488         PR ada/26315
19489         * utils2.c (find_common_type): If both input types are BLKmode and
19490         have the same constant size, keep using the first one.
19491
19492         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19493
19494         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19495
19496         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19497
19498 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19499
19500         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19501         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19502         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19503         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19504         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19505         aborted while owning a lock.
19506
19507 2006-02-17  Javier Miranda  <miranda@adacore.com>
19508             Robert Dewar  <dewar@adacore.com>
19509
19510         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19511         through an access to class-wide interface we force the displacement of
19512         the pointer to the allocated object to reference the corresponding
19513         secondary dispatch table.
19514         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19515         if Long_Shifts are supported on the target, even if 64 bit divides
19516         are not supported (configurable run time mode).
19517         (Expand_N_Type_Conversion): Do validity check if validity checks on
19518         operands are enabled.
19519         (Expand_N_Qualified_Expression): Do validity check if validity checks
19520         on operands are enabled.
19521
19522 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19523
19524         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19525         must be materialized when the renamed expression is an explicit
19526         dereference.
19527
19528 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19529
19530         * freeze.adb (Statically_Discriminated_Components): Return false if
19531         the bounds of the type of the discriminant are not static expressions.
19532
19533         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19534         the bounds of the discriminant type are not static.
19535
19536 2006-02-17  Robert Dewar  <dewar@adacore.com>
19537
19538         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19539         then we close To if it is valid.
19540
19541 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19542
19543         * init.c (facility_resignal_table): new array
19544         (__gnat_default_resignal_p): enhance default predicate to resignal if
19545         VMS condition has one of the predefined facility codes.
19546
19547 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19548
19549         * Makefile.in: Use VMS64 specialized versions of several units in
19550         Interfaces.C hierarchy to be compatible with HP C default size choices.
19551         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19552
19553 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19554
19555         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19556         instantiation, the corresponding entity is the related_instance of the
19557         wrapper package created for the instance.
19558
19559 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19560
19561         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19562         the current instance is nested within another instance in a child unit.
19563
19564 2006-02-17  Javier Miranda  <miranda@adacore.com>
19565             Ed Schonberg  <schonberg@adacore.com>
19566
19567         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19568         type we cannot inherit the primitive operations; we inherit the
19569         Corresponding_Record_Type (which has the list of primitive operations).
19570         (Check_Anonymous_Access_Types): When creating anonymous access types for
19571         access components, use Rewrite in order to preserve the tree structure,
19572         for ASIS use.
19573         (Analyze_Object_Declaration): For limited types with access
19574         discriminants with defaults initialized by an aggregate, obtain
19575         subtype from aggregate as for other mutable types.
19576         (Derived_Type_Declaration): If the derived type is a limited interface,
19577         set the corresponding flag (Is_Limited_Record is not sufficient).
19578
19579 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19580
19581         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19582         to inline a function that returns an unconstrained type, the return
19583         expression must be the first variable declared in the body of the
19584         function.
19585
19586 2006-02-17  Javier Miranda  <miranda@adacore.com>
19587
19588         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19589         abstract interface type, the static analysis is not enough to know if
19590         the interface is implemented or not by the source tagged type. Hence
19591         we must pass the work to the expander to generate the required code to
19592         evaluate the conversion at run-time.
19593         (Resolve_Equality_Op): Do not apply previous
19594         transformation if expansion is disasbled, to prevent anomalies when
19595         locating global references in a generic unit.
19596
19597 2006-02-17  Vincent Celier  <celier@adacore.com>
19598
19599         * snames.ads, snames.adb: New standard names for new project attributes:
19600         archive_builder, archive_indexer, compiler_pic_option,
19601         config_body_file_name, config_body_file_name_pattern,
19602         config_file_switches, config_file_unique, config_spec_file_name,
19603         config_spec_file_name_pattern, default_builder_switches,
19604         default_global_compiler_switches, default_language,
19605         dependency_file_kind, global_compiler_switches, include_path,
19606         include_path_file, language_kind, linker_executable_option,
19607         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19608         roots, runtime_project.
19609
19610 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19611
19612         * a-convec.ads, a-convec.adb:
19613         (operator "&"): handle potential overflow for large index types
19614         (Insert): removed Contraint_Error when using large index types
19615         (Insert_Space): removed Constraint_Error for large index types
19616         (Length): moved constraint check from Length to Insert
19617
19618         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19619         as not null access.
19620         Explicit raise statements now include an exception message.
19621         (operator "&"): handle potential overflow for large index types
19622         (Insert): removed Contraint_Error when using large index types
19623         (Insert_Space): removed Constraint_Error for large index types
19624         (Length): moved constraint check from Length to Insert
19625
19626 2006-02-17  Robert Dewar  <dewar@adacore.com>
19627
19628         * s-wchcnv.adb: Document handling of [ on output (we do not change
19629         this to ["5B"] and the new comments say why not.
19630
19631         * gnat_ugn.texi:
19632         Add note for -gnatVo that this now includes the cases of type
19633         conversions and qualified expressions.
19634         Add comments on handling of brackets encoding for Text_IO
19635
19636 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19637             Thomas Quinot  <quinot@adacore.com>
19638             Robert Dewar  <dewar@adacore.com>
19639             Javier Miranda  <miranda@adacore.com>
19640
19641         * expander.adb: Fix typo in comment
19642
19643         * exp_pakd.adb: Fix typo
19644         Minor comment reformatting.
19645
19646         * g-dyntab.adb: Minor reformatting
19647
19648         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19649         aliased subprograms to look for the abstract interface subprogram.
19650
19651 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19652
19653         * env.c (__gnat_setenv): Use size_t.
19654         (__gnat_unsetenv): Likewise.
19655         (__gnat_clearenv): Likewise.
19656
19657 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19658
19659         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19660
19661 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19662
19663         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19664         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19665         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19666         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19667         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19668         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19669         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19670         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19671         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19672         no longer used.
19673
19674 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19675
19676         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19677         protection against race conditions is not needed.
19678         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19679         fallback handler.
19680         (Set_Specific_Handler): Add mutual exclusive access to the specific
19681         handler.
19682         (Specific_Handler): Add mutual exclusive access for retrieving the
19683         specific handler.
19684
19685         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19686         back handler.
19687
19688         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19689         Fall_Back_Handler and Specific_Handler.
19690
19691         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19692         termination handlers.
19693         Set two different owerflow depending on the maximal stack size.
19694
19695         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19696         protection against race conditions is not needed when executing the
19697         task termination handler.
19698
19699 2006-02-13  Robert Dewar  <dewar@adacore.com>
19700
19701         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19702         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19703         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19704         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19705         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19706         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19707         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19708         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19709         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19710         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19711         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19712         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19713         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19714         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19715         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19716         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19717         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19718         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19719         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19720         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19721         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19722         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19723         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19724         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19725         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19726         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19727         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19728         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19729         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19730         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19731         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19732         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19733         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19734         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19735         reformatting.
19736
19737 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19738
19739         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19740         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19741         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19742         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19743         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19744         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19745         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19746         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19747         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19748
19749 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19750
19751         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19752         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19753         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19754         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19755         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19756         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19757         replaced by anonymous access type.
19758         (pthread_sigmask): Now take an access sigset_t
19759
19760         * s-osinte-hpux.ads:  Ditto.
19761         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19762         properly 32 and 64 bit ABIs.
19763
19764 2006-02-13  Pascal Obry  <obry@adacore.com>
19765
19766         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19767         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19768         s-taprop-linux.adb, s-taprop-solaris.adb,
19769         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19770         adjustement is already done when calling this routine.
19771
19772 2006-02-13  Pascal Obry  <obry@adacore.com>
19773
19774         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19775         table to take advantage of the 16 priority levels available on Windows
19776         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19777         supported by this new mapping.
19778
19779 2006-02-13  Nicolas Setton  <setton@adacore.com>
19780
19781         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19782         (get_encoding): New subprogram. Extracts the encodings from an encoded
19783         Ada name.
19784
19785 2006-02-13  Pascal Obry  <obry@adacore.com>
19786             Nicolas Roche  <roche@adacore.com>
19787             Arnaud Charlet  <charlet@adacore.com>
19788
19789         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19790         support.
19791         (__gnat_try_lock): Add unicode support by using a specific section on
19792         Windows.
19793         (__gnat_get_current_dir): Idem.
19794         (__gnat_open_read): Idem.
19795         (__gnat_open_rw): Idem.
19796         (__gnat_open_create): Idem.
19797         (__gnat_create_output_file): Idem.
19798         (__gnat_open_append): Idem.
19799         (__gnat_open_new): Idem.
19800         (__gnat_file_time_name): Idem.
19801         (__gnat_set_file_time_name): Idem.
19802         (__gnat_stat): Idem.
19803         (win32_no_block_spawn): Idem.
19804         (__gnat_locate_exec_on_path): Idem.
19805         (__gnat_opendir): New routine.
19806         (__gnat_closedir): Idem.
19807         (__gnat_readdir): Add new parameter length (pointer to int). Update
19808         implementation to use it and add specific Win32 code for Unicode
19809         support.
19810         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19811         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19812         (convert_addresses): Do not define this dummy routine on VMS.
19813
19814         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19815         runtime Unicode support will be activated.
19816         (S2WS): String to Wide-String conversion. This version just copy a
19817         string in non Unicode version.
19818         (WS2S): Wide-String to String conversion. This version just copy a
19819         string in non Unicode version.
19820
19821         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19822         (Open): Now import __gnat_opendir from adaint.c.
19823         (Read): Change the implementation to support unicode characters. It is
19824         not possible to use strlen() on Windows as this version supports only
19825         standard ASCII characters. So the length of the directory entry is now
19826         returned from the imported __gnat_readdir routine.
19827         Update copyright notice.
19828
19829         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19830         (opendir): Moved to adaint.c.
19831
19832         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19833         (Get_Directory): Fix wrong indexing.
19834         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19835         __gnat_getenv from env.c
19836         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19837         from env.c
19838
19839         * env.h, env.c: New file.
19840
19841         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19842         adaint.c by __gnat_getenv from env.c
19843
19844         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19845         adaint.c by __gnat_getenv from env.c
19846
19847         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19848         and gnatbind.
19849         Update dependencies.
19850
19851 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19852             Olivier Hainque  <hainque@adacore.com>
19853             Eric Botcazou  <ebotcazou@adacore.com>
19854
19855         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19856
19857         * gigi.h (value_factor_p): Add prototype and description, now public.
19858
19859         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19860         promotion for field with rep clause if the associated size was proven
19861         to be in error.
19862         Expand comments describing attempts to use a packable type.
19863         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19864         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19865         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19866         necessary since these are not different types and pointers may
19867         actually designate any subtype in this hierarchy.
19868         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19869         discriminants but put them into record only if not Unchecked_Union;
19870         pass flag to components_to_record showing Unchecked_Union.
19871         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19872         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19873         (components_to_record): New argument UNCHECKED_UNION.
19874         Remove special case code for Unchecked_Union and instead use main code
19875         with small changes.
19876
19877         PR ada/26096
19878         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19879         variable with the expression being built, only its inner field.
19880
19881         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19882         emit_sequence_entry_statements.
19883         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19884         (establish_gnat_vms_condition_handler): Move before
19885         Subprogram_Body_to_gnu.
19886         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19887         for a subprogram if it has a foreign convention or is exported.
19888         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19889         substituted for a CONST_DECL.
19890         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19891         Etype to assoc_to_constructor.
19892         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19893         discriminants of Unchecked_Union.
19894         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19895         don't need cluttering preprocessor directives.
19896         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19897         condition handler as current in the compiled function.
19898         (body_with_handlers_p): New function. Tell whether a given sequence of
19899         statements node is attached to a package or subprogram body and involves
19900         exception handlers possibly nested within inner block statements.
19901         (emit_sequence_entry_statements): New function, to emit special
19902         statements on entry of sequences when necessary. Establish GNAT
19903         condition handler in the proper cases for VMS.
19904         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19905         emit_sequence_entry_statements.
19906
19907         * utils2.c (find_common_type): If both input types are BLKmode and
19908         have a constant size, use the smaller one.
19909         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19910         the same.
19911
19912         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19913         units.
19914         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19915         (convert, case UNION_TYPE): Remove special treatment for unchecked
19916         unions.
19917
19918         PR ada/18659
19919         (update_pointer_to): Update variants of pointer types to unconstrained
19920         arrays by attaching the list of fields of the main variant.
19921
19922 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19923             Robert Dewar  <dewar@adacore.com>
19924
19925         * a-exexpr.adb, a-exexpr-gcc.adb
19926         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19927         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19928         Remove code unused for exception propagation for the compiler itself
19929         from a-except.adb and update to still share separate packages.
19930
19931         * a-except.ads, a-except.adb: Ditto.
19932         Add comments that this version is now used only by the compiler and
19933         other basic tools. The full version that includes the Ada 2005 stuff
19934         is in separate files a-except-2005.ads/adb. The reason is that we do
19935         not want to cause bootstrap problems with compilers not recognizing
19936         Wide_Wide_String.
19937         Add exception reason code PE_Implicit_Return
19938         Add new exception reason code (Null Exception_Id)
19939
19940         * a-except-2005.adb, a-except-2005.ads: New files.
19941
19942         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19943
19944         * s-wchcon.adb: New file.
19945
19946         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19947         (traceback.o deps): Likewise.
19948         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19949         Activate build of GMEM instrumentation library on VMS targets.
19950         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19951         Use a-except-2005.ads/adb for all run-time library builds unless
19952         specified otherwise.
19953         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19954         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19955         Use s-parame.adb on all native platforms.
19956         Use s-parame-vxworks.adb on all vxworks platforms.
19957         Add env.c env.h in LIBGNAT_SRCS
19958         Add env.o in LIBGNAT_OBJS
19959         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19960         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19961         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19962         supports VxWorks 6 RTPs.
19963         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19964         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19965
19966         * types.h, types.ads (Terminate_Program): New exception
19967         Add comment on modifying multiple versions of a-except.adb when the
19968         table of exception reasons is modified.
19969         Add exception reason code PE_Implicit_Return
19970         Add new exception reason code (Null Exception_Id)
19971
19972         * clean.adb (Initialize): Get the target parameters before checking
19973         if target is OpenVMS. Move the OpenVMS specific code here from package
19974         body elaboration code.
19975
19976 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19977             Vincent Celier  <celier@adacore.com>
19978             Robert Dewar  <dewar@adacore.com>
19979
19980         * ali-util.adb (Get_File_Checksum): Update to account for change in
19981         profile of Initialize_Scanner.
19982
19983         * gprep.adb (Gnatprep): Update to account for change in profile of
19984         Initialize_Scanner.
19985         (Process_One_File): Same.
19986
19987         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19988         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19989         that behaviour using the new Unit information recorded in the source
19990         files table, rather than going through all units every time.
19991         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19992         (Get_Source_Unit): Same.
19993
19994         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19995         change in profile of Initialize_Scanner.
19996         (Prepare_To_Preprocess): Same.
19997
19998         * lib.ads: Fix typo in comment (templace -> template).
19999
20000         * prj-part.adb (Parse_Single_Project): Update to account for change in
20001         profile of Initialize_Scanner.
20002
20003         * scn.adb (Initialize_Scanner): Account for change in profile of
20004         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20005         Also record the association of the given Source_File_Index to the
20006         corresponding Unit_Number_Type.
20007
20008         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20009         procedure.
20010         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20011         Remove Unit formal for generic scanner: this formal
20012         is only relevant to Scn (the scanner instance used to parse Ada source
20013         files), not to other instances. Update comment accordingly.
20014         (Scan): Use new function Snames.Is_Keyword_Name.
20015
20016         * sinfo-cn.adb: Fix typo in comment.
20017
20018         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20019         Unit.
20020
20021         * sinput.ads (Source_File_Record): New component Unit, used to capture
20022         the unit identifier (if any) associated to a source file.
20023
20024         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20025         Unit in Source_File_Record.
20026
20027         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20028         in profile of Initialize_Scanner.
20029
20030         * scans.adb (Initialize_Ada_Keywords): New procedure
20031
20032         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20033         Ada keywords in the Namet table, without the need to call
20034         Initialize_Scanner.
20035
20036         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20037         (Is_Keyword_Name): New function
20038
20039         * snames.ads: Add subtype Configuration_Pragma_Names
20040         Add pragma Ada_2005 (synonym for Ada_05)
20041         (Is_Keyword_Name): New function
20042
20043         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20044
20045 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20046
20047         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20048         index.
20049
20050         * a-stwima.adb (To_Set): Add extra check when N = 0.
20051
20052         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20053
20054 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20055
20056         * s-parame-mingw.adb, s-parame-linux.adb,
20057         s-parame-solaris.adb: Removed, replaced by s-parame.adb
20058
20059         * s-parame-vxworks.ads: Fix typo.
20060
20061         * s-parame-vxworks.adb: New file.
20062
20063         * s-parame.adb: Version now used by all native platforms.
20064         (Default_Stack_Size): Use 2 megs for default stack size and use
20065         __gl_default_stack_size when available.
20066         (Minimum_Stack_Size): Use 12K.
20067
20068         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20069         (Create_Task): Refine implementation taking advantage of the XP stack
20070         size support. On XP, we now create the thread using the flag
20071         STACK_SIZE_PARAM_IS_A_RESERVATION.
20072
20073         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20074
20075         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20076         XP and 0 on older Windows versions.
20077
20078         * interfac-vms.ads: Removed, no longer used.
20079
20080 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20081
20082         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20083         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20084         a-cohase.adb: All explicit raise statements now include an exception
20085         message.
20086
20087         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20088         (Update_Element_Preserving_Key): renamed op to just Update_Element.
20089         Explicit raise statements now include an exception message
20090
20091         * a-cihase.ads, a-cohase.ads: Removed comment.
20092
20093         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20094         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20095         a-szbzha.adb, a-szfzha.ads: New files.
20096
20097 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20098
20099         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20100         quicksort.
20101
20102 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20103
20104         * lang.opt: Wvariadic-macros: New option.
20105         Wold-style-definition: Likewise.
20106         Wmissing-format-attribute: Likewise.
20107
20108         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20109         -Wold-style-definition and -Wmissing-format-attribute.
20110
20111 2006-02-13  Robert Dewar  <dewar@adacore.com>
20112
20113         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20114
20115         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20116
20117 2006-02-13  Nicolas Roche  <roche@adacore.com>
20118
20119         * a-envvar.adb, a-envvar.ads: New files.
20120
20121 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20122
20123         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20124
20125         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20126
20127 2006-02-13  Pat Rogers  <rogers@adacore.com>
20128
20129         * a-rttiev.adb, a-rttiev.ads: New files.
20130
20131 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20132
20133         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20134         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
20135
20136         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20137
20138 2006-02-13  Robert Dewar  <dewar@adacore.com>
20139
20140         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20141         sem_case.adb: Minor code reorganization (not Present should be No)
20142
20143 2006-02-13  Geert Bosch  <bosch@adacore.com>
20144             Gary Dismukes  <dismukes@adacore.com>
20145
20146         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20147         0, since the lower bound of the actual string may be greater than one.
20148
20149         PR ada/20753
20150         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20151         layout is requested.
20152
20153 2006-02-13  Vincent Celier  <celier@adacore.com>
20154
20155         * back_end.adb (Scan_Compiler_Arguments): Check if
20156         Search_Directory_Present is True and, if it is, add the argument in
20157         the source search directory path.
20158
20159         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20160         Search_Directory_Present to True.
20161
20162 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
20163
20164         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20165         volatile, to tell the compiler to preserve this variable at any level
20166         of optimization.
20167         (Gen_Versions_Ada): Temporarily work around codegen bug.
20168
20169 2006-02-13  Vincent Celier  <celier@adacore.com>
20170
20171         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20172         gcc to link with option -shared-libgcc.
20173         (Gnatlink): Remove duplicate switches -shared-libgcc
20174
20175 2006-02-13  Robert Dewar  <dewar@adacore.com>
20176
20177         * gnatvsn.ads (Current_Year): New constant, used to easily update
20178         copyright on all GNAT tools.
20179
20180         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20181         copyright notice.
20182
20183 2006-02-13  Robert Dewar  <dewar@adacore.com>
20184
20185         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20186         after hyphen (small aesthetic change useful for a range of numbers
20187         using ^-^.
20188         Suppress range checks for a couple of assignments which otherwise
20189         cause validity checks with validity checking turned on.
20190
20191         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20192         Improvement in error message for object.
20193         (Rep_Item_Too_Late): Remove '!' in warning message.
20194
20195 2006-02-13  Robert Dewar  <dewar@adacore.com>
20196             Eric Botcazou  <ebotcazou@adacore.com>
20197
20198         * err_vars.ads: Suppress range checks for a couple of assignments
20199         which otherwise cause validity checks with validity checking turned on.
20200         Update comments.
20201
20202         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20203         Make message unconditional if it is a warning.
20204         (Error_Msg_NEL): Always output warning messages.
20205         Suppress range checks for a couple of assignments which otherwise
20206         cause validity checks with validity checking turned on.
20207
20208         * errout.ads (Message Insertion Characters): Document that '!' is
20209         implied by '?' in error messages.
20210
20211         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20212         (Gnat1drv): Use a goto to end of main subprogram instead of
20213         Exit_Program (E_Success) so that finalization can occur normally.
20214
20215 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20216
20217         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20218         wrapped around.
20219
20220 2006-02-13  Vincent Celier  <celier@adacore.com>
20221
20222         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20223         Unchecked_Conversion functions.
20224         (Modification_Time): Use direct conversion of OS_Time to Calendar time
20225         when OpenVMS returns False.
20226
20227         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20228         a-dirval.adb (OpenVMS): New Boolean function
20229
20230 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20231             Thomas Quinot  <quinot@adacore.com>
20232
20233         * checks.adb (Build_Discriminant_Checks): If the expression being
20234         checks is an aggregate retrieve the values of its discriminants to
20235         generate the check, rather than creating a temporary and a reference
20236         to it.
20237         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20238         (Install_Null_Excluding_Check): Ditto
20239         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20240         not for the renamed object, so that the actual itype is attached in the
20241         proper context.
20242
20243 2006-02-13  Robert Dewar  <dewar@adacore.com>
20244             Vincent Celier  <celier@adacore.com>
20245
20246         * debug.adb: Eliminate numeric switches for binder/gnatmake
20247
20248         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20249         switches for the compiler.
20250         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20251         (Scan_Make_Switches): When failing with an illegal switch, output an
20252         error message with the full switch.
20253         Eliminate numeric switches for binder/gnatmake
20254
20255         * switch.ads, switch.adb (Bad_Switch): New procedure
20256
20257         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20258         Remove 0-9 as debug flag character possibilities
20259         -d is now controlling the primary stack size when its value is a
20260         positive. Also add checks against invalid values, and support for kb,
20261         mb. Ditto for -D switch.
20262
20263 2006-02-13  Robert Dewar  <dewar@adacore.com>
20264             Serguei Rybin  <rybin@adacore.com>
20265
20266         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20267         save/restore routines.
20268         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20269         were not always properly handled previously.
20270         Since we are changing the tree format anyway, also get rid of the
20271         junk obsolete Immediate_Errors flag.
20272         (Tree_Read): Change the way of reading Tree_Version_String - now we
20273         read the version string from the tree even if its length is not the
20274         same as the length of the version string computed from Gnatvsn.
20275         (Search_Directory_Present): New Boolean flag for the compiler.
20276         Define Tree_Version_String as a dynamic string.
20277         (Default_Stack_Size): new variable, used to handle switch -d.
20278
20279         * par-prag.adb:
20280         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20281         only for main unit.
20282         Add pragma Ada_2005 (synonym for Ada_05)
20283         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20284         were not always properly handled previously.
20285
20286         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20287         explicit Ada_95 to Ada_2005.
20288
20289 2006-02-13  Javier Miranda  <miranda@adacore.com>
20290             Robert Dewar  <dewar@adacore.com>
20291             Ed Schonberg  <schonberg@adacore.com>
20292
20293         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20294         against errors in the source program: a private types for which the
20295         corresponding full type declaration is missing and pragma CPP_Virtual
20296         is used.
20297         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20298         (Is_Known_Null): New flag
20299         (Has_Pragma_Pure): New flag
20300         (No_Return): Present in all entities, set only for procedures
20301         (Is_Limited_Type): A type whose ancestor is an interface is limited if
20302         explicitly declared limited.
20303         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20304         entities. Only used for component marked Is_Tag. If present it stores
20305         the Offset_To_Top function used to provide this value in tagged types
20306         whose ancestor has discriminants.
20307
20308         * exp_ch2.adb: Update status of new Is_Known_Null flag
20309
20310         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20311
20312         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20313         the categorization sense if Is_Pure was set by pragma Pure_Function.
20314
20315 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20316             Olivier Hainque  <hainque@adacore.com>
20317
20318         * bindusg.adb: Updated documentation for -d and -D switches.
20319
20320         * raise.h (__gnat_set_globals): added new parameter for
20321         Default_Stack_Size.
20322
20323         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20324         (__gnat_handle_vms_condition): Adjust context before raise.
20325         (__gnat_install_handler): Restore the global vector setup for GCC
20326         versions before 3.4, as the frame based circtuitry is not available
20327         in this case.
20328         (__gnat_set_globals): added a parameter default_stack_size
20329         (__gl_default_stack_size): new variable.
20330
20331 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20332
20333         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20334         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20335         does not exist in the Ada RM.
20336         (Compatible_Int_Bounds): Determine whether two integer range bounds
20337         are of equal length and have the same start and end values.
20338         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20339         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20340         aggregate when it is part of an object declaration.
20341         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
20342         constrains discriminants of its parent, add explicitly the discriminant
20343         constraints of the ancestor by retrieving them from the
20344         stored_constraint of the parent.
20345
20346 2006-02-13  Robert Dewar  <dewar@adacore.com>
20347
20348         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20349         attribute Mechanism_Code is applied to renamed subprogram, modify
20350         prefix to point to base subprogram.
20351         Max/Min attributes now violate Restriction No_Implicit_Conditionals
20352
20353         * sinfo.ads: Document that Mechanism_Code cannot be applied to
20354         renamed subprograms so that the front-end must replace the prefix
20355         appropriately.
20356
20357 2006-02-13  Javier Miranda  <miranda@adacore.com>
20358             Gary Dismukes  <dismukes@adacore.com>
20359
20360         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20361         availability of RE_Interface_Tag.
20362         (Build_Initialization_Call): Fix wrong access to the discriminant value.
20363         (Freeze_Record_Type): Do not generate the tables associated with
20364         timed and conditional dispatching calls through synchronized
20365         interfaces if compiling under No_Dispatching_Calls restriction.
20366         When compiling for Ada 2005, for a nonabstract
20367         type with a null extension, call Make_Controlling_Function_Wrappers
20368         and insert the wrapper function declarations and bodies (the latter
20369         being appended as freeze actions).
20370         (Predefined_Primitive_Bodies): Do not generate the bodies of the
20371         predefined primitives associated with timed and conditional
20372         dispatching calls through synchronized interfaces if we are
20373         compiling under No_Dispatching_Calls.
20374         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
20375         service is available before generating a call.
20376         (Make_Controlling_Function_Wrappers): New procedure.
20377         (Expand_N_Full_Type_Declaration): Create a class-wide master for
20378         access-to-limited-interfaces because they can be used to reference
20379         tasks that implement such limited interface.
20380         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20381         procedure spec and body of the Offset_To_Top function that is generated
20382         when the parent of a type with discriminants has secondary dispatch
20383         tables.
20384         (Init_Secondary_Tags): Handle the case in which the parent of the type
20385         containing secondary dispatch tables has discriminants to generate the
20386         correct arguments to call Set_Offset_To_Top.
20387         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20388
20389         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20390         Add Wide_[Wide_]Expanded_Name.
20391         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20392         the same functionality of Get_Prim_Op_Address but applied to predefined
20393         primitive operations because the pointers to the predefined primitives
20394         are now saved in a separate table.
20395         (Parent_Size): Modified to get access to the separate table of primitive
20396         operations or the parent type.
20397         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20398         functionality of Set_Prim_Op_Address but applied to predefined primitive
20399         operations.
20400         (Set_Signature): New subprogram used to store the signature of a DT.
20401         (Displace): If the Offset_To_Top value is not static then call the
20402         function generated by the expander to get such value; otherwise use
20403         the value stored in the table of interfaces.
20404         (Offset_To_Top): The type of the actual has been changed to Address to
20405         give the correct support to tagged types with discriminants. In this
20406         case this value is stored just immediately after the tag field.
20407         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20408         offset_to_top value is static and hence pass this value to the run-time
20409         to store it in the table of interfaces, or else if this value is dynamic
20410         and then pass to the run-time the address of a function that is
20411         generated by the expander to provide this value for each object of the
20412         type.
20413
20414         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20415         (Default_Prim_Op_Count): New entity
20416         (Get_Predefined_Prim_Op_Address): New entity
20417         (Set_Predefined_Prim_Op_Address): New entity
20418         (RE_Set_Signature): New entity
20419
20420 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20421             Ed Schonberg  <schonberg@adacore.com>
20422
20423         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20424         Make_Adjust_Call done for a newly-allocated object.
20425
20426         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20427         in a subprogram are wrapped in a cleanup block, indicate that the
20428         subprogram contains an inner block with an exception handler.
20429         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20430         Adjust call is for a newly-allocated object. In that case we must not
20431         assume that the finalization list chain pointers are correct (since they
20432         come from a bit-for-bit copy of the original object's pointers) so if
20433         the attach level would otherwise be zero (no change), we set it to 4
20434         instead to cause the pointers to be reset to null.
20435
20436         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20437         reset chain pointers to null.
20438
20439 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20440
20441         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20442         string, and the context requires a loop for the assignment (e.g.
20443         because the left-hand side is packed), generate a unique name for the
20444         temporary that holds the string, to prevent spurious name clashes.
20445
20446 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20447             Javier Miranda  <miranda@adacore.com>
20448             Robert Dewar  <dewar@adacore.com>
20449             Gary Dismukes  <dismukes@adacore.com>
20450
20451         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20452         return unconstrained arrays.
20453         Update comments.
20454         (Expand_Call):  An indirect call through an access parameter of a
20455         protected operation is not a protected call.
20456         Add circuit to raise CE in Ada 2005 mode following call
20457         to Raise_Exception.
20458         (Register_DT_Entry): Do nothing if
20459         the run-time does not give support to abstract interfaces.
20460         (Freeze_Subprogram): In case of dispatching operations, do not generate
20461         code to register the operation in the dispatch table if the source
20462         is compiled with No_Dispatching_Calls.
20463         (Register_Predefined_DT_Entry): Generate code that calls the new
20464         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20465         Set_Prim_Op_Address.
20466
20467         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20468         on array assignments if the right-hand side is a function call that has
20469         been inlined. Check is performed on the assignment in the block.
20470         (Process_Bounds): If bounds and range are overloaded, apply preference
20471         rule for root operations to disambiguate, and diagnose true ambiguity.
20472         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20473         a tag-indeterminate right-hand side even when Expander_Active is True.
20474         Needed to ensure that dispatching calls to T'Input are allowed and
20475         get the tag of the target class-wide object.
20476
20477         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20478         an inherited primitive operation that already overrides several
20479         abstract interface primitives. For transitivity, the new entity must
20480         also override all the abstract interface primitives covered by the
20481         inherited overriden primitive.
20482         Emit warning if new entity differs from homograph in same scope only in
20483         that one has an access parameter and the other one has a parameter of
20484         a general access type with the same designated type, at the same
20485         position in the signature.
20486         (Make_Inequality_Operator): Use source locations of parameters and
20487         subtype marks from corresponding equality operator when creating the
20488         tree structure for the implicit declaration of "/=". This does not
20489         change anything in behaviour except that the decoration of the
20490         components of the subtree created for "/=" allows ASIS to get the
20491         string images of the corresponding identifiers.
20492         (Analyze_Return_Statement): Remove '!' in warning message.
20493         (Check_Statement_Sequence): Likewise.
20494         (Analyze_Subprogram_Body): For an access parameter whose designated type
20495         is an incomplete type imported through a limited_with clause, use the
20496         type of the corresponding formal in the body.
20497         (Check_Returns): Implicit return in No_Return procedure now raises
20498         Program_Error with a compile time warning, instead of beging illegal.
20499         (Has_Single_Return):  Function returning unconstrained type cannot be
20500         inlined if expression in unique return statement is not an identifier.
20501         (Build_Body_To_Inline): It is possible to inline a function call that
20502         returns an unconstrained type if all return statements in the function
20503         return the same local variable. Subsidiary procedure Has_Single_Return
20504         verifies that the body conforms to this restriction.
20505
20506         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20507         same type, and  one of them is of an anonymous access type, convert
20508         the other operand to it, so that this is a valid binary operation for
20509         gigi.
20510         (Resolve_Type_Conversion): Handle subtypes of protected types and
20511         task types when accessing to the corresponding record type.
20512         (Resolve_Allocator): Add '\' in 2-line warning message.
20513         Remove '!' in warning message.
20514         (Resolve_Call): Add '\' in 2-line warning message.
20515         (Valid_Conversion): Likewise.
20516         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20517         resulting type may be an access type with an implicit dereference.
20518         Obtain the proper component from the designated type.
20519         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20520         given by an expanded name with prefix Standard, when the operands are
20521         of an anonymous access type.
20522         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20523         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20524         prefix of the expression is not of an incomplete type. Allows full
20525         diagnoses of all semantic errors.
20526         (Resolve_Actuals): If the actual is an allocator whose directly
20527         designated type is a class-wide interface we build an anonymous
20528         access type to use it as the type of the allocator. Later, when
20529         the subprogram call is expanded, if the interface has a secondary
20530         dispatch table the expander will add a type conversion to force
20531         the displacement of the pointer.
20532         (Resolve_Call): If a function that returns an unconstrained type is
20533         marked Inlined_Always and inlined, the call will be inlined and does
20534         not require the creation of a transient scope.
20535         (Check_Direct_Boolean_Op): Removed
20536         (Resolve_Comparison_Op): Remove call to above
20537         (Resolve_Equality_Op): Remove call to above
20538         (Resolve_Logical_Op): Inline above, since this is only call.
20539         (Valid_Conversion): Handle properly conversions between arrays of
20540         convertible anonymous access types.
20541
20542         PR ada/25885
20543         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20544         the literal in an unchecked conversion, because GCC 4.x needs a static
20545         value for a string bound.
20546
20547 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20548             Hristian Kirtchev  <kirtchev@adacore.com>
20549
20550         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20551         components of the corresponding record, take into account component
20552         definitions that are access definitions.
20553         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20554         procedure is not considered a dispatching call and will be expanded
20555         properly.
20556
20557 2006-02-13  Javier Miranda  <miranda@adacore.com>
20558
20559         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20560         controlling argument of the dispatching call is an abstract interface
20561         class-wide type then we use it directly.
20562         Check No_Dispatching_Calls restriction.
20563         (Default_Prim_Op_Position): Remove the code that looks for the last
20564         entity in the list of aliased subprograms. This code was wrong in
20565         case of renamings.
20566         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20567         when the source is compiled with the No_Dispatching_Calls restriction.
20568         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20569         if we are compiling with restriction No_Dispatching_Calls.
20570         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20571         subprograms if we are compiling under No_Dispatching_Calls restriction.
20572         (Make_DT): Generate a dispatch table with a single dummy entry if
20573         we are compiling with the No_Dispatching_Calls restriction. In
20574         addition, in this case we don't generate code that calls to the
20575         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20576         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20577         of this subprogram if compiling with the No_Dispatching_Calls
20578         restriction.
20579         (Expand_Type_Conversion): Instead of using the actual parameter,
20580         the argument passed as parameter to the conversion function was
20581         erroneously referenced by the expander.
20582         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20583         Set_Predefined_Primitive_Op_Address and Set_Signature.
20584         (Expand_Dispatching_Call): Generate call to
20585         Get_Predefined_Prim_Op_Address for predefined primitives.
20586         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20587         predefined primitives.
20588         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20589         primitives we reserve one dummy entry to ensure that the tag does not
20590         point to some memory that is associated with some other object. In
20591         addition, remove all the old code that generated the assignments
20592         associated with the signature of the dispatch table and replace them
20593         by a call to the new subprogram Set_Signature.
20594         (Set_All_DT_Position): Change the algorithm because now we have a
20595         separate dispatch table associated with predefined primitive operations.
20596         (Expand_Interface_Conversion): In case of non-static offset_to_top
20597         add explicit dereference to get access to the object after the call
20598         to displace the pointer to the object.
20599         (Expand_Interface_Thunk): Modify the generation of the actual used
20600         in the calls to the run-time function Offset_To_Top to fulfil its
20601         new interface.
20602         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20603
20604 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20605
20606         * exp_dist.adb (Copy_Specification): For access parameters, copy
20607         Null_Exclusion flag, which will have been set for stream subprograms
20608         in Ada2005 mode.
20609
20610 2006-02-13  Pascal Obry  <obry@adacore.com>
20611
20612         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20613         previous implementation was using the C runtime spawnve routine but
20614         the corresponding wait was using directly the Win32 API. This was
20615         causing some times a lock when waiting for an event using
20616         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20617         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20618         API fixes this problem.
20619
20620 2006-02-13  Robert Dewar  <dewar@adacore.com>
20621
20622         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20623         call.
20624
20625 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20626
20627         * exp_pakd.ads: Fix typos in comments.
20628
20629         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20630         array reference that is an explicit dereference, mark the converted
20631         (packed) array reference as analyzed to prevent a forthcoming
20632         reanalysis from resetting its type to the original (non-packed) array
20633         type.
20634
20635 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20636             Javier Miranda  <miranda@adacore.com>
20637             Eric Botcazou  <ebotcazou@adacore.com>
20638
20639         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20640         Is_Predefined_Primitive_Operation): When
20641         searching for the predefined equality operator, verify that operands
20642         have the same type.
20643         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20644         for the last entity in the list of aliased subprograms. This code
20645         was wrong in case of renamings.
20646         (Set_Renamed_Subprogram): New procedure
20647         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20648         Exp_Type constant computed when entering this subprogram.
20649         (Known_Null): New function
20650         (OK_To_Do_Constant_Replacement): New function
20651         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20652         (Side_Effect_Free): An attribute reference 'Input is not free of
20653         side effect, unlike other attributes that are functions. (from code
20654         reading).
20655         (Remove_Side_Effects): Expressions that involve packed arrays or records
20656         are copied at the point of reference, and therefore must be marked as
20657         renamings of objects.
20658         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20659         not a dispatching operation.
20660
20661         PR ada/18819
20662         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20663         elementary types in all cases.
20664
20665 2006-02-13  Javier Miranda  <miranda@adacore.com>
20666
20667         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20668         task types when accessing to the corresponding record type.
20669         Remove '!' in warning message.
20670
20671 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20672
20673         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20674         to avoid useless and space inefficient overalignments on targets where
20675         Max_Alignment is larger than 16.
20676
20677 2006-02-13  Pascal Obry  <obry@adacore.com>
20678
20679         * g-catiio.adb (Sec_Number): New type used to compute the number of
20680         seconds since 1-1-1970.
20681         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20682         negative numbers (years, months...) it is better to have a Natural here.
20683         Code clean-up.
20684         (Image) [Number]: Change parameter from Long_Integer to Number.
20685         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20686         overflow for dates past year 2038.
20687
20688 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20689
20690         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20691         Constraint_Error.
20692
20693 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20694
20695         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20696         native platforms.
20697         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20698         finalization can occur normally.
20699
20700 2006-02-13  Vincent Celier  <celier@adacore.com>
20701
20702         * gnatcmd.adb (Rules_Switches): New table
20703         (Add_To_Rules_Switches): New procedure
20704         (GNATCmd): For command CHECK, put all options following "-rules" in the
20705         Rules_Switches table. Append these -rules switches after the -cargs
20706         switches.
20707
20708 2006-02-13  Robert Dewar  <dewar@adacore.com>
20709
20710         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20711         These two cases were generating incorrect output, and if this unit
20712         was built with checks on, generated a discriminant mismatch constraint
20713         error.
20714
20715 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20716             Robert Dewar  <dewar@adacore.com>
20717
20718         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20719         view is an array type, indicate the component type as well, for
20720         navigation purposes.
20721         (Generate_Reference): Don't consider array ref on LHS to be a case
20722         of violating pragma Unreferenced.
20723         Do not give Ada 2005 warning except on real reference.
20724
20725 2006-02-13  Vincent Celier  <celier@adacore.com>
20726
20727         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20728         main source, add switch -mdebug-main=_ada_ so that the executable can
20729         be debugged by the standard VMS debugger.
20730         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20731         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20732         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20733         of the last source, as the binding and linking phases are never
20734         performed.
20735         Set all executable obsolete when rebuilding a library.
20736
20737         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20738         options.
20739
20740 2006-02-13  Javier Miranda  <miranda@adacore.com>
20741
20742         PR ada/23973
20743         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20744         code to improve the error message reported when the program has
20745         declarations of abstract interface types and it is not compiled with
20746         the -gnat05 switch.
20747         (P_Access_Definition): Reorganize the code to improve the error
20748         message reported when the new Ada 2005 syntax for anonymous
20749         access types is used and the program is not compiled with the
20750         -gnat05 switch.
20751
20752 2006-02-13  Robert Dewar  <dewar@adacore.com>
20753
20754         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20755         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20756         (MODE_IN)
20757
20758 2006-02-13  Javier Miranda  <miranda@adacore.com>
20759
20760         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20761         against source containing syntax errors.
20762
20763 2006-02-13  Vincent Celier  <celier@adacore.com>
20764
20765         * prj.adb (Reset): Initialize the first element of table Namings with
20766         the standard naming data.
20767
20768 2006-02-13  Vincent Celier  <celier@adacore.com>
20769
20770         * prj.ads (Error_Warning): New enumeration type
20771
20772         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20773         unknown, use the location of the project to report the error.
20774         (When_No_Sources): New global variable
20775         (Report_No_Ada_Sources): New procedure
20776         (Check): New parameter When_No_Sources. Set value of global variable
20777         When_No_Sources,
20778         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20779         (Get_Sources_From_File): Ditto
20780         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20781         and the file name.
20782
20783         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20784         Call Prj.Proc.Process with parameter When_No_Sources.
20785
20786         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20787         Call Recursive_Check with parameter When_No_Sources.
20788         (Recursive_Check): New parameter When_No_Sources. Call itself and
20789         Prj.Nmsc.Check with parameter When_No_Sources.
20790         (Process): New parameter When_No_Sources. Call Check with parameter
20791         When_No_Sources.
20792         (Copy_Package_Declarations): New procedure to copy renamed parameters
20793         and setting the location of the declared attributes to the location
20794         of the renamed package.
20795         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20796         packages.
20797
20798 2006-02-13  Vincent Celier  <celier@adacore.com>
20799
20800         * prj-makr.adb (Make): Preserve the comments from the original project
20801         file.
20802         When removing nodes (attributes Source_Dirs, Source_Files,
20803         Source_List_File and package Naming), save the comments and attach the
20804         saved comments to the newly created nodes.
20805         Do not add a with clause for the naming package if one already exists.
20806
20807 2006-02-13  Javier Miranda  <miranda@adacore.com>
20808             Gary Dismukes  <dismukes@adacore.com>
20809             Robert Dewar  <dewar@adacore.com>
20810
20811         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20812
20813         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20814         aliased entities to look for the overriden abstract interface
20815         subprogram.
20816         (Is_Interface_Subprogram): Complete documentation.
20817         (Check_Dispatching_Operation): Do not generate code to register the
20818         operation in the dispatch table if the source is compiled with
20819         restriction No_Dispatching_Calls.
20820         (Override_Dispatching_Operation): Check for illegal attempt to override
20821         No_Return procedure with procedure that is not No_Return
20822         (Check_Dispatching_Call): Suppress the check for an abstract operation
20823         when the original node of an actual is a tag-indeterminate attribute
20824         call, since the attribute, which must be 'Input, can never be abstract.
20825         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20826         call to the Input attribute (even when rewritten).
20827         (Propagate_Tag): Augment comment to indicate the possibility of a call
20828         to an Input attribute.
20829
20830         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20831         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20832
20833         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20834         No_Wide_Characters is no longer partition-wide
20835         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20836         rather than GNAT
20837
20838 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20839
20840         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20841
20842 2006-02-13  Javier Miranda  <miranda@adacore.com>
20843
20844         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20845         handles default-initialized components to keep separate the management
20846         of this feature but also avoid the unrequired resolution and
20847         expansion of components that do not have partially initialized
20848         values.
20849         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20850         (Check_Bounds): Likewise.
20851         (Check_Length): Likewise.
20852
20853 2006-02-13  Javier Miranda  <miranda@adacore.com>
20854             Ed Schonberg  <schonberg@adacore.com>
20855
20856         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20857         abstract interface type call analyze_and_resolve to expand the type
20858         conversion into the corresponding displacement of the
20859         reference to the base of the object.
20860         (Eval_Attribute, case Width): For systems where IEEE extended precision
20861         is supported, the maximum exponent occupies 4 decimal digits.
20862         (Accessibility_Message): Add '\' in 2-line warning message.
20863         (Resolve_Attribute): Likewise.
20864         (case Attribute_Access): Significantly revise checks
20865         for illegal access-to-subprogram Access attributes to properly enforce
20866         the rules of 3.10.2(32/2).
20867         Diagnose use of current instance with an illegal attribute.
20868
20869         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20870         to a Node_Id.
20871         (Enclosing_Generic_Unit): New function to return a node's innermost
20872         enclosing generic declaration node.
20873         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20874         (Type_Access_Level): The accessibility level of anonymous acccess types
20875         associated with discriminants is that of the current instance of the
20876         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20877         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20878         (Kill_Current_Values_For_Entity): New function
20879         (Enter_Name): Change formal type to Entity_Id
20880
20881 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20882             Ed Schonberg  <schonberg@adacore.com>
20883             Gary Dismukes  <dismukes@adacore.com>
20884
20885         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20886         Analyze_Compilation_Unit.
20887         Detect and warn on redundant with clauses detected in a package spec
20888         and/or body when -gnatwr is used.
20889         (Analyze_Context): Analyze config pragmas before other items
20890         (Install_Context_Items): Don't analyze config pragmas here
20891         (Install_Limited_Withed_Unit): Set limited entity of package in
20892         with_clause so that cross-reference information or warning messages on
20893         unused packages can be properly generated
20894         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20895         has Error_Posted set. Prevent infinite loops in illegal programs.
20896         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20897         to the point of the error test requiring the current unit to be private.
20898         This ensures that private with clauses are not exempted from the basic
20899         checking for being a descendant of the same library unit parent as a
20900         withed private descendant unit.
20901         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20902         handle private with clauses properly, as well as to account for cases
20903         where the withed unit is a public descendant of a private ancestor
20904         (in which case the current unit must be a descendant of the private
20905         ancestor's parent). The spec comments were updated accordingly. Also,
20906         the old error message in this subprogram was replaced with error
20907         messages that mirror the errors tested and reported by
20908         Check_Private_Child_Unit.
20909         Parameter and variable names improved for readability.
20910         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20911         private as the precondition for calling
20912         Check_Private_Limited_Withed_Unit since that subprogram has been
20913         revised to test public units as well as private units.
20914
20915 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20916             Robert Dewar  <dewar@adacore.com>
20917             Ed Schonberg  <schonberg@adacore.com>
20918             Javier Miranda  <miranda@adacore.com>
20919
20920         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20921         that Scope_Stack.First = 1.
20922         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20923         were not always properly handled previously.
20924         (Formal_Entity): Complete rewrite, to handle properly some complex case
20925         with multiple levels of parametrization by formal packages.
20926         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20927         to the corresponding derived type declaration for proper semantics.
20928
20929         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20930         (Check_Component): Enforce restriction on components of
20931         unchecked_unions: a component in a variant cannot contain tasks or
20932         controlled types.
20933         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20934         conform to AI-216.
20935         Add pragma Ada_2005 (synonym for Ada_05)
20936         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20937         were not always properly handled previously.
20938         Document that pragma Propagate_Exceptions has no effect
20939         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20940         (Set_Convention_From_Pragma): Check that if a convention is
20941         specified for a dispatching operation, then it must be
20942         consistent with the existing convention for the operation.
20943         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20944         longer required to specify an vtable-ptr component in the record. For
20945         compatibility reasons we leave the support for the previous definition.
20946         (Analyze_Pragma, case No_Return): Allow multiple arguments
20947
20948         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20949         non-overrideen inherited operation with a controlling result as
20950         illegal only its implicit declaration comes from the derived type
20951         declaration of its result's type.
20952         (Check_Possible_Deferred_Completion): Relocate the object definition
20953         node of the subtype indication of a deferred constant completion rather
20954         than directly analyzing it. The analysis of the generated subtype will
20955         correctly decorate the GNAT tree.
20956         (Record_Type_Declaration): Check whether this is a declaration for a
20957         limited derived record before analyzing components.
20958         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20959         declared limited when a component has a limited type.
20960         (Build_Derived_Record_Type): Code reorganization to check if some of
20961         the inherited subprograms of a tagged type cover interface primitives.
20962         This check was missing in case of a full-type associated with a private
20963         type declaration.
20964         (Constant_Redeclaration): Check that the subtypes of the partial and the
20965         full view of a constrained deferred constant statically match.
20966         (Mentions_T): A reference to the current type in an anonymous access
20967         component declaration  must be an entity name.
20968         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20969         class_wide type to refer to full type, not to the incomplete one.
20970         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20971         available. Required to give support to the certified run-time.
20972         (Analyze_Component_Declaration): In case of anonymous access components
20973         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20974         (Process_Discriminants): For an access discriminant, use the
20975         discriminant specification as the associated_node_for_itype, to
20976         simplify accessibility checks.
20977
20978 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20979             Javier Miranda  <miranda@adacore.com>
20980
20981         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20982         abstract interpretations on an operator, remove interpretations that
20983         yield Address or a type derived from it, if one of the operands is an
20984         integer literal.
20985         (Try_Object_Operation.Try_Primitive_Operation,
20986         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20987         location when creating the new reference to a primitive or class-wide
20988         operation as a part of rewriting a subprogram call.
20989         (Try_Primitive_Operations): If context requires a function, collect all
20990         interpretations after the first match, because there may be primitive
20991         operations of the same type with the same profile and different return
20992         types. From code reading.
20993         (Try_Primitive_Operation): Use the node kind to choose the proper
20994         operation when a function and a procedure have the same parameter
20995         profile.
20996         (Complete_Object_Operation): If formal is an access parameter and prefix
20997         is an object, rewrite as an Access reference, to match signature of
20998         primitive operation.
20999         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21000         by an expanded name with prefix Standard, when the operands are of an
21001         anonymous access type.
21002         (Remove_Abstract_Operations): If the operation is abstract because it is
21003         inherited by a user-defined type derived from Address, remove it as
21004         well from the set of candidate interpretations of an overloaded node.
21005         (Analyze_Membership_Op): Membership test not applicable to cpp-class
21006         types.
21007
21008 2006-02-13  Bob Duff  <duff@adacore.com>
21009
21010         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21011         redundant use clauses.
21012         In particular, if the scope of two use clauses overlaps, but one is not
21013         entirely included in the other, we should not warn.  This can happen
21014         with nested packages.
21015         (Analyze_Subprogram_Renaming): Protect the compiler against previously
21016         reported errors. The bug was reported when the compiler was built
21017         with assertions enabled.
21018         (Find_Type): If the node is a 'Class reference and the prefix is a
21019         synchronized type without a corresponding record, return the type
21020         itself.
21021
21022 2006-02-13  Javier Miranda  <miranda@adacore.com>
21023
21024         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21025         if this is the full-declaration associated with a private declaration
21026         that implement interfaces, then the private type declaration must be
21027         limited.
21028         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21029         as aliased. The use of the 'access attribute is not available for such
21030         object (for this purpose the object should be explicitly marked as
21031         aliased, but being an anonymous type this is not possible).
21032
21033 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21034             Robert Dewar  <dewar@adacore.com>
21035
21036         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21037         compilation unit is an elaboration scope.
21038         (Add_Task_Proc): Add '\' in 2-line warning message.
21039         (Activate_All_Desirable): Deal with case of unit with'ed by parent
21040
21041 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21042             Javier Miranda  <miranda@adacore.com>
21043
21044         * sem_type.adb (Write_Overloads): Improve display of candidate
21045         interpretations.
21046         (Add_One_Interp): Do not add to the list of interpretations aliased
21047         entities corresponding with an abstract interface type that is an
21048         immediate ancestor of a tagged type; otherwise we have a dummy
21049         conflict between this entity and the aliased entity.
21050         (Disambiguate): The predefined equality on universal_access is not
21051         usable if there is a user-defined equality with the proper signature,
21052         declared in the same declarative part as the designated type.
21053         (Find_Unique_Type): The universal_access equality operator defined under
21054         AI-230 does not cover pool specific access types.
21055         (Covers): If one of the types is a generic actual subtype, check whether
21056         it matches the partial view of the other type.
21057
21058 2006-02-13  Thomas Quinot  <quinot@adacore.com>
21059
21060         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21061         line. This is necessary to allow In_Extended_Main_Unit to provide
21062         correct results for itypes while writing out expanded source.
21063         (Close_File): No need to update the source_index_table here since it's
21064         now done for each line.
21065
21066 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
21067             Robert Dewar  <dewar@adacore.com>
21068
21069         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21070         preserve the source unit where the itype is declared, and prevent a
21071         backend abort.
21072         (Note_Implicit_Run_Time_Call): New procedure
21073         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21074         E_Subprogram_Type)
21075
21076         * sprint.ads: Document use of $ for implicit run time routine call
21077
21078 2006-02-13  Quentin Ochem  <ochem@adacore.com>
21079
21080         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21081         task name.
21082
21083 2006-02-13  Bob Duff  <duff@adacore.com>
21084
21085         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21086         Scan_Unsigned, so we do not scan leading blanks and sign twice.
21087         Integer'Value("- 5") and Integer'Value("-+5") now correctly
21088         raise Constraint_Error.
21089
21090         * s-vallli.adb (Scan_Long_Long_Integer): Call
21091         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21092         do not scan leading blanks and sign twice.
21093         Integer'Value("- 5") and Integer'Value("-+5") now correctly
21094         raise Constraint_Error.
21095
21096         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21097         Scan_Long_Long_Unsigned): Split out most of the processing from
21098         Scan_Long_Long_Unsigned out into
21099         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21100         This prevents scanning leading blanks and sign twice.
21101         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21102         See RM-3.5(44).
21103
21104         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21105         out most of the processing from Scan_Unsigned out into
21106         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21107         This prevents scanning leading blanks and sign twice.
21108
21109         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21110         use with Modular'Value attribute.
21111         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21112         attribute.
21113
21114 2006-02-13  Robert Dewar  <dewar@adacore.com>
21115
21116         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21117
21118 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
21119
21120         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21121         (PPC VxWorks): Likewise.
21122         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21123         (forced_callee): Make non-inlinable and non-pure.
21124         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21125
21126 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
21127             Ben Brosgol  <brosgol@adacore.com>
21128             Robert Dewar  <dewar@adacore.com>
21129
21130         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21131         support.
21132         Document that gnatbind -M option is for cross environments only.
21133         Added description of using gnatmem to trace gnat rtl allocs and deallocs
21134         Add note on use of $ to label implicit run time calls
21135         Add documentation for -gnatyI (check mode IN)
21136         Updated chapter on compatibility with HP Ada
21137         VMS-oriented edits.
21138         Ran spell and corrected errors
21139         Add documentation for gnatbind -d and rework documentation of -D
21140         at the same time.
21141         Add subprogram/data elimination section.
21142         Minor editing of annex A.
21143         Add section for gnatcheck.
21144         Add documentation for restriction No_Dispatching_Calls
21145         Add documentation for pragma Ada_2005
21146         Remove mention of obsolete pragma Propagate_Exceptions
21147         Document that pragma Unreferenced can appear after DO in ACCEPT
21148         Clarify Pure_Function for library level units
21149         Mention Max/Min in connection with No_Implicit_Conditionals
21150         No_Wide_Characters restriction is no longer partition-wide
21151         Add a nice example for Universal_Literal_String attribute
21152         Document that pragma No_Return can take multiple arguments
21153
21154         * ug_words: Added entry for gnatcheck
21155
21156         * g-ctrl_c.ads (Install_Handler): Enhance comments
21157
21158         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21159
21160         * g-trasym.ads: Add documentation on how to do off line symbolic
21161         traceback computation.
21162
21163         * s-fatgen.adb: Add comments for Unaligned_Valid
21164
21165         * stand.ads: Fix typo in comment
21166
21167 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21168
21169         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21170
21171 2006-02-06  Roger Sayle  <roger@eyesopen.com>
21172
21173         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21174
21175 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21176
21177         PR target/25926
21178         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21179         implementation that calls __main.
21180
21181 2006-01-25  Peter O'Gorman  <peter@pogma.com>
21182
21183         PR bootstrap/25859
21184         * Makefile.in (GCC_LINK): Remove quotes.
21185         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21186         or $(GCC_LINK).
21187
21188         (powerpc-darwin): Pass -shared-libgcc when building shared library.
21189
21190 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21191
21192         PR ada/24533
21193         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21194
21195 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21196
21197         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21198
21199 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21200
21201         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21202         needed.
21203
21204 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21205
21206         * Make-lang.in: Update dependencies
21207
21208 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21209
21210         * Make-lang.in: Add rule for ada/exp_sel.o
21211
21212 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21213
21214         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21215
21216 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
21217
21218         * gnatvsn.ads (Library_Version): Bump to version 4.2
21219         (ASIS_Version_Number): Bumped.
21220
21221 2005-12-09  Doug Rupp  <rupp@adacore.com>
21222
21223         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21224         Ada bind file prefix on VMS from b$ to b__.
21225         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21226         __init.
21227
21228         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21229         Targparm.OpenVMS_On_Target.
21230         (Object_Suffix): Initialize with target object suffix.
21231         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21232
21233         * butil.adb: Change some Hostparm.OpenVMS checks to
21234         Targparm.OpenVMS_On_Target.
21235
21236         * clean.adb: Change some Hostparm.OpenVMS checks to
21237         Targparm.OpenVMS_On_Target.
21238         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21239         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21240         Ada bind file prefix on VMS from b$ to b__.
21241
21242         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21243         --GCC so that Get_Target_Parameters can find system.ads.
21244         (Gnatlink): Call Get_Target_Parameters in mainline.
21245         Initialize standard packages for Targparm.
21246         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21247         (Process_Args): Also Check for object files with target object
21248         extension.
21249         (Make_Binder_File_Names): Create with target object extension.
21250         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21251         to b__.
21252
21253         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21254         Targparm.OpenVMS_On_Target.
21255         ({declaration},Build_Library,Check_Library): Change Ada bind file
21256         prefix on VMS from b$ to b__.
21257
21258         * osint-b.adb: Change some Hostparm.OpenVMS checks to
21259         Targparm.OpenVMS_On_Target.
21260         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21261         b__.
21262
21263         * targext.c: New file.
21264
21265         * Makefile.in: add support for vxworks653 builds
21266         (../../vxaddr2line): gnatlink with targext.o.
21267         (TOOLS_LIBS): Move targext.o to precede libgnat.
21268         (init.o, initialize.o): Minor clean up in dependencies.
21269         (GNATLINK_OBJS): Add targparm.o, snames.o
21270         Add rules fo building targext.o and linking it explicitly with all
21271         tools.
21272         Also add targext.o to gnatlib.
21273
21274         * Make-lang.in: Add rules for building targext.o and linking it in
21275         with gnat1 and gnatbind.
21276         Add entry for exp_sel.o.
21277
21278         * osint.adb Change some Hostparm.OpenVMS checks to
21279         Targparm.OpenVMS_On_Target.
21280         (Object_File_Name): Use target object suffix.
21281
21282         * osint.ads (Object_Suffix): Remove, no longer used.
21283         (Target_Object_Suffix): Initialize with target object suffix.
21284
21285         * rident.ads: Add special exception to license.
21286
21287         * targparm.adb (Get_Target_Parameters): Set the value of
21288         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21289         value.
21290         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21291
21292         * targparm.ads: Add special exception to license.
21293
21294         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21295         function.
21296         (Copy_File): Make sure from file is closed if error on to file
21297         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21298
21299         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21300         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21301
21302         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21303         target object suffix.
21304
21305 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
21306             Quentin Ochem  <ochem@adacore.com>
21307             Florian Villoing  <villoing@adacore.com>
21308
21309         * a-taster.ads, a-taster.adb: New files.
21310
21311         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21312         link to the version that does nothing. This way the task termination
21313         routine is not executed twice for the environment task when finishing
21314         because of an unhandled exception.
21315
21316         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21317         handler because of an unhandled exception.
21318
21319         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21320         System.Tasking.Utilities instead of that in System.Tasking.Stages.
21321
21322         * s-finimp.adb (initialization code): Modify the soft link for the
21323         finalization of the global list instead of Adafinal.
21324
21325         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21326         non-tasking version of the soft link for task termination. We do
21327         nothing since if we are using the non-tasking version it
21328         means that the task termination functionality is not used.
21329         (Null_Finalize_Global_List): Add this null version for the procedure
21330         in charge of finalizing the global list for controlled objects.
21331         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21332         instead for handling run-time termination in a more flexible way.
21333         (Adafinal_NT): This new procedure will take care of finalizing the
21334         global list for controlled objects if needed, but no tasking
21335         finalization.
21336
21337         * s-tarest.adb (Task_Lock): Do not try to lock again the
21338         Global_Task_Lock if we already own it. Otherwise, we get blocked in
21339         some run-time operations.
21340         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21341         until all nested locks have been released.
21342         (Task_Wrapper): Call the fall-back task termination handler. It
21343         applies to all tasks but the environment task.
21344         (Finalize_Global_Tasks): Add the call for the task termination
21345         procedure for the environment task.
21346         (Task_Wrapper): suppress warnings around declaration of
21347         Secondary_Stack_Address.
21348
21349         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21350         moved to the Common_ATCB record.
21351         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21352         Common_ATCB record.
21353         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21354         Common_ATCB record.
21355
21356         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21357         Fall_Back_Handler, and Specific_Handler.
21358
21359         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21360         defined in Ada.Task_Termination, to avoid circular dependencies.
21361         (Termination_Handler): Redefine this type here, alredy defined in
21362         Ada.Task_Termination, for avoiding circular dependencies.
21363         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21364         for storing task termination handlers. In addition,
21365         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21366         Common_ATCB because it is used by both the regular and the restricted
21367         run times.
21368         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21369         Common_ATCB because it is used by both the regular and the restricted
21370         run times.
21371         (Common_ATCB): Added a dynamic task analyzer field.
21372
21373         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21374         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21375         (Task_Wrapper): Call the task termination handler. It applies to all
21376         tasks but the environment task.
21377         (Finalize_Global_Tasks): Call the task termination procedure for the
21378         environment task. The call to Finalize_Global_List is now performed
21379         using the soft links mechanism.
21380         (Task_Wrapper): added dynamic stack analysis.
21381
21382         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21383         potentially blocking operations has been moved from
21384         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21385         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21386         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21387         this run-time check.
21388
21389         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21390         of task termination procedure.
21391         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21392         link for the task termination procedure.
21393
21394         * bindusg.adb: (Bindusg): Added documentation for -u option.
21395
21396         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21397         (Get_Main_C): Add handling of dynamic stack analysis.
21398         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21399
21400         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21401         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21402         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21403
21404         * opt.ads: Added flags used by dynamic stack measurement.
21405         (Max_Line_Length): Remove (not used anymore)
21406
21407         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21408         (Standart_Output): new subprogram
21409         (Set_Output): new subprogram
21410         (Put): now uses the value of Current_Out to know if the output has to be
21411         send to stderr or stdout.
21412
21413         * s-stausa.ads: Complete implementation.
21414
21415         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21416
21417         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21418         list of Ada 05 files.
21419         (GNAT Library Units): Add AltiVec files.
21420
21421         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21422         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21423         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21424
21425 2005-12-09  Nicolas Setton  <setton@adacore.com>
21426
21427         * adaint.c (__gnat_locate_regular_file): Return immediately if
21428         file_name is empty.
21429
21430 2005-12-09  Javier Miranda  <miranda@adacore.com>
21431             Hristian Kirtchev  <kirtchev@adacore.com>
21432
21433         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21434         to the specification because the frontend generates code that uses this
21435         subprogram.
21436         (Set_Interface_Table): Add missing assertion.
21437         Update documentation describing the run-time structure.
21438         (Displace): New subprogram that displaces the pointer to the object
21439         to reference one of its secondary dispatch tables.
21440         (IW_Membership): Modified to use the new table of interfaces.
21441         (Inherit_TSD): Modified to use the new table of interfaces.
21442         (Register_Interface_Tag): Use the additional formal to fill the
21443         contents of the new table of interfaces.
21444         (Set_Interface_Table): New subprogram that stores in the TSD the
21445         pointer to the table of interfaces.
21446         (Set_Offset_To_Top): Use the additional formal to save copy of
21447         the offset value in the table of interfaces.
21448         Update structure of GNAT Primary and Secondary dispatch table diagram.
21449         Add comment section on GNAT dispatch table prologue.
21450         (Offset_To_Signature): Update the constant value of the Signature field.
21451         (Dispatch_Table): Update comment on hidden fields in the prologue.
21452         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21453         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21454         the type of formal parameter T to Tag, introduce additional assertions.
21455         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21456         conversion.
21457         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21458
21459         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21460         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21461         record component containing the tag of the secondary dispatch table we
21462         have to use the Offset_To_Top run-time function to get this information;
21463         otherwise if the pointer to the base of the object has been displace
21464         we get a wrong value if we use the 'position attribute.
21465
21466         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21467         all the calls to Expand_Interface_Thunk.
21468         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21469         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21470         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21471         ensure that the interfaces implemented by the ancestors are placed
21472         at the header of the generated list.
21473         (Expand_Interface_Conversion): Handle the case in which the displacement
21474         associated with the interface conversion is not statically known. In
21475         this case we generate a call to the new run-time subprogram Displace.
21476         (Make_DT): Generate and fill the new table of interfaces.
21477         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21478         Get_Tagged_Kind and Set_Tagged_Kind.
21479         (Tagged_Kind): New function that determines the tagged kind of a type
21480         with respect to limitedness and concurrency and returns a reference to
21481         RE_Tagged_Kind.
21482         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21483         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21484         primary dispatch table for a type.
21485         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21486         secondary dispatch table respectively of a tagged type.
21487
21488         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21489         (Expand_Interface_Conversion): New subprogram to indicate if the
21490         displacement of the type conversion is statically known.
21491         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21492
21493         * rtsfind.ads (RE_Offset_To_Top): New entity
21494         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21495         accessible to users.
21496         (Re_Displace): New entity
21497         (RE_Interface_Data): New entity
21498         (RE_Set_Interface_Data): New_Entity
21499         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21500         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21501         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21502         RE_TK_Tagged, RE_TK_Task.
21503
21504         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21505         Init_Secondary_Tags_Internal to allow its use with interface types and
21506         also to generate the code for the new additional actual required
21507         by Set_Offset_To_Top.
21508         (Build_Init_Statements): In case of components associated with abstract
21509         interface types there is no need to generate a call to its IP.
21510         (Freeze_Record_Type): Generate Select Specific Data tables only for
21511         concurrent types.
21512         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21513         the bodies and specifications of the predefined primitive operations
21514         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21515         for concurrent types.
21516
21517         * exp_sel.ads, exp_sel.adb: New files.
21518
21519         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21520         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21521         properly protected objects and attach handler in the case of the
21522         restricted profile.
21523         Move embeded package Select_Expansion_Utilities into a separate external
21524         package.
21525         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21526         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21527         (Build_K, Build_S_Assignment): New subprograms, part of the select
21528         expansion utilities.
21529         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21530         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21531         where the trigger is a dispatching procedure of a limited tagged type.
21532
21533 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21534
21535         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21536         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21537         about the use and expansion of SAVE_EXPRs in the various possible
21538         renaming handling cases.
21539         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21540         abusing DECL_FCONTEXT.
21541
21542 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21543
21544         * a-convec.adb (Merge): Added assertions to check whether vector params
21545         are sorted.
21546
21547         * a-coinve.adb (Merge): Added assertions to check whether vector params
21548         are sorted.
21549
21550         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21551         draft.
21552         (Cursor'Read): raises PE
21553
21554         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21555         to its default value.
21556
21557         * a-cihama.adb: Manually check whether cursor's key and elem are
21558         non-null
21559
21560         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21561         (Merge): Assert that target and source lists are in order
21562         (Swap): Declare non-const temporaries, to pass to Splice
21563
21564         * a-cdlili.ads: (Splice): Changed param name and param mode
21565
21566         * a-cdlili.adb: (Splice): Changed param name and param mode
21567         (Merge): Assert that target and source lists are in order
21568         (Swap): Declare non-const temporaries, to pass to Splice
21569
21570         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21571         (Write): declare Stream param as not null
21572
21573         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21574         an exception message.
21575
21576 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21577             Robert Dewar  <dewar@adacore.com>
21578
21579         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21580         which is the absolute maximum length we can support.
21581
21582         * frontend.adb: For the processing of configuration pragma files,
21583         remove references to Opt.Max_Line_Length, which is not checked anymore.
21584
21585         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21586         length.
21587
21588         * scn.adb, scng.adb:
21589         Always check line length against the absolute supported maximum,
21590         Hostparm.Max_Line_Length.
21591
21592         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21593         value for the maximum line length is Max_Line_Length (not
21594         Column_Number'Last).
21595         Minor error msg update
21596         (Set_Style_Check_Options): New interface returning error msg
21597         Minor code reorganization (processing for 'M' was out of alpha order)
21598
21599         * switch-c.adb: New interface for Set_Style_Check_Options
21600
21601         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21602         msg.
21603
21604 2005-12-09  Javier Miranda  <miranda@adacore.com>
21605
21606         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21607         with IP subprogram were only supported if there were limited types.
21608
21609         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21610         records with IP subprogram were only supported if there were limited
21611         types.
21612
21613 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21614             Eric Botcazou  <ebotcazou@adacore.com>
21615
21616         * trans.c (tree_transform, emit_check): Adjust calls to
21617         build_call_raise, passing the now expected GNAT_NODE argument.
21618
21619         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21620         source line information than what the current global locus indicates
21621         when appropriate.
21622
21623         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21624         field has overflowed.
21625         (build_call_raise): Add a GNAT_NODE argument to convey better source
21626         line information than what the current global locus indicates when
21627         appropriate.
21628         (build_component_ref): Adjust call to build_call_raise.
21629
21630 2005-12-09  Pascal Obry  <obry@adacore.com>
21631
21632         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21633         the iterator is quitting iteration on parent directory.
21634
21635 2005-12-09  Javier Miranda  <miranda@adacore.com>
21636
21637         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21638         and the assignment to a class-wide object, before the assignment we
21639         generate a run-time check to ensure that the tag of the Target is
21640         covered by the tag of the source.
21641
21642 2005-12-09  Robert Dewar  <dewar@adacore.com>
21643
21644         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21645         parameter in call to Image_Wide_Character.
21646
21647         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21648         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21649         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21650         annoying FFFE/FFFF inconsistency.
21651
21652 2005-12-09  Robert Dewar  <dewar@adacore.com>
21653             Javier Miranda  <miranda@adacore.com>
21654             Ed Schonberg  <schonberg@adacore.com>
21655
21656         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21657         of type conversion.
21658         (Find_Interface): New subprogram that given a tagged type and one of its
21659         component associated with the secondary table of an abstract interface
21660         type, return the entity associated with such abstract interface type.
21661         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21662         base type to create anonymous subtype, because entity may be a locally
21663         declared subtype or generic actual.
21664         (Find_Interface): New subprogram that given a tagged type and one of its
21665         component associated with the secondary table of an abstract interface
21666         type, return the entity associated with such abstract interface type.
21667
21668         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21669         conversion cannot be handled at compile time. In this case we pass this
21670         information to the expander to generate the appropriate code.
21671
21672 2005-12-09  Robert Dewar  <dewar@adacore.com>
21673             Ed Schonberg  <schonberg@adacore.com>
21674             Gary Dismukes  <dismukes@adacore.com>
21675             Javier Miranda  <miranda@adacore.com>
21676             Hristian Kirtchev  <kirtchev@adacore.com>
21677
21678         * einfo.adb (Itype_Printed): New flag
21679         (Is_Limited_Type): Derived types do not inherit limitedness from
21680         interface progenitors.
21681         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21682         interfaces.
21683
21684         * einfo.ads (Itype_Printed): New flag
21685         Move Is_Wrapper_Package to proper section
21686         Add missing Inline for Is_Volatile
21687
21688         * output.ads, output.adb (Write_Erase_Char): New procedure
21689         (Save/Restore_Output_Buffer): New procedures
21690         (Save/Restore_Output_Buffer): New procedures
21691
21692         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21693         Add missing support for anonymous access type
21694         (Write_Id): Insert calls to Write_Itype
21695         (Write_Itype): New procedure to output itypes
21696
21697         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21698         use of "limited" in declaration.
21699
21700         * sinfo.ads, sinfo.adb:
21701         Formal derived types can carry an explicit "limited" indication.
21702
21703         * sem_ch3.adb: Add with and use of Targparm.
21704         (Create_Component): If Frontend_Layout_On_Target is True and the
21705         copied component does not have a known static Esize, then reset
21706         the size and positional fields of the new component.
21707         (Analyze_Component_Declaration): A limited component is
21708         legal within a protected type that implements an interface.
21709         (Collect_Interfaces): Do not add to the list the interfaces that
21710         are implemented by the ancestors.
21711         (Derived_Type_Declaration): If the parent of the full-view is an
21712         interface perform a transformation of the tree to ensure that it has
21713         the same parent than the partial-view. This simplifies the job of the
21714         expander in order to generate the correct object layout, and it is
21715         needed because the list of interfaces of the full-view can be given in
21716         any order.
21717         (Process_Full_View): The parent of the full-view does not need to be
21718         a descendant of the parent of the partial view if both parents are
21719         interfaces.
21720         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21721         "limited" the parent must be a limited type.
21722         (Build_Derived_Record_Type): A derived type that is explicitly limited
21723         must have limited ancestor and progenitors.
21724         (Build_Derived_Type): Ditto.
21725         (Process_Full_View): Verify that explicit uses of "limited" in partial
21726         and full declarations are consistent.
21727         (Find_Ancestor_Interface): Remove function.
21728         (Collect_Implemented_Interfaces): New procedure used to gather all
21729         implemented interfaces by a type.
21730         (Contain_Interface): New function used to check whether an interface is
21731         present in a list.
21732         (Find_Hidden_Interface): New function used to determine whether two
21733         lists of interfaces constitute a set equality. If not, the first
21734         differing interface is returned.
21735         (Process_Full_View): Improve the check for the "no hidden interface"
21736         rule as defined by AI-396.
21737
21738 2005-12-09  Robert Dewar  <dewar@adacore.com>
21739
21740         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21741         types, not on record subtypes.
21742         (Freeze_Entity): Code cleanup. Add barrier to the loop
21743         that generates the references for primitive operations. This allows to
21744         remove an unnecessary exception handler.
21745         Code reformatting and comment clean ups.
21746
21747 2005-12-09  Vincent Celier  <celier@adacore.com>
21748
21749         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21750         If GNAT CHECK is called with a project file, but with no
21751         source on the command line, call gnatcheck with all the compilable
21752         sources of the project.
21753         Take into account the new command Check, for gnatcheck. Treat as for
21754         other ASIS tools: take into account project, specific package Check and
21755         Compiler switches.
21756         For ASIS tools, add the switches in package Compiler for
21757         the invocation of the compiler.
21758
21759         * prj-attr.adb: Add package Check and its attributes
21760
21761         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21762
21763         * vms_conv.adb (Initialize): Change Params of command Check to
21764         unlimited files.
21765         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21766         Add data for new command Check
21767
21768         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21769         ELIM.
21770         Add qualifiers for Check command options
21771         (Command_Type): New command Check
21772
21773 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21774
21775         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21776         command line switch overruns the output buffer.
21777
21778 2005-12-09  Robert Dewar  <dewar@adacore.com>
21779
21780         * sem_prag.adb: Processing for new pragma Complete_Representation
21781         (Analyze_Pragma, case Debug): Implement two argument form.
21782
21783         * par-prag.adb: Entry for new pragma Complete_Representation
21784         (Prag, case Debug): Recognize two argument form of pragma Debug
21785         New interface for Set_Style_Check_Options.
21786
21787         * sem_ch13.adb: Implement new pragma Complete_Representation.
21788
21789         * snames.adb, snames.ads, snames.h: Entry for new pragma
21790         Complete_Representation.
21791
21792 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21793
21794         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21795         available user-specified stream attributes on limited parameters to
21796         also test the type directly rather than only its underlying type (for
21797         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21798         attributes are visible at the point of the subprogram declaration.
21799         For Ada 2005, the error message is modified to indicate that the
21800         type's stream attributes must be visible (again, only for -gnat05).
21801
21802 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21803
21804         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21805         anonymous access types.
21806
21807         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21808         matching of anonymous access types and anonymous access to subprogram
21809         types. 'R'M 4.9.1 (2/2).
21810
21811 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21812
21813         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21814         rule prematurely when operands are universal, remaining ambiguities
21815         will be removed during resolution.
21816         Code cleanup.
21817
21818         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21819         that are Ada 2005 functions.
21820         (Has_Abstract_Interpretation): Subsidiary to
21821         Remove_Conversions, to remove ambiguities caused by abstract operations
21822         on numeric types when operands are universal.
21823
21824 2005-12-09  Robert Dewar  <dewar@adacore.com>
21825
21826         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21827         for case where spec is categorized.
21828
21829 2005-12-09  Javier Miranda  <miranda@adacore.com>
21830
21831         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21832         types use the corresponding record type. This was not needed before
21833         the implementation of Ada 2005 synchronized types because
21834         concurrent types were never tagged types in Ada 95.
21835
21836 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21837
21838         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21839         first subtype of the type of the expression to verify that it is a
21840         legal Time type.
21841
21842 2005-12-09  Robert Dewar  <dewar@adacore.com>
21843
21844         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21845         decoded names.
21846
21847 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21848             Robert Dewar  <dewar@adacore.com>
21849             Ed Falis  <falis@adacore.com>
21850             Florian Villoing  <villoing@adacore.com>
21851             Thomas Quinot  <quinot@adacore.com>
21852             Arnaud Charlet  <charlet@adacore.com>
21853
21854         * gnat_ugn.texi: Created section "Stack Related Tools"
21855         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21856         "Stack Related Tools"
21857         Added subsection "Static Stack Usage Analysis"
21858         Added subsection "Dynamic Stack Usage Analysis"
21859         Include documentation of itypes in sprint listing (-gnatG)
21860         Documented gnatbind -D switch (default sec stack size for fixed sec
21861         stacks).
21862         Added Interrupt_State and Persistent_BSS to list of configuration
21863         pragmas.
21864         Add missing doc for maximum value of nnn in -gnatyMnnn
21865
21866         * gnat_rm.texi: Document the AltiVec binding.
21867         Add documentation for pragma Complete_Representation
21868         Shortened an overly long line (> 79 chars)
21869         Clarify documentation of unchecked conversion in implementation
21870         defined cases.
21871         Document two argument form of pragma Debug
21872
21873         * types.ads (Column_Number): Update documentation.
21874
21875         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21876         library level Finalize_Storage_Only objects (these are not attached to
21877         any finalization list).
21878
21879         * system-mingw.ads: (Underlying_Priorities): Update comment.
21880
21881 2005-12-09  Robert Dewar  <dewar@adacore.com>
21882
21883         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21884         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21885         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21886         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21887         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21888         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21889         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21890         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21891         reformatting.
21892
21893 2005-12-09  Robert Dewar  <dewar@adacore.com>
21894
21895         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21896         (Ne_G): New function
21897
21898         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21899         for tag assignment.
21900         (Rewrite_Comparison): Handle case where operation is not a comparison
21901         and ignore, and also handle type conversion case.
21902
21903 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21904
21905         * exp_aggr.ads: Fix typo in comment.
21906         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21907
21908 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21909
21910         * layout.adb: Replace various uses of byte by storage unit throughout.
21911         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21912         static size, convert to storage units before returning, to conform to
21913         spec.
21914
21915 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21916
21917         * g-exctra.ads: Fix typo in comment.
21918
21919 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21920
21921         * utils.c: Minor reformatting.
21922
21923 2005-12-09  Robert Dewar  <dewar@adacore.com>
21924
21925         * g-soccon.ads:
21926         Further comment fixes to make the status of the default file clear
21927
21928         * s-bitops.adb: Clarify comment for Bits_Array
21929
21930 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21931
21932         * Make-lang.in (ada.install-normal): Remove.
21933
21934 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21935
21936         * Make-lang.in: Remove all dependencies on s-gtype.
21937
21938 2005-12-05  Richard Guenther  <rguenther@suse.de>
21939
21940         * utils.c (convert): Use fold_convert where appropriate.
21941
21942 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21943
21944         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21945         a period is meant.
21946
21947 2005-12-02  Richard Guenther  <rguenther@suse.de>
21948
21949         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21950
21951 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21952
21953         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21954         nodes.
21955
21956 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21957
21958         * mlib-prj.adb (Build_Library): Initialize Delete.
21959
21960 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21961
21962         * socket.c: Add extern int h_errno for rtems since networking header
21963         files are not available at this point in a tool bootstrap. Newlib
21964         only has basic C library header files.
21965
21966 2005-11-19  Richard Guenther  <rguenther@suse.de>
21967         Roger Sayle  <roger@eyesopen.com>
21968
21969         PR ada/23717
21970         * misc.c (internal_error_function): Don't use vsprintf to format
21971         the error message text, instead use pp_format_text and the new
21972         pretty printer APIs.  This allows handling of %qs, %w, etc.
21973
21974 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21975
21976         PR ada/24857
21977         * Makefile.in: Use s-auxdec-empty for RTEMS.
21978
21979 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21980
21981         PR ada/22333
21982         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21983         a temporary if taking the address of something that is neither
21984         reference, declaration, or constant, since the gimplifier
21985         can't handle that case.
21986
21987 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21988
21989         PR ada/24857
21990         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21991
21992 2005-11-16  Richard Guenther  <rguenther@suse.de>
21993
21994         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21995
21996 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21997
21998         PR ada/24855
21999         * raise-gcc.c: Add missing stdarg.h include.
22000
22001 2005-11-16  Richard Guenther  <rguenther@suse.de>
22002
22003         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22004         (ada/misc.o): Likewise.
22005
22006 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22007
22008         * g-soccon.ads: Minor reformatting. Update comments.
22009
22010         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22011         gain visibility on the declaration of struct timeval.
22012
22013         * g-soccon-freebsd.ads,
22014         g-soccon-darwin.ads,
22015         g-soccon-tru64.ads,
22016         g-soccon-aix.ads,
22017         g-soccon-irix.ads,
22018         g-soccon-hpux.ads,
22019         g-soccon-solaris.ads,
22020         g-soccon-vms.ads,
22021         g-soccon-mingw.ads,
22022         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22023
22024         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22025         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22026         g-soccon-linux-x86.ads: New files.
22027
22028         * g-socthi-mingw.adb:
22029         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22030
22031         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22032         (time_t, suseconds_t): New types constructed to match the tv_sec
22033         and tv_usec fields of C struct timeval.
22034         (Timeval): Construct structure in terms of the new types.
22035         (Host_Errno): New function (imported from socket.c), returns last hosts
22036         database error.
22037
22038         * g-socthi-vxworks.adb:  Add error handling circuitry.
22039
22040         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22041         components of struct timeval.
22042         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22043         (Check_Selector): In error conditions, clear internal socket sets to
22044         avoid a memory leak.
22045         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22046         Send_Timeout, Receive_Timeout.
22047
22048         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22049         the tv_sec and tv_usec fields of C struct timeval.
22050         (Timeval): Construct structure in terms of the new types.
22051         (Host_Errno): New function (imported from socket.c), returns last hosts
22052         database error.
22053
22054         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22055         hosts database last error code.
22056
22057         * gen-soccon.c: Complete value expansion should not be performed on
22058         TARGET, as it has the form of a math expression, and some components
22059         may be platform-defined macros.
22060         For VxWorks, generate the OK and ERROR values.
22061         New constants giving the sizes of the components of C struct timeval.
22062
22063 2005-11-14  Robert Dewar  <dewar@adacore.com>
22064             Ed Schonberg  <schonberg@adacore.com>
22065
22066         PR ada/18434
22067         * types.ads: Include All_Checks in Suppress_Array
22068
22069         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22070         not(a=b), since we no longer do this rewriting, and hence it is not
22071         needed.
22072         (Elaboration_Checks_Suppressed): Add special casing to
22073         deal with different cases of static and dynamic elaboration checks (all
22074         checks does not count in the first case, but does in the second).
22075         (Expr_Known_Valid): Do not assume that the result of any arbitrary
22076         function call is valid, since this is not the case.
22077         (Ensure_Valid): Do not apply validity check to a real literal
22078         in a universal or fixed context
22079
22080         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22081         elementary types using the operator in standard. It is cleaner not to
22082         modify the programmers intent, especially in the case of floating-point.
22083         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22084         it did not matter because we always rewrote a/=b to not(a=b).
22085         (Expand_Allocator_Expression): For an allocator expression whose nominal
22086         subtype is an unconstrained packed type, convert the expression to its
22087         actual constrained subtype.
22088         Implement warning for <= or >= where < or > not possible
22089         Fix to Vax_Float tests (too early in many routines, causing premature
22090         Vax_Float expansions.
22091
22092         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22093         to be used with packages and generic packages as well as with
22094         subprograms.
22095         (Suppress): Set All_Checks, but not Elaboration_Check, for case
22096         of pragma Suppress (All_Checks)
22097         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22098         a string literal for precise control over warnings.
22099         Avoid raise of pragma in case of unrecognized pragma and just return
22100         instead.
22101
22102         * sem_prag.ads: Minor reformatting
22103
22104         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22105         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22106         Switch. Do not handle any exception.
22107         Include -gnatwx as part of -gnatg (warn on redundant parens)
22108         Allow optional = after -gnatm
22109         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22110         longer sets Elaboration_Checks.
22111         Code to set warning mode moved to Sem_Warn
22112         so that it can be shared by pragma processing.
22113
22114         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22115         statement.
22116
22117         * s-taprop-solaris.adb:
22118         Change some <= to =, to avoid new warning
22119
22120         * a-exexda.adb, prj-proc.adb:
22121         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22122         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22123
22124 2005-11-14  Robert Dewar  <dewar@adacore.com>
22125
22126         * exp_vfpt.adb: Handle /= case
22127         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22128         so that we do not get duplicate scaling for fixed point conversions.
22129
22130         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22131
22132 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22133
22134         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22135         Increase default priority on Lynx from 15 to 17, and meet the Ada
22136         requirement that Default_Priority be ((Priority'First +
22137         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22138
22139 2005-11-14  Vincent Celier  <celier@adacore.com>
22140
22141         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22142         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22143         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22144         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22145         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22146         mlib-tgt-lynxos.adb (DLL_Prefix): New function
22147
22148 2005-11-14  Doug Rupp  <rupp@adacore.com>
22149
22150         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22151         private part.
22152
22153 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22154
22155         * s-traces-default.adb, s-trafor-default.ads,
22156         s-tratas-default.adb: Fix compilation errors.
22157
22158 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22159
22160         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22161         raising the exception so the memory used is freed.
22162
22163 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22164
22165         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22166         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22167         (convert_address): Update comments and list of platforms using this.
22168
22169         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22170         no longer used.
22171
22172 2005-11-14  Pascal Obry  <obry@adacore.com>
22173             Vincent Celier  <celier@adacore.com>
22174
22175         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22176         GNAT.Command_Line.
22177
22178         * memroot.adb: Remove redundant with/use clause on
22179         System.Storage_Elements.
22180
22181 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22182
22183         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22184         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22185         related code to a-exexpr.adb
22186         (Save_Occurrence_And_Private): Move GCC EH related code to
22187         a-exexpr-gcc.adb
22188         (Raise_Current_Excep): Add new variable Id with pragma
22189         volatile, to ensure that the variable lives on stack.
22190
22191         * a-exexpr-gcc.adb, raise-gcc.c: New file.
22192
22193         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22194         from a-except.adb.
22195         Move GCC EH related code to a-exexpr-gcc.adb
22196
22197         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22198         64-bit Solaris
22199         Split the Linux version of g-soccon into separate variants for 32 and 64
22200         bit platforms.
22201         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22202         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22203         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22204         of host variable $(RANLIB_FLAGS).
22205         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22206         Code clean up: remove unused/obsolete targets.
22207         (EH_MECHANISM): New variable introduced to differenciate between the
22208         two EH mechanisms statically.
22209         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22210         (LIBGNAT_OBJS): Add raise-gcc.o
22211         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22212         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22213         supports VxWorks 6 RTPs.
22214         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22215         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22216
22217         * raise.c: Move all GCC EH-related routines to raise-gcc.c
22218
22219 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22220
22221         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22222         deferral level, when abort is not allowed, to a later stage (the
22223         Task_Wrapper).
22224         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22225         it will not get changed by the generated code. It was previously done
22226         in Create_Task.
22227
22228 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22229             Olivier Hainque  <hainque@adacore.com>
22230             Eric Botcazou  <ebotcazou@adacore.com>
22231
22232         * decl.c:
22233         Factor common code to build a storage type for an unconstrained object
22234         from a fat or thin pointer type and a constrained object type.
22235         (annotate_value): Handle BIT_AND_EXPR.
22236         (annotate_rep): Don't restrict the back annotation of inherited
22237         components to the type_annotate_only case.
22238         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22239         we are not defining the type.
22240         <E_Record_Type>: Likewise.
22241         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22242         to get advantage of the new maybe_stabilize_reference interface, to
22243         ensure that what we reference is indeed stabilized instead of relying
22244         on assumptions on what the stabilizer does.
22245         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22246         type imported through a limited_with clause, use its non-limited view.
22247         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22248         differentiation.
22249         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22250         of #if sections + explicit comparisons of convention identifiers.
22251         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22252         before early-returning for certain types when code generation is
22253         disabled.
22254         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22255         nullification of gnu_expr we do for objects with address clause and
22256         that we are not defining.
22257         (elaborate_expression_1): Do not create constants when creating
22258         variables needed by the debug info: the dwarf2 writer considers that
22259         CONST_DECLs is used only to represent enumeration constants, and emits
22260         nothing for them.
22261         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22262         object with an address clause into an indirect reference, drop the
22263         initializing expression.
22264         Include "expr.h".
22265         (STACK_CHECK_BUILTIN): Delete.
22266         (STACK_CHECK_PROBE_INTERVAL): Likewise.
22267         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22268         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22269         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22270         corresponding to the renamed object as ignored for debugging purposes.
22271
22272         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22273         related): For a prefix that is a dereference of a fat or thin pointer,
22274         if there is an actual subtype provided by the front-end, use that
22275         subtype to build an actual type with bounds template.
22276         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22277         is provided by the front-end, use that subtype to compute the size of
22278         the deallocated object.
22279         (gnat_to_gnu): When adding a statement into an elaboration procedure,
22280         check for a potential violation of a No_Elaboration_Code restriction.
22281         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22282         with extra arguments to control whether to recurse through non-values
22283         and to let the caller know if the stabilization has succeeded.
22284         (gnat_stabilize_reference): Now a simple wrapper around
22285         maybe_stabilize, for common uses without restriction on lvalues and
22286         without need to check for the success indication.
22287         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22288         pass false instead of 0 as the FORCE argument which is a bool.
22289         (Identifier_to_gnu): Remove checks ensuring that an renamed object
22290         attached to a renaming pointer has been properly stabilized, as no such
22291         object is attached otherwise.
22292         (call_to_gnu): Invoke create_var_decl to create the temporary when the
22293         function uses the "target pointer" return mechanism.
22294         Reinstate conversion of the actual to the type of the formal
22295         parameter before any other specific treatment based on the passing
22296         mechanism. This turns out to be necessary in order for PLACEHOLDER
22297         substitution to work properly when the latter type is unconstrained.
22298
22299         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22300         common pattern.
22301         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22302         with extra arguments to control whether to recurse through non-values
22303         and to let the caller know if the stabilization has succeeded.
22304
22305         * utils2.c (gnat_build_constructor): Only sort the fields for possible
22306         static output of record constructor if all the components are constant.
22307         (gnat_build_constructor): For a record type, sort the list of field
22308         initializers in increasing bit position order.
22309         Factor common code to build a storage type for an unconstrained object
22310         from a fat or thin pointer type and a constrained object type.
22311         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22312         types variants, and process special cases of VIEW_CONVERT expressions
22313         as their NOP_EXPR counterpart to ensure we get to the
22314         CORRESPONDING_VARs associated with CONST_DECls.
22315         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22316         on the right-hand side.
22317
22318         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22319         a common pattern.
22320         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22321         are converting back to its original type.
22322         (convert) <JM input>: Fallthrough regular conversion code instead of
22323         extracting the object if converting to a type variant.
22324         (create_var_decl): When a variable has an initializer requiring code
22325         generation and we are at the top level, check for a potential violation
22326         of a No_Elaboration_Code restriction.
22327         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22328         SIZE and SIZE_UNIT which we need for later back-annotations.
22329         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22330         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22331         is an unchecked union.
22332         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22333         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22334         main variant, just replace the VIEW_CONVERT_EXPR.
22335         <UNION_TYPE>: Revert 2005-03-02 change.
22336
22337         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22338
22339         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22340
22341 2005-11-14  Matthew Heaney  <heaney@adacore.com>
22342
22343         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22344         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22345         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22346         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22347         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22348         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22349         Compiles against the spec for ordered maps described in sections
22350         A.18.6 of the most recent (August 2005) AI-302 draft.
22351
22352 2005-11-14  Olivier Hainque  <hainque@adacore.com>
22353
22354         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22355         to ensure bias adjustments take place when need be and to prevent
22356         occurrences of intermediate overflows.
22357
22358 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22359             Olivier Hainque  <hainque@adacore.com>
22360
22361         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22362         ia64 HP-UX.
22363
22364         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22365         tracebacks on ia64 HP-UX and provide explanatory comment.
22366         Enable backtraces on ia64 GNU/Linux.
22367         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22368         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22369
22370 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22371             Javier Miranda  <miranda@adacore.com>
22372
22373         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22374         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22375         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22376         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22377
22378         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22379         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22380         assertions).
22381
22382         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22383         subprogram that generates the external name associated with a
22384         secondary dispatch table.
22385         (Get_Secondary_DT_External_Name): New subprogram that generates the
22386         external name associated with a secondary dispatch table.
22387
22388 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22389
22390         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22391         line in the ALI file to include both an instantiation reference, and a
22392         returned value.
22393
22394 2005-11-14  Vincent Celier  <celier@adacore.com>
22395
22396         * clean.adb (Check_Project): Look for Ada code in extending project,
22397         even if Ada is not specified as a language.
22398         Use new function DLL_Prefix for DLL_Name
22399         (Clean_Interface_Copy_Directory): New procedure
22400         (Clean_Library_Directory): New procedure
22401         (Clean_Directory): Remove procedure, no longer used
22402         (Clean_Project): Do not delete any file in an externally built project
22403
22404         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22405         directory of an extending project, even when there are no Ada source
22406         present.
22407         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22408         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22409
22410         * mlib-prj.adb (Check_Library): For all library projects, get the
22411         library file timestamp.
22412         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22413         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22414         (Clean): Remove procedure, no longer used
22415         (Ultimate_Extension_Of): New function
22416         (Build_Library): When cleaning the library directory, only remove an
22417         existing library file and any ALI file of a source of the project.
22418         When cleaning the interface copy directory, remove any source that
22419         could be a source of the project.
22420
22421         * prj.ads, prj.adb (Project_Empty): Add values of new components
22422         Library_TS and All_Imported_Projects.
22423         (Project_Empty): Add values for new components of Project_Data:
22424         Library_ALI_Dir and Display_Library_ALI_Dir
22425
22426         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22427
22428         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22429         attribute Library_ALI_Dir.
22430         (Check_Library_Attributes): The library directory cannot be the same as
22431         any source directory of the project tree.
22432         (Check_Stand_Alone_Library): The interface copy directory cannot be
22433         the same as any source directory of the project tree.
22434
22435         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22436         all temporary files.
22437
22438 2005-11-14  Robert Dewar  <dewar@adacore.com>
22439             Ed Schonberg  <schonberg@adacore.com>
22440
22441         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22442         (Check_Elab_Call): A call within a protected body is never an
22443         elaboration call, and does not require checking.
22444         (Same_Elaboration_Scope): Take into account protected types for both
22445         entities.
22446         (Activate_Elaborate_All_Desirable): New procedure
22447
22448         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22449         desirable
22450
22451         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22452         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22453
22454         * lib-writ.ads, lib-writ.adb:
22455         Implement new AD/ED for Elaborate_All/Elaborate desirable
22456         Use new Elaborate_All_Desirable flag in N_With_Clause node
22457
22458         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22459         N_Free_Statement nodes.
22460         Define new class N_Subprogram_Instantiation
22461         Add Elaborate_Desirable flag to N_With_Clause node
22462         Add N_Delay_Statement (covering two kinds of delay)
22463
22464         * debug.adb: Introduce d.f flag for compiler
22465         Add -da switch for binder
22466
22467 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22468             Cyrille Comar  <comar@adacore.com>
22469
22470         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22471         for task component, in the case of a limited aggregate. The enclosed
22472         object declaration will create it earlier. Otherwise, in the case of a
22473         nested aggregate, the object may appear in the wrong scope.
22474         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22475         (Gen_Assign): If the component being assigned is an array type and the
22476         expression is itself an aggregate, wrap the assignment in a block to
22477         force finalization actions on the temporary created for each row of the
22478         enclosing object.
22479         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22480         structures are initialized after all discriminants are set so that
22481         they can be accessed even when their offset is dynamic.
22482
22483 2005-11-14  Robert Dewar  <dewar@adacore.com>
22484             Hristian Kirtchev  <kirtchev@adacore.com>
22485
22486         * sem_attr.adb: Implement Machine_Rounding attribute
22487         (Analyze_Access_Attribute): The access attribute may appear within an
22488         aggregate that has been expanded into a loop.
22489         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22490         'Terminated whenever the prefix is of a task interface class-wide type.
22491         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22492         the prefix is of a task interface class-wide type.
22493
22494         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22495         to avoid warnings.
22496
22497         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22498         Remove pragma Inline for [Unaligned_]Valid.
22499         Add comments that Valid routines do not work for Vax_Float
22500
22501         * exp_attr.adb: Implement Machine_Rounding attribute
22502
22503         * snames.h: Add entry for Machine_Rounding attribute
22504
22505 2005-11-14  Javier Miranda  <miranda@adacore.com>
22506             Robert Dewar  <dewar@adacore.com>
22507             Hristian Kirtchev  <kirtchev@adacore.com>
22508
22509         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22510         and related): For a prefix that is an explicit dereference of an
22511         access to unconstrained packed array type, annotate the dereference
22512         with an actual subtype so GIGI can make a correct size computation.
22513         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22514         'Unrestricted_Access, if the designated type is an interface we
22515         add a type conversion to force the displacement of the pointer
22516         to the secondary dispatch table.
22517         Use Universal_Real instead of Long_Long_Float when we need a high
22518         precision float type for the generated code (prevents gratuitous
22519         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22520         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22521         'Terminated for task interface class-wide objects. Generate a call to
22522         the predefined dispatching routine used to retrieve the _task_id from
22523         a task corresponding record.
22524         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22525
22526         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22527         (Check_Dispatching_Operation): Protect the frontend againts
22528         previously detected errors.
22529
22530         * Makefile.rtl: Add new instantiations of system.fat_gen
22531
22532         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22533         Change name of instantiated package for better consistency
22534         with newly added system.fat_gen instantiations.
22535
22536         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22537         s-fvagfl.ads: New files.
22538
22539 2005-11-14  Cyrille Comar  <comar@adacore.com>
22540             Thomas Quinot  <quinot@adacore.com>
22541
22542         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22543         assignment of a value of a tagged type that has been rewritten to a
22544         block statement, it is known by construction that no checks are
22545         necessary for the statements within the block: analyze it with checks
22546         suppressed.
22547         (Expand_N_If_Statement): When killing a dead then-branch in an
22548         if-statement that has elsif_parts, recompute the Current_Value node
22549         for any entity whose value is known from the condition of the first
22550         elsif_part.
22551         (Expand_N_Return_Statement): When returning a mutable record, convert
22552         the return value into its actual subtype in order to help the backend
22553         to return the actual size instead of the maximum. This is another
22554         aftermath of not returning mutable records on the sec-stack anymore.
22555
22556         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22557         handling of error msg for suspicious reverse range iteration.
22558         (Check_Possible_Current_Value_Condition): Move declaration from body to
22559         spec, to allow this subprogram to be called from exp_ch5.
22560
22561 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22562
22563         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22564         generate a set of nested array aggregates instead of a single flat
22565         aggregate for multi-dimensional arrays.
22566
22567 2005-11-14  Pascal Obry  <obry@adacore.com>
22568
22569         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22570         by spawnve is a process handle, no need to convert. Add a parameter
22571         close to control wether the process handle must be closed.
22572         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22573         a process handle, not need to convert.
22574         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22575
22576         * g-expect.adb: (Kill): Document the new close parameter.
22577         (Close): Do not release the process handle in the kill there as
22578         waitpid() is using it.
22579         (Send_Signal): Release the process handle.
22580
22581 2005-11-14  Robert Dewar  <dewar@adacore.com>
22582
22583         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22584         need a high precision float type for the generated code (prevents
22585         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22586         used).
22587
22588         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22589         need a high precision float type for the generated code (prevents
22590         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22591         used).
22592         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22593         allowed on non-static enumeration subtypes. Force a load error to emit
22594         the correct diagnostic.
22595
22596 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22597             Robert Dewar  <dewar@adacore.com>
22598             Ed Schonberg  <schonberg@adacore.com>
22599
22600         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22601         subtype to compute the size of the designated object at run-time,
22602         create such a subtype and store it in the Actual_Designated_Subtype
22603         attribute of the N_Free_Statement.
22604         Generate itype for classwide designated object in both cases of
22605         user-specified storage pool: specific and class-wide, not only in the
22606         specific case.
22607         Raise CE when trying to set a not null access type object to null.
22608         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22609         an explicit loop, because freeze nodes make its position variable.
22610
22611         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22612         null object.
22613
22614 2005-11-14  Javier Miranda  <miranda@adacore.com>
22615
22616         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22617         Build_Stream_Procedure): Add the null-excluding attribute to the first
22618         formal.
22619         This has no semantic meaning under Ada95 mode but it is a
22620         requirement under Ada05 mode.
22621
22622         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22623         the null exclusion is used under Ada95 mode
22624         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22625         (P_Access_Definition): Remove assertion that forbids the use of
22626         the null-exclusion feature in Ada95.
22627
22628 2005-11-14  Robert Dewar  <dewar@adacore.com>
22629
22630         * impunit.adb: Exclude container helper units not intended for use by
22631         users.
22632
22633 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22634
22635         * freeze.adb (Freeze_Entity): For an access formal that is an access
22636         to subprogram, freeze the anonymous subprogram type at the same time,
22637         to prevent later freezing in the wrong scope, such as the enclosing
22638         subprogram body.
22639         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22640         subprogram whenever available.
22641
22642 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22643
22644         PR ada/23732
22645         * gnatvsn.ads (Library_Version): Bump to 4.1
22646
22647 2005-11-14  Robert Dewar  <dewar@adacore.com>
22648
22649         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22650         Storage_Offset to avoid wrap around causing invalid results.
22651
22652 2005-11-14  Pascal Obry  <obry@adacore.com>
22653
22654         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22655         cross-compiler.
22656         (Scan_Bind_Arg): Fail with an error message if -M option is used
22657         on a native compiler.
22658
22659 2005-11-14  Robert Dewar  <dewar@adacore.com>
22660             Vincent Celier  <celier@adacore.com>
22661
22662         * gprep.adb: Implement -C switch to scan comments
22663
22664         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22665
22666         * scans.ads: Comment updates (including new use of Tok_Comment in
22667         preprocessing)
22668
22669         * opt.ads: Add documentation for flags that are used by gprmake,
22670         currently and in the next version of gprmake.
22671         (Verbosity_Level): New variable
22672         Add Replace_In_Comments switch
22673
22674         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22675         and -vm.
22676         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22677
22678 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22679
22680         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22681         message, friendlier.
22682
22683 2005-11-14  Robert Dewar  <dewar@adacore.com>
22684
22685         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22686
22687 2005-11-14  Doug Rupp  <rupp@adacore.com>
22688
22689         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22690
22691 2005-11-14  Robert Dewar  <dewar@adacore.com>
22692
22693         * interfac.ads: Change declarations of IEEE float types so that we no
22694         longer need a separate version of this package for VMS.
22695
22696 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22697
22698         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22699         internal entity created for the declaration of a child subprogram body
22700         with no spec as coming from source, to generate proper cross-reference
22701         information.
22702
22703 2005-11-14  Vincent Celier  <celier@adacore.com>
22704
22705         * make.adb (Compile_Sources): Change verbose message to minimum
22706         verbosity level High for "is in an Ada library", "is a read-only
22707         library" and "is an internal library",
22708         (Create_Binder_Mapping_File): Path name of ALI file for library project
22709         must include the library directory, not the object directory.
22710         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22711         for new switches -vl, -vm and -vh.
22712         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22713         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22714         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22715         in a project that is externally built.
22716         (Compute_All_Imported_Projects): New procedure
22717         (Gnatmake): Check if importing libraries should be regenerated because
22718         at least an imported library is more recent.
22719         (Initialize): For each project compute the list of the projects it
22720         imports directly or indirectly.
22721         (Add_Library_Search_Dir): New procedure, used in place of
22722         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22723         put in the search paths.
22724         (Add_Source_Search_Dir): New procedure, used in place of
22725         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22726         put in the search paths.
22727         (Mark_Directory): Resolve the absolute path the directory before marking
22728         it.
22729
22730         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22731         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22732         Switch. Do not handle any exception.
22733         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22734         so that the switch is recognized as valid.
22735         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22736
22737 2005-11-14  GNAT Script  <nobody@adacore.com>
22738
22739         * Make-lang.in: Makefile automatically updated
22740
22741 2005-11-14  Pascal Obry  <obry@adacore.com>
22742
22743         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22744         used.
22745         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22746         In both cases the last argument was dropped.
22747
22748 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22749
22750         * namet.h: (Column_Numbe): New type.
22751         (Get_Column_Number): Define to sinput__get_column_number.
22752         (Instantiation): Define to sinput__instantiation.
22753         (Get_Column_Number): Declare.
22754         (Instantiation): Likewise.
22755
22756 2005-11-14  Robert Dewar  <dewar@adacore.com>
22757
22758         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22759         syntax, which could cause compiler hangs.
22760
22761 2005-11-14  Vincent Celier  <celier@adacore.com>
22762
22763         * prj-ext.adb: Take into account new environment variable
22764         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22765         are defined.
22766         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22767         normalize its path name, making it absolute and resolving symbolic
22768         links, and replace the original if resolved path is different.
22769
22770 2005-11-14  Vincent Celier  <celier@adacore.com>
22771
22772         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22773         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22774
22775 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22776
22777         * prj-pp.adb (Print): Do not output the with statement if the
22778         associated name is empty, which happens for virtual extending projects.
22779         (Print): Preserve the "extends all" attribute when printing the project.
22780
22781         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22782         a virtual extending project.
22783
22784 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22785
22786         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22787         rhs of an assignment even if the type is unconstrained, when the
22788         context is non-expanding.
22789         In an inlined body, if the context type is private,
22790         resolve with its full view, which must be a composite type.
22791
22792 2005-11-14  Robert Dewar  <dewar@adacore.com>
22793             Ed Schonberg  <schonberg@adacore.com>
22794
22795         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22796         Do not give obsolescent warning on with of subprogram (since we
22797         diagnose calls)
22798         (Analyze_With_Clause): Add test for obsolescent package
22799         (Install_Context_Clauses): If the unit is the body of a child unit, do
22800         not install twice the private declarations of the parents, to prevent
22801         circular lists of Use_Clauses in a parent.
22802         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22803         compiling body of child unit.
22804         Use new class N_Subprogram_Instantiation
22805         (Expand_With_Clause): If this is a private with_clause for a child unit,
22806         appearing in the context of a package declaration, then the implicit
22807         with_clauses generated for parent units are private as well.
22808         (License_Check): Do not generate message if with'ed unit is internal
22809
22810 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22811             Ed Schonberg  <schonberg@adacore.com>
22812             Thomas Quinot  <quinot@adacore.com>
22813
22814         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22815         names are internal, because they will not have a corresponding partner
22816         in the actual package.
22817         (Analyze_Formal_Package): Move the setting of the formal package spec's
22818         Generic_Parent field so that it occurs prior to analyzing the package,
22819         to allow proper operation of Install_Parent_Private_Declarations.
22820         (Analyze_Package_Instantiation): Set the instantiated package entity's
22821         Package_Instantiation field.
22822         (Get_Package_Instantiation_Node): Move declaration to package spec.
22823         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22824         field is present.
22825         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22826         instantiation is Unchecked_Conversion, for which no parents are needed.
22827         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22828         parent scopes of a scope being removed prior to inlining an instance
22829         body.
22830         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22831         the current context is itself an instance within a non-instance child
22832         unit, to prevent scope stack errors.
22833         (Save_References): If the node is an aggregate that is an actual in a
22834         call, rewrite as a qualified expression to preserve some type
22835         information, to resolve possible ambiguities in the instance.
22836         (Instance_Parent_Unit): New global variable to record the ultimate
22837         parent unit associated with a generic child unit instance (associated
22838         with the existing Parent_Unit_Visible flag).
22839         (type Instance_Env): New component Instance_Parent_Unit for stacking
22840         parents recorded in the global Instance_Parent_Unit.
22841         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22842         stack.
22843         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22844         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22845         not already set. Replace test of Is_Child_Unit with test of parent's
22846         scope against package Standard. Add comments and a ??? comment.
22847         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22848         on a child instance parent to test that the parent equals
22849         Instance_Parent rather than simply checking that the unit is not a
22850         child unit.
22851         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22852         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22853         a formal interface are ancestors of the corresponding actual.
22854         (Validate_Formal_Interface_Type): Additional legality checks.
22855         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22856         interface types with ancestors.
22857         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22858         to diagnose attempts to use generic within its own declaration.
22859
22860 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22861             Javier Miranda  <miranda@adacore.com>
22862
22863         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22864         discriminant.
22865         (Build_Private_Derived_Type): The entity of the created full view of the
22866         derived type does not come from source. If after installing the private
22867         declarations of the parent scope the parent is still private, use its
22868         full view to construct the full declaration of the derived type.
22869         (Build_Derived_Record_Type): Relax the condition that controls the
22870         execution of the check that verifies that the partial view and
22871         the full view agree in the set of implemented interfaces. In
22872         addition, this test now only takes into account the progenitors.
22873         (Derive_Interface_Subprograms): No need to derive subprograms
22874         of ancestors that are interfaces.
22875         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22876         associated code.
22877         Change name Is_Package to Is_Package_Or_Generic_Package
22878         (Complete_Subprograms_Derivation): Handle the case in which the full
22879         view is a transitive derivation of the ancestor of the partial view.
22880         (Process_Full_View): Rename local subprogram Find_Interface_In_
22881         Descendant to Find_Ancestor_Interface to leave the code more clear.
22882         Remove wrong code that avoids the generation of an error message
22883         when the immediate ancestor of the partial view is an interface.
22884         In addition some minor reorganization of the code has been done to
22885         leave it more clear.
22886         (Analyze_Type_Declaration): If type has previous incomplete tagged
22887         partial view, inherit properly its primitive operations.
22888         (Collect_Interfaces): Make public, for analysis of formal
22889         interfaces.
22890         (Analyze_Interface_Declaration): New procedure for use for regular and
22891         formal interface declarations.
22892         (Build_Derived_Record_Type): Add support for private types to the code
22893         that checks if a tagged type implements abstract interfaces.
22894         (Check_Aliased_Component_Type): The test applies in the spec of an
22895         instance as well.
22896         (Access_Type_Declaration): Clean up declaration of malformed type
22897         declared as an access to its own classwide type, to prevent cascaded
22898         crash.
22899         (Collect_Interfaces): For private extensions and for derived task types
22900         and derived protected types, the parent may be an interface that must
22901         be included in the interface list.
22902         (Access_Definition): If the designated type is an interface that may
22903         contain tasks, create Master_Id for it before analyzing the expression
22904         of the declaration, which may be an allocator.
22905         (Record_Type_Declaration): Set properly the interface kind, for use
22906         in allocators, the creation of master id's for task interfaces, etc.
22907
22908 2005-11-14  Javier Miranda  <miranda@adacore.com>
22909             Ed Schonberg  <schonberg@adacore.com>
22910
22911         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22912         omitted in case of stream attribute subprograms.
22913         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22914         appear immediately after a subprogram body, when there is no previous
22915         subprogram declaration.
22916         Change name Is_Package to Is_Package_Or_Generic_Package
22917         (Process_Formals): A non null qualifier on a non null named access
22918         type is not an error, and is a warning only if Redundant_Constructs
22919         are flagged.
22920
22921 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22922             Ed Schonberg  <schonberg@adacore.com>
22923
22924         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22925         nested within Analyze_Package_Specification to install the private
22926         declarations and use clauses within each of the parent units of a
22927         package instance of a generic child package.
22928         (Analyze_Package_Specification): When entering a private part of a
22929         package associated with a generic instance or formal package, the
22930         private declarations of the parent must be installed (by calling new
22931         procedure Install_Parent_Private_Declarations).
22932         Change name Is_Package to Is_Package_Or_Generic_Package
22933         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22934         record is absent in a generic context, which does not indicate a
22935         compiler error.
22936
22937 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22938
22939         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22940         not try to rewrite a renamed stream attribute, because the operations
22941         on the type may not have been generated.
22942         Handle properly a renaming_as_body generated for a stream operation
22943         whose default is abstract because the object type itself is abstract.
22944         (Find_Type): If the type is incomplete and appears as the prefix of a
22945         'Class reference, it is tagged, and its list of primitive operations
22946         must be initialized properly.
22947         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22948         private declaration of a parent unit, prior to compiling the private
22949         part of a child unit, find on the scope stack the proper parent entity
22950         on which to link the use clause.
22951         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22952         detected.
22953         (Analyze_Object_Renaming): An attribute reference is not a legal object
22954         if it is not a function call.
22955
22956 2005-11-14  Robert Dewar  <dewar@adacore.com>
22957             Ed Schonberg  <schonberg@adacore.com>
22958
22959         * sem_eval.adb: Implement d.f flag
22960         (Subtype_Statically_Match): A generic actual type has unknown
22961         discriminants when the corresponding actual has a similar partial view.
22962         If the routine is called to validate the signature of an inherited
22963         operation in a child instance, the generic actual matches the full view,
22964
22965 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22966             Ed Schonberg  <schonberg@adacore.com>
22967             Robert Dewar  <dewar@adacore.com>
22968             Thomas Quinot  <quinot@adacore.com>
22969
22970         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22971         a procedure call is used as a select statement trigger and is not an
22972         entry renaming or a primitive of a limited interface.
22973         (Valid_Conversion): If the operand has a single interpretation do not
22974         remove address operations.
22975         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22976         statement to inhibit warning.
22977         (Resolve_Unary_Op): Do not produce a warning when
22978         processing an expression of the form -(A mod B)
22979         Use Universal_Real instead of Long_Long_Float when we need a high
22980         precision float type for the generated code (prevents gratuitous
22981         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22982         (Resolve_Concatenation_Arg): Improve error message when argument is an
22983         ambiguous call to a function that returns an array.
22984         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22985         there is an implicit operator in the given scope if we are within an
22986         instance: legality check has been performed on the generic.
22987         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22988         after resolving operand, to avoid false warnings on overloaded calls.
22989
22990 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22991             Javier Miranda  <miranda@adacore.com>
22992
22993         PR ada/15604
22994         * sem_type.adb (Covers): In an inlined body, a composite type matches
22995         a private type whose full view is a composite type.
22996         (Interface_Present_In_Ancestor): Protect the frontend against
22997         previously detected errors to ensure that its compilation
22998         with assertions enabled gives the same output that its
22999         compilation without assertions.
23000         (Interface_Present_In_Ancestor): Add support for private types.
23001         Change name In_Actual to In_Generic_Actual (clean up)
23002         (Disambiguate): New predicate In_Actual, to recognize expressions that
23003         appear in the renaming declaration generated for generic actuals, and
23004         which must be resolved in the outer context.
23005
23006 2005-11-14  Robert Dewar  <dewar@adacore.com>
23007             Thomas Quinot  <quinot@adacore.com>
23008             Hristian Kirtchev  <kirtchev@adacore.com>
23009             Ed Schonberg  <schonberg@adacore.com>
23010
23011         * sem_util.ads, sem_util.adb: Change name Is_Package to
23012         Is_Package_Or_Generic_Package.
23013         (Check_Obsolescent): New procedure.
23014         (Set_Is_Public): Remove obsolete junk test.
23015         (Set_Public_Status): Do not set Is_Public on an object whose declaration
23016         occurs within a handled_sequence_of_statemets.
23017         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23018         for a parameterless procedure.
23019         (Enter_Name): Recognize renaming declarations created for private
23020         component of a protected type within protected operations, so that
23021         the source name of the component can be used in the debugger.
23022
23023 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
23024             Robert Dewar  <dewar@adacore.com>
23025
23026         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23027         of a generic subprogram are not visible outside the body.
23028         (Set_Warning_Switch): New procedure (code to set warning mode moved
23029         here from Switch.C so that it can be shared by pragma processing.
23030         (Check_References): Special case warning for non-modified non-imported
23031         volatile objects.
23032         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23033         form with a string literal argument
23034
23035 2005-11-14  Javier Miranda  <miranda@adacore.com>
23036
23037         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23038         anonymous access.
23039         (Write): Addition of "not null" to the anonymous access.
23040         (Read): Addition of "not null" to the anonymous access.
23041         (Write): Addition of "not null" to the anonymous access.
23042
23043         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23044         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23045         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23046         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23047         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23048         "not null" to the anonymous access.
23049
23050 2005-11-14  Robert Dewar  <dewar@adacore.com>
23051
23052         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23053         offset values
23054
23055 2005-11-14  Vincent Celier  <celier@adacore.com>
23056
23057         * switch.adb (Bad_Switch): New procedure
23058         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23059         message when in error.
23060
23061         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23062         Too_Many_Output_Files): Remove declarations, no longer used.
23063         (Scan_Nat): New parameter Switch
23064         (Scan_Pos): Ditto
23065         (Bad_Switch): New procedure
23066
23067         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23068         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23069         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23070         to Osint.Fail. Do not handle any exception.
23071
23072 2005-11-14  Vincent Celier  <celier@adacore.com>
23073
23074         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23075         designates a non existent directory.
23076
23077 2005-11-14  Robert Dewar  <dewar@adacore.com>
23078
23079         * xgnatugn.adb: Replace invalid membership test by 'Valid
23080
23081 2005-11-14  Vincent Celier  <celier@adacore.com>
23082
23083         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23084         there is no object directory.
23085
23086 2005-11-14  Robert Dewar  <dewar@adacore.com>
23087
23088         * usage.adb: Minor adjustment to output format, use nn instead of nnn
23089         (so that -gnateInnn does not run into next column)
23090
23091 2005-11-14  Ed Falis  <falis@adacore.com>
23092
23093         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23094         "constrained"
23095
23096 2005-11-14  Cyrille Comar  <comar@adacore.com>
23097
23098         * s-chepoo.ads: Add comments on Dereference.
23099         Remove unnecessary inherited abstract primitives.
23100         Cosmetic cleanup.
23101
23102 2005-11-14  Robert Dewar  <dewar@adacore.com>
23103
23104         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23105         node parameter, not needed, since it is available as Declaration_Node.
23106
23107 2005-11-14  Geert Bosch  <bosch@adacore.com>
23108
23109         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23110         grammatically correct.
23111
23112 2005-11-14  Vincent Celier  <celier@adacore.com>
23113
23114         * s-fileio.ads: Correct spelling error in comment
23115
23116 2005-11-14  Cyrille Comar  <comar@adacore.com>
23117             Robert Dewar  <dewar@adacore.com>
23118             Vincent Celier  <celier@adacore.com>
23119             Ben Brosgol  <brosgol@adacore.com>
23120             Jose Ruiz  <ruiz@adacore.com>
23121             Pascal Obry  <obry@adacore.com>
23122
23123         * gnat_ugn.texi:
23124         Document that -fstack-check is needed for strict compliance with the
23125         Ada 95 Reference Manual.
23126         Correct reference to VAX systems to meet HP guidelines
23127         Add documentation for new gnatmake switches -vl, -vm and -vh
23128         Replace DEC Ada by HP Ada
23129         Replace DIGITAL by HP
23130         Remove empty section on tools in compatibility section
23131         Clarify the Windows convention semantics.
23132         Document the Win32 calling convention.
23133         The Stdcall, Win32 and DLL convention are synonyms.
23134         Add a note in -gnatR description about zero size record components
23135         Note on new >= and <= warnings for -gnatwc
23136         Document that equal sign after -gnatm is optional.
23137         Note that strip is working fine on DLL built with a Library
23138         Project. The restriction apply only to DLL built with gnatdll.
23139         Update section about the way to debug a DLL.
23140         Update information about the DLL convention.
23141         Document -C switch for gnatprep
23142         Document new attribute Library_ALI_Dir
23143         Update elaboration doc to include implicit Elaborate pragmas now
23144         generated for subprogram instantiations.
23145         Document limitation on executable names that include spaces for --GCC,
23146         --GNATBIND, and --GNATLINK switches.
23147         Document that -w causes -gnatws to be added at start of gcc switches
23148
23149         * gnat_rm.texi: Document that -mieee is needed for generating infinite
23150         and NaN values in case of overflow on machines that are not fully
23151         compliant with the IEEE floating-point standard.
23152         Create a section describing the set of compiler options needed for
23153         strict compliance with the Ada 95 Reference Manual.
23154         Add documentation for pragma Obsolescent applied to a package
23155         Clarify potential issues of mixed language programs related to the
23156         I/O buffering enabling in the elaboration of the GNAT runtime.
23157         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23158         This documentation only patch adds extra documentsion for pragma
23159         Restrictions (No_Elaboration_Code), explaining why it is not possible
23160         to document this restriction in terms of allowed source constructs.
23161         Document string literal form of pragma Warnings
23162         Document new attribute Library_ALI_Dir
23163         Add documentation on stable attributes in project files that was missing
23164
23165         * gnat-style.texi: Indicate that paragraphs within a single comment
23166         should be separated by empty comment lines
23167
23168         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23169         /05 respectively)
23170
23171         * bindusg.adb: Minor cleanup, put -m before -M for consistency
23172
23173 2005-11-14  Robert Dewar  <dewar@adacore.com>
23174
23175         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23176         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23177         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23178         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23179         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23180         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23181         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23182         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23183         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23184         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23185         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23186         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23187         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23188         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23189         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23190         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23191         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23192         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23193         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23194         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23195         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23196         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23197         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23198         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23199         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23200         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23201         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23202         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23203         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23204         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23205         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23206         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23207         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23208         system-interix.ads, system-solaris-sparc.ads,
23209         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23210         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23211         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23212         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23213         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23214         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23215         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23216         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23217         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23218         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23219         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23220         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23221         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23222         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23223         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23224         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23225         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23226         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23227         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23228         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23229         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23230         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23231         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23232         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23233         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23234         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23235         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23236         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23237         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23238         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23239         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23240         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23241         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23242         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23243         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23244         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23245         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23246         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23247         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23248         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23249         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23250         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23251         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23252         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23253         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23254         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23255         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23256         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23257         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23258         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23259         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23260         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23261         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23262         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23263         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23264         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23265         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23266         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23267         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23268         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23269         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23270         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23271         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23272         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23273         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23274         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23275         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23276         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23277         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23278         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23279         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23280         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23281         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23282         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23283         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23284         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23285         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23286         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23287         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23288         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23289         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23290         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23291         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23292         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23293         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23294         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23295         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23296         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23297         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23298         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23299         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23300         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23301         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23302         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23303         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23304         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23305         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23306         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23307         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23308         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23309         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23310         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23311         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23312         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23313         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23314         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23315         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23316         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23317         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23318         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23319         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23320         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23321         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23322         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23323         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23324         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23325         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23326         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23327         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23328         a-numaux-darwin.ads, a-numaux-darwin.adb,
23329         a-swuwha.ads, a-stunha.ads: Minor reformatting
23330
23331 2005-11-14  Robert Dewar  <dewar@adacore.com>
23332
23333         PR ada/18434
23334         * osint-m.adb: Add pragma Elaborate_All for Osint
23335
23336 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
23337
23338         PR ada/23995
23339         * trans.c (call_to_gnu): Restore statement lost in translation.
23340
23341 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
23342
23343         * init.c: Use the Linux-specific section for the IA-64/Linux target.
23344         (__gnat_adjust_context_for_raise): Add conditional code so that the
23345         IA-64 is also supported.
23346
23347 2005-11-03  James E Wilson  <wilson@specifix.com>
23348
23349         PR ada/23427
23350         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23351         TREE_OVERFLOW check.
23352
23353 2005-09-21  Olivier Hainque  <hainque@adacore.com>
23354
23355         PR ada/22418
23356         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23357         as we create them to store a size in bits.
23358
23359 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
23360
23361         PR ada/21937
23362         PR ada/22328
23363         PR ada/22381
23364         PR ada/22383
23365         PR ada/22419
23366         PR ada/22420
23367         * utils2.c (build_return_expr): New helper function.
23368         * gigi.h (build_return_expr): Declare it.
23369         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23370         of manually building the RETURN_EXPR tree.
23371         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23372         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23373         build_binary_op for the "target pointer" case.  Use build_return_expr
23374         instead of manually building the RETURN_EXPR tree.
23375
23376 2005-09-16  Laurent Guerby  <laurent@guerby.net>
23377
23378         PR ada/23788
23379         * s-tpinop.ads: Make this unit Preelaborate.
23380
23381 2005-09-16  Andreas Jaeger  <aj@suse.de>
23382
23383         * socket.c: Add string.h for memcpy.
23384
23385 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23386
23387         * dec-io.ads, dec-io.adb: Removed, no longer used.
23388
23389 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23390
23391         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23392
23393         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23394         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23395         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23396         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23397         dependent units are Preelaborate.
23398         (Initialize): Call Interrupt_Managemeent.Initialize and
23399         OS_Primitives.Initialize to ensure proper initialization of this unit.
23400         Remove use of System.Soft_Links
23401         Make this unit Preelaborate.
23402
23403         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23404         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23405         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23406         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23407         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23408         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23409         Add pragma Preelaborate, since these packages are suitable for this
23410         categorization.
23411         Update comments.
23412
23413         * s-traent-vms.ads, s-intman-dummy.adb,
23414         s-taprop-dummy.adb: Make this unit Preelaborate.
23415
23416         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23417         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23418         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23419         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23420         s-intman-solaris.adb, s-intman-irix-athread.adb,
23421         s-intman-irix.adb: Mark this unit Preelaborate.
23422         (Initialize): New procedure.
23423         Update comments.
23424
23425         * s-taspri-linux.ads: Removed.
23426
23427         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23428         as done by other implementations (e.g. posix).
23429
23430         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23431         responsible for deferring abort.
23432         Mark this unit Preelaborate.
23433
23434         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23435         proper initialization of the tasking run-time.
23436
23437         * s-tasdeb.ads: Mark this unit Preelaborate.
23438         (Known_Tasks): Add explicit default value to avoid elaboration code.
23439
23440         * s-inmaop-vms.adb (Elaboration code): Add call to
23441         Interrupt_Management.Initialize since the elaboration code depends on
23442         proper initialization of this package.
23443
23444         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23445         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23446         s-osprim-posix.adb: Make this unit Preelaborate.
23447
23448         * a-calend.adb: Add call to OS_Primitives.Initialize
23449
23450         * a-elchha.adb: Update use of Except.Id.Full_Name.
23451         Minor reformatting.
23452         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23453
23454         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23455         Move with clauses outside Warnings Off now that dependent units are
23456         Preelaborate.
23457         Use raise xxx with "..."; Ada 2005 form.
23458
23459         * a-taside.ads, a-taside.adb:
23460         Remove some dependencies, to make it easier to make this unit truly
23461         Preelaborate.
23462         Rewrite some code to be conformant with Preelaborate rules.
23463
23464         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23465         marked Preelaborate in the future.
23466
23467         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23468         these units Preelaborate.
23469
23470         * s-exctab.adb: Update use of Except.Id.Full_Name.
23471
23472         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23473         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23474         Set_Exc_Stack_Addr): Removed, no longer used.
23475         Remove reference to *Machine_State_Addr*, no longer needed.
23476
23477         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23478         (Exception_Data): Full_Name is now a System.Address so that this unit
23479         can be made Preelaborate.
23480         Clean up/simplify code thanks to Full_Name being a System.Address.
23481         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23482
23483         * s-taskin.ads, s-taskin.adb:
23484         Move with clauses outside Warnings Off now that dependent units are
23485         Preelaborate.
23486         Make this unit Preelaborate.
23487         (Initialize): New proceduure, replace elaboration code and makes the
23488         set up of the tasking run-time cleaner.
23489         (Detect_Blocking): Now a function instead of a deferred boolean, to
23490         obey Preelaborate rules.
23491
23492         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23493         soft links, no longer used.
23494
23495         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23496         packages are suitable for this categorization.
23497
23498         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23499         since we compile run-time sources in Ada 2005 mode.
23500         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23501         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23502         duplication.
23503         Remove reference to *Machine_State_Addr*, no longer needed.
23504
23505 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23506
23507         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23508         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23509         Remove reference to System.Exceptions.
23510
23511         * s-mastop-x86.adb: Removed, no longer used.
23512
23513         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23514
23515         * a-excach.adb: Minor reformatting.
23516
23517         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23518         instead fix new warnings that were hidden by this change.
23519         (AAA, ZZZ): Removed, replaced by...
23520         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23521         are used instead of constants, to help make Ada.Exception truly
23522         preelaborate.
23523         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23524         Raise_Storage_Error): File is now a System.Address, to simplify code.
23525         (Elab code): Removed, no longer used.
23526         (Null_Occurrence): Remove Warnings Off and make this construct
23527         preelaborate.
23528         Remove code related to front-end zero cost exception handling, since
23529         it is no longer used.
23530         Remove -gnatL/-gnatZ switches.
23531
23532         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23533         Update use of Except.Msg.
23534
23535         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23536         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23537         to front-end zero cost exception handling, since it is no longer used.
23538         Remove -gnatL/-gnatZ switches.
23539
23540         * lib-writ.ads: Minor reformatting
23541         Remove doc of UX
23542
23543         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23544
23545         * Make-lang.in: Remove references to s-except.ads
23546
23547         * s-except.ads: Removed, no longer used.
23548
23549         * s-mastop.ads, s-mastop.adb:
23550         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23551         Remove reference to System.Exceptions.
23552
23553         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23554         switch-b.adb: Remove code related to front-end zero cost exception
23555         handling, since it is no longer used.
23556         Remove -gnatL/-gnatZ switches.
23557
23558 2005-09-01  Robert Dewar  <dewar@adacore.com>
23559             Gary Dismukes  <dismukes@adacore.com>
23560             Javier Miranda  <miranda@adacore.com>
23561
23562         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23563         type by valid test and generate warning.
23564         (Tagged_Membership): Generate call to the run-time
23565         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23566         Change formal name Subtype_Mark to Result_Definition in several calls to
23567         Make_Function_Specification.
23568         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23569         check for proper accessibility of the operand of a class-wide allocator.
23570         The check can be left out if checks are suppressed or if the expression
23571         has a specific tagged type whose level is known to be safe.
23572
23573         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23574         generates the run-time check associated with null-excluding entities.
23575         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23576         check on the level of the return expression of a class-wide function
23577         can be elided. The check usually isn't needed if the expression has a
23578         specific type (unless it's a conversion or a formal parameter). Also
23579         add a test for whether accessibility checks are suppressed. Augment
23580         the comments to describe the conditions for performing the check.
23581
23582 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23583             Javier Miranda  <miranda@adacore.com>
23584             Gary Dismukes  <dismukes@adacore.com>
23585             Ed Schonberg  <schonberg@adacore.com>
23586
23587         * a-tags.adb (IW_Membership): Give support to
23588         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23589         subprogram has been extended to look for the tag in the ancestors tag
23590         table.
23591         Update the structure of the GNAT Dispatch Table to reflect the
23592         additional two tables used in dispatching selects.
23593         Introduce appropriate array types and record components in
23594         Type_Specific_Data to reflect the two tables.
23595         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23596         the TSD of a tag, indexed by position.
23597         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23598         operation kind in the TSD of a tag, indexed by position.
23599
23600         * a-tags.ads: Introduce an enumeration type to capture different
23601         primitive operation kinds. Define a constant reflecting the number of
23602         predefined primitive operations.
23603         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23604         of an entry wrapper.
23605         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23606         callable entity of a primitive operation.
23607
23608         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23609         primitive operations used in dispatching selects for limited
23610         interfaces, limited tagged, task and protected types what implement a
23611         limited interface.
23612         (Freeze_Type): Generate the bodies of the primitive operations used in
23613         dispatching selects for limited tagged, task and protected types that
23614         implement a limited interface. Generate statements to populate the two
23615         auxiliary tables used for dispatching in select statements.
23616         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23617         associated with predefined interface primitive operations.
23618         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23619         Set_Result_Definition.
23620         (Build_Variant_Record_Equality): Change Subtype_Mark to
23621         Result_Definition.
23622         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23623         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23624         (Build_Assignment): Simplify the code that adds the run-time-check.
23625         (Expand_N_Object_Declaration): Code cleanup.
23626
23627         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23628         entries when there is a protected type that implements a limited
23629         interface.
23630
23631         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23632         common routines used in expansion of dispatching selects.
23633         (Add_Private_Declarations): Select the appropriate protection type when
23634         there is a protected type that implements a limited interface.
23635         (Build_Parameter_Block): Generate a wrapped parameter block.
23636         (Build_Protected_Subprogram_Body): Select the appropriate type for
23637         locking entries when there is a protected type that implements a
23638         limited interface.
23639         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23640         classified as entry wrappers.
23641         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23642         asynchronous selects.
23643         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23644         dispatching conditional selects.
23645         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23646         protection when there is a protected type that implements limited
23647         interfaces.
23648         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23649         timed selects.
23650         (Extract_Dispatching_Call): Extract the entity of the name of a
23651         dispatching call, the object parameter, actual parameters and
23652         corresponding formals.
23653         (Make_Initialize_Protection): Correct logic of protection initialization
23654         when there is a protected type that implements a limited interface.
23655         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23656         values of actual parameters.
23657         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23658         block and assign them to the original actual parameters.
23659
23660         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23661         (Build_Protected_Sub_Specification): Change the type and name of the
23662         last formal to account for the increased variety of protection modes.
23663
23664         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23665         entities. Used to save the value of the Is_Hidden attribute when the
23666         limited-view is installed.
23667         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23668         the attribute of procedures classified as entry wrappers.
23669         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23670         entity of a primitive wrapper.
23671         (Write_Entity_Flags): Output the name and value of the
23672         Is_Primitive_Wrapper attribute.
23673         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23674         Entity.
23675         (Underlying_Type): If we have an incomplete entity that comes from
23676         the limited view then we return the Underlying_Type of its non-limited
23677         view if it is already available.
23678         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23679         including operators.
23680         (Write_Field26_Name): Add entry for Overridden_Operation
23681         (Overridden_Operation): New attribute of functions and procedures.
23682
23683         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23684         predefined position in the dispatch table for the primitive operations
23685         used in dispatching selects.
23686         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23687         predefined primitive operations and replace it with
23688         Default_Prim_Op_Count.
23689         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23690         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23691         the names of the generated primitive operations used in dispatching
23692         selects.
23693         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23694         case of abstract interface types. They will be inherit by the objects
23695         implementing the interface.
23696         (Make_DT): There is no need to inherit the dispatch table of the
23697         ancestor interface for the elaboration of abstract interface types.
23698         The dispatch table will be inherited by the object implementing the
23699         interface.
23700         (Copy_Secondary_DTs): Add documentation.
23701         (Validate_Position): Improve this static check in case of
23702         aliased subprograms because aliased subprograms must have
23703         the same position.
23704         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23705         the entries associated with predefined primitives of all the secondary
23706         dispatch tables.
23707         (Build_Anonymous_Access_Type): Removed.
23708         (Expand_Interface_Actuals): With the previous cleanup there is no need
23709         to build an anonymous access type. This allows further cleanup in the
23710         code generated by the expander.
23711         (Expand_Interface_Conversion): If the actual is an access type then
23712         build an internal function to handle the displacement. If the actual
23713         is null this function returns null because no displacement is
23714         required; otherwise performs a type conversion that will be
23715         expanded in the code that returns the value of the displaced actual.
23716         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23717         conversions that have no effect in the generated code because no
23718         displacement is required. Code cleanup; use local variables to
23719         avoid repeated calls to the subprogram directly_designated_type().
23720
23721         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23722         Classify the primitive operations used in dispatching selects as
23723         predefined.
23724         (Implements_Limited_Interface): Determine whether some type either
23725         directly implements a limited interface or extends a type that
23726         implements a limited interface.
23727         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23728         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23729         expression is limited.
23730         (Find_Interface_Tag): Add code to handle class-wide types and
23731         entities from the limited-view.
23732
23733         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23734         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23735         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23736         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23737         Set_Prim_Op_Kind.
23738
23739         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23740         of procedure name or prefix that appears as a trigger in a triggering
23741         alternative.
23742
23743         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23744
23745 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23746
23747         * s-tataat.adb, a-tasatt.adb:
23748         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23749
23750         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23751         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23752         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23753         longer used.
23754
23755 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23756             Jose Ruiz  <ruiz@adacore.com>
23757
23758         * s-taprop-vxworks.adb:
23759         Move with clauses outside Warnings Off now that dependent units are
23760         Preelaborate.
23761         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23762         initialization of this unit.
23763         (Specific): Add new procedures Initialize and Delete so that this
23764         package can be used for VxWorks 5.x and 6.x
23765         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23766         differences between VxWorks 5.x and 6.x
23767         Minor reformatting.
23768         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23769         caller.
23770         Use only Preelaborate-compatible constructs.
23771
23772         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23773         Primitives.Operations.
23774         (Delete, Initialize): New procedures.
23775
23776         * s-osinte-vxworks.adb: Body used to handle differences between
23777         VxWorks 5.x and 6.x
23778         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23779
23780         * s-osinte-vxworks.ads: Minor reformatting.
23781         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23782         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23783         and 6.
23784         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23785         between Vxworks 5 and 6.
23786         (taskLock, taskUnlock): Removeed, no longer used.
23787
23788         * adaint.c: The wait.h header is not located in the sys directory on
23789         VxWorks when using RTPs.
23790         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23791         using RTPs.
23792         (__gnat_dup): dup is available on Vxworks when using RTPs.
23793         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23794
23795         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23796
23797         * expect.c: The wait.h header is not located in the sys directory on
23798         VxWorks when using RTPs.
23799
23800 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23801
23802         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23803
23804         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23805
23806         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23807         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23808         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23809         g-soccon-freebsd.ads: Add new constants:
23810          IP_MULTICAST_IF
23811          SO_RCVTIMEO/SO_SNDTIMEO
23812          IOV_MAX
23813
23814         * gen-soccon.c:
23815         Move all target-specific file inclusions and macro definitions to
23816         gsocket.h, in order to ensure that any C code in socket.c will see a
23817         set of constants that is consistent with the contents of g-soccon.ads.
23818
23819         * gsocket.h: Code imported from gen-soccon.c:
23820         Move all target-specific file inclusions and macro definitions to
23821         gsocket.h, in order to ensure that any C code in socket.c will see a set
23822         of constants that is consistent with the contents of g-soccon.ads.
23823         This change also makes gen-soccon self-contained (removing dependencies
23824         upon GCC internal headers).
23825
23826         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23827         iovecs at a time.
23828         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23829
23830         * socket.c: Minor reformatting.
23831
23832 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23833             Thomas Quinot  <quinot@adacore.com>
23834
23835         * fname-sf.adb, mlib-tgt.ads,
23836         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23837         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23838         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23839         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23840         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23841         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23842         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23843         makegpr.adb: Remove redundant use_clauses.
23844
23845 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23846
23847         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23848         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23849         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23850         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23851         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23852         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23853         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23854         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23855         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23856         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23857         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23858         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23859         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23860         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23861         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23862         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23863         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23864         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23865         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23866         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23867         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23868         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23869         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23870         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23871         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23872         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23873         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23874         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23875         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23876         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23877         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23878         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23879         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23880         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23881         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23882         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23883         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23884         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23885         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23886         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23887         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23888         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23889         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23890         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23891         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23892         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23893         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23894         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23895         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23896         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23897         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23898         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23899         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23900         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23901         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23902         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23903         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23904         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23905         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23906         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23907         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23908         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23909         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23910         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23911         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23912         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23913         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23914         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23915         and always use the no parameter form for consistency.
23916
23917         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23918
23919 2005-09-01  Robert Dewar  <dewar@adacore.com>
23920
23921         * binde.adb: Minor reformatting
23922         (Find_Elab_Order): Output warning if -p used with static elab order
23923
23924 2005-09-01  Robert Dewar  <dewar@adacore.com>
23925
23926         * checks.adb (Check_Needed): New procedure, deals with removing checks
23927         based on analysis of short-circuited forms. Also generates warnings for
23928         improper use of non-short-circuited forms.
23929         Code clean ups.
23930
23931 2005-09-01  Robert Dewar  <dewar@adacore.com>
23932
23933         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23934         with 'Valid tests.
23935
23936 2005-09-01  Robert Dewar  <dewar@adacore.com>
23937
23938         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23939         spec.
23940         Implement new insertion char < (conditional warning)
23941         * errutil.adb, erroutc.adb: Implement new insertion char <
23942         (conditional warning).
23943         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23944         (Error_Msg_Warn): New variable for < insertion char.
23945         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23946         warning).
23947         (Check_For_Source): Change value of Source_Id only after the current
23948         source has been dealt with.
23949
23950 2005-09-01  Robert Dewar  <dewar@adacore.com>
23951             Doug Rupp  <rupp@adacore.com>
23952
23953         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23954         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23955         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23956         (Valid_D, Valid_F, Valid_G): New functions
23957
23958 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23959             Hristian Kirtchev  <kirtchev@adacore.com>
23960             Javier Miranda  <miranda@adacore.com>
23961
23962         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23963         from object notation, the original node is unanalyzed and carries no
23964         semantic information, so that accessiblity checks must be performed on
23965         the type of the actual itself.
23966         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23967         compatibility with Build_Protected_Sub_Specification.
23968         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23969         overloaded primitives.
23970         (Register_Interface_DT_Entry): Use the new name of the formal
23971         the the calls to Expand_Interface_Thunk
23972
23973         * exp_dbug.ads: Augment comments on encoding of protected types to
23974         include the generation of dispatching subprograms when the type
23975         implements at least one interface.
23976
23977         * lib.ads: Extend information in Load_Stack to include whether a given
23978         load comes from a Limited_With_Clause.
23979
23980         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23981         whether a potential circularity is harmless, because it includes units
23982         loaded through a limited_with clause. Extends previous treatment which
23983         did not handle properly arbitrary combinations of limited and
23984         non-limited clauses.
23985
23986 2005-09-01  Nicolas Setton  <setton@adacore.com>
23987
23988         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23989         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23990         typ___XB_lowerbound__upperbound.
23991
23992 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23993
23994         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23995         dummy access formal for RACW/RAS TypeCode TSS.
23996         (Build_TypeCode_Call): Do not generate dummy null access actual for
23997         calls to the TypeCode TSS.
23998
23999 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24000
24001         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24002         fully qualified name, to distinguish instances with the same local name.
24003
24004         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24005         fully qualified.
24006
24007 2005-09-01  Robert Dewar  <dewar@adacore.com>
24008
24009         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24010         packed arrays.
24011
24012 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
24013
24014         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24015         (Free): New deallocation procedure for filter elements
24016         (Close): Deallocate any existing filter for the concerned connection
24017
24018 2005-09-01  Laurent Pautet  <pautet@adacore.com>
24019
24020         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24021         position set is provided, we compute one in order to reduce the maximum
24022         length of the keys.  This computation first selects a character
24023         position between 1 and the minimum length of the keys in order to
24024         avoid reducing one of the keys to an empty string.
24025         (Initialize, Compute): When the ratio V to K is too low, the algorithm
24026         does not converge. The initialization procedure now comes with a
24027         maximum number of iterations such that when exceeded, an exception is
24028         raised in Compute. The user can initialize this ratio to another value
24029         and try again
24030         Reformating and updated headers.
24031
24032 2005-09-01  Javier Miranda  <miranda@adacore.com>
24033
24034         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24035         that given an entity T creates and returns an Itype that duplicates the
24036         contents of T. The returned Itype has the null-exclusion
24037         attribute set to True, and its Etype attribute references T
24038         to keep the association between the two entities.
24039         Update copyright notice
24040
24041         * sem_aggr.adb (Check_Can_Never_Be_Null,
24042         Aggregate_Constraint_Checks, Resolve_Aggregate,
24043         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24044
24045         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24046
24047 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
24048             Robert Dewar  <dewar@adacore.com>
24049             Hristian Kirtchev  <kirtchev@adacore.com>
24050
24051         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24052         Result_Definition.
24053
24054         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24055         function specs.
24056         Call Set_Result_Definition instead of Set_Subtype_Mark.
24057         (P_Subprogram_Specification): Add parsing of anonymous access result
24058         plus null exclusions. Call Set_Result_Definition instead of
24059         Set_Subtype_Mark.
24060
24061         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24062         (P_Access_Type_Definition): Add parsing for an anonymous access result
24063         subtype, plus parsing for null exclusions. Call Set_Result_Definition
24064         instead of Set_Subtype_Mark.
24065
24066         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24067         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24068         (Result_Definition): New function for N_Function_Specifications.
24069         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24070         N_Function_Specification.
24071         (Set_Null_Exclusion_Present): Allow this flag for
24072         N_Function_Specification.
24073         (Set_Result_Definition): New procedure for N_Function_Specifications.
24074         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24075         and N_Function_Specification.
24076
24077         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24078         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24079         Add support for LIMITED NEW for Ada 2005 AI-419
24080         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24081         syntax for anonymous access results.
24082         Replace Subtype_Mark field by Result_Definition in
24083         N_Function_Specification and N_Access_Definition specs.
24084         Add Null_Exclusion_Present to spec of N_Function_Specification.
24085         (Result_Definition): New function for N_Function_Specification and
24086         N_Access_Function_Definition.
24087         (Set_Result_Definition): New procedure for N_Function_Specification and
24088         N_Access_Function_Definition.
24089
24090         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24091         Result_Definition for cases of N_Access_Function_Definition and
24092         N_Function_Specification.
24093         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24094
24095 2005-09-01  Vincent Celier  <celier@adacore.com>
24096
24097         * lib-writ.adb: Update Copyright notice
24098         (Write_With_Lines): On platforms where file names are case-insensitive,
24099         record the file names in lower case.
24100         (Write_ALI): For D lines, on platforms where file names are
24101         case-insensitive, record the file names in lower case.
24102
24103 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24104             Emmanuel Briot  <briot@adacore.com>
24105
24106         * lib-xref.adb (Output_Overridden_Op): Display information on
24107         overridden operation.
24108
24109         * lib-xref.ads: Add documentation on overridden operations.
24110
24111         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24112         information.
24113
24114         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24115         overriding entity information.
24116
24117 2005-09-01  Vincent Celier  <celier@adacore.com>
24118
24119         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24120         including those that are inherited.
24121
24122 2005-09-01  Robert Dewar  <dewar@adacore.com>
24123
24124         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24125
24126         * par-prag.adb: Implement new pragma Debug_Policy
24127
24128         * sem_prag.adb Implement new pragma Debug_Policy
24129         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24130         Component_Size attribute specification. Give warning for ignored pragma
24131         Pack.
24132
24133         * snames.h, snames.ads, snames.adb: Introduce entries in
24134         Preset_Names for Name_Disp_Asynchronous_Select,
24135         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24136         Name_Disp_Timed_Select.
24137         New pragma Debug_Policy
24138
24139         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24140         explicitly.
24141         Switch -gnata also sets Debug_Pragmas_Enabled
24142
24143         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24144         handle an explicit -gnata when compiling predefined files.
24145
24146 2005-09-01  Vincent Celier  <celier@adacore.com>
24147
24148         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24149         directories of projects that have no Ada sources.
24150
24151 2005-09-01  Robert Dewar  <dewar@adacore.com>
24152
24153         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24154         (makes a difference for wide characters)
24155
24156         * widechar.adb, widechar.ads:
24157         Add Wide_Char_Byte_Count feature to count chars vs bytes
24158
24159 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24160             Ed Schonberg  <schonberg@adacore.com>
24161             Robert Dewar  <dewar@adacore.com>
24162
24163         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24164         'Address attribute reference with an overloaded prefix, use the
24165         location of the prefix (not the location of the attribute reference) as
24166         the error location.
24167         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24168         a function renaming thereof, is a valid prefix for 'Size (where it is
24169         intepreted as a function call).
24170         (Statically_Denotes_Entity): New predicate to determine whether the
24171         prefix of an array attribute can be considered static.
24172
24173         PR ada/9087
24174         (Eval_Attr): Fix failure to evaluate Component_Size for
24175         unconstrained arrays (resulted in wrong value in packed case, since
24176         back end cannot handle this case)
24177
24178 2005-09-01  Robert Dewar  <dewar@adacore.com>
24179
24180         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24181         error msgs for most common cases.
24182         Use new errout insertion char < (conditional warning)
24183
24184 2005-09-01  Javier Miranda  <miranda@adacore.com>
24185             Ed Schonberg  <schonberg@adacore.com>
24186
24187         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24188         become local to the whole package.
24189         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24190         the package was already analyzed the new algorithm "replaces" the
24191         real entities by the shadow ones. This is required to ensure that
24192         the order of these entities in the homonym chains does not change;
24193         otherwise we can have undefined references at linking time because
24194         in case of conflicts the external name of the entities will have
24195         a suffix that depends on the order of the entities in the chain.
24196         (Remove_Limited_With_Clause): Complementary code that completes the
24197         new algorithm and replaces the shadow entities by the real ones.
24198         (Install_Limited_Withed_Unit): When unchaining entities before the
24199         installation of the shadow entities, only regular entities of the
24200         public part must be taken into account. This is required to
24201         keep this routine in synch with the work done by Remove_Limited_
24202         With_Clause
24203         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24204         even if unit is analyzed, because the analysis of the unit is
24205         idempotent in any case, and the limited view of the unit may have to
24206         be installed for proper visibility.
24207         (Expand_Limited_With_Clause): Even if the unit in the implicit
24208         with_clause has been analyzed already, a limited view of the package
24209         must be built for the current context, if it does not exist yet.
24210
24211 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24212             Javier Miranda  <miranda@adacore.com>
24213             Gary Dismukes  <dismukes@adacore.com>
24214
24215         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24216         defining entity for the instance body, make a new defining identifier
24217         rather than copying the entity of the spec, to prevent accidental
24218         sharing of the entity list.
24219         (Check_Private_View): When exchanging views of private types, build the
24220         list of exchanged views as a stack, to ensure that on exit the exchanges
24221         are undone in the proper order.
24222         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24223         Restore the compilation environment in case of instantiation_error.
24224         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24225         for an anonymous access result.
24226         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24227         (Formal_Entity): Handle properly the case of a formal package that
24228         denotes a generic package renaming.
24229
24230 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24231
24232         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24233         clause if the array aggregate is surrounded by parentheses.
24234
24235 2005-09-01  Cyrille Comar  <comar@adacore.com>
24236             Gary Dismukes  <dismukes@adacore.com>
24237             Ed Schonberg  <schonberg@adacore.com>
24238             Javier Miranda  <miranda@adacore.com>
24239
24240         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24241         underlying type
24242         to check if a type is Constrained in cases related to code generation
24243         (rather than semantic checking) since otherwise we do not generate
24244         similar code for mutable private types depending if their
24245         discriminants are visible or not.
24246         (Check_Abstract_Overriding): Do not complain about failure to override
24247         the primitive operations used in dispatching selects since they will
24248         always be overriden at the freeze point of the type.
24249         (Access_Definition): Separate out handling for resetting the scope
24250         of an anonymous access function result type. Retrieve the scope
24251         of the associated function rather than using Current_Scope, which
24252         does not have a consistent value (depends on whether we're in the
24253         middle of analyzing formal parameters). Add ??? comment about
24254         finding a cleaner way to handle the special cases of scope setting.
24255         (Process_Incomplete_Dependents): A protected operation is never a
24256         dispatching operation (only its wrapper may be).
24257         (Build_Derived_Record_Type): In case of tagged private types that
24258         implement interfaces add derivation of predefined primitive
24259         operations.
24260         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24261         by two parameters that are used in case of derivation from abstract
24262         interface types: No_Predefined_Prims is used to avoid the derivation
24263         of predefined primitives from the interface, and Predefined
24264         Prims_Only is used to complete the derivation predefined primitives
24265         in case of private tagged types implementing interfaces.
24266         Fix typo in comments
24267         (Find_Interface_In_Descendant): Protect the frontend against
24268         wrong code with large circularity chains.
24269         (Is_Private_Overriding): Add support for entities overriding interface
24270         subprograms. The test failed because Entities associated with overriden
24271         interface subprograms are always marked as hidden (and used to build
24272         the secondary dispatch table); in this case the overriden entity is
24273         available through the field abstract_interface_alias (cf. override_
24274         dispatching_operation)
24275         (Access_Definition): Set the scope of the type to Current_Scope for the
24276         case of a function with an anonymous access result type.
24277         (Access_Subprogram_Declaration): Handle creation of the type entity for
24278         an access-to-function type with an anonymous access result.
24279         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24280         in handling for N_Access_Function_Definition.
24281         (Analyze_Subtype_Declaration): Modify the text of error message.
24282         (Derived_Type_Declaration): Modify the text of error message.
24283         (Process_Subtype): Modify the text of error message plus cleanup
24284         of one redundant error message.
24285         (Analyze_Component_Declaration): Code cleanup.
24286         (Analyze_Object_Declaration): Code cleanup.
24287         (Analyze_Subtype_Declaration): Propagate the null-exclusion
24288         attribute in case of access types. Code cleanup.
24289         (Array_Type_Declaration): Code cleanup.
24290         (Process_Discriminants): Create the new null-excluding itype
24291         if required. Code cleanup.
24292         (Process_Subtype): Create the new null-excluding itype if
24293         required. Code cleanup.
24294         (Build_Derived_Record_Type): Code cleanup to avoid calling
24295         twice the subprogram derive_subprograms in case of private
24296         types that implement interfaces. In this particular case the
24297         subprogram Complete_Subprograms_Derivation already does the
24298         job associated with the second call.
24299
24300         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24301         conversion to the full view when generating an operation for a
24302         discriminant whose type may currently be private.
24303
24304 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24305             Javier Miranda  <miranda@adacore.com>
24306
24307         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24308         V (Obj.F), the rewriting does not involve the indexed component, but
24309         only the selected component itself.
24310         Do not apply the transformation if the analyzed node is an actual of a
24311         call to another subprogram.
24312         (Complete_Object_Operation): Retain the entity of the
24313         dispatching operation in the selector of the rewritten node. The
24314         entity will be used in the expansion of dispatching selects.
24315         (Analyze_One_Call): Improve location of the error message associated
24316         with interface.
24317         (Analyze_Selected_Component): No need to resolve prefix when it is a
24318         function call, resolution is done when parent node is resolved, as
24319         usual.
24320         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24321         when attempting to resolve a call transformed from its object notation.
24322         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24323         of the argument list for each interpretation of the operation.
24324         (Try_Object_Operation): The designated type of an access parameter may
24325         be an incomplete type obtained through a limited_with clause, in which
24326         case the primitive operations of the type are retrieved from its full
24327         view.
24328         (Analyze_Call): If this is an indirect call, and the return type of the
24329         access_to_subprogram is incomplete, use its full view if available.
24330
24331 2005-09-01  Javier Miranda  <miranda@adacore.com>
24332             Gary Dismukes  <dismukes@adacore.com>
24333
24334         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24335         access types the null-exclusion and access-to-constant attributes must
24336         also match.
24337         (Analyze_Return_Statement): When the result type is an anonymous access
24338         type, apply a conversion of the return expression to the access type
24339         to ensure that appropriate accessibility checks are performed.
24340         (Analyze_Return_Type): For the case of an anonymous access result type,
24341         generate the Itype and set Is_Local_Anonymous_Access on the type.
24342         Add ??? placeholder for check to disallow returning a limited object
24343         in Ada 2005 unless it's an aggregate or a result of a function call.
24344         Change calls from Subtype_Mark to Result_Definition.
24345         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24346         Result_Definition in call to Make_Function_Specification.
24347         (Build_Body_To_Inline): Change Set_Subtype_Mark to
24348         Set_Result_Definition.
24349         (Make_Inequality_Operator): Change formal Subtype_Mark to
24350         Result_Definition in call to Make_Function_Specification.
24351         (Process_Formals): Create the new null-excluding itype if required.
24352         (New_Overloaded_Entity): For an entity overriding an interface primitive
24353         check if the entity also covers other abstract subprograms in the same
24354         scope. This is required to handle the general case, that is, overriding
24355         other interface primitives and overriding abstract subprograms inherited
24356         from some abstract ancestor type.
24357         (New_Overloaded_Entity): For an overriding entity that comes from
24358         source, note the operation that it overrides.
24359         (Check_Conformance, Type_Conformant): Addition of one new formal
24360         to skip controlling formals in the analysis. This is used to
24361         handle overloading of abstract interfaces.
24362         (Base_Types_Match): Add missing case for types imported from
24363         limited-with clauses
24364         (New_Overloaded_Entity): Add barrier to protect the use of
24365         the "alias" attribute.
24366
24367 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24368
24369         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24370         verify that the procedure and the entry are mode conformant.
24371         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24372         as a different operator, which is often a cut-and-paste error.
24373
24374 2005-09-01  Javier Miranda  <miranda@adacore.com>
24375             Ed Schonberg  <schonberg@adacore.com>
24376
24377         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24378         used in controlling parameters exclude null because it is necessary to
24379         read the tag to dispatch, and null has no tag.
24380         (Override_Dispatching_Operation): If the previous operation is inherited
24381         from an interface, it becomes hidden  and does not participate in later
24382         name resolution.
24383
24384 2005-09-01  Javier Miranda  <miranda@adacore.com>
24385             Ed Schonberg  <schonberg@adacore.com>
24386             Gary Dismukes  <dismukes@adacore.com>
24387
24388         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24389         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24390         the expander will generate the corresponding run-time check to evaluate
24391         the expression.
24392         (Resolve_Call): Check for legal type of procedure name or prefix that
24393         appears as a trigger in a triggering alternative.
24394         (Valid_Conversion): If expression is ambiguous and the context involves
24395         an extension of System, remove System.Address interpretations.
24396         (Resolve_Qualified_Expression): Reject the case of a specific-type
24397         qualification applied to a class-wide argument. Enhance comment
24398         to explain checking of Original_Node.
24399         (Resolve_Type_Conversion): The location of the error message was not
24400         general enough to handle the general case and hence it has been removed.
24401         In addition, this patch improves the text of the message.
24402         (Resolve_Type_Conversion): Add missing support for access to interface
24403         types.
24404         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24405         do not expand if the expression is the actual in a call, because proper
24406         expansion will take place when the call itself is expanded.
24407         (Resolve_Allocator): If the context is an unchecked conversion, the
24408         allocator inherits its storage pool, if any, from the target type of
24409         the conversion.
24410
24411 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24412             Javier Miranda  <miranda@adacore.com>
24413
24414         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24415         inherited interface operation that has an implementation, use the
24416         implementation to avoid spurious ambiguities.
24417         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24418         use the Corresponding_Record_Typ attribute to look for the interface
24419         because it is set by the expander (and hence it is not always
24420         available). For this reason we traverse the list of interfaces
24421         (available in the parent of the concurrent type).
24422         (Interface_Present_In_Ancestor): Handle entities from the limited view
24423
24424 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24425
24426         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24427         from the list of required components.
24428         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24429         primitive procedure of a limited interface with a controlling first
24430         parameter.
24431         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24432         of an entry.
24433         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24434         capture if it is generated in the second operand of a short-circuit
24435         operation.
24436         Do not capture values for variables with address clauses.
24437         (Is_Object_Reference): Treat a function call as an object reference only
24438         if its type is not Standard_Void_Type.
24439
24440 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24441
24442         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24443         to a variable that is statically known to be constant.
24444
24445 2005-09-01  Geert Bosch  <bosch@adacore.com>
24446             Robert Dewar  <dewar@adacore.com>
24447
24448         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24449         (VAXGF_Safe_First): Idem.
24450
24451 2005-09-01  Robert Dewar  <dewar@adacore.com>
24452             Arnaud Charlet  <charlet@adacore.com>
24453
24454         * g-dirope.ads: Minor reformatting
24455         Document that bounds of result of Base_Name match the input index
24456         positions.
24457         Add documentation on environment variable syntax for Expand_Path
24458
24459         * gnat_ugn.texi: Update documentation to include mention of -m switches
24460         Document new treatment of wide characters in max line length
24461         style check.
24462         Remove -gnatL/-gnatZ switches, no longer used.
24463         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24464         of -gnata switch.
24465
24466         * gnat_rm.texi: Add doc for two argument form of pragma
24467         Float_Representation.
24468         Add documentation for pragma No_Strict_Aliasing
24469         Add note that explicit component clause overrides pragma Pack.
24470         Add documentation of pragma Debug_Policy
24471
24472 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24473
24474         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24475         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24476         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24477         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24478         draft (Draft 13, August 2005) of Ada Amendment 1.
24479
24480 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24481
24482         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24483         Note that the platform-specific version of g-soccon.ads for VMS is now
24484         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24485         really is a package spec).
24486         Replace s-taspri-linux.ads by s-taspri-posix.ads
24487         Remove references to s-mastop-x86.adb
24488
24489         * system-vxworks-xscale.ads: Removed, no longer used.
24490         * s-vxwork-xscale.ads: Removed, no longer used.
24491
24492 2005-09-01  Robert Dewar  <dewar@adacore.com>
24493
24494         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24495         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24496         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24497         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24498         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24499         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24500         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24501         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24502         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24503         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24504         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24505         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24506         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24507         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24508         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24509         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24510         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24511         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24512         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24513         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24514         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24515
24516 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24517
24518         PR ada/23187
24519         * adaint.c
24520         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24521
24522 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24523             Doug Rupp  <rupp@adacore.com>
24524
24525         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24526         when needed.
24527         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24528         this code in the GNAT run-time.
24529
24530         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24531
24532         PR ada/21053
24533         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24534         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24535
24536         (__gnat_inside_elab_final_code): Moved here from
24537         Standard_Library and only defined for the compiler.
24538         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24539         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24540         using RTPs because directly vectored Interrupt routines are not
24541         supported on this configuration.
24542         (getpid): Do not redefine this function on VxWorks when using RTPs
24543         because this primitive is well supported by the RTP libraries.
24544         (copy_msg): Correct the code that checks for buffer overflow.
24545         Discovered during code reading.
24546
24547 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24548
24549         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24550         a library level mutable variable with an initializer, tell
24551         build_allocator to ignore the initializer's size. It may not be large
24552         enough for all the values that might be assigned to the variable later
24553         on.
24554
24555 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24556             Eric Botcazou  <ebotcazou@adacore.com>
24557
24558         * trans.c: Protect < in error msg with quote
24559         Replace GCC_ZCX by Back_End_Exceptions.
24560         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24561         has been sufficiently aligned in the record.
24562
24563 2005-08-15  James E. Wilson  <wilson@specifix.com>
24564
24565         * system-linux-alpha.ads: Change ia64 to alpha.
24566
24567 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24568
24569         * decl.c, utils.c: Fix comment typos.
24570
24571 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24572
24573         * decl.c, init.c, initialize.c: Fix comment typos.
24574
24575 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24576
24577         Make CONSTRUCTOR use VEC to store initializers.
24578         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24579         CONSTRUCTOR_ELTS.
24580         * trans.c (extract_values): Likewise.
24581         * utils.c (convert, remove_conversions): Likewise.
24582         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24583         gnat_build_constructor): Likewise.
24584
24585 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24586
24587         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24588         DECL_SECTION_NAME.
24589         (compare_field_bitpos): Likewise.
24590
24591 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24592
24593         * utils.c (create_var_decl): Only set DECL_COMMON on
24594         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24595         VAR_OR_FUNCTION_DECL_P.
24596
24597 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24598
24599         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24600         removed.
24601
24602 2005-07-07  Pascal Obry  <obry@adacore.com>
24603
24604         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24605         returned type on Windows.
24606
24607         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24608         routine.
24609
24610         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24611         exception in this case.
24612         Simplify the code as "Image (Image'Range)" = "Image".
24613
24614 2005-07-07  Vincent Celier  <celier@adacore.com>
24615
24616         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24617         the destructor/constructor attributes for <lib>final/<lib>init.
24618
24619         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24620
24621 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24622
24623         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24624         type if the parameter is not passed by copy but reference by default.
24625
24626 2005-07-07  Javier Miranda  <miranda@adacore.com>
24627
24628         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24629         Reimplementation of the support for abstract interface types in order
24630         to leave the code more clear and easy to maintain.
24631
24632         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24633         abstract interface types in order to leave the code clearer and easier
24634         to maintain.
24635
24636         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24637         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24638         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24639         appropriate entry of the secondary dispatch table.
24640         (Make_DT): Add code to inherit the secondary dispatch tables of
24641         the ancestors.
24642
24643         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24644         implementing both functionalities by means of a common routine, each
24645         routine has its own code.
24646
24647 2005-07-07  Javier Miranda  <miranda@adacore.com>
24648
24649         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24650
24651         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24652         types:
24653         --
24654           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24655         --
24656
24657         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24658         use of tag incomplete types.
24659
24660         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24661         give support to tagged incomplete types.
24662
24663         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24664         expression is a discriminant reference and its type is private, as can
24665         happen within a stream operation for a mutable record, use the full
24666         view of the type to resolve the case alternatives.
24667         (Analyze_Assignment): Check wrong dereference of incomplete types.
24668
24669         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24670         types.
24671
24672         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24673         incomplete types.
24674
24675         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24676         N_Incomplete_Type_Declaration nodes.
24677
24678         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24679         Tag_Present to give support to tagged incomplete types:
24680         --
24681           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24682         --
24683
24684 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24685
24686         PR ada/22301
24687         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24688         definitions for the Unwind wrappers in the compiler case.
24689
24690 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24691             Javier Miranda  <miranda@adacore.com>
24692
24693         * par-load.adb (Load): If a child unit is loaded through a limited_with
24694         clause, each parent must be loaded as a limited unit as well.
24695
24696         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24697         Check_Withed_Unit. Return true if there is a previous with_clause for
24698         this unit, whether limited or not.
24699         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24700         the current unit.
24701         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24702         _withed_unit that checks if some package installed through normal with
24703         clauses has a renaming declaration of package whose limited-view is
24704         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24705         of the current Draft document for Ada 2005.
24706         (Analyze_Context): Complete the list of compilation units that
24707         are allowed to contain limited-with clauses. It also contains
24708         checks that were previously done by Install_Limited_Context_Clauses.
24709         This makes the code more clear and easy to maintain.
24710         (Expand_Limited_With_Clause) It is now a local subprogram of
24711         Install_Limited_Context_Clauses, and contains the code that adds
24712         the implicit limited-with clauses for parents of child units.
24713         This functionality was prevously done by Analyze_Context.
24714
24715         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24716         incomplete type.
24717
24718         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24719         been erroneously named in a limited-with clause of its own context.
24720         In this case the error has been previously notified by Analyze_Context.
24721
24722 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24723
24724         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24725         generic package that contains local declarations with the same name.
24726         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24727
24728 2005-07-07  Bernard Banner  <banner@adacore.com>
24729
24730         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24731         ia64 platform only on platforms that you the GCC unwind library
24732         rather than the system unwind library.
24733
24734 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24735
24736         * expect.c: Minor reformatting
24737
24738 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24739
24740         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24741         --no-separate-is
24742
24743         * gnat_ugn.texi: Add description for new gnatpp option
24744         (--no-separate-is)
24745
24746 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24747
24748         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24749         (Get_Command_Output): New subprogram to launch a process and get its
24750         standard output as a string.
24751
24752 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24753             Olivier Hainque  <hainque@adacore.com>
24754
24755         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24756         fetch a code-range descriptor associated with the machine state. On
24757         failure set the machine state's PC to 0; on success, pass the
24758         descriptor to exc_virtual_unwind.
24759
24760         * init.c (Tru64 section): New function __gnat_set_code_loc.
24761
24762 2005-07-04  Vincent Celier  <celier@adacore.com>
24763
24764         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24765         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24766         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24767         Remove all auto-initialization code, as this is now done through the
24768         constructor mechanism.
24769
24770         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24771         __gnat_sals_init_using_constructors): New functions.
24772
24773         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24774         Linker_Constructor and Linker_Destructor when switch -a is used.
24775
24776         * bindusg.adb: Add line for new switch -a
24777
24778         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24779         (Gnatbind): When switch -a is used, check if it is allowed
24780
24781         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24782
24783 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24784
24785         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24786         This prevents us from hitting a limitation during the debug info
24787         generation when using stabs.
24788         (Prims_Ptr): Likewise.
24789
24790 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24791             Ed Schonberg  <schonberg@adacore.com>
24792             Javier Miranda  <miranda@adacore.com>
24793
24794         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24795         N_Object_Declaration, only perform the checks if the Object_Definition
24796         is not an Access_Definition.
24797
24798         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24799         where the parent of an the access definition is an N_Object_Declaration
24800         when determining the Associated_Node_For_Itype and scope of an
24801         anonymous access-to-subprogram type.
24802
24803         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24804         Corresponding_Spec on the body created for a null procedure. Add ???
24805         comment. Remove New_Copy_Tree call on body argument to
24806         Set_Body_To_Inline.
24807
24808         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24809         discriminants, use the type of the actual as well, because the
24810         discriminants may be read by the called subprogram.
24811
24812         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24813         access type we do not need to handle non-limited views.
24814         (Build_Derived_Record_Type): Additional check to check that in case of
24815         private types, interfaces are only allowed in private extensions.
24816
24817 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24818
24819         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24820         <Pragma_Linker_Destructor>: Likewise.
24821
24822         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24823         Pragma_Linker_Destructor.
24824
24825         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24826         ATTR_LINK_DESTRUCTOR.
24827         (static_ctors, static_dtors): New variables.
24828
24829         * misc.c (gnat_expand_body): Output current function as constructor
24830         and destructor if requested.
24831
24832         * par-prag.adb: Add processing for pragma Linker_Constructor and
24833         Linker_Destructor.
24834
24835         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24836         extracted from Check_Interrupt_Or_Attach_Handler.
24837         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24838         Implement pragma Linker_Constructor and Linker_Destructor with the
24839         help of Find_Unique_Parameterless_Procedure.
24840         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24841
24842         * snames.h, snames.ads, snames.adb:
24843         Add Name_Linker_Constructor and Name_Linker_Destructor.
24844         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24845         * snames.adb: Remove Name_Alias.
24846
24847         * trans.c: Include cgraph.h.
24848         (build_global_cdtor): New function.
24849         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24850         needed.
24851         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24852         of objects too.
24853         (addressable_p) <COMPONENT_REF>: Unconditionally test
24854         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24855
24856         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24857         variable if it is external.
24858
24859         (static_ctors, static_dtors): New global variables.
24860         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24861         <ATTR_LINK_DESTRUCTOR>: Likewise.
24862         (end_subprog_body): Chain function as constructor and destructor
24863         if requested.
24864
24865         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24866         Remove_Side_Effects with Variable_Ref set to true.
24867         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24868         for non-scalar types even if Variable_Ref is true and for class-wide
24869         expressions.
24870
24871 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24872
24873         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24874         to prevent spurious warnings.
24875
24876 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24877
24878         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24879         Itypes. Itypes are really unexpected there.
24880         (Build_TypeCode_Function): Generalise special processing for Itypes to
24881         handle the case of numeric implicit base types as well as enumerated
24882         ones.
24883
24884 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24885
24886         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24887         controlled, indicate the expected type of the dereference that is
24888         created for the call to Deep_Finalize, to prevent spurious errors when
24889         the designated type is private and completed with a derivation from
24890         another private type.
24891
24892 2005-07-04  Vincent Celier  <celier@adacore.com>
24893
24894         * make.adb (Change_To_Object_Directory): When unable to change the
24895         current dir to the object directory, output the full path of the
24896         directory.
24897
24898 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24899
24900         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24901
24902         * indepsw-linux.adb: Replace by...
24903
24904         * indepsw-gnu.adb: ...this new file
24905
24906 2005-07-04  Vincent Celier  <celier@adacore.com>
24907
24908         * mlib-prj.adb (Auto_Initialize): New constant String
24909         (SALs_Use_Constructors): New Boolean function
24910         (Build_Library): Call gnatbind with Auto_Initialize switch when
24911         SALs_Use_Constructors returns True.
24912
24913         * mlib-tgt.ads: Minor reformatting
24914
24915         * mlib-utl.ads: Minor reformatting
24916
24917         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24918
24919 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24920
24921         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24922         single protected declarations can have an interface list.
24923         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24924         with seriously malformed entry declarations, and lead to compilation
24925         abandoned messages.
24926
24927 2005-07-04  Javier Miranda  <miranda@adacore.com>
24928
24929         * par-load.adb: Load the context items in two rounds.
24930
24931 2005-07-04  Robert Dewar  <dewar@adacore.com>
24932
24933         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24934
24935 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24936             Javier Miranda  <miranda@adacore.com>
24937
24938         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24939         type extension needs a limited view.
24940         Remove previous restriction on private types available through the
24941         limited-view (only tagged private types were previously allowed).
24942         (Install_Withed_Unit): In the code that implements the
24943         legality rule given in AI-377, exclude a child unit with the name
24944         Standard, because it is a homonym of the Standard environment package.
24945
24946 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24947
24948         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24949         overloaded function call, carry interpretations from the original tree
24950         to the copy.
24951
24952 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24953
24954         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24955         types check whether some designated type is a limited view, and use
24956         the non-limited view if available.
24957
24958 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24959
24960         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24961         constraint of full view of a private view T1 if present, when T2 is a
24962         discriminated full view.
24963
24964 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24965
24966         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24967         actual that is a view conversion of a bit packed array reference.
24968
24969 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24970
24971         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24972         present before checking whether an interface type covers a synchronized
24973         type.
24974
24975 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24976
24977         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24978         whose prefix is an implicit dereference is an object reference. Removes
24979         spurious errors when compiling with -gnatc.
24980
24981 2005-07-04  Robert Dewar  <dewar@adacore.com>
24982
24983         PR ada/22039
24984         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24985
24986 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24987
24988         * tracebak.c: Enable tracebacks on ia64 platforms
24989
24990 2005-07-04  Vincent Celier  <celier@adacore.com>
24991
24992         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24993         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24994         the -L or -n switches.
24995
24996 2005-07-04  Vincent Celier  <celier@adacore.com>
24997
24998         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24999         correctly computed and the main project data is not modified while
25000         doing so.
25001         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25002         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25003         c++linker as this does not work on some platforms.
25004
25005 2005-07-04  Matthew Heaney  <heaney@adacore.com>
25006
25007         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25008         was changed.
25009         * a-coinve.adb: Perform constraint checks explicitly.
25010
25011 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25012             Thomas Quinot  <quinot@adacore.com>
25013
25014         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25015         new target gen-soccon.
25016
25017 2005-07-04  Robert Dewar  <dewar@adacore.com>
25018
25019         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25020
25021 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25022
25023         * g-socket.ads (Check_Selector): Minor rewording of comment.
25024
25025 2005-07-04  Vincent Celier  <celier@adacore.com>
25026
25027         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25028
25029 2005-07-04  Thomas Quinot  <quinot@adacore.com>
25030
25031         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25032
25033 2005-07-04  Sergey Rybin  <rybin@adacore.com>
25034
25035         * gnat_ugn.texi: Add description of --eol gnatpp option
25036
25037 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
25038             Thomas Quinot  <quinot@adacore.com>
25039
25040         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25041         if the user wants all calls of a subprogram to be flagged,
25042         independently of whether they are made from within the same unit or
25043         another unit.
25044         Mention restriction for pragma Linker_Alias on some platforms.
25045         Document pragma Linker_Constructor and Linker_Destructor.
25046         Rewrite documentation of Weak_External, Linker_Section and
25047         Linker_Alias pragmas.
25048
25049 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
25050
25051         * s-stausa.ads, s-stausa.adb: New files.
25052
25053 2005-06-30  Kelley Cook
25054
25055         * all files:  Update FSF address in copyright headers.
25056         * gen-soccon.co (main): Output new FSF address in generated files.
25057
25058 2005-06-28  Paul Brook  <paul@codesourcery.com>
25059
25060         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25061
25062 2005-06-14  Olivier Hainque  <hainque@adacore.com>
25063             Eric Botcazou  <ebotcazou@adacore.com>
25064
25065         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25066         exc_unwind, now that we are generating proper .debug_frame output for
25067         that target.
25068
25069         * tracebak.c: Remove the mips-irix section, as we are now using the
25070         s-mastop based unwinder again.
25071         Under SPARC/Solaris, take into account the stack bias to compute the
25072         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
25073         ABI.
25074
25075 2005-06-14  Doug Rupp  <rupp@adacore.com>
25076
25077         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25078
25079         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25080
25081 2005-06-14  Pascal Obry  <obry@adacore.com>
25082
25083         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25084         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25085         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25086         package name).
25087
25088         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25089         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25090         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25091         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25092         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25093         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25094         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25095         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25096         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25097         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25098         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25099         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25100         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25101         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25102         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25103         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25104         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25105         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25106         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25107         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25108         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25109         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25110         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25111         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25112         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25113         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25114         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25115         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25116         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25117         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25118         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25119         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25120         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25121         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25122         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25123         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25124         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25125         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25126         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25127         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25128         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25129         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25130         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25131         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25132         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25133         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25134         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25135         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25136         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25137         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25138         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25139         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25140         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25141         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25142         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25143         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25144         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25145         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25146         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25147         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25148         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25149         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25150         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25151         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25152         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25153         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25154         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25155         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25156         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25157         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25158         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25159         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25160         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25161         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25162         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25163         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25164         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25165         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25166         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25167         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25168         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25169         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25170         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25171         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25172         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25173         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25174         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25175         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25176         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25177         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25178         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25179         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25180         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25181         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25182         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25183         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25184         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25185         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25186         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25187         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25188         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25189         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25190         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25191         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25192         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25193         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25194         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25195         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25196         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25197         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25198         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25199         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25200         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25201         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25202         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25203         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25204         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25205         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25206         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25207         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25208         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25209         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25210         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25211         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25212         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25213         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25214         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25215         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25216         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25217         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25218         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25219         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25220         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25221
25222 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25223             Arnaud Charlet  <charlet@adacore.com>
25224
25225         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25226         longer protected objects. They have been replaced by lower-level
25227         suspension objects made up by a mutex and a condition variable (or
25228         their equivalent given a particular OS) plus some internal data to
25229         reflect the state of the suspension object.
25230         (Initialize, Finalize): Add this initialization procedure for
25231         Suspension_Object, which is a controlled type.
25232         (Finalize): Add the finalization procedure for Suspension_Object,
25233         which is a controlled type.
25234
25235         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25236         Ada.Synchronous_Task_Control because there is no longer a need for a
25237         VxWorks specific version of this package. Target dependencies
25238         has been moved to System.Task_Primitives.Operations.
25239
25240         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25241         longer needed.
25242         (InitializeCriticalSection, EnterCriticalSection,
25243         LeaveCriticalSection, DeleteCriticalSection): Replace the type
25244         pCriticalSection by an anonymous access type so that we avoid problems
25245         of accessibility to local objects.
25246
25247         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25248         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25249         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25250         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25251         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25252         set the environment task mask here.
25253         (Current_State): Add this function that returns the state of the
25254         suspension object.
25255         (Set_False): Add this procedure that sets the state of the suspension
25256         object to False.
25257         (Set_True): Add this procedure that sets the state of the suspension
25258         object to True, releasing the task that was suspended, if any.
25259         (Suspend_Until_True): Add this procedure that blocks the calling task
25260         until the state of the object is True. Program_Error is raised if
25261         another task is already waiting on that suspension object.
25262         (Initialize): Add this procedure for initializing the suspension
25263         object. It initializes the mutex and the condition variable which are
25264         used for synchronization and queuing, and it sets the internal state
25265         to False.
25266         (Finalize): Add this procedure for finalizing the suspension object,
25267         destroying the mutex and the condition variable.
25268
25269         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25270         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25271         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25272         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25273         which provides a low-level abstraction (using operating system
25274         primitives) for Ada.Synchronous_Task_Control.
25275         This object is made up by a mutex (for ensuring mutual exclusion), a
25276         condition variable (for queuing threads until the condition is
25277         signaled), a Boolean (State) indicating whether the object is open,
25278         and a Boolean (Waiting) reflecting whether there is a task already
25279         suspended on this object.
25280
25281         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25282         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25283         s-intman-vms.ads, s-intman-mingw.adb,
25284         (Initialize_Interrupts): Removed, no longer used.
25285
25286         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25287         (Setup_Interrupt_Mask): New procedure.
25288
25289         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
25290
25291         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25292
25293         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25294         this is no longer done in the body of s-taprop
25295         (Server_Task): Explicitely test for Pending_Action in case
25296         System.Parameters.No_Abort is True.
25297
25298         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25299         is no longer done in the body of s-taprop
25300
25301 2005-06-14  Robert Dewar  <dewar@adacore.com>
25302
25303         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25304         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25305         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25306         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25307         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25308         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25309         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25310         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25311         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25312         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25313         system-linux-hppa.ads, system-vms_64.ads,
25314         system-vxworks-alpha.ads: Minor comment update for
25315         AI-362 (unit is Pure).
25316
25317         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25318         Add pragma Pure_05 for AI-362
25319         Make remaining conversion functions obsolescent in Ada 95
25320
25321         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25322         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25323         Add entries for a-wichun and a-zchuni
25324         Add a-widcha a-zchara for AI-395
25325         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25326
25327         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25328         Add entries for a-wichun.o and a-zchuni.o
25329         Entries for a-widcha.o and a-zchara.o
25330         Add entry for a-chacon.o
25331
25332         * a-ztenau.adb: Add with of Ada.Characters.Conversions
25333
25334         * a-chacon.ads, a-chacon.adb: New files.
25335
25336         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25337         categorization violations.
25338
25339         * a-strmap.ads: Add pragma Pure_05 for AI-362
25340         * a-strmap.ads: Add note on implicit categorization for AI-362
25341
25342         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25343
25344         * par-prag.adb: Dummy entry for pragma Persistent_BSS
25345         Set Ada_Version_Explicit, for implementation of AI-362
25346         Add processing for pragma Pure_05 and Preelaborate_05
25347         Add entry for Assertion_Policy pragma
25348
25349         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25350         when needed for proper processing of categorization stuff
25351
25352         * sem_cat.adb:
25353         For several cases, make errors in preealborate units warnings,
25354         instead of errors, if GNAT_Mode is set. For AI-362.
25355
25356         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25357         preelaborate unit is now warning if in GNAT mode
25358
25359         * s-stoele.ads: Document AI-362 for pragma preelaborate
25360
25361 2005-06-14  Doug Rupp  <rupp@adacore.com>
25362
25363         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25364         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25365         Default_Exception_Msg_Max_Length: new parameter.
25366
25367         * a-except.ads: (Exception_Msg_Max_Length): Set to
25368         System.Parameters.Default_Exception_Msg_Max_Length
25369         Add pragma Preelaborate_05 for AI-362
25370         Add warnings off to allow categorization violations for AI-362
25371
25372 2005-06-14  Vincent Celier  <celier@adacore.com>
25373
25374         * gnatsym.adb: Adapt to modification of package Symbols: procedure
25375         Process is now in package Processing.
25376
25377         * symbols.ads, symbols.adb:
25378         (Processing): New package, containing procedure Process
25379
25380         * symbols-vms-alpha.adb:
25381         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25382
25383         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25384         symbols-processing-vms-ia64.adb: New files.
25385
25386 2005-06-14  Pascal Obry  <obry@adacore.com>
25387
25388         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25389         implementation. This new version generates the proper DllMain routine
25390         to initialize the SAL. The DllMain is generated in Ada and compiled
25391         before being added as option to the library build command.
25392
25393 2005-06-14  Doug Rupp  <rupp@adacore.com>
25394             Pascal Obry  <obry@adacore.com>
25395
25396         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25397         call to decc$translate_vms.
25398         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25399         need to remove those quotes before catenating the filename.
25400         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25401         * avoid allocating the memory twice for better efficiency;
25402         * allocate 32K buffer for environment expansion as suggested by MSDN;
25403         * prepend ".;" to the path so that current directory is searched too.
25404
25405 2005-06-14  Robert Dewar  <dewar@adacore.com>
25406
25407         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25408         instead of raising CE (AI-241)
25409         Add warnings off to allow categorization violations for AI-362
25410
25411 2005-06-14  Robert Dewar  <dewar@adacore.com>
25412
25413         * ali-util.adb, gnatbind.adb: Remove references to
25414         Force_RM_Elaboration_Order.
25415
25416         * switch-b.adb: Remove recognition of -f switch
25417
25418 2005-06-14  Pascal Obry  <obry@adacore.com>
25419
25420         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25421         implementation which is slightly more efficient.
25422
25423 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25424             Javier Miranda  <miranda@adacore.com>
25425             Ed Schonberg  <schonberg@adacore.com>
25426             Hristian Kirtchev  <kirtchev@adacore.com>
25427
25428         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25429         allocator's designated type is a class-wide type, and compiling for
25430         Ada 2005, emit a run-time check that the accessibility level of the
25431         type given in the allocator's expression is not deeper than the level
25432         of the allocator's access type.
25433
25434         (Tagged_Membership): Modified to gives support to abstract interface
25435         types.
25436
25437         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25438         Access_Level.
25439         (Descendant_Tag): New predefined function
25440         (Is_Descendant_At_Same_Level): New predefined function
25441         (Get_Access_Level): New private function
25442         (Set_Access_Level): New private procedure
25443         (IW_Membership): New function. Given the tag of an object and the tag
25444         associated with an interface, evaluate if the object implements the
25445         interface.
25446         (Register_Interface_Tag): New procedure used to initialize the table of
25447         interfaces used by the IW_Membership function.
25448         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25449         of the dispatch table.
25450         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25451         table of interfaces of the parent.
25452         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25453         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25454         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25455         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25456         Ada 2005 semantics for the new predefined function.
25457
25458         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25459         call to Descendant_Tag rather than Internal_Tag.
25460         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25461         the accessibility level of the attribute's Item parameter is not deeper
25462         than the level of the attribute's prefix type. Tag_Error is raised if
25463         the check fails. The check is only emitted for Ada_05.
25464         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25465         requested stream attribute, use it.
25466         (Expand_N_Attribute_Reference): If the designated type is an interface
25467         then rewrite the referenced object as a conversion to force the
25468         displacement of the pointer to the secondary dispatch table.
25469         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25470         is a dereference of an object with a constrained partial view.
25471
25472         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25473         type is a class-wide type, emit a run-time check that the accessibility
25474         level of the returned object is not deeper than the level of the
25475         function's master (only when compiling for Ada 2005).
25476
25477         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25478         Action_Nb_Arg): Add entries for new Get_Access_Level and
25479         Set_Access_Level routines in these tables.
25480         (Make_DT): Generate a call to set the accessibility level of the
25481         tagged type in its TSD.
25482         (Make_DT): Code cleanup. The functionality of generating all the
25483         secondary dispatch tables has been moved to freeze_record_type.
25484         (Make_Abstract_Interface_DT): Minor code cleanup.
25485         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25486         this subprogram implements a new algorithm that provides the
25487         same functionality and it is more clear in case of primitives
25488         associated with abstract interfaces.
25489         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25490         clean up, the functionality of this subprogram is now provided
25491         by Set_All_DT_Position.
25492         (Write_DT): New subprogram: a debugging procedure designed to be called
25493         within gdb to display the dispatch tables associated with a tagged
25494         type.
25495         (Collect_All_Interfaces): New subprogram that collects the whole list
25496         of interfaces that are directly or indirectly implemented by a tagged
25497         type.
25498         (Default_Prim_Op_Position): New subprogram that returns the fixed
25499         position in the dispatch table of the default primitive operations.
25500         (Expand_Interface_Actuals): New subprogram to generate code that
25501         displaces all the actuals corresponding to class-wide interfaces to
25502         reference the interface tag of the actual object.
25503         (Expand_Interface_Conversion): New subprogram. Reference the base of
25504         the object to give access to the interface tag associated with the
25505         secondary dispatch table.
25506         (Expand_Interface_Thunk): New subprogram that generates the code of the
25507         thunk. This is required for compatibility with the C+ ABI.
25508         (Make_Abstract_Interface_DT): New subprogram that generate the
25509         declarations for the secondary dispatch tables associated with an
25510         abstract interface.
25511         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25512         attribute for each primitive operation covering interface subprograms
25513         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25514         These subprograms were upgraded to give support to abstract interfaces
25515
25516         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25517         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25518         RE_Set_Access_Level.
25519         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25520         Add support to call the followig new run-time subprograms:
25521         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25522
25523         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25524         match its full declaration when both have an access definition with
25525         statically matching designated subtypes.
25526         (Analyze_Component_Declaration): Delete commented out code that was
25527         incorrectly setting the scope of an anonymous access component's type.
25528         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25529         an access discriminant when the containing type is nonlimited.
25530         (Make_Incomplete_Type_Declaration): Create an incomplete type
25531         declaration for a record type that includes self-referential access
25532         components.
25533         (Check_Anonymous_Access_Types): Before full analysis of a record type
25534         declaration, create anonymous access types for each self-referential
25535         access component.
25536         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25537         an access component in this context is a Local_Anonymous_Access, for
25538         proper accessibility checks.
25539         (Access_Definition): Set properly the scope of the anonymous access type
25540         created for a stand-alone access object.
25541         (Find_Type_Of_Object): An object declaration may be given with an access
25542         definition.
25543         (Complete_Subprograms_Derivation): New subprogram used to complete
25544         type derivation of private tagged types implementing interfaces.
25545         In this case some interface primitives may have been overriden
25546         with the partial-view and, instead of re-calculating them, they
25547         are included in the list of primitive operations of the full-view.
25548         (Build_Derived_Record_Type): Modified to give support to private
25549         types implemening interfaces.
25550         (Access_Definition): Reject ALL on anonymous access types.
25551         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25552         type derivation to occur at a deeper accessibility level than the
25553         parent type.
25554         For the case of derivation within a generic body however, disallow the
25555         derivation if the derived type has an ancestor that is a formal type
25556         declared in the formal part of an enclosing generic.
25557         (Analyze_Object_Declaration): For protected objects, remove the check
25558         that they cannot contain interrupt handlers if not declared at library
25559         level.
25560         (Add_Interface_Tag_Components): New subprogram to add the tag components
25561         corresponding to all the abstract interface types implemented by a
25562         record type or a derived record type.
25563         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25564         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25565         Process_Full_View, Record_Type_Declaration): Modified to give
25566         support to abstract interface types
25567         (Collect_Interfaces): New subprogram that collects the list of
25568         interfaces that are not already implemented by the ancestors
25569         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25570         when partial view has no discriminants and full view has defaults.
25571         (Constrain_Access): Reject a constraint on a general access type
25572         if the discriminants of the designated type have defaults.
25573         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25574         full-type declaration or subprogram spec. This is required to handle
25575         nested anonymous declarations.
25576         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25577         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25578         Process_Full_View, Record_Type_Declaration): Modified to give
25579         support to abstract interface types
25580         (Derive_Subprograms): Addition of a new formal to indicate if
25581         we are in the case of an abstact-interface derivation
25582         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25583         to the specification because it is requied to analyze all the
25584         identifiers found in a list of interfaces
25585
25586         * debug.adb: Complete documentation of flag "-gnatdZ"
25587
25588         * exp_ch3.adb: Implement config version of persistent_bss pragma
25589         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25590         testing for TSS presence to properly enforce visibility rules.
25591         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25592         Make_Abstract_Interfaces_DT to generate the secondary tables
25593         associated with abstract interfaces.
25594         (Build_Init_Procedure): Modified to initialize all the tags
25595         corresponding.
25596         (Component_Needs_Simple_Initialization): Similar to other tags,
25597         interface tags do not need initialization.
25598         (Freeze_Record_Type): Modified to give support to abstract interface
25599         types.
25600         (Expand_N_Object_Declaration): Do not generate an initialization for
25601         a scalar temporary marked as internal.
25602
25603         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25604         in-out parameter that is a component in an initialization procedure,
25605         whose constraint might depend on discriminants, and that may be
25606         misaligned because of packing or representation clauses.
25607         (Is_Legal_Copy): New predicate to determine whether a possibly
25608         misaligned in-out actual can actually be passed by copy/return. This
25609         is an error in case the type is by_reference, and a warning if this is
25610         the consequence of a DEC import pragma on the subprogram.
25611         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25612         interface types
25613         (Expand_Inlined_Call): Mark temporary generated for the return value as
25614         internal, so that no useless scalar normalization is generated for it.
25615         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25616         null procedure can always be inlined.
25617         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25618         procedure, generate an explicit empty body for it.
25619
25620         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25621         Given a type implementing an interface, returns the corresponding
25622         access_disp_table value.
25623         (Find_Interface_Tag): New subprogram. Given a type implementing an
25624         interface, returns the record component containing the tag of the
25625         interface.
25626         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25627         previous ones that return the corresponding tag and access_disp_table
25628         entities.
25629         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25630         is a predefined primitive operation.
25631         (Expand_Subtype_From_Expr): If the expression is a selected component
25632         within an initialization procedure, compute its actual subtype, because
25633         the component may depend on the discriminants of the enclosing record.
25634
25635         * i-cpp.ads, i-cpp.adb:
25636         This package has been left available for compatibility with previous
25637         versions of the frontend. As part of the new layout this is now a
25638         dummy package that uses declarations available at a-tags.ads
25639
25640         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25641         "constant access" and "aliased [constant] access" when not compiling
25642         with -gnat05.
25643         Suppress Ada 2005 keyword warning if -gnatwY used
25644         (P_Identifier_Declarations): Add support for object declarations with
25645         access definitions.
25646         (Private_Extension_Declaration): Complete the documentation
25647         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25648         attribute in case of private extension declaration
25649         (P_Type_Declaration): Mark as "abstract" the type declarations
25650         corresponding with protected, synchronized and task interfaces
25651         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25652         for a subprogram or instance declaration.
25653
25654         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25655         instantiation that is a dispatching operation has controlling access
25656         parameters that are null excluding.
25657         Save and restore Ada_Version_Explicit, for implementation of AI-362
25658         (Validate_Derived_Type_Instance): Add check for abstract interface
25659         types.
25660         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25661         the generic that is created to represent the formal package.
25662         (Analyze_Package_Instantiation): Instantiate body immediately if the
25663         package is a predefined unit that contains inlined subprograms, and
25664         we are compiling for a Configurable_Run_Time.
25665         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25666         If the program has a null default, generate an empty body for it.
25667
25668         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25669         error message condition, null procedures are correctly detected now.
25670         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25671         for subprograms in the context of protected types. Instead, the
25672         indicator is examined in Sem_Ch9 while analysing the subprogram
25673         declaration.
25674         (Check_Overriding_Indicator): Check consistency of overriding indicator
25675         on subprogram stubs as well.
25676         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25677         the library level.
25678         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25679         the type of the first formal is a concurrent type, replace this type
25680         by the corresponding record type.
25681         (Analyze_Subprogram_Body): Undo the previous work.
25682         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25683         analysis of the prefix ends up analyzing the call itself, after which
25684         we are done.
25685         (Has_Interface_Formals): New subprogram subsidiary to analyze
25686         subprogram_specification that returns true if some non
25687         class-wide interface subprogram is found
25688         (New_Overloaded_Entity): Modified to give support to abstract
25689         interface types
25690         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25691         access to subprograms must be recursive.
25692         (Is_Unchecked_Conversion): Improve the test that recognizes
25693         instantiations of Unchecked_Conversion, and allows them in bodies that
25694         are to be inlined by the front-end. When the body comes from an
25695         instantiation, a reference to Unchecked_Conversion will be an
25696         Expanded_Name, even though the body has not been analyzed yet.
25697         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25698         Must_Override and Must_Not_Override, to better express intent of AI.
25699         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25700         that it is consistent with the overrinding status of the subprogram
25701         at this point.
25702         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25703         always inlined.
25704         If the subprogram is a null procedure, indicate that it does not need
25705         a completion.
25706
25707         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25708         available through limited-with clauses.
25709         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25710         allowed as the last primitive of a tagged type if it has no previous
25711         spec.
25712         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25713         to give support to abstract interface types
25714
25715         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25716         in the case where the target type is an anonymous access type of an
25717         object or component (that is, when Is_Local_Anonymous_Access is true).
25718         Prevent the special checks for conversions of access discriminants in
25719         the case where the discriminant belongs to a nonlimited type, since
25720         such discriminants have their accessibility level defined in the same
25721         way as a normal component of an anonymous access type.
25722         (Resolve_Allocator): When an allocator's designated type is a class-wide
25723         type, check that the accessibility level of type given in the
25724         allocator's expression or subtype indication is not statically deeper
25725         than the level of the allocator's access type.
25726         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25727         name in a discriminant constraint of a record component.
25728         (Resolve_Explicit_Dereference): Do not check whether the type is
25729         incomplete when the dereference is a use of an access discriminant in
25730         an initialization procedure.
25731         (Resolve_Type_Conversion): Handle conversions to abstract interface
25732         types.
25733         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25734         abstract interface type is always valid.
25735         (Valid_Conversion): Modified to give support to abstract interface types
25736         (Resolve_Actuals): Enable full error reporting on view conversions
25737         between unrelated by_reference array types.
25738         The rule for view conversions of arrays with aliased components is
25739         weakened in Ada 2005.
25740         Call to obsolescent subprogram is now considered to be a violation of
25741         pragma Restrictions (No_Obsolescent_Features).
25742         (Check_Direct_Boolean_Operator): If the boolean operation has been
25743         constant-folded, there is nothing to check.
25744         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25745         check on possible violation of restriction No_Direct_Boolean_Operators
25746         until after expansion of operands, to prevent spurious errors when
25747         operation is constant-folded.
25748
25749         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25750         Has_Compatible_Type): Modified to give support to abstract interface
25751         types.
25752         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25753         of a given type implements a given interface
25754
25755         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25756         prefix is a parameterless function that returns an access_to_procedure.
25757         (Transform_Object_Operation): Handle properly function calls of the
25758         form Obj.Op (X), which prior to analysis appear as indexed components.
25759         (Analyze_One_Call): Complete the error notification to help new Ada
25760         2005 users.
25761         (Analyze_Allocator): For an allocator without an initial value, where
25762         the designated type has a constrained partial view, a discriminant
25763         constraint is illegal.
25764
25765 2005-06-14  Robert Dewar  <dewar@adacore.com>
25766
25767         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25768         do with treatment of Set_Col when positioned at end of line character.
25769
25770 2005-06-14  Robert Dewar  <dewar@adacore.com>
25771
25772         * atree.adb: (Elist*): Protect against uninitialized field
25773
25774 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25775
25776         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25777         for an attribute reference that returns an access type.
25778         (Apply_Discriminant_Check): No need for check if (designated) type has
25779         constrained partial view.
25780
25781         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25782         both bound checks, rather than a conjunction.
25783         (Insert_Valid_Check): If the expression is an actual that is an indexed
25784         component of a bit-packed array, force expansion of the packed element
25785         reference, because it is specifically inhibited elsewhere.
25786
25787 2005-06-14  Vincent Celier  <celier@adacore.com>
25788
25789         * clean.adb (Clean_Project): Correctly delete executable specified as
25790         absolute path names.
25791
25792         * make.adb (Gnatmake): Allow relative executable path names with
25793         directory information even when project files are used.
25794         (Change_To_Object_Directory): Fail gracefully when unable to change
25795         current working directory to object directory of a project.
25796         (Gnatmake): Remove exception handler that could no longer be exercized
25797         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25798         may be deallocated by Normalize_Arguments.
25799         (Collect_Arguments): Eliminate empty arguments
25800
25801         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25802         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25803         (Check_Project): Return False when Project is No_Project. Return True
25804         when All_Projects is True.
25805         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25806         All_Projects to True.
25807         Minor reformatting
25808
25809 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25810             Javier Miranda  <miranda@adacore.com>
25811             Thomas Quinot  <quinot@adacore.com>
25812             Robert Dewar  <dewar@adacore.com>
25813             Hristian Kirtchev  <kirtchev@adacore.com>
25814             Gary Dismukes  <dismukes@adacore.com>
25815
25816         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25817         anonymous access types, to indicate that the accessibility level of
25818         the type is determined by that of the enclosing declaration.
25819         (Has_Persistent_BSS): New flag
25820         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25821         of this attribute with functions.
25822         (Is_Primitive_Wrapper): Remove the barrier.
25823         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25824         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25825         New subprograms.
25826         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25827         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25828         New subprograms.
25829         (Is_Pure_Unit_Access_Type): New flag
25830         (Abstract_Interfaces): Complete the assertion to cover all usages.
25831         (Set_Is_Interface): Complete the assertion to cover all usages.
25832         (Is_Primitive_Wrapper): New attribute.
25833         (Is_Obsolescent): Now applies to all entities (though it is only set
25834         for subprograms currently)
25835         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25836         which solves various problems concerning access subtypes.
25837         (Has_Persistent_BSS): New flag
25838         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25839         Remove these subprograms because this attribute is currently
25840         not used.
25841         New entity flags:
25842         Has_Specified_Stream_Input (Flag190)
25843         Has_Specified_Stream_Output (Flag191)
25844         Has_Specified_Stream_Read (Flag192)
25845         Has_Specified_Stream_Write (Flag193)
25846         Present in all type and subtype entities. Set for a given view if the
25847         corresponding stream-oriented attribute has been defined by an
25848         attribute definition clause. When such a clause occurs, a TSS is set
25849         on the underlying full view; the flags are used to track visibility of
25850         the attribute definition clause for partial or incomplete views.
25851         (Is_Pure_Unit_Access_Type): New flag
25852         Clarify use of Is_Internal.
25853         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25854         internally generated to wrap the invocation of tasks and protected
25855         types that implement interfaces.
25856         (Implementation_Base_Type): Documentation correction
25857         (Is_Obsolescent): Now applies to all entities (though it is only set
25858         for subprograms currently)
25859         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25860         which solves various problems concerning access subtypes.
25861
25862         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25863         for examined parameters. Identify unequal parameter list lengths as
25864         non-conformant parameters.
25865         (Overriding_Possible): Do not check for "All" qualifier in declaration
25866         of controlling access parameter, following prescription of AI-404.
25867         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25868         that build the procedure body that wraps an entry invocation
25869         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25870         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25871         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25872         give support to abstract interface types
25873
25874         * freeze.adb (Freeze_Entity): Issue error message if
25875         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25876         type has no storage pool (Ada 2005) AI-366.
25877         Also modified to give support to abstract interface types
25878         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25879         Inline_Always pragma.
25880
25881         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25882         now begin an entry declaration.
25883         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25884         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25885         a subprogram declaration preceded by an overriding indicator.
25886         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25887         declarations or subprogram declarations preceded by reserved words
25888         "not" or "overriding".
25889         (P_Entry_Declaration): Update comment. Parse and check overriding
25890         indicator, set semantic flags of entry declarations.
25891         (P_Task): New error message in case of private applied
25892         to a task type declaration.
25893         (P_Protected): New error message in case of private applied
25894         to a task type declaration.
25895
25896         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25897         in which the full view of a type implementing an interface is a
25898         concurrent type.
25899         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25900         Declare_Inherited_Private_Subprograms): If an explicit operation
25901         overrides an operation that is inherited in the private part, mark the
25902         explicit one as overriding, to enable overriding indicator checks.
25903         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25904         full view to partial view, to simplify handling in back-end.
25905
25906         * sprint.adb: Print interface lists where needed: derived types,
25907         protected types, task types.
25908         output "is null" for null procedures. Part of implementation of
25909
25910         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25911         relaxation of rules for access types in pure, shared passive partitions.
25912
25913         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25914         first read discriminants into temporary objects, performing checks on
25915         the read values, then possibly performing discriminant checks on the
25916         actual (if it is constrained), and only finally reading the components
25917         into a constrained temporary object.
25918         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25919         case of reading discriminants of a mutable record type to recognize
25920         the new form of the code generated by
25921         Build_Mutable_Record_Read_Procedure.
25922
25923         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25924         of a simple call to Make_TSS_Name.
25925         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25926         buffer, in order for Is_TSS to work correctly on local TSS names.
25927
25928         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25929         Is_Local_Anonymous_Access to check legaliy of attributes in the
25930         context of  access components and stand-alone access objects.
25931         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25932         treated as available for a limited private type if there is an
25933         attribute_definition_clause that applies to its full view, but not in
25934         other cases where the attribute is available for the full view
25935         (specifically, the sole fact that the full view is non-limited does not
25936         make the attribute available for the partial view).
25937         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25938         non-overloaded intrinsic subprogram.
25939         (Check_Stream_Attribute): Reject an attribute reference for an
25940         unavailable stream attribute even if the prefix is not a limited type
25941         (case of a 'Input attribute reference for an abstract, non-classwide
25942         type)
25943         (Stream_Attribute_Available): New function to determine whether a stream
25944         attribute is available at a place.
25945         (Check_Attribute): Use Stream_Attribute_Available instead of just
25946         testing for TSS presence on the implementation base type.
25947         (Analyze_Attribute): Modified to give support to task interfaces.
25948         (Analyze_Access_Attribute): Add error check for use of an Access (or
25949         Unrestricted_Access) attribute with a subprogram marked as
25950         Inline_Always.
25951         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25952         an Address attribute with a subprogram marked as Inline_Always.
25953         Update Eval_Attribute to handle new value of Width from AI-395
25954
25955         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25956         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25957         Factor common code across the stream-oriented attribute circcuits into
25958         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25959         processing is functionally identical to the previous duplicated one,
25960         except that an expression that denotes an abstract subprogram will now
25961         be rejected, as mandated by AI-195 item 5.
25962
25963         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25964         Is_Local_Anonymous_Access to apply accessibility checks to access
25965         components and stand-alone access objects.
25966         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25967         elsewhere.
25968         (Is_Potentially_Persistent_Type): New function
25969         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25970         a heap-object whose type has a constrained partial view, the object is
25971         unconstrained and the component may depend on a discriminant, making its
25972         renaming illegal.
25973
25974         * sinfo.ads, sinfo.adb
25975         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25976         (Must_Override): Flag applicable to N_Entry_Declaration.
25977         Indicate that interface_list can appear in single task and single
25978         protected declarations.
25979         Replace Is_Overriding and Not_Overriding with Must_Override and
25980         Must_Not_Override, to better express intent of AI.
25981         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25982         of an overriding indicator in a subprogram or instance.
25983         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25984         Add the overriding indicator [[not] overriding] construct to the
25985         following grammar productions:
25986          ENTRY_DECLARATION
25987          GENERIC_INSTANTIATION
25988          SUBPROGRAM_SPECIFICATION
25989
25990         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25991         can start with an overriding indicator.
25992
25993         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25994         flags accordingly on subrogram specifications or instances.
25995
25996         * sem_ch8.adb:
25997         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25998         overriding_indicator, if present, is consistent with status of spec.
25999         Improve error message for null-excluding checks on controlling access
26000         parameters.
26001         (Check_In_Previous_With_Clause): Protect the frontend against
26002         previously reported critical errors in the context clauses.
26003         Save and restore Ada_Version_Explicit, for implementation of AI-362
26004         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26005         operation verify that controlling formals of the renamed entity that
26006         are access parameters are explicitly non-null.
26007         (Find_Expanded_Name): Improve error message when prefix is an illegal
26008         reference to a private child unit.
26009
26010         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26011         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26012         Rewrite to correspond to new wide character names in AI-395
26013
26014         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26015         default procedures.
26016
26017 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26018             Robert Dewar  <dewar@adacore.com>
26019
26020         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26021         code, not on the bodies of predefined operations, to cut down on
26022         spurious noise.
26023
26024 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26025
26026         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26027         be expanded in place. The size computation does not require a
26028         subtraction, which would raise an exception on a compiler built with
26029         assertions when the upper bound is Integer'first.
26030         (Flatten): For an array of composite components, take into account the
26031         size of the components to determine whether it is safe to expand the
26032         array into a purely positional representation.
26033
26034 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26035
26036         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26037         denoting a formal parameter into account.
26038
26039 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26040
26041         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26042         the entry_call alternative of a conditional entry call, wrap the
26043         conditional entry call itself.
26044
26045 2005-06-14  Nicolas Setton  <setton@adacore.com>
26046             Ed Schonberg  <schonberg@adacore.com>
26047
26048         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26049         the "simple_choice" member in a variant record, in accordance with the
26050         description in the package spec: the information output for a constant
26051         should be "S number", not "SS number".
26052         (Get_Encoded_Name): Return at once if not generating code. Avoids name
26053         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26054
26055 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26056
26057         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26058         RACW without any primitives, do not generate the if statement for
26059         dispatching by name in the PolyORB/DSA case, as it would be malformed
26060         (it would have an Elsif_Parts list that is not No_List, but with a
26061         length of 0).
26062
26063 2005-06-14  Robert Dewar  <dewar@adacore.com>
26064
26065         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26066
26067 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
26068
26069         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26070         can determine whether pragma Suppress_Exception_Locations is in effect.
26071
26072         * utils2.c (build_call_raise): Do not pass the file name to the
26073         exception handler if pragma Suppress_Exception_Locations is in effect.
26074         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26075
26076 2005-06-14  Emmanuel Briot  <briot@adacore.com>
26077
26078         * g-debpoo.adb (Deallocate, Dereference): Improve output.
26079
26080 2005-06-14  Nicolas Roche  <roche@adacore.com>
26081
26082         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26083         to ""
26084         (Next_Level): Fix minor bug in handling of ../dir case
26085         (Read): Add dir separator to Directory name so that "" is understood as
26086          "/"
26087
26088 2005-06-14  Pascal Obry  <obry@adacore.com>
26089
26090         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26091         releasing the items.
26092
26093 2005-06-14  Vincent Celier  <celier@adacore.com>
26094             Cyrille Comar  <comar@adacore.com>
26095
26096         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26097         with output file descriptor and with output file name.
26098         (Dup, Dup2): Now global procedures as they are used by two subprograms
26099         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26100
26101 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26102
26103         PR ada/6717
26104         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26105         broadcast address.
26106         (Create_Selector): Bind listening socket used to create the signalling
26107         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26108         Set listen backlog to 1 to ensure that we detect socket theft by a
26109         failure of our own connect(2) call.
26110         (Check_Selector): Improve documentation of the selector mechanism.
26111         (Broadcast_Inet_Addr): New constant.
26112
26113 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26114
26115         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26116         type which turns out to be an incomplete and incorrect fix.
26117         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26118         of the type is declared in a record (for determination of insertion
26119         type).
26120         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26121         a private type and ensure that the primary entity is used for the type
26122         of the newly created function's V formal by taking the Etype of the
26123         view.
26124
26125 2005-06-14  Javier Miranda  <miranda@adacore.com>
26126             Jose Ruiz  <ruiz@adacore.com>
26127             Robert Dewar  <dewar@adacore.com>
26128             Ed Schonberg  <schonberg@adacore.com>
26129
26130         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26131         that indicates if we are parsing a compilation unit found in a
26132         limited-with clause.
26133         It is use to avoid the circularity check.
26134
26135         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26136         we are parsing a compilation unit found in a limited-with clause. This
26137         is use to avoid the circularity check.
26138
26139         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26140         unit as a consequence of parsing a limited-with clause. This is used
26141         to avoid the circularity check.
26142
26143         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26144         (Analyze_Context): Limited-with clauses are now allowed
26145         in more compilation units.
26146         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26147         againts previously reported critical errors in context clauses
26148         (Install_Limited_Withed_Unit): Code cleanup plus static detection
26149         of two further errors: renamed subprograms and renamed packages
26150         are not allowed in limited with clauses.
26151         (Install_Siblings): Do not install private_with_clauses on the package
26152         declaration for a non-private child unit.
26153         (Re_Install_Parents): When a parent of the subunit is reinstalled,
26154         reset visibility of child units properly.
26155         (Install_Withed_Unit): When a child unit appears in a with_clause of its
26156         parent, it is immediately visible.
26157
26158 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26159             Emmanuel Briot  <briot@adacore.com>
26160
26161         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26162         declared within an inlined body as referenced, to prevent spurious
26163         warnings.
26164         (Output_One_Ref): If an entity renames an array component, indicate in
26165         the ALI file that this aliases (renames) the array. Capture as well
26166         function renamings that rename predefined operations.
26167         Add information about generic parent for package and subprogram
26168         instances.
26169         (Get_Type_Reference): For a subtype that is the renaming of an actual in
26170         an instantiation, use the first_subtype to ensure that we don't generate
26171         cross-reference information for internal types.
26172         For objects and parameters of a generic private type, retain the '*'
26173         indicator to distinguish such an entity from its type.
26174
26175         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26176         to store information about instantiated entities.
26177
26178         * ali.adb (Scan_ALI): Add support for parsing the reference to the
26179         generic parent
26180
26181         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26182         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26183         information.
26184
26185 2005-06-10  Doug Rupp  <rupp@adacore.com>
26186             Arnaud Charlet  <charlet@adacore.com>
26187             Olivier Hainque  <hainque@adacore.com>
26188             Jose Ruiz  <ruiz@adacore.com>
26189
26190         * Make-lang.in: Add initialize.o when needed.
26191         Remove obsolete references to RT_FLAGS.
26192         Add missing dependencies for sdefault.o
26193
26194         * initialize.c: New file.
26195
26196         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26197         [VMS] cond_signal_table: Fix problem in declaration.
26198         [VMS] __gnat_error_handler: rewrite.
26199         Move all __gnat_initialize() routines to initialize.c
26200         Specialize the former "hpux" section to "hppa hpux", as this is what the
26201         section really is here for and we now have other hpux ports that need
26202         different contents.
26203         (__gnat_adjust_context_for_raise) i386-linux: First version of this
26204         function for this target. Adjust PC by one in the machine context. This
26205         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26206         it is more reliable to do that in the signal handler itself.
26207         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26208         flags, so that the handler is passed the context structure to adjust
26209         prior to the raise.
26210         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26211         SA_SIGINFO sigaction should look like. Call
26212         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26213         Machine_State_Operations stuff.
26214         Add conditional code so that the x86_64 is also supported.
26215
26216 2005-06-14  Pascal Obry  <obry@adacore.com>
26217
26218         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26219         the library name.
26220
26221 2005-06-14  Robert Dewar  <dewar@adacore.com>
26222
26223         * opt.ads, opt.adb: New flags for persistent_bss mode
26224         Add Ada_Version_Explicit, for implementation of AI-362
26225         Add Assertions_Enabled_Config and associated handling
26226         Needed since setting can be changed with Assertion_Policy pragma
26227         Add new flag Warn_On_Ada_2005_Compatibility
26228
26229         * switch-c.adb: Recognize -gnatwy/Y
26230         Set Ada_Version_Explicit, for implementation of AI-362
26231         The -gnatg switch now includes -gnatyu
26232
26233         * usage.adb: Add -gnatwy/Y
26234         Remove wrong asterisk on -gnatwX line
26235         Add line for -gnatyu switch
26236
26237 2005-06-14  Vincent Celier  <celier@adacore.com>
26238
26239         * osint.adb (Add_Default_Search_Dirs): Put source and object
26240         directories of project files before directories coming from
26241         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26242
26243 2005-06-14  Robert Dewar  <dewar@adacore.com>
26244
26245         PR ada/15613
26246         * par-ch2.adb (Scan_Pragma_Argument): New procedure
26247         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26248
26249 2005-06-14  Vincent Celier  <celier@adacore.com>
26250
26251         * prep.adb (Preprocess): Ignore error when scanning the first token of
26252         a line.
26253
26254 2005-06-14  Vincent Celier  <celier@adacore.com>
26255
26256         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26257         (Check_Stand_Alone_Library): If the specified reference symbol file does
26258         not exist, only issue a warning when the symbol policy is not
26259         Controlled. And, when symbol policy is Compliant, set the symbol
26260         policy to Autonomous.
26261
26262 2005-06-14  Vincent Celier  <celier@adacore.com>
26263
26264         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26265         when the project file in a with clause is not the last one, that is the
26266         project file name is followed by a comma.
26267         * prj-pp.adb: (First_With_In_List): New Boolean global variable
26268         (Print): Issue list of project files separated by commas in with clauses
26269         according to the values returned by Is_Not_Last_In_List.
26270         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26271         (Set_Is_Not_Last_In_List): New procedure
26272
26273 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26274
26275         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26276
26277 2005-06-14  Robert Dewar  <dewar@adacore.com>
26278
26279         * scng.adb: Add call to new Check_EOF routine
26280         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26281         Add some comments regarding wide character handling
26282
26283         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26284
26285         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26286
26287         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26288         characters are now considered graphic characters and hence yield false
26289         in this call.
26290
26291         * nmake.adt: Modify header so that xnmake does not generate output
26292         files with multiple blank lines.
26293
26294         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26295         not have an extra blank line
26296
26297 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26298
26299         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26300         expression when the component type is an anonymous access type to
26301         ensure that appropriate accessibility checks are done.
26302
26303         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26304         expression of an assignment when the target object is of an anonymous
26305         access type. This ensures that required accessibility checks are done.
26306         (One_Bound): Move the check for type Universal_Integer to
26307         Process_Bounds.
26308         (Process_Bounds): Check whether the type of the preanalyzed range is
26309         Universal_Integer, and in that case set Typ to Integer_Type prior
26310         to setting the type of the original range and the calls to One_Bound.
26311
26312 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26313
26314         * sem_case.adb (Expand_Others_Choice): Improve warning.
26315
26316 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26317
26318         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26319         constraint of full view if present, when other type is discriminated.
26320         (Eval_Relational_Op): Recognize tests of pointer values against Null,
26321         when the pointer is known to be non-null, and emit appropriate warning.
26322
26323 2005-06-14  Robert Dewar  <dewar@adacore.com>
26324             Ed Schonberg  <schonberg@adacore.com>
26325
26326         PR ada/10671
26327         * sem_prag.adb: Implement pragma Persistent_BSS
26328         Remove obsolete pragma Persistent_Data, Persistent_Object
26329         Set Ada_Version_Explicit, for implementation of AI-362
26330         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26331         Add processing for pragma Pure_05 and Preelaborate_05
26332         Add processing for Assertion_Policy pragma
26333         Add pragma identifiers for Assert
26334         (Analyze_Pragma, case Assert): Check number of arguments
26335         (Process_Inline): Additional guard against an illegal program, where the
26336         argument of the pragma is undefined, and warnings on redundant
26337         constructs are enabled.
26338         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26339         Ada_05 to this pragma, specifying that the pragma is only active in
26340         Ada_05 mode.
26341         (Check_Arg_Order): New procedure
26342         Add appropriate calls to this procedure throughout
26343         Also throughout, check entity name before doing any other checks
26344
26345         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26346         Remove obsolete pragma Persistent_Data, Persistent_Object
26347         Add entries for pragma Pure_05 and Preelaborate_05
26348         Add entries for Assertion_Policy pragma and associated names
26349         Add some names for pragma argument processing
26350
26351         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26352
26353 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26354
26355         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26356         appears within a negation (either from source or as a rewriting of
26357         inequality) adjust text of warning accordingly.
26358
26359 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26360
26361         * s-strxdr.adb: Follow AI95-00132
26362
26363 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26364
26365         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26366
26367 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26368             Jose Ruiz  <ruiz@adacore.com>
26369
26370         * s-tposen.adb, s-tpobop.adb
26371         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26372         the exception id.
26373         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26374         there is no violation of the Max_Entry_Queue_Length restriction (if it
26375         has been set); Program_Error is raised otherwise.
26376         (Requeue_Call): Before requeuing the task on the target entry queue we
26377         check that there is no violation of the Max_Entry_Queue_Length
26378         restriction (if it has been set); Program_Error is raised otherwise.
26379
26380 2005-06-14  Robert Dewar  <dewar@adacore.com>
26381
26382         * styleg.adb: Fix several remaining problems in -gnatyu switch
26383         Blank line count not reset at start
26384         Scanning outside source buffer in some cases
26385         Confusing message for blanks at end of file
26386         Non-empty blank lines not recognized
26387
26388         * nmake.adt: Modify header so that xnmake does not generate output
26389         files with multiple blank lines.
26390
26391         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26392         not have an extra blank line
26393
26394 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26395
26396         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26397
26398 2005-06-14  Doug Rupp  <rupp@adacore.com>
26399             Vincent Celier  <celier@adacore.com>
26400
26401         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26402         Update copyright.
26403
26404         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26405         Remove "Library" command.
26406         Change keyword for style check -gnatyd from NOCRLF to
26407         DOS_LINE_ENDINGS.
26408         Remove useless second style check keyword NONE
26409         Remove help documentation for inexistent style check keyword
26410         RM_COLUMN_LAYOUT.
26411         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26412         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26413         Add UNNECESSARY_BLANK_LINES for -gnatyu
26414         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26415
26416         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26417
26418 2005-06-14  Vincent Celier  <celier@adacore.com>
26419
26420         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26421         gprmake was invoked with -d.
26422         (Compile_Sources): If -d was used, output the "completed ..." message
26423         for each compilation.
26424         (Scan_Arg): Recognize new switch -d
26425         When -c and at least one main is specified, set
26426         Unique_Compile to True to guarantee that no other sources will be
26427         compiled.
26428
26429 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26430
26431         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26432         * a-swuwha.ads, a-swuwha.adb: New files
26433
26434         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26435         * a-szuzha.ads, a-szuzha.adb: New files.
26436
26437         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26438         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26439         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26440         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26441         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26442         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26443         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26444         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26445         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26446         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26447         Ada 2005 RM.
26448
26449 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26450             Olivier Hainque  <hainque@adacore.com>
26451             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26452             Pascal Obry  <obry@adacore.com>
26453
26454         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26455
26456         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26457         making a temporary around a procedure call because of non-addressable
26458         actual parameter.
26459         (process_freeze_entity): If entity is a private type, capture size
26460         information that may have been computed for the full view.
26461         (tree_transform, case N_Allocator): If have initializing expression,
26462         check type for Has_Constrained_Partial_View and pass that to
26463         build_allocator.
26464         (tree_transform, case N_Return_Statement): Pass extra arg to
26465         build_allocator.
26466
26467         * decl.c (annotate_value): Remove early return if -gnatR is not
26468         specified.
26469         (gnat_to_gnu_field): Don't make a packable type for a component clause
26470         if the position is byte aligned, the field is aliased, and the clause
26471         size isn't a multiple of the packable alignment. It serves no useful
26472         purpose packing-wise and would be rejected later on.
26473         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26474
26475         PR ada/20515
26476         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26477         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26478         instead.
26479         (create_concat_name): Idem.
26480
26481 2005-06-10  Robert Dewar  <dewar@adacore.com>
26482             Eric Botcazou  <ebotcazou@adacore.com>
26483             Ben Brosgol  <brosgol@adacore.com>
26484             Cyrille Comar  <comar@adacore.com>
26485             Sergey Rybin  <rybin@adacore.com>
26486             Pascal Obry  <obry@adacore.com>
26487
26488         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26489         Document second argument (Ada_05) of pragma Obsolescent
26490         Add note that call to subprogram marked with pragma Obsolescent
26491         is now considered to be a violation of program Restrictions
26492         (No_Obsolescent_Features).
26493         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26494         that only machine-dependent attributes are supported.
26495
26496         * gnat_ugn.texi:
26497         Commented out menu lines and empty section for gnatclean examples
26498         Document -gnatwy/Y
26499         Fix some over long lines
26500         Clarify and enhance documentation of ADA_PROJECT_PATH.
26501         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26502         Mention new switch -fcallgraph-info.
26503         Mention new switch -fstack-usage.
26504         For gnatpp, replace '-notab' with '-N' and add this option to Index
26505         Corrected VMS example.
26506         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26507         Minor reformatting
26508         Add documentation for -gnatyu switch (unnecessary blank lines)
26509         Document new switch -U for GNAT PRETTY and GNAT METRIC
26510         Add note about Stdcall being handled as C convention on non Windows OS.
26511         Remove some junk typo in description of gnatbind -S switch
26512         Remove reference to Extensions_Allowed pragma
26513         Document the new order of the directories to be searched (source and
26514         object directories of project files before directories in ADA_*_PATH
26515         environment variables.
26516
26517         * g-trasym.ads: Document that IRIX is supported
26518
26519 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26520
26521         * Makefile.in: Add initialize.o when needed.
26522         Adapt to new VMS package body Symbols and subunits
26523         No specialized version of a-sytaco is needed for VxWorks.
26524
26525         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26526         * a-zchara.ads, a-widcha.ads: New files.
26527
26528         * system-hpux-ia64.ads: New file.
26529
26530         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26531         is imported from the VxWorks kernel.
26532
26533 2005-06-14  Robert Dewar  <dewar@adacore.com>
26534
26535         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26536         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26537         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26538         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26539         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26540         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26541         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26542         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26543         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26544         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26545         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26546         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26547
26548 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26549
26550         * xeinfo.adb: Fix typo in comment
26551
26552 2005-06-14  Javier Miranda  <miranda@adacore.com>
26553
26554         * repinfo.ads: Fix typo in comment
26555
26556 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26557
26558         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26559         Parent_Tag is now in the visible part of Ada.Tags).
26560         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26561         using imported function.
26562
26563 2005-06-14  Bernard Banner  <banner@adacore.com>
26564
26565         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26566         also apply for handling support for VxSim 653.
26567
26568 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26569
26570         * xsnames.adb: Add automatic generation of snames.h.
26571
26572 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26573
26574         * gen-soccon.c: Add IP_MULTICAST_IF constant
26575         Minor reformatting and adjustments to prevent warnings.
26576
26577 2005-06-14  Pascal Obry  <obry@adacore.com>
26578
26579         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26580
26581 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26582
26583         * trans.c (gnat_gimplify_expr): Call
26584         recompute_tree_invarant_for_addr_expr when we change
26585         the operand of the ADDR_EXPR.
26586
26587 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26588
26589         * misc.c: Don't include errors.h.
26590
26591 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26592
26593         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26594
26595 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26596
26597         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26598         comment typos.
26599         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26600
26601 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26602
26603         PR ada/20270
26604         * Makefile.in: Make TGT_LIB behave correctly.
26605
26606 2005-04-23  DJ Delorie  <dj@redhat.com>
26607
26608         * misc.c: Adjust warning() callers.
26609
26610 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26611
26612         PR ada/18847
26613         * a-nudira.adb (Value): Check for valid string.
26614         * a-nuflra.adb (Value): Likewise.
26615
26616 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26617
26618         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26619
26620 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26621
26622         * adaint.c, init.c, tracebak.c: Fix comment typos.
26623         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26624
26625 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26626             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26627
26628         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26629         * system-hpux.ads: Define Signed_Zeros to be True.
26630         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26631
26632 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26633
26634         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26635         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26636         typos.
26637
26638 2005-03-30  Tom Tromey  <tromey@redhat.com>
26639
26640         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26641
26642 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26643
26644         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26645
26646 2005-03-29  Robert Dewar  <dewar@adacore.com>
26647
26648         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26649         fixed-point expression has value that is not a multiple of the Small
26650         value.
26651
26652         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26653
26654         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26655         nanoseconds.
26656
26657         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26658
26659 2005-03-29  Vincent Celier  <celier@adacore.com>
26660
26661         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26662         (Build_Dynamic_Library.Version_String): Return the empty string when
26663         Lib_Version is empty or when the symbol policy is not Autonomous.
26664
26665         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26666         a symbol is not in the reference symbol file, increase the Major ID
26667         and set the Minor ID to 0.
26668         Use gsmatch=lequal instead of gsmatch=equal
26669
26670 2005-03-29  Doug Rupp  <rupp@adacore.com>
26671
26672         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26673         name and translate.
26674
26675 2005-03-29  Javier Miranda  <miranda@adacore.com>
26676
26677         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26678         (Inherit_DT): The first formal has been redefined as a Tag.
26679         This allows us the removal of the subprogram Get_TSD.
26680         (TSD): Replace the call to Get_TSD by the actual code.
26681
26682         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26683         (Make_DT): Upgrade the call to Inherit_TSD according to the
26684         new interface: the first formal is now a Tag.
26685
26686         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26687         redefined as a Tag.
26688         This change allows us to remove the subprogram Get_TSD.
26689         (CPP_Get_TSD): Subprogram removed.
26690         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26691
26692         * rtsfind.ads: Remove support to call the run-time
26693         subprogram Get_TSD
26694
26695 2005-03-29  Robert Dewar  <dewar@adacore.com>
26696
26697         * errutil.adb, errout.adb:
26698         Minor comment updates on Line_Terminator references
26699
26700         * par-ch10.adb: Add ??? comment about line terminator
26701
26702         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26703         (check dos line terminator).
26704         (Check_Line_Max_Length): New procedure, split off from the existing
26705         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26706         be properly recognized.
26707
26708         * styleg.adb: Add ??? comment for line terminator reference
26709
26710         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26711         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26712
26713         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26714         (check dos line terminator).
26715         (Check_Line_Max_Length): New procedure, split off from the existing
26716         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26717         be properly recognized.
26718
26719         * stylesw.ads, stylesw.adb:
26720         Add handling for new -gnatyd switch (check dos line terminator)
26721
26722         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26723         Recognize -gnatwb/-gnatwB switches
26724         Include Warn_On_Bad_Fixed_Value for -gnatg
26725
26726         * usage.adb:
26727         Add line for new -gnatyd switch (check dos line terminator)
26728
26729         * usage.adb: Add lines for -gnatwb/-gnatwB
26730
26731         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26732
26733         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26734
26735         * gnat_ugn.texi: Fix overlong lines
26736         Document new -gnatyd switch
26737         Document new -gnatwb/-gnatwB switches
26738
26739 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26740
26741         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26742         order to retrieve the component list of the type, before examining
26743         individual components.
26744
26745         * sem_type.adb (Covers): Types are compatible if one is the base type
26746         of the other, even though their base types might differ when private
26747         views are involved.
26748
26749 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26750
26751         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26752         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26753         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26754         analyzed if expansion is disabled (which could otherwise cause spurious
26755         error messages if expansion has been disabled due to previous
26756         (unrelated) errors).
26757
26758         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26759         is disabled, the entity denoted by the argument is the access type
26760         itself, not an underlying record type, so there is no need to go back
26761         to the Corresponding_Remote_Type.
26762
26763 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26764             Robert Dewar  <dewar@adacore.com>
26765
26766         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26767         expand a call to an instance of
26768         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26769         Constructor actual of the instance. A class-wide membership
26770         check is also generated, to ensure that the tag passed to the instance
26771         denotes a type in the class.
26772         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26773         of Name_Generic_Dispatching_Constructor.
26774
26775         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26776         05 unit for AI-260-02).
26777
26778         * a-tgdico.ads: New file.
26779
26780         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26781         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26782
26783         * snames.ads, snames.adb (Preset_Names): Add entry for
26784         Generic_Dispatching_Constructor.
26785
26786         PR ada/20300
26787         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26788         character type cases.
26789         (Analyze_Subprogram_Renaming): Add special handling for
26790         the case of renaming of stream attributes when the renaming denotes a
26791         generic formal subprogram association for an abstract formal subprogram.
26792         Check that the attribute is a primitive stream attribute (and not
26793         a class-wide stream attribute) and then rewrite the attribute name
26794         as the name of the appropriate compiler-generated stream primitive.
26795
26796 2005-03-29  Robert Dewar  <dewar@adacore.com>
26797
26798         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26799         recursive calls.
26800         (Is_Possibly_Unaligned_Object): Correct typo that
26801         resulted in inaccurate result for unaligned scalars within records.
26802
26803 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26804
26805         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26806         itype whose parent is controlled and not yet frozen, do not create a
26807         freeze node for the itype if expansion is disabled.
26808
26809 2005-03-29  Vincent Celier  <celier@adacore.com>
26810
26811         * make.adb (Gnatmake): Don't fail if the main project file is declared
26812         as having no Ada sources. Do not display message "no sources to
26813         compile" in quiet output.
26814
26815 2005-03-29  Doug Rupp  <rupp@adacore.com>
26816
26817         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26818         extra tools.
26819
26820 2005-03-29  Robert Dewar  <dewar@adacore.com>
26821
26822         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26823         child.
26824
26825 2005-03-29  Robert Dewar  <dewar@adacore.com>
26826
26827         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26828         missing TYPE Improve the error message generated when compiling a
26829         limited interface in Ada83 or Ada95 mode.
26830
26831 2005-03-29  Robert Dewar  <dewar@adacore.com>
26832
26833         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26834         rather than proceed ahead using a junk attribute name.
26835
26836 2005-03-29  Vincent Celier  <celier@adacore.com>
26837
26838         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26839
26840         * prj-part.adb (Parse_Single_Project): Set the location of a project
26841         on its defining identifier, rather than on the reserved word "project".
26842
26843         * prj-proc.adb (Expression): Adapt to the fact that default of external
26844         references may be string expressions, not always literal strings.
26845         (Recursive_Process): Set Display_Name equal to Name
26846         when Location is No_Location, that is when there is no actual file.
26847         Get the Display_Name of the project from the source, when it is not a
26848         virtual project.
26849         (Process): Use the Display_Name in error messages
26850
26851         * prj-strt.adb (External_Reference): Allow default to be string
26852         expressions, not only literal strings.
26853
26854 2005-03-29  Vincent Celier  <celier@adacore.com>
26855
26856         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26857         file and the reference symbol file to be the same file.
26858
26859 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26860
26861         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26862         forbid conversion of a local access-to-subprogram type to a remote one.
26863
26864         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26865         equivalent type for a remote access-to-subprogram type, go back to the
26866         original RAS entity when displaying an error message, so the casing is
26867         the original source casing.
26868
26869 2005-03-29  Robert Dewar  <dewar@adacore.com>
26870
26871         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26872         on param update.
26873
26874 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26875
26876         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26877         subtype if code is being pre-analyzed, to prevent un-expanded
26878         references to protected formals, among others.
26879         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26880         interpretation that can be a call, include the result of the call as a
26881         possible interpretation of the dereference.
26882
26883         * sem_ch5.adb (Process_Bounds): Determine type of range by
26884         pre-analyzing a copy of the original range, and then analyze the range
26885         with the expected type.
26886
26887         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26888         with an overloaded prefix where not all interpretations yield an
26889         access to subprogram, do not rewrite node as a call.
26890         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26891         the node as a call once the context identifies the interpretation of
26892         the prefix whose call yields the context type.
26893         (Valid_Conversion): For the case of a conversion between
26894         local access-to-subprogram types, check subtype conformance using
26895         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26896         detailed error message.
26897
26898 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26899
26900         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26901         indicator, indicate that the formal can never be null.
26902         (Process_Formals): If a formal has a non_null indicator, insert the
26903         resulting subtype immediately before the enclosing subprogram decl,
26904         and not at the beginning of the corresponding declarative part, to
26905         prevent access before elaboration (Ada2005).
26906
26907 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26908
26909         PR ada/19956
26910         * utils.c (finish_record_type): Use variable_size when setting sizes.
26911
26912 2005-03-29  Robert Dewar  <dewar@adacore.com>
26913
26914         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26915         guarantee Unix style line terminators for the output files, even when
26916         running on windows.
26917
26918 2005-03-29  Robert Dewar  <dewar@adacore.com>
26919
26920         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26921         buffer if an exception is raised.
26922
26923 2005-03-29  Ed Falis  <falis@adacore.com>
26924
26925         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26926         VxWorks 653 1.4
26927
26928 2005-03-29  Robert Dewar  <dewar@adacore.com>
26929
26930         * sem_util.ads: Minor reformatting
26931         * gnat_rm.texi: Minor editing.
26932
26933 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26934
26935         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26936         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26937
26938 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26939
26940         * adaint.c (__gnat_portable_spawn): Adjust cast.
26941
26942 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26943
26944         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26945
26946 2005-03-17  Pascal Obry  <obry@adacore.com>
26947
26948         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26949         used.
26950
26951         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26952         Reimplement under Win32 using Win32 API.
26953
26954         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26955         this routine.
26956
26957 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26958
26959         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26960         (DECL_RENAMED_OBJECT): New accessor macro.
26961         (SET_DECL_RENAMED_OBJECT): New setter macro.
26962
26963         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26964         object in all cases.  Attach the renamed object to the VAR_DECL.
26965         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26966         field is not prescribed.
26967
26968         * misc.c (gnat_handle_option): Handle -gnatO separately.
26969         (gnat_print_decl) <VAR_DECL>: New case.
26970         Print the DECL_RENAMED_OBJECT node.
26971
26972         * lang.opt:  Declare separate -gnatO option.
26973
26974         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26975         pointer, replace it with the renamed object.
26976         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26977         pointer type if the source is not a fat pointer type whose underlying
26978         array has the same non-zero alias set as that of the destination array.
26979
26980 2005-03-17  Javier Miranda  <miranda@adacore.com>
26981
26982         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26983         (Get_Inheritance_Depth): Removed.
26984         (Set_Inheritance_Depth): Removed.
26985
26986         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26987         subprogram Get_Expanded_Name because it is not referenced by the
26988         frontend.
26989
26990         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26991         (CPP_Get_Inheritance_Depth): Removed.
26992         (CPP_Set_Inheritance_Depth): Removed.
26993
26994         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26995
26996 2005-03-17  Robert Dewar  <dewar@adacore.com>
26997
26998         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26999         3, since we now expect GCC 3 to do all the work.
27000
27001 2005-03-17  Javier Miranda  <miranda@adacore.com>
27002
27003         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27004         of one barrier to avoid wrong usage of this attribute.
27005
27006         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27007         First_Private_Entity.
27008
27009         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27010         the subprogram against wrong usage.
27011         Adapt the code to traverse the entities in the
27012         scope of a record_type because in addition to its usage regarding
27013         packages, this subprogram is also called by Expand_N_Freeze_Entity
27014         to install the visible declarations of the enclosing scope of a
27015         record_type_with_private to establish the proper visibility before
27016         freezing the entity and related subprograms.
27017
27018 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
27019
27020         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27021         entry formals.
27022
27023 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27024
27025         * exp_ch3.adb (Check_Attr): New subprogram.
27026         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27027         into a new Check_Attr subprogram, in order to provide a more
27028         explanatory error message (including the name of the missing attribute).
27029         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27030         subprogram determines whether a default implementation exists for a
27031         given stream attribute.
27032         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27033         Determine whether to generate a default implementation for each stream
27034         attribute separately, as this depends on the specific attribute.
27035
27036         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27037         limited extension where a stream attribute is missing for a limited
27038         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27039         generate a bogus reference to the missing attribute to prevent
27040         cascaded errors. Instead, generate a null statement.
27041
27042         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27043         available for a limited type if it has been specified for an ancestor
27044         of the type.
27045
27046 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
27047
27048         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27049         entity is an operator.
27050
27051 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27052
27053         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27054         spec, to make this predicate available to other units.
27055
27056         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27057         reimplementing it.
27058
27059         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27060         when no distribution runtime library is available.
27061
27062         * sem_res.adb, sem_dist.adb: Disable expansion of remote
27063         access-to-subprogram types when no distribution runtime library is
27064         available.
27065         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27066         predicate available to other units.
27067
27068         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27069         spec, to make this predicate available to other units.
27070
27071 2005-03-17  Vincent Celier  <celier@adacore.com>
27072
27073         * make.adb (Insert_Project_Sources): Make sure the Q is always
27074         initialized.
27075
27076         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27077         the default for the tree, not the global default naming.
27078
27079         * prj-proc.adb (Recursive_Process): No need to put the default naming
27080         in the project data, it's already there.
27081
27082 2005-03-17  Doug Rupp  <rupp@adacore.com>
27083
27084         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27085
27086         * 5xcrtl.ads: Renamed to...
27087         * s-crtl-vms64.ads: ...this new file
27088
27089 2005-03-17  Robert Dewar  <dewar@adacore.com>
27090
27091         PR ada/19519
27092         * namet.adb (Copy_One_Character): Set proper wide character encoding
27093         for upper half character if we have upper half encoding.
27094
27095 2005-03-17  Robert Dewar  <dewar@adacore.com>
27096
27097         * par.adb (Par): Improved msg for attempt to recompile predefined unit
27098
27099 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27100
27101         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27102         tagged limited type, the TSS is a newly built renaming declaration:
27103         insert it using Set_TSS, not Copy_TSS.
27104
27105 2005-03-17  Javier Miranda  <miranda@adacore.com>
27106
27107         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27108         Try_Object_Operation): Analyze the object that is accessible
27109         through the prefix of the subprogram call before we apply
27110         the transformation of the object-operation notation.
27111
27112 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
27113
27114         * s-taprob.adb (Initialize_Protection): Initialize the protected
27115         object's owner to Null_Task.
27116         (Lock): If pragma Detect_Blocking is in effect and the caller of this
27117         procedure is already the protected object's owner then Program_Error
27118         is raised. In addition the protected object's owner is updated.
27119         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27120         of this procedure is already the protected object's owner then
27121         Program_Error is raised.
27122         In addition the protected object's owner is updated.
27123         (Unlock): Remove the ownership of the protected object.
27124
27125         * s-taprob.ads (Protection): Add the field Owner, used to store the
27126         protected object's owner.
27127         This component is needed for detecting one type of potentially blocking
27128         operations (external calls on a protected subprogram with the same
27129         target object as that of the protected action). Document the rest of
27130         the components.
27131
27132         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27133         Initialize the protected object's owner to Null_Task.
27134         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27135         caller of this procedure is already the protected object's owner then
27136         Program_Error is raised.
27137         Do not raise Program_Error when this procedure is called from a
27138         protected action.
27139         (Unlock_Entries): Remove the ownership of the protected object.
27140         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27141         of this procedure is already the protected object's owner then
27142         Program_Error is raised.
27143         Do not raise Program_Error when this procedure is called from
27144         a protected action.
27145
27146         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27147         used to store the protected object's owner.
27148
27149         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27150         effect and this procedure (a potentially blocking operation) is called
27151         from whithin a protected action, Program_Error is raised.
27152         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27153         and this procedure (a potentially blocking operation) is called from
27154         whithin a protected action, Program_Error is raised.
27155
27156 2005-03-17  Vincent Celier  <celier@adacore.com>
27157             Nicolas Setton  <setton@adacore.com>
27158
27159         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27160         switch, not supported by the linker on Darwin. Add '_' before
27161         <library>init, as this character is added unconditionally by the
27162         compiler.
27163         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27164         correct one ".dylib". This fixes detection of the archive files when
27165         building library projects.
27166
27167 2005-03-17  Vincent Celier  <celier@adacore.com>
27168
27169         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27170         -gnat83, -gnat95 and -gnat05.
27171
27172 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
27173
27174         * gnat_ugn.texi: Document gnatmem restriction
27175
27176 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27177
27178         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27179         cleanup
27180
27181 2005-03-17  Robert Dewar  <dewar@adacore.com>
27182
27183         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27184         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27185         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27186
27187         * casing.adb: Comment improvements
27188
27189 2005-03-17  Pascal Obry  <obry@adacore.com>
27190
27191         * g-expect.adb: Minor reformatting.
27192
27193 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
27194
27195         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27196         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27197         to dependencies.
27198
27199 2005-03-15  Vincent Celier  <celier@adacore.com>
27200
27201         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27202         Add new parameter In_Tree to specify the project tree: needed
27203         by the project manager. Adapt to changes in project manager
27204         using new parameter In_Tree.
27205
27206 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
27207
27208         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27209         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27210         ada/bldtools to avoid make -jN failures.
27211
27212 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27213
27214         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27215         to NULL_TREE on entry.
27216
27217 2005-03-15  Robert Dewar  <dewar@adacore.com>
27218
27219         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27220         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27221         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27222         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27223         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27224         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27225         system-interix.ads, system-solaris-sparc.ads,
27226         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27227         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27228         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27229         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27230         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27231         Compiler_System_Version to be False.
27232
27233         * opt.ads: Add new flag Opt.Address_Is_Private
27234
27235         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27236         Add new parameter Compiler_System_Version to avoid checking for
27237         completeness of parameters when compiler is compiling itself.
27238         Allows old versions of GNAT to be compiled with new compiler.
27239
27240 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27241
27242         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27243         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27244         calling thread.
27245         (Stack_Base_Available): New flag.
27246         (Get_Page_Size): New overloaded functions imported from C.
27247         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27248         PROT_ON, PROT_OFF): New constants.
27249         (mprotect): New function imported from C.
27250         (pthread_teb_t): New record type.
27251
27252         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27253         (Create_Task): Account for the Yellow Zone and the guard page.
27254
27255 2005-03-15  Vincent Celier  <celier@adacore.com>
27256
27257         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27258         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27259         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27260         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27261         Library_File_Name_For): Add new parameter In_Tree
27262         to specify the project tree: needed by the project manager.
27263         Adapt to changes in project manager using new parameter In_Tree.
27264         Remove local imports, use functions in System.CRTL.
27265
27266         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27267         to use the project manager.
27268
27269         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27270         In_Tree to designate the project tree. Adapt to changes in the project
27271         manager, using In_Tree.
27272
27273         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27274         Copy_Interface_Sources): Add new parameter In_Tree to specify the
27275         project tree: needed by the project manager.
27276         (Build_Library): Check that Arg'Length >= 6 before checking if it
27277         contains "--RTS=...".
27278
27279         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27280         Library_File_Name_For): Add new parameter In_Tree to specify the
27281         project tree: needed by the project manager.
27282
27283         * prj.ads, prj.adb: Major modifications to allow several project trees
27284         in memory at the same time.
27285         Change tables to dynamic tables and hash tables to dynamic hash
27286         tables. Move tables and hash tables from Prj.Com (in the visible part)
27287         and Prj.Env (in the private part). Move some constants from the visible
27288         part to the private part. Make other constants deferred.
27289         (Project_Empty): Make it a variable, not a function
27290         (Empty_Project): Add parameter Tree. Returns the data with the default
27291         naming data of the project tree Tree.
27292         (Initialize): After updating Std_Naming_Data, copy its value to the
27293         component Naming of Project Empty.
27294         (Register_Default_Naming_Scheme): Use and update the default naming
27295         component of the project tree, instead of the global variable
27296         Std_Naming_Data.
27297         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27298         Tree is not defaulted, return the default naming data of the Tree.
27299         (Initial_Buffer_Size): Constant moved from private part
27300         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27301         variables initialized in procedure Initialize.
27302         (Add_To_Buffer): Add two in out parameters to replace global variables
27303         Buffer and Buffer_Last.
27304         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27305         functions.
27306         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27307         hash tables.
27308         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27309         for the project tree.
27310         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27311         constant at the beginning of the package spec, so that they cane be used
27312         in subprograms before their full declarations.
27313         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27314         (Empty_Project): Add parameter of type Project_Node_Ref
27315         (Private_Project_Tree_Data): Add component Default_Naming of type
27316         Naming_Data.
27317         (Buffer, Buffer_Last): remove global variables
27318         (Add_To_Buffer): Add two in out parameters to replace global variables
27319         Buffer and Buffer_Last.
27320         (Current_Packages_To_Check): Remove global variable
27321         (Empty_Name): Move to private part
27322         (No-Symbols): Make it a constant
27323         (Private_Project_Tree_Data): New type for the private part of the
27324         project tree data.
27325         (Project_Tree_Data): New type for the data of a project tree
27326         (Project_Tree_Ref): New type to designate a project tree
27327         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27328         for the project tree.
27329
27330         * prj-attr.ads: Add with Table; needed, as package Prj no longer
27331         imports package Table.
27332
27333         * prj-com.adb: Remove empty, no longer needed body
27334
27335         * prj-com.ads: Move most of the content of this package to package Prj.
27336
27337         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27338         designate the project node tree and Packages_To_Check to replace
27339         global variable Current_Packages_To_Check.
27340         Add new parameters In_Tree and Packages_To_Check to local subprograms,
27341         when needed. Adapt to changes in project manager with project node tree
27342         In_Tree.
27343
27344         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27345         project tree to most subprograms. Move tables and hash tables to
27346         private part of package Prj.
27347         Adapt to changes in project manager using project tree In_Tree.
27348
27349         * prj-makr.adb (Tree): New constant to designate the project node tree
27350         Adapt to change in project manager using project node tree Tree
27351
27352         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27353         display the Library_Src_Dir and the Library_Dir.
27354         Add new parameter In_Tree to designate the project node tree to most
27355         subprograms. Adapt to changes in the project manager, using project tree
27356         In_Tree.
27357         (Check_Naming_Scheme): Do not alter the casing on platforms where
27358         the casing of file names is not significant.
27359         (Check): Add new parameter In_Tree to designate the
27360
27361         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27362         designate the project tree.
27363         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27364
27365         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27366         to replace those that were in the private part of package Prj.
27367         Add new parameter In__Tree to designate the project node tree to most
27368         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27369         (Post_Parse_Context_Clause): When specifying the project node of a with
27370         clause, indicate that it is a limited with only if there is "limited"
27371         in the with clause, not necessarily when In_Limited is True.
27372         (Parse): Add new parameter In_Tree to designate the project node tree
27373
27374         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27375         designate the project node tree. Adapt to change in Prj.Tree with
27376         project node tree In_Tree.
27377
27378         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27379         tree In_Tree in the call to function Empty_Process to give its initial
27380         value to the project data Processed_Data.
27381         Add new parameters In_Tree to designate the project tree and
27382         From_Project_Node_Tree to designate the project node tree to several
27383         subprograms. Adapt to change in project manager with project tree
27384         In_Tree and project node tree From_Project_Node_Tree.
27385
27386         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27387         to replace those that were in the private part of package Prj.
27388         Add new parameter In_Tree to designate the project node tree to most
27389         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27390
27391         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27392         Project_Node_Tree_Ref to most subprograms.
27393         Use this new parameter to store project nodes in the designated project
27394         node tree.
27395         (Project_Node_Tree_Ref): New type to designate a project node tree
27396         (Tree_Private_Part): Change table to dynamic table and hash tables to
27397         dynamic hash tables.
27398
27399         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27400         the project tree to most subprograms. Adapt to changes in project
27401         manager using project tree In_Tree.
27402
27403         * makegpr.adb (Project_Tree): New constant needed to use project
27404         manager.
27405
27406 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27407
27408         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27409         for sigactions with SA_SIGINFO set. Call
27410         __gnat_adjust_context_for_raise before raising, to perform the
27411         potentially required adjustments to the machine context for the GCC
27412         unwinder.
27413
27414         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27415
27416         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27417         Adjust PC by one in the provided machine context.
27418         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27419         so that the handler is passed the context structure to adjust prior to
27420         the raise.
27421         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27422         SA_SIGINFO sigaction should look like. Call
27423         __gnat_adjust_context_for_raise before actually raising.
27424         (__gnat_adjust_context_for_raise): Default noop to help PC
27425         adjustments before raise from signal handlers.
27426         (__gnat_error_handler): Indirectly call a predicate function to
27427         determine if a condition should be resignaled or not.
27428         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27429         (__gnat_default_resignal_p): Default GNAT predicate.
27430
27431 2005-03-15  Doug Rupp  <rupp@adacore.com>
27432
27433         * adaint.c: Prefix #include of VMS system header files with vms/
27434         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27435         Do not define a dummy function "convert_addresses" under Darwin,
27436         not needed.
27437
27438         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27439         with vms/
27440
27441 2005-03-15  Nicolas Setton  <setton@adacore.com>
27442
27443         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27444         PPC/AIX.
27445
27446 2005-03-15  Robert Dewar  <dewar@adacore.com>
27447
27448         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27449         AI-386.
27450
27451         * a-retide.ads: Minor comment changes
27452
27453 2005-03-15  Robert Dewar  <dewar@adacore.com>
27454
27455         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27456         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27457         Realloc_For_Chunk to private part of package.
27458         New subprograms for AI-301
27459
27460         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27461         Get_Line procedure.
27462         Avoid unnecessary use of Get/Set_Wide_String
27463
27464 2005-03-15  Robert Dewar  <dewar@adacore.com>
27465
27466         PR ada/13470
27467         * a-stunau.ads, a-stunau.adb:
27468         Change interface to allow efficient (and correct) implementation
27469         The previous changes to allow extra space in unbounded strings had
27470         left this interface a bit broken.
27471
27472         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27473
27474         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27475         Minor reformatting (function specs)
27476
27477         * g-spitbo.adb: New interface for Get_String
27478
27479         * g-spitbo.ads: Minor reformatting
27480
27481         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27482
27483         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27484
27485 2005-03-15  Javier Miranda  <miranda@adacore.com>
27486             Robert Dewar  <dewar@adacore.com>
27487             Thomas Quinot  <quinot@adacore.com>
27488             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27489
27490         * atree.ads, atree.adb: Add support for Elist24 field
27491
27492         * atree.h: Fix wrong definition of Field27
27493         Add support for Elist16 field
27494         Add support for Elist24 field
27495
27496         * einfo.ads, einfo.adb (Abstract_Interfaces,
27497         Set_Abstract_Interfaces): New subprograms.
27498         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27499         subprograms.
27500         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27501         entities rather than a single node.
27502         (Is_Interface, Set_Is_Interface): New subprogram
27503         (First_Tag_Component): New syntesized attribute
27504         (Next_Tag_Component): New synthesized attribute
27505         (Write_Entity_Flags): Upgraded to write Is_Interface
27506         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27507         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27508         (Task_Body_Procedure): New subprogram to read this attribute.
27509         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27510         (Has_Controlled_Component): Now applies to all entities.
27511         This is only a documentation change, since it always worked to apply
27512         this to other than composite types (yielding false), but now this is
27513         official.
27514         Update documentation on Must_Be_Byte_Aligned for new spec
27515
27516         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27517         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27518         uses of the Access_Disp_Table attribute to reference the first dispatch
27519         table associated with a tagged type. As
27520         part of the implementation of abstract interface types,
27521         Access_Disp_Table has been redefined to contain a list of dispatch
27522         tables (rather than a single dispatch table).
27523         Similarly, upgrade all the references to Tag_Component by the
27524         new attribute First_Tag_Component.
27525         (Find_Inherited_TSS): Moved to exp_tss.
27526         Clean up test in Expand_N_Object_Declaration for cases
27527         where we need to do a separate assignment of the initial value.
27528         (Expand_N_Object_Declaration): If the expression in the
27529         declaration of a tagged type is an aggregate, no need to generate an
27530         additional tag assignment.
27531         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27532         is to be deleted.
27533         Bit packed array ops are only called if operands are known to be
27534         aligned.
27535         (Component_Equality): When returning an N_Raise_Program_Error statement,
27536         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27537         expects that only expressions have a bona fide type).
27538         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27539         determine the amount of data to be copied.
27540
27541         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27542         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27543             INTERFACE_TYPE_DEFINITION ::=
27544               [limited | task | protected | synchronized] interface
27545                 [AND interface_list]
27546
27547         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27548         interfaces.
27549         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27550         interfaces.
27551         (P_Interface_Type_Definition): New subprogram that parses the new
27552         syntax rule of Ada 2005 interfaces
27553         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27554         messages by the correct RENAMES (quotes removed).
27555
27556         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27557         attribute First_Tag_Component.
27558
27559         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27560         (Interface_List, Set_Interface_List): New subprograms.
27561         (Interface_Present, Set_Interface_Present): New subprograms.
27562         (Limited_Present, Set_Limited_Present): Available also in derived
27563         type definition nodes.
27564         (Protected_Present, Set_Protected_Present): Available also in
27565         record type definition and
27566         derived type definition nodes.
27567         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27568         (Task_Present, Set_Task_Present): New subprogram.
27569         (Task_Body_Procedure): Removed.
27570         (Set_Task_Body_Procedure): Removed.
27571         These subprogram have been removed because the attribute
27572         Task_Body_Procedure has been moved to the corresponding task type
27573         or task subtype entity to leave a field free to store the list
27574         of interfaces implemented by a task (for AI-345)
27575         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27576         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27577         expression flag Do_Range_Check
27578         (Exception_Junk): Change to Flag7 to accomodate above change
27579         (Box_Present, Default_Name, Specification, Set_Box_Present,
27580         Set_Default_Name, Set_Specification): Expand the expression
27581         "X in N_Formal_Subprogram_Declaration" into the corresponding
27582         two comparisons. Required to use the csinfo tool.
27583
27584         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27585         "with string" given.
27586
27587         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27588         expression given.
27589
27590         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27591         in 2005 mode
27592
27593         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27594         attribute Task_Body_Procedure rather than the old semantic field that
27595         was available in the task_type_declaration node.
27596
27597         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27598         interface type definitions.
27599         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27600         interfaces.
27601
27602         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27603         task type declaration.
27604         (P_Protected): Modified to handle the list of interfaces in a
27605         protected type declaration.
27606
27607 2005-03-15  Doug Rupp  <rupp@adacore.com>
27608             Vincent Celier  <celier@adacore.com>
27609
27610         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27611         (Gen_Output_File_C): Likewise.
27612         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27613
27614 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27615
27616         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27617         is an N_Raise_Constraint_Error node, create a new copy of it without
27618         going through a call to Duplicate_Subexpr.
27619
27620 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27621             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27622             Nicolas Setton  <setton@adacore.com>
27623             Ed Schonberg  <schonberg@adacore.com>
27624
27625         PR ada/19900
27626         PR ada/19408
27627         PR ada/19140
27628         PR ada/20255
27629         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27630         representation clause that prescribes a size not equal to the rounded
27631         size of their types.
27632         (gnat_to_gnu_entity, case E_Component): Always look at
27633         Original_Record_Component if Present and not the entity.
27634         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27635         of tagged extension types by not making field for components that are
27636         inside the parent.
27637         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27638         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27639         expression to the type of the object when the object is constant.
27640         Reverse defer_debug_incomplete_list before traversing it, so that trees
27641         are processed in the order at which they were added to the list. This
27642         order is important when using the stabs debug format.
27643         If we are deferring the output of debug information, also defer this
27644         output for a function return type.
27645         When adding fields to a record, prevent emitting debug information
27646         for incomplete records, emit the information only when the record is
27647         complete.
27648         (components_to_record): New parameter defer_debug.
27649         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27650         (gnat_to_gnu_field_decl): New function.
27651         (substitution_list, annotate_rep): Call it.
27652         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27653         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27654         No longer update discriminants to not be a COMPONENT_REF.
27655         (copy_alias_set): Strip padding from input type; also handle
27656         unconstrained arrays properly.
27657
27658         * gigi.h (write_record_type_debug_info): New function.
27659         Convert to use ANSI-style prototypes. Remove unused
27660         declarations for emit_stack_check, elab_all_gnat and
27661         set_second_error_entity.
27662         (gnat_to_gnu_field_decl): New decl.
27663
27664         * utils.c (write_record_type_debug_info): New function.
27665         (finish_record_type): Delegate generation of debug information to
27666         write_record_type_debug_info.
27667         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27668         (update_pointer_to): Fix pasto.
27669         (convert) <UNION_TYPE>: Accept slight type variations when
27670         converting to an unchecked union type.
27671
27672         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27673         replace the N_Freeze_Entity with a null statement.
27674
27675         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27676         within a constrained subcomponent of an enclosing record, place the
27677         freeze nodes in the scope stack entry for the enclosing record.
27678         (Undelay_Type): New Subprogram.
27679         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27680         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27681         within records; allow them to have freeze nodes if their base types
27682         aren't frozen yet.
27683
27684         * exp_util.adb (Remove_Side_Effects): Properly test for
27685         Expansion_Delayed and handle case when it's inside an
27686         N_Qualified_Expression.
27687
27688         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27689         Comes_From_Generic, to recognize accurately that the parent type in a
27690         derived type declaration can be traced back to a formal type, because
27691         it is one or is derived from one, or because its completion is derived
27692         from one.
27693         (Constrain_Component_Type): If component comes from source and has no
27694         explicit constraint, no need to constrain in in a subtype of the
27695         enclosing record.
27696         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27697         Minor change to propagate Is_Ada_2005 flag
27698
27699         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27700         Expansion_Delayed is False.
27701         (assoc_to_constructor): Ignore fields that have a
27702         Corresponding_Discriminant.
27703         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27704         function returns "by target", dereference the target pointer using the
27705         type of the actual return value.
27706         <all>: Be prepared for a null gnu_result.
27707         (processed_inline_subprograms): Check flag_really_no_inline
27708         instead of flag_no_inline.
27709         (set_second_error_entity): Remove unused function.
27710         (gnat_to_gnu, case N_Selected_Component): Call
27711         gnat_to_gnu_field_decl.
27712         (assoc_to_constructor): Likewise.
27713
27714 2005-03-15  Robert Dewar  <dewar@adacore.com>
27715             Ed Schonberg  <schonberg@adacore.com>
27716             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27717
27718         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27719         Must_Be_Byte_Aligned for cases where we do not need to use a
27720         System.Pack_nn unit.
27721
27722         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27723         as procedures.
27724         Needed now that we do some processing for IN parameters as well. This
27725         may well fix some unrelated errors.
27726         (Expand_Call): Handle case of unaligned objects (in particular those
27727         that come from packed arrays).
27728         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27729         renamed entity is an inherited operation, re-expand the call using the
27730         original operation, which is the one to call.
27731         Detect attempt to inline parameterless recursive subprogram.
27732         (Represented_As_Scalar): Fix to work properly with private types
27733         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27734         accurate estimate. Yields True in far fewer cases than before,
27735         improving the quality of code that depends on this test.
27736
27737         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27738         over both visible and private declarations to remove them from tree,
27739         and mark subprograms declared in package as eliminated, to prevent
27740         spurious use in subsequent compilation of generic units in the context.
27741
27742         * exp_util.ads: Minor cleanup in variable names
27743
27744         * sem_eval.ads, sem_eval.adb: Minor reformatting
27745         (Compile_Time_Known_Bounds): New function
27746
27747 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27748
27749         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27750         determining whether an unchecked conversion is needed for the argument
27751         of an initialization call.
27752
27753 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27754
27755         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27756         that appears in the instantiation rather than the internal subtype
27757         generated in the wrapper package, to avoid anomalies in gigi when the
27758         target is derived from a private type whose full view is an access type.
27759
27760 2005-03-15  Robert Dewar  <dewar@adacore.com>
27761
27762         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27763         not needed.
27764         Add documentation to replace the use of this flag
27765         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27766         the x86_64.
27767
27768 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27769
27770         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27771         here from exp_attr so it can be shared between exp_attr and exp_dist.
27772         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27773         all TSS names, not a subset thereof, and the previous name introduced
27774         an unnecessarily confusion that a distinction might exist between
27775         "OK" TSS names and some "not OK" TSS names.
27776
27777 2005-03-15  Doug Rupp  <rupp@adacore.com>
27778
27779         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27780         Command_Name.
27781
27782 2005-03-15  Pascal Obry  <obry@adacore.com>
27783             Eric Botcazou  <ebotcazou@adacore.com>
27784
27785         PR ada/20226
27786         PR ada/20344
27787         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27788         when IN_RTS. This is to work around a bootstrap path problem.
27789
27790         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27791         table and pass it to __gnat_install_SEH_handler().
27792         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27793
27794         * lang.opt: Fix specification of -fRTS=.
27795
27796 2005-03-15  Doug Rupp  <rupp@adacore.com>
27797             Bernard Banner  <banner@adacore.com>
27798             Vincent Celier  <celier@adacore.com>
27799             Arnaud Charlet  <charlet@adacore.com>
27800
27801         PR ada/6852
27802         This change works fine when gnatlib is built from the gcc directory,
27803         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27804         is not passed to ada/Makefile.in, so more work is needed by a
27805         Makefile/configure expert.
27806
27807         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27808         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27809         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27810         for Linux x86.
27811         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27812         Run ranlib on libgccprefix.a
27813         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27814         (ADA_INCLUDE_SRCS): Split Ada packages.
27815
27816 2005-03-15  Robert Dewar  <dewar@adacore.com>
27817
27818         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27819
27820         * impunit.adb: Add GNAT.UTF_32
27821
27822         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27823
27824         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27825         now uses GNAT.UTF_32).
27826
27827         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27828         capabilities for categorizing characters using Unicode categories
27829
27830 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27831
27832         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27833         instantiation that has been rewritten as a package body, retrieve spec
27834         to generate proper name for implicit_with_clause.
27835         (Install_Parents): Recognize a parent that is an instantiation but has
27836         been rewritten as a package declaration during analysis.
27837
27838 2005-03-15  Javier Miranda  <miranda@adacore.com>
27839             Ed Schonberg  <schonberg@adacore.com>
27840
27841         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27842         parameter reported some error we immediately return. This improves the
27843         behaviour of the frontend in case of errors.
27844         (Install_Parent, Remove_Parent): Introduce new flag
27845         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27846         ancestor of a generic child unit, when the child is being instantiated.
27847         (Inline_Instance_Body): If we are compiling the private
27848         part or the body of a child unit, restore the proper visibility of the
27849         parents after compiling the instance body.
27850
27851 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27852             Javier Miranda  <miranda@adacore.com>
27853
27854         PR ada/15608
27855         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27856         of a private type, in which case it is underlying_type that denotes
27857         the proper task. Also modified to use the new entity attribute
27858         that is directly available in the task type and task subtype entities
27859         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27860         arrays when other dimensions than the first are constrained by
27861         discriminants of an enclosing record.
27862         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27863         a combination of indexed and selected components, find ultimate entity
27864         and generate the appropriate reference for it, to suppress spurious
27865         warnings.
27866         (Note_Possible_Modification): If an entity name has no entity, return.
27867         (Is_Variable): A function call never denotes a variable.
27868         (Requires_Transient_Scope): For record types, recurse only on
27869         components, not on internal subtypes that may have been generated for
27870         constrained components.
27871
27872 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27873
27874         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27875         Eliminated as candidates for resolution. Both efficient, and avoids
27876         anomalies with operators declared in deleted code.
27877         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27878         expansion is disabled (as when compiling a generic) to prevent spurious
27879         warnings on prefixes of selected components.
27880
27881 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27882
27883         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27884         attached to a list before checking whether it appears in the private
27885         declarations of the current package.
27886         (Make_Inequality_Operator): Insert declaration in proper declarative
27887         list rather than just setting the Parent field, so that
27888         Is_Private_Declaration can handle it properly.
27889
27890 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27891
27892         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27893         a renaming a body, check that the renamed subprogram in not intrinsic.
27894         (Find_Direct_Name): If several use_visible entities hide
27895         each other, and the context is a predefined file compiled through
27896         rtsfind, keep only the entity that comes from a predefined file.
27897
27898 2005-03-15  Geert Bosch  <bosch@adacore.com>
27899
27900         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27901         long float padding to also cover AMD64 and IA64.
27902
27903 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27904
27905         * s-imgwch.adb: Add with and use of Interfaces.
27906         (Img_Wide_Character): Change type of Val to Unsigned_16.
27907         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27908
27909 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27910
27911         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27912
27913 2005-03-15  Robert Dewar  <dewar@adacore.com>
27914
27915         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27916
27917         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27918
27919         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27920
27921 2005-03-15  Robert Dewar  <dewar@adacore.com>
27922
27923         * s-bitops.adb, s-bitops.ads,
27924         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27925         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27926         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27927         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27928         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27929         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27930         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27931         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27932         reformatting.
27933
27934 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27935
27936         * utils2.c (build_binary_op): Fix typo.
27937
27938 2005-03-15  Doug Rupp  <rupp@adacore.com>
27939
27940         * s-crtl.ads (popen,pclose): New imports.
27941
27942 2005-03-15  Cyrille Comar  <comar@adacore.com>
27943
27944         * comperr.adb (Compiler_Abort): remove references to obsolete
27945         procedures in the bug boxes for various GNAT builds.
27946
27947 2005-03-15  Vincent Celier  <celier@adacore.com>
27948
27949         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27950
27951 2005-03-15  Geert Bosch  <bosch@adacore.com>
27952             Arnaud Charlet  <charlet@adacore.com>
27953             Robert Dewar  <dewar@adacore.com>
27954             Cyrille Comar  <comar@adacore.com>
27955             Sergey Rybin  <rybin@adacore.com>
27956
27957         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27958         too specific and long-winded to be appropriate for the GNAT User's
27959         Guide.
27960         Warn about use of GCC switches not documented in the GNAT User's Guide,
27961         as these may cause generated code to not conform to Ada semantics.
27962         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27963         Add documentation for -gnat95 and -gnat05 switches
27964         Remove paragraph documenting obsolete way to refer to third party
27965         libraries.
27966         Add a few references to Ada_05 that were missing.
27967         Update documentation on -gnatZ/-gnatL.
27968         Document limitation when using -m64 under Solaris.
27969         Change the "Name Casing" subsection of the pretty-printer section
27970         according to the changes in the dictionary processing.
27971
27972         * gnat_rm.texi: Document the Ada_05 pragma.
27973         Section on record representation clauses describes the new more
27974         relaxed rules about placement of large packed bit array components.
27975         Add documentation of GNAT.UTF_32
27976
27977 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27978
27979         * misc.c (gnat_post_options): Turn off structural
27980         aliasing for now.
27981
27982 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27983
27984         * system-linux-sparc.ads: Fix typo in previous commit.
27985
27986 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27987             Laurent Guerby  <laurent@guerby.net>
27988
27989         PR ada/20035
27990         * system-linux-sparc.ads: New.
27991         * Makefile.in: Add sparc linux entry.
27992
27993 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27994
27995         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27996         parameters as unused.
27997
27998 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27999         Partial merge from libada-gnattools-branch:
28000
28001         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
28002         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28003         into code in gnattools/Makefile.in.  Remove direct dependencies on
28004         stamp-tools by tools clauses.
28005         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
28006         * config-lang.in: Add gnattools to $lang_dirs.
28007
28008 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
28009
28010         PR ada/19942
28011         * utils.c (gnat_type_for_mode): Return null instead of ICE because
28012         we asked for an unknown mode.
28013
28014 2005-02-12  Richard Henderson  <rth@redhat.com>
28015
28016         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28017         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28018
28019 2005-02-10  Andreas Jaeger  <aj@suse.de>
28020
28021         * init.c (__gnat_initialize): Mark parameter as unused.
28022
28023 2005-02-09  Doug Rupp  <rupp@adacore.com>
28024
28025         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28026         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28027
28028 2005-02-09  Doug Rupp  <rupp@adacore.com>
28029
28030         * gnatchop.adb (dup, dup2),
28031         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28032
28033         * gnatlbr.adb (mkdir),
28034         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
28035
28036         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28037
28038 2005-02-09  Doug Rupp  <rupp@adacore.com>
28039
28040         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28041
28042 2005-02-09  Robert Dewar  <dewar@adacore.com>
28043             Thomas Quinot  <quinot@adacore.com>
28044             Javier Miranda  <miranda@adacore.com>
28045             Pascal Obry  <obry@adacore.com>
28046             Ed Schonberg  <schonberg@adacore.com>
28047             Doug Rupp  <rupp@adacore.com>
28048             Gary Dismukes  <dismukes@adacore.com>
28049             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28050
28051         * g-zstspl.ads: New file.
28052
28053         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28054
28055         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28056         Ada 95 mode
28057         Add definition of Wide_Wide_Space for AI-285
28058
28059         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28060         interface (to support Ada 95 and Ada 2005 units).
28061         Add Unbounded_IO files
28062         Add entries for Wide_Wide packages for AI-285
28063         Add list of containers packages to Ada 2005 unit list
28064
28065         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28066         support new Unbounded_IO package cleanly.
28067
28068         * g-utf_32.ads, g-utf_32.adb: New files.
28069
28070         * Makefile.rtl: Add entry for g-utf_32
28071         Add new files for Unbounded_IO
28072         Adjust make file for new AI-285 wide wide packages
28073         Add AI-302 containers to the run time.
28074
28075         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28076         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28077         subprograms for AI-301.
28078
28079         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28080
28081         * a-stunau.ads: Minor comment correction
28082
28083         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28084         etc.
28085         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28086         (Check_RPC): Update to match changes in expanded code.
28087         Clean up unused entity.
28088
28089         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28090         was not taken into account.
28091         This includes proper initialization with Normalize_Scalars.
28092         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28093         normalize scalars cases (particularly the latter) to do a better job
28094         of finding invalid representations.
28095
28096         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28097
28098         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28099         used
28100
28101         * exp_dist.adb: Add support for wide wide character type
28102         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28103         private part, generate stub bodies at the end of the private part,
28104         not the visible part.
28105         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28106         PolyORB support.
28107         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28108         generic wrapper to execute final processing after completing the
28109         expansion of the RPC receiver for an RACW.
28110
28111         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28112         packages and attributes.
28113         (Preset_Names): Addition of the new reserved words of Ada 2005,
28114         that is interface, overriding and synchronized.
28115         (Get_Pragma_Id): Give support to the use of the new reserved word
28116         "interface" as a pragma name.
28117         (Is_Pragma_Name): Give support to the use of the new reserved word
28118         "interface" as a pragma name.
28119         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28120         attribute implementation.
28121
28122         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28123         checks to entities that are output parameters of Asm operations.
28124         Handle the Stream_Size attribute.
28125         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28126
28127         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28128
28129         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28130         for second parameter being 0.0.
28131         Add support for wide wide character type.
28132         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28133
28134         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28135         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28136         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28137         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28138         for wide wide character cases.
28139
28140         * cstand.adb: Create entities for Wide_Wide_Character and
28141         Wide_Wide_String.
28142
28143         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28144         accordance with AI-258.
28145         Add new declarations for 16/32 bit C character types (Part of AI285)
28146
28147         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28148         (Obsolescent_Warning): New field
28149         (Rep_Clause): New local subprogram used to share code. Returns the rep
28150         clause for which the name is given in parameter.
28151         (Has_Stream_Size_Clause): New routine.
28152         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28153         (Address_Clause): Implementation is now using Rep_Clause.
28154         (Alignment_Clause): Idem.
28155         (Size_Clause): Idem.
28156
28157         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28158         entity in non-Ada 2005 mode and generate warning.
28159
28160         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28161         (Prag): Code cleanup. Remove old gnat pragma "overriding"
28162
28163         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28164         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28165         on the named unit if the pragma is not in the current compilation unit,
28166         so that elaboration calls in the current unit can set up an elaboration
28167         dependency on the named unit, as needed.
28168         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28169         subprogram as well as for subprograms declared within a package.
28170         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28171         pragma overriding.
28172
28173         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28174         to z) to avoid some instances of duplication for Wide_Wide packages.
28175
28176         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28177         characters.
28178
28179         * scn.adb: Char_Literal_Value field is now a Uint
28180
28181         * scng.adb: Significant rewrite to handle new Ada 2005 features
28182         allowing wide and wide wide characters in program text, e.g. for
28183         identifiers, as described in AI-285.
28184         (Set_Reserved): New procedure, makes setting up keywords cleaner.
28185         (Initialize_Scanner): Register the new reserved words of Ada 2005.
28186         (Scan): Give support to the new reserved words.
28187
28188         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28189         warning notifying that interface, overriding, and synchronized are
28190         new reserved words.
28191         (P_Pragma): Allow the use of the new reserved word "interface" as
28192         a pragma name.
28193
28194         * gnatls.adb, gnatbind.adb,
28195         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28196         identifiers named "interface" to "SAL_Interface".
28197
28198         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28199         (Structured Exception handling).
28200         (Gen_Main_C): Idem.
28201
28202         * bindgen.adb:
28203         (Gen_Main_Ada): Set the default exit code if specified.
28204         (Gen_Main_C): Likewise.
28205         Part of *DC20-006.
28206         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28207         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28208
28209         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28210         new -Xnnn switch.
28211
28212         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28213         has a collision with the new Ada 2005 "interface" reserved word.
28214
28215         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28216         generate a warning notifying that interface, overriding, and
28217         synchronized are new reserved words.
28218
28219         * scans.ads (Token_Type): Addition of the tokens corresponding to the
28220         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28221         and Tok_Synchronized.
28222
28223         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28224         "dispatching" rather than "primitive" operations, since dispatching
28225         calls are now allowed to abstract formal subprograms (which are not
28226         primitive).
28227         Char_Literal_Value field is now a Uint
28228         (Resolve_Slice): If the prefix is an access to an unconstrained array,
28229         compute the actual subtype of the designated object to impose the proper
28230         index constraints.
28231         (Resolve_Selected_Component): Do not insert an access check if the
28232         prefix is an access type: such a node is expanded into an explicit
28233         dereference, on which the access check is performed anyway. Removes
28234         expensive duplicate checks.
28235         (Resolve_Call): Use new flag Is_Obsolescent and field
28236         Obsolescent_Warning so that pragma Obsolescent works on library
28237         subprograms.
28238         Add support for wide wide character type
28239         (Resolve_Allocator): Replace the error message on wrong null-exclusion
28240         value by a warning message.
28241         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28242         as fixed-point, and one of the operands is non-static and universal, it
28243         can only be an illegal exponentiation operation, in which case there is
28244         no real value to retrieve.
28245
28246         * exp_strm.adb: Add support for wide wide character type
28247         (Build_Elementary_Input_Call): Compute the size of the stream element by
28248         querying the rep chain to find the Stream_Attribute attribute value.
28249         (Build_Elementary_Write_Call): Ditto.
28250
28251         * sem_aggr.adb: Char_Literal_Value field is now a Uint
28252         Add support for wide wide character type
28253         Replace the error messages on wrong null-exclusion value by warnings
28254         as described in Ada 2005.
28255         (Resolve_Extension_Aggregate): Document the fact that the error
28256         message on class-wide expressions in extensions aggregates.
28257
28258         * sem_case.adb: Add support for wide wide character type
28259
28260         * sem_ch13.adb: Add support for wide wide character type
28261         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28262
28263         * sem_ch3.adb: Add support for wide wide character type
28264         (Process_Subtype): If constraint is illegal for the type, set Ekind of
28265         now-useless Itype, to prevent cascaded errors on a compiler built
28266         without -gnatp.
28267
28268         * sem_ch8.adb: Add with and use of Sem_Disp.
28269         (Analyze_Subprogram_Renaming): Replace unclean uses of
28270         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28271         of Corresponding_Spec to Empty).
28272         (Attribute_Renaming): Replace use of Corresponding_Spec with
28273         Corresponding_ Formal_Spec and simplify condition.
28274         (Use_One_Package): Check that scope of homonym of identifier is defined,
28275         before checking whether it is a wrapper package.
28276         Add support for wide wide character type
28277
28278         * sem_eval.adb: Add support for wide wide character type.
28279         (Eval_Arithmetic_Op): Check for compile time known signed integer
28280         overflow in the non-static case.
28281         (Subtypes_Statically_Match): A formal scalar type and its base type do
28282         not statically match.
28283
28284         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28285         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28286         subtype).
28287         (Unit_Declaration_Node): Ditto.
28288         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
28289         has a packed array type, the prefix has been rewritten into a type
28290         conversion. Determine variable-ness from the converted expression.
28291         Handle wide wide character cases.
28292
28293         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28294
28295         * stringt.ads, stringt.adb: Handle full UTF-32 range.
28296         Remove ["0A"] from comment, since it can look like a line terminator.
28297         Currently we don't permit this, but this is under discussion by the
28298         ARG, and it is easy enough to use a different example.
28299
28300         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28301         handling UTF-32 encoding for wide wide character.
28302         Implement new brackets coding ["hhhhhhhh"]
28303         Add UTF-8 encodings for full UTF-32 range
28304
28305         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28306
28307         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28308         bit range Add full UTF-32 support.
28309         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28310         notify that constraint error will be raised at run-time
28311         because a null value is assigned to a null-excluding object.
28312         Remove some obsolete declarations and make Char_Code
28313         unsigned.
28314
28315         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28316         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28317         Rcheck subprograms.
28318
28319         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28320         wrong null-exclusion value by a warning message.
28321         (Enable_Range_Check): Do range check if the prefix is an
28322         explicit dereference whose designated object is an unconstrained array.
28323         Current algorithm for removing duplicate checks is over-eager in this
28324         case.
28325
28326         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28327         null-exclusion value by a warning message
28328
28329         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28330         completely. Add support for Uint2 field
28331
28332         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28333         exp_prag.adb: Char_Literal_Value field is now a Uint.
28334
28335         * exp_util.adb (Insert_Actions): Replace
28336         N_Formal_Subprogram_Declaration by
28337         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28338         Char_Literal_Value field is now a Uint.
28339
28340         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28341         defined for subprogram renaming declarations. When set, the field
28342         indicates the defining entity of a corresponding formal subprogram
28343         when the renaming corresponds to a formal subprogram association in an
28344         instantiation.
28345         (Set_Corresponding_Formal_Spec): New procedure to return
28346         Corresponding_Formal_Spec field.
28347         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28348         (which is now a subtype).
28349         Char_Literal_Value field is now a Uint
28350
28351         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28352         pointer to the base of the dispatch table.
28353         Minor changes to comments.
28354         (Controlling_Type): New function for determining the tagged type
28355         associated with a tagged primitive subprogram.
28356         (Expand_Dispatching_Call): Add support for a controlling actual that is
28357         directly a value of type Ada.Tag rather than a tagged object.
28358
28359         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28360         describing the new layout.
28361         (Dispatch_Table): The expander computes the actual array size, allocates
28362         the Dispatch_Table record accordingly, and generates code that displaces
28363         the base of the record after the Typeinfo_Ptr component. The access to
28364         these components is done by means of local functions.
28365         (Offset_To_Top): New function.
28366         (Typeinfo_Ptr): New function.
28367         (Get_TSD): Modified to access the new position of the TSD.
28368         (Set_TSD): Modified to save the TSD in its new position.
28369
28370         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28371         case of formal abstract subprograms. Add check and message for -gnat05.
28372         Update comments.
28373
28374         * sem_ch12.adb: Add with and use for Sem_Disp.
28375         (Analyze_Associations): Minor change from "=" to "in" for use of
28376         N_Formal_Subtype_Declaration (which is now a subtype).
28377         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28378         N_Formal_Subtype_Declaration (which is now a subtype).
28379         (Analyze_Formal_Subprogram): Add handling for
28380         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28381         dispatching, setting the controlling status of the formal parameters
28382         and result, and issuing an error if there is no controlling type for
28383         the formal subprogram.
28384         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28385         which is an unclean use of that field, we set the new field
28386         Corresponding_Formal_Spec to make the formal subprogram available to
28387         processing in Analyze_Subprogram_Declaration.
28388         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28389         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28390         Constrained, so that it is is does not statically match its anonymous
28391         base type.
28392
28393         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28394         abstract formal subprograms in error check for functions returning
28395         abstract types. Set scope of new designator for
28396         a parameterless subprogram, so that it is available when checking the
28397         body for nested subprograms, before full analysis of said body.
28398         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28399         subprogram only if inner one comes from source.
28400         (Analyze_Function_Call): If the call is given in object notation, the
28401         analysis of the name rewrites the node and analyzes it with the proper
28402         argument list. After analyzing the name, if the call has been rewritten
28403         and the result type is set, no further analysis is needed.
28404         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28405         mark in function specification, in a context where the formals are
28406         visible and hide outer homographs.
28407
28408         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28409         as the tagged type for the cases of abstract formal subprograms and
28410         renamings of those.  Clean up spec comments.
28411         (Check_Dispatching_Context): Add error message to indicate "abstract
28412         procedure", covering the case of a call to a formal abstract procedure
28413         that has statically tagged operands.
28414         (Check_Dispatching_Call): Check for the case of an actual given by
28415         a tag-indeterminate function call whose type is an ancestor of the
28416         containing call's associated tagged type. This situation can occur
28417         for inherited primitives with function defaults. In this case we
28418         use the tagged type's tag directly as the controlling argument for
28419         the calls.
28420         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28421
28422         * sprint.adb (Sprint_Node_Actual): Split
28423         N_Formal_Subprogram_Declaration into two alternatives for the new
28424         cases N_Formal_Abstract_Subprogram_Declaration and
28425         N_Formal_Concrete_Subprogram_Declaration.
28426         Char_Literal_Value field is now a Uint.
28427
28428         * trans.c: Get rid of junk Uint2 reference.
28429         Char_Literal_Value field is now a Uint.
28430         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28431         (gigi): Correct third arg to gimplify_body.
28432
28433         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28434         (TYPE_LANG_FLAG_0): Check for record or union.
28435
28436         * treepr.adb: Char_Literal_Value field is now a Uint
28437
28438         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28439         UI_From_CC.
28440
28441         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28442         Add full UTF-32 support
28443         Char_Code is now 32 bits
28444
28445         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28446         wide character UTF_32 line terminators.
28447         Initialize Main_Source_File to avoid error when no main
28448         source is loaded.
28449
28450         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28451         (Main_Source_File) when no main source has been loaded, to avoid
28452         potential crash.
28453
28454 2005-02-09  Robert Dewar  <dewar@adacore.com>
28455
28456         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28457         Fix name of Set routine
28458
28459         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28460         fixed packages.
28461
28462         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28463         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28464         fixed packages
28465
28466         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28467         forms of Get_Line subprograms for AI-301.
28468
28469         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28470         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28471         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28472         a-stwima.ads: Minor reformatting.
28473
28474 2005-02-09  Doug Rupp  <rupp@adacore.com>
28475             Thomas Quinot  <quinot@adacore.com>
28476
28477         * adaint.c, adaint.h
28478         [VMS] (to_ptr32): New function.
28479         (MAYBE_TO_PTR32): New macro.
28480         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28481         for pointer size.
28482         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28483         [VMS] (#define fork()): Remove since unneccessary.
28484         (__gnat_set_close_on_exec): New routine to support
28485         GNAT.OS_Lib.Set_Close_On_Exec.
28486
28487         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28488         the parent side as close-on-exec so that they are not inherited by the
28489         child.
28490
28491         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28492         set or clear the FD_CLOEXEC flag on a file descriptor.
28493
28494 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28495             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28496
28497         PR ada/19386
28498         * decl.c:
28499         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28500         on the field if Pragma Component_Alignment (Storage_Unit).
28501         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28502         side-effects as if it were a constant; also make SAVE_EXPR to protect
28503         side-effects.
28504         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28505         UNION_TYPE.
28506         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28507         (components_to_record): Test it.
28508         Fix improper usage of REFERENCE_CLASS_P.
28509
28510         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28511         RECORD_TYPE.
28512
28513         * utils2.c: Minor reformatting.
28514
28515         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28516         handle other cases like RECORD_TYPE.
28517
28518         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28519
28520 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28521
28522         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28523         component of an array of arrays in an assignment context, and the
28524         aggregate has component associations that require sliding on
28525         assignment, force reanalysis of the aggregate to generate a temporary
28526         before the assignment.
28527         (Must_Slide): Make global to the package, for use in Gen_Assign.
28528
28529 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28530
28531         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28532         unchecked union with no inferable discriminants, return a
28533         Raise_Program_Error node, rather than inserting it at the point the
28534         type is frozen.
28535         (Expand_Record_Equality, Component_Equality): Handle properly the case
28536         where some subcomponent is an unchecked union whose generated equality
28537         code raises program error.
28538
28539 2005-02-09  Doug Rupp  <rupp@adacore.com>
28540
28541         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28542         [VMS] (#define exit hack): Remove.
28543
28544 2005-02-09  Pascal Obry  <obry@adacore.com>
28545             Arnaud Charlet  <charlet@adacore.com>
28546
28547         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28548         address of the exception registration. The Win32 version of this
28549         routine calls __gnat_install_SEH_handler() to initialize the SEH
28550         (Structured Exception Handling) handler.
28551         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28552         SEH (Structured Exception Handling) now.
28553         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28554         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28555         preprocessor condition protecting the call to the extra eh setup
28556         subprogram, which is only available for the ppc target.
28557         (__gnat_clear_exception_count): replaced reference to
28558         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28559
28560         * seh_init.c: New file.
28561
28562         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28563         (GNATBIND_OBJS): Idem.
28564
28565         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28566         routine takes a new parameter (a pointer to the exception registration
28567         for the SEH (Structured Exception Handling) support.
28568
28569         * raise.h: (__gnat_install_SEH_handler): New prototype.
28570         Update copyright notice.
28571
28572         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28573         record and initialize it by calling __gnat_install_SEH_handler.
28574
28575 2005-02-09  Vincent Celier  <celier@adacore.com>
28576
28577         * make.adb (Gnatmake): Do not fail when the main project has no object
28578         directory.
28579
28580 2005-02-09  Doug Rupp  <rupp@adacore.com>
28581
28582         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28583         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28584         [VMS]: Add translations for g-enblsp.adb.
28585
28586         * s-asthan-vms.adb: Removed.
28587         * s-asthan-vms-alpha.adb: Added.
28588
28589 2005-02-09  Pascal Obry  <obry@adacore.com>
28590
28591         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28592         (LIBGNAT_OBJS): Add seh_init.o.
28593
28594 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28595
28596         PR ada/16592
28597         * Makefile.in: Link all gnat tools with -static-libgcc, since
28598         -shared-libgcc is now used by default on some systems (e.g. linux with
28599         recent binutils).
28600         Remove references to Makefile.prolog/generic, no longer used.
28601
28602 2005-02-09  Vincent Celier  <celier@adacore.com>
28603
28604         * prj-makr.adb (Process_Directory): Put file name in canonical case
28605         before matching against the patterns.
28606         If gnatname has been invoked as <prefix>-gnatname
28607         then invoke the compiler as <prefix>-gcc, not just "gcc".
28608
28609 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28610
28611         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28612         with expansion disabled. The actual subtype is needed among other
28613         places when the selected component appears in the context of a loop
28614         bound, and denotes a packed array.
28615         (Operator_Check): Always use the first subtype in the
28616         error message, to avoid the appearance of internal base types.
28617         (Transform_Object_Operation): Copy each actual in full
28618         to the parameter associations of the constructed call, rather than
28619         using the shallow copy mechanism of New_Copy_List. This ensures that
28620         the chaining of named associations is done properly.
28621         (Complete_Object_Operation): Rewrite node, rather than
28622         replacing it, so that we can trace back to the original selected
28623         component.
28624
28625         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28626         and calls that use object notation, if the called function is not
28627         declared  in a withed unit, place the elaboration constraint on the
28628         unit in the context that makes the function accessible.
28629         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28630         imposes an elaboration constraint between two packages.
28631
28632 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28633
28634         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28635         views of a private type after handling its private dependents, to
28636         maintain proper stack discipline between entry and exit from the
28637         package.
28638
28639 2005-02-09  Cyrille Comar  <comar@adacore.com>
28640
28641         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28642         Minor reformatting.
28643
28644 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28645
28646         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28647         fields for foreign threads.
28648
28649 2005-02-09  Doug Rupp  <rupp@adacore.com>
28650
28651         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28652         recursion warnings when compiled with -gnatdm.
28653
28654 2005-02-09  Robert Dewar  <dewar@adacore.com>
28655
28656         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28657         Slight fix to documentation of -gnaty with no parameters
28658
28659         * xr_tabls.ads: Add ??? comment for missing overall comment
28660
28661         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28662         we now use by default.
28663
28664         * xsnames.adb: Adjust end of file test to look for five space followed
28665         by '#' instead of six spaces. The format of xsnames.adb was modified
28666         in the last update.
28667
28668         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28669         identifier.
28670
28671         * clean.adb: Minor reformatting.
28672
28673         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28674         gnatname.adb: Minor reformatting
28675         Add 2005 to copyright output when utility is run
28676
28677         * csets.adb: Eliminate obsolete comment
28678
28679         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28680         Update comments.
28681
28682         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28683
28684 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28685
28686         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28687         the difference between compact and incompact layout and add the record
28688         representation clause to the example illustrating different layouts.
28689         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28690         component clauses").
28691
28692 2005-02-09  Florian Villoing  <villoing@adacore.com>
28693
28694         * gnat_ugn.texi: Fix typos.
28695         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28696         @file.
28697         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28698         in the generated documentation.
28699
28700 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28701
28702         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28703         longer supported.
28704         Update linker wrapper when linking with non GNU C++.
28705
28706 2005-02-09  Pascal Obry  <obry@adacore.com>
28707
28708         * gnat_ugn.texi:
28709         Document the procedure to debug the DllMain routine on Windows.
28710         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28711         ZCX mode.
28712         Document new BIND qualifer /RETURN_CODES=VMS.
28713
28714 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28715
28716         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28717         Edited gnatmetric chapter
28718
28719 2005-02-09  Robert Dewar  <dewar@adacore.com>
28720
28721         * gnat_rm.texi:
28722         Changes to document new wide wide character support
28723         For AI-285
28724         Update documentation on Normalize_Scalars and Initialize_Scalars
28725
28726 2005-02-09  Pascal Obry  <obry@adacore.com>
28727
28728         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28729
28730 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28731
28732         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28733         from the VxWorks kernel) that is needed for getting the active
28734         priority of the different tasks.
28735
28736         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28737         Use a pragma Elaborate_Body in the spec file instead.
28738         Noticed by code reading.
28739
28740 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28741
28742         * exp_util.ads: Minor correction in comment.
28743
28744 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28745
28746         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28747         since this procedure is now too complex to be worth inlining.
28748
28749 2005-02-09  Richard Henderson  <rth@redhat.com>
28750
28751         * utils.c (gnat_define_builtin): Remove.
28752         (gnat_install_builtins): Use build_common_builtin_nodes.
28753
28754 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28755
28756         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28757         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28758         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28759         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28760         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28761         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28762         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28763         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28764         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28765         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28766         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28767         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28768         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28769         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28770         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28771         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28772         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28773         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28774         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28775         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28776         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28777         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28778         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28779         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28780         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28781         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28782         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28783         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28784         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28785         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28786         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28787         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28788         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28789         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28790         library.
28791
28792 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28793
28794         * Makefile.in: Fix a-intnam.ads from previous commit,
28795         add 2005 to copyright.
28796         * a-intman-rtems.ads: Renamed to...
28797         * a-intnam-rtems.ads:
28798
28799 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28800
28801         * Makefile.in: Rename GNAT RTEMS specific files.
28802         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28803         5rosinte.ads, 5rparame.adb: Replaced by files below.
28804         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28805         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28806
28807 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28808             Laurent Guerby  <laurent@guerby.net>
28809
28810         PR ada/19488
28811         * 5rosinte.ads: Add No_Key constant.
28812         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28813         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28814
28815 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28816
28817         PR ada/19414
28818         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28819
28820 2005-01-20  Richard Henderson  <rth@redhat.com>
28821
28822         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28823         a-intnam-linux.ads and system-linux-alpha.ads.
28824         * a-intnam-linux-alpha.ads: Remove file.
28825         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28826         * system-linux-alpha.ads: New file.
28827
28828 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28829
28830         PR ada/13470
28831         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28832         set to the new string.
28833
28834 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28835
28836         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28837         to True.
28838
28839 2005-01-18  Richard Henderson  <rth@redhat.com>
28840
28841         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28842         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28843         for alpha-linux.
28844         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28845
28846 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28847
28848         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28849         (GCC_ZCX_Support): Likewise.
28850
28851 2005-01-11  Bastian Blank  <waldi@debian.org>
28852
28853         * system-linux-s390.ads: Define Preallocated_Stacks.
28854         * system-linux-s390x.ads: Likewise.
28855
28856 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28857
28858         * gnat_ugn.texi: Fix texi errors with null variables.
28859
28860 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28861
28862         * gen-soccon.c: New utility program to generate g-soccon.ads
28863         automatically.
28864
28865         * socket.c, gsocket.h: Split inclusion of system header files into a
28866         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28867
28868         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28869         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28870         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28871         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28872         should not be edited by hand anymore, but should be regenerated using
28873         gen-soccon.
28874
28875 2005-01-03  Robert Dewar  <dewar@adacore.com>
28876             Ed Schonberg  <schonberg@adacore.com>
28877             Vincent Celier  <celier@adacore.com>
28878
28879         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28880         on/off, since this is an obsolescent feature, for which we now generate
28881         a warning.
28882
28883         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28884         warning mode is set and obsolescent usage of this attribute occurs.
28885         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28886         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28887         predates, and partly motivates, the adoption of the AI.
28888         Implement new Ada 2005 attribute Mod
28889
28890         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28891         attribute Mod.
28892
28893         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28894
28895         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28896         pragma restrictions.
28897         New entry for Ada 2005 attribute Mod.
28898
28899         * par-prag.adb:
28900         Add recognition of new pragma Restrictions No_Dependence
28901         Recognize restriction No_Obsolescent_Features at parse time
28902
28903         * bcheck.adb: Add circuitry for checking for consistency of
28904         No_Dependence restrictions.
28905
28906         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28907         restrictions.
28908
28909         * restrict.ads, restrict.adb: Add subprograms to deal with
28910         No_Dependence restrictions.
28911
28912         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28913         restrictions.
28914
28915         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28916         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28917
28918         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28919         dummy parameter to scng instantiation.
28920         Needed for new restriction No_Obsolescent_Features
28921
28922         * scn.adb: (Obsolescent_Check): New procedure
28923         Needed for new restriction No_Obsolescent_Features
28924
28925         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28926         specified by AI-285, needed for implementation of AI-388 (adding greek
28927         pi to Ada.Numerics).
28928         Add new generic formal to scng, needed for new restriction
28929         No_Obsolescent_Features.
28930
28931         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28932
28933         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28934         restrictions lines.
28935         (Scan_ALI): When finding an unexpected character on an R line, raise
28936         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28937         Ignore_Errors is True, default restrictions are set and scanning of the
28938         ALI file continues with the next line. Also, when Bad_R_Line is raised
28939         and Ignore_Errors is True, skip to the end of le line.
28940
28941         * sem_ch10.adb: Check that explicit with's do not violate
28942         No_Dependence restrictions.
28943         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28944         illegal context clauses containing child units of instance.
28945
28946         * sem_prag.adb: Processing and checking for new No_Dependence
28947         restrictions.
28948         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28949         analyze and check the External argument.
28950
28951         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28952
28953 2005-01-03  Robert Dewar  <dewar@adacore.com>
28954
28955         * atree.adb: Add a fifth component to entities
28956         This allows us to add 32 flags and four new fields
28957
28958         * atree.ads: Add a fifth component to entities
28959         This allows us to add 32 flags and four new fields
28960
28961         * einfo.ads, einfo.adb: Document new fields and new flags now available
28962         Add routines for printing new fields
28963
28964         * treepr.adb: Call routines to print out additional fields if present
28965
28966 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28967
28968         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28969         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28970
28971         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28972         Remove gpr2make, replaced by gprmake.
28973         Remove references to gnatmem and libaddr2line.
28974         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28975         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28976         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28977         a-numaux-darwin.ads and a-numaux-darwin.adb
28978         Enable mlib-tgt-lynxos.adb on lynxos.
28979
28980         * Make-lang.in: Remove rules for gpr2make.
28981         When generating sdefault.adb, do not call Relocate_Path
28982         on S3 for function Target_Name, as it is not a path.
28983         Remove references to gnatmem and libaddr2line.
28984
28985         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28986         files.
28987
28988 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28989
28990         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28991         address is incompatible with its base type alignment constraints when
28992         this can be decided statically.
28993
28994 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28995
28996         * decl.c (compatible_signatures_p): New function. The intended purpose
28997         is to check if two function signatures for a call-site and a callee are
28998         compatible enough for the call to be valid. The underlying purpose is
28999         to check if a call to a mapped builtin is using the right interface.
29000         The current code actually does not check antyhing - this a placeholder
29001         for future refinements.
29002         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29003         builtin calls for convention Intrinsic.
29004
29005         * gigi.h (builtin_decl_for): Declare (new function).
29006
29007         * utils.c (gnat_install_builtins): Install the target specific builtins.
29008         (builtin_decl_for): New function, provide a dummy body for now.
29009
29010 2005-01-03  Geert Bosch  <bosch@adacore.com>
29011
29012         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29013         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29014         (Pred): Implement in terms of Succ.
29015
29016         * trans.c (convert_with_check): Reimplement conversion of float to
29017         integer.
29018
29019 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29020             Vincent Celier  <celier@adacore.com>
29021
29022         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29023         bounds can be negative, and must be declared Int, not Nat.
29024
29025         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29026         array is checked after using the index in the array.
29027
29028         * makegpr.adb (Add_Switches): Check if there is a package for the
29029         processor. If there is no package, do not look for switches.
29030
29031 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29032
29033         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29034         generation of predefined stream operations (specs and bodies) should
29035         proceed. Under various restrictions these subprograms must not be
29036         generated.
29037
29038 2005-01-03  Thomas Quinot  <quinot@adacore.com>
29039
29040         * exp_dist.adb:
29041         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29042         amount of PCS-specific code in RACW stubs generation.
29043         (Copy_Specification): Set Etype on copied formal parameter entities, as
29044         this information is needed for PolyORB stubs generation.
29045         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29046         variable Dynamic_Async.
29047         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29048         (Build_RPC_Receiver_Specification): Make generic again, as recent
29049         changes have allowed RPC receivers to have the same profile for both
29050         variants of the PCS.
29051         Reorganise RPC receiver generation to reduce differences between the
29052         structure of GARLIC and PolyORB RPC receivers.
29053         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29054         PCS-specific.
29055         Simplify elaboration code for RCI packages.
29056
29057         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29058         generation to reduce differences between the structure of GARLIC and
29059         PolyORB RPC receivers.
29060
29061         * s-stratt.adb: Fix typo in comment.
29062
29063 2005-01-03  Thomas Quinot  <quinot@adacore.com>
29064
29065         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29066         copied from Make_Init_Call).
29067
29068         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29069         reads and assignments on a temporary variable declared with appropriate
29070         discriminants.
29071
29072 2005-01-03  Robert Dewar  <dewar@adacore.com>
29073
29074         * i-c.adb (To_C): Raise CE if string is null and Append_Null
29075
29076 2005-01-03  Robert Dewar  <dewar@adacore.com>
29077
29078         * i-cstrin.adb (Update): Do not append a null in form called with a
29079         String. This avoids unintended behavior.
29080
29081 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29082
29083         PR ada/17527
29084         * init.c: Fix warnings on Free BSD section.
29085
29086 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29087
29088         PR ada/16949
29089         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29090         xsinfo.adb).
29091
29092 2005-01-03  Vincent Celier  <celier@adacore.com>
29093
29094         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29095         libraries when Unique_Compile is True (-u switch).
29096         (Gnatmake): ditto.
29097
29098 2005-01-03  Robert Dewar  <dewar@adacore.com>
29099
29100         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29101         upper case letter or underscore after W, as allowed by spec.
29102
29103 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29104
29105         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29106         darwin port by using proper type definitions from header files.
29107         Use SIGTERM instead of SIGABRT for SIGADAABORT.
29108
29109 2005-01-03  Robert Dewar  <dewar@adacore.com>
29110
29111         * par.adb: Enhance error message handling for configuration file
29112         pragmas.
29113
29114 2005-01-03  Robert Dewar  <dewar@adacore.com>
29115
29116         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29117         removed during the previous update (test properly for case of dividing
29118         largest negative number by -1, which generates overflow).
29119
29120 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29121             Sergey Rybin  <rybin@adacore.com>
29122
29123         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29124         to use as the defining identifier for a formal package.
29125         (Remove_Parent): If the instance takes place within (an instance of)
29126         a sibling, preserve private declarations of common parent.
29127
29128 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29129
29130         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29131         to determine whether one of the operands is a fixed-point type for
29132         which a user-defined multiplication or division operation might be
29133         defined.
29134
29135         * sem_res.adb (Valid_Conversion): The legality rules for conversions
29136         of access types are symmetric in Ada 2005: either designated type can
29137         be unconstrained.
29138
29139 2005-01-03  Vincent Celier  <celier@adacore.com>
29140
29141         * s-fileio.adb (Temp_File_Record): Change length of string component
29142         Name from L_tmpnam + 1 to max_path_len + 1.
29143
29144 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
29145
29146         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29147         Self_Id.Deferral_Level = 0.
29148         (Do_Pending_Action): Move this function to the spec.
29149
29150         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29151         Do_Pending_Action explicitely when needed, in case we're using
29152         No_Abort restrictions.
29153
29154         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29155         deferral level since it will not get changed by the generated code.
29156         Keeping a default value of 1 would prevent some operations (e.g.
29157         select or delay) to proceed successfully.
29158
29159 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
29160             Robert Dewar  <dewar@adacore.com>
29161             Cyrille Comar  <comar@adacore.com>
29162
29163         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29164         porting guide chapter (vms version).
29165         Revised doc title (removed "for native platforms") and subtitle.
29166         Add discussion on warning flag for obsolescent features. First we
29167         note that it applies to obsolete GNAT features, which was previously
29168         omitted. Second we contrast the behavior with that of the new
29169         Ada 2005 AI-368 restriction No_Obsolescent_Features.
29170         Preliminary rewriting of GNAT & libraries chapter in order to take
29171         into account default project locations & new project manager
29172         capabilities.
29173
29174 2005-01-03  Robert Dewar  <dewar@adacore.com>
29175
29176         * cstand.adb (Create_Operators): Clean up format and documentation of
29177         unary and binary operator result tables. No change in code, just
29178         reformatting and addition of comments.
29179
29180         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29181         sem_ch2.adb: Minor reformatting
29182
29183         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29184         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29185         comments for Tree_Read and Tree_Write.
29186
29187 2005-01-03  Pascal Obry  <obry@adacore.com>
29188
29189         * exp_attr.ads: Minor reformatting.
29190
29191 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
29192
29193         * comperr.adb (Compiler_Abort): Add specialized message for GAP
29194         versions.
29195
29196 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29197
29198         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29199         whether the ancestor type is private, as may be the case with nested
29200         instantiations.
29201
29202 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
29203
29204         PR ada/19128
29205         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29206
29207 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
29208
29209         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29210         * utils2.c (build_unary_op): Likewise.
29211
29212 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29213
29214         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29215
29216 2004-12-19  Richard Henderson  <rth@redhat.com>
29217
29218         * trans.c (gigi): Update gimplify_body call.
29219
29220 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
29221
29222         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29223
29224 2004-12-07  Ed Falis  <falis@adacore.com>
29225
29226         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29227         current task being suspended.
29228
29229         * init.c (__gnat_clear_exception): added to reset VxWorks exception
29230         count.
29231         (__gnat_map_signal): removed test for current task being suspended.
29232
29233 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29234
29235         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29236         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29237         targets (such as AAMP).
29238
29239 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29240
29241         * atree.adb (Visit_Itype): Create a new name for the generated itype,
29242         because the back-end may otherwise treat it as a redefinition of the
29243         old symbol.
29244
29245 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
29246
29247         * back_end.adb (Scan_Back_End_Switches): Accept --param.
29248
29249         * lang-specs.h: Accept --param.
29250
29251 2004-12-07  Vincent Celier  <celier@adacore.com>
29252
29253         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29254         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29255         Current_Body_Suffix => Ada_Body_Suffix).
29256         Take into account Externally_Built attribute.
29257
29258         * clean.adb (In_Extension_Chain): Always return False when one of the
29259         parameter is No_Project.
29260         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29261         Ada_Language_Index).
29262         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29263         Process_Languages for procedure Parse).
29264
29265         * gnatcmd.adb (Carg_Switches): New table.
29266         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29267         Adapt to name changes in package Prj (Current_Spec_Suffix =>
29268         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29269
29270         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29271         Header_Num and function Hash are now declared in package Prj,
29272         not Prj.Com.
29273
29274         * prj.adb (Suffix_Of): New function.
29275         (Set (Suffix)): New procedure.
29276         (Hash): One function moved from Prj.Com
29277         (Is_Present, Language_Processing_Data_Of): New functions
29278         (Set): Two new procedures
29279         (Add_Language_Name, Display_Language_Name): New procedures
29280
29281         * prj.ads: (Suffix_Of): New function
29282         (Set (Suffix)): New procedure
29283         Add several types and tables for multi-language support.
29284         (Header_Num): Type moved from Prj.Com
29285         (Hash): Two functions moved from Prj.Com
29286         (Is_Present, Language_Processing_Data_Of): New functions
29287         (Set): Two new procedures
29288         (Add_Language_Name, Display_Language_Name): New procedures
29289         (Naming): Component name changes:
29290         Current_Spec_Suffix => Ada_Spec_Suffix,
29291         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29292         Impl_Suffixes, Supp_Suffixes.
29293         (Project_Data): New components: Externally_Built, Supp_Languages,
29294         First_Language_Processing, Supp_Language_Processing, Default_Linker,
29295         Default_Linker_Path.
29296
29297         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29298         new package Language_Processing with its attributes (Compiler_Driver,
29299         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29300         Binder_Driver, Default_Linker).
29301
29302         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29303         (Header_Num): Type moved to package Prj
29304
29305         * prj-env.adb: Adapt to name changes in package Prj
29306         (Current_Spec_Suffix => Ada_Spec_Suffix,
29307         Current_Body_Suffix => Ada_Body_Suffix).
29308
29309         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29310         default to the project path, except the "-" is one of the directories
29311         in env var ADA_PROJECT_PATH.
29312         (Current_Project_Path): Global variable, replacing Project_Path
29313         that was in the body of Prj.Part.
29314         (Project_Path): New function
29315         (Set_Project_Path): New procedure
29316         Initialize Current_Project_Path during elaboration of the package
29317         Remove dependency on Prj.Com, no longer needed
29318
29319         * prj-ext.ads (Project_Path): New function
29320         (Set_Project_Path): New procedure
29321
29322         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29323         suffix is defined for language <lang>.
29324         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29325         accessing directly the components of Naming.
29326         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29327         Reorganise of this package.
29328         Break procedure Check in several procedures.
29329
29330         * prj-nmsc.ads: Replace all procedures (Ada_Check,
29331         Other_Languages_Check and Language_Independent_Check) with a single
29332         procedure Check.
29333
29334         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29335         Process_Languages, no longer needed.
29336
29337         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29338         Current_Project_Path.
29339         Remove elaboration code, moved to the body of Prj.Ext
29340         Use new function Prj.Ext.Project_Path instead of old variable
29341         Project_Path.
29342         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29343         When comparing with project paths on the stack, first put the resolved
29344         path in canonical case.
29345         (Parse_Single_Project): Set the path name of the project file in the
29346         tree to the normalized path.
29347
29348         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29349         parameter Process_Languages, no longer needed.
29350         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29351         Other_Languages_Check.
29352
29353         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29354         to store the resolved canonical path of the project file.
29355         Remove dependency to Prj.Com, no longer needed
29356
29357         * prj-util.adb: Adapt to name changes in package Prj
29358         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29359         Ada_Body_Suffix).
29360
29361         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29362         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29363         Externally_Built, Include_Option, Language_Processing.
29364
29365         * makegpr.adb: Numerous changes due to changes in packages
29366         Prj and Prj.Nmsc.
29367
29368         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29369         default to the project path, except whe "-" is one of the directories
29370         in env var ADA_PROJECT_PATH.
29371         (Gnatls): In verbose mode, add the new section "Project Search Path:"
29372
29373 2004-12-07  Robert Dewar  <dewar@adacore.com>
29374
29375         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29376
29377         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29378         set -gnatR3m mode.
29379
29380         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29381         flag. No longer needed now that we handle this in gnat1drv.adb.
29382
29383         * repinfo.ads: Minor reformatting
29384
29385 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29386             Olivier Hainque  <hainque@adacore.com>
29387             Eric Botcazou  <ebotcazou@adacore.com>
29388
29389         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29390         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29391         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29392         of a bitfield, which we know is useless and causes trouble because of
29393         alignment implications.
29394
29395         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29396         BSS sections.
29397         (process_attributes): Clear DECL_COMMON again when a section attribute
29398         is present.
29399         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29400         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29401         (create_field_decl): Special case ADDRESSABLE negative to mean
29402         "no bitfield creation", to be used by make_aligning_type. Don't
29403         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29404         fields claimed addressable still have to be bitfields. Use
29405         value_factor_p instead of a raw binop construction to check for the
29406         position's alignment.
29407
29408 2004-12-07  Geert Bosch  <bosch@adacore.com>
29409
29410         * eval_fat.adb: Revert previous change.
29411
29412 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29413             Ed Schonberg  <schonberg@adacore.com>
29414
29415         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29416         with an implicit dereference as its prefix, use
29417         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29418         an explicit dereference. This ensures that a reference to the original
29419         prefix is generated, if appropriate.
29420
29421         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29422         dereference is rewritten to an explicit one, generate a reference to
29423         the entity denoted by its prefix using the original prefix node, so
29424         the dereference can be properly recorded as a read of the denoted
29425         access value, if appropriate.
29426
29427         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29428         emitting 'assigned but never read' warning on a variable on the basis
29429         that it has an access type.
29430         (Check_References): Emit unreferenced warning when the scope is a
29431         subprogram body.
29432
29433 2004-12-07  Robert Dewar  <dewar@adacore.com>
29434             Ed Schonberg  <schonberg@adacore.com>
29435
29436         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29437         intrinsic
29438
29439         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29440         leaving call unchanged.
29441         This deals with the case where the pragma Import specified
29442         an external name, to be handled by the back end.
29443
29444         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29445         subprogram which is Imported with convention Intrinsic if an
29446         External_Name argument is specified.
29447         (Process_Import_Or_Interface): Properly diagnose link name argument.
29448         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29449         with Sem_Ch6.Cannot_Inline.
29450         (Process_Inline): Provide separate warning for inapplicable inline
29451         pragma.
29452         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29453         treatment is uniform on different targets.
29454
29455 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29456
29457         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29458         construct is rewritten, preserve end label to permit source navigation.
29459
29460 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29461
29462         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29463         Specific_Build_Stub_Target): New subprograms.
29464         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29465         the PCS implementation used, using the above PCS-customized subprograms.
29466         Minor reformatting.
29467         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29468         for generation of DSA code targeted to the PolyORB PCS.
29469         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29470         implementation of the partition communication subsystem in ancillary
29471         subprograms.
29472         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29473         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29474         PCS-specific part of Add_Stub_Type.
29475         (Insert_Partition_Check): Use runtime library function to perform
29476         E.4(19) check.
29477
29478         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29479         (RE_Same_Partition): New entity, from s-parint.
29480
29481         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29482
29483 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29484
29485         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29486         Output the copyright message on a separate line from the version
29487         message.
29488
29489 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29490
29491         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29492         compile-time warning.
29493
29494 2004-12-07  Robert Dewar  <dewar@adacore.com>
29495
29496         * g-regpat.adb: (Match): Change a misuse of or to or else
29497
29498 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29499
29500         * lib-xref.adb:
29501         (Generate_Reference): Handle properly a reference to an entry formal,
29502          when an accept statement has a pragma Unreferenced for it.
29503
29504         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29505         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29506         the body, to ensure that warnings are properly emitted for each accept
29507         statement of a given task entry.
29508
29509 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29510
29511         * Makefile.in: Add support for foreign threads on VMS.
29512
29513 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29514
29515         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29516         Remove.
29517         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29518
29519         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29520
29521         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29522         exception.
29523         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29524
29525 2004-12-07  Robert Dewar  <dewar@adacore.com>
29526
29527         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29528         Prepend.
29529         (Remove_Next_Debug): Same fix
29530
29531         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29532         maintain back pointers now, though we did not used to, and comments
29533         were out of date).
29534         (Prepend): Remove pragma Inline.
29535         (Remove_Next): Same cleanup
29536
29537 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29538
29539         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29540         used to record an implicit dereference as a read operation on its
29541         prefix when operating under -gnatc. Necessary to avoid spurious
29542         'variable assigned but never read' warnings in that mode.
29543         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29544         is a non-overloaded implicit dereference, call the above subprogram to
29545         ensure proper recording of references.
29546
29547 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29548
29549         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29550         to be resolved later as part of Analyze_Iteration_Scheme's call to
29551         Make_Index.
29552
29553 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29554
29555         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29556         prefix is not a scalar type, place error message on prefix, not on
29557         type entity.
29558
29559 2004-12-07  Bernard Banner  <banner@adacore.com>
29560
29561         * vxaddr2line.adb: Add support for x86 vxworks
29562
29563 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29564
29565         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29566         documentation of the behaviour of these functions when passed an IP
29567         address that has no record in the system hosts database and no reverse
29568         record in the DNS.
29569
29570         * cstand.adb, a-tags.ads: Fix typos in comment.
29571
29572 2004-12-07  Robert Dewar  <dewar@adacore.com>
29573
29574         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29575         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29576         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29577         s-poosiz.ads: Minor reformatting
29578
29579         * make.adb: Minor reformatting
29580         Add some ??? comments asking for more comments
29581
29582         * s-poosiz.adb: Minor reformatting
29583         Add comments on alignment requirement
29584
29585         * sinfo.ads: Remove obsolete comment and fix typo.
29586
29587 2004-12-07  Vincent Celier  <celier@adacore.com>
29588             Sergey Rybin  <rybin@adacore.com>
29589
29590         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29591         Files" with the new tool and package names.
29592         Reformatting to suppress most of the warnings for line too long
29593         Document the new section "Project Search Path:" in the output of
29594         gnatls -v.
29595         Add gnatmetric section
29596
29597 2004-12-07  Vincent Celier  <celier@adacore.com>
29598
29599         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29600         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29601         and -eit to -ept. Added qualifier
29602         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29603
29604 2004-11-27  Andreas Schwab  <schwab@suse.de>
29605
29606         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29607
29608 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29609
29610         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29611         internal implementation unit GNAT.Sockets.Thin,
29612         as their usage for sockets is non-portable (using the read and write
29613         functions from the system runtime library is fine on UNIX but won't
29614         work under Windows).
29615
29616         * mingw32.h: Update copyright notice.
29617
29618 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29619
29620         * ada-tree.h: Minor reformatting of previous change to avoid lines
29621         longer than 79 characters.
29622
29623 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29624
29625         * tb-gcc.c: GCC infrastructure based implementation of
29626         __gnat_backtrace.
29627
29628 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29629
29630         * misc.c (gnat_post_options): Don't clear
29631         flag_inline_functions.
29632
29633 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29634
29635         PR ada/17986
29636         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29637         tree.
29638
29639 2004-11-21  Andreas Jaeger  <aj@suse.de>
29640
29641         * stylesw.adb: Change Style_Check_Subprogram_Order to
29642         Style_Check_Order_Subprograms.
29643
29644 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29645
29646         * adaint.h, adaint.c
29647         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29648         to avoid warnings.
29649         Add also a cast to kill another warning.
29650         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29651         parameter with the priority class of the parent process instead of
29652         always using the NORMAL_PRIORITY_CLASS.
29653         (__gnat_dup): New function.
29654         (__gnat_dup2): New function.
29655         (__gnat_is_symbolic_link): Enable the effective body of this
29656         function when __APPLE__ is defined.
29657
29658         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29659         Update comments.
29660
29661 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29662
29663         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29664         address of which may be used to represent "others" and "all others"
29665         choices in exception tables, instead of the current harcoded
29666         (void *)0 and (void *)1.
29667         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29668
29669         * gigi.h (others_decl, all_others_decl): New decls representing the
29670         new Others_Value and All_Others_Value objects.
29671         (struct attrib): Rename "arg" component as "args", since GCC expects a
29672         list of arguments in there.
29673
29674         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29675         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29676         addresses.
29677
29678         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29679         others_decl and all_others_decl instead of hardcoded dummy addresses
29680         to represent "others" and "all others" choices, which is cleaner and
29681         more flexible with respect to the possible eh pointer encoding policies.
29682
29683         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29684         (process_attributes): Account for the naming change of the "args"
29685         attribute list entry component.
29686
29687         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29688         cumulating attributes for different entities into a single list.
29689         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29690         attributes for the current entity and propagate first subtype
29691         attributes to other subtypes.
29692         <E_Procedure>: Attribute arguments are attr->args and not
29693         attr->arg any more.
29694         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29695         argument provided, as this is what GCC expects. Use NULL_TREE instead
29696         of 0 for trees.
29697
29698 2004-11-18  Robert Dewar  <dewar@adacore.com>
29699
29700         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29701         Minor reformatting througout (including new function specs)
29702         Add ??? comments asking for clarification.
29703
29704 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29705
29706         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29707         incomplete duplicate implementation of this subprogram from butil.
29708
29709 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29710
29711         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29712         procedures factors the common processing for building an RPC receiver
29713         for an RCI package or an RACW type.
29714         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29715         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29716         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29717         in use.
29718         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29719         Add_RACW_Features.
29720         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29721         Add_RAST_Features.
29722         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29723         distribution subprogram identifiers that are either subprogram numbers
29724         or strings.
29725         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29726         string distribution identifiers assigned to a given subprogram.
29727         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29728         (Add_RAS_Dereference_TSS): Add comments.
29729         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29730         is not referenced yet because it will be used by the PolyORB DSA
29731         implementation.
29732         (Insert_Partition_Check): Remove fossile code.
29733         (First_RCI_Subprogram_Id): Document this constant.
29734         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29735         RAS_Access TSS.
29736         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29737         replaced with calls to Get_Library_Unit_Name_String. Previously there
29738         were several instances of the same code in different locations in the
29739         compiler; this checkin completes the replacement of all of these
29740         instances with calls to a common subprogram.
29741         Minor reformatting.
29742
29743         * sem_dist.adb: Remove comment noting that RPC receiver generation
29744         should be disabled for RACWs that implement RASs.
29745         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29746
29747         * sem_util.ads, sem_util.adb (Has_Stream): New function
29748         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29749         qualified name of a library unit into the name buffer.
29750         (Note_Possible_Modification): Generate a reference only
29751         if the context comes from source.
29752
29753         * snames.ads (PCS_Names): New subtype corresponding to names of
29754         supported implementations of the Partition Communication Subsystem
29755         (PCS) (i.e. the runtime library support modules for the distributed
29756         systems annex).
29757
29758 2004-11-18  Robert Dewar  <dewar@adacore.com>
29759             Ed Schonberg  <schonberg@adacore.com>
29760
29761         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29762         (Has_Rep_Pragma): New function
29763         (Has_Attribute_Definition_Clause): New function
29764         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29765         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29766
29767         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29768
29769         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29770         (Expand_Pragma_Psect_Object): New procedure
29771         These procedures contain the revised and cleaned up processing for
29772         these two pragmas. This processing was formerly in Sem_Prag, but
29773         is more appropriately moved here. The cleanup involves making sure
29774         that the pragmas are properly attached to the tree, and that no
29775         nodes are improperly shared.
29776
29777         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29778         pragmas to Exp_Prag, which is more appropriate.
29779         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29780         check for duplicates Remove use of Is_Psected flag, no longer needed.
29781         Use new Make_String_Literal function with string.
29782
29783         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29784         that are functions return universal values, that have to be converted
29785         to the context type.
29786         Use new Make_String_Literal function with string.
29787         (Get_Stream_Convert_Pragma): New function, replaces the use of
29788         Get_Rep_Pragma, which had to be kludged to work in this case.
29789
29790         * freeze.adb: Use new Has_Rep_Pragma function
29791
29792         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29793         function with string.
29794         Use new Has_Rep_Pragma function.
29795
29796         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29797         string argument.
29798
29799 2004-11-18  Robert Dewar  <dewar@adacore.com>
29800
29801         * errout.ads, errout.adb: (First_Sloc): New function
29802
29803         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29804         check (-gnatyx) instead of being included as a redundant construct
29805         warning.
29806
29807         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29808         Style_Check_Order_Subprograms.
29809
29810         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29811         stylesw.adb: Add Style_Check_Xtra_Parens
29812
29813         * usage.adb: Add line for -gnatyx (check extra parens)
29814
29815         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29816
29817 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29818             Robert Dewar  <dewar@adacore.com>
29819
29820         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29821         discriminant of a constrained subtype, analyze the copy of the
29822         corresponding constraint, because in some cases it may be only
29823         partially analyzed.
29824         Removes long-lived ??? comments.
29825
29826         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29827         handled controlled or secondary-stack expressions within the
29828         iteration_scheme of a loop.
29829
29830         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29831         bounds that may contain functions calls, to prevent memory leaks when
29832         the bound contains a call to a function that uses the secondary stack.
29833         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29834         generate temporaries for loop bounds that might contain function calls
29835         that require secondary stack and/or finalization actions.
29836
29837         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29838         selected component and the selector is overloadable (not just a
29839         function) treat as function call, Analyze_Call will disambiguate if
29840         necessary.
29841         (Analyze_Selected_Component): Do not generate an actual subtype for the
29842         selected component if expansion is disabled. The actual subtype is only
29843         needed for constraint checks.
29844         (Analyze_Allocator): If restriction No_Streams is set, then do
29845         not permit objects to be declared of a stream type, or of a
29846         composite type containing a stream.
29847
29848         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29849         No_Streams no longer prohibits with'ing this package.
29850
29851         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29852         discriminants, but the parent base has unknown discriminants, there is
29853         no discriminant constraint to inherit. Such a discrepancy can arise
29854         when the actual for a formal type with unknown discriminants is a
29855         similar private type whose full view has discriminants.
29856         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29857         do not permit objects to be declared of a stream type, or of a
29858         composite type containing a stream.
29859
29860 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29861
29862         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29863         protected operations.
29864
29865         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29866         generated name, it complicates decoding in gdb and hinders debugging
29867         of protected operations.
29868         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29869         flag for the protected entry barrier function.
29870         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29871         flag for the protected entry function.
29872
29873 2004-11-18  Nicolas Setton  <setton@adacore.com>
29874
29875         * expect.c: Define __unix__ when __APPLE__ is defined.
29876
29877         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29878         Darwin-specific section.
29879
29880         * lang-specs.h: Change the placement of the %1 marker.
29881         Works around the fact that gcc adds -fPIC by default under Darwin.
29882
29883 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29884
29885         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29886         type of the object with the packed array type, set the Analyzed flag
29887         on the object if it is an entity or simple indexed component, to avoid
29888         spurious type errors.
29889
29890 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29891
29892         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29893         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29894         separate line from the version message.
29895
29896 2004-11-18  Ed Falis  <falis@adacore.com>
29897
29898         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29899         vthreads.
29900         (init_float): Eliminate initialization of floating point status for
29901         AE653. The instructions have no effect for vThreads.
29902
29903 2004-11-18  Vincent Celier  <celier@adacore.com>
29904
29905         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29906         gnatbind is invoked with -shared.
29907
29908 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29909
29910         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29911         for Detect_Blocking which is redundant with the check done within the
29912         procedure Protected_Single_Entry_Call.
29913         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29914         Detect_Blocking which is redundant with the check done within the
29915         procedure Protected_Single_Entry_Call.
29916
29917 2004-11-18  Vincent Celier  <celier@adacore.com>
29918
29919         * makegpr.adb (Compile): Put the compiling switches (in package
29920         Compiler and on the command line) immediately after "-c", instead of
29921         at the end of the command line invocation of the compiler, when
29922         compiling a non-Ada file.
29923         (Build_Global_Archive): When there is no need to rebuild the archive,
29924         set Global_Archive_Exists, so that the archive is passed to the linker
29925         if one is needed.
29926
29927 2004-11-18  Robert Dewar  <dewar@adacore.com>
29928             Sergey Rybin  <rybin@adacore.com>
29929
29930         * gnat_ugn.texi:
29931         Remove extra paren check from list of checks for redundant constructs
29932         Add documentation of new -gnatyx style check (check extra parens)
29933         Remove paragraph about gnatelim debug options.
29934
29935         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29936         objects rather than forbidding dependencies on the package Ada.Streams.
29937
29938         * sinfo.ads: Add ??? note that we should document pragmas passed to
29939         back end.
29940
29941         * g-expect.ads: Fix a few typos in the comments.
29942
29943 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29944
29945         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29946         warning message.
29947
29948 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29949
29950         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29951
29952 2004-11-07  Andreas Schwab  <schwab@suse.de>
29953
29954         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29955
29956 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29957
29958         PR ada/18228
29959         * Makefile.in (darwin): Set soext to .dylib.
29960
29961 2004-10-26  Vincent Celier  <celier@gnat.com>
29962             Thomas Quinot   <quinot@act-europe.fr>
29963
29964         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29965         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29966         there is no use of GNAT.Sockets.Constants.
29967         Remove remaining pragma Import for C_Write
29968         Remove C_Read and C_Write from internal implementation unit
29969         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29970         the read and write functions from the system runtime library is fine
29971         on UNIX but won't work under Windows).
29972
29973         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29974         (Check_Selector): Use C_Recv instead of C_Read.
29975         Selectors are the GNAT.Sockets abstraction to perform a select()
29976         call on a set of descriptors. To allow abortion of an ongoing
29977         select operation, some data is written to a dedicated socket that
29978         is always monitored.
29979         Under Windows, the write and read library functions cannot operate
29980         on sockets, so we need to use send and recv instead, which is portable
29981         across all supported platforms.
29982
29983         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29984         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29985         (using the read and write functions from the system runtime library is
29986         fine on UNIX but won't work under Windows).
29987
29988 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29989
29990         * mlib-tgt-darwin.adb: New file.
29991
29992         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29993         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29994         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29995         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29996         subprogram body.
29997
29998         * Makefile.in: Add support for building shared libraries under Darwin.
29999         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30000         the low level EH init subprogram to be called from __gnat_initialize.
30001
30002         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30003         indicates which options to pass to the archive indexer.
30004
30005         * mlib-utl.adb: Add support for calling ranlib with additional
30006         options. This is needed for instance under Mac OS X.
30007         (Ranlib_Options): New global variable, used to store the potential
30008         options to pass to ranlib.
30009         (Ar): Use Ranlib_Options when spawning ranlib.
30010         (Initialize): Set the value of ranlib option.
30011
30012 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
30013
30014         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30015         instead of 8K, to reflect the real potential needs for stack-checking
30016         in the ZCX case.
30017
30018 2004-10-26  Pascal Obry  <obry@gnat.com>
30019
30020         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30021
30022         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30023         Windows only the initial thread stack size can be set so it is good to
30024         start we a low stack size.
30025         The OS will adjust the size as needed.
30026
30027 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
30028             Nicolas Setton  <setton@act-europe.fr>
30029
30030         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30031         "__unix__" instead of "unix".
30032         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30033         sections were just mistakenly ignored. The former is
30034         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30035         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30036         of hpux. This prevents an unwanted definition of the symbol
30037         convert_addresses in adaint.o.
30038
30039 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
30040
30041         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30042         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30043
30044 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30045
30046         * a-filico.ads, a-filico.adb: fix incorrect header.
30047
30048 2004-10-26  Javier Miranda  <miranda@gnat.com>
30049
30050         * a-ststio.ads: Fix typo in identifier
30051
30052 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30053
30054         * sem_ch4.adb: Minor reformatting.
30055
30056 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30057
30058         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30059         enabled, check the result of unary and binary operations when the
30060         expression is the right-hand side of an assignment.
30061
30062 2004-10-26  Vincent Celier  <celier@gnat.com>
30063
30064         * clean.adb (Delete): Do not output warnings when in quiet output and
30065         not in verbose mode.
30066         (Force_Deletions): New Boolean flag, defaulted to False
30067         (Delete): Only delete a file if it is writable, and when
30068         Force_Deletions is True.
30069         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30070         (Usage): Line for new switch -f
30071         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30072         own.
30073
30074 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30075
30076         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30077         JM type only if its size matches that of the wrapper.  When a size is
30078         prescribed and the field is not aliased, remove the wrapper of a JM
30079         type only if the size is not greater than that of the packed array.
30080         (gnat_to_gnu_entity): Change the extension of packed array wrappers
30081         from LJM to JM.
30082
30083 2004-10-26  Geert Bosch  <bosch@gnat.com>
30084
30085         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30086         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30087         (Pred): Implement in terms of Succ.
30088
30089 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30090
30091         * exp_aggr.adb (Safe_Component): An aggregate component that is an
30092         unchecked conversion is safe for in-place use if the expression of the
30093         conversion is safe.
30094         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30095         be expandable in place even if the aggregate does not come from source.
30096         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30097         designated object of an allocator in place, rather than building it
30098         first on the stack. The previous scheme forces a full copy of the array,
30099         and may be altogether unsusable if the size of the array is too large
30100         for stack allocation.
30101
30102 2004-10-26  Robert Dewar  <dewar@gnat.com>
30103
30104         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30105         compares if the component is atomic.
30106
30107         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30108         array assignment if the component type is atomic.
30109
30110 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30111             Eric Botcazou  <ebotcazou@act-europe.fr>
30112
30113         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30114         is aliased and is a by_reference type, do not pass by copy.
30115         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30116         detect whether the call is in the right side of an assignment or
30117         the expression of an object declaration.  Recurse on component
30118         association within aggregates.
30119         Call it in the condition that determines whether the temporary is
30120         necessary for correct stack-checking.
30121
30122 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30123
30124         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30125         RACW_Type, used in the PolyORB version.
30126         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30127         version and the GARLIC version.
30128
30129         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30130         Rename RCI_Info to RCI_Locator for better consistency between the
30131         GARLIC and PolyORB versions of the distributed systems annex.
30132         (DSA_Implementation_Name): This enumeration lists the possible
30133         implementations of the Partition Communication Subsystem for the
30134         Distributed Systems Annex (DSA). The three available implementations
30135         are the dummy stub implementation (No_DSA), and two versions based on
30136         two different distribution runtime libraries: GARLIC and PolyORB. Both
30137         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30138         technology.
30139         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30140         that organization.
30141
30142         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30143         between the GARLIC and PolyORB versions of the distributed systems
30144         annex.
30145         Remove RE_Unbounded_Reclaim_Pool since it is unused.
30146
30147 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
30148
30149         * gnat1drv.adb: Suppress calling the back end when
30150         Frontend_Layout_On_Target is true.
30151
30152 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30153
30154         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30155         Set_Read_Only): New subprograms.
30156         These new routines allow the user to set or unset the Owner execute
30157         and Owner write permission flags on a file.
30158
30159         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30160         GNAT.OS_Lib.Set_Executable instead of rolling our own.
30161
30162 2004-10-26  Matthew Gingell  <gingell@gnat.com>
30163
30164         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30165
30166 2004-10-26  Pascal Obry  <obry@gnat.com>
30167
30168         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30169         memory before the faulting page we properly test the process read
30170         access for this address using appropriate Win32 routine.
30171         (HPUX sections): guard with "__hpux__" instead of "hpux".
30172
30173 2004-10-26  Robert Dewar  <dewar@gnat.com>
30174
30175         * lib-xref.adb (Generate_Reference): Don't complain about reference to
30176         entry parameter if pragma Unreferenced set, since we do not properly
30177         handle the case of multiple parameters.
30178
30179 2004-10-26  Vincent Celier  <celier@gnat.com>
30180
30181         * prj-env.adb: (Contains_ALI_Files): New Boolean function
30182         (Ada_Objects_Path.Add): For a library project, add to the object path
30183         the library directory only if there is no object directory or if the
30184         library directory contains ALI files.
30185         (Set_Ada_Paths.Add.Recursive_Add): Ditto
30186
30187 2004-10-26  Vincent Celier  <celier@gnat.com>
30188
30189         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30190         extension of library projects.
30191
30192         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30193         path defaults to ".:<prefix>/lib/gnat".
30194         (Parse): For an extending all project, allow direct import of a project
30195         that is virtually extended.
30196
30197         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30198         the specified name is directly imported, return its ID. Otherwise, if
30199         an extension of this project is imported, return the ID of the
30200         extension.
30201
30202 2004-10-26  Robert Dewar  <dewar@gnat.com>
30203
30204         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30205         (Sub3): New procedure, used by Scaled_Divide
30206         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30207         correct more than one instance of failure to propagate carries
30208         correctly.
30209         (Double_Divide): Handle overflow case of largest negative number
30210         divided by minus one.
30211
30212         * s-arit64.ads (Double_Divide): Document that overflow can occur in
30213         the case of a quotient value out of range.
30214         Fix comments.
30215
30216 2004-10-26  Robert Dewar  <dewar@gnat.com>
30217
30218         * s-bitops.adb (Bit_Eq): Remove redundant check.
30219
30220         * s-bitops.ads: Minor comment updates
30221         Change some occurrences of Address to System.Address
30222
30223         * s-carsi8.ads: Fix minor cut-and-paste error in comments
30224
30225 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30226
30227         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30228         accessibility check to prefix that is a protected operation.
30229
30230 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30231
30232         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30233         empty, post message on stub.
30234
30235 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30236             Javier Miranda  <miranda@gnat.com>
30237
30238         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30239         current instance appears within a unit that is directly in the context
30240         of the main unit.
30241         Used to determine whether the body of the instance should be analyzed
30242         immediately after its spec, to make its subprogram bodies available
30243         for front-end inlining.
30244         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30245         constraint is not allowed on the component type (AARM 12.5.3(3))
30246
30247 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30248
30249         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30250         'Storage_Pool): enhance, document & limit detection of non-sharable
30251         internal pools.
30252
30253         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30254
30255         * s-pooglo.ads: Add more documentation now that this pool is properly
30256         documented.
30257
30258 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30259
30260         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30261         or protected type with discriminants, do not constrain the
30262         corresponding record type if the subtype declaration has no
30263         discriminant constraints. This can be the case in source code, or in
30264         the subtype declaration created to rename an actual type within an
30265         instantiation.
30266
30267 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30268
30269         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30270         different kind of stub (possibly wrong name for file), do not check
30271         for conformance.
30272         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30273         includes call to some function that returns an unconstrained type, do
30274         not inline.
30275
30276 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30277
30278         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30279         appear in the code for the main unit. Dependencies among units in the
30280         context of the main unit are established when those other units are
30281         compiled. Otherwise spurious elaboration constraints can generate
30282         incorrect elaboration circularities.
30283
30284 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30285             Ed Schonberg   <schonberg@gnat.com>
30286
30287         * sem_util.adb (Is_Aliased_View): Defend against the case where this
30288         subprogram is called with a parameter that is not an object name. This
30289         situation arises for some cases of illegal code, which is diagnosed
30290         later, and in this case it is wrong to call Is_Aliased, as that might
30291         cause a compiler crash.
30292         (Explain_Limited_Type): Refine previous fix to include
30293         inherited components of derived types, to provide complete information.
30294
30295         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30296         is the prival for a protected object.
30297         It is necessary to mark this entity as a variable, in addition to
30298         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30299         modified to avoid checking the Aliased flag on entities that are not
30300         objects. (Checking that flag for non-objects is erroneous and could
30301         lead to a compiler crash).
30302
30303 2004-10-26  Robert Dewar  <dewar@gnat.com>
30304
30305         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30306         X_Frac = 0.5, then we know that the number X must be positive.
30307         (Succ): Remove the same redundant test, and also fix the primary test
30308         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30309         Minor reformatting
30310         (Decompose): Add fuller comments to spec
30311
30312 2004-10-26  Pascal Obry  <obry@gnat.com>
30313
30314         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30315         validity (process must have read access). Set to 0 in all other cases.
30316         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30317         violation on Win32.
30318         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30319         segmentation violation.
30320
30321 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30322
30323         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30324         whose type is a constructed subtype of an aliased object with an
30325         unconstrained nominal subtype, convert the actual to the constructed
30326         subtype before taking its address.
30327
30328 2004-10-26  Vincent Celier  <celier@gnat.com>
30329
30330         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30331         (Is_Path_Name_Case_Sensitive): New function
30332
30333         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30334         (Base_Name, Simple_Name, Current_Directory, Compose,
30335         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30336         the result.
30337
30338 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
30339             Vasiliy Fofanov  <fofanov@act-europe.fr>
30340             Vincent Celier   <celier@gnat.com>
30341
30342         * gnat_ugn.texi: Generalize "finding memory problems" section into a
30343         "memory management issues" section and document some of the useful
30344         memory pools provided as part of the GNAT library.
30345         Remove "virtual" from declaration of A::method2 in
30346         the simple example of Ada/C++ mixed system.
30347         Library Projects may be virtually extended: their virtual extensions
30348         are not Library Projects.
30349         Added section on extending project hierarchies.
30350
30351 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30352
30353         * adaint.c (__gnat_get_libraries_from_registry): Cast value
30354         to LPBYTE.
30355         (__gnat_portable_spawn): Remove const.
30356
30357         * mingw32.h (MAXPATHLEN): Check for previous definition.
30358
30359 2004-10-17  Matthias Klose  <doko@debian.org>
30360
30361         * gnatvsn.ads: Set gnat library version to 4.0.
30362
30363 2004-10-05  Vincent Celier  <celier@gnat.com>
30364
30365         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30366
30367 2004-10-04  Laurent Guerby  <laurent@guerby.net>
30368
30369         PR ada/15156
30370         * Makefile.in: Define and use RANLIB_FLAGS.
30371
30372 2004-10-04  Pascal Obry  <obry@gnat.com>
30373
30374         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30375         other x86 platforms).
30376
30377 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30378
30379         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30380         in general and triggers stack alignment adjustment for thread entry
30381         points on targets where this is necessary.
30382
30383 2004-10-04  Bernard Banner  <banner@gnat.com>
30384
30385         PR ada/13897
30386         * Makefile.in: Add section for powerpc linux
30387         Add variant i-vxwork-x86.ads
30388
30389         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30390
30391 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30392
30393         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30394         table registration calls when need be. Ensures no reference to the crt
30395         ctors symbol are issued in the SJLJ case, which avoids possible
30396         undefined symbol errors in the case of modules to be statically linked
30397         with the kernel.
30398
30399 2004-10-04  Javier Miranda  <miranda@gnat.com>
30400
30401         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30402         in-line the code corresponding to subprogram Analyze_Actuals. In
30403         addition, analyze the actuals only in case of subprogram call.
30404
30405 2004-10-04  Ed Falis  <falis@gnat.com>
30406
30407         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30408
30409 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30410
30411         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30412         in the documentation.
30413
30414 2004-10-04  Robert Dewar  <dewar@gnat.com>
30415
30416         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30417         IF and CASE.
30418         (Analyze_Block_Statement): Add circuitry to detect following dead code
30419         (Check_Unreachable_Code): Handle case of block exit
30420
30421 2004-10-04  Robert Dewar  <dewar@gnat.com>
30422
30423         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30424         (XMatchD): Avoid warning for Logic_Error call
30425
30426 2004-10-04  Robert Dewar  <dewar@gnat.com>
30427
30428         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30429         consider expressions buried within a procedure actual to be an actual.
30430         This caused some blowups with uses of packed slices within a procedure
30431         actual.
30432
30433 2004-10-04  Robert Dewar  <dewar@gnat.com>
30434
30435         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30436         longer need to be initialized to zero.
30437         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30438         initialized to zero.
30439
30440         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30441         considered valid, even if the representation is modular. That's correct
30442         now that we no longer initialize packed modular arrays to zero.
30443
30444         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30445         suffixes. These are now documented as the only cases in which the
30446         debugger ignores outer records.
30447         Previously, the spec allowed arbitrary suffixes for this purpose.
30448         Change name of LJM to JM for packed array pad records
30449         Create separate section on packed array handling, and add a whole new
30450         set of comments to this section describing the situation with packed
30451         modular types and justification requirements depending on endianness.
30452
30453 2004-10-04  Robert Dewar  <dewar@gnat.com>
30454
30455         * a-except.adb: Add a comment for last change
30456
30457         * einfo.ads: Minor spelling correction in comment
30458
30459         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30460
30461         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30462         messages.
30463
30464         * sem_util.ads: Minor comment update
30465
30466 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30467
30468         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30469         Inline_Always when in Configurable_Run_Time mode.
30470
30471         * sem_prag.adb (Process_Convention): If entity is an inherited
30472         subprogram, apply convention to parent subprogram if in same scope.
30473         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30474         when in Configurable_Run_Time mode.
30475
30476 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30477
30478         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30479         class_wide type after component list has been inherited.
30480
30481 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30482
30483         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30484         Denotes_Previous_Actual, to handle properly the case of a private
30485         actual that is also the component type of a subsequent array actual.
30486         The visibility status of the first actual is not affected when the
30487         second is installed.
30488         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30489         make fully recursive the treatment of formals of packages declared
30490         with a box.
30491         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30492         the above on exit from an instantiation.
30493         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30494         current instantiation which is now complete.
30495         (Analyze_Package_Instantiation): No instantiated body is needed if the
30496         main unit is generic. Efficient, and avoid anomalies when a instance
30497         appears in a package accessed through rtsfind.
30498
30499 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30500
30501         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30502         do not generate a declaration for a temporary if the call is part of a
30503         library-level instantiation.
30504
30505 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30506
30507         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30508         searching for a limited component to flag.
30509
30510         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30511         expansion of Input, to account for the fact that the implicit call
30512         generated by the attribute reference must freeze the user-defined
30513         stream subprogram. This is only relevant to 'Input, because it can
30514         appear in an object declaration, prior to the body of the subprogram.
30515
30516         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30517         expansion can proceed and further errors uncovered.
30518         (Minor clean up): Fix cases of using | instead of \ for continuation
30519         messages.
30520
30521 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30522
30523         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30524
30525         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30526         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30527         Use gcc_assert and gcc_unreachable.
30528
30529         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30530         specified alignment before validating size.
30531         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30532         stripped-down declaration for the type of the inner field when making
30533         a JM type.
30534
30535         * utils.c (finish_record_type): Do not compute the size in units
30536         incrementally. Instead compute it once for the rep clause case.
30537         Use gcc_assert and gcc_unreachable.
30538
30539 2004-10-04  Vincent Celier  <celier@gnat.com>
30540
30541         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30542         in file name.
30543         (Is_Valid_Path_Name): Take '/' as a directory separator.
30544
30545 2004-10-04  Vincent Celier  <celier@gnat.com>
30546
30547         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30548         (Extended_Project) only if Extended_Project is defined, to avoid
30549         assertion error.
30550         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30551         resolved path.
30552         (Parse_Single_Project): Ditto.
30553
30554         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30555         Add_To_Project_Path for virtual projects.
30556
30557 2004-10-04  Vincent Celier  <celier@gnat.com>
30558
30559         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30560         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30561         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30562         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30563         parameter Options_2.
30564
30565         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30566         Build_Dynamic_Library with an empty Options_2.
30567
30568         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30569         default anymore.
30570
30571         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30572         directory separator, if any.
30573         (Gprmake): Do not allow mains on the command line for library projects.
30574         Do not attempt to link when the project is a library project.
30575         (Library_Opts): New table to store Library_Options.
30576         (Build_Library): If Library_Options is specified, pass these options
30577         when building a shared library.
30578
30579 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30580
30581         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30582         the end of this procedure now that the unlock operation was inserted
30583         by the expander.
30584
30585 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30586
30587         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30588         corresponding to the Preallocated_Stacks flags in System.
30589         (Get_Target_Parameters): Including the processing for
30590         Preallocated_Stacks.
30591
30592         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30593         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30594         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30595         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30596         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30597         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30598         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30599         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30600         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30601         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30602         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30603         used to signal whether the compiler creates the required stacks and
30604         descriptors for the different tasks (when True) or it is done by the
30605         underlying operating system at run time (when False).
30606         It is initially set to False in all targets.
30607
30608         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30609         if it is supported by the target.
30610         (Make_Task_Create_Call): Pass the stack address if it has been
30611         previously created. Otherwise pass a Null_Address.
30612
30613         * snames.adb: Add _stack.
30614
30615         * snames.ads: Add Name_uStack. Required to allow the expander to
30616         statically allocated task stacks.
30617
30618         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30619         Stack_Address argument.
30620         Check that its value is equal to Null_Address because this target does
30621         not support the static stack allocation.
30622
30623 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30624
30625         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30626         and error messages
30627
30628 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30629
30630         * exp_dist.adb: Split declaration of asynchronous flag out of
30631         Add_RACW_Read_Attribute.
30632         Minor reformatting for better alignment with PolyORB version.
30633         Store the entity for the asynchronous flag of an RACW, rather than the
30634         expression, in the asynchronous flags table. This will allow this flag
30635         to be used in other subprograms beside Add_RACW_Read_Attribute.
30636
30637 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30638
30639         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30640         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30641         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30642         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30643         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30644         sockets constant MSG_NOSIGNAL (Linux-specific).
30645         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30646         all Send operations.
30647         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30648         from trigerring SIGPIPE.
30649         Rename components to avoid clash with Ada 2005 possible reserved
30650         word 'interface'.
30651         (Check_Selector): When the select system call returns with an error
30652         condition, propagate Socket_Error to the caller.
30653
30654 2004-10-01  Jan Hubicka  <jh@suse.cz>
30655
30656         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30657
30658 2004-09-23  Robert Dewar  <dewar@gnat.com>
30659
30660         PR ada/17540
30661         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30662         instead do this at freeze time (we won't do it if there is an address
30663         clause).
30664         Change "pragma inline" to "pragma Inline" in information and error
30665         messages.
30666         Minor reformatting.
30667
30668         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30669         right way of doing things after all.
30670         (Freeze_Entity): For object, set Is_Public for imported entities
30671         unless there is an address clause present.
30672
30673 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30674
30675         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30676         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30677         ensures proper handling of types with rep clauses, which might have
30678         their TYPE_SIZE set already.
30679
30680 2004-09-21  Robert Dewar  <dewar@gnat.com>
30681
30682         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30683         packed array types in both little- and big-endian cases. This change
30684         ensures that we no longer count on the unused bits being initialized
30685         for such types (and in particular ensures that equality testing will
30686         only read the relevant bits).
30687         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30688         These changes mean that we no longer need to initialize small packed
30689         arrays.
30690         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30691         optimization to an LJM field as to its parent field.
30692
30693         * ada-tree.h, trans.c, utils.c, utils2.c:
30694         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30695
30696 2004-09-20  Jan Hubicka  <jh@suse.cz>
30697
30698         * utils.c (gnat_finalize): Remove.
30699         (end_subprog_body): Directly call cgraph_finalize_function;
30700         do not lower the nested functions.
30701
30702 2004-09-20  Robert Dewar  <dewar@gnat.com>
30703
30704         PR ada/17540
30705         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30706         if an address clause is present, since that means that the Import
30707         should be ignored.
30708
30709 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30710
30711         * 5tsystem.ads: Removed, no longer used.
30712
30713 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30714             Zack Weinberg  <zack@codesourcery.com>
30715
30716         * ada-tree.def: Use tree_code_class enumeration constants
30717         instead of code letters.
30718         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30719         Update for new tree-class enumeration constants.
30720
30721 2004-09-17  Vincent Celier  <celier@gnat.com>
30722
30723         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30724         capabilities of the general project manager.
30725
30726 2004-09-09  Vincent Celier  <celier@gnat.com>
30727
30728         * a-direct.ads: Add pragma Ada_05
30729         (Directory_Entry_Type): Give default value to component Kind to avoid
30730         not initialized warnings.
30731
30732         * a-direct.adb (Current_Directory): Remove directory separator at the
30733         end.
30734         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30735         an existing directory.
30736         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30737         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30738         Convert the result to File_Size.
30739
30740         * prj.ads: (Project_Error): New exception
30741
30742         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30743         Prj.Com, not from Osint.
30744         (Attrs, Package_Attributes): Tables moved to private part of spec
30745         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30746         Prj.Attr.PM.
30747         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30748         Prj.Project_Error after call to Fail.
30749         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30750         Fail. Check that package name is not already in use.
30751
30752         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30753         used by tools, not only by the project manager, and to indicate that
30754         exception Prj.Prj_Error may be raised in case of problem.
30755         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30756         Prj.Attr.PM.
30757         (Attrs, Package_Attributes): Table instantiations moved from the body to
30758         the private part to be accessible from Prj.Attr.PM body.
30759
30760         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30761         from new package Prj.Attr.PM.
30762         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30763         Prj.Attr.PM.
30764
30765         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30766
30767         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30768         instead of Elaboration_Checks).
30769
30770         * a-calend.adb: Minor reformatting
30771
30772 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30773
30774         * gigi.h (maybe_pad_type): New declaration.
30775         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30776
30777         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30778
30779         * cuintp.c: Convert to use buildN.
30780
30781         * decl.c (maybe_pad_type): No longer static.
30782         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30783         target pointer.
30784         Convert to use buildN.
30785
30786         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30787         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30788         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30789         RHS.
30790         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30791         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30792         Convert to use buildN.
30793
30794         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30795         TREE_READONLY for const.
30796         Convert to use buildN.
30797
30798         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30799         (create_var_decl): Refine when TREE_STATIC is set.
30800         Convert to use buildN.
30801
30802 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30803
30804         * gnat_ugn.texi: Delete text relating to checking of ali and object
30805         consistency.
30806
30807         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30808         routines.
30809
30810 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30811
30812         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30813         pragmas recognized by GNAT.
30814
30815         * gnat_rm.texi: Document pragma Detect_Blocking.
30816
30817         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30818         raise Program_Error if called from a protected operation.
30819
30820         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30821         the protected action nesting level.
30822         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30823         protected action nesting level.
30824         (Unlock): When pragma Detect_Blocking is active decrease the protected
30825         action nesting level.
30826
30827         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30828         Protected_Action_Nesting.
30829
30830         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30831         Common_ATCB record. It contains the dynamic level of protected action
30832         nesting for each task. It is needed for checking whether potentially
30833         blocking operations are called from protected operations.
30834         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30835         Detect_Blocking is active or not in the partition.
30836
30837         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30838         raise Program_Error if called from a protected operation.
30839         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30840         Program_Error if called from a protected operation.
30841         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30842         Program_Error if called from a protected operation.
30843
30844         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30845         raise Program_Error if called from a protected operation.
30846
30847         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30848         raise Program_Error if called from a protected operation, and increase
30849         the protected action nesting level.
30850         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30851         Program_Error if called from a protected operation, and increase the
30852         protected action nesting level.
30853         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30854         protected action nesting level.
30855
30856         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30857         raise Program_Error if called from a protected operation, and increase
30858         the protected action nesting level.
30859         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30860         Program_Error if called from a protected operation, and increase the
30861         protected action nesting level.
30862         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30863         raise Program_Error if called from a protected operation.
30864         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30865         active, raise Program_Error if called from a protected operation.
30866         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30867         protected action nesting level.
30868
30869         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30870         insertion of the statement raising Program_Error. The run time
30871         contains the required machinery for handling that.
30872
30873         * sem_util.ads: Change comment associated to procedure
30874         Check_Potentially_Blocking_Operation.
30875         This procedure does not insert a call for raising the exception because
30876         that is currently done by the run time.
30877
30878         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30879
30880         * init.c: Add the global variable __gl_detect_blocking that indicates
30881         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30882         making the pragma available at run time.
30883         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30884
30885         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30886         pragma Detect_Blocking is active.
30887
30888         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30889
30890         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30891         DB is found in the ali file. Any unit compiled with pragma
30892         Detect_Blocking active forces its effect in the whole partition.
30893
30894         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30895         Detect_Blocking is active and delay is called from a protected
30896         operation.
30897
30898         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30899         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30900         Detect_Blocking is active (0 otherwise).
30901         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30902         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30903         otherwise).
30904
30905 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30906
30907         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30908         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30909         package.
30910
30911         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30912         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30913         Update API in placeholder implemetation of s-parint to reflect changes
30914         in distribution runtime library.
30915
30916         * sem_ch3.adb (Expand_Derived_Record): Rename to
30917         Expand_Record_Extension.
30918
30919         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30920         primitive operations of potentially distributed object types that have
30921         non-controlling anonymous access formals.
30922
30923         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30924         subprogram.
30925         New implementation of expansion for remote access-to-subprogram types,
30926         based on the RACW infrastructure.
30927         This version of sem_dist is compatible with PolyORB/DSA as well as
30928         GLADE.
30929
30930         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30931         Asynchrronous that applies to a remote access-to-subprogram type, mark
30932         the underlying RACW type as asynchronous.
30933
30934         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30935          __gnat_using_gnu_linker to 1.
30936
30937         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30938         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30939         GNAT.Perfect_Hash_Generators, and remove the empty
30940         GNAT.Perfect_Hash package.
30941
30942         * atree.adb: Minor reformatting
30943
30944         * exp_ch3.adb (Expand_Derived_Record): Rename to
30945         Expand_Record_Extension.
30946         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30947         a component declaration must remain attached at that point in the
30948         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30949         It is therefore necessary to take a copy of the expression when building
30950         the corresponding assignment statement in the init proc.
30951         As a side effect, in the case of a derived record type, we now see the
30952         original expression, without any rewriting that could have occurred
30953         during expansion of the ancestor type's init proc, and we do not need
30954         to go back to Original_Node.
30955
30956         * exp_ch3.ads (Expand_Derived_Record): Rename to
30957         Expand_Record_Extension.
30958
30959         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30960         Returns the RACW type used to implement a remote access-to-subprogram
30961         type.
30962         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30963         New subprograms. Used to create a proxy tagged object for a remote
30964         subprogram. The proxy object is used as the designated object
30965         for RAS values on the same partition (unless All_Calls_Remote applies).
30966         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30967         System.Partition_Interface.Get_Unique_Remote_Pointer.
30968         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30969         Renamed from Add_RAS_*_Attribute.
30970         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30971         subprograms.
30972         New implementation of expansion for remote access-to-subprogram types,
30973         based on the RACW infrastructure.
30974
30975         * exp_dist.ads (Copy_Specification): Update comment to note that this
30976         function can copy the specification from either a subprogram
30977         specification or an access-to-subprogram type definition.
30978
30979 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30980
30981         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30982         in an instance, between an explicit subprogram an one inherited from a
30983         type derived from an actual.
30984
30985         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30986         add a polling call if the subprogram is to be inlined by the back-end,
30987         to avoid repeated calls with multiple inlinings.
30988
30989         * checks.adb (Apply_Alignment_Check): If the expression in the address
30990         clause is a call whose name is not a static entity (e.g. a dispatching
30991         call), treat as dynamic.
30992
30993 2004-09-09  Robert Dewar  <dewar@gnat.com>
30994
30995         * g-trasym.ads: Minor reformatting
30996
30997         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30998         packed arrays, since unused bits are expected to be zero for a
30999         comparison.
31000
31001 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
31002
31003         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31004         comment.
31005
31006 2004-09-09  Pascal Obry  <obry@gnat.com>
31007
31008         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31009         enable map file generation. Add the right option to generate the map
31010         file if Map_File is set to True.
31011
31012         * gnatdll.adb (Gen_Map_File): New variable.
31013         (Syntax): Add info about new -m (Map_File) option.
31014         (Parse_Command_Line): Add support for -m option.
31015         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31016         Minor reformatting.
31017
31018 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
31019
31020         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31021         new gnatdist implementation.
31022         Define a subpackage isolating the output routines specific to this
31023         verbose mode.
31024
31025 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
31026
31027         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31028
31029         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31030
31031 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
31032
31033         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31034         internal unit.
31035
31036         * opt.ads: Add Ada_Version_Runtime constant used to decide which
31037         version of the language is used to compile the run time.
31038
31039 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
31040
31041         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31042         of variable length temporaries for function return now that the
31043         back-end and gigi support it.
31044
31045 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31046
31047         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31048
31049         * trans.c (struct stmt_group): Delete field GLOBAL.
31050         (gnat_init_stmt_group): Do not initialize it.
31051         (call_to_gnu): Use save_expr, not protect_multiple_eval.
31052         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31053         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31054         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31055         (start_stmt_group): Likewise.
31056         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31057
31058         * utils2.c (ggc.h): Include.
31059         (build_call_raise): Call build_int_cst, not build_int_2.
31060
31061         * utils.c (gnat_init_decl_processing): Fix arg to
31062         build_common_tree_nodes.
31063         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31064         (gnat_define_builtin): Set built_in_decls.
31065         (init_gigi_decls): Call build_int_cst, not build_int_2.
31066
31067         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31068         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31069         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31070         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31071         SET_TYPE_MODULE): Use them.
31072         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31073         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31074         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31075         SET_TYPE_ADA_SIZE): Likewise.
31076         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31077         (DECL_CONST_CORRESPONDING_VAR,
31078         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31079         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31080         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31081         (TYPE_RM_SIZE_NUM): New macro.
31082         (TYPE_RM_SIZE): Modified to use above.
31083
31084         * cuintp.c: (build_cst_from_int): New function.
31085         (UI_To_gnu): Use it.
31086
31087         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31088         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31089         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31090         MIN_EXPR for the size, copy it into new.
31091
31092 2004-09-01  Robert Dewar  <dewar@gnat.com>
31093
31094         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31095         packed indexed component where array is an IN OUT formal. This
31096         generated garbage code previously.
31097
31098         * gnat_ugn.texi: Document -fverbose-asm
31099
31100         * gnat-style.texi: Minor updates (note that boolean constants and
31101         variables are joined with AND/OR rather than short circuit forms).
31102
31103 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
31104
31105         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31106         it is an upward conversion of an untagged type with no representation
31107         change.
31108
31109 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
31110
31111         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31112         System.Partition_Interface.
31113
31114         * checks.adb (Apply_Access_Checks): Do not generate checks when
31115         expander is not active (but check for unset reference to prefix of
31116         dereference).
31117
31118         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31119         pragma Debug as an if statement with a constant condition, for
31120         consistent treatment of entity references contained within the
31121         enclosed procedure call.
31122
31123 2004-09-01  Vincent Celier  <celier@gnat.com>
31124
31125         * bindgen.adb: (Set_EA_Last): New procedure
31126         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31127         Set_EA_Last.
31128         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31129         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31130         linked without errors.
31131         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31132         ST and EA.
31133         (Gen_Exception_Table_C): Correct same bugs
31134
31135         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31136
31137         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31138         on Windows, make sure that the drive letter is in upper case.
31139
31140         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31141         Windows, when the drive letter is added and Case_Sensitive is True, the
31142         drive letter is forced to upper case.
31143
31144         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31145         to Options_2 for the call to MLib.Utl.Gcc.
31146
31147         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31148         directory separator when defining BASE_DIR.
31149
31150 2004-09-01  Pascal Obry  <obry@gnat.com>
31151
31152         * gprcmd.adb (Extend): Do not output trailing directory separator. This
31153         is not needed and it confuses Windows GNU/make which does not report
31154         directory terminated by a slash as a directory.
31155         (gprcmd): Idem for "pwd" internal command.
31156
31157         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31158         target names rewrite to fix regressions with recent version of
31159         GNU/make. Starting with GNU/make 3.80 the pipe character was not
31160         handled properly anymore.
31161
31162 2004-09-01  Andreas Schwab  <schwab@suse.de>
31163
31164         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31165         * raise.c [!IN_RTS]: Undef abort.
31166
31167 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
31168
31169         * utils2.c (build_allocator): Use ssize_int.
31170
31171         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31172
31173 2004-08-27  Andreas Schwab  <schwab@suse.de>
31174
31175         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31176
31177 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31178             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31179
31180         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31181
31182 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31183
31184         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31185         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31186         * utils.c (init_gigi_decls): Likewise.
31187         * utils2.c (build_call_raise, build_allocator): Likewise.
31188
31189 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
31190
31191         * utils.c (gnat_init_decl_processing): Adjust
31192         build_common_tree_nodes call.
31193
31194 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
31195
31196         * utils2.c (build_allocator): Use build_int_cst for negative
31197         size types.
31198
31199 2004-08-18  Richard Henderson  <rth@redhat.com>
31200
31201         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31202
31203 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
31204
31205         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31206         call.s
31207         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31208         (gnat_to_gnu): Likewise.
31209
31210 2004-08-16  Pascal Obry  <obry@gnat.com>
31211
31212         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31213         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31214         option and not mdll anymore. Update comment.
31215
31216 2004-08-16  Pascal Obry  <obry@gnat.com>
31217
31218         * bld.adb (Put_Include_Project): Properly handle directory separators
31219         on Windows.
31220
31221 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
31222
31223         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31224         decreasing the number of allocated junk nodes while searching for the
31225         appropriate subprogram.
31226
31227 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
31228
31229         * cuintp.c (UI_To_gnu): Use build_int_cst..
31230         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31231         * utils.c (init_gigi_decls): Likewise.
31232         * utils2.c (build_call_raise): Likewise.
31233
31234 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
31235
31236         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31237         for a global aliased object with a variable size and an unconstrained
31238         nominal subtype, pretend there is no initializer if the one we have is
31239         incomplete, and avoid referencing an inexistant component in there. The
31240         part we have will be rebuilt anyway and the reference may confuse
31241         further operations.
31242
31243 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
31244
31245         * einfo.ads: Minor reformatting
31246
31247         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31248         restrictions in the ALI if we only want to warn about violations.
31249
31250 2004-08-13  Vincent Celier  <celier@gnat.com>
31251
31252         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31253         when creating a new Unit_Record in table Units.
31254
31255         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31256         that are violated, if any.
31257
31258         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31259         add directory separator if path already ends with a directory separator.
31260
31261 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31262
31263         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31264         unit, this is an attempt to inline a construct that is not available in
31265         the current restricted mode, so abort rather than trying to continue.
31266
31267         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31268         discriminants that rename those of the parent, recover names of
31269         original discriminants for the constraint on the full view of the
31270         parent.
31271         (Complete_Private_Subtype): Do not create a subtype declaration if the
31272         subtype is an itype.
31273
31274         * gnat_rm.texi: Added section on implementation of discriminated
31275         records with default values for discriminants.
31276
31277 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31278
31279         PR ada/15601
31280         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31281         the second operand is overloaded.
31282
31283 2004-08-10  Richard Henderson  <rth@redhat.com>
31284
31285         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31286         add __builtin_alloca.
31287
31288 2004-08-10  Richard Henderson  <rth@redhat.com>
31289
31290         * config-lang.in (boot_language): Yes.
31291
31292 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
31293
31294         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31295         from complaining on potential uninitialized reference.
31296         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31297         new specification and test explicitly for non-zero return value.
31298
31299         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31300         returning C.int, to avoid using a derived boolean type.
31301
31302         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31303         Duplicate_Subexpr_No_Checks in preference to direct use of
31304         Remove_Side_Effects and New_Copy_Tree.
31305         Clear Comes_From_Source on prefix of 'Size attribute reference.
31306
31307         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31308         g-socthi-vxworks.adb: Change calls to
31309         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31310         and test explicitly for non-zero return value.
31311
31312         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31313         (Is_Socket_In_Set): Declare imported function as returning C.int, to
31314         avoid using a derived boolean type.
31315
31316 2004-08-09  Albert Lee  <lee@gnat.com>
31317
31318         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31319
31320 2004-08-09  Pascal Obry  <obry@gnat.com>
31321
31322         * gnat_ugn.texi: Document new way to build DLLs on Windows using
31323         GCC's -shared option.
31324
31325         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31326         Options_2 parameter (options put after object files).
31327
31328 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
31329
31330         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31331         ignore overflows on low and high bounds of an index to also account for
31332         differences in signedness between sizetype and gnu_index_subtype.
31333         These are as legitimate as the ones caused by a lower TYPE_PRECISION
31334         on sizetype.
31335
31336 2004-08-09  Robert Dewar  <dewar@gnat.com>
31337
31338         * s-solita.ads, s-solita.adb: Minor reformatting
31339
31340         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31341         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31342         obsolescent section
31343         Add note that No_Implicit_Conditionals does not suppress
31344         run time constraint checks.
31345
31346         * vms_conv.ads: Minor reformatting
31347
31348         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31349         and necessary for following change).
31350         (Mark): Return new format Mark_Id containing sec stack address
31351         (Release): Use sec stack address from Mark_Id avoiding Self call
31352
31353         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31354         pointer (cleanup and necessary for following change).
31355         Define Mark_Id as record containing address of secondary stack, that way
31356         Release does not need to find the stack again, decreasing the number of
31357         calls to Self and improving efficiency.
31358
31359         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31360
31361         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31362         case variable into the individual case branches when possible.
31363
31364         * sem_ch11.adb: Minor reformatting
31365
31366         * prj.ads: Correct spelling of suffixs
31367
31368         * prj-nmsc.adb: Minor reformatting
31369         Correct spelling suffixs throughout (also in identifiers)
31370
31371         * freeze.adb: Minor spelling correction
31372
31373         * exp_ch2.adb: Cleanups to handling of Current_Value
31374         (no functional effect).
31375
31376         * bld.adb: Correct spelling of suffixs
31377
31378         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31379
31380 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31381
31382         PR ada/15408
31383         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31384         package or of a child, private entities are both immediately_visible
31385         and not hidden.
31386
31387 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31388
31389         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31390         there are no range checks on the value of the literal.
31391
31392         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31393         wrapped is the triggering alternative of an asynchronous select, action
31394         statements mustbe inserted before the select itself.
31395
31396         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31397         case where the prefix is a protected function call.
31398         (Resolve_Attribute, case 'Access): The attribute reference on a
31399         subprogram is legal in a generic body if the subprogram is declared
31400         elsewhere.
31401
31402 2004-08-09  Vincent Celier  <celier@gnat.com>
31403
31404         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31405         languages, otherwise building the library may fail with unresolved
31406         symbols.
31407         (Compile_Sources): Do not build libraries if -c switch is used
31408
31409         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31410         (Write_Usage): If map file creation is supported, output new switches
31411         -M and -Mmap.
31412         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31413         gcc call, when supported.
31414
31415         * Makefile.in: Added indepsw.o to the object list for gnatlink
31416         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31417
31418         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31419         indepsw.adb, indepsw.ads: New files.
31420
31421 2004-08-09  Bernard Banner  <banner@gnat.com>
31422
31423         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31424
31425         * Makefile.in: add section for vxworks x86
31426
31427 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31428
31429         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31430         per-object constrained components where the discriminant is of an
31431         Access type.
31432         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31433         the parent initialization procedure for derived Unchecked_Unions.
31434         Instead, derived Unchecked_Unions build their own initialization
31435         procedure.
31436         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31437         Check the body of the subprogram for details.
31438         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31439         functions for derived Unchecked_Union types by introducing a condition.
31440         Allow the creation of TSS equality functions for Unchecked_Unions.
31441         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31442         Add formal parameter Discr to function signature. Discr is used to
31443         control the generated case statement for Unchecked_Union types.
31444         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31445
31446         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31447         Unchecked_Unions.
31448         Check the body of the subprogram for details.
31449         (Expand_Composite_Equality): Augment composite type equality to include
31450         correct handling of Unchecked_Union components.
31451         (Expand_N_In): Add condition to detect illegal membership tests when the
31452         subtype mark is a constrained Unchecked_Union and the expression lacks
31453         inferable discriminants, and build a Raise_Program_Error node.
31454         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31455         to detect types that contain components of unconstrained Unchecked_Union
31456         subtype. Add condition to detect equality between types that have an
31457         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31458         node. Add condition to detect equality between Unchecked_Union types
31459         that lack inferable discriminants, and build a Raise_Program_Error node.
31460         Otherwise build a TSS equality function call.
31461         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31462         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31463         with the operand lacking inferable discriminants, and build a Raise_
31464         Program_Error node.
31465         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31466         composite equality.
31467         (Has_Inferable_Discriminants): Implement new predicate for objects and
31468         expressions of Unchecked_Union type. Check the body of subprogram for
31469         details.
31470         (Has_Unconstrained_UU_Components): Add function
31471         Component_Is_Unconstrained_UU. It is used to detect whether a single
31472         component is of an unconstrained Unchecked_Union subtype. Add function
31473         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31474         component inside a variant is of an unconstrained Unchecked_Union type.
31475
31476         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31477         inferred discriminant values. Add condition to generate a case
31478         statement with an inferred discriminant as the switch.
31479         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31480         the behaviour of the subprogram in the presence of an Unchecked_Union.
31481         Add condition to trigger the usage of the inferred discriminant value
31482         as the generated case statement switch.
31483         (Make_Field_Assign): Introduce a Boolean flag that determines the
31484         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31485         condition to trigger the usage of the inferred discriminant value as
31486         the right-hand side of the generated assignment.
31487
31488         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31489         parameter generation when dealing with Unchecked_Unions.
31490
31491         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31492         checks for Unchecked_Unions.
31493
31494         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31495
31496         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31497         Raise_Program_Error nodes for the execution of Read and Write
31498         attributes of Unchecked_Union types and the execution of Input and
31499         Output attributes of Unchecked_Union types that lack default
31500         discriminant values.
31501
31502         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31503         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31504         per-object constrained components of Unchecked_Unions for being
31505         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31506         check individual components withing a variant.
31507
31508         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31509         comparison of Unchecked_Unions.
31510         (Resolve_Equality_OP): Remove guard that prevents equality between
31511         Unchecked_Unions.
31512
31513         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31514         of component subtypes for Unchecked_Union components.
31515         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31516         since it is the actual subtype.
31517
31518         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31519         pass of Unchecked_Union subtypes as generic actuals to formal types
31520         that lack known_discriminant_parts or that are derived Unchecked_Union
31521         types, and do nothing. In any other case, produce an error message.
31522
31523         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31524         Contains_POC. It determines whether a constraint uses the discriminant
31525         of an enclosing record type.
31526         Add condition to detect per-object constrained component and set the
31527         appropriate flag.
31528         (Derived_Type_Declaration): Remove guard that prevents derivation from
31529         Unchecked_Union types.
31530         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31531         Union subtypes.
31532
31533         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31534         references to Unchecked_Union discriminants.
31535
31536         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31537         formal generation when dealing with Unchecked_Unions.
31538         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31539         subtypes for Unchecked_Unions.
31540
31541         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31542         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31543         completions of discriminated partial views by Unchecked_Unions and
31544         produce an error message.
31545
31546 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31547
31548         * trans.c (struct stmt_group): New field, GLOBAL.
31549         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31550         (struct elab_info): New struct.
31551         (elab_info_list, gnu_elab_proc_stack): New variables.
31552         (Compilation_Unit_to_gnu): New procedure.
31553         (gigi): Call it and also handle elaboration procs we've saved.
31554         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31555         global field from parent.
31556         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31557         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31558         (start_stmt_group): Initialize global field from parent.
31559         (add_decl_expr): Set to global for current statement group.
31560         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31561         post.
31562
31563         * utils.c (global_bindings_p): True when no current_function_decl; no
31564         longer check current_binding_level.
31565
31566 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31567
31568         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31569         choice.
31570
31571         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31572
31573 2004-08-06  Andreas Schwab  <schwab@suse.de>
31574
31575         * utils.c (gnat_define_builtin): Remove second parameter of
31576         make_decl_rtl.
31577         (begin_subprog_body): Likewise.
31578
31579 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31580
31581         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31582         optimization, not supported by the tree-ssa back-end.
31583
31584 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31585
31586         * s-mastop-irix.adb: Update comments.
31587
31588         * a-except.adb (Exception_Information): Raise Constraint_Error if
31589         exception Id is Null_Id.
31590         This is required behavior, which is more reliably and clearly checked
31591         at the top level interface level.
31592
31593 2004-07-26  Javier Miranda  <miranda@gnat.com>
31594
31595         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31596         call if a component has no default_expression and the box is used.
31597
31598         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31599         default_expression and you use box, it behaves as if you had declared a
31600         stand-alone object.
31601         (Resolve_Record_Aggregate): If a component has no default_expression and
31602         you use box, it behaves as if you had declared a stand-alone object.
31603
31604         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31605         entities of private-with siblings.
31606
31607 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31608
31609         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31610         for a component of an itype, set the parent pointer for analysis,
31611         there is no list in which to insert it.
31612
31613         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31614         bona-fide renamings, not for inherited operations.
31615
31616         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31617         actual for a formal that is an access parameter, create local
31618         finalization list even if the expression is not an aggregate.
31619
31620 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31621
31622         PR ada/16213
31623         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31624         Diagnose properly illegal subprogram renamings that are library units.
31625
31626 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31627
31628         PR ada/15588
31629         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31630         conversion rewritten as an unchecked conversion, check that original
31631         expression is a variable.
31632
31633         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31634         unchecked_conversion, create new node rather than rewriting in place,
31635         to preserve original construct.
31636
31637 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31638
31639         * gigi.h (gnat_expand_body): Deleted.
31640
31641         * Make-lang.in: (trans.o): Depends on function.h.
31642
31643         * misc.c: (gnat_expand_body): Moved to here.
31644
31645         * trans.c (gnat_expand_body_1): Deleted.
31646         (gnat_expand_body): Moved from here.
31647         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31648         (add_stmt): Check for marked visited with global_bindings_p.
31649         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31650         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31651
31652         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31653         VIEW_CONVERT_EXPR if not operation type.
31654
31655         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31656         fat pointer.
31657
31658         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31659         changes: reformatting of negation operators, removing unneeded
31660         inequality comparison with zero, converting equality comparisons with
31661         zero to negations, changing int/0/1 to bool/false/true, replace calls
31662         to gigi_abort with abort, and various other similar changes.
31663
31664 2004-07-26  Vincent Celier  <celier@gnat.com>
31665
31666         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31667         "setup".
31668
31669         * make.adb (Gnatmake): Fail when a library is not present and there is
31670         no object directory.
31671
31672         * mlib-prj.adb (Check_Library): No need to check if the library needs
31673         to be rebuilt if there is no object directory, hence no object files
31674         to build the library.
31675
31676         * opt.ads (Setup_Projects): New Boolean flag.
31677
31678         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31679         Location.
31680         Create directory when Kind /= "" and in "gnat setup". Report error if
31681         directory cannot be created.
31682         (Ada_Check): Create library interface copy dir if it does not exist
31683         and we are in "gnat setup".
31684         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31685         found.
31686         (Language_Independent_Check): Create object directory, exec directory
31687         and/or library directory if they do not exist and we are in
31688         "gnat setup".
31689
31690         * vms_conv.ads: (Command_Type): New command Setup.
31691
31692         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31693
31694         * vms_data.ads: Add qualifiers/switches for new built-in command
31695         "setup".
31696
31697 2004-07-25  Richard Henderson  <rth@redhat.com>
31698
31699         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31700         DECL_IGNORED_P on RESULT_DECL.
31701
31702 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31703
31704         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31705         allocation and potentially overflowing update with
31706         Tailored_Exception_Information. Use the sec-stack free procedural
31707         interface to output Exception_Information instead.
31708
31709         * a-except.adb (To_Stderr): New subprogram for character, and string
31710         version moved from a-exextr to be visible from other separate units.
31711         (Tailored_Exception_Information): Remove the procedural version,
31712         previously used by the default Last_Chance_Handler and not any more.
31713         Adjust various comments.
31714
31715         * a-exexda.adb: Generalize the exception information procedural
31716         interface, to minimize the use of secondary stack and the need for
31717         local buffers when the info is to be output to stderr:
31718         (Address_Image): Removed.
31719         (Append_Info_Character): New subprogram, checking for overflows and
31720         outputing to stderr if buffer to fill is of length 0.
31721         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31722         (Append_Info_Address, Append_Info_Exception_Name,
31723         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31724         Append_Info_Basic_Exception_Traceback,
31725         Append_Info_Exception_Information): New subprograms.
31726         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31727         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31728         Exception_Info_Maxlength, Exception_Name_Length,
31729         Exception_Message_Length): New subprograms.
31730         (Exception_Information): Use Append_Info_Exception_Information.
31731         (Tailored_Exception_Information): Use
31732         Append_Info_Basic_Exception_Information.
31733         Export services for the default Last_Chance_Handler.
31734
31735         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31736         other separate units.
31737
31738 2004-07-20  Vincent Celier  <celier@gnat.com>
31739
31740         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31741
31742 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31743
31744         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31745         emit itype references for the designated types of component types that
31746         are declared outside of the full record declaration, and that may
31747         denote a partial view of that record type.
31748
31749 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31750
31751         PR ada/15607
31752         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31753         which is the designated type in an access component declaration, to the
31754         list of incomplete dependents of the parent type, to avoid elaboration
31755         issues with out-of-scope subtypes.
31756         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31757         full view of the parent.
31758
31759 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31760
31761         PR ada/15610
31762         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31763         entities that are hidden, such as references to generic actuals
31764         outside an instance.
31765
31766 2004-07-20  Javier Miranda  <miranda@gnat.com>
31767
31768         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31769         support to the new notation.
31770         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31771
31772 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31773
31774         * s-taprob.adb: Adding the elaboration code required for initializing
31775         the tasking soft links that are common to the full and the restricted
31776         run times.
31777
31778         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31779         restricted run time has been moved to the package
31780         System.Soft_Links.Tasking.
31781
31782         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31783         restricted run time has been moved to the package
31784         System.Soft_Links.Tasking.
31785
31786         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31787
31788         * s-solita.ads, s-solita.adb: New files.
31789
31790 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31791
31792         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31793         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31794         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31795         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31796         Exception_Handler_to_gnu_zcx): Likewise.
31797
31798 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31799
31800         * gigi.h (builtin_function): Declare.
31801
31802 2004-07-15  Robert Dewar  <dewar@gnat.com>
31803
31804         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31805         reformatting
31806
31807         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31808         access values as an example of a warning.
31809
31810         * gnat_rm.texi: Document new attribute Has_Access_Values
31811
31812         * gnat-style.texi: Document that box comments belong on nested
31813         subprograms
31814
31815         * sem_util.ads (Has_Access_Values): Improved documentation
31816
31817         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31818
31819         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31820         (Process_Interface_Name): Call to this new procedure
31821         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31822
31823         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31824
31825         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31826
31827         * einfo.ads: Minor comment typo fixed
31828
31829 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31830
31831         * snames.adb: Add _atcb.
31832
31833         * snames.ads: Add Name_uATCB.
31834
31835         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31836         (in the expanded code) when using the restricted run time.
31837
31838         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31839         a in parameter in order to allow ATCBs to be preallocated (in the
31840         expanded code).
31841
31842         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31843         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31844         deallocated in System.Tasking.Stages.
31845
31846         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31847         order to allow ATCBs to be preallocated.
31848
31849         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31850         here. It was previously done in Initialize_ATCB.
31851
31852         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31853
31854         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31855         Restricted run time.
31856
31857         * exp_ch3.adb: When using the Restricted run time, pass the
31858         preallocated Ada_Task_Control_Block when creating a task.
31859
31860 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31861
31862         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31863         function call that is itself an actual in an enclosing call, diagnose
31864         problem here rather than assuming that resolution will catch it.
31865
31866         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31867         the local copy of a generic unit for a formal package, and the generic
31868         is a child unit, install private part of ancestors before compiling
31869         private part of spec.
31870
31871         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31872         use scope entities rather than tree structures, to handle properly
31873         parent units that are instances rewritten as bodies for inlining
31874         purposes.
31875
31876         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31877         Remove_Parents): Handle properly a parent unit that is an
31878         instantiation, when the unit has been rewritten as a body for inlining
31879         purposes.
31880
31881         * par.adb (Goto_List): Global variable to collect goto statements in a
31882         given unit, for use in detecting natural loops.
31883
31884         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31885         use in detecting natural loops.
31886
31887         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31888         backwards goto's, and rewrite as a infinite loop, to improve locality
31889         of temporaries.
31890
31891         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31892         subcomponent that includes an indexed reference, to prevent the
31893         generation of copies that would miscompile the desired assignment
31894         statement.
31895         (Build_Task_Image_Decls): Add a numeric suffix to
31896         generated name for string variable, to avoid spurious conflicts with
31897         the name of the type of a single protected object.
31898
31899         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31900         loop with an explicit exit statement, to avoid generating an
31901         out-of-range value with 'Succ leading to spurious constraint_errors
31902         when compiling with -gnatVo.
31903
31904 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31905
31906         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31907         might not be analyzed yet, even if its Etype is already set (case of an
31908         unchecked conversion built using Unchecked_Convert_To, for example).
31909         If the prefix has already been analyzed, this will be a nop anyway.
31910
31911         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31912         controller type, or an assignment of a record type with controlled
31913         components, copy only user data, and leave the finalization chain
31914         pointers untouched.
31915
31916 2004-07-15  Vincent Celier  <celier@gnat.com>
31917
31918         * make.adb (Collect_Arguments): Improve error message when attempting
31919         to compile a source not part of any project, when -x is not used.
31920
31921         * prj.ads: (Defined_Variable_Kind): New subtype
31922
31923         * prj-attr.adb (Register_New_Package): Two new procedures to register
31924         a package with or without its attributes.
31925         (Register_New_Attribute): Mew procedure to register a new attribute in a
31926         package.
31927         New attribute oriented subprograms: Attribute_Node_Id_Of,
31928         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31929         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31930         Next_Attribute.
31931         New package oriented subprograms: Package_Node_Id_Of,
31932         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31933
31934         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31935         type.
31936         (Package_Node_Id): Now a private, self initialized type
31937         (Register_New_Package): New procedure to register a package with its
31938         attributes.
31939         New attribute oriented subprograms: Attribute_Node_Id_Of,
31940         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31941         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31942         Next_Attribute.
31943         New package oriented subprograms: Package_Node_Id_Of,
31944         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31945
31946         * prj-dect.adb (Parse_Attribute_Declaration,
31947         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31948
31949         * prj-makr.adb (Make): Parse existing project file before creating
31950         other files. Fail if there was an error during parsing.
31951
31952         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31953         new spec of Prj.Attr.
31954
31955         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31956         to new spec of Prj.Attr.
31957
31958 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31959
31960         * utils2.c: Fix typo in comment.
31961
31962 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31963
31964         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31965         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31966
31967 2004-07-14  Andreas Schwab  <schwab@suse.de>
31968
31969         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31970
31971 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31972
31973         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31974         object type.
31975         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31976         TYPE_STUB_DECL.
31977
31978         * misc.c (gnat_types_compatible_p): New function.
31979         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31980         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31981
31982         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31983         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31984         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31985         (mark_visited): Don't mark dummy type.
31986         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31987         parameter, we must remove any LJM building from GNU_NAME.
31988         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31989         (pos_to_constructor): Use int_const_binop.
31990         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31991         PARM_DECL.
31992
31993         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31994         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31995         (gnat_install_builtins): Add __builtin_memset.
31996
31997 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31998
31999         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32000         for a renaming, stabilize the initialization expression if we are at a
32001         local level.  At the local level, uses of the renaming may be performed
32002         by a direct dereference of the initializing expression, and we don't
32003         want possible variables there to be evaluated for every use.
32004
32005         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32006         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32007         them on the way.  Account for the fact that we may introduce side
32008         effects in the process.
32009
32010 2004-07-13  Richard Henderson  <rth@redhat.com>
32011
32012         * misc.c (default_pass_by_ref): Use pass_by_reference.
32013
32014 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
32015
32016         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32017         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32018
32019 2004-07-08  Richard Henderson  <rth@redhat.com>
32020
32021         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32022         commentary.
32023
32024 2004-07-06  Vincent Celier  <celier@gnat.com>
32025
32026         * vms_conv.ads: Minor reformatting.
32027         Alphabetical order for enumerated values of type Command_Type, to have
32028         the command in alphabetical order for the usage.
32029
32030         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32031         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32032
32033         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32034
32035         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32036         (Add_Archive_Path): Only add the global archive if there is one.
32037         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32038         or not any object file to put in the global archive, and don't build
32039         a global archive if there is none.
32040         (X_Switches): New table
32041         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32042         in the X_Switches table, if any.
32043         (Initialize): Make sure the X_Switches table is empty
32044         (Scan_Arg): Record -X switches in table X_Switches
32045
32046         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32047
32048         * make.adb: Minor comment fix
32049
32050         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32051         invoked with directory information, add the directory in front of the
32052         path.
32053
32054         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32055         invoked with directory information, add the directory in front of the
32056         path.
32057
32058         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32059         when Keep_Temporary_Files is False.
32060         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32061         directory information, add the directory in front of the path.
32062         When not on VMS, handle new switch -dn before the command to set
32063         Keep_Temporary_Files to True.
32064         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32065         everywhere.
32066
32067         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32068         invoked with directory information, add the directory in front of the
32069         path.
32070
32071 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
32072
32073         * snames.ads, snames.adb (Name_Stub): New name for the distributed
32074         systems annex.
32075
32076         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32077         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32078
32079         * g-socket.adb (To_Timeval): Fix incorrect conversion of
32080         Selector_Duration to Timeval for the case of 0.0.
32081
32082         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32083         documentation from Evolve_And_Then.
32084
32085 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
32086
32087         * s-taprop-tru64.adb, s-taprop-os2.adb,
32088         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32089
32090 2004-07-06  Robert Dewar  <dewar@gnat.com>
32091
32092         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32093         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32094         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32095         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32096         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32097         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32098         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32099         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32100         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32101         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32102         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32103         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32104         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32105         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32106         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32107         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32108         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32109         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32110         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32111         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32112         vms_data.ads: Minor reformatting,
32113         Fix bad box comment format.
32114
32115         * gnat_rm.texi: Fix minor grammatical error
32116
32117         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32118
32119         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32120         more cases of discriminated records to be recognized as not needing a
32121         secondary stack.
32122         (Has_Access_Values): New function.
32123
32124         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32125
32126         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32127         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32128         with LRM terminology).
32129         Change terminology in comments primitive type => elementary type.
32130
32131 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32132
32133         PR ada/15602
32134         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32135         parameters do not impose any requirements on the presence of a body.
32136
32137 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32138
32139         PR ada/15593
32140         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32141         compilation unit and is in an open scope at the point of instantiation,
32142         assume that a body may be present later.
32143
32144 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
32145
32146         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32147         Improve error message when specified size is not supported.
32148
32149         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32150         is never a primitive operation.
32151
32152 2004-07-05  Andreas Schwab  <schwab@suse.de>
32153
32154         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32155         RECORD_OR_UNION_CHECK.
32156         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32157
32158 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
32159
32160         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32161         dependency on xgnatugn, instead build it via a submake.
32162         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32163
32164 2004-07-04  Richard Henderson  <rth@redhat.com>
32165
32166         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32167
32168 2004-07-01  Richard Henderson  <rth@redhat.com>
32169
32170         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32171         * utils.c (max_size): Likewise.
32172
32173 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32174
32175         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32176         and rest_of_type_compilation; add arg to create_*_decl.
32177         (annotate_decl_with_node): Deleted.
32178         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32179         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32180         (get_current_block_context, gnat_pushdecl): New declarations.
32181         (gnat_init_stmt_group): Likewise.
32182         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32183         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32184         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32185         (gnat_init): Call gnat_init_stmt_group.
32186         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32187         (gnu_pending_elaboration_list): Deleted.
32188         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32189         (gigi): Rearrange initialization calls and move some to last above.
32190         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32191         Delete calls to add_decl_expr; add arg to create_*_decl.
32192         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32193         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32194         begin_subprog_body and call it.
32195         Don't push and pop ggc context.
32196         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32197         (add_stmt): Remove handling of DECL_EXPR from here.
32198         If not in function, mark visited.
32199         (add_decl_expr): Put global at top level.
32200         Check for cases of DECL_INITIAL we have to handle here.
32201         (process_type): Add extra arg to create_type_decl.
32202         (build_unit_elab): Rework to just gimplify.
32203         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32204         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32205         (get_pending_elaborations, pending_elaborations_p): Likewise.
32206         (push_pending_elaborations, pop_pending_elaborations): Likewise.
32207         (get_elaboration_location, insert_elaboration_list): Likewise.
32208         (gnat_binding_level): Renamed from ada_binding_level.
32209         (init_gnat_to_gnu): Don't clear pending_elaborations.
32210         (global_bindings_p): Treat as global if no current_binding_level.
32211         (set_current_block_context): New function.
32212         (gnat_pushdecl): Renamed from pushdecl; major rework.
32213         All callers changed.
32214         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32215         (finish_record_type): Call call pushdecl for stub decl.
32216         (function_nesting_depth): Deleted.
32217         (begin_subprog_body): Delete obsolete code.
32218         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32219
32220 2004-06-28  Robert Dewar  <dewar@gnat.com>
32221
32222         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32223         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32224         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32225         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32226         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32227
32228         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32229         deal with problem of inefficient slices on machines with strict
32230         alignment, when the slice is a component of a composite.
32231
32232         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32233         machines, we need the check there as well.
32234
32235 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32236
32237         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32238         determine safe copying direction for overlapping slice assignments
32239         when component is controlled.
32240
32241         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32242         formal derived type in the actual for a formal package are visible in
32243         the enclosing instance.
32244
32245 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32246
32247         PR ada/15600
32248         * sem_util.adb (Trace_Components): Diagnose properly an illegal
32249         circularity involving a private type whose completion includes a
32250         self-referential component.
32251         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32252         renaming or an instantiation from an implicit derived operation.
32253
32254 2004-06-28  Pascal Obry  <obry@gnat.com>
32255
32256         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32257         DLL.
32258         (Library_File_Name_For): Idem.
32259
32260 2004-06-28  Matthew Gingell  <gingell@gnat.com>
32261
32262         * g-traceb.ads: Add explanatory note on the format of addresses
32263         expected by addr2line.
32264
32265 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
32266
32267         * Makefile.in: Force debugging information on s-tasdeb.adb,
32268         a-except.adb and s-assert.adb needed by the debugger.
32269
32270 2004-06-28  Vincent Celier  <celier@gnat.com>
32271
32272         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32273         Need_To_Build_Lib.
32274         (Gnatmake): Ditto.
32275
32276         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32277
32278         * prj.adb: Minor reformatting
32279         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32280
32281         * prj.ads: Comment updates
32282         Minor reformatting
32283         (Project_Data): Change Flag1 to Need_To_Build_Lib.
32284         Remove Flag2: not used.
32285
32286         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32287         declaration.
32288
32289         * gnat_ugn.texi: Put a "null;" declaration in one project file example
32290
32291         * gnat_rm.texi: Document Empty declarations "null;".
32292
32293         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32294         front of the linker options.
32295         (Link_Foreign): Put the global archives and the libraries in front of
32296         the linker options.
32297
32298 2004-06-28  Javier Miranda  <miranda@gnat.com>
32299
32300         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32301         (RTU_Loaded): Code cleanup
32302         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32303         withed predefined units.
32304
32305         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32306         explicitly withed predefined units.
32307         Fix typo in comment
32308
32309         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32310         explicitly withed predefined units.
32311
32312 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32313
32314         * ada-tree.def (DECL_STMT): Deleted.
32315         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32316         (DECL_STMT_VAR): Deleted.
32317         * decl.c: add_decl_stmt now add_decl_expr.
32318         * gigi.h: Likewise.
32319         * trans.c: Likewise.
32320         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32321         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32322         (add_stmt): Only handle padded type here.
32323         (add_stmt_with_node): Allow gnat_node to not be present.
32324         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32325         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32326         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32327         make a SAVE_EXPR for the entire fat pointer.
32328         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32329         (create_index_type): Make a DECL_EXPR.
32330         (end_subprog_body): Don't call allocate_struct_function here but
32331         do clear cfun.
32332
32333 2004-06-25  Pascal Obry  <obry@gnat.com>
32334
32335         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32336         Relocatable from Build_Dynamic_Library call.
32337
32338         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32339         Relocatable are now synonym.
32340
32341         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32342
32343         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32344         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32345         call.
32346
32347         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32348         Lib_Address and Relocatable.
32349         (Default_DLL_Address): Removed.
32350
32351         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32352         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32353         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32354         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32355         (Default_DLL_Address): Removed.
32356
32357         * mlib-tgt-mingw.adb: Ditto.
32358         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32359
32360         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32361         the initial thread stack size.
32362
32363         * a-strmap.ads: Move package L to private part as it is not used in
32364         the spec. Found while reading code.
32365
32366 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
32367
32368         * tracebak.c: Introduce support for a GCC infrastructure based
32369         implementation of __gnat_backtrace.
32370
32371         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32372         any more. Use accessors instead. This eases maintenance and relaxes
32373         some alignment constraints.
32374         (_GNAT_Exception structure): Remove the Ada specific fields
32375         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32376         a-exexpr.adb.
32377         (is_handled_by, __gnat_eh_personality): Replace component references to
32378         exception structure by use of the new accessors.
32379
32380         * init.c (__gnat_initialize): Adjust comments to match the just
32381         reverted meaning of the -static link-time option.
32382
32383         * adaint.c (convert_addresses): Arrange not to define a stub for
32384         mips-irix any more, as we now want to rely on a real version from a
32385         recent libaddr2line.
32386
32387         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32388         the personality routine can use them and not have to rely on a C
32389         counterpart of the record anymore. This simplifies maintenance and
32390         relaxes the constraint of having Standard'Maximum_Alignment match
32391         BIGGEST_ALIGNMENT.
32392         Update comments, and add a section on the common header alignment issue.
32393
32394 2004-06-25  Geert Bosch  <bosch@gnat.com>
32395
32396         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32397         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32398
32399 2004-06-25  Robert Dewar  <dewar@gnat.com>
32400
32401         * gnat_rm.texi: Fix section on component clauses to indicate that the
32402         restriction on byte boundary placement still applies for bit packed
32403         arrays.
32404         Add comment on stack usage from Initialize_Scalars
32405
32406         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32407
32408         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32409         limiting nesting level.
32410
32411         * usage.adb: Add line for -gnatyLnnn switch
32412
32413         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32414         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32415
32416         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32417         type as well as on the subtype. This corrects a problem in freeze in
32418         setting alignments of atomic types.
32419
32420         * sem_eval.ads: Minor comment typo fixed
32421
32422         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32423         level.  Minor reformatting.
32424
32425         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32426         minus sign. This means that file names like a--b.adb will not be
32427         considered predefined.
32428
32429         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32430         record Test new flag and give diagnostic for bad component clause.
32431         (Freeze_Entity): Set alignment of array from component alignment in
32432         cases where this is safe to do.
32433
32434         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32435         arrays.
32436
32437         * cstand.adb: (Create_Standard): Set alignment of String to 1
32438
32439         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32440
32441         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32442         code in the common constrained array cases.
32443
32444         * a-storio.adb: Change implementation to avoid possible alignment
32445         problems on machines requiring strict alignment (data should be moved
32446         as type Buffer, not type Elmt).
32447
32448         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32449         killing the overflow checks which we really do not need (64-bits is
32450         enough).
32451
32452 2004-06-25  Vincent Celier  <celier@gnat.com>
32453
32454         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32455         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32456         inconditionally for the main project.
32457         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32458         (Link_Executables.Check_Time_Stamps): New procedure
32459         (Link_Executables.Link_Foreign): New procedure
32460         Changes made to reduce nesting level of this package
32461         (Check): New procedure
32462         (Add_Switches): When not in quiet output, check that a switch is not
32463         the concatenation of several valid switches. If it is, issue a warning.
32464         (Build_Global_Archive): If the global archive is rebuilt, linking need
32465         to be done.
32466         (Compile_Sources): Rebuilding a library archive does not imply
32467         rebuilding the global archive.
32468         (Build_Global_Archive): New procedure
32469         (Build_Library): New name for Build_Archive, now only for library
32470         project
32471         (Check_Archive_Builder): New procedure
32472         (Create_Global_Archive_Dependency_File): New procedure
32473         (Gprmake): Call Build_Global_Archive before linking
32474         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32475         throughout.
32476         (Scan_Arg): Display the Copyright notice when -v is used
32477
32478         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32479         for gnatls.
32480
32481         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32482         COMPILE.
32483         Add new GNAT LIST qualifier /FILES=
32484         Added qualifier /DIRECTORY= to GNAT METRIC
32485         Added qualifier /FILES= to GNAT METRIC
32486         Added qualifier /FILES to GNAT PRETTY
32487
32488         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32489         to take into account both versions of the switch.
32490
32491         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32492         always be the last switch to the gcc driver. Disable switch storing so
32493         that switches automatically added by the gcc driver are not put in the
32494         ALI file.
32495
32496         * prj.adb (Project_Empty): Take into account changes in components of
32497         Project_Data.
32498
32499         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32500
32501         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32502         used. Split Boolean component Ada_Sources_Present in two Boolean
32503         components Ada_Sources_Present and Other_Sources_Present.
32504         Minor reformatting
32505
32506         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32507         instead of Sources_Present.
32508         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32509
32510         * prj-nmsc.adb: Minor reformatting
32511         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32512         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32513         Check_Ada_Naming_Scheme.
32514         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32515         throughout.
32516
32517         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32518         In_Limited.
32519         Make sure that all cycles where there is at least one "limited with"
32520         are detected.
32521         (Parse_Single_Project): New Boolean parameter In_Limited
32522
32523         * prj-proc.adb (Recursive_Check): When Process_Languages is
32524         All_Languages, call first Prj.Nmsc.Ada_Check, then
32525         Prj.Nmsc.Other_Languages_Check.
32526
32527         * prj-proc.adb (Process): Use Ada_Sources_Present or
32528         Other_Sources_Present (instead of Sources_Present) depending on
32529         Process_Languages.
32530
32531         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32532         last switches.
32533
32534         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32535         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32536         False.
32537         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32538         False.
32539
32540         * lib.ads (Disable_Switch_Storing): New procedure.
32541
32542         * make.adb: Modifications to reduce nesting level of this package.
32543         (Check_Standard_Library): New procedure
32544         (Gnatmake.Check_Mains): New procedure
32545         (Gnatmake.Create_Binder_Mapping_File): New procedure
32546         (Compile_Sources.Compile): Add switch -gnatez as the last option
32547         (Display): Never display -gnatez
32548
32549         * Makefile.generic:
32550         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32551
32552         * gnatcmd.adb (Check_Project): New function
32553         (Process_Link): New procedure to reduce nesting depth
32554         (Check_Files): New procedure to reduce the nesting depth.
32555         For GNAT METRIC, include the inherited sources in extending projects.
32556         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32557         add the list of files from the sources of the project file. If this list
32558         is too long, put it in a temp text files and use switch -files=
32559         (Delete_Temp_Config_Files): Delete the temp text file that contains
32560         a list of source for gnatpp or gnatmetric, if one has been created.
32561         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32562         in the project file is too large, create a temporary text file that
32563         list them and pass it to the tool with "-files=<temp text file>".
32564         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32565
32566         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32567         generated file is in not in Ada.
32568
32569         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32570         (Scan_Ls_Arg): Add processing for -files=
32571         (Usage): Add line for -files=
32572
32573         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32574         (Normalize_Pathname): When on Windows and the path starts with a
32575         directory separator, make sure that the resulting path will start with
32576         a drive letter.
32577
32578         * clean.adb (Clean_Archive): New procedure
32579         (Clean_Project): When there is non-Ada code, delete the global archive,
32580         the archive dependency files, the object files and their dependency
32581         files, if they exist.
32582         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32583
32584 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32585
32586         * sinfo.ads: Fix typo in comment.
32587
32588         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32589         the TSS for remote access-to-subprogram types, since these TSS are
32590         always present once the type has been analyzed.
32591         (RAS_E_Dereference): Same.
32592
32593         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32594         reference raises Bad_Attribute, mark the reference as analyzed so the
32595         node (and any children resulting from rewrites that could have occurred
32596         during the analysis that ultimately failed) is not analyzed again.
32597
32598         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32599
32600         * exp_dist.adb: Minor comment fix.
32601
32602         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32603         type is an anonymous access type, no unchecked deallocation of the
32604         allocated object can occur. If the object is controlled, attach it with
32605         a count of 1. This allows attachment to the Global_Final_List, if
32606         no other relevant list is available.
32607         (Get_Allocator_Final_List): For an anonymous access type that is
32608         the type of a discriminant or record component, the corresponding
32609         finalisation list is the one of the scope of the type.
32610
32611 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32612
32613         * sem_ch3.adb (Replace_Type): When computing the signature of an
32614         inherited subprogram, use the first subtype if the derived type
32615         declaration has no constraint.
32616
32617         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32618         before applying previous optimization. Minor code cleanup.
32619
32620         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32621         placed at the beginning of an unpacked record without explicit
32622         alignment, a slice of it will be aligned and does not need a copy when
32623         used as an actual.
32624
32625 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32626
32627         PR ada/15591
32628         PR ada/15592
32629         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32630         reference is written with expressions mimicking parameters.
32631
32632 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32633
32634         PR ada/15589
32635         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32636         STEP 2a. The constraints of a full type declaration of a derived record
32637         type are checked for conformance with those declared in the
32638         corresponding private extension declaration. The message
32639         "not conformant with previous declaration" is emitted if an error is
32640         detected.
32641
32642 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32643
32644         * g-traceb.ads: Document the need for -E binder switch in the spec.
32645
32646         * g-trasym.ads: Document the need for -E binder switch in the spec.
32647
32648 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32649
32650         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32651
32652         * snames.h, snames.ads, snames.adb: Add entry for pragma
32653         Detect_Blocking.
32654
32655         * s-rident.ads: Change reference to pragma Detect_Blocking.
32656
32657         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32658         system.ads.
32659
32660         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32661         to indicate whether pragma Detect_Blocking is active.
32662
32663         * par-prag.adb: Add entry for pragma Detect_Blocking.
32664
32665         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32666         of not handling WITH.
32667         Note that this replaces the previous update which was incorrect.
32668
32669 2004-06-25  Javier Miranda  <miranda@gnat.com>
32670
32671         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32672         use-clauses to have a clean environment.
32673
32674         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32675         the installation of the use-clauses to stablish a clean environment in
32676         case of compilation of a separate unit; otherwise the call to
32677         use_one_package is protected by the barrier Applicable_Use.
32678
32679         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32680         the installation of the use-clauses to stablish a clean environment in
32681         case of compilation of a separate unit.
32682         (End_Use_Clauses): Minor comment cleanup.
32683
32684 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32685
32686         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32687
32688 2004-06-23  Richard Henderson  <rth@redhat.com>
32689
32690         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32691
32692 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32693
32694         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32695         now bool instead of int.
32696         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32697         * trans.c (gnu_switch_label_stack): New function.
32698         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32699         elaboration of renamed entity returns.
32700         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32701         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32702         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32703         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32704         DECL_SIZE_UNIT and simplify variable-sized case.
32705         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32706         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32707         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32708         (build_unit_elab): Disable for now.
32709         * utils.c (mark_visited): New function.
32710         (pushdecl): Walk tree to call it for global decl.
32711         (update_pointer_to): Update all variants of pointer and ref types.
32712         Add arg to COMPONENT_REF.
32713         (convert): Likewise.
32714         Move check for converting between variants lower down.
32715         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32716         (build_allocator): Don't force type of MODIFY_EXPR.
32717         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32718         put_var_into_stack.
32719
32720 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32721
32722         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32723         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32724         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32725         subprograms.
32726         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32727         all callers changed.
32728         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32729         the way that EXIT_STMT finds the loop label.
32730         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32731         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32732         (add_stmt): Use annotate_with_locus insted of setting directly.
32733         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32734         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32735         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32736         (build_vms_descriptor): Add extra args to ARRAY_REF.
32737         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32738         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32739         New cases.
32740         (build_binary_op): Don't make explicit CONVERT_EXPR.
32741         Add extra rgs to ARRAY_REF.
32742
32743 2004-06-14  Pascal Obry  <obry@gnat.com>
32744
32745         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32746         Windows.  Fix minor typo.
32747
32748         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32749         which is now supported on Windows. With this implementation using the
32750         Library Project feature is no different on Windows than on UNIX.
32751
32752 2004-06-14  Vincent Celier  <celier@gnat.com>
32753
32754         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32755         non-Ada sources.
32756
32757         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32758
32759         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32760         found, show the project name and the path of the previously parsed
32761         project file.
32762
32763 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32764
32765         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32766         array, avoid copying the actual before the call.
32767
32768 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32769
32770         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32771         Instead, allocate memory on worst-case alignment assumptions, and then
32772         return an aligned address within the allocated zone.
32773
32774 2004-06-14  Robert Dewar  <dewar@gnat.com>
32775
32776         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32777         elab entities in predefined units in No_Run_Time_Mode.
32778         (Gen_Adainit_C): Same fix
32779         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32780         units in No_Run_Time_Mode
32781         (Gen_Elab_Calls_C): Same fix
32782
32783         * symbols-vms-alpha.adb: Minor reformatting
32784
32785         * g-debpoo.ads: Minor reformatting
32786
32787         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32788
32789         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32790
32791         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32792         working on nodes.
32793
32794         * make.adb: Minor reformatting
32795
32796         * par-ch12.adb: Minor reformatting
32797
32798         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32799
32800         * prj-strt.adb: Minor reformatting
32801
32802         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32803         be more general.
32804
32805         * sem_attr.adb: Minor reformatting
32806
32807         * sem_ch7.adb: Minor reformatting
32808
32809         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32810         for type in the same unit as the object declaration.
32811
32812         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32813         static string expressions and not just string literals.
32814         Minor reformatting
32815         (Set_Warning): Reset restriction warning flag for restriction pragma
32816         Implement pragma Profile_Warnings
32817         Implement pragma Profile (Restricted)
32818         Give obolescent messages for old restrictions and pragmas
32819
32820         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32821         Profile_Warnings.
32822
32823         * s-rident.ads: Add declarations for restrictions required by profile
32824         Restricted and profile Ravenscar.
32825
32826         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32827
32828         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32829         configuration pragmas.
32830
32831 2004-06-11  Vincent Celier  <celier@gnat.com>
32832
32833         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32834         gnatsym, when symbol policy is Restricted.
32835
32836         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32837         gnatsym, when symbol policy is Restricted.
32838
32839         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32840         read the symbol file.
32841         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32842         symbol file is not in the object files. Do not create a new symbol file
32843         when symbol policy is Restricted.
32844
32845         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32846         in Scng.
32847
32848         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32849         Restricted.
32850         (Usage): Line for new switch -R
32851
32852         * make.adb (Initialize): When the platform is not VMS, add the
32853         directory where gnatmake is invoked in the front of the path, if
32854         gnatmake is invoked with directory information.  Change the Scan_Args
32855         while loop to a for loop.
32856         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32857         if Depth is equal or greater than the proposed depth, there is nothing
32858         to do.
32859         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32860         instead of 0.
32861
32862         * prj.ads: Add new symbol policy Restricted.
32863
32864         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32865         with the new parameters Check_All_Labels and Case_Location.
32866
32867         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32868         (Library_Symbol_File needs to be defined).
32869
32870         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32871         and Case_Location If Check_All_Labels is True, check that all values of
32872         the string type are used, and output warning(s) if they are not.
32873
32874         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32875         and Case_Location.
32876
32877         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32878
32879         * gnat_ugn.texi: Update documentation about the library directory in
32880         Library Projects.
32881
32882         * makegpr.adb (Display_Command): In verbose mode, also display the
32883         value of the CPATH env var, when the compiler is gcc.
32884         (Initialize): Change the Scan_Args while loop to a for loop
32885         (Compile_Individual_Sources): Change directory to object directory
32886         before compilations.
32887
32888         * symbols.ads: New symbol policy Restricted.
32889
32890 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32891
32892         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32893         is now taken care of internally in the Exception_Propagation package
32894         and does not require clients assistance any more.
32895
32896         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32897         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32898         functions. Helpers to maintain a predicate required in the handling of
32899         occurrence transfer between tasks.
32900         This is now handled internally and does not require clients assistance
32901         for the setup/propagate separation anymore.
32902         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32903         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32904         document.
32905
32906         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32907         raise_after_setup, now that everything is handled internally within the
32908         setup/propagation engine.
32909
32910 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32911
32912         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32913         Add additional conditions for the case of an actual being a simple
32914         name or literal. Improve inlining by preventing the generation
32915         of temporaries with a short lifetime (one use).
32916
32917 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32918
32919         PR ada/15587
32920         * einfo.ads: Minor comment updates for Has_Completion and
32921         E_Constant list of flags.
32922
32923         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32924         and constant redeclarations now set the Has_Completion flag of their
32925         defining identifiers.
32926
32927         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32928         Inspect_Deferred_Constant_Completion.
32929         Used to detect private deferred constants that have not been completed
32930         either by a constant redeclaration or pragma Import. Emits error message
32931         "constant declaration requires initialization expression".
32932
32933         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32934         completes a deferred constant.
32935
32936 2004-06-11  Geert Bosch  <bosch@gnat.com>
32937
32938         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32939
32940         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32941         calculating exponent for scaling denormal numbers.
32942         (Leading_Part): Properly raise Constraint_Error for zero or negative
32943         Adjustment.
32944         (Remainder): Properly raise Constraint_Error for zero divisor.
32945
32946 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32947
32948         * sem_util.adb: Minor reformatting.
32949
32950         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32951         dereference when accessing the entry parameter record.
32952         (Check_Array_Type): Always check for possible implicit dereference.
32953         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32954         Abort if a pointer is still present (denoting that an implicit
32955         dereference was left in the tree by the front-end).
32956
32957         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32958         dereference when accessing the entry parameter record.
32959         (Check_Array_Type): Always check for possible implicit dereference.
32960         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32961         Abort if a pointer is still present (denoting that an implicit
32962         dereference was left in the tree by the front-end).
32963
32964 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32965
32966         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32967         message, like the compiler itself does. Easier to parse the output.
32968
32969         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32970
32971         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32972         be base names, and not includes directories.
32973
32974 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32975
32976         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32977         so that dependencies are properly taken into account by make.
32978
32979 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32980
32981         PR ada/15622
32982         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32983         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32984
32985 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32986
32987         * Makefile.in (install-gnatlib): install target-specific run-time files.
32988
32989         * Make-lang.in: Remove obsolete targets.
32990
32991 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32992
32993         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32994         specification, to catch misuses of program unit names.
32995
32996         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32997         superfluous conversions in an instance.
32998
32999 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
33000
33001         PR ada/15403
33002         * sem_ch12.adb (Save_References): If operator node has been folded to
33003         enumeration literal, associated_node must be discarded.
33004
33005 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
33006
33007         * s-stchop-vxworks.adb: Add required pragma Convention to
33008         Task_Descriptor because it is updated by a C function.
33009
33010 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
33011
33012         PR ada/15568
33013         * Makefile.in: Remove target specific SO_OPT on IRIX
33014
33015 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33016
33017         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33018         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33019         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33020         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33021         (STMT_STMT, USE_STMT): New statement codes.
33022         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33023         * ada-tree.h: Reflect above changes.
33024         (struct tree_loop_id): Deleted.
33025         (union lang_tree_node, struct lang_decl, struct lang_type):
33026         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33027         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33028         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33029         (IS_ADA_STMT): New macro.
33030         * decl.c (annotate_decl_with_node): New function.
33031         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33032         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33033         Call add_stmt_with_node to do needed assignments.
33034         Add call to update setjmp buffer directly, not via EXPR_STMT.
33035         (maybe_variable): Argment GNAT_NODE deleted.
33036         * gigi.h (maybe_variable): Likewise.
33037         (make_transform, add_stmt_with_node, set_block_for_group): New.
33038         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33039         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33040         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33041         (set_lineno, set_lineno_from_sloc): Likewise.
33042         (record_code_position, insert_code_for): Likewise.
33043         (gnat_poplevel): Now returns void.
33044         (end_subprog_body): Now takes argument.
33045         * misc.c (cgraph.h, tree-inline.h): New includes.
33046         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33047         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33048         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33049         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33050         (gnat_parse_file): Don't set immediate_size_expand.
33051         Call cgraph functions.
33052         (gnat_expand_expr): Remove most cases.
33053         (record_code_position, insert_code_for): Remove from here.
33054         * trans.c (toplev.h, tree-gimple.h): Now included.
33055         (discard_file_names): Deleted.
33056         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33057         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33058         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33059         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33060         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33061         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33062         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33063         (set_block_for_group, add_stmt_list): Likewise.
33064         (start_stmt_group): Renamed from start_block_stmt.
33065         (end_stmt_group): Likewise, from end_block_stmt.
33066         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33067         (gigi): Don't set discard_file_names or call set_lineno.
33068         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33069         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33070         Numerous changes throughout to reflect new names and complete
33071         function-at-a-time implementation.
33072         (gnat_expand_stmt): Delete or comment out all cases.
33073         (process_inlined_subprograms): Use add_stmt.
33074         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33075         call set_lineno; also remove unneeded block handling.
33076         (process_type): Remove unneeded block handling.
33077         (build_unit_elab): Remove calls to deleted functions.
33078         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33079         (tree-dump.h): Likewise.
33080         (struct ada_binding_level): Add field jmpbuf_decl.
33081         (gnat_define_builtin, gnat_install_builtins): New.
33082         (gnat_gimplify_function, gnat_finalize): Likewise.
33083         (gnat_poplevel): No longer return BLOCK, set it instead.
33084         Remove code dealing with nested functions.
33085         (gnat_init_decl_processing): Also set size_type_node.
33086         Call gnat_install_builtins.
33087         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33088         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33089         Remove special-case for "main".
33090         (end_subprog_body): Add arg and rework for tree-ssa.
33091         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33092         Add case for BOOLEAN_TYPE.
33093         * utils2.c (rtl.h): Now include.
33094         (build_call_raise): Test Debug_Flag_NN directly.
33095         (build_call_alloc_dealloc): Don't use local stack allocation for now.
33096         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33097         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33098
33099 2004-06-07  Robert Dewar  <dewar@gnat.com>
33100
33101         * a-direct.ads, einfo.ads: Minor comment updates
33102
33103         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33104         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33105         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33106         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33107         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33108
33109         * s-interr-sigaction.adb: Remove unreferenced variable
33110         (Attached_Interrupts).  Minor reformatting.
33111         Avoid use of variable I (replace by J).
33112
33113         * par-ch10.adb: Fix text of one error message
33114
33115         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33116         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33117         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33118         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33119         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33120         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33121         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33122         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33123         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33124         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33125         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33126         2005 support.
33127
33128 2004-06-07  Doug Rupp  <rupp@gnat.com>
33129
33130         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33131
33132         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33133
33134         * mlib-tgt-vms-ia64.adb: New file.
33135
33136         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33137         Add mlib-tgt-vms-ia64.adb
33138         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33139         Move to alpha specific ifeq section.
33140         Add VMS specific versions of symbols.adb
33141         Renaming of 5q vms files.
33142
33143         * 5qsystem.ads renamed to system-vms_64.ads.
33144
33145 2004-06-07  Vincent Celier  <celier@gnat.com>
33146
33147         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33148         explain that when a time of day corresponding to the non existing hour
33149         on the day switching to DST is specified, Split may return a different
33150         value for Seconds.
33151
33152         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33153         to GNAT PRETTY.
33154
33155         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33156         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33157
33158         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33159         to False.
33160         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33161         the linking options.
33162         (Build_Library.Check_Libs): On VMS, if there is a dependency on
33163         g-trasym.ads, set Gtrasymobj_Needed to True.
33164
33165         * prj-attr.adb: Add new package Metrics for gnatmetric
33166
33167         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33168         canonical case to take into account files with upper case characters on
33169         Windows.
33170         (Ada_Check): Load the reference symbol file name in the name buffer to
33171         check it, not the symbol file name.
33172
33173         * snames.ads, snames.adb: Add standard name Metrics (name of project
33174         file package for gnatmetric).
33175
33176         * vms_conv.ads: Add Metric to Comment_Type
33177
33178         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33179
33180         * vms_data.ads: Add qualifiers for GNAT METRIC
33181
33182         * makegpr.adb (Link_Executables): Take into account the switches
33183         specified in package Linker of the main project.
33184
33185 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
33186
33187         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33188         the index of the last element is Units.Last, not Units.Table'Last
33189         (which is usually not a valid index within the actually allocated
33190         storage for the table).
33191
33192         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33193         determines whether to generate a call to a checked storage pool
33194         Dereference action.
33195         Generate such a call only for a dereference that either comes from
33196         source, or is the result of rewriting a dereference that comes from
33197         source.
33198
33199 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
33200
33201         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33202
33203 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
33204
33205         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33206         file level, elaborate the stride for inner dimensions in alignment
33207         units, not bytes.
33208
33209         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33210         in a comment.
33211
33212 2004-06-07  Javier Miranda  <miranda@gnat.com>
33213
33214         * exp_ch6.adb: Correct wrong modification in previous patch
33215
33216 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
33217
33218         * g-trasym.ads: Corrected comment to properly reflect level of support
33219         on VMS.
33220
33221 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
33222
33223         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33224         includes case of a variable referenced on the left hand side of an
33225         assignment, therefore remove redundant code. Variables and prefixes of
33226         indexed or selected components are now marked as referenced on left
33227         hand side. Warnings are now properly emitted when variables or prefixes
33228         are assigned but not read.
33229
33230         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33231         left hand side referenced variables. Private access types do not
33232         produce the warning "variable ... is assigned but never read".
33233         Add also additional checks to left hand side referenced variables.
33234         Aliased, renamed objects and access types do not produce the warning
33235         "variable ... is assigned but never read" since other entities may read
33236         the memory location.
33237
33238 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
33239
33240         * Makefile.in: In the powerpc/vxworks-specific section, restore
33241         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33242         by mistake).
33243
33244 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
33245
33246         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33247         predefined operators.
33248         Removes spurious type errors from g-trasym-vms.adb.
33249
33250         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33251         distinct from the operator appearing in the source, call appropriate
33252         routine to insert conversions when needed, and complete resolution of
33253         node.
33254         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33255         interpretations for rewritten right operand.
33256         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33257         the other operand is overloaded and the context is a type conversion.
33258
33259 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33260
33261         * ada-tree.def (BLOCK_STMT): Now has two operands.
33262         (BREAK_STMT): New.
33263
33264         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33265
33266         * gigi.h: (gnat_poplevel): Now returns a tree.
33267
33268         * trans.c (end_block_stmt): Add arg; all callers changed.
33269         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33270         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33271         (add_stmt): Set TREE_TYPE.
33272         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33273         (gnat_expand_stmt, case BREAK_STMT): New case.
33274
33275         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33276
33277 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
33278
33279         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33280         procedure Set_Stack_Size that is not needed.
33281
33282 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
33283
33284         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33285         used for gnatpp input file and for the files upon which it depends
33286
33287 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
33288
33289         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33290
33291 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
33292
33293         * gnatvsn.ads: Bump version numbers appropriately.
33294         Add new build type.
33295
33296 2004-06-07  Pascal Obry  <obry@gnat.com>
33297
33298         * gnat_ugn.texi: Improve comments about imported names and link names
33299         on Windows. Add a note about the requirement to use -k gnatdll's option
33300         when working with a DLL which has stripped stdcall symbols (no @nn
33301         suffix).
33302
33303 2004-05-27  Vincent Celier  <celier@gnat.com>
33304
33305         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33306         COMMENTS_LAYOUT=UNTOUCHED
33307
33308         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33309         symbols-vms-alpha.adb
33310
33311 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
33312
33313         * sem.ads: Clarify documentation on checks suppression.
33314
33315         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33316
33317 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
33318
33319         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33320         the case of multiple derivations.
33321         (Is_Object_Reference): For a selected component, verify that the prefix
33322         is itself an object and not a value.
33323
33324         * sem_ch12.adb (Same_Instantiated_Constant): New name for
33325         Same_Instantiated_Entity.
33326         (Same_Instantiated_Variable): Subsidiary to
33327         Check_Formal_Package_Instance, to recognize actuals for in-out generic
33328         formals that are obtained from a previous formal package.
33329         (Instantiate_Subprogram_Body): Emit proper error when
33330         generating code and the proper body of a stub is missing.
33331
33332         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33333         has a universal interpretation, do the disambiguation here.
33334
33335         * exp_ch4.adb (Expand_N_Type_Conversion,
33336         Expand_N_Unchecked_Type_Conversion): Special handling when target type
33337         is Address, to avoid typing anomalies when Address is a visible integer
33338         type.
33339
33340         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33341         to determine whether a subprogram should not be marked Pure, even when
33342         declared in a pure package.
33343
33344 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
33345
33346         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33347
33348         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33349         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33350         Update the documentation about the Ravenscar profile, following the
33351         definition found in AI-249.
33352
33353         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33354         setting the Profile (Ravenscar). This must be done in addition to
33355         setting the required restrictions.
33356
33357         * rtsfind.ads: Add the set of operations defined in package
33358         Ada.Interrupts.
33359
33360         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33361         restriction.
33362
33363 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
33364
33365         lang-specs.h: Always require -c or -S and always redirect to /dev/null
33366         if -gnatc or -gnats is passed.
33367
33368 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
33369
33370         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33371         a significant reference. Warnings are now properly emitted when a
33372         discriminated type is not referenced.
33373
33374         * lib-xref.adb (Generate_Reference): A deferred constant completion,
33375         record representation clause or record type discriminant does not
33376         produce a reference to its corresponding entity. Warnings are now
33377         properly emitted when deferred constants and record types are not
33378         referenced.
33379
33380 2004-05-27  Geert Bosch  <bosch@gnat.com>
33381
33382         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33383         Fixes ACATS Annex G tests.
33384
33385 2004-05-27  Robert Dewar  <dewar@gnat.com>
33386
33387         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33388         handling WITH
33389
33390 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33391
33392         * s-interr.adb (Server_Task): Take into account case of early return
33393         from sigwait under e.g. linux.
33394
33395 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33396
33397         * gnat_ugn.texi: Add description for the new gnatpp options:
33398          -rnb - replace the original source without creating its backup copy
33399          -c0 - do not format comments
33400
33401 2004-05-24  Geert Bosch  <bosch@gnat.com>
33402
33403         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33404         with 192 bits of precision, sufficient to reduce a double-extended
33405         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33406         in -2.0**32 .. 2.0**32.
33407         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33408         reduction by the processor, which only uses a 68-bit approximation of
33409         Pi.
33410         (Tan): Always reduce arguments and compute function either using
33411         the processor's fptan instruction, or by dividing sin and cos as needed.
33412
33413 2004-05-24  Doug Rupp  <rupp@gnat.com>
33414
33415         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33416         gcc error on 32/64 bit VMS.
33417
33418 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33419
33420         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33421         since this is what we get for stack overflows although not documented
33422         as such.
33423         Document the issues which may require adjustments to our signal
33424         handlers.
33425
33426 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33427
33428         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33429         enclosing dynamic scope if the instantiation is within a generic unit.
33430
33431 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33432
33433         * exp_dbug.ads: Fix typo.
33434
33435         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33436         Rename it to its proper name: system-linux-ia64.ads
33437         (stamp-gnatlib1): Remove extra target specific run time files when
33438         setting up the rts directory.
33439
33440 2004-05-24  Javier Miranda  <miranda@gnat.com>
33441
33442         * einfo.ads, einfo.adb (Limited_Views): Removed.
33443         (Limited_View): New attribute that replaces the previous one. It is
33444         now a bona fide package with the limited-view list through the
33445         first_entity and first_private attributes.
33446
33447         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33448         limited-private-with clause.
33449         (Install_Limited_Withed_Unit): Install the private declarations of a
33450         limited-private-withed package. Update the installation of the shadow
33451         entities according to the new structure (see Build_Limited_Views)
33452         (Build_Limited_Views): Replace the previous implementation of the
33453         limited view by a package entity that references the first shadow
33454         entity plus the first shadow private entity (required for limited-
33455         private-with clause)
33456         (New_Internal_Shadow_Entity): Code cleanup.
33457         (Remove_Limited_With_Clause): Update the implementation to undo the
33458         new work carried out by Build_Limited_Views.
33459         (Build_Chain): Complete documentation.
33460         Replace Ada0Y by Ada 0Y in comments
33461         Minor reformating
33462
33463         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33464         types the level of accessibility depends on the enclosing type
33465         declaration.
33466
33467         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33468         entities. Complete documentation of previous change.
33469
33470 2004-05-24  Robert Dewar  <dewar@gnat.com>
33471
33472         * namet.adb: Minor reformatting
33473         Avoid use of name I (replace by J)
33474         Minor code restructuring
33475
33476         * sem_ch6.adb: Minor reformatting
33477
33478         * lib-writ.adb: Do not set restriction as active if this is a
33479         Restriction_Warning case.
33480
33481         * sem_prag.adb: Reset restriction warning flag if real pragma
33482         restriction encountered.
33483
33484         * s-htable.adb: Minor reformatting
33485         Change rotate count to 3 in Hash (improves hash for small strings)
33486
33487         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33488
33489         * gnat_ugn.texi: Add new section of documentation "Code Generation
33490         Control", which describes the use of -m switches.
33491
33492 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33493
33494         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33495         through the DECL_INITIAL for renamed variables.
33496
33497 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33498
33499         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33500
33501 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33502
33503         * exp_dbug.ads: Correct comments concerning handling of overloading,
33504         since we no longer use $ anymore.
33505
33506 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33507
33508         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33509         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33510         with illegal subunits.
33511
33512 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33513
33514         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33515         body with front-end inlining enabled, check whether an inline pragma
33516         appears immediately after the body and applies to it.
33517
33518         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33519         enabled and the pragma appears after the body of the subprogram.
33520
33521 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33522
33523         Part of function-at-a-time conversion
33524
33525         * misc.c (adjust_decl_rtl): Deleted.
33526         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33527         Define.
33528
33529         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33530         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33531         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33532
33533         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33534         when making a decl.
33535         (gnat_to_gnu_entity): Likewise.
33536         Use add_stmt to update setjmp buffer.
33537         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33538         flush_addressof.
33539         No longer call adjust_decl_rtl.
33540         (DECL_INIT_BY_ASSIGN_P): New macro.
33541         (DECL_STMT_VAR): Likewise.
33542
33543         * trans.c (gigi): Call start_block_stmt to make the outermost
33544         BLOCK_STMT.
33545         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33546         Call start_block_stmt and end_block_stmt temporarily.
33547         Use gnat_expand_stmt instead of expand_expr_stmt.
33548         (add_decl_stmt): New function.
33549         (tree_transform): Call it.
33550         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33551         (end_block_stmt): Set type and NULL_STMT.
33552         (gnat_expand_stmt): Make recursize call instead of calling
33553         expand_expr_stmt.
33554         (gnat_expand_stmt, case DECL_STMT): New case.
33555         (set_lineno_from_sloc): Do nothing if global.
33556         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33557         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33558         (build_block_stmt): Call them.
33559         (gnat_to_code): Don't expand NULL_STMT.
33560         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33561         args.
33562         (tree_transform): Likewise.
33563         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33564         (gnat_expand_stmt, case NULL_STMT): New case.
33565         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33566         IF_STMT_TRUE.
33567
33568         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33569         TREE_ADDRESSABLE.
33570
33571         * utils.c (create_var_decl): Do not call expand_decl or
33572         expand_decl_init.
33573         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33574         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33575         here.
33576         (struct e_stack): Add chain_next to GTY.
33577         (struct binding_level): Deleted.
33578         (struct ada_binding_level): New struct.
33579         (free_block_chain): New.
33580         (global_binding_level, clear_binding_level): Deleted.
33581         (global_bindings_p): Rework to see if no chain.
33582         (kept_level_p, set_block): Deleted.
33583         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33584         new data structure and work directly on BLOCK node.
33585         (gnat_poplevel): Similarly.
33586         (get_decls): Look at BLOCK_VARS.
33587         (insert_block): Work directly on BLOCK node.
33588         (block_has_var): New function.
33589         (pushdecl): Rework for new binding structures.
33590         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33591         poplevel.
33592         (build_subprog_body): Likewise.
33593         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33594
33595         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33596
33597         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33598         (DECL_STMT_VAR): Likewise.
33599
33600 2004-05-17  Robert Dewar  <dewar@gnat.com>
33601
33602         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33603         procedure
33604
33605         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33606         of restriction synonyums by using
33607         Restrict.Process_Restriction_Synonyms.
33608
33609         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33610
33611         * s-restri.ads (Tasking_Allowed): Correct missing comment
33612
33613         * s-rident.ads: Add entries for restriction synonyms
33614
33615         * ali.adb: Fix some problems with badly formatted ALI files that can
33616         result in infinite loops.
33617
33618         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33619         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33620         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33621         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33622         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33623         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33624         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33625         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33626         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33627         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33628         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33629         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33630         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33631         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33632         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33633         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33634         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33635         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33636         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33637         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33638         to Task_Id (minor cleanup).
33639
33640 2004-05-17  Vincent Celier  <celier@gnat.com>
33641
33642         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33643         directory separator.
33644
33645         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33646         project being extended, if Languages is not declared in extending
33647         project.
33648
33649 2004-05-17  Javier Miranda  <miranda@gnat.com>
33650
33651         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33652         limited view of a visible sibling.
33653
33654 2004-05-14  Robert Dewar  <dewar@gnat.com>
33655
33656         * gnat_ugn.texi: Minor change to -gnatS documentation
33657
33658         * sprint.adb: Remove some instances of Assert (False) and for this
33659         purpose replace them by output of a ??? string.
33660
33661         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33662         Assert (False).
33663
33664         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33665         flag processing. This was suppressing required dependencies in
33666         No_Run_Time mode and is not needed since the binder does not generate
33667         references for things in libgnat anyway.
33668
33669         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33670         warning.
33671
33672 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33673
33674         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33675         resolver library.
33676
33677         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33678         action for the case of an actual parameter in an init proc call.
33679
33680 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33681
33682         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33683         subtype, check visible entities in base type.
33684
33685         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33686         actions if the object is a renaming.
33687
33688         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33689         Check_Formal_Package_Instance, to determine more precisely when the
33690         formal and the actual denote the same entity.
33691
33692 2004-05-14  Javier Miranda  <miranda@gnat.com>
33693
33694         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33695
33696         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33697         corresponding to a private_with must be removed from visibility; it
33698         will be made visible later, just before we analyze the private part of
33699         the package.
33700         (Check_Private_Child_Unit): Allow private_with clauses in public
33701         siblings.
33702         (Install_Siblings): Make visible the private entities of private-withed
33703         siblings.
33704         (Install_Withed_Unit): Do not install the private withed unit if we
33705         are compiling a package declaration and the Private_With_OK flag was
33706         not set by the caller. These declarations will be installed later,
33707         just before we analyze the private part of the package.
33708
33709         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33710         during the evaluation of the expression that initializes the object,
33711         decorate it with the expected type to avoid cascade errors.
33712         Code cleanup.
33713
33714         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33715         subprogram we have to install the private_with clauses after its
33716         specification has been analyzed (as documented in AI-262.TXT).
33717
33718         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33719         current compilation unit has a private with on a given entity.
33720         (Find_Direct_Name): Detect the Beaujolais problem described in
33721         AI-262.TXT
33722
33723         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33724         provides the functionality of the function Is_Ancestor that was
33725         previously available in sem_ch10. It has been renamed to avoid
33726         overloading.
33727
33728         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33729
33730 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33731
33732         * utils.c (build_vms_descriptor): Use SImode pointers.
33733
33734 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33735
33736         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33737
33738 2004-05-14  GNAT Script  <nobody@gnat.com>
33739
33740         * Make-lang.in: Makefile automatically updated
33741
33742 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33743
33744         Renaming of target specific files for clarity
33745
33746         * Makefile.in: Rename GNAT target specific files.
33747
33748         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33749         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33750         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33751         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33752         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33753         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33754         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33755         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33756         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33757         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33758         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33759         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33760         51osinte.adb, 51osinte.ads, 51system.ads,
33761         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33762         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33763         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33764         56tpopsp.adb, 57system.ads, 58system.ads,
33765         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33766         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33767         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33768         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33769         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33770         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33771         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33772         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33773         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33774         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33775         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33776         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33777         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33778         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33779         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33780         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33781         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33782         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33783         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33784         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33785         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33786         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33787         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33788         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33789         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33790         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33791         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33792         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33793         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33794         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33795         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33796         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33797         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33798         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33799         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33800         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33801         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33802         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33803         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33804         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33805
33806         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33807         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33808         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33809         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33810         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33811         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33812         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33813         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33814         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33815         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33816         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33817         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33818         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33819         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33820         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33821         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33822         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33823         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33824         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33825         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33826         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33827         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33828         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33829         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33830         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33831         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33832         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33833         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33834         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33835         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33836         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33837         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33838         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33839         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33840         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33841         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33842         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33843         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33844         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33845         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33846         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33847         s-osinte-vms.ads, s-osinte-vxworks.adb,
33848         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33849         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33850         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33851         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33852         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33853         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33854         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33855         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33856         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33857         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33858         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33859         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33860         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33861         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33862         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33863         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33864         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33865         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33866         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33867         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33868         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33869         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33870         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33871         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33872         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33873         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33874         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33875         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33876         system-irix-o32.ads, system-linux-x86_64.ads,
33877         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33878         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33879         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33880         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33881         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33882         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33883         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33884         above.
33885
33886 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33887
33888         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33889
33890 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33891
33892         Merge from tree-ssa-20020619-branch.
33893
33894         * config-lang.in (boot_language, build_by_default): Set
33895         to no.
33896         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33897         (max_size): Add static chain op for call_expr.
33898
33899 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33900
33901         PR target/15331
33902         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33903
33904 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33905
33906         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33907         COND_EXPR.
33908
33909 2004-05-10  Doug Rupp  <rupp@gnat.com>
33910
33911         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33912         system.aux_dec.
33913
33914         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33915
33916         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33917
33918         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33919         Fixes undefined symbols in IA64 gnatlib.
33920
33921         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33922
33923         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33924         Short_Address). This will be moved to system.auxdec.
33925
33926 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33927
33928         * sem_util.adb: Replace test for presence of a node that is always
33929         present with a call to Discard_Node.
33930
33931         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33932         Analyze on the library unit node after generation of distribution stub
33933         constructs.  The call was a no-op because Unit_Node has already been
33934         Analyzed, and the tree fragments for the distribution stubs are
33935         analyzed as they are inserted in Exp_Dist.
33936         Update comment regarding to distribution stubs to reflect that we
33937         do not generate stub in separate files anymore.
33938
33939         * einfo.ads: Clarify the fact that a tagged private type has the
33940         E_Record_Type_With_Private Ekind.
33941
33942         * erroutc.adb: Minor reformatting
33943
33944         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33945         values if line length is increased using -gnatyM (noticed during code
33946         reading).
33947
33948         * eval_fat.adb: Minor reformatting
33949         Put spaces around exponentiation operator
33950
33951 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33952
33953         PR ada/15005
33954         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33955         has been rewritten as an explicit dereference, retrieve type of
33956         original node to check for possibly unconstrained record type.
33957
33958 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33959
33960         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33961         overriding, use the operation of the parent unconditionally.
33962
33963         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33964         operation when either operand is a literal, to avoid further
33965         ambiguities.
33966
33967         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33968         overridden by a previous explicit declaration, mark the previous entity
33969         as overriding.
33970
33971         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33972         Is_Visibly_Controlled, to determine whether a declaration of a
33973         primitive control operation for a derived type overrides an inherited
33974         one. Add warning if the explicit declaration does not override.
33975
33976 2004-05-10  Vincent Celier  <celier@gnat.com>
33977
33978         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33979         some cases when the sources are no longer present.
33980
33981         * make.adb (Collect_Arguments): Fail if an external source, not part
33982         of any project need to be compiled, when switch -x has not been
33983         specified.
33984
33985         * makeusg.adb: Document new switch -x
33986
33987         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33988         defaulted to False.
33989
33990         * switch-m.adb (Scan_Make_Switches): New switch -x
33991
33992         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33993         gnatmake switch -x.
33994
33995         * gnat_ugn.texi: Document new gnatmake switch -x
33996
33997 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33998
33999         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34000
34001         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34002         (process_attributes): Likewise.
34003
34004 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
34005
34006         * s-inmaop.ads: Fix spelling mistake in one of the comments.
34007
34008 2004-05-10  Robert Dewar  <dewar@gnat.com>
34009
34010         * gnat_ugn.texi: Document that for config pragma files, the maximum
34011         line length is always 32767.
34012
34013         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34014         literals is now allowed.
34015
34016         * gnat-style.texi: Remove statement about splitting long lines before
34017         an operator rather than after, since we do not follow this rule at all.
34018         Clarify rule (really lack of rule) for spaces around exponentiation
34019
34020         * sem_elim.adb: Allow concatenation of string literals as well as a
34021         single string literal for pragma arguments.
34022
34023         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34024
34025         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34026         written for append case.
34027
34028         * frontend.adb: Changes to avoid checking max line length in config
34029         pragma files.
34030
34031         * g-os_lib.ads: Minor reformatting
34032
34033         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34034         wrong in any case. Instead use standard value. Noticed during code
34035         reading.
34036
34037         * opt.ads (Max_Line_Length): New field, used to implement removal of
34038         limitation on length of lines when scanning config pragma files.
34039
34040         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34041         makeutl.ads, makeutl.adb: Minor reformatting
34042
34043         * scn.adb: Do not check line length while scanning config pragma files
34044         Do not check line length while scanning out license information
34045
34046         * scng.adb: Changes to avoid line length checks while parsing config
34047         pragma files.
34048
34049 2004-05-10  GNAT Script  <nobody@gnat.com>
34050
34051         * Make-lang.in: Makefile automatically updated
34052
34053 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
34054
34055         * osint.adb (Find_Program_Name): Fix handling of VMS version
34056         number.
34057
34058 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
34059
34060         * g-os_lib.ads (Invalid_Time): New constant
34061
34062         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34063         return OS_Time instead of time_t to match what is imported by Ada.
34064         Now return -1 if the file doesn't exist, instead of a random value
34065
34066 2004-05-05  Robert Dewar  <dewar@gnat.com>
34067
34068         * usage.adb: Add line for -gnatR?s switch
34069
34070         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34071
34072         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34073         and for Match (Data_First, Data_last)
34074
34075         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34076         written when we are dealing with multi-unit files.
34077
34078 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
34079
34080         * Makefile.in: Remove unused targets and variables.
34081
34082 2004-05-05  Vincent Celier  <celier@gnat.com>
34083
34084         * switch-m.adb: New gnatmake switch -eI
34085
34086         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34087         of new gnatmake switch -eInnn.
34088
34089         * makegpr.adb: Take into account new parameters Index and Src_Index in
34090         Prj.Util.
34091
34092         * clean.adb: Implement support for multi-unit sources, including new
34093         switch -i.
34094
34095         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34096         Src_Index.
34097
34098         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34099         (Extract_From_Q): New out parameter Index
34100         (Mark, Is_Marked): Subprograms moved to Makeutl
34101         (Switches_Of): New parameter Source_Index
34102         (Add_Switch): New parameter Index
34103         (Check): New parameter Source_Index
34104         (Collect_Arguments): New parameter Source_Index
34105         (Collect_Arguments_And_Compile): New parameter Source_Index
34106         (Compile): New parameter Source_Index
34107         Put subprograms in alphabetical order
34108         Add support for multi-source sources, including in project files.
34109
34110         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34111         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34112         Make.
34113
34114         * makeusg.adb: New gnatmake switch -eInnn
34115
34116         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34117         Prj.Util.Value_Of.
34118
34119         * opt.ads (Main_Index): New variable, defaulted to 0.
34120
34121         * osint.ads, osinte.adb (Add_File): New parameter Index
34122         (Current_Source_Index): New function
34123
34124         * prj.adb: Take into account new components Index and Src_Index
34125
34126         * prj.ads (String_Element): New component Index
34127         (Variable_Value): New component Index
34128         (Array_Element): New component Src_Index
34129
34130         * prj-attr.adb: Indicate that optional index may be specified for
34131         attributes Main, Executable, Spec, Body and some of Switches.
34132
34133         * prj-attr.ads (Attribute_Kind): New values for optional indexes
34134         (Attribute_Record): New component Optional_Index
34135
34136         * prj-com.ads (File_Name_Data): New component Index
34137
34138         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34139
34140         * prj-env.adb (Put): Output optional index
34141
34142         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34143         attributes Spec and Body.
34144
34145         * prj-nmsc.adb: Process optional indexes
34146
34147         * prj-pp.adb: Ouput "at" for optional indexes
34148
34149         * prj-proc.adb: Take into account optional indexes
34150
34151         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34152         Optional_Index. For string literal,
34153         process optional index when Optional_Index is True.
34154         (Parse_Expresion): New Boolean parameter Optional_Index
34155
34156         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34157         (Set_Source_Index_Of): New procedure
34158
34159         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34160         index.
34161
34162         * prj-util.ads (Executable_Of): New parameter Index
34163         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34164         New parameter Src_Index, defaulted to 0.
34165
34166 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34167
34168         PR ada/15257
34169         * sem_ch3.adb (Access_Definition): If this is an access parameter
34170         whose designated type is imported through a limited_with clause, do
34171         not add the enclosing subprogram to the list of private dependents of
34172         the type.
34173
34174 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34175
34176         PR ada/15258
34177         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34178         a limited_with clause, and the other is its non-limited view.
34179
34180 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
34181
34182         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34183
34184         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34185         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34186         Stand.Boolean_Literals to produce references to entities
34187         Standard_False and Standard_True from compile-time computed boolean
34188         values.
34189
34190         * stand.ads (Boolean_Literals): New variable, provides the entity
34191         values for False and True, for use by the expander.
34192
34193 2004-05-05  Doug Rupp  <rupp@gnat.com>
34194
34195         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34196         5vinmaop.adb: Unchecked convert Short_Address vice Address
34197
34198         * adaint.c, raise.c: Caste CRTL function return value
34199         to avoid gcc error on 32/64 bit IVMS.
34200
34201         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34202         target = IA64/VMS.
34203
34204         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34205
34206         * 5qsystem.ads (Address): Declare as Long_Integer
34207         (Short_Address): Declare as 32 bit subtype of Address
34208         Declare  abstract address operations to avoid gratuitous ambiguities.
34209
34210 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
34211
34212         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34213         instead of the old Boolean_Entry_Barriers.
34214         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34215
34216 2004-05-05  GNAT Script  <nobody@gnat.com>
34217
34218         * Make-lang.in: Makefile automatically updated
34219
34220 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34221
34222         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34223
34224 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
34225
34226         PR ada/15152
34227         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34228         alone. Replacing object references by literals is inappropriate in a
34229         so low level context.
34230
34231 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34232
34233         * a-exexpr.adb: Add comments
34234
34235 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
34236
34237         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34238         declare the Ancestor_Tags array in Type_Specific_Data with a small size
34239         without risking a bounds check error when accessing one of its
34240         components.
34241         (Type_Specific_Data): Define Ancestor_Tags as a small array.
34242         This prevents us from hitting a limitation during the debug info
34243         generation when using stabs.
34244
34245         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34246         small array.
34247         This prevents us from hitting a limitation during the debug info
34248         generation when using stabs.
34249
34250 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
34251
34252         lang-specs.h: Remove -gnatz* from specs.
34253
34254 2004-05-03  Vincent Celier  <celier@gnat.com>
34255
34256         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34257
34258         * Make-lang.in, Makefile.in: Add gprmake
34259
34260 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
34261
34262         * sem_aggr.adb: Fix typo in comment.
34263
34264 2004-05-03  Robert Dewar  <dewar@gnat.com>
34265
34266         * make.adb: Minor reformatting
34267
34268         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34269
34270         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34271         so that it works when address is not a private type.
34272
34273         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34274         properly with rewritten unchecked conversions. This prevents
34275         order-of-elaboration issues that can otherwise arise.
34276         (Minimum_Size): Don't check size of access types under VMS
34277
34278         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34279         interpretations of integer literals as type System.Address.
34280
34281         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34282         (Is_Descendent_Of): New function
34283
34284 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
34285
34286         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34287         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34288         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34289
34290         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34291         of the old Max_Entry_Queue_Depth.
34292
34293         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34294         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34295         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34296
34297         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34298         New entry for proper handling of Max_Entry_Queue_Depth.
34299         New entry for proper handling of No_Dynamic_Interrupts.
34300
34301         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34302         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34303         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34304         the GNAT specific restriction Max_Entry_Queue_Depth.
34305         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34306         the GNAT specific restriction No_Dynamic_Interrupts.
34307
34308         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34309         instead of the old Boolean_Entry_Barriers.
34310         Use the new restriction No_Dynamic_Attachment instead of the old
34311         No_Dynamic_Interrupts.
34312
34313         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34314         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34315
34316         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34317         of the old Max_Entry_Queue_Depth.
34318
34319 2004-05-03  GNAT Script  <nobody@gnat.com>
34320
34321         * Make-lang.in: Makefile automatically updated
34322
34323 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
34324
34325         * checks.adb (Enable_Range_Check): If the prefix of an index component
34326         is an access to an unconstrained array, perform check unconditionally.
34327
34328 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34329
34330         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34331         Component_Clause.
34332
34333 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
34334
34335         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34336         alternate stack setting. There was no support for the tasking cases
34337         and the changes eventually caused a number of side-effect failures in
34338         the non-tasking case too.
34339
34340 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
34341
34342         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34343         -gnats is passed.
34344
34345 2004-04-29  Vincent Celier  <celier@gnat.com>
34346
34347         * make.adb (Gnatmake): Increase max size of argument array for
34348         gnatbind for the potential addition of -F.
34349         If there are Stand-Alone Library projects, invoke gnatbind with -F to
34350         be sure that elaboration flags will be checked.
34351
34352         * switch-c.adb: Correct call to Scan_Pos for -gnateI
34353
34354 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
34355
34356         * sem_warn.adb (Check_References): Move '<access-variable> may be
34357         null' warning out of under Warn_On_No_Value_Assigned.
34358
34359 2004-04-29  Ed Falis  <falis@gnat.com>
34360
34361         * gnat_ugn.texi: Fixed texi error
34362
34363 2004-04-29  Robert Dewar  <dewar@gnat.com>
34364
34365         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34366         abstract operations if they come from predefined files.
34367
34368         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34369         Dynamic, not RM).
34370
34371         * s-addope.adb: Correct obvious error in mod function
34372
34373 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
34374
34375         * Makefile.in: Add target pairs for powerpc darwin*
34376         tasking support.
34377
34378         * a-intnam-darwin.ads, s-osinte-darwin.adb,
34379         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34380
34381 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34382
34383         * Makefile.in: Add target macro definitions for s390*-linux*.
34384         * system-linux-s390.ads: New file.
34385         * system-linux-s390x.ads: New file.
34386
34387 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34388
34389         * gnat_ugn.texi: Correct argument to @setfilename.
34390
34391 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34392
34393         * a-exexpr.adb (Unwind_Word): New data type.
34394         (Unwind_Exception): Use it as type of Private1 and Private2.
34395
34396         * raise.c (db_action_for): Fix debug printf.
34397
34398 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34399
34400         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34401         integer type.
34402
34403 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34404
34405         * decl.c (gnat_to_gnu_entity, case object): Call
34406         __builtin_update_setjmp_buf.
34407
34408         * gigi.h (update_setjmp_buf): Deleted.
34409         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34410
34411         * misc.c: (update_setjmp_buf): Deleted.
34412
34413         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34414         around block of RTL.
34415
34416         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34417
34418 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34419
34420         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34421         subprogram for which no pragma All_Calls_Remote applies, store the
34422         address of the real subprogram in the underlying record type, so local
34423         dereferences do not go through the PCS.
34424
34425 2004-04-26  Robert Dewar  <dewar@gnat.com>
34426
34427         * i-c.ads: Add some type qualifications to avoid ambiguities when
34428         compiling with s-auxdec.ads and a non-private address type.
34429
34430 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34431
34432         * Makefile.rtl: Fix error in previous check-in:
34433         Add s-addope.o to non tasking object list (rather than tasking object
34434         list).
34435
34436 2004-04-26  Javier Miranda  <miranda@gnat.com>
34437
34438         * sem_aggr.adb: Fix typo in comments
34439         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34440         Required to check the null-exclusion attribute.
34441
34442         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34443         case of anonymous access types in record and array components. For a
34444         component definition the level is the same of the enclosing composite
34445         type.
34446
34447         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34448         that are anonymous access types the level of accessibility depends on
34449         the enclosing type declaration. In order to have this information, set
34450         the scope of the anonymous access type to the enclosing record type
34451         declaration.
34452         (Array_Type_Declaration): In case of components that are anonymous
34453         access types the level of accessibility depends on the enclosing type
34454         declaration. In order to have this information, set the scope of the
34455         anonymous access type to the enclosing array type declaration.
34456
34457         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34458         access type.
34459
34460         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34461         renaming of anonymous access-to-constant types allowed if and only if
34462         the renamed object is access-to-constant.
34463
34464         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34465         that are component_definition or discriminants of a nonlimited type,
34466         the level is the same as that of the enclosing component type.
34467
34468 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34469
34470         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34471         misprint in the function name (File_Name_Match).
34472
34473 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34474
34475         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34476         install.
34477
34478 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34479
34480         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34481
34482 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34483
34484         * adaint.c (__gnat_try_lock): No longer requires that the parent
34485         directory be writable, the directory itself is enough.
34486         (gnat_is_absolute_path): Change profile, so that the call from
34487         GNAT.OS_Lib can be made more efficient.
34488
34489         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34490         from GNAT.OS_Lib can be made more efficient.
34491
34492         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34493         one copy of the file name. Found by code reading.
34494
34495 2004-04-23  Vincent Celier  <celier@gnat.com>
34496
34497         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34498         Correct documentation on gnatmake switches transmitted to the compiler
34499
34500         * ali.ads: Minor comment fix
34501
34502 2004-04-23  Javier Miranda  <miranda@gnat.com>
34503
34504         * sem_ch6.adb: (Confirming Types): Code cleanup
34505
34506         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34507         subprogram types: E_Anonymous_Access_Subprogram_Type and
34508         E_Anonymous_Access_Protected_Subprogram_Type.
34509
34510 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34511
34512         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34513         whether a pragma All_Calls_Remote applies to the subprogram on which
34514         'Access is taken.
34515         No functional change is introduced by this revision; the new parameter
34516         will be used to allow calls to local RCI subprograms to be optimized
34517         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34518         as is already done in the PolyORB implementation of the DSA.
34519
34520         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34521         whether a pragma All_Calls_Remote applies to the subprogram on which
34522         'Access is taken.
34523         No functional change is introduced by this revision; the new parameter
34524         will be used to allow calls to local RCI subprograms to be optimized
34525         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34526         as is already done in the PolyORB implementation of the DSA.
34527
34528 2004-04-23  Robert Dewar  <dewar@gnat.com>
34529
34530         * Makefile.rtl: Add entry for s-addope.o in run time library list
34531         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34532         * s-addope.ads, s-addope.adb: New files.
34533
34534         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34535         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34536         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34537         System.Address to be non-private and signed.
34538
34539         * sem_elim.adb: Minor reformatting (fairly extensive)
34540         Some minor code reorganization from code reading
34541         Add a couple of ??? comments
34542
34543 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34544
34545         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34546         (tree_transform, case N_If_Statement): Remove non-determinism.
34547
34548         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34549
34550 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34551
34552         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34553         Eliminate' section.
34554
34555         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34556         no longer used as a parameter name for Eliminate pragma).
34557
34558 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34559
34560         PR optimization/14984
34561         PR optimization/14985
34562         * trans.c (gigi): Fix non determinism leading to bootstrap
34563         comparison failures.
34564
34565 2004-04-21  Pascal Obry  <obry@gnat.com>
34566
34567         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34568         passed to spawnvp() to properly handle program pathname with spaces on
34569         Win32.
34570
34571 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34572
34573         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34574         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34575         unlocked in case of exceptions.
34576
34577 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34578
34579         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34580         This function does not exist anymore.
34581
34582 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34583
34584         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34585
34586         * link.c: Move variables to the __gnat name space.
34587
34588         * Makefile.in: list link.o explicitly when needed.
34589
34590         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34591
34592 2004-04-21  Javier Miranda  <miranda@gnat.com>
34593
34594         * einfo.adb (Original_Access_Type): New subprogram
34595         (Set_Original_Access_Type): New subprogram
34596         (Write_Field21_Name): Write the name of the new field
34597
34598         * einfo.ads (Original_Access_Type): New field present in access to
34599         subprogram types.
34600         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34601         E_Anonymous_Access_Protected_Subprogram_Type.
34602
34603         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34604         subprogram types.
34605
34606         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34607         to anonymous access to subprogram types.
34608
34609         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34610         to subprogram types.
34611
34612         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34613         corresponding to anonymous access to subprogram types.
34614         (Analyze_Component_Declaration): Add new actual to the call to
34615         subprogram replace_anonymous_access_to_protected_subprogram.
34616         (Array_Type_Declaration): Add new actual to the call to subprogram
34617         replace_anonymous_access_to_protected_subprogram.
34618         (Process_Discriminants): Add new actual to the call to subprogram
34619         replace_anonymous_access_to_protected_subprogram.
34620         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34621
34622         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34623         formal.
34624
34625         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34626         access to subprogram types.
34627
34628         * sem_util.adb (Has_Declarations): Addition of package_specification
34629         nodes.
34630
34631 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34632
34633         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34634         inlined flags to renamed entity only if in current unit.
34635
34636 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34637
34638         * s-parint.ads: Add DSA implementation marker.
34639
34640         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34641         value of System.Partition_Interface.DSA_Implementation to determine
34642         what version of the distributed systems annex is available (no
34643         implementation, GLADE, or PolyORB).
34644
34645 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34646
34647         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34648
34649 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34650
34651         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34652         with new type if alias sets differ.
34653         Fixes ACATS c41103b.
34654
34655 2004-04-21  Vincent Celier  <celier@gnat.com>
34656
34657         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34658         Add array Lang_Args for the language specific compiling argument
34659         switches.
34660
34661         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34662
34663 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34664
34665         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34666         according to the recent changes in the format of the parameters of the
34667         pragma (replacing Homonym_Number with Source_Location).
34668
34669 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34670
34671         * 5isystem.ads: Removed, unused.
34672
34673         * gnat_rm.texi: Redo 1.13 change.
34674
34675 2004-04-19  Robert Dewar  <dewar@gnat.com>
34676
34677         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34678         definition is cleaner, avoids the kludge of explicit Standard operator
34679         references, and also is consistent with a visible System.Address with
34680         no visible operations.
34681
34682         * s-geveop.adb: Add declarations to avoid assumption of visible
34683         operations on type System.Address (since these might not be available
34684         if Address is a non-private type for which the operations
34685         are made abstract).
34686
34687         * sem_eval.adb: Minor reformatting
34688
34689         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34690         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34691         reformatting (new function spec format).
34692
34693         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34694         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34695         s-caun64.adb: Add declarations to avoid assumption of visible
34696         operations on type System.Address (since these might not be available
34697         if Address is a non-private type for which the operations are made
34698         abstract).
34699
34700         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34701
34702         * exp_intr.adb: Minor comment update
34703
34704         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34705
34706         * 5omastop.adb: Add declarations to avoid assumption of visible
34707         operations on type System.Address (since these might not be available
34708         if Address is a non-private type for which the operations
34709         are made abstract).
34710
34711 2004-04-19  Vincent Celier  <celier@gnat.com>
34712
34713         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34714
34715         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34716         defaulted to Ada.
34717
34718         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34719         defaulted to Ada.
34720         Call Check with Process_Languages.
34721         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34722         with Process_Languages.
34723         (Recursive_Check): New Boolean parameter Process_Languages. Call
34724         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34725         Process_Languages.
34726
34727         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34728
34729         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34730         parameter Ada_Main, defaulted to True.
34731         Check for Ada specific characteristics only when Ada_Main is True.
34732
34733         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34734
34735         * prj.adb: (Project_Empty): Add new Project_Data components.
34736
34737         * prj.ads: New types and tables for non Ada languages.
34738         (Project_Data): New components Languages, Impl_Suffixes,
34739         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34740         Include_Path, Include_Data_Set.
34741
34742         * prj-env.ads, prj-env.adb: Minor reformatting
34743
34744         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34745         Put subprograms in alphabetical order
34746
34747         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34748         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34749         Opt.Follow_Links.
34750
34751         * mlib-prj.adb: Back out modification in last version, as they are
34752         incorrect.
34753         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34754
34755         * make.adb: (Mains): Moved to package Makeutl
34756         (Linker_Opts): Moved to package Makeutl
34757         (Is_External_Assignment): Moved to package Makeutl
34758         (Test_If_Relative_Path): Moved to package Makeutl
34759         (Gnatmake): Move sorting of linker options to function
34760         Makeutl.Linker_Options_Switches.
34761
34762         * makeutl.ads, makeutl.adb: New files.
34763
34764         * Makefile.in: Add makeutl.o to the object files for gnatmake
34765
34766         * makeusg.adb: Add line for new switch -eL.
34767
34768         * gnatls.adb (Image): New function.
34769         (Output_Unit): If in verbose mode, output the list of restrictions
34770         specified by pragmas Restrictions.
34771
34772         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34773         Text_IO.
34774
34775         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34776         needed, to put it in the range 1970 (included) - 2026 (excluded).
34777         (Time_Of): Do not shift Unix_Min_Year (1970).
34778         Shift the date by multiple of 56 years, if needed, to put it in the
34779         range 1970 (included) - 2026 (excluded).
34780
34781         * adaint.h, adaint.c (__gnat_set_executable): New function.
34782
34783 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34784
34785         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34786         and pop GC context.
34787         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34788         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34789         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34790         (tree_transform, case N_Code_Statement): Likewise.
34791         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34792         LABEL_STMT_FIRST_IN_EH.
34793         (gnat_expand_stmt, case ASM_STMT): New case.
34794
34795         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34796         UNCONSTRAINED_ARRAY_REF.
34797
34798         * utils.c (poplevel): Temporarily push/pop GC context around inline
34799         function expansion.
34800
34801         * decl.c (maybe_variable): Properly set TREE_READONLY of
34802         UNCONSTRAINED_ARRAY_REF.
34803         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34804
34805         * ada-tree.def: (ASM_STMT): New.
34806
34807         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34808         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34809         ASM_STMT_INPUT): New.
34810         (ASM_STMT_CLOBBER): Likewise.
34811
34812 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34813
34814         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34815         general rcheck mechanism to raise Program_Error for E.4(18), instead
34816         of a custom raiser in System.Partition_Interface.
34817         Part of general cleanup work before PolyORB integration.
34818
34819         * snames.ads, snames.adb: Add new runtime library entities and names
34820         for PolyORB DSA.
34821
34822         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34823         exp_dist.
34824         (Build_Subprogram_Id): New subprogram provided by exp_dist
34825         Code reorganisation in preparation for PolyORB integration.
34826
34827         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34828         exp_dist.
34829         (Build_Subprogram_Id): New subprogram provided by exp_dist
34830
34831         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34832         actual parameter types for call to dereference of an
34833         access-to-subprogram type.
34834
34835         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34836         DSA.
34837
34838         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34839         instead, which has the same behaviour here since we never pass it a
34840         NULL pointer.
34841
34842         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34843         platforms.
34844
34845         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34846         to account for new dependency upon Interfaces.C.Strings + link.o
34847         For x86 FreeBSD, use 86numaux.
34848
34849         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34850         from Mlib.Tgt to Mlib.
34851
34852         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34853         target-independent.
34854
34855         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34856         target-specific versions of this subprogram, now implemented as a
34857         target-independent function in Mlib.
34858
34859         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34860         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34861         (Linker_Library_Path_Option): Remove target-specific versions of this
34862         subprogram, now implemented as a target-independent function in Mlib.
34863
34864         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34865         Factors out node table slots allocation.
34866         (Fix_Parents): New subprogram.
34867         Encapsulate the pattern of fixing up parent pointers for syntactic
34868         children of a rewritten node.
34869         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34870         (Rewrite): Use New_Copy when creating saved copy of original node.
34871         (Replace): Use Copy_Node to copy nodes.
34872
34873 2004-04-19  Javier Miranda  <miranda@gnat.com>
34874
34875         * sprint.adb (Sprint_Node_Actual): Give support to the new
34876         Access_To_Subprogram node available in Access_Definition nodes. In
34877         addition, give support to the AI-231 node fields: null-exclusion,
34878         all-present, constant-present.
34879
34880         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34881
34882         * sinfo.ads, sinfo.adb:
34883         New field Access_To_Subprogram_Definition in Access_Definition nodes
34884
34885         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34886         decorates internal subtype declaration corresponding to the
34887         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34888         In addition, carry out some code cleanup on this code. In case of
34889         access to protected subprogram call
34890         Replace_Anonymous_Access_To_Protected_Subprogram.
34891         (Set_Actual_Subtypes): Code cleanup.
34892
34893         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34894         Find_Type in case of anonymous access renamings. Add warning in case of
34895         null-excluding attribute used in anonymous access renaming.
34896
34897         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34898         subprogram
34899
34900         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34901         subprogram.
34902         (Access_Definition): In case of anonymous access to subprograms call
34903         the corresponding semantic routine to decorate the node.
34904         (Access_Subprogram_Declaration): Addition of some comments indicating
34905         some code that probably should be added here. Detected by comparison
34906         with the access_definition subprogram.
34907         (Analyze_Component_Declaration): In case of access to protected
34908         subprogram call Replace_Anonymous_Access_To_Protected.
34909         (Array_Type_Declaration): In case of access to protected subprogram call
34910         Replace_Anonymous_Access_To_Protected_Subprogram.
34911         (Process_Discriminants): In case of access to protected subprogram call
34912         Replace_Anonymous_Access_To_Protected_Subprogram.
34913
34914         * par.adb (P_Access_Definition): New formal that indicates if the
34915         null-exclusion part was present.
34916         (P_Access_Type_Definition): New formal that indicates if the caller has
34917         already parsed the null-excluding part.
34918
34919         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34920         (P_Identifier_Declarations): Code cleanup and give support to renamings
34921         of anonymous access to subprogram types.
34922         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34923         (P_Array_Type_Definition): Give support to AI-254.
34924         (P_Component_Items): Give support to AI-254.
34925         (P_Access_Definition): New formal that indicates if the header was
34926         already parsed by the caller.
34927         (P_Access_Type_Definition): New formal that indicates if the caller has
34928         already parsed the null-excluding part.
34929
34930         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34931         call to P_Access_Definition.
34932
34933 2004-04-19  Geert Bosch  <bosch@gnat.com>
34934
34935         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34936         the delicate semantics of floating-point to integer conversion.
34937         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34938
34939         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34940         (Machine_Radix): New function.
34941
34942         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34943         conversion checks.
34944         (Machine_Radix): New function also for use in conversion checks.
34945
34946 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34947
34948         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34949
34950         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34951         to decorate the access-to-protected subprogram and the equivalent type.
34952
34953         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34954         to anonymous access to subprogram types.
34955
34956         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34957         constant-folding, for legality checks in contexts that require an RM
34958         static expression.
34959
34960         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34961         temporary but stack checking is not enabled, increment serial number
34962         to so that symbol generation is consistent with and without stack
34963         checking.
34964
34965         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34966         independent on whether stack checking is enabled, caller must check
34967         the corresponding flag.
34968
34969         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34970         range checks.
34971         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34972         parent if it has discriminants.
34973         (Build_Derived_Private_Type): Constructed full view does
34974         not come from source.
34975         (Process_Discriminants): Default discriminants on a tagged type are
34976         legal if this is the internal completion of a private untagged
34977         derivation.
34978
34979         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34980         no constraint checks, because it corresponds to an existing object.
34981
34982         * sem_prag.adb (Process_Convention): Pragma applies
34983         only to subprograms in the same declarative part, i.e. the same unit,
34984         not the same scope.
34985
34986         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34987         ignore type mismatch on a numeric conversion if expression comes from
34988         expansion.
34989
34990 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34991
34992         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34993         Homonym_Number parameter, add processing for Source_Location parameter
34994         corresponding.
34995         (Check_Eliminated): Remove the check for homonym numbers, add the check
34996         for source location traces.
34997
34998         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34999         with Arg_Source_Location corresponding to the changes in the format of
35000         the pragma.
35001
35002         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35003         Eliminate pragma corresponding to the changes in the format of the
35004         pragma: Homonym_Number is replaced with Source_Location, two ways of
35005         distinguishing homonyms are mutially-exclusive.
35006
35007 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
35008
35009         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35010
35011         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35012         No_Dollar_In_Label, no longer necessary, as it is always True.
35013         (Strip_Suffixes): Likewise.
35014
35015 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
35016
35017         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35018         modulus for compatibility with size clause on targets with 16-bit
35019         Integer.
35020
35021         * layout.adb (Discrimify): In the case of private types, set Vtyp to
35022         full type to fix type mismatches on calls to size functions for
35023         discriminant-dependent array components.
35024
35025 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
35026
35027         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35028         lib.
35029
35030 2004-04-19  Pascal Obry  <obry@gnat.com>
35031
35032         * mdll-utl.adb (Locate): New version is idempotent.
35033
35034 2004-04-17  Laurent Guerby  <laurent@guerby.net>
35035
35036         PR ada/14988 (partial)
35037         * impunit.adb: Fix typo.
35038
35039 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35040
35041         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35042         and install-rts-cert targets.  Remove all gnatlib and gnattools
35043         targets and all other rts-* targets (moved to libada).  Remove (now)
35044         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35045         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35046
35047 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35048
35049         * trans.c (tree_transform): Shortcut returning error_mark_node for
35050         statements in annotate_only_mode.
35051         (tree_transform, case N_Label, case N_Return_Statement,
35052         N_Goto_Statement): Make statement tree instead of generating code.
35053         (tree_transform, case N_Assignment_Statement): No longer check
35054         type_annotate_only.
35055         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35056         RETURN_STMT): New.
35057         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35058         New fcns.
35059         (gnat_to_gnu): Collect any RTL generated and deal with it.
35060         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35061         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35062         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35063
35064         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35065
35066         * ada-tree.def (EXPR_STMT): Fix typo in name.
35067         (BLOCK_STMT, IF_STMT): New nodes.
35068
35069         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35070         LABEL_STMT_FIRST_IN_EH): New macros.
35071         (RETURN_STMT_EXPR): Likewise.
35072
35073         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35074         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35075
35076 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
35077
35078         * atree.ads: Correct documentation on extended nodes.
35079
35080         * link.c: Set run_path_option for FreeBSD.
35081
35082 2004-04-08  Vincent Celier  <celier@gnat.com>
35083
35084         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35085         one of the ALI file, do not link with DEC lib.
35086
35087         * par.adb Remove the last two characters ("%s" or "%b") when checking
35088         if a language defined unit may be recompiled.
35089
35090 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
35091
35092         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35093         removal of abstract operation leaves no possible interpretation for
35094         expression.
35095
35096         * sem_eval.adb (Eval_Qualified_Expression): Use
35097         Set_Raises_Constraint_Error on node when needed, so that it does not
35098         get optimized away by subsequent optimizations.
35099
35100         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35101         operands even when they are not wrapped in a type conversion.
35102
35103 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
35104
35105         * sem_prag.adb (Set_Exported): Warn about making static as result of
35106         export only when the export is coming from source. This may be not
35107         be true e.g. on VMS where we expand export pragmas for exception codes
35108         together with imported or exported exceptions, and we don't want the
35109         user to be warned about something he didn't write.
35110
35111 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
35112
35113         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35114         duplication between normal entities and those declared as renamings.
35115         No functional change.
35116
35117         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35118         inline functions returning an unconstrained result.
35119
35120 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
35121
35122         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35123         conform to what other front-ends do.
35124
35125 2004-04-08  Doug Rupp  <rupp@gnat.com>
35126
35127         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35128         libraries.
35129
35130 2004-04-06  Pascal Obry  <obry@gnat.com>
35131
35132         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35133
35134         * osint.adb (Program_Name): Do not look past a directory separator.
35135
35136 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
35137
35138         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35139
35140         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35141         requirement for preserving a copy of the original assignment node.
35142
35143         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35144
35145 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
35146
35147         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35148         when supported.
35149
35150 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
35151
35152         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35153         operator calls in functional notation, and apply
35154         Universal_Interpretation to operands, not to their type.
35155
35156 2004-04-06  Robert Dewar  <dewar@gnat.com>
35157
35158         * 5wdirval.adb: Minor reformatting
35159
35160 2004-04-06  Ed Falis  <falis@gnat.com>
35161
35162         * gnat_rm.texi: Improve a reference to the GCC manual
35163
35164 2004-04-05  Vincent Celier  <celier@gnat.com>
35165
35166         * adaint.h, adaint.c: Add function __gnat_named_file_length
35167
35168         * impunit.adb: Add Ada.Directories to the list
35169
35170         * Makefile.in: Add VMS and Windows versions of
35171         Ada.Directories.Validity package body.
35172
35173         * Makefile.rtl: Add a-direct and a-dirval
35174
35175         * mlib-tgt.ads: Minor comment update.
35176
35177         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35178         a-direct.ads, a-direct.adb: New files.
35179
35180 2004-04-05  Vincent Celier  <celier@gnat.com>
35181
35182         PR ada/13620
35183         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35184         just to the compiler.
35185
35186 2004-04-05  Robert Dewar  <dewar@gnat.com>
35187
35188         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35189         returned string is 1.
35190
35191         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35192
35193         * eval_fat.ads: Minor reformatting
35194
35195         * g-curexc.ads: Document that lower bound of returned string values
35196         is always one.
35197
35198         * gnatlink.adb: Add ??? comment for previous change
35199         (need to document why this is VMS specific)
35200
35201         * s-stoele.ads: Minor reformatting
35202
35203         * tbuild.ads: Minor reformatting throughout (new function specs)
35204
35205         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35206         after WITH.
35207
35208         * scng.adb: Minor reformatting
35209
35210 2004-04-05  Geert Bosch  <bosch@gnat.com>
35211
35212         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35213         (Leading_Part): Still perform truncation to machine number if the
35214         specified radix_digits is greater or equal to machine_mantissa.
35215
35216 2004-04-05  Javier Miranda  <miranda@gnat.com>
35217
35218         * par-ch3.adb: Complete documentation of previous change
35219         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35220         (aliased must appear before constant).
35221
35222         * par-ch4.adb: Complete documentation of previous change.
35223
35224         * par-ch6.adb: Complete documentation of previous change.
35225
35226         * sinfo.ads: Fix typo in commment.
35227
35228 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
35229
35230         * sem_ch3.adb (Inherit_Components): If derived type is private and has
35231         stored discriminants, use its discriminants to constrain parent type,
35232         as is done for non-private derived record types.
35233
35234         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35235         Ada 2005 AI-310: an abstract non-dispatching operation is not a
35236         candidate interpretation in an overloaded call.
35237
35238         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35239         expression is Null and target type is not an access type (e.g. a
35240         non-private address type).
35241
35242 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
35243
35244         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35245         statement whose right-hand side is an inlined call, save a copy of the
35246         original assignment subtree to preserve enough consistency for
35247         Analyze_Assignment to proceed.
35248
35249         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35250         complete assignment subtree which is now unnecessary, as the expansion
35251         of inlined call has been improved to preserve a consistent assignment
35252         tree.  Note_Possible_Modification must be called only
35253         after checks have been applied, or else unnecessary checks will
35254         be generated.
35255
35256         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35257         of explicit dereferences that do not Come_From_Source:
35258          - be selective on cases where we must go back to the dereferenced
35259            pointer (an assignment to an implicit dereference must not be
35260            recorded as modifying the pointer);
35261          - do not rely on Original_Node being present (Analyze_Assignment
35262            calls Note_Possible_Modification on a copied tree).
35263
35264         * sem_warn.adb (Check_References): When an unset reference to a pointer
35265         that is never assigned is encountered, prefer '<pointer> may be null'
35266         warning over '<pointer> is never assigned a value'.
35267
35268 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
35269
35270         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35271         the ABI.
35272
35273 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
35274
35275         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35276         libexc. We currently don't reference anything in this library and
35277         linking it in triggers linker warnings we don't want to see.
35278
35279         * init.c: Update comments.
35280
35281 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35282
35283         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35284         * utils.c (create_field_decl): Likewise.
35285         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35286
35287 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
35288
35289         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35290         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35291         Add info directory entry and category.
35292
35293 2004-04-02  Jan Hubicka  <jh@suse.cz>
35294
35295         * utils.c: Include function.h
35296         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35297
35298 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35299
35300         PR ada/14150
35301         * Make-lang.in: Clean up generation of documentation
35302
35303         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35304
35305         * xgnatug.adb: Removed, replaced by xgnatugn.adb
35306
35307         * xgnatugn.adb: Replaces xgnatug.adb
35308
35309         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35310
35311         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35312
35313         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35314         gnat_ug_wnt.texi: Removed.
35315
35316 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35317
35318         * utils2.c: Update copyright notice.
35319
35320 2004-04-01  Robert Dewar  <dewar@gnat.com>
35321
35322         * checks.adb: Minor reformatting throughout
35323         Note that prev checkin added RM reference to alignment warning
35324
35325 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
35326
35327         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35328         non-static when building aggregate for bit-packed array.
35329
35330         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35331         function call that is itself the actual in a procedure call, build
35332         temporary for it.
35333
35334         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35335         a string literal, create a temporary for it, constant folding only
35336         handles scalars here.
35337
35338 2004-04-01  Vincent Celier  <celier@gnat.com>
35339
35340         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35341         Error_Msg_SP): New empty procedures to instantiate the Scanner.
35342         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35343         tokens.
35344         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35345         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35346         and get the checksum.
35347
35348         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35349         already in the Q.
35350         Increase the Marking_Label at the end of the Multiple_Main_Loop,
35351         instead of at the beginning.
35352
35353         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35354         directly.
35355         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35356         on VMS.
35357
35358         * osint.ads (Multi_Unit_Index_Character): New Character global variable
35359
35360         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35361         not '~' directly.
35362
35363         * par.adb: Remove test on file name to detect language defined units.
35364         Add test on unit name, after parsing, to detect language defined units
35365         that are not compiled with -gnatg (except System.RPC and its children)
35366
35367         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35368         following units without style checking.
35369
35370         * switch-c.adb: Change -gnatC to -gnateI
35371
35372         * usage.adb: Document new switch -gnateInnn
35373
35374         * scng.adb (Accumulate_Token_Checksum): New procedure
35375         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35376         word or literal number.
35377         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35378         numbers.
35379
35380 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35381
35382         * a-tasatt.adb,
35383         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35384         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35385         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35386         5vtpopde.adb: Add missing 'constant' keywords.
35387
35388 2004-04-01  Javier Miranda  <miranda@gnat.com>
35389
35390         * par-ch4.adb: (P_Allocator): Code cleanup
35391
35392         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35393         attribute.
35394
35395         * sinfo.ads: Complete documentation of previous change
35396
35397 2004-04-01  Pascal Obry  <obry@gnat.com>
35398
35399         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35400         only on VMS.  This special handling was done because an old GNU/ld bug
35401         on Windows which has been fixed.
35402
35403 2004-04-01  GNAT Script  <nobody@gnat.com>
35404
35405         * Make-lang.in: Makefile automatically updated
35406
35407 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35408
35409         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35410         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35411         * trans.c (tree_transform, convert_with_check): Likewise.
35412         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35413         (build_vms_descriptor, unchecked_convert): Likewise.
35414         * utils2.c (nonbinary_modular_operation): Likewise.
35415
35416 2004-03-29  Javier Miranda  <miranda@gnat.com>
35417
35418         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35419         (Install_Null_Excluding_Check): Local subprogram that determines whether
35420         an access node requires a runtime access check and if so inserts the
35421         appropriate run-time check.
35422         (Apply_Access_Check): Call Install_Null_Excluding check if required
35423         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35424
35425         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35426
35427         * einfo.ads: Fix typo in comment
35428
35429         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35430         null-excluding type to force the corresponding run-time check.
35431         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35432         type to force the corresponding run-time check.
35433
35434         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35435         the null-excluding type to force the corresponding run-time check.
35436
35437         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35438         case of access types unless they have the null-excluding attribute.
35439
35440         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35441         part.
35442
35443         * exp_util.ads: Fix typo in comment
35444
35445         * par.adb (P_Null_Exclusion): New subprogram
35446         (P_Subtype_Indication): New formal that indicates if the null-excluding
35447         part has been scanned-out and it was present
35448
35449         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35450
35451         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35452         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35453         type to force the corresponding run-time check
35454         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35455         components
35456         (Resolve_Array_Aggregate): Carry out some static checks
35457         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35458
35459         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35460         attribute must be set only if specified by means of the null-excluding
35461         part. In addition, we must also propagate the access-constant attribute
35462         if present.
35463         (Access_Subprogram_Declaration, Access_Type_Declaration,
35464         Analyze_Component_Declaration, Analyze_Object_Declaration,
35465         Array_Type_Declaration, Process_Discriminants,
35466         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35467         and carry out some static checks.
35468         (Build_Derived_Access_Type): Set the null-excluding attribute
35469         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35470         checks.
35471
35472         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35473
35474         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35475
35476         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35477         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35478         null-excluding part was present; it is not required to be done here in
35479         case of anonymous access types.
35480         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35481         value.
35482
35483         * sem_res.adb (Resolve_Actuals): Carry out some static check
35484         (Resolve_Null): Allow null in anonymous access
35485
35486         * sinfo.adb: New subprogram Null_Exclusion_Present
35487         All_Present and Constant_Present available on access_definition nodes
35488
35489         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35490         object_declaration, derived_type_definition, component_definition,
35491         discriminant_specification, access_to_object_definition,
35492         access_function_definition, allocator, access_procedure_definition,
35493         access_definition, parameter_specification, All_Present and
35494         Constant_Present flags available on access_definition nodes.
35495
35496 2004-03-29  Robert Dewar  <dewar@gnat.com>
35497
35498         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35499         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35500         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35501         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35502         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35503         sem_prag.adb: Updates to handle multiple units/file
35504
35505         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35506
35507         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35508         sem_util.adb: Minor reformatting
35509
35510         * sem_ch12.adb: Add comment for previous change
35511
35512 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35513
35514         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35515         executable name when not initialized. Otherwise, use its current value.
35516
35517         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35518         initialize it to another executable name than the current one. This
35519         allows to configure paths for an executable name (gnatmake) different
35520         from the current one (gnatdist).
35521
35522 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35523
35524         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35525         current unit cannot be inlined if it appears in the body of a withed
35526         unit, to avoid order of elaboration problems in gigi.
35527
35528         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35529         information for protected (wrapper) operation as well, to simplify gdb
35530         use.
35531
35532         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35533         protected body, indicate that the entity for the generated spec comes
35534         from source, to ensure that references are properly generated for it.
35535         (Build_Body_To_Inline): Do not inline a function that returns a
35536         controlled type.
35537
35538         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35539         apply convention to homonyms that are declared explicitly.
35540
35541         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35542         that renames an equality operator and the operands are overloaded,
35543         resolve them with the declared formal types, before rewriting as an
35544         operator.
35545
35546 2004-03-29  GNAT Script  <nobody@gnat.com>
35547
35548         * Make-lang.in: Makefile automatically updated
35549
35550 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35551
35552         * memtrack.adb: Log realloc calls, which are treated as free followed
35553         by alloc.
35554
35555 2004-03-25  Vincent Celier  <celier@gnat.com>
35556
35557         * prj-makr.adb (Process_Directories): Detect when a file contains
35558         several units. Do not include such files in the config pragmas or
35559         in the naming scheme.
35560
35561         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35562         Resolve links only when not in Trusted_Mode.
35563         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35564         Do not resolve links for the display names.
35565
35566         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35567         resolve links when computing the display names.
35568
35569 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35570
35571         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35572         attribute reference does not denote a subtype, it can be any
35573         expression that has a classwide type, potentially after an implicit
35574         dereference.  In particular, the prefix can be a view conversion for
35575         a classwide type (for which Is_Object_Reference holds), but it can
35576         also be a value conversion for an access-to-classwide type. In the
35577         latter case, there is an implicit dereference, and the original node
35578         for the prefix does not verify Is_Object_Reference.
35579
35580         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35581         conversion of a discriminant-dependent component of a mutable object
35582         is one itself.
35583
35584 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35585
35586         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35587         inherited, has convention C, and has unconstrained array parameters,
35588         place the corresponding warning on the derived type declaration rather
35589         than the original subprogram.
35590
35591         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35592         indication on renaming declaration, if formal has a box and actual
35593         is absent.
35594
35595         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35596         determine whether to generate an implicit or explicit reference to
35597         the renamed entity.
35598
35599         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35600         subprogram renaming comes from a defaulted formal subprogram in an
35601         instance.
35602
35603 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35604
35605         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35606         value expressions to ensure that calls within a component definition
35607         will be checked (since those are evaluated during the record type's
35608         elaboration).
35609
35610 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35611
35612         * s-tpobop.adb: Code clean up:
35613         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35614         code.
35615         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35616
35617 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35618
35619         * Makefile.in: Clean up in the ravenscar run time.
35620
35621 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35622
35623         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35624         of No_Strict_Aliasing to build_pointer_type_for_mode.
35625         * utils.c (update_pointer_to): Walk pointer and ref chains.
35626
35627 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35628
35629         * ali.ads: Fix Comment about Dynamic_Elab.
35630
35631         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35632         Has_RACW, Is_Generic, etc.)
35633         (Output_Object, Gnatls): Take into account ALI files not attached to
35634         an object.
35635
35636 2004-03-22  Vincent Celier  <celier@gnat.com>
35637
35638         * gprep.adb: Change all String_Access to Name_Id
35639         (Is_ASCII_Letter): new function
35640         (Double_File_Name_Buffer): New procedure
35641         (Preprocess_Infile_Name): New procedure
35642         (Process_Files): New procedure
35643         (Gnatprep): Check if output and input are existing directories.
35644         Call Process_Files to do the real job.
35645
35646 2004-03-22  Robert Dewar  <dewar@gnat.com>
35647
35648         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35649         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35650
35651 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35652
35653         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35654         case when the source contains only comments.
35655
35656 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35657
35658         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35659         declaration for a child subprogram body that acts as a spec, indicate
35660         that the entity in the declaration needs debugging information.
35661
35662         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35663         full view if the subtype is created for a constrained record component;
35664         gigi has enough information to construct the record, and there is no
35665         place in the tree for the declaration.
35666
35667         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35668         serial number for the dummy body that is built for analysis, to avoid
35669         inconsistencies in the generation of internal names when compiling
35670         with -gnatN.
35671
35672 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35673
35674         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35675         object.
35676
35677 2004-03-22  GNAT Script  <nobody@gnat.com>
35678
35679         * Make-lang.in: Makefile automatically updated
35680
35681 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35682
35683         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35684         * trans.c (tree_transform, emit_index_check): Likewise.
35685         * utils.c (build_template): Likewise.
35686         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35687         (maybe_unconstrained_array, unchecked_convert): Likewise.
35688         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35689         (build_unary_op): Likewise.
35690         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35691         (fill_vms_descriptor): Likewise.
35692         (build_call_alloc_dealloc): Likewise.
35693         ALIGN is unsigned.
35694         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35695
35696 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35697
35698         PR other/14630
35699         * gnat_ug.texi: Add info directory category and entry.
35700         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35701         gnat_ug_wnt.texi: Regenerate.
35702
35703 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35704
35705         * ada-tree.h: Update copyright notice.
35706         Minor reformatting.
35707
35708 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35709
35710         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35711         as regular exception objects and not as mere integers representing the
35712         condition code.  The latter approach required some dynamics to mask off
35713         severity bits, which did not fit well into the GCC table based model.
35714         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35715         exception data objects. We don't it and it would conflict with the other
35716         external symbol we have to generate for such exceptions.
35717
35718         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35719         the special code for VMS exceptions, since these are now represented
35720         as regular exceptions objects.
35721
35722 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35723
35724         * decl.c (debug_no_type_hash): Remove.
35725         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35726         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35727
35728 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35729
35730         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35731         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35732
35733 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35734
35735         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35736         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35737         (TYPE_RM_SIZE_INT): Directly use type.values.
35738         (TREE_LOOP_ID): Clean up check.
35739         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35740         TYPE_VALUES, not TYPE_FIELDS.
35741         * trans.c (convert_with_check): Delay access of bounds of basetype
35742         until sure is numeric.
35743
35744 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35745
35746         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35747
35748         Code clean up:
35749         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35750         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35751         Specific.Set instead of direct call to e.g pthread_setspecific.
35752
35753 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35754
35755         * adaint.c: Update comments.
35756
35757         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35758         GNATLIB_SHARED for FreeBSD.
35759
35760 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35761
35762         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35763         When needed (stack checking) the stack size is retrieved
35764         from the VxWorks kernel.
35765
35766         * Makefile.in: Flag -nostdinc is required when building the run time
35767         for avoiding looking for files in the base compiler.
35768         Add the VxWorks specific version of the package body for
35769         System.Stack_checking.Operations (5zstchop.adb).
35770
35771         * Make-lang.in: Add the object file for
35772         System.Stack_Checking.Operations.
35773
35774         * Makefile.rtl: Add object file for the package
35775         System.Stack_Checking.Operations.
35776
35777         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35778
35779         * s-stache.ads, s-stache.adb: Move the operations related to stack
35780         checking from this package to package System.Stack_Checking.Operations.
35781         This way, stack checking operations are only linked in the final
35782         executable when using the -fstack-check flag.
35783
35784 2004-03-18  Doug Rupp  <rupp@gnat.com>
35785
35786         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35787         Reorganize ifeq's.
35788
35789         * 5qsystem.ads, 5xcrtl.ads: New files.
35790
35791 2004-03-18  Vincent Celier  <celier@gnat.com>
35792
35793         * prj.adb (Reset): Reset hash table Files_Htable
35794
35795         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35796         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35797         the procedures Add_To_Path_File.
35798         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35799         making sure that each directory is present only once and, for object
35800         dirs, when a directory already present is added, the duplicate is
35801         removed and the directory is always put as the last in the table.
35802         Write the path files at the end of these accumulations.
35803
35804         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35805         Files_Htable for all sources.
35806
35807         * prj-proc.adb (Process): Remove restrictions between not directly
35808         related extending projects.
35809
35810 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35811
35812         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35813         (Find_Sources): Minor speed optimization.
35814
35815         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35816         parameter Trusted_Mode.
35817
35818 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35819
35820         * scn.adb (Determine_License): Take into account a degenerated case
35821         when the source contains only comments.
35822
35823 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35824
35825         * sem_warn.adb (Check_References): For a warning on a selected
35826         component that does not come from source, locate an uninitialized
35827         component of the record type to produce a more precise error message.
35828
35829 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35830
35831         * 3zsoccon.ads: Fix multicast options.
35832
35833         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35834         in the spec.
35835
35836 2004-03-15  Robert Dewar  <dewar@gnat.com>
35837
35838         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35839         pragma used for a private type.
35840
35841         * lib-xref.adb (Generate_Reference): Do not generate warning if
35842         reference is in a different unit from the pragma Unreferenced.
35843
35844         * 5vtpopde.adb: Minor reformatting
35845         Fix casing of To_Task_ID
35846
35847         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35848         flag if we have an unchecked conversion to an access type in the same
35849         unit.
35850
35851 2004-03-15  Geert Bosch  <bosch@gnat.com>
35852
35853         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35854         imaginary parts, use Double precision throughout.
35855
35856         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35857         we want to be able to compile run-time with -gnata for testing, but
35858         this may also be instantiated in user code that is compiled with -gnata.
35859
35860 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35861
35862         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35863         codes. Having a separate type for this is useful to enforce consistency
35864         throughout the various run-time units.
35865         (Exception_Data): Use Exception_Code for Import_Code.
35866
35867         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35868         Natural and Integer in various places.
35869         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35870         with the severity bits masked off.
35871         (Register_VMS_Exception): Handle the additional exception data pointer
35872         argument.
35873
35874         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35875         component, now reflected by an exported accessor.
35876         (is_handled_by): New routine to compute whether the propagated
35877         occurrence matches some handler choice specification. Extracted out of
35878         get_action_description_for, and expanded to take care of the VMS
35879         specifities.
35880         (get_action_description_for): Use is_handled_by instead of an explicit
35881         complex condition to decide if the current choice at hand catches the
35882         propagated occurrence.
35883
35884         * raise.h (Exception_Code): New type for C.
35885
35886         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35887         System.Standard_Library.Exception_Code, to allow references from the
35888         pragma import/export expander.
35889
35890         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35891         New accessors to allow easy access to GNAT exception data
35892         characteristics.
35893         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35894         redundant Handled_By_Others component, helper for the personality
35895         routine which will now be able to call the appropriate exception data
35896         accessor instead.
35897
35898         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35899         component of Standard_Exception_Type to be the closest possible to
35900         Exception_Code in System.Standard_Library, that we cannot get at this
35901         point. Expand a ??? comment to notify that this type node should
35902         probably be rewritten later on.
35903
35904         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35905         registration call to include a pointer to the exception object in the
35906         arguments.
35907
35908         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35909         instead of int and explicit bitmasks.
35910
35911 2004-03-15  Vincent Celier  <celier@gnat.com>
35912
35913         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35914         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35915
35916         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35917         longer needed now that it is in the spec of
35918         System.Tasking.Task_Attributes.
35919
35920         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35921
35922         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35923
35924         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35925
35926         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35927         taken care of in Scan_Make_Arg.
35928         (Scan_Make_Arg): Add the executable suffix only if the argument
35929         following -o, in canonical case, does not end with the executable
35930         suffix.  When in verbose mode and executable file name does not end
35931         with executable suffix, output the executable name, in canonical case.
35932
35933         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35934         to avoid warnings when instantiating Ada.Task_Attributes.
35935         Minor reformating.
35936
35937         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35938         in the correct order.
35939
35940         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35941         redirect standard output and error to a file for the invocation of the
35942         compiler, then read the file.
35943
35944         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35945         directory, instead of the Value.
35946         (Find_Source_Dirs): Remove useless code & comments.
35947
35948 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35949
35950         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35951         tagged type is inherited, and the parent operation is not frozen yet,
35952         force generation of a freeze node for the inherited operation, so the
35953         corresponding dispatch entry is properly initialized.
35954         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35955         when looking for user-defined equality operation.
35956
35957         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35958         boolean when locating primitive equality of tagged component.
35959
35960         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35961         bit-aligned field and the right-hand side a string literal, introduce
35962         a temporary before expanding assignment into a loop.
35963
35964         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35965         priority in full, to ensure that any expanded subepxressions of it are
35966         elaborated in the scope of the init_proc.
35967
35968         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35969         after object declaration, skipping over code that may have been
35970         generated for validity checks.
35971
35972         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35973         discriminants, ignore the known discriminants of its full view, if
35974         any, to check legality.
35975
35976         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35977         component if type has unknown discriminants.
35978         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35979         null if type has unknown discriminants.
35980
35981         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35982         for end label when present.
35983
35984         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35985         temporary file, rather than an empty string.
35986
35987 2004-03-15  Ed Falis  <falis@gnat.com>
35988
35989         * s-thread.adb: Removed, no longer used.
35990
35991 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35992
35993         * decl.c (target.h): Now include.
35994         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35995         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35996         (validate_size): For POINTER_TYPE, get smallest size permitted on
35997         machine.
35998
35999         * fe.h: Sort Einfo decls and add Set_Mechanism.
36000
36001         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36002         (ada/decl.o): Depends on target.h.
36003
36004         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36005         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36006
36007 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
36008
36009         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36010
36011         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36012         Insert_Dereference_Action when rewriting an implicit dereference into
36013         an explicit one, this will be taken care of during expansion of the
36014         explicit dereference.
36015         (Expand_N_Slice): Same. Always do the rewriting, even for the case
36016         of non-packed slices, since the dereference action generated by
36017         expansion of the explicit dereference is needed in any case.
36018         (Expand_N_Selected_Component): When rewriting an implicit dereference,
36019         analyze and resolve the rewritten explicit dereference so it is seen
36020         by the expander.
36021         (Insert_Dereference_Action): This procedure is now called only for the
36022         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36023         dereferences that do not come from source (including explicit
36024         dereferences resulting from rewriting implicit ones), but do not
36025         recursively insert a check for the dereference nodes contained within
36026         the check.
36027         (Insert_Dereference_Action): Clarify and correct comment.
36028
36029 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
36030
36031         PR ada/14131
36032         Move language detection to the top level.
36033         * config-lang.in: Build by default.
36034
36035 2004-03-05  Robert Dewar  <dewar@gnat.com>
36036
36037         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36038
36039         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36040         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36041         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36042         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36043         unchecked conversion to spec to avoid warnings.
36044
36045         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36046         to Task_ID
36047
36048         * 7stpopsp.adb: Correct casing in To_Task_ID call
36049
36050         * a-strsea.ads, a-strsea.adb: Minor reformatting
36051
36052         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36053
36054         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36055         Adjust Max_Msg_Length to be clearly large enough.
36056
36057         * fe.h: Define In_Same_Source_Unit
36058
36059         * osint.adb: Add pragma Warnings Off to suppress warnings
36060         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36061         aliasing warnings.
36062
36063         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36064
36065         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36066
36067         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36068
36069         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36070
36071         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36072
36073         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36074         node. We now do generate them for gcc back end.
36075
36076         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36077         warning.
36078
36079         * sinput-c.adb: Fix bad name in header.
36080         Add pragma Warnings Off to suppress aliasing warning.
36081
36082         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36083
36084         * snames.h, snames.ads, snames.adb: Add entry for pragma
36085         No_Strict_Aliasing.
36086
36087 2004-03-05  Vincent Celier  <celier@gnat.com>
36088
36089         * prj-com.ads: Add hash table Files_Htable to check when a file name
36090         is already a source of another project.
36091
36092         * prj-nmsc.adb (Record_Source): Before recording a new source, check
36093         if its file name is not already a source of another project. Report an
36094         error if it is.
36095
36096         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36097         source file name, call gnatpp with all the sources of the main project.
36098
36099         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36100         of file names.
36101
36102         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36103         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36104         /RUNTIME_SYSTEM=, converted to --RTS=
36105         /NOTABS, converted to -notabs
36106
36107 2004-03-05  Pascal Obry  <obry@gnat.com>
36108
36109         * make.adb: Minor reformatting.
36110
36111 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
36112
36113         Part of implemention of AI-262.
36114         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36115
36116         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36117         procedure.
36118
36119         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36120         when component type is a partially constrained class-wide subtype.
36121         (Constrain_Discriminated_Type): If parent type has unknown
36122         discriminants, a constraint is illegal, even if full view has
36123         discriminants.
36124         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36125         with unknown discriminants whose full view is a discriminated record.
36126
36127         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36128         flag, to handle properly derivations of tagged types with unknown
36129         discriminants.
36130         (Analyze_Package_Spec, Analyze_Package_Body): Install
36131         Private_With_Clauses before analyzing private part or body.
36132
36133         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36134         Has_Discriminants can be true for a given type (documentation).
36135
36136 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
36137
36138         * s-restri.ads: Fix license (GPL->GMGPL).
36139
36140         * s-tassta.adb: Minor reformatting.
36141
36142         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36143         by calls to Exit_One_ATC_Level, since additional clean up is performed
36144         by this function.
36145
36146         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36147         by calls to Exit_One_ATC_Level, since additional clean up is performed
36148         by this function.
36149
36150 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36151
36152         * trans.c: Reflect GCC changes to fix bootstrap problem.
36153         Add warning for suspicious aliasing unchecked conversion.
36154
36155 2004-03-05  GNAT Script  <nobody@gnat.com>
36156
36157         * Make-lang.in: Makefile automatically updated
36158
36159 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
36160
36161         * ali.adb (Read_Instantiation_Instance): Do not modify the
36162         current_file_num when reading information about instantiations, since
36163         this corrupts files in later references.
36164
36165 2004-03-02  Vincent Celier  <celier@gnat.com>
36166
36167         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36168         before checking if it is read-only.
36169
36170         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36171         of SRC_DIRS and eliminate duplicates.
36172
36173         * gprcmd.adb: Replace command "path" with command "path_sep" to return
36174         the path separator.
36175         (Usage): Document path_sep
36176
36177         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36178         C++ compiler. No need for a script.
36179         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36180         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36181         subst.
36182
36183         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36184         where there are Ada sources.
36185         (Set_Ada_Paths): Only add to the include path the source dirs of project
36186         with Ada sources.
36187         (Add_To_Path): Add the Display_Values of the directories, not their
36188         Values.
36189
36190         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36191         data.
36192
36193         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36194         is not No_Name.
36195         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36196         Value is canonicalized.
36197         (Language_Independent_Check): Do not copy Value to Display_Value when
36198         canonicalizing Value.
36199
36200         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36201         path to find limited with cycles.
36202         (Parse_Single_Project): Use canonical cased path to find the end of a
36203         with cycle.
36204
36205 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
36206
36207         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36208         and not a child unit.
36209
36210         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36211         appear in a with_clause.
36212
36213         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36214         only happen in type_annotate mode, do not try to elaborate it.
36215
36216         * exp_util.adb (Force_Evaluation): If expression is a selected
36217         component on the left of an assignment, use a renaming rather than a
36218         temporary to remove side effects.
36219
36220         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36221         inlined instance body, which is analyzed before the end of the
36222         enclosing scope.
36223
36224 2004-03-02  Robert Dewar  <dewar@gnat.com>
36225
36226         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36227         sem_ch4.adb: Use new feature for substitution of keywords in VMS
36228
36229         * errout.ads, errout.adb: Implement new circuit for substitution of
36230         keywords in VMS.
36231
36232         * sem_case.adb (Analyze_Choices): Place message properly when case is
36233         a subtype reference rather than an explicit range.
36234
36235         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36236
36237 2004-03-02  Doug Rupp  <rupp@gnat.com>
36238
36239         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36240
36241 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
36242
36243         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36244
36245 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36246
36247         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36248         BLKmode bitfield.
36249
36250 2004-02-25  Robert Dewar  <dewar@gnat.com>
36251
36252         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36253         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36254         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36255         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36256         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36257         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36258         the defining instance of the type to avoid aliasing problems.
36259         Fix copyright header.  Fix bad comments in package header.
36260
36261         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36262
36263 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
36264
36265         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36266         rewritten as references when aliased through an address clause.
36267
36268         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36269         whether call can be interpreted as an indirect call to the result of a
36270         parameterless function call returning an access subprogram.
36271
36272 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
36273
36274         Code clean up:
36275         * exp_ch7.adb (Make_Clean): Remove generation of calls to
36276         Unlock[_Entries], since this is now done by Service_Entries directly.
36277
36278         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36279
36280         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36281         Requeue_Call for better code readability. Change spec and update calls:
36282         PO_Service_Entries now unlock the PO on exit.
36283         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36284         PO_Service_Entries.
36285
36286         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36287
36288         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36289
36290 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
36291
36292         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36293         protected subprogram call and analyzing the result of such expanding
36294         in case when the called protected subprogram is eliminated.
36295
36296         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36297         names.
36298
36299 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
36300
36301         * Makefile.in: Clean ups.
36302
36303 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
36304
36305         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36306         protected operations if original subprogram is flagged as eliminated.
36307         (Expand_N_Subprogram_Body): For a protected operation, create
36308         discriminals for next operation before checking whether the operation
36309         is eliminated.
36310
36311         * exp_ch9.adb (Expand_N_Protected_Body,
36312         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36313         for internal protected operations if the original subprogram is
36314         eliminated.
36315
36316         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36317         declared in a single protected object.
36318
36319 2004-02-23  Vincent Celier  <celier@gnat.com>
36320
36321         * prj-attr.adb: Make attribute Builder'Executable an associative array,
36322         case insensitive if file names are case insensitive, instead of a
36323         standard associative array.
36324
36325         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36326         them as case insensitive on platforms where the file names are case
36327         sensitive.
36328
36329         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36330         project file has already been parsed that canonical path are compared.
36331
36332 2004-02-23  Robert Dewar  <dewar@gnat.com>
36333
36334         * sinput-c.ads: Correct bad unit title in header
36335
36336         * freeze.adb: Minor reformatting
36337
36338 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36339
36340         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36341         nonaddressable COMPONENT_REF that is removing padding that we are
36342         taking the address of, take the address of the padded record instead
36343         if item is variable size.
36344
36345 2004-02-20  Robert Dewar  <dewar@gnat.com>
36346
36347         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36348
36349 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
36350
36351         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36352         itype references for the constrained designated type of a component
36353         whose base type is already frozen.
36354
36355 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
36356
36357         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36358         avoid GCC warnings.
36359
36360 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
36361
36362         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36363         identifier for a phantom package that rewrites the formal package
36364         declaration with a box. The Add semantic decorations for the defining
36365         identifier from the original node (that represents the formal package).
36366
36367 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
36368
36369         * Make-lang.in (ada/stamp-sdefault): Use the top level
36370         move-if-change.
36371
36372 2004-02-19  Richard Henderson  <rth@redhat.com>
36373
36374         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36375
36376 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
36377
36378         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36379         Scan_ALI can be used for multiple ALI files without reinitializing
36380         between calls.
36381
36382 2004-02-18  Robert Dewar  <dewar@gnat.com>
36383
36384         * debug.adb: Minor reformatting.
36385
36386 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36387
36388         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36389         to zero if there is an address clause.
36390
36391 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36392
36393         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36394
36395 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36396
36397         * layout.adb (Layout_Component_List): Revise generation of call to
36398         discriminant-checking function to pass selections of all of the type's
36399         discriminants rather than just the variant-controlling discriminant.
36400
36401 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36402
36403         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36404         fail in the current setup and triggers spurious system error messages.
36405         Pretend it occurred and failed instead.
36406
36407 2004-02-18  Vincent Celier  <celier@gnat.com>
36408
36409         * bld.adb: Mark FLDFLAGS as saved
36410         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36411         it is not the root project.  Put each directory to be
36412         extended between double quotes to prevent it to be expanded on Windows.
36413         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36414         the project file. Set them back to their initial values if they have not
36415         been set in the project file.
36416
36417         * gprcmd.adb: (Gprdebug, Debug): New global variables
36418         (Display_Command): New procedure
36419         (Usage): Document new command "linkopts"
36420         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36421         Implement new command "linkopts"
36422         Remove quotes that may be around arguments for "extend"
36423         Always call Normalize_Pathname with arguments formatted for the platform
36424
36425         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36426         Change @echo to @$(display) in target clean to be able to clean silently
36427
36428         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36429
36430         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36431         canonical case.
36432
36433         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36434         = Extending_All when current project is an extending all project.
36435
36436         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36437         set to True only for LINK command, after Unix switch -o.
36438         (Process_Arguments): Set Output_File_Expected to True for LINK command
36439         after Unix switch -o. When Output_File_Expected is True, never add an
36440         extension to a file name.
36441
36442         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36443         option file name, only to the --for-linker= switch.
36444         (Option_File_Name): If option file name do not end with ".opt", append
36445         "/OPTIONS".
36446
36447 2004-02-18  GNAT Script  <nobody@gnat.com>
36448
36449         * Make-lang.in: Makefile automatically updated
36450
36451 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36452
36453         * Make-lang.in (stamp-sdefault): Do not depend on
36454         move-if-change.
36455
36456 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36457
36458         * config-lang.in: Disable Ada by default until probe logic for
36459         a bootstrap Ada compiler can be moved to the top level configure
36460         script.
36461
36462 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36463
36464         * decl.c (components_to_record): Don't claim that the internal fields
36465         we make to hold the variant parts are semantically addressable, because
36466         they are not.
36467
36468         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36469         adjust the comment describing the modular type form when we can use it.
36470         (Install_PAT): Account for the Esiz renaming.
36471
36472         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36473         sc_onstack context indication before raising the exception to which
36474         the signal is mapped. Allows better handling of later signals possibly
36475         triggered by the resumed user code if the exception is handled.
36476
36477 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36478
36479         * 5zinit.adb: Removed, no longer used.
36480
36481 2004-02-12  Robert Dewar  <dewar@gnat.com>
36482
36483         * ali.adb: Remove separating space between parameters on R line. Makes
36484         format consistent with format used by the binder for Set_Globals call.
36485
36486         * atree.ads, atree.adb: Minor reformatting (new function header format)
36487
36488         * bindgen.adb: Add Run-Time Globals documentation section containing
36489         detailed documentation of the globals passed from the binder file to
36490         the run time.
36491
36492         * gnatls.adb: Minor reformatting
36493
36494         * init.c (__gnat_set_globals): Add note pointing to documentation in
36495         bindgen.
36496
36497         * lib-writ.ads, lib-writ.adb: Remove separating space between
36498         parameters on R line.
36499         Makes format consistent with format used by the binder for Set_Globals
36500         call.
36501
36502         * osint.ads: Add 2004 to copyright notice
36503         Minor reformatting
36504
36505         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36506         Noticed during code reading, documentation issue only
36507
36508         * usage.adb: Remove junk line for obsolete C switch
36509         Noticed during code reading
36510
36511 2004-02-12  Vincent Celier  <celier@gnat.com>
36512
36513         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36514         extend for each directory, so that multiple /** directories are
36515         extended individually.
36516         (Recursive_Process): Set the default for LANGUAGES to ada
36517
36518         * gprcmd.adb: Define new command "ignore", to do nothing.
36519         Implement new comment "path".
36520
36521         * Makefile.generic: Suppress output when SILENT is set
36522         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36523         used, so that the correct compiler is invoked.
36524         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36525         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36526
36527 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36528
36529         * Makefile.in: Clean ups and remove obsolete targets.
36530
36531 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36532
36533         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36534         predicate declared in exp_util.
36535
36536         * exp_util.adb: Add comments.
36537
36538         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36539         visibility before compiling context of the subunit.
36540
36541         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36542         value but the name is a procedure, do not attempt to analyze as a call,
36543         in order to obtain more telling diagnostics.
36544
36545         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36546         'Access on parameterless function calls.
36547         (Normalize_Actuals): For a parameterless function call with missing
36548         actuals, defer diagnostic until resolution of enclosing call.
36549
36550         * sem_util.adb (Wrong_Type): If the context type is an access to
36551         subprogram and the expression is a procedure name, suggest a missing
36552         'attribute.
36553
36554 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36555             Nathanael Nerode  <neroden@gcc.gnu.org>
36556
36557         PR ada/6637
36558         PR ada/5911
36559         Merge with libada-branch:
36560         * config-lang.in: Build libada only when ada is built.
36561
36562 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36563
36564         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36565         for a tagged type, verify that both formals have the same type.
36566
36567         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36568         temporary when the formal is an in-parameter and the actual a possibly
36569         unaligned slice.
36570
36571         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36572         when expansion is disabled, to ensure proper name capture with
36573         overloaded literals.  Condition can be of any boolean type, resolve
36574         accordingly.
36575
36576         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36577         renaming is for a formal subprogram with a default operator name, and
36578         there is a usable operator that is visible at the point of
36579         instantiation.
36580
36581 2004-02-09  Robert Dewar  <dewar@gnat.com>
36582
36583         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36584         rewrite to ignore errors in ali files, intended to allow tools downward
36585         compatibility with new versions of ali files.
36586
36587         * ali.ads: Add new parameter Ignore_Errors
36588
36589         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36590         duplicating the error message giving the file with restrictions.
36591
36592         * debug.adb: Add debug flag I for gnatbind
36593
36594         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36595         operators for the case where the operator is a defining operator.
36596
36597         * exp_ch3.adb: Minor reformatting (new function spec format).
36598
36599         * exp_ch4.adb: Add comment for previous change, and make minor
36600         adjustment to loop to always check for improper loop termination.
36601         Minor reformatting throughout (new function spec format).
36602
36603         * gnatbind.adb: Implement -di debug flag for gnatbind
36604
36605         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36606
36607         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36608
36609         * lib-load.adb: Fix bad assertion.
36610         Found by testing and code reading.
36611         Minor reformatting.
36612
36613         * lib-load.ads: Minor reformatting.
36614
36615         * lib-writ.adb: There is only one R line now.
36616
36617         * lib-writ.ads: Add documentation on making downward compatible changes
36618         to ali files so old tools work with new ali files.
36619         There is only one R line now.
36620         Add documentation on format incompatibilities (with special GPS note)
36621
36622         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36623
36624         * par-load.adb: Minor reformatting
36625
36626         * sem_ch8.adb: Fix to error message from last update
36627         Minor reformatting and restructuring of code from last update
36628
36629         * par-prag.adb, snames.adb, snames.ads, snames.h,
36630         sem_prag.adb: Implement pragma Profile.
36631
36632         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36633         options.
36634
36635         * usage.adb: Add line for -gnatyN switch
36636
36637         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36638
36639 2004-02-09  Albert Lee  <lee@gnat.com>
36640
36641         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36642
36643 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36644
36645         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36646         slices.
36647
36648         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36649         is nested in an instance that is not frozen yet, to avoid
36650         order-of-elaboration problems in gigi.
36651
36652         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36653         body the attribute is legal.
36654
36655 2004-02-09  Robert Dewar  <dewar@gnat.com>
36656
36657         * s-rident.ads: Minor comment correction
36658
36659         * targparm.adb: Remove dependence on uintp completely. There was
36660         always a bug in Make in that it called Targparm before initializing
36661         the Uint package. The old code appeared to get away with this, but
36662         the new code did not! This caused an assertion error in gnatmake.
36663
36664         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36665         are indeed fully supported.
36666
36667 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36668
36669         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36670
36671 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36672
36673         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36674         with targetm.calls.promote_prototypes.
36675
36676 2004-02-04  Robert Dewar  <dewar@gnat.com>
36677
36678         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36679         ali.ads, gprcmd.adb: Minor reformatting
36680
36681         * bindgen.adb: Output restrictions string for new style restrictions
36682         handling
36683
36684         * impunit.adb: Add s-rident.ads (System.Rident) and
36685         s-restri (System.Restrictions)
36686
36687         * lib-writ.adb: Fix bug in writing restrictions string (last few
36688         entries wrong)
36689
36690         * s-restri.ads, s-restri.adb: Change name Restrictions to
36691         Run_Time_Restrictions to avoid conflict with package name.
36692         Add circuit to read and acquire run time restrictions.
36693
36694 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36695
36696         * restrict.ads, restrict.adb: Use the new restriction
36697         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36698
36699         * sem_prag.adb: No_Task_Attributes is a synonym of
36700         No_Task_Attributes_Package.
36701
36702         * snames.ads, snames.adb: New entry for proper handling of
36703         No_Task_Attributes.
36704
36705         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36706         (AI-00249) that supersedes the GNAT specific restriction
36707         No_Task_Attributes.
36708
36709 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36710
36711         * sem_prag.adb:
36712         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36713          body, an identifier may be wrapped in an unchecked conversion.
36714
36715 2004-02-04  Vincent Celier  <celier@gnat.com>
36716
36717         * lib-writ.ads: Comment update for the W lines
36718
36719         * bld.adb: (Expression): An empty string list is static
36720
36721         * fname-uf.adb: Minor comment update
36722
36723         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36724
36725         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36726         restrictions on the target.
36727
36728 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36729
36730         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36731         gen_rtx.
36732
36733 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36734
36735         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36736
36737 2004-02-02  Vincent Celier  <celier@gnat.com>
36738
36739         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36740         comment before the usage.
36741         Gprcmd: Fail when command is not recognized.
36742         (Usage): Document command "prefix"
36743
36744         * g-md5.adb (Digest): Process last block.
36745         (Update): Do not process last block. Store remaining characters and
36746         length in Context.
36747
36748         * g-md5.ads (Update): Document that several call to update are
36749         equivalent to one call with the concatenated string.
36750         (Context): Add fields to allow new Update behaviour.
36751
36752         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36753         defaulted to False.
36754         When May_Fail is True and no existing file can be found, return No_File.
36755
36756         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36757         functions.
36758
36759         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36760         spec file name instead on the W line.
36761
36762 2004-02-02  Robert Dewar  <dewar@gnat.com>
36763
36764         * ali.adb: Read and acquire info from new format restrictions lines
36765
36766         * bcheck.adb: Add circuits for checking restrictions with parameters
36767
36768         * bindgen.adb: Output dummy restrictions data
36769         To be changed later
36770
36771         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36772         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36773         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36774         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36775         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36776
36777         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36778         the warning message on access to possibly uninitialized variable S)
36779         Minor changes for new restrictions handling.
36780
36781         * gnatbind.adb: Minor reformatting
36782         Minor changes for new restrictions handling
36783         Move circuit for -r processing here from bcheck (cleaner)
36784
36785         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36786
36787         * lib-writ.adb: Output new format restrictions lines
36788
36789         * lib-writ.ads: Document new R format lines for new restrictions
36790         handling.
36791
36792         * s-restri.ads/adb: New files
36793
36794         * Makefile.rtl: Add entry for s-restri.ads/adb
36795
36796         * par-ch3.adb: Fix bad error messages starting with upper case letter
36797         Minor reformatting
36798
36799         * restrict.adb: Major rewrite throughout for new restrictions handling
36800         Major point is to handle restrictions with parameters
36801
36802         * restrict.ads: Major changes in interface to handle restrictions with
36803         parameters. Also generally simplifies setting of restrictions.
36804
36805         * snames.ads/adb: New entry for proper handling of No_Requeue
36806
36807         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36808         restriction counting.
36809         Other minor changes for new restrictions handling
36810
36811         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36812         Restriction_Warnings now allows full parameter notation
36813         Major rewrite of Restrictions for new restrictions handling
36814
36815 2004-02-02  Javier Miranda  <miranda@gnat.com>
36816
36817         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36818         syntax rule for object renaming declarations.
36819         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36820         component definitions.
36821
36822         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36823         components.
36824         (Array_Type_Declaration): Give support to access components. In addition
36825         it was also modified to reflect the name of the object in anonymous
36826         array types. The old code did not take into account that it is possible
36827         to have an unconstrained anonymous array with an initial value.
36828         (Check_Or_Process_Discriminants): Allow access discriminant in
36829         non-limited types.
36830         (Process_Discriminants): Allow access discriminant in non-limited types
36831         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36832         node.  Change Ada0Y to Ada 0Y in comments
36833
36834         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36835         equality operators.
36836         Change Ada0Y to Ada 0Y in comments
36837
36838         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36839         renamings Change Ada0Y to Ada 0Y in comments
36840
36841         * sem_type.adb (Find_Unique_Type): Give support to the equality
36842         operators for universal access types
36843         Change Ada0Y to Ada 0Y in comments
36844
36845         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36846
36847         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36848         field.
36849         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36850         Change Ada0Y to Ada 0Y in comments
36851
36852         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36853         component definition and object renaming nodes
36854         Change Ada0Y to Ada 0Y in comments
36855
36856 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36857
36858         * restrict.adb: Use the new restriction identifier
36859         No_Requeue_Statements instead of the old No_Requeue for defining the
36860         restricted profile.
36861
36862         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36863         No_Requeue_Statements.
36864
36865         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36866         that supersedes the GNAT specific restriction No_Requeue. The later is
36867         kept for backward compatibility.
36868
36869 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36870
36871         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36872         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36873         pragma and fix incorrect ones.
36874
36875         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36876         warning if the pragma is redundant.
36877
36878 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36879
36880         * 5staprop.adb: Add missing 'constant' keywords.
36881
36882         * Makefile.in: use consistent value for SYMLIB on
36883         platforms where libaddr2line is supported.
36884
36885 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36886
36887         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36888         annotating types.
36889
36890 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36891
36892         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36893         handlers in the environment thread. This allows proper propagation of
36894         an exception on stack overflows in this thread even when the builtin
36895         ABI stack-checking scheme is used without support for a stack reserve
36896         region.
36897
36898         * utils.c (create_field_decl): Augment the head comment about bitfield
36899         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36900         here, because the former is not accurate enough at this point.
36901         Let finish_record_type decide instead.
36902         Don't make a bitfield if the field is to be addressable.
36903         Always set a size for the field if the record is packed, to ensure the
36904         checks for bitfield creation are triggered.
36905         (finish_record_type): During last pass over the fields, clear
36906         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36907         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36908         from DECL_BIT_FIELD.
36909
36910 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36911
36912         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36913         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36914         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36915
36916 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36917
36918         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36919
36920         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36921         (ZCX_By_Default): Likewise.
36922         (Front_End_ZCX_Support): Likewise.
36923
36924         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36925         (Initialize_Lock): Mark Level unreferenced.
36926         (Sleep): Mark Reason unreferenced.
36927         (Timed_Sleep): Likewise.
36928         (Wakeup): Likewise.
36929         (Exit_Task): Use Result.
36930         (Check_No_Locks): Mark Self_ID unreferenced.
36931
36932         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36933         (Bound_Thread_Attributes): Make Sproc constant.
36934         (New_Bound_Thread_Attributes): Likewise.
36935
36936 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36937
36938         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36939         one-dimensional array an slice assignments, when component type is
36940         controlled.
36941
36942         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36943         component type is controlled, and control_actions are in effect, use
36944         TSS procedure rather than generating inline code.
36945
36946         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36947         arrays with controlled components.
36948
36949 2004-01-26  Vincent Celier  <celier@gnat.com>
36950
36951         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36952         command line for the non VMS case.
36953
36954         * gnatlink.adb (Process_Binder_File): When building object file, if
36955         GNU linker is used, put all object paths between quotes, to prevent ld
36956         error when there are unusual characters (such as '!') in the paths.
36957
36958         * Makefile.generic: When there are sources in Ada and the main is in
36959         C/C++, invoke gnatmake with -B, instead of -z.
36960
36961         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36962         from VMS_Conversion.
36963         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36964         specification of argument file on the command line.
36965
36966 2004-01-26  Bernard Banner  <banner@gnat.com>
36967
36968         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36969
36970 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36971
36972         * snames.adb: Update copyright notice.
36973         Add info on slice assignment for controlled arrays.
36974
36975 2004-01-23  Robert Dewar  <dewar@gnat.com>
36976
36977         * exp_aggr.adb: Minor reformatting
36978
36979         * exp_ch9.adb: Minor code clean up
36980         Minor reformatting
36981         Fix bad character in comment
36982
36983         PR ada/13471
36984         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36985         unexpected end of file, along with more detailed message.
36986
36987 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36988
36989         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36990         PAT.
36991
36992         * decl.c (copy_alias_set): New function.
36993         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36994
36995 2004-01-23  Doug Rupp  <rupp@gnat.com>
36996
36997         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36998         lib$${file} in case subsequent character is not a separator.
36999
37000 2004-01-23  Vincent Celier  <celier@gnat.com>
37001
37002         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37003         when the GCC version is at least 3.
37004
37005         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37006         Remove all "Opt.", to prepare for opt split
37007
37008         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37009         Extends_All. Set to True when the project parsed is an extending all
37010         project. Fails for importing an extending all project only when the
37011         imported project is an extending all project.
37012         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37013         depending on the value of Extends_All returned.
37014
37015         * prj-proc.adb (Process): Check that no project shares its object
37016         directory with a project that extends it, directly or indirectly,
37017         including a virtual project.
37018         Check that no project extended by another project shares its object
37019         directory with another also extended project.
37020
37021         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37022         Kind = N_With_Clause
37023
37024         * prj-tree.ads: Minor reformatting
37025         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37026
37027 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
37028
37029         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37030         applies to a type with an incomplete view, use full view in Name of
37031         clause, for consistency with uses of Get_Attribute_Definition_Clause.
37032
37033 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
37034
37035         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37036         SCHED_RR, since other values are not supported by this policy.
37037         (Initialize): Move initialization of mutex attribute to package
37038         elaboration, to prevent early access to this variable.
37039
37040         * Makefile.in: Remove mention of Makefile.adalib, unused.
37041
37042         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37043         1ssecsta.ads: Removed, unused.
37044
37045 2004-01-21  Javier Miranda  <miranda@gnat.com>
37046
37047         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37048         entity if already built in the current scope.
37049
37050         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37051         reminder in internal scopes. Required for nested limited aggregates.
37052
37053 2004-01-21  Doug Rupp  <rupp@gnat.com>
37054
37055         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37056         VMS. Replace all occurences of libgnat- and libgnarl- with
37057         libgnat$(hyphen) and libgnarl$(hyphen).
37058         Fixed shared library build problem on VMS.
37059
37060 2004-01-21  Robert Dewar  <dewar@gnat.com>
37061
37062         * mlib-prj.adb: Minor reformatting
37063
37064 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
37065
37066         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37067         'constant' keywords for declaration of pointers that are not modified.
37068
37069         * exp_pakd.adb: Fix English in comment.
37070
37071 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
37072
37073         PR ada/10889
37074         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37075         copy all attributes of the parent, including the foreign language
37076         convention.
37077
37078 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
37079
37080         PR ada/10565
37081         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37082         for 'delay until' statement.
37083
37084 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
37085
37086         * Make-lang.in: Replace $(docdir) with doc.
37087         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37088         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37089         to use consistent MAKEINFO rule.
37090         (ada.man, ada.srcman): Dummy entry.
37091         (ADA_INFOFILES): Define.
37092         (ada.info, ada.srcinfo): New rules.
37093
37094 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
37095
37096         * utils.c: Update copyright notice, missed in previous change.
37097
37098 2004-01-19  Vincent Celier  <celier@gnat.com>
37099
37100         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37101         args if Bind is True. Set First_ALI, if not already done.
37102         (Build_Library): For Stand Alone Libraries, extract from one ALI file
37103         an eventual --RTS switch, for gnatbind, and all backend switches +
37104         --RTS, for linking.
37105
37106 2004-01-19  Robert Dewar  <dewar@gnat.com>
37107
37108         * sem_attr.adb, memtrack.adb: Minor reformatting
37109
37110 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
37111
37112         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37113         that rename enumeration literals. This is properly done in sem_eval.
37114
37115         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37116         to functions that rename enumeration literals.
37117
37118         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37119         functions that rename enumeration literals.
37120
37121 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
37122
37123         * Make-lang.in (utils.o): Depend on target.h.
37124         * utils.c: Include target.h.
37125         (process_attributes): Use targetm.have_named_sections instead
37126         of ASM_OUTPUT_SECTION_NAME.
37127
37128 2004-01-16  Andreas Jaeger  <aj@suse.de>
37129
37130         * Makefile.in: Add $(DESTDIR).
37131
37132 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
37133
37134         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37135         also when not defining if a Size clause applies. That information is
37136         not to be ignored.
37137
37138 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
37139
37140         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37141         symbolic links for the shared gnat run time when needed.
37142
37143 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
37144
37145         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37146         for writing, and terminate with an error message if not.
37147
37148 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
37149
37150         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37151         warning on an access to subprogram in an instance, when the target
37152         type is declared in the same generic unit.
37153         (Eval_Attribute): If 'access is known to fail accessibility check,
37154         rewrite as a raise statement.
37155
37156 2004-01-15  GNAT Script  <nobody@gnat.com>
37157
37158         * Make-lang.in: Makefile automatically updated
37159
37160 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
37161
37162         * Make-lang.in (ada.srcextra): Dummy entry.
37163
37164 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
37165
37166         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37167
37168 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
37169
37170         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37171         components that are initialized with aggregates.
37172
37173 2004-01-13  Vincent Celier  <celier@gnat.com>
37174
37175         * gnatlink.adb (Process_Binder_File): To find directory of shared
37176         libgcc, if "gcc-lib" is not a subdirectory, look for the last
37177         subdirectory "lib" in the path of the shared libgnat or libgnarl.
37178
37179         * make.adb (Gnatmake): If GCC version is at least 3, link with
37180         -shared-libgcc, when there is at least one shared library project.
37181
37182         * opt.ads (GCC_Version): New integer constant.
37183
37184         * adaint.c (get_gcc_version): New function.
37185
37186 2004-01-13  Robert Dewar  <dewar@gnat.com>
37187
37188         * sem_dist.adb, sem_res.adb, sem_util.adb,
37189         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37190         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37191
37192 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
37193
37194         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37195         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37196         declarations.
37197
37198 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
37199
37200         * misc.c: Remove trailing spaces.
37201         Update copyright notice missed in previous change.
37202
37203         PR ada/13572
37204         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37205         prefix/share/make
37206
37207         * Makefile.generic: Update copyright.
37208         Add license notice.
37209
37210         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37211         of prefix/share/make.
37212
37213         * Makefile.prolog: Update copyright.
37214         Add license notice.
37215
37216 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
37217
37218         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37219         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37220         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37221         instead of String.
37222
37223         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37224         signature.
37225
37226 2004-01-12  Javier Miranda  <miranda@gnat.com>
37227
37228         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37229         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37230         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37231         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37232         Component_Definition node.
37233
37234 2004-01-12  Ed Falis  <falis@gnat.com>
37235
37236         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37237
37238 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
37239
37240         * link.c: Change default libgnat kind to STATIC for FreeBSD.
37241
37242 2004-01-12  Bernard Banner  <banner@gnat.com>
37243
37244         * Makefile.in: map 86numaux to a-numaux for x86_64
37245
37246 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
37247
37248         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37249         generated to rename a generic actual, go to the actual itself, the
37250         subtype is not a user-visible entity.
37251
37252         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37253         part is a private subtype, reset the visibility of its full view, if
37254         any, to be consistent.
37255
37256         PR ada/13417
37257         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37258         to use a generic package G as a formal package for another generic
37259         declared within G.
37260
37261 2004-01-12  Robert Dewar  <dewar@gnat.com>
37262
37263         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37264
37265         * usage.adb: Remove mention of obsolete -gnatwb switch
37266         Noticed during code reading
37267
37268 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
37269
37270         * 1ssecsta.adb: Minor changes for -gnatwa warnings
37271
37272 2004-01-12  GNAT Script  <nobody@gnat.com>
37273
37274         * Make-lang.in: Makefile automatically updated
37275
37276 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
37277
37278         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37279
37280 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37281
37282         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37283
37284 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
37285
37286         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37287         Update comment and copyright date.
37288         * stamp-xgnatug: Delete.
37289
37290 2004-01-05  Robert Dewar  <dewar@gnat.com>
37291
37292         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37293         be modified by the binder generated main program if the -D switch is
37294         used.
37295
37296         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37297         imported functions (since now we expect this to be done for imported
37298         functions)
37299
37300         * 5vtaprop.adb: Add several ??? for sections requiring more comments
37301         Minor reformatting throughout
37302
37303         * 5zinit.adb: Minor reformatting
37304         Add 2004 to copyright date
37305         Minor changes to avoid -gnatwa warnings
37306         Correct some instances of using OR instead of OR ELSE (noted while
37307         doing reformatting)
37308
37309         * sprint.adb: Minor updates to avoid -gnatwa warnings
37310
37311         * s-secsta.ads, s-secsta.adb:
37312         (SS_Get_Max): New function to obtain high water mark for ss stack
37313         Default_Secondary_Stack is not a constant since it may be modified by
37314         the binder generated main program if the -D switch is used.
37315
37316         * switch-b.adb: New -Dnnn switch for binder
37317
37318         * switch-c.adb:
37319         Make -gnatg imply all warnings currently in -gnatwa
37320
37321         * vms_conv.adb: Minor reformatting
37322         Add 2004 to copyright notice
37323         Add 2004 to printed copyright notice
37324
37325         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37326         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37327         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37328         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37329         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37330         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37331         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37332         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37333         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37334         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37335         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37336         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37337         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37338         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37339         checks.adb, clean.adb, cstand.adb, einfo.ads,
37340         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37341         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37342         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37343         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37344         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37345         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37346         Minor reformatting and code clean ups.
37347         Minor changes to prevent -gnatwa warnings
37348
37349         * ali.adb: Minor reformatting and cleanup of code
37350         Acquire new SS indication of secondary stack use from ali files
37351
37352         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37353         (since now we expect this to be done for imported functions)
37354
37355         * bindgen.adb: Generate call to modify default secondary stack size if
37356         -Dnnn switch given
37357
37358         * bindusg.adb: Add line for new -D switch
37359
37360         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37361         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37362         Add circuitry for both records and arrays to avoid gigi
37363         processing if the type involved has non-bit-aligned components
37364
37365         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37366         N_String_Literal node always references an E_String_Literal_Subtype
37367         entity. This may not be true in the future.
37368         (Possible_Bit_Aligned_Component): Move processing of
37369         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37370
37371         * exp_ch6.adb (Expand_Thread_Body): Pick up
37372         Default_Secondary_Stack_Size as variable so that we get value modified
37373         by possible -Dnnn binder parameter.
37374
37375         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37376         (Type_May_Have_Bit_Aligned_Components): New function.
37377
37378         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37379         (Type_May_Have_Bit_Aligned_Components): New function.
37380
37381         * fe.h: (Set_Identifier_Casing): Fix prototype.
37382         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37383         Minor reformatting.
37384
37385         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37386         importing constant atomic/volatile objects.
37387         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37388         unless explicit Pure_Function pragma given, to avoid insidious bug of
37389         call to non-pure imported function getting eliminated.
37390
37391         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37392         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37393         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37394         Add 2004 to printed copyright notice
37395
37396         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37397         stack used.
37398
37399         * Makefile.rtl: Add entry for g-sestin.o
37400         g-sestin.ads: New file.
37401
37402         * mdll.adb: Minor changes to avoid -gnatwa warnings
37403
37404         * mlib-tgt.adb: Minor reformatting
37405
37406         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37407         New switch Sec_Stack_Used (GNAT, GNATBIND)
37408         Make Default_Secondary_Stack_Size a variable instead of a constant,
37409         so that it can be modified by the new -Dnnn bind switch.
37410
37411         * rtsfind.adb (Load_Fail): Give full error message in configurable
37412         run-time mode if all_errors mode is set. This was not done in the case
37413         of a file not found, which was an oversight.
37414         Note if secondary stack unit is used by compiler.
37415
37416         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37417         ineffective elaborate all pragmas on non-visible packages (this
37418         happened when a renamed subprogram was called). Now the elaborate all
37419         always goes on the package containing the renaming rather than the one
37420         containing the renamed subprogram.
37421
37422         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37423         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37424
37425         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37426         has an Etype that references an E_String_Literal.
37427         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37428         always references an E_String_Literal_Subtype entity. This may not
37429         be true in the future.
37430
37431         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37432         pragma location.
37433
37434         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37435         call.
37436
37437 2004-01-05  Ed Falis  <falis@gnat.com>
37438
37439         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37440         form.
37441
37442 2004-01-05  Vincent Celier  <celier@gnat.com>
37443
37444         * bld.adb: Minor comment updates
37445         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37446         of Item_Name).
37447
37448         * make.adb (Gnatmake): Special process for files to compile/check when
37449         -B is specified. Fail when there are only foreign mains in attribute
37450         Main of the project file and -B is not specified. Do not skip bind/link
37451         steps when -B is specified.
37452
37453         * makeusg.adb: Document new switch -B
37454
37455         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37456
37457         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37458
37459         * vms_data.ads: Add new GNAT PRETTY qualifier
37460         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37461
37462 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37463
37464         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37465         case.
37466
37467         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37468         Set_Identifier_Casing.
37469
37470         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37471         has size that overflows.
37472
37473 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37474
37475         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37476         -gnatwa warning on static condition.
37477
37478 2004-01-05  Doug Rupp  <rupp@gnat.com>
37479
37480         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37481
37482 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37483
37484         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37485         all attributes, including read-only attribute.
37486
37487 2004-01-05  Pascal Obry  <obry@gnat.com>
37488
37489         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37490         library naming scheme.
37491
37492         * mlib-prj.adb (Build_Library): Generate different names for the static
37493         or dynamic version of the GNAT runtime. This is needed to support the
37494         new shared library naming scheme.
37495         (Process_Binder_File): Add detection of shared library in binder file
37496         based on the new naming scheme.
37497
37498         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37499         scheme for the shared runtime libraries.
37500
37501         * Makefile.in:
37502         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37503         scheme.
37504         (install-gnatlib): Do not create symlinks for shared libraries.
37505         (gnatlib-shared-default): Idem.
37506         (gnatlib-shared-dual-win32): New target. Not used for now as the
37507         auto-import feature does not support arrays/records.
37508         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37509         (gnatlib-shared-vms): Fix shared runtime libraries names.
37510
37511         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37512         dependent runtime shared library name.
37513
37514 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37515
37516         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37517         than the object.
37518
37519 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37520
37521         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37522         protected objects when allocator has a subtype indication, not a
37523         qualified expression. Note that qualified expressions may have to be
37524         checked when limited aggregates are implemented.
37525
37526         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37527         pure, emit warning.
37528         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37529         subprogram is imported, remove warning.
37530
37531 2004-01-05  Geert Bosch  <bosch@gnat.com>
37532
37533         * s-poosiz.adb: Update copyright notice.
37534         (Allocate): Use Task_Lock to protect against concurrent access.
37535         (Deallocate): Likewise.
37536
37537 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37538
37539         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37540         comment.
37541
37542 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37543
37544         * gnat_ug.texi: Force a CVS commit by updating copyright.
37545         * gnat_ug_vxw.texi: Regenerate.
37546         * gnat_ug_wnt.texi: Regenerate.
37547         * gnat_ug_vms.texi: Regenerate.
37548         * gnat_ug_unx.texi: Regenerate.
37549
37550 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37551
37552         * trans.c: Remove uses of "register" specifier in
37553         declarations of local variables.
37554
37555 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37556
37557         * stamp-xgnatug: New stamp file.
37558         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37559         (ada/doctools/xgnatug): Add $(build_exeext).
37560         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37561         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37562
37563 2003-12-17  Ed Falis  <falis@gnat.com>
37564
37565         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37566         eliminate warning.
37567
37568         * a-exextr.adb: Add context clause for
37569         Ada.Exceptions.Last_Chance_Handler.
37570
37571 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37572
37573         * cstand.adb (Create_Standard): Change the way how the declaration of
37574         the Duration type is created (making it the same way as it is for all
37575         the other standard types).
37576
37577 2003-12-17  Robert Dewar  <dewar@gnat.com>
37578
37579         * s-crtl.ads: Fix header format
37580         Change Pure to Preelaborate
37581
37582 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37583
37584         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37585         the expression type only if it is declared in the current unit.
37586
37587         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37588         are universal and already analyzed, as can occur in constrained
37589         subcomponents that depend on discriminants, when one constraint is a
37590         subtype mark.
37591
37592         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37593         type Any_Fixed is legal as the argument of a conversion, if only one
37594         fixed-point type is in context.
37595
37596 2003-12-17  GNAT Script  <nobody@gnat.com>
37597
37598         * Make-lang.in: Makefile automatically updated
37599
37600 2003-12-15  Robert Dewar  <dewar@gnat.com>
37601
37602         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37603         sec stack size.
37604
37605 2003-12-15  Vincent Celier  <celier@gnat.com>
37606
37607         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37608         (Gnatchop): Do not set failure status when reporting the number of
37609         warnings.
37610
37611 2003-12-15  Doug Rupp  <rupp@gnat.com>
37612
37613         * s-ctrl.ads: New file.
37614
37615         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37616
37617         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37618         (GNATBIND_OBJS): Add ada/s-crtl.o.
37619
37620         * Makefile.in [VMS]: Clean up ifeq rules.
37621
37622         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37623         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37624         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37625         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37626         s-tasdeb.adb: Update copyright.
37627         Import System.CRTL.
37628         Make minor modifications to use System.CRTL declared functions instead
37629         of importing locally.
37630
37631 2003-12-15  GNAT Script  <nobody@gnat.com>
37632
37633         * Make-lang.in: Makefile automatically updated
37634
37635 2003-12-11  Ed Falis  <falis@gnat.com>
37636
37637         * 5zinit.adb: Clean up.
37638
37639         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37640         to __gnat_map_signal, imported from init.c to support
37641         signal -> exception mappings that depend on the vxWorks version.
37642
37643         * init.c:
37644         Created and exported __gnat_map_signal to support signal -> exception
37645         mapping that is dependent on the VxWorks version.
37646         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37647
37648 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37649
37650         * 5wosinte.ads: Link with -mthreads switch.
37651
37652 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37653
37654         * init.c (__gnat_install_handler [NetBSD]): Set
37655         __gnat_handler_installed, as done on all other platforms.
37656         Remove duplicated code.
37657
37658 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37659
37660         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37661
37662 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37663
37664         * sinfo.ads: Fix inconsistent example code in comment.
37665
37666 2003-12-11  Robert Dewar  <dewar@gnat.com>
37667
37668         * a-tiinau.adb: Add a couple of comments
37669
37670         * sem_ch3.adb: Minor reformatting
37671
37672         * sem_prag.adb:
37673         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37674         Minor reformatting throughout
37675
37676 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37677
37678         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37679         bounds of a loop, create a separate block in order to generate proper
37680         cleanup actions to prevent memory leaks.
37681
37682         * sem_res.adb (Resolve_Call): After a call to
37683         Establish_Transient_Scope, the call may be rewritten and relocated, in
37684         which case no further processing is needed.
37685
37686         * sem_util.adb: (Wrong_Type): Refine previous fix.
37687          Fixes ACATS regressions.
37688
37689         PR ada/13353
37690         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37691         be inlined.
37692
37693 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37694
37695         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37696         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37697         obsolete files.
37698
37699         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37700         (rts-zfp): Ditto.
37701
37702 2003-12-08  Robert Dewar  <dewar@gnat.com>
37703
37704         * 7sintman.adb: Minor reformatting
37705
37706         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37707         standard linker options to get standard libraries linked. We now plan
37708         to provide dummy versions of these libraries to match the appropriate
37709         configurable run-time (e.g. if a library is not needed at all, provide
37710         a dummy empty library).
37711
37712         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37713         options (-L parameters and standard libraries). What we plan to do is
37714         to provide dummy libraries where the libraries are not required.
37715
37716         * gnatbind.adb: Minor comment improvement
37717
37718 2003-12-08  Javier Miranda  <miranda@gnat.com>
37719
37720         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37721         aggregate in the parent. Otherwise constants with limited aggregates
37722         are not supported. Add new formal to pass the component type (Ctype).
37723         It is required to call the corresponding IP subprogram in case of
37724         default initialized components.
37725         (Gen_Assign): In case of default-initialized component, generate a
37726         call to the IP subprogram associated with the component.
37727         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37728         of aggregate with default initialized components.
37729         (Has_Default_Init_Comps): Improve implementation to recursively check
37730         all the present expressions.
37731
37732         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37733         to indicate that the initialization call corresponds to a
37734         default-initialized component of an aggregate.
37735         In case of default initialized aggregate with tasks this parameter is
37736         used to generate a null string (this is just a workaround that must be
37737         improved later). In case of discriminants, this parameter is used to
37738         generate a selected component node that gives access to the discriminant
37739         value.
37740
37741         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37742         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37743         allocated aggregates with default-initialized components.
37744
37745         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37746         the box notation is used in positional aggregates.
37747
37748 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37749
37750         * lib.ads: Fix typo in comment
37751
37752 2003-12-08  Vincent Celier  <celier@gnat.com>
37753
37754         * prj.adb (Project_Empty): New component Unkept_Comments
37755         (Scan): Remove procedure; moved to Prj.Err.
37756
37757         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37758         (Scan): Remove procedure; moved to Prj.Err.
37759
37760         * prj-dect.adb: Manage comments for the different declarations.
37761
37762         * prj-part.adb (With_Record): New component Node
37763         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37764         Set the scanner to return ends of line and comments as tokens, if
37765         Store_Comments is True.
37766         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37767         comments are associated with these nodes. Store the node IDs in the
37768         With_Records.
37769         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37770         With_Records.
37771         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37772         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37773         current project. Call Tree.Restore afterwards. Set the various nodes
37774         for comment storage (Next_End, End_Of_Line, Previous_Line,
37775         Previous_End).
37776
37777         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37778         defaulted to False.
37779
37780         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37781         to False. When Truncated is True, truncate the string, never go to the
37782         next line.
37783         (Write_End_Of_Line_Comment): New procedure
37784         (Print): Process comments for nodes N_With_Clause,
37785         N_Package_Declaration, N_String_Type_Declaration,
37786         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37787         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37788         Process nodes N_Comment.
37789
37790         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37791         without comments and there are some comments, set the flag
37792         Unkept_Comments to True.
37793         (Scan): If there are comments, set the flag Unkept_Comments to True and
37794         clear the comments.
37795         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37796         (Next_End_Nodes: New table
37797         (Comment_Zones_Of): New function
37798         (Scan): New procedure; moved from Prj. Accumulate comments in the
37799         Comments table and set end of line comments, comments after, after end
37800         and before end.
37801         (Add_Comments): New procedure
37802         (Save, Restore, Seset_State): New procedures
37803         (There_Are_Unkept_Comments): New function
37804         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37805         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37806         procedures.
37807         (First_Comment_After, First_Comment_After_End): New functions
37808         (First_Comment_Before, First_Comment_Before_End): New functions
37809         (Next_Comment): New function
37810         (End_Of_Line_Comment, Follows_Empty_Line,
37811         Is_Followed_By_Empty_Line): New functions
37812         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37813         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37814         (Set_Next_Comment): New procedure
37815         (Default_Project_Node): Associate comment before if the node can store
37816         comments.
37817
37818         * scans.ads (Token_Type): New enumeration value Tok_Comment
37819         (Comment_Id): New global variable
37820
37821         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37822         defaulted to False.
37823         (Scan): Store position of start of comment. If comments are tokens, set
37824         Comment_Id and set Token to Tok_Comment when scanning a comment.
37825         (Set_Comment_As_Token): New procedure
37826
37827         * sinput-p.adb: Update Copyright notice
37828         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37829         that no longer exists.
37830
37831 2003-12-08  Javier Miranda  <miranda@gnat.com>
37832
37833         * sem_aggr.adb: Add dependence on Exp_Tss package
37834         Correct typo in comment
37835         (Resolve_Aggregate): In case of array aggregates set the estimated
37836         type of the aggregate before calling resolve. This is needed to know
37837         the name of the corresponding IP in case of limited array aggregates.
37838         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37839         in case of default initialized array components.
37840
37841         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37842         types. Required to give support to limited aggregates in generic
37843         formals.
37844
37845 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37846
37847         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37848         inlined body functions like an instantiation.
37849         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37850         until bounds are analyzed, to diagnose premature use of type.
37851
37852         * sem_util.adb (Wrong_Type): Improve error message when the type of
37853         the expression is used prematurely.
37854
37855 2003-12-08  GNAT Script  <nobody@gnat.com>
37856
37857         * Make-lang.in: Makefile automatically updated
37858
37859 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37860
37861         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37862         they are automatically generated by Make-lang.in and cause nothing but
37863         maintenance troubles.
37864
37865 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37866
37867         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37868         version of this unit).
37869
37870 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37871
37872         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37873         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37874         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37875         the body of System.Interrupt_Management common to several targets.
37876         Update copyright notice when appropriate.
37877
37878         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37879         constant.
37880
37881         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37882         to ensure that the kernel fills in the interrupted context structure
37883         before calling a signal handler, which is necessary to be able to
37884         unwind past it. Update the copyright notice.
37885
37886 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37887
37888         * a-elchha.ads: New file.
37889
37890         * a-elchha.adb: New default last chance handler. Contents taken from
37891         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37892
37893         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37894         is moved to a-elchha.adb to provide a target-independent default last
37895         chance handler.
37896
37897         * Makefile.rtl: Add a-elchha.o
37898
37899         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37900
37901 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37902
37903         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37904         declared in an instance, do not inline the call if the instance is not
37905         frozen yet, to prevent order of elaboration problems.
37906
37907         * sem_prag.adb: Add comments for previous fix.
37908
37909 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37910
37911         * g-table.adb: Use the right variable in Set_Item.
37912         Update copyright notice.
37913
37914 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37915
37916         * Makefile.in: Remove unused rules.
37917
37918 2003-12-05  Vincent Celier  <celier@gnat.com>
37919
37920         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37921         -nostdlib. Not needed here after all.
37922
37923 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37924
37925         PR ada/11724
37926         * adaint.h, adaint.c, g-os_lib.ads:
37927         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37928         on some platforms (including FreeBSD), it is a 64 bit value.
37929         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37930
37931 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37932
37933         * gnatvsn.ads (Library_Version): Now contain only the relevant
37934         version info.
37935         (Verbose_Library_Version): New constant.
37936
37937         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37938         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37939         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37940
37941         * gnatlbr.adb: Clean up: replace Library_Version by
37942         Verbose_Library_Version.
37943
37944         * make.adb, lib-writ.adb, exp_attr.adb:
37945         Clean up: replace Library_Version by Verbose_Library_Version.
37946
37947         * 5lintman.adb: Removed.
37948
37949         * Makefile.in:
37950         Update and simplify computation of LIBRARY_VERSION.
37951         Fix computation of GSMATCH_VERSION.
37952         5lintman.adb is no longer used: replaced by 7sintman.adb.
37953
37954 2003-12-03  Robert Dewar  <dewar@gnat.com>
37955
37956         * exp_ch5.adb:
37957         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37958         name. Modified to consider small non-bit-packed arrays as troublesome
37959         and in need of component-by-component assigment expansion.
37960
37961 2003-12-03  Vincent Celier  <celier@gnat.com>
37962
37963         * lang-specs.h: Process nostdlib as nostdinc
37964
37965         * back_end.adb: Update Copyright notice
37966         (Scan_Compiler_Arguments): Process -nostdlib directly.
37967
37968 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37969
37970         * Makefile.in:
37971         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37972         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37973         included in HIE_NONE_TARGET_PAIRS.
37974
37975 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37976
37977         * sem_attr.adb:
37978         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37979         is legal in an instance, because legality is cheched in the template.
37980
37981         * sem_prag.adb:
37982         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37983         appplied to an unchecked conversion of a formal parameter.
37984
37985         * sem_warn.adb:
37986         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37987         variables.
37988
37989 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37990
37991         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37992         routines. The second one is new functionality to deal with backtracing
37993         through signal handlers.
37994         (unwind): Split into the two separate subroutines above.
37995         Update the documentation, and deal properly with sizeof (REG) different
37996         from sizeof (void*).
37997
37998 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37999
38000         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38001         so that the debugger can reliably access the value of the parameter,
38002         and therefore is able to display the exception name when an exception
38003         breakpoint is reached.
38004
38005 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
38006
38007         * fmap.adb: Fix typo in warning message.
38008
38009         * g-socket.ads, g-socket.adb: Make Free a visible instance of
38010         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38011
38012 2003-12-01  Vincent Celier  <celier@gnat.com>
38013
38014         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38015         ther is no Afile.
38016         (Build_Library): Get the switches only if Default_Switches is declared
38017         in package Binder.
38018
38019 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
38020
38021         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38022         actuals that are indexed components, reanalyze actual to ensure that
38023         packed array references are properly expanded.
38024
38025         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38026         attempted assignment to a discriminant.
38027
38028 2003-12-01  Robert Dewar  <dewar@gnat.com>
38029
38030         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38031         reformatting.
38032
38033         * switch-c.adb: Minor reformatting of comments
38034
38035 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
38036
38037         * Makefile.in: Clean ups.
38038
38039 2003-12-01  GNAT Script  <nobody@gnat.com>
38040
38041         * Make-lang.in: Makefile automatically updated
38042
38043 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
38044
38045         * 5wsystem.ads: Disable zero cost exception, not ready yet.
38046
38047 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
38048
38049         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38050         to force serialization.
38051
38052 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
38053
38054         * g-socket.ads, g-socket.adb:
38055         Clarify documentation of function Stream. Introduce a Free procedure
38056         to release the returned Stream once it becomes unused.
38057
38058         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38059
38060 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
38061
38062         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38063         since NT 4 cannot handle timeout values that are too large,
38064         e.g. DWORD'Last - 1.
38065
38066 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
38067
38068         * exp_ch4.adb:
38069         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38070         in procedure calls and whose expansion must be deferred.
38071
38072         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38073         is in exp_ch4.
38074
38075         * sem_ch3.adb:
38076         (Build_Derived_Array_Type): Create operator for unconstrained type
38077         if ancestor is unconstrained.
38078
38079 2003-11-26  Vincent Celier  <celier@gnat.com>
38080
38081         * make.adb (Project_Object_Directory): New global variable
38082         (Change_To_Object_Directory): New procedure
38083         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38084         of Change_Dir directly. Do not change working directory to object
38085         directory of main project after each compilation.
38086         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38087         directly.
38088         Change to object directory of main project before binding step.
38089         (Initialize): Initialize Project_Object_Directory to No_Project
38090
38091         * mlib-prj.adb:
38092         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38093         binding a Stand-Alone Library.
38094
38095         * output.adb: Update Copyright notice
38096         (Write_Char): Output buffer when full
38097
38098 2003-11-26  Robert Dewar  <dewar@gnat.com>
38099
38100         * sem_ch13.adb: (Check_Size): Reset size if size is too small
38101
38102         * sem_ch13.ads:
38103         (Check_Size): Fix documentation to include bit-packed array case
38104
38105         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38106
38107         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38108
38109         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38110
38111 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
38112
38113         PR ada/13142
38114         * utils.c (init_gigi_decls): Change name of built-in setjmp to
38115         __builtin_setjmp, since this is apparently needed by recent
38116         non Ada changes.
38117
38118 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38119
38120         * adadecode.c: Only include ctype.h if not IN_GCC.
38121         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38122
38123 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
38124
38125         * Makefile.in:
38126         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38127         signals and interrupts.
38128
38129         * 5zintman.ads: New File.
38130
38131         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38132         add exception signals to the set of unmasked signals.
38133
38134         * 5ztaprop.adb:
38135         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38136         between signals and interrupts.
38137         Add to Unblocked_Signal_Mask the set of signals that are in
38138         Keep_Unmasked.
38139
38140         * 7sinmaop.adb:
38141         Adding a check to see whether the Interrupt_ID we want to unmask is in
38142         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38143         reason is that the index type of the Keep_Unmasked array is not always
38144         Interrupt_ID; it may be a subtype of Interrupt_ID.
38145
38146 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
38147
38148         * exp_util.adb:
38149         (Remove_Side_Effects): Condition constantness of object created for a
38150          an unchecked type conversion on the constantness of the expression
38151          to ensure the correct value for 'Constrained when passing components
38152          of view-converted class-wide objects.
38153
38154 2003-11-24  Robert Dewar  <dewar@gnat.com>
38155
38156         * par-load.adb (Load): Improve handling of misspelled and missing units
38157         Removes several cases of compilation abandoned messages
38158
38159         * lib.adb: (Remove_Unit): New procedure
38160
38161         * lib.ads: (Remove_Unit): New procedure
38162
38163         * lib-load.adb: Minor reformatting
38164
38165 2003-11-24  Vincent Celier  <celier@gnat.com>
38166
38167         * make.adb:
38168         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38169         (Marking_Label): Label to mark processed source files. Incremented for
38170         each executable.
38171         (Gnatmake): Increase Marking_Labet for each executable
38172         (Is_Marked): Compare against marking label
38173         (Mark): Mark with marking label
38174
38175 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
38176
38177         * s-thread.ads:
38178         Move the declaration of the TSD for System.Threads to System.Soft_Links.
38179         Add some comments.
38180
38181         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38182         (rts-cert): build a single relocatable object for the run-time lib.
38183         Fix perms.
38184
38185 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
38186
38187         * Make-lang.in:
38188         Use gnatls rather than gcc to obtain the location of GNAT RTL for
38189         crosstools build.
38190
38191 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
38192
38193         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38194         can not use it as before (that is, as a variable) when dumping it into
38195         the tree file. Add a local variable to store the result of this
38196         function and to be used as the string to be written into the tree.
38197
38198         * scn.adb (Initialize_Scanner): Add comments explaining the recent
38199         changes.
38200
38201         * sinput.adb (Source_First, Source_Last): In case of
38202         Internal_Source_File, replace returning attributes of
38203         Internal_Source_Ptr (which is wrong) with returning attributes of
38204         Internal_Source.
38205
38206 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
38207
38208         * sem_ch3.adb:
38209         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38210         used for implicit concatenation operators.
38211         Code cleanup.
38212
38213         * sem_elab.adb:
38214         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38215         task bodies that are in the scope of a Suppress pragma.
38216         (Check_A Call): Use the flag to prevent spurious elaboration checks.
38217
38218         * sinfo.ads, sinfo.adb:
38219         New flag No_Elaboration_Check on function/procedure calls, to properly
38220         suppress checks on calls in task bodies that are within a local suppress
38221         pragma.
38222
38223         * exp_ch4.adb:
38224         (Expand_Concatenate_Other): Use the proper integer type for the
38225         expression for the upper bound, to avoid universal_integer computations
38226         when possible.
38227
38228 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
38229
38230         * .cvsignore: Delete.
38231
38232 2003-11-21  Andreas Schwab  <schwab@suse.de>
38233
38234         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38235
38236 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
38237
38238         * 5wsystem.ads: Enable zero cost exception.
38239
38240 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
38241
38242         * 5ztiitho.adb: Remove an unreferenced variable.
38243
38244 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
38245
38246         * adaint.c: For FreeBSD, use mkstemp.
38247
38248 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
38249
38250         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38251
38252 2003-11-21  Robert Dewar  <dewar@gnat.com>
38253
38254         * bld.adb: Remove useless USE of gnatvsn
38255
38256         * gnatchop.adb: Minor reformatting
38257         Clean up version handling to be more consistent
38258
38259         * gnatxref.adb: Minor reformatting
38260
38261         * gprcmd.adb: Minor reformatting
38262         Fix output of copyright to be more consistent with other tools
38263
38264 2003-11-21  Vincent Celier  <celier@gnat.com>
38265
38266         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38267
38268 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
38269
38270         * atree.adb (Initialize): Add initializations for global variables
38271         used in New_Copy_Tree.
38272
38273         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38274         Internal_Source_File as the actual).
38275         Put the set of statements creating Any_Character before the set of
38276         statements creating Any_Array to have Any_Character fully initialized
38277         when it is used in creating Any_Array.
38278
38279         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38280         not call Scan in case if the actual is Internal_Source_File
38281         Add 2003 to copyright note.
38282
38283         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38284         processing Internal_Source_File.
38285
38286         * types.ads: Add the constant Internal_Source_File representing the
38287         source buffer for artificial source-code-like strings created within
38288         the compiler (the definition of Source_File_Index is changed).
38289
38290 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
38291
38292         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38293         56system.ads: New file, FreeBSD version.
38294
38295 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38296
38297         * Make-lang.in (ada.extraclean): Delete.
38298
38299 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
38300
38301         * gnatmem.adb: Clean up verbose output.
38302
38303         * gprcmd.adb: Change copyright to FSF.
38304
38305 2003-11-19  Vincent Celier  <celier@gnat.com>
38306
38307         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38308         and Version (ignored).
38309
38310         * symbols.ads: (Policy): New type
38311         (Initialize): New parameter Reference, Symbol_Policy and
38312         Library_Version.
38313         Remove parameter Force.
38314         Minor reformatting.
38315
38316         * snames.ads, snames.adbadb: New standard names
38317         Library_Reference_Symbol_File and Library_Symbol_Policy
38318
38319         * mlib-prj.adb:
38320         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38321         project.
38322
38323         * mlib-tgt.adb:
38324         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38325
38326         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38327
38328         * prj.adb: (Project_Empty): New component Symbol_Data
38329
38330         * prj.ads: (Policy, Symbol_Record): New types
38331         (Project_Data): New component Symbol_Data
38332
38333         * prj-attr.adb:
38334         New attributes Library_Symbol_File, Library_Symbol_Policy and
38335         Library_Reference_Symbol_File.
38336
38337         * prj-nmsc.adb:
38338         (Ada_Check): When project is a Stand-Alone library project, process
38339         attribute Library_Symbol_File, Library_Symbol_Policy and
38340         Library_Reference_Symbol_File.
38341
38342         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38343         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38344         5sml-tgt.adb (Build_Dynamic_Library): New parameter
38345         Symbol_Data (ignored).
38346
38347         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38348         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38349         functions Option_File_Name and Version_String. Set new options of
38350         gnatsym related to symbol file, symbol policy and reference symbol
38351         file.
38352
38353         * 5vsymbol.adb:
38354         Extensive modifications to take into account the reference symbol file,
38355         the symbol policy, the library version and to put in the symbol file the
38356         minor and major IDs.
38357
38358         * bld.adb (Process_Declarative_Items): Put second argument of
38359         gprcmd to_absolute between single quotes, to avoid problems with
38360         Windows.
38361
38362         * bld-io.adb: Update Copyright notice.
38363         (Flush): Remove last character of a line, if it is a back slash, to
38364         avoid make problems.
38365
38366         * gnatsym.adb:
38367         Implement new scheme with reference symbol file and symbol policy.
38368
38369         * g-os_lib.ads: (Is_Directory): Clarify comment
38370
38371 2003-11-19  Robert Dewar  <dewar@gnat.com>
38372
38373         * atree.adb: Move New_Copy_Tree global variables to head of package
38374
38375         * errout.adb: Minor reformatting
38376
38377 2003-11-19  Javier Miranda  <miranda@gnat.com>
38378
38379         * sem_ch4.adb: (Diagnose_Call): Improve error message.
38380         Add reference to Ada0Y (AI-50217)
38381
38382         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38383         sem_util.adb: Add reference to AI-50217
38384
38385         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38386
38387         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38388
38389         * sem_aggr.adb: Complete documentation of AI-287 changes
38390
38391         * par-ch4.adb: Document previous changes.
38392
38393         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38394         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38395         Ada0Y (AI-50217)
38396
38397         * exp_aggr.adb: Add references to AI-287 in previous changes
38398
38399 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38400
38401         * exp_ch6.adb:
38402         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38403         in the rewriting is the result of an inlined call.
38404
38405         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38406         parameter is a type conversion, use original node to construct the
38407         post-call assignment, because expression may have been rewritten, e.g.
38408         if it is a packed array.
38409
38410         * sem_attr.adb:
38411         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38412         body, just as it is in an instance.
38413         Categorization routines
38414
38415         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38416         Instantiate_Object): Set proper sloc reference for message on missing
38417         actual.
38418
38419 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38420
38421         * Makefile.in: Add FreeBSD libgnat pairs.
38422
38423         * usage.adb: Fix typo in usage message.
38424
38425 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38426
38427         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38428         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38429         pragma Thread_Body.
38430         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38431
38432         * s-thread.adb: This file is now a dummy implementation of
38433         System.Thread.
38434
38435 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38436
38437         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38438
38439 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38440
38441         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38442         instanciation references in the parent type description.
38443
38444 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38445
38446         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38447
38448         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38449         TYPE_PRECISION directly from esize.
38450
38451 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38452
38453         * cstreams.c:
38454         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38455
38456         * init.c: Initialization routines for FreeBSD
38457
38458         * link.c: Link info for FreeBSD
38459
38460         * sysdep.c: Add the case of FreeBSD
38461
38462 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38463
38464         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38465         already called in System.Threads.
38466
38467         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38468         environment task, as it has been moved to System.Threads.Initialization.
38469
38470 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38471
38472         * adaint.c (__gnatlib_install_locks): Only reference
38473         __gnat_install_locks on VMS, since other platforms can avoid using
38474         --enable-threads=gnat
38475
38476 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38477
38478         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38479
38480         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38481         TYPE_PACKED_ARRAY_TYPE_P.
38482         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38483
38484         Part of PR ada/12806
38485         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38486         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38487
38488 2003-11-17  Vincent Celier  <celier@gnat.com>
38489
38490         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38491         to False.
38492         Do not set exit status to Failure when Warning is True.
38493         (Gnatchop): Make errors "no compilation units found" and
38494         "no source files written" warnings only.
38495
38496         * make.adb (Gnatmake): When using a project file, set
38497         Look_In_Primary_Dir to False.
38498         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38499         and Local_Configuration_Pragmas in the project where they are declared
38500         not an extending project which might have inherited them.
38501
38502         * osint.adb (Locate_File): If Name is already an absolute path, do not
38503         look for a directory.
38504
38505         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38506         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38507
38508         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38509         in objects of type Variable_Value.
38510
38511         * prj.ads: (Variable_Value): New component Project
38512
38513         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38514         is in a project extended by Project.
38515
38516         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38517         Project of Variable_Values to this new parameter value.
38518         (Expression): Set component Project of Variable_Values.
38519         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38520         Set the component Project in array elements.
38521
38522 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38523
38524         * errout.adb: (Initialize): Add initialization for error nodes.
38525
38526         * sem_ch12.adb (Initialize): Add missing initializations for
38527         Exchanged_Views and Hidden_Entities.
38528
38529 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38530
38531         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38532         already instantiated tree for use in subsequent inlining.
38533         (Analyze_Associations, Instantiate_Formal_Subprogram,
38534         Instantiate_Object): improve error message for mismatch in
38535         instantiations.
38536
38537         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38538         instantiations of subprograms declared in instances.
38539
38540 2003-11-17  Javier Miranda  <miranda@gnat.com>
38541
38542         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38543         executed only under the Extensions_Allowed flag.
38544
38545 2003-11-17  Robert Dewar  <dewar@gnat.com>
38546
38547         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38548         zeroes suppressed.
38549         (Address_Image): Fix bug of returning 0x instead of 0x0
38550         Minor reformatting (function specs).
38551
38552         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38553         (missed case of 33-63)
38554
38555         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38556
38557         * s-thread.adb: Add comments for pragma Restriction
38558
38559         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38560         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38561
38562 2003-11-17  Ed Falis  <falis@gnat.com>
38563
38564         * s-thread.adb: Added No_Tasking restriction for this implementation.
38565
38566 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38567
38568         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38569         instanciation references in the parent type description.
38570
38571 2003-11-17  GNAT Script  <nobody@gnat.com>
38572
38573         * Make-lang.in: Makefile automatically updated
38574
38575 2003-11-16  Jason Merrill  <jason@redhat.com>
38576
38577         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38578         and TAGS files that include them for each front end.
38579
38580 2003-11-14  Andreas Jaeger  <aj@suse.de>
38581
38582         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38583         is the canonical version.
38584         * misc.c (gnat_handle_option): Likewise.
38585
38586         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38587
38588         * 5nsystem.ads: New file for x86_64-linux-gnu.
38589
38590 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38591
38592         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38593
38594         * comperr.adb: Fix logic in previous change.
38595
38596 2003-11-13  Vincent Celier  <celier@gnat.com>
38597
38598         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38599         Osint.Include_Dir_Default_Prefix instead of
38600         Sdefault.Include_Dir_Default_Name.
38601
38602         * gnatlbr.adb: Update Copyright notice
38603         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38604         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38605         instead of Sdefault.Object_Dir_Default_Name
38606
38607         * gnatlink.adb:
38608         (Process_Binder_File): Never suppress the option following -Xlinker
38609
38610         * mdll-utl.adb:
38611         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38612         Sdefault.Object_Dir_Default_Name.
38613
38614         * osint.ads, osint.adb:
38615         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38616         Minor reformatting.
38617
38618         * vms_conv.ads: Minor reformating
38619         Remove GNAT STANDARD and GNAT PSTA
38620
38621         * vms_conv.adb:
38622         Allow GNAT MAKE to have several files on the command line.
38623         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38624         Sdefault.Object_Dir_Default_Name.
38625         Minor Reformating
38626         Remove data for GNAT STANDARD
38627
38628         * vms_data.ads:
38629         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38630         Remove data for GNAT STANDARD
38631         Remove options and documentation for -gnatwb/-gnatwB: these warning
38632         options no longer exist.
38633
38634 2003-11-13  Ed Falis  <falis@gnat.com>
38635
38636         * 5zthrini.adb: (Init_RTS): Made visible
38637
38638         * 5zthrini.adb:
38639         (Register): Removed unnecessary call to taskVarGet that checked whether
38640          an ATSD was already set as a task var for the argument thread.
38641
38642         * s-thread.adb:
38643         Updated comment to reflect that this is a VxWorks version
38644         Added context clause for System.Threads.Initialization
38645         Added call to System.Threads.Initialization.Init_RTS
38646
38647 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38648
38649         * 5zthrini.adb:
38650         (Init_RTS): New procedure, for the initialization of the run-time lib.
38651
38652         * s-thread.adb:
38653         Remove dependancy on System.Init, so that this file can be used in the
38654         AE653 sequential run-time lib.
38655
38656 2003-11-13  Robert Dewar  <dewar@gnat.com>
38657
38658         * bindgen.adb: Minor reformatting
38659
38660 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38661
38662         * checks.adb:
38663         (Apply_Discriminant_Check): Do no apply check if target type is derived
38664         from source type with no applicable constraint.
38665
38666         * lib-writ.adb:
38667         (Ensure_System_Dependency): Do not apply the style checks that may have
38668         been specified for the main unit.
38669
38670         * sem_ch8.adb:
38671         (Find_Selected_Component): Further improvement in error message, with
38672         RM reference.
38673
38674         * sem_res.adb:
38675         (Resolve): Handle properly the case of an illegal overloaded protected
38676         procedure.
38677
38678 2003-11-13  Javier Miranda  <miranda@gnat.com>
38679
38680         * exp_aggr.adb:
38681         (Has_Default_Init_Comps): New function to check the presence of
38682         default initialization in an aggregate.
38683         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38684         extension aggregate of a limited record. In addition, a new formal
38685         was added to do not initialize the record controller (if any) during
38686         this recursive expansion of ancestors.
38687         (Init_Controller): Add support for limited record components.
38688         (Expand_Record_Aggregate): In case of default initialized components
38689         convert the aggregate into a set of assignments.
38690
38691         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38692         describing the new syntax.
38693         Nothing else needed to be done because this subprogram delegates part of
38694         its work to P_Precord_Or_Array_Component_Association.
38695         (P_Record_Or_Array_Component_Association): Give support to the new
38696         syntax for default initialization of components.
38697
38698         * sem_aggr.adb:
38699         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38700         limited aggregates.
38701         (Resolve_Record_Aggregate): Give support to default initialized
38702         components.
38703         (Get_Value): In case of default initialized components, duplicate
38704         the corresponding default expression (from the record type
38705         declaration). In case of default initialization in the *others*
38706         choice, do not check that all components have the same type.
38707         (Resolve_Extension_Aggregate): Give support to limited extension
38708         aggregates.
38709
38710         * sem_ch3.adb:
38711         (Check_Initialization): Relax the strictness of the front-end in case
38712         of aggregate and extension aggregates. This test is now done in
38713         Get_Value in a per-component manner.
38714
38715         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38716         expression corresponds to a limited aggregate. This test is now done
38717         in Get_Value.
38718
38719         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38720         Box_Present flag.
38721
38722         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38723         present in an N_Component_Association node
38724
38725 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38726
38727         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38728         type-conformant entry only if they are homographs.
38729
38730 2003-11-13  GNAT Script  <nobody@gnat.com>
38731
38732         * Make-lang.in: Makefile automatically updated
38733
38734 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38735
38736         * adadecode.c: Use <> form of include for ctype.h.
38737         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38738
38739 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38740
38741         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38742         Works around PR middle-end/6552.
38743
38744 2003-11-10  Ed Falis  <falis@gnat.com>
38745
38746         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38747
38748         * 5zinit.adb: (Install_Handler): Moved back to spec
38749         (Install_Signal_Handlers): Deleted
38750
38751         * 5zthrini.adb: Added context clause for System.Storage_Elements
38752         (Register): Only handles creation of taskVar; initialization moved to
38753         Thread_Body_Enter.
38754         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38755         Added declaration of environment task secondary stack and
38756         initialization.
38757
38758         * s-thread.adb: Implement bodies for thread body processing
38759
38760         * s-thread.ads:
38761         Added comment identifying supported targets for pragma Thread_Body.
38762
38763 2003-11-10  Pascal Obry  <obry@gnat.com>
38764
38765         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38766         GNAT_MAX_PATH_LEN.
38767
38768         * s-fileio.adb:
38769         (Open): Properly check for string length before copying into the buffer.
38770         Raises Name_Error if buffer is too small. Note that this was a potential
38771         buffer overflow.
38772
38773 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38774
38775         * bindgen.adb, comperr.adb: Code clean ups.
38776         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38777
38778 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38779
38780         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38781
38782 2003-11-10  Vincent Celier  <celier@gnat.com>
38783
38784         * gprcmd.adb:
38785         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38786         installation.
38787
38788         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38789
38790         * prj.adb: (Project_Empty): Add new boolean component Virtual
38791
38792         * prj.ads: (Virtual_Prefix): New constant string
38793         (Project_Data): New boolean component Virtual
38794
38795         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38796         a library project is extended by a virtual extending project.
38797
38798         * prj-part.adb:
38799         Modifications throughout to implement extending-all project, including:
38800         (Virtual_Hash, Processed_Hash): New hash tables
38801         (Create_Virtual_Extending_Project): New procedure
38802         (Look_For_Virtual_Projects_For): New procedure
38803
38804         * prj-proc.adb:
38805         (Process): After checking the projects, if main project is an
38806         extending-all project, set the object directory of all virtual extending
38807         project to the object directory of the main project.
38808         Adjust error message when a virtual extending project has the same
38809         object directory as an project being extended.
38810         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38811         to True in the project data.
38812
38813         * prj-tree.adb:
38814         (Default_Project_Node): Add new boolean component Extending_All
38815         (Is_Extending_All): New function
38816         (Set_Is_Extending_All): New procedure
38817
38818         * prj-tree.ads: (Is_Extending_All): New function
38819         (Set_Is_Extending_All): New procedure
38820         (Project_Node_Record): New boolean component Extending_All
38821
38822         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38823
38824         * vms_data.ads:
38825         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38826
38827         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38828         "gprcmd prefix" to define it.
38829
38830 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38831
38832         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38833
38834         * lib-load.adb:
38835         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38836         created dummy package to Standard_Standard, not to itself, to
38837         defend other parts of the front-end against encoutering a cycle in
38838         the scope chain.
38839
38840         * sem_ch10.adb:
38841         (Analyze_With_Clause): When setting the entities for the successive
38842         N_Expanded_Names that constitute the name of a child unit, do not
38843         attempt to go further than Standard_Standard in the chain of scopes.
38844         This case arises from the placeholder units created by
38845         Create_Dummy_Package_Unit in the case of a with_clause for a
38846         nonexistent child unit.
38847
38848 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38849
38850         * exp_ch6.adb:
38851         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38852         declarations are given the proper scope.
38853
38854         * sem_ch13.adb:
38855         (Check_Expr_Constants): Reject an expression that contains a constant
38856         created during expansion, and that appears after the object to which
38857         the address clause applies.
38858
38859         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38860         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38861         that uses 'Range of a function call with controlled components, so
38862         that the function result can be finalized before starting the loop.
38863
38864         * sem_ch8.adb:
38865         (Find_Selected_Component): Improve error message when prefix is
38866         an implicit dereference of an incomplete type.
38867
38868 2003-11-10  Robert Dewar  <dewar@gnat.com>
38869
38870         * opt.ads: New Print_Standard flag for -gnatS switch
38871
38872         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38873
38874         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38875         switch set
38876
38877         * debug.adb: Update doc for -gnatds to discuss relationship with new
38878         -gnatS flag
38879
38880         * sinfo.adb: Add new field Entity_Or_Associated_Node
38881
38882         * sinfo.ads: Add new field Entity_Or_Associated_Node
38883         Update documentation for Associated_Node and Entity fields to clarify
38884         relationship and usage.
38885
38886         * sprint.adb:
38887         (Write_Id): Properly process Associated_Node field in generic template
38888
38889         * switch-c.adb:
38890         Recognize new -gnatS switch for printing package Standard
38891         This replaces gnatpsta
38892
38893         * usage.adb:
38894         Add line for  new -gnatS switch for printing package Standard
38895         This replaces gnatpsta
38896
38897 2003-11-10  Andreas Jaeger  <aj@suse.de>
38898
38899         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38900         integer.
38901
38902 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38903
38904         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38905         by gnat1.
38906
38907 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38908
38909         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38910         no longer needed.
38911
38912         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38913
38914         * sysdep.c: Add handling of cygwin.
38915
38916 2003-11-10  GNAT Script  <nobody@gnat.com>
38917
38918         * Make-lang.in: Makefile automatically updated
38919
38920 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38921
38922         PR 12950
38923         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38924         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38925         Replace GNAT_ROOT by GCC_ROOT.
38926
38927         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38928
38929 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38930
38931         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38932         and update for changed meaning of GET_MODE_BITSIZE.
38933
38934 2003-11-04  Doug Rupp  <rupp@gnat.com>
38935
38936         * sysdep.c: Problem discovered during IA64 VMS port.
38937         [VMS] #include <unixio.h> to get proper prototypes.
38938
38939         * adaint.c:
38940         Issues discovered/problems fixed during IA64 VMS port.
38941         [VMS] #define _POSIX_EXIT for proper semantics.
38942         [VMS] #include <unixio.h> for proper prototypes.
38943         [VMS] (fork): #define IA64 version.
38944         (__gnat_os_exit): Remove unnecessary VMS specific code.
38945
38946 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38947
38948         Part of PR ada/12806
38949         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38950         tree, not integer.
38951
38952         * decl.c:
38953         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38954         not integer.
38955
38956         * targtyps.c, decl.c, misc.c,
38957         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38958         routines to work around change in FP sizing semantics in GCC.
38959
38960         * utils.c:
38961         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38962
38963         * gigi.h: (enumerate_modes): New function.
38964
38965         * Make-lang.in: (ada/misc.o): Add real.h.
38966
38967         * misc.c: (enumerate_modes): New function.
38968
38969 2003-11-04  Robert Dewar  <dewar@gnat.com>
38970
38971         * 3vtrasym.adb: Minor reformatting
38972         Use terminology encoded/decoded name, rather than C++ specific notion
38973         of mangling (this is the terminology used throughout GNAT).
38974
38975         * einfo.h: Regenerated
38976
38977         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38978
38979         * exp_ch6.adb:
38980         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38981
38982         * par-prag.adb: Add dummy entry for Thread_Body pragma
38983
38984         * rtsfind.ads:
38985         Add entries for System.Threads entities for thread body processing
38986
38987         * sem_attr.adb:
38988         (Analyze_Pragma, Access attributes): Check these are not applied to a
38989         thread body, since this is not permitted
38990
38991         * sem_prag.adb: Add processing for Thread_Body pragma.
38992         Minor comment fix.
38993
38994         * sem_res.adb:
38995         (Resolve_Call): Check for incorrect attempt to call a thread body
38996          procedure with a direct call.
38997
38998         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38999         Add names associated with thread body expansion
39000
39001         * snames.h: Add entry for Thread_Body pragma
39002
39003         * s-thread.adb: Add entries for thread body processing
39004         These are dummy bodies so far
39005
39006         * s-thread.ads: Add documentation on thread body handling.
39007         Add entries for thread body processing.
39008
39009 2003-11-04  Javier Miranda  <miranda@gnat.com>
39010
39011         * sem_ch10.adb:
39012         (Build_Limited_Views): Return after posting an error in case of limited
39013         with_clause on subprograms, generics, instances or generic renamings
39014         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39015         on subprograms, generics, instances or generic renamings
39016
39017 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
39018
39019         * raise.c (setup_to_install): Correct mistake in last revision; two
39020         arguments out of order.
39021
39022         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39023         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39024         notice, missed in previous change.
39025         Remove trailing blanks and other style errors introduced in previous
39026         change.
39027
39028 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
39029
39030         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39031         rid of the wrapper for a LJM type, ensuring we don't do that if the
39032         field is addressable.  This avoids potential low level type view
39033         mismatches later on, for instance in a by-reference argument passing
39034         process.
39035
39036 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39037
39038         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39039         aligned at byte boundary.
39040
39041 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
39042
39043         * decl.c (components_to_record): Do not delete the empty variants from
39044         the end of the union type.
39045
39046 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
39047
39048         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39049         operation for a derived type, an explicit declaration may use a local
39050         subtype of Boolean.
39051
39052 2003-11-04  Vincent Celier  <celier@gnat.com>
39053
39054         * make.adb (Gnatmake): Allow main sources on the command line with a
39055         library project when it is only for compilation (no binding or
39056         linking).
39057
39058 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39059
39060         * Makefile.in: Remove many duplicate variables.
39061
39062 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
39063
39064         * Make-lang.in (dvi): Move targets to $(docobjdir).
39065         (gnat_ug_vms.dvi): Simplify rule and adjust target.
39066         (gnat_ug_wnt.dvi): Likewise.
39067         (gnat_ug_unx.dvi): Likewise.
39068         (gnat_ug_vxw.dvi): Likewise.
39069         (gnat_rm.dvi): Likewise.
39070         (gnat-style.dvi): Likewise.
39071
39072 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
39073
39074         * gigi.h: Missed commit from update for C90.
39075
39076 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
39077
39078         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39079
39080 2003-10-31  Andreas Schwab  <schwab@suse.de>
39081
39082         * raise.c (get_action_description_for): Fix typo in last change.
39083
39084 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
39085
39086         PR ada/12761
39087         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39088         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39089
39090 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
39091
39092         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39093         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39094         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39095         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39096         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39097
39098 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
39099
39100         * 3vtrasym.adb:
39101         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39102         numbers when symbol name is too long.
39103
39104 2003-10-30  Ed Falis  <falis@gnat.com>
39105
39106         * g-signal.ads, g-signal.adb: New files
39107
39108         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39109
39110         * Makefile.rtl: Introduce GNAT.Signals
39111
39112 2003-10-30  Robert Dewar  <dewar@gnat.com>
39113
39114         * freeze.adb: Minor reformatting
39115
39116         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39117
39118         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39119         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39120         New handling of Id_Check parameter to improve recognition of keywords
39121         used as identifiers.
39122         Update copyright notice to include 2003
39123
39124 2003-10-29  Robert Dewar  <dewar@gnat.com>
39125
39126         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39127         sem_ch10.adb: Minor reformatting
39128
39129         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39130         (Expand_Assign_Record): Test right hand side for bit unaligned as well
39131
39132 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
39133
39134         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39135         Support for TBK$SYMBOLIZE-based symbolic traceback.
39136
39137 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
39138
39139         * exp_disp.adb:
39140         Revert previous change, that did not work well when pragma No_Run_Time
39141         was used in conjunction with a run-time other than ZFP.
39142
39143 2003-10-29  Vincent Celier  <celier@gnat.com>
39144
39145         * make.adb:
39146         (Gnatmake): When there are no Ada mains in attribute Main, disable the
39147          bind and link steps only is switch -z is not used.
39148
39149 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
39150
39151         * Makefile.generic: Remove duplicated setting of CC.
39152
39153         * Makefile.prolog: Set CC to gcc by default, to override make's
39154         default (cc).
39155
39156         * einfo.h: Regenerated.
39157
39158 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
39159
39160         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39161         current body, after compiling subunit.
39162
39163         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39164         when in deleted code, because gigi needs properly ordered freeze
39165         actions to annotate types.
39166
39167         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39168         prevent the premature freezing of record type that contains
39169         subcomponents with a private type that does not yet have a completion.
39170
39171 2003-10-29  Javier Miranda  <miranda@gnat.com>
39172
39173         * sem_ch12.adb:
39174         (Analyze_Package_Instantiation): Check that instances can not be used in
39175         limited with_clauses.
39176
39177         * sem_ch8.adb:
39178         (Analyze_Package_Renaming): Check that limited withed packages cannot
39179         be renamed. Improve text on error messages related to limited
39180         with_clauses.
39181
39182         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39183
39184         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39185         Update copyright notice.
39186
39187         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39188         (Install_Limited_Context_Clauses): New subprogram that isolates all the
39189         checks required for limited context_clauses and installs the limited
39190         view.
39191         (Install_Limited_Withed_Unit): Complete its documentation.
39192         (Analyze_Context): Check that limited with_clauses are only allowed in
39193         package specs.
39194         (Install_Context): Call Install_Limited_Context_Clauses after the
39195         parents have been installed.
39196         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39197         package as 'From_With_Type'; this mark indicates that the limited view
39198         is installed. Used to check bad usages of limited with_clauses.
39199         (Build_Limited_Views): Do not add shadow entities to the scope's list
39200         of entities. Do not add real entities to the Non_Limited_Views chain.
39201         Improve error notification.
39202         (Remove_Context_Clauses): Remove context clauses in two phases:
39203         limited views first and regular views later (to maintain the
39204         stack model).
39205         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39206         its visible entities.
39207
39208 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
39209
39210         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39211         with any type that Is_Fixed_Point_Type.
39212
39213         * sinfo.ads: Fix documentation for Associated_Node attribute.
39214
39215 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
39216
39217         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39218         both '-gnatc' and '-gnatt' are specified.
39219
39220         * atree.adb (Initialize): Add initialization for Node_Count (set to
39221         zero).
39222
39223 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39224
39225         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39226         do not consider as Pure.
39227
39228         Part of implementation of function-at-a-time:
39229
39230         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39231         (tree_transform): Add new argument to build_component_ref.
39232         (tree_transform, case N_Assignment_Statement): Make and return an
39233         EXPR_STMT.
39234         (tree_transform): If result IS_STMT, set flags and return it.
39235         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39236
39237         * utils2.c (build_simple_component_ref, build_component_ref): Add new
39238         arg, NO_FOLD_P.
39239         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39240         (build_allocator): Likewise.
39241
39242         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39243         Add new arg to build_component_ref.
39244         (maybe_unconstrained_array, unchecked_convert): Likewise.
39245
39246         * ada-tree.def (EXPR_STMT): New code.
39247
39248         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39249
39250         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39251         build_component_ref calls.
39252
39253         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39254
39255         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39256         (build_component_ref): Add new argument, NO_FOLD_P.
39257
39258 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
39259
39260         * Makefile.generic: Add missing substitution on object_deps handling.
39261
39262         PR ada/5909
39263         * Make-lang.in (check-ada): Enable ACATS test suite.
39264
39265 2003-10-27  Robert Dewar  <dewar@gnat.com>
39266
39267         * exp_ch3.adb:
39268         (Freeze_Array_Type): We do not need an initialization routine for types
39269         derived from String or Wide_String. They should be treated the same
39270         as String and Wide_String themselves. This caused problems with the
39271         use of Initialize_Scalars.
39272
39273         * exp_ch5.adb:
39274         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39275         composites. This allows use of component clauses that are not byte
39276         aligned.
39277
39278         * sem_prag.adb:
39279         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39280         is an attempt to pack an array of atomic objects.
39281
39282         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39283
39284 2003-10-27  Pascal Obry  <obry@gnat.com>
39285
39286         * g-dirope.adb:
39287         (Basename): Check for drive letters in a pathname only on DOS based OS.
39288
39289 2003-10-27  Vincent Celier  <celier@gnat.com>
39290
39291         * make.adb:
39292         (Gnatmake): When unable to change dir to the object dir, display the
39293         content of the parent dir of the obj dir, to try to understand why this
39294         happens.
39295
39296 2003-10-27  GNAT Script  <nobody@gnat.com>
39297
39298         * Make-lang.in: Makefile automatically updated
39299
39300 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
39301
39302         * sem_ch12.adb:
39303         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39304         should not be done in Save/Restore_Scope_Stack, because it is performed
39305         locally.
39306
39307         * sem_ch8.adb:
39308         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39309         whether use clauses should be removed/restored.
39310
39311         * sem_ch8.ads:
39312         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39313         whether use clauses should be removed/restored.
39314
39315 2003-10-26  Andreas Jaeger  <aj@suse.de>
39316
39317         * Makefile.in: Remove duplicated lines.
39318
39319 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39320
39321         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39322         minimize the differences with ACT tree.
39323
39324         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39325         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39326         Gnatvsn.Gnat_Static_Version_String to reduce differences between
39327         ACT and FSF trees.
39328
39329 2003-10-24  Pascal Obry  <obry@gnat.com>
39330
39331         PR ada/12014
39332         * adadecode.c (ostrcpy): New function.
39333         (__gnat_decode): Use ostrcpy of strcpy.
39334         (has_prefix): Set first parameter a const.
39335         (has_suffix): Set first parameter a const.
39336         Update copyright notice. Fix source name in header.
39337         Removes a trailing space.
39338
39339 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
39340
39341         * exp_disp.adb:
39342         Remove the test against being in No_Run_Time_Mode before generating a
39343         call to Register_Tag. It is redundant with the test against the
39344         availability of the function Register_Tag.
39345
39346 2003-10-24  Vincent Celier  <celier@gnat.com>
39347
39348         * g-catiio.adb: (Month_Name): Correct spelling of February
39349
39350         * make.adb: (Mains): New package
39351         (Initialize): Call Mains.Delete
39352         (Gnatmake): Check that each main on the command line is a source of a
39353         project file and, if there are several mains, each of them is a source
39354         of the same project file.
39355         (Gnatmake): When a foreign language is specified in attribute Languages,
39356         no main is specified on the command line and attribute Mains is not
39357         empty, only build the Ada main. If there is no Ada main, just compile
39358         the Ada sources and their closure.
39359         (Gnatmake): If a main is specified on the command line with directory
39360         information, check that the source exists and, if it does, that the path
39361         is the actual path of a source of a project.
39362
39363         * prj-env.adb:
39364         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39365         Full_Path is True, return the full path instead of the simple file name.
39366         (Project_Of): New function
39367
39368         * prj-env.ads:
39369         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39370         defaulted to False.
39371         (Project_Of): New function
39372
39373 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39374
39375         * Makefile.generic:
39376         Ensure objects of main project are always checked and rebuilt if needed.
39377         Set CC to gcc by default.
39378         Prepare new handling of link by creating a global archive (not activated
39379         yet).
39380
39381         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39382         stringt.h: Update copyright notice. Remove trailing blanks.
39383         Fix source name in header.
39384
39385 2003-10-24  Robert Dewar  <dewar@gnat.com>
39386
39387         * sem_ch12.adb: Minor reformatting
39388
39389         * sem_ch3.adb:
39390         Minor reformatting (including new function return style throughout)
39391
39392         * sem_ch3.ads:
39393         Minor reformatting (including new function return style throughout)
39394
39395 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39396
39397         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39398         stringt.h: Update copyright notice. Remove trailing blanks.
39399         Fix source name in header.
39400
39401 2003-10-24  GNAT Script  <nobody@gnat.com>
39402
39403         * Make-lang.in: Makefile automatically updated
39404
39405 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39406
39407         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39408         stringt.h: Convert to ISO C90 declarations and definitions.
39409
39410 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39411
39412         PR ada/11978
39413         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39414         External_Tag attribute definition clauses.
39415
39416 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39417
39418         PR ada/7613
39419         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39420         child unit, generate a fully qualified name to avoid spurious errors
39421         when the context contains renamings of different child units with
39422         the same simple name.
39423
39424         * exp_dbug.ads: Add documentation on name qualification for renamings
39425         of child units.
39426
39427 2003-10-23  Robert Dewar  <dewar@gnat.com>
39428
39429         * g-regpat.ads, g-regpat.adb: Minor reformatting
39430
39431 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39432
39433         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39434
39435 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39436
39437         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39438         Machine call.
39439
39440         * urealp.h: (Machine): Update to proper definition.
39441
39442 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39443
39444         * init.c, adaint.c: Minor reformatting.
39445
39446 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39447
39448         * adaint.c (w32_epoch_offset): Define static const at file level.
39449         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39450         rather than t_create, t_access in call to GetFileTime. Use union
39451         to convert between FILETIME and  unsigned long long.
39452         (__gnat_file_time_name): Test for invalid file handle.
39453         (__gnat_set_filetime_name): Support win32 targets using
39454         w32api SetFileTime.
39455
39456 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39457
39458         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39459
39460         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39461
39462         * decl.c (creat_concat_name):  Const-ify prefix.
39463
39464         * adaint.c: Include ctype.h if __MINGW32__.
39465         (__gnat_readlink): Mark arguments as possibly unused.
39466         (__gnat_symlink): Likewise.
39467         (__gnat_is_symbolic_link): Likewise.
39468         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39469         declaration
39470         (__gnat_file_time_name): Don't declare struct stat statbuf when
39471         not needed.
39472         (__gnat_is_absolute_path): Add parenthesis around condition of
39473         'if' statement to avoid warning.
39474         (__gnat_plist_init): Specify void as parameter.
39475         (plist_enter): Likewise.
39476         (plist_leave): Likewise.
39477         (remove_handle): Make static. Initialize prev.
39478
39479 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39480
39481         PR ada/10110
39482         * Makefile.in: Disable build of gnatpsta.
39483         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39484         of previous change.
39485
39486 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39487
39488         * tracebak.c (MAX): Avoid redefinition warning.
39489
39490         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39491         Change msg to const char *.
39492         (__gnat_install_handler): Remove ss, unused.
39493         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39494         to const char *.
39495         * cstreams.c (__gnat_full_name): Declare p only when used.
39496         (__gnat_full_name) [sgi] Return buffer.
39497
39498 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39499
39500         * mingw32.h: New file.
39501         * gnat_wrapper.adb: New file.
39502
39503 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39504
39505         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39506         string match a pre compiled regular expression (the corresponding
39507         version of the function working on a raw regular expression)
39508         Fix typos in various comments
39509         Update copyright notice in spec
39510
39511 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39512
39513         * exp_ch3.adb:
39514         (Component_Needs_Simple_Initialization): Return False when the type is a
39515         packed bit array. Revise spec comments to document this case.
39516
39517         * exp_prag.adb:
39518         (Expand_Pragma_Import): Set any expression on the imported object to
39519         empty to avoid initializing imported objects (in particular this
39520         covers the case of zero-initialization of bit arrays).
39521         Update copyright notice.
39522
39523 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39524
39525         * sem_ch12.adb:
39526         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39527         a subunit is missing.
39528         (Instantiate_Subprogram_Body): If body of function is missing, set type
39529         of return expression explicitly in dummy body, to prevent cascaded
39530         errors when a subunit is missing.
39531         Fixes PR 5677.
39532
39533         * sem_ch3.adb:
39534         (Access_Subprogram_Declaration): Verify that return type is valid.
39535         Fixes PR 8693.
39536
39537         * sem_elab.adb:
39538         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39539         generic.
39540         Fixes PR 12318.
39541
39542         * sem_util.adb:
39543         (Corresponding_Discriminant): If the scope of the discriminant is a
39544         private type without discriminant, use its full view.
39545         Fixes PR 8247.
39546
39547 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39548
39549         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39550         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39551         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39552         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39553         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39554         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39555         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39556         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39557         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39558         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39559         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39560         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39561         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39562         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39563         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39564         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39565         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39566         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39567         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39568         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39569         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39570         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39571         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39572         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39573         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39574         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39575         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39576         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39577         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39578         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39579         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39580         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39581         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39582         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39583         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39584         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39585         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39586         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39587         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39588         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39589         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39590         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39591         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39592         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39593         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39594         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39595         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39596         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39597         vms_conv.ads, vms_conv.adb, vms_data.ads,
39598         vxaddr2line.adb: Files added. Merge with ACT tree.
39599
39600         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39601         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39602         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39603         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39604         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39605         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39606         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39607         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39608         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39609         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39610
39611         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39612         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39613         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39614         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39615         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39616         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39617         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39618         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39619         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39620         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39621         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39622         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39623         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39624         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39625         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39626         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39627         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39628         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39629         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39630         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39631         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39632         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39633         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39634         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39635         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39636         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39637         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39638         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39639         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39640         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39641         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39642         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39643         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39644         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39645         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39646         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39647         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39648         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39649         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39650         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39651         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39652         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39653         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39654         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39655         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39656         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39657         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39658         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39659         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39660         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39661         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39662         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39663         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39664         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39665         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39666         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39667         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39668         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39669         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39670         checks.adb, checks.ads, cio.c, comperr.adb,
39671         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39672         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39673         einfo.adb, einfo.ads, errout.adb, errout.ads,
39674         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39675         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39676         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39677         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39678         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39679         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39680         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39681         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39682         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39683         fe.h, fmap.adb, fmap.ads, fname.adb,
39684         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39685         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39686         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39687         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39688         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39689         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39690         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39691         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39692         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39693         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39694         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39695         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39696         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39697         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39698         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39699         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39700         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39701         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39702         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39703         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39704         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39705         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39706         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39707         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39708         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39709         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39710         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39711         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39712         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39713         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39714         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39715         layout.adb, lib.adb, lib.ads, lib-list.adb,
39716         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39717         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39718         link.c, live.adb, make.adb, make.ads,
39719         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39720         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39721         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39722         misc.c, mkdir.c, mlib.adb, mlib.ads,
39723         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39724         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39725         namet.adb, namet.ads, namet.h, nlists.ads,
39726         nlists.h, nmake.adt, opt.adb, opt.ads,
39727         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39728         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39729         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39730         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39731         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39732         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39733         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39734         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39735         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39736         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39737         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39738         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39739         prj-util.adb, prj-util.ads, raise.c, raise.h,
39740         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39741         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39742         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39743         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39744         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39745         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39746         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39747         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39748         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39749         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39750         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39751         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39752         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39753         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39754         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39755         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39756         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39757         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39758         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39759         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39760         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39761         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39762         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39763         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39764         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39765         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39766         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39767         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39768         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39769         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39770         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39771         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39772         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39773         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39774         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39775         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39776         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39777         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39778         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39779         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39780         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39781         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39782         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39783         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39784         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39785         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39786         stringt.adb, stringt.ads, stringt.h, style.ads,
39787         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39788         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39789         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39790         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39791         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39792         table.adb, table.ads, targparm.adb, targparm.ads,
39793         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39794         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39795         ttypes.ads, types.ads, types.h, uintp.adb,
39796         uintp.ads, uintp.h, uname.adb, urealp.adb,
39797         urealp.ads, urealp.h, usage.adb, utils2.c,
39798         utils.c, validsw.adb, validsw.ads, widechar.adb,
39799         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39800         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39801         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39802         gnatvsn.ads: Merge with ACT tree.
39803
39804         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39805
39806 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39807
39808         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39809         (gnat_ug_vmx.info): Likewise.
39810         (gnat_ug_vxw.info): Likewise.
39811         (gnat_ug_wnt.info): Likewise.
39812         (gnat_rm.info): Likewise.
39813         (gnat-style.info): Likewise.
39814
39815         * Make-lang.in (ada.install-info): Remove target.
39816         (info): New target.
39817         (install-info): Likewise.
39818         (gnat_ug_unx.info): Simplify rule.
39819         (gnat_ug_vmx.info): Likewise.
39820         (gnat_ug_vxw.info): Likewise.
39821         (gnat_ug_wnt.info): Likewise.
39822         (gnat_rm.info): Likewise.
39823         (gnat-style.info): Likewise.
39824
39825 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39826
39827         * Make-lang.in: Replace uses of $(target_alias) with
39828         $(target_noncanonical).
39829         * ada/Makefile.in: Remove unused mention of $(target_alias).
39830
39831 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39832
39833         * Make-lang.in (ada.info): Replace with ...
39834         (info): ... this.
39835         (ada.dvi): Replace with ...
39836         (dvi): ... this.
39837
39838 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39839
39840         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39841         initialize dconstp5 and dconstmp5.
39842
39843 2003-09-28  Richard Henderson  <rth@redhat.com>
39844
39845         * trans.c (tree_transform): Update call to expand_asm_operands.
39846
39847 2003-09-21  Richard Henderson  <rth@redhat.com>
39848
39849         * trans.c, utils.c: Revert.
39850
39851 2003-09-21  Richard Henderson  <rth@redhat.com>
39852
39853         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39854         change to const.
39855
39856 2003-09-04  Michael Matz  <matz@suse.de>
39857
39858         * misc.c: Include "target.h".
39859         * Make-lang.in (misc.o): Add dependency on target.h.
39860
39861 2003-09-03  DJ Delorie  <dj@redhat.com>
39862
39863         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39864         hook.
39865
39866 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39867
39868         * Makefile.in: Update substitutions to match changes to
39869         configure.  Use include directives instead of @-insertions
39870         to read in host and target fragments.  Add a rule to
39871         regenerate ada/Makefile.
39872
39873 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39874
39875         * lang-options.h: Remove.
39876         * lang.opt: Add help text.
39877
39878 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39879
39880         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39881         calls.
39882
39883 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39884
39885         * misc.c (gnat_handle_option): Don't handle filenames.
39886
39887 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39888
39889         * Make-lang.in: Replace PWD with PWD_COMMAND.
39890         * Makefile.adalib: Likewise.
39891         * Makefile.in: Likewise.
39892
39893 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39894
39895         * misc.c (gnat_argv): Revert last change.
39896         (gnat_handle_option, gnat_init_options): Copy arguments.
39897
39898 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39899
39900         * misc.c (gnat_argv): Make const.
39901
39902 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39903
39904         * misc.c (save_argc, save_argv): Keep non-static!
39905
39906 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39907
39908         * misc.c (save_argc, save_argv): Make static.
39909         (gnat_init_options): New prototype.
39910         (gnat_init_options): Update.
39911
39912 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39913
39914         * gnat_ug.texi: Remove unlikely characters from @vars.
39915         * gnat_ug_vms.texi: Regenerate.
39916
39917 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39918
39919         * misc.c (record_code_position): Adjust emit_note call.
39920
39921 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39922
39923         * misc.c (gnat_handle_option): Don't check for missing arguments.
39924
39925 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39926
39927         * utils.c (end_subprog_body): Adjust expand_function_end call.
39928
39929 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39930
39931         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39932         Bind_Main_Program.
39933
39934 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39935
39936         * lang.opt: Declare Ada.
39937         * misc.c (gnat_init_options): Update.
39938
39939 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39940
39941         * utils.c (begin_subprog_body): Adjust init_function_start call.
39942
39943 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39944
39945         * Make-lang.in: Update to use options.c and options.h.
39946         * misc.c: Include options.h not aoptions.h.
39947         (gnat_handle_option): Abort on unrecognized switch.
39948         (gnat_init_options): Request Ada switches.
39949
39950 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39951
39952         * lang.opt: Add -Wall.
39953         * misc.c (gnat_handle_option): Handle it.
39954
39955 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39956
39957         * misc.c (gnat_handle_option): Fix warnings.
39958
39959 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39960
39961         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39962
39963 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39964
39965         * Make-lang.in: Update to handle command-line options.
39966         * lang.opt: New file.
39967         * misc.c: Include aoptions.h.
39968         (cl_options_count, cl_options): Remove.
39969         (gnat_handle_option): New.
39970         (gnat_decode_option): Remove.
39971         (LANG_HOOKS_DECODE_OPTION): Remove.
39972         (LANG_HOOKS_HANDLE_OPTION): Override.
39973
39974 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39975
39976         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39977
39978 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39979
39980         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39981         substitution.
39982
39983 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39984
39985         * Make-lang.in: Update.
39986         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39987
39988 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39989
39990         * misc.c (gnat_init_options): Update.
39991
39992 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39993
39994         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39995         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39996         __attribute__ ((__unused__)).
39997
39998 2003-06-05  Jan Hubicka  <jh@suse.cz>
39999
40000         * Make-lang.in:  Add support for stageprofile and stagefeedback
40001
40002 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
40003
40004         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40005         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40006
40007 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
40008
40009         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40010         Remove non-VMS directive.
40011         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40012         alternatives.
40013         (Examples of gnatls Usage): Remove VMS alternative.
40014
40015 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
40016
40017         PR ada/9953
40018         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40019         and turn ZCX_By_Default back to False since the underlying support
40020         is not quite there yet.
40021
40022 2003-06-01  Andreas Jaeger  <aj@suse.de>
40023
40024         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40025         and ROUND_TYPE_SIZE_UNIT.
40026
40027 2003-05-22   Geert Bosch  <bosch@gnat.com>
40028
40029         * gnat_rm.texi : Remove reference to Ada Core Technologies.
40030
40031 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
40032
40033         * trans.c (tree_transform): Use location_t and input_location
40034         directly.
40035         (build_unit_elab): Likewise.
40036         * utils.c (create_label_decl): Likewise.
40037
40038 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
40039
40040         * trans.c (tree_transform, build_unit_elab,
40041         set_lineno): Rename lineno to input_line.
40042         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40043         end_subprog_body): Likewise.
40044         * utils2.c (build_call_raise): Likewise.
40045
40046 2003-05-01  Laurent Guerby  <guerby@acm.org>
40047
40048         PR ada/10546
40049         * 5iosinte.ads: Increase pthread_cond_t size to match recent
40050         LinuxThread and NPTL version, merge from ACT.
40051
40052 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
40053
40054         * utils.c (convert): No need to clear TREE_CST_RTL.
40055
40056 2003-04-23   Geert Bosch  <bosch@gnat.com>
40057
40058         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40059         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40060         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40061         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40062         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40063         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40064         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40065         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40066         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40067         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40068         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40069         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40070         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40071         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40072         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40073         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40074         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40075         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40076         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40077         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40078         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40079         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40080         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40081         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40082         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40083         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40084         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40085         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40086         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40087         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40088         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40089         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40090         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40091         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40092         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40093         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40094         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40095         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40096         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40097         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40098         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40099         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40100         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40101         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40102         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40103         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40104         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40105         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40106         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40107         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40108         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40109         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40110         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40111         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40112         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40113         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40114         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40115         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40116         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40117         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40118         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40119         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40120         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40121         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40122         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40123         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40124         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40125         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40126         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40127         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40128         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40129         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40130         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40131         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40132         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40133         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40134         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40135         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40136         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40137         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40138         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40139         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40140         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40141         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40142         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40143         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40144         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40145         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40146         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40147         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40148         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40149         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40150         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40151         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40152         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40153         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40154         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40155         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40156         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40157         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40158         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40159         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40160         ali.adb, ali.ads, alloc.ads, argv.c,
40161         atree.adb, atree.ads, atree.h, aux-io.c,
40162         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40163         binde.adb, binde.ads, binderr.adb, binderr.ads,
40164         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40165         butil.adb, butil.ads, cal.c, calendar.ads,
40166         casing.adb, casing.ads, ceinfo.adb, checks.adb,
40167         checks.ads, cio.c, comperr.adb, comperr.ads,
40168         config-lang.in, csets.adb, csets.ads, csinfo.adb,
40169         cstand.adb, cstand.ads, cuintp.c, debug.adb,
40170         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40171         dec-io.ads, dec.ads, deftarg.c, directio.ads,
40172         einfo.adb, einfo.ads, elists.adb, elists.ads,
40173         elists.h, errno.c, errout.adb, errout.ads,
40174         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40175         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40176         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40177         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40178         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40179         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40180         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40181         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40182         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40183         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40184         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40185         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40186         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40187         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40188         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40189         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40190         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40191         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40192         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40193         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40194         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40195         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40196         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40197         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40198         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40199         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40200         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40201         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40202         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40203         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40204         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40205         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40206         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40207         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40208         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40209         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40210         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40211         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40212         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40213         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40214         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40215         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40216         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40217         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40218         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40219         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40220         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40221         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40222         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40223         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40224         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40225         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40226         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40227         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40228         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40229         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40230         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40231         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40232         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40233         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40234         lib.adb, lib.ads, live.adb, live.ads,
40235         machcode.ads, make.adb, make.ads, makeusg.adb,
40236         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40237         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40238         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40239         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40240         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40241         mlib.ads, namet.adb, namet.ads, nlists.adb,
40242         nlists.ads, opt.adb, opt.ads, osint-b.adb,
40243         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40244         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40245         osint.ads, output.adb, output.ads, par-ch10.adb,
40246         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40247         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40248         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40249         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40250         par-tchk.adb, par-util.adb, par.adb, par.ads,
40251         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40252         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40253         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40254         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40255         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40256         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40257         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40258         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40259         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40260         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40261         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40262         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40263         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40264         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40265         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40266         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40267         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40268         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40269         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40270         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40271         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40272         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40273         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40274         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40275         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40276         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40277         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40278         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40279         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40280         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40281         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40282         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40283         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40284         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40285         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40286         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40287         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40288         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40289         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40290         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40291         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40292         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40293         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40294         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40295         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40296         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40297         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40298         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40299         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40300         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40301         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40302         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40303         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40304         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40305         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40306         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40307         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40308         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40309         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40310         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40311         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40312         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40313         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40314         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40315         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40316         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40317         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40318         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40319         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40320         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40321         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40322         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40323         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40324         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40325         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40326         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40327         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40328         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40329         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40330         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40331         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40332         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40333         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40334         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40335         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40336         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40337         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40338         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40339         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40340         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40341         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40342         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40343         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40344         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40345         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40346         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40347         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40348         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40349         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40350         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40351         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40352         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40353         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40354         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40355         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40356         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40357         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40358         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40359         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40360         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40361         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40362         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40363         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40364         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40365         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40366         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40367         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40368         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40369         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40370         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40371         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40372         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40373         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40374         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40375         snames.ads, sprint.adb, sprint.ads, stand.adb,
40376         stand.ads, stringt.adb, stringt.ads, style.adb,
40377         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40378         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40379         switch-m.ads, switch.adb, switch.ads, system.ads,
40380         table.adb, table.ads, targparm.adb, targparm.ads,
40381         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40382         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40383         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40384         ttypef.ads, ttypes.ads, types.adb, types.ads,
40385         uintp.adb, uintp.ads, uname.adb, uname.ads,
40386         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40387         usage.adb, usage.ads, validsw.adb, validsw.ads,
40388         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40389         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40390         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40391         formatting and other trivial changes from ACT.
40392
40393 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40394
40395         * gigi.h, utils2.c (build_constructor):
40396         Rename gnat_build_constructor. Use build_constructor.
40397         * decl.c (gnat_to_gnu_entity)
40398         * trans.c (tree_transform, pos_to_constructor, extract_values)
40399         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40400         (unchecked_convert)
40401         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40402         (fill_vms_descriptor):
40403         Update to match.
40404
40405 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40406
40407         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40408         * misc.c (gnat_tree_size): New function.
40409         (LANG_HOOKS_TREE_SIZE): Override.
40410
40411 2003-04-03  Jason Merrill  <jason@redhat.com>
40412
40413         * misc.c (gnat_adjust_rli): #if 0.
40414
40415 2003-03-31   Geert Bosch  <bosch@gnat.com>
40416
40417         PR ada/10020
40418         * link.c : Fix misspelled "const" keyword
40419
40420 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40421
40422         PR c++/7086
40423         * utils2.c: Adjust calls to put_var_into_stack.
40424
40425 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40426
40427         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40428
40429 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40430
40431         * misc.c (gnat_init): Update for new prototype.
40432
40433 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40434
40435         ada/9961
40436         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40437         warning, and fix return type for the IN_RTS && !SJLJ case.
40438
40439 2003-03-04  Tom Tromey  <tromey@redhat.com>
40440
40441         * Make-lang.in (ada.tags): New target.
40442
40443 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40444
40445         ada/9911
40446         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40447         wrapper, which name remains constant whatever underlying GCC
40448         scheme.
40449
40450         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40451         the stable interface needed for a-except.
40452
40453 2003-03-02  Andreas Jaeger  <aj@suse.de>
40454
40455         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40456         gnat_ug_wnt.texi: Regenerate.
40457
40458 2003-03-02  Laurent Guerby  <guerby@acm.org>
40459
40460         * Makefile.in (install-gnatlib): Match previous change there
40461         so it works.
40462
40463 2003-02-28  Andreas Schwab  <schwab@suse.de>
40464
40465         * Make-lang.in (install-gnatlib): Change to ada directory before
40466         running make instead of using ada/Makefile directly.
40467
40468 2003-02-18  Ben Elliston  <bje@redhat.com>
40469
40470         Part of PR ada/9406
40471         * gnat_ug.texi (Binder output file): Grammar fix.
40472
40473 2003-02-18  Ben Elliston  <bje@redhat.com>
40474
40475         PR other/7350
40476         * 5qtaprop.adb (Sleep): Fix typo in comment.
40477
40478 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40479
40480         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40481         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40482         gnat_ug_wnt.texi: Regenerate.
40483
40484 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40485
40486         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40487         be created if necessary.
40488         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40489         if necessary.  Remove erroneous and redundant gnatchop
40490         installation commands.  Test for gnatdll before attempting
40491         to install it.
40492         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40493         and gnatdll from all plausible locations.
40494
40495 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40496
40497         * utils2.c (build_unary_op): Don't check flag_volatile.
40498         * gnat_ug.texi: Remove -fvolatile from example.
40499         * gnat_ug_vxw.texi: Likewise.
40500
40501 2003-01-29  Laurent Guerby  <guerby@acm.org>
40502
40503         PR ada/8344
40504         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40505         * Makefile.in: match previous change.
40506         * Make-lang.in: match previous change.
40507
40508 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40509
40510         * 5rosinte.ads: Add SIGXCPU.
40511         * 5rtpopsp.adb: New file.
40512         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40513         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40514         specific file 5rtpopsp.adb.
40515         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40516         is likely needed for all newlib targets.
40517         * init.c: Add RTEMS specific version of __gnat_initialize().
40518
40519 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40520
40521         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40522
40523 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40524
40525         * init.c (__gnat_error_handler): Make msg const.
40526
40527         * gmem.c (convert_addresses): Move declaration ...
40528         * adaint.h: ... here.
40529         * adaint.c (convert_addresses): Adapt addrs type to match
40530         prototype.
40531
40532         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40533
40534 2003-01-24  Andreas Schwab  <schwab@suse.de>
40535
40536         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40537         size_t to avoid warning.
40538
40539 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40540
40541         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40542
40543 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40544
40545         * gnat_rm.texi: Remove RCS version number.
40546
40547         * ada-tree.h (union lang_tree_node): Add chain_next option.
40548
40549 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40550
40551         * Make-lang.in (ada.install-info, ada.install-common,
40552         ada.uninstall): Prepend $(DESTDIR) to the destination
40553         directory in all (un)installation commands.
40554         * Makefile.in (install-gnatlib, install-rts): Ditto.
40555
40556 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40557
40558         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40559         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40560         gnat_ug_wnt.texi: Regenerate.
40561
40562 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40563
40564         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40565         only.
40566         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40567         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40568         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40569         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40570         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40571         $(srcdir)/doc/include/gcc-common.texi.
40572
40573 2002-12-15   Geert Bosch  <bosch@gnat.com>
40574
40575         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40576
40577 2002-12-14   Geert Bosch  <bosch@gnat.com>
40578
40579         PR ada/5690
40580         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40581         case of a body created for a Renaming_As_Body, on which
40582         conformance checks are not performed.
40583
40584 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40585
40586         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40587         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40588         not already included.
40589         * Make-lang.in: Update dependencies.
40590
40591 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40592         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40593         solution to buffer overflow bug on GNU/Linux.
40594
40595 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40596
40597         PR ada/5856
40598         PR ada/6919
40599         * bindgen.adb: Remove all references to Public_Version.
40600         * comperr.adb: Remove all references to Public_Version and
40601         GNATPRO_Version; correct bug reporting instructions.
40602         * comperr.ads: Change to match bug box.
40603         * gnatvsn.ads: Remove all references to Public version and
40604         GNATPRO version.
40605
40606 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40607
40608         PR ada/6919
40609         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40610         GNU/Linux.
40611
40612         PR ada/6558
40613         * config-lang.in: Remove diff_excludes.
40614
40615 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40616
40617         PR ada/8358
40618         * trans.c (gnu_pending_elaboration_lists): New GC root.
40619         (build_unit_elab): Use..
40620
40621 2002-10-30   Geert Bosch  <bosch@gnat.com>
40622
40623         PR ada/6558
40624         * misc.c : Include optabs.h
40625
40626         * Make-lang.in (misc.o): Add dependency on optabs.h
40627
40628 2002-10-29   Geert Bosch  <bosch@gnat.com>
40629
40630         PR ada/6558
40631         * Make-lang.in (gnatbind): Depend on CONFIG_H
40632
40633 2002-10-29  Geert bosch  <bosch@gnat.com>
40634
40635         PR ada/6558
40636         * misc.c: Unrevert misc.c (1.13)
40637
40638 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40639
40640         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40641         maintainership comments.
40642
40643 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40644
40645         PR ada/5904
40646         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40647         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40648         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40649         7staprop.adb: Correct statements in comments about
40650         maintainership of GNAT.
40651
40652         PR ada/5904
40653         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40654         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40655         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40656         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40657         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40658         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40659         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40660         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40661         comments about maintainership of GNAT.
40662
40663         PR ada/6919 (forward port of patch for PR ada/5904)
40664         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40665         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40666         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40667         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40668         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40669         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40670         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40671         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40672         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40673         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40674         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40675         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40676         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40677         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40678         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40679         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40680         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40681         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40682         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40683         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40684         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40685         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40686         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40687         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40688         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40689         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40690         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40691         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40692         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40693         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40694         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40695         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40696         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40697         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40698         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40699         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40700         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40701         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40702         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40703         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40704         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40705         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40706         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40707         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40708         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40709         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40710         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40711         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40712         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40713         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40714         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40715         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40716         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40717         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40718         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40719         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40720         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40721         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40722         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40723         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40724         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40725         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40726         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40727         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40728         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40729         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40730         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40731         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40732         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40733         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40734         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40735         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40736         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40737         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40738         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40739         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40740         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40741         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40742         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40743         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40744         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40745         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40746         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40747         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40748         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40749         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40750         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40751         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40752         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40753         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40754         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40755         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40756         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40757         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40758         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40759         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40760         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40761         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40762         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40763         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40764         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40765         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40766         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40767         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40768         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40769         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40770         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40771         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40772         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40773         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40774         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40775         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40776         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40777         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40778         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40779         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40780         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40781         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40782         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40783         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40784         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40785         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40786         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40787         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40788         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40789         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40790         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40791         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40792         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40793         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40794         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40795         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40796         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40797         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40798         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40799         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40800         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40801         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40802         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40803         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40804         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40805         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40806         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40807         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40808         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40809         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40810         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40811         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40812         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40813         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40814         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40815         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40816         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40817         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40818         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40819         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40820         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40821         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40822         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40823         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40824         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40825         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40826         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40827         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40828         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40829         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40830         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40831         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40832         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40833         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40834         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40835         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40836         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40837         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40838         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40839         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40840         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40841         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40842         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40843         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40844         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40845         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40846         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40847         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40848         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40849         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40850         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40851         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40852         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40853         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40854         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40855         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40856         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40857         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40858         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40859         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40860         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40861         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40862         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40863         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40864         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40865         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40866         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40867         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40868         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40869         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40870         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40871         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40872         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40873         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40874         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40875         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40876         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40877         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40878         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40879         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40880         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40881         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40882         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40883         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40884         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40885         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40886         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40887         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40888         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40889         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40890         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40891         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40892         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40893         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40894         stringt.ads stringt.h style.adb style.ads stylesw.adb
40895         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40896         table.adb table.ads targparm.adb targparm.ads targtyps.c
40897         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40898         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40899         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40900         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40901         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40902         usage.ads utils.c utils2.c validsw.adb validsw.ads
40903         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40904         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40905         xtreeprs.adb: Correct statements in comments about maintainership
40906         of GNAT.
40907
40908 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40909
40910         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40911         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40912         * gnatvsn.ads: Gnat_Version_String is now a function.
40913         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40914         copy the C version_string into a String and return it.
40915         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40916         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40917         Remove pragma Ident (Gnat_Version_String).  If this was the
40918         sole use of package Gnatvsn, remove the with statement too.
40919         * gnat1drv.adb: Tweak -gnatv output.
40920
40921 2002-09-17  Richard Henderson  <rth@redhat.com>
40922
40923         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40924         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40925         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40926         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40927         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40928         and real_2expN instead of a loop.
40929         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40930         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40931
40932 2002-08-25  Andre Leis  <a.leis@gmx.net>
40933             David Billinghurst  <David.Billinghurst@riotinto.com>
40934
40935         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40936
40937 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40938
40939         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40940         Remove $(CONFIG_H) dependency.
40941
40942 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40943
40944         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40945
40946 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40947
40948         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40949         xmalloc/strcpy.
40950         * misc.c (gnat_decode_option): Likewise.
40951
40952 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40953
40954         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40955         function approach did not work well because of a side effect (the
40956         function call could reallocate the table which was being indexed
40957         using its result). Fixes ada/4851. [RESURRECTED]
40958
40959 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40960
40961         * ada/utils.c (builtin_function): Accept an additional parameter.
40962
40963 2002-06-28  Andreas Jaeger  <aj@suse.de>
40964
40965         PR ada/7144
40966         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40967         <adi@thur.de>.
40968
40969 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40970
40971         * Makefile.in (SHELL): Set to @SHELL@.
40972
40973 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40974
40975         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40976         array size calculation.
40977
40978 2002-06-04  Andreas Jaeger  <aj@suse.de>
40979
40980         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40981         patch.
40982
40983 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40984
40985         Merge from pch-branch:
40986
40987         * config-lang.in (gtfiles): Add ada-tree.h.
40988         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40989         (SET_TYPE_MODULUS): New.
40990         (SET_TYPE_INDEX): New.
40991         (SET_TYPE_DIGITS_VALUE): New.
40992         (SET_TYPE_RM_SIZE): New.
40993         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40994         (SET_TYPE_ADA_SIZE): New.
40995         (SET_TYPE_ACTUAL_BOUNDS): New.
40996         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40997         (SET_DECL_ORIGINAL_FIELD): New.
40998         (TREE_LOOP_ID): Correct typo.
40999         * decl.c: Use new macros.
41000         * utils.c: Include debug.h, use new macros.
41001         * utils2.c: Use new macros.
41002
41003         * ada-tree.h: Update all macros for new tree description.
41004         (struct tree_loop_id): New.
41005         (union lang_tree_node): New.
41006         (struct lang_decl): New.
41007         (struct lang_type): New.
41008         * misc.c (gnat_mark_tree): Delete.
41009         (LANG_HOOKS_MARK_TREE): Delete.
41010         * trans.c (tree_transform): No longer any need to cast
41011         for TREE_LOOP_ID.
41012
41013         * utils.c (struct language_function): New dummy structure.
41014
41015         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41016         (misc.o): Likewise.
41017         (utils.o): Likewise; also gtype-ada.h.
41018         * Make-lang.in (gnat1): Add dependency on s-gtype.
41019         (gnatbind): Add dependency on $(CONFIG_H).
41020         * utils.c: Correct last #include.
41021         (stuct e_stack): Remove unnecessary 'static'.
41022         (mark_e_stack): Remove unused prototype.
41023
41024         * scn-nlit.adb: Remove whitespace after version number to
41025         keep lines under 80 chars.
41026         * snames.adb: Likewise.
41027         * treepr.ads: Likewise.
41028
41029         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41030         (misc.o): Likewise.
41031         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41032         * config-lang.in (gtfiles): New.
41033         * decl.c: Use gengtype for roots.
41034         * gigi.h: Use gengtype for roots.
41035         * trans.c: Use gengtype for roots.
41036         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
41037
41038 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
41039
41040         * misc.c (gnat_init): Adjust setting of internal_error_function.
41041
41042 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
41043
41044         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41045         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41046         gnat_ug_wnt.texi: Regenerate.
41047
41048 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
41049
41050         * 5ntaprop.adb (with System.OS_Primitives): Remove.
41051
41052         * cstreams.c (max_path_len): Move from here ...
41053         * adaint.c (__gnat_max_path_len): ... to here.
41054         * adaint.c (__gnat_max_path_len): Declare.
41055         * g-dirope.adb (Max_Path): Adjust.
41056         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41057         * i-cstrea.ads (max_path_len): Adjust.
41058         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41059         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41060
41061         * Makefile.in, Make-lang.in: Documentation is now built in
41062         Make-lang.in.  Store Info and generated Texinfo files in the
41063         source directory.
41064         * gnat_ug.texi: Remove CVS keywords, correct version number.
41065         Set file name correctly.
41066
41067         * gnat_ug_*.texi: Add.
41068         * .cvsignore: Ignore generated Texinfo files.
41069
41070 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
41071
41072         * ada.h: Add MI guard macro.
41073         (SUBTYPE): Define constants with an anonymous enum, not static
41074         const variables.
41075         (IN): Cast constants to appropriate type before use.
41076
41077 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
41078
41079         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41080         (experimental)".
41081
41082 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41083
41084         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41085         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41086         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41087         (ALL_ADA_CFLAGS): Likewise.
41088         (ADA_INCLUDES): Likewise.
41089         Adapt for new working dir.
41090         (GNATBIND): Use Makefile.in version.
41091         (.SUFFIXES): Copy from Makefile.in.
41092         (ada-warn): Define.
41093         (.adb.o, .ads.o): Copy from Makefile.in.
41094         Added $(OUTPUT_OPTION).
41095         (GNAT1_C_OBJS): Moved from Makefile.in.
41096         Prefix with ada subdir.
41097         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41098         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41099         Adapt for new working dir.
41100         (EXTRA_GNATBIND_OBJS): Likewise.
41101         (ADA_BACKEND): Moved from Makefile.in.
41102         Renamed to avoid conflict with global BACKEND.
41103         Use that one.
41104         (TARGET_ADA_SRCS): Moved from Makefile.in.
41105         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41106         Use ADA_BACKEND.
41107         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41108         (ada_extra_files): Moved from Makefile.in.
41109         Prefix with ada subdir.
41110         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41111         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41112         (ada/nmake.ads): Likewise.
41113         (update-sources): Moved from Makefile.in.
41114         Prefix with ada subdir.
41115         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41116         (ADA_TREE_H): Likewise.
41117         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41118         (ada/memtrack.o): Likewise.
41119         (ada/adadecode.o): Likewise.
41120         Update dependencies.
41121         (ada/adaint.o): New.
41122         (ada/argv.o): Moved from Makefile.in.
41123         Prefix with ada subdir.
41124         Update dependencies.
41125         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41126         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41127         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41128         Prefix with ada subdir.
41129         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41130         (GNAT DEPENDENCIES): Regenerate.
41131         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41132         toplevel Makefile.in.
41133         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41134         (TARGET_ADA_SRCS): Removed.
41135         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41136         (GNATBIND_OBJS): Likewise.
41137         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41138         (BACKEND): Removed.
41139         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41140         (TREE_H): Likewise.
41141         (ada_extra_files): Likewise.
41142         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41143         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41144         (update-sources): Likewise.
41145         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41146         (ADA_TREE_H): Likewise.
41147         (adadecoce.o): Likewise.
41148         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41149         (GNAT DEPENDENCIES): Likewise.
41150
41151 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41152
41153         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41154         * Makefile.in: Likewise.
41155
41156 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41157
41158         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41159         Restore $(CONFIG_H) and prefix.o dependencies.
41160         (ada.stage[1-4]): Depend on stage?-start.
41161
41162         * Makefile.in (b_gnatb.c): Depend on interfac.o.
41163
41164 2002-05-02  Jim Wilson  <wilson@redhat.com>
41165
41166         * utils.c (finish_record_type): Change record_size to record_type.
41167
41168 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
41169
41170         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41171         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41172         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41173
41174 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41175
41176         * misc.c (gnat_parse_file): Update.
41177
41178 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41179
41180         * misc.c (gnat_init): Don't set lang_attribute_common.
41181
41182 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
41183
41184         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41185
41186 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
41187
41188         * gnat_ug.texi: New file.
41189
41190         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
41191         instead of gfdl.texi
41192
41193         * xgnatug.adb, ug_words: New files.
41194
41195         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
41196         gnat_rm and gnat-style manuals.
41197
41198 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41199
41200         * gigi.h (incomplete_type_error): Remove.
41201         * utils.c (incomplete_type_error): Remove.
41202
41203 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
41204
41205         * trans.c (tree_transform): Add has_scope argument to
41206         expand_start_stmt_expr.
41207
41208 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41209
41210         * gigi.h (truthvalue_conversion): Rename.
41211         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41212         * trans.c (tree_transform): Update.
41213         * utils2.c (truthvalue_conversion): Rename, update.
41214         (build_binary_op, build_unary_op): Update.
41215
41216 2002-04-04  Laurent Guerby  <guerby@acm.org>
41217
41218         * make.adb: Implement -margs, remove restriction about file name placement.
41219         * makeusg.adb: Documentation update.
41220         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41221         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41222
41223 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41224
41225         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41226         (builtin_function): Similarly.
41227
41228 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41229
41230         * decl.c (gnat_to_gnu_entity): Update.
41231         * gigi.h (mark_addressable): Rename.
41232         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41233         * trans.c (tree_transform): Update.
41234         * utils.c (create_var_decl): Update.
41235         * util2.c (build_binary_op, build_unary_op,
41236         fill_vms_descriptor): Update.
41237         (mark_addressable): Rename, update.
41238
41239 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41240
41241         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41242         Rename.
41243         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41244         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41245         * trans.c (tree_transform, convert_with_check): Update.
41246         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41247         Rename.
41248
41249 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
41250
41251         * gigi.h (finish_incomplete_decl): Rename.
41252         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41253         * utils.c (gnat_init_decl_processing): Don't set hook.
41254         (finish_incomplete_decl): Rename.
41255
41256 2002-03-29  Andreas Schwab  <schwab@suse.de>
41257
41258         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41259         directory.
41260
41261 2001-03-28  Robert Dewar  <dewar@gnat.com>
41262
41263         * checks.ads:
41264         (Remove_Checks): New procedure
41265
41266         * checks.adb:
41267         (Remove_Checks): New procedure
41268
41269         * exp_util.adb:
41270         Use new Duplicate_Subexpr functions
41271         (Duplicate_Subexpr_No_Checks): New procedure
41272         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41273         (Duplicate_Subexpr): Restore original form (checks duplicated)
41274         (Duplicate_Subexpr): Call Remove_Checks
41275
41276         * exp_util.ads:
41277         (Duplicate_Subexpr_No_Checks): New procedure
41278         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41279         Add 2002 to copyright notice
41280
41281         * sem_util.adb: Use new Duplicate_Subexpr functions
41282
41283         * sem_eval.adb:
41284         (Eval_Indexed_Component): This is the place to call
41285         Constant_Array_Ref and to replace the value. We simply merge
41286         the code of this function in here, since it is now no longer
41287         used elsewhere. This fixes the problem of the back end not
41288         realizing we were clever enough to see that this was
41289         constant.
41290         (Expr_Val): Remove call to Constant_Array_Ref
41291         (Expr_Rep_Val): Remove call to Constant_Array_Ref
41292         Minor reformatting
41293         (Constant_Array_Ref): Deal with string literals (patch
41294         suggested by Zack Weinberg on the gcc list)
41295
41296 2001-03-28  Ed Schonberg  <schonber@gnat.com>
41297
41298         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41299         Duplicate_Subexpr_Move_Checks.
41300
41301         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41302         Duplicate_Subexpr_Move_Checks.
41303
41304         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41305         value of array exists before retrieving it (it may a private
41306         protected component in a function).
41307
41308 2002-03-28   Geert Bosch  <bosch@gnat.com>
41309
41310         * prj-pp.adb : New file.
41311
41312         * prj-pp.ads : New file.
41313
41314 2002-03-28  Andreas Jaeger  <aj@suse.de>
41315
41316         * Makefile.in (stamp-sdefault): Fix path for Makefile.
41317
41318 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41319
41320         * misc.c (gnat_expand_expr): Move prototype.
41321
41322 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41323
41324         * misc.c (insert_default_attributes): Remove.
41325
41326 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41327
41328         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41329         (gnat_init): Don't set hook.
41330         (gnat_expand_expr): Fix prototype.
41331
41332 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41333
41334         * misc.c (ggc_p): Remove.
41335
41336 2002-03-27  Geert Bosch  <bosch@gnat.com>
41337
41338         * prj-makr.ads, prj-makr.adb : New files.
41339
41340 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
41341
41342         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41343         (lang_mark_tree): Make static, rename.
41344
41345 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41346
41347         * misc.c (maybe_build_cleanup): Remove.
41348
41349 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41350
41351         * gigi.h (yyparse): Remove.
41352
41353 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
41354
41355         From Ben Brosgol  <brosgol@gnat.com>
41356         * gnat_rm.texi: Sync with ACT version.
41357
41358 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
41359
41360         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41361         (gnat_init): Remove old hook.
41362
41363 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
41364
41365         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41366         (yyparse): Rename gnat_parse_file.
41367
41368 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
41369
41370         Delete all lines containing "$Revision:".
41371         * xeinfo.adb: Don't look for revision numbers.
41372         * xnmake.adb: Likewise.
41373         * xsinfo.adb: Likewise.
41374         * xsnames.adb: Likewise.
41375         * xtreeprs.adb: Likewise.
41376
41377 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41378
41379         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41380         gnat_tree_code_name): Delete.
41381         (tree_code_type, tree_code_length, tree_code_name): Define.
41382         (gnat_init): Don't try to copy into the various tree_code
41383         arrays.
41384
41385 2002-03-11  Richard Henderson  <rth@redhat.com>
41386
41387         * Makefile.in (.NOTPARALLEL): Add fake tag.
41388
41389 2002-03-07  Geert Bosch  <bosch@gnat.com>
41390
41391         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41392         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41393         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41394         switch-m.adb, switch-m.ads : New files.
41395
41396 2002-03-07  Geert Bosch  <bosch@gnat.com>
41397
41398         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41399         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41400         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41401         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41402         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41403         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41404         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41405         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41406         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41407         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41408         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41409         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41410         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41411         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41412         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41413         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41414         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41415         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41416         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41417         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41418         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41419         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41420         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41421         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41422         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41423         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41424         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41425         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41426         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41427         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41428         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41429         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41430         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41431         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41432         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41433         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41434         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41435         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41436         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41437         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41438         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41439         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41440         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41441         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41442         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41443         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41444         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41445         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41446         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41447         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41448         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41449         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41450         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41451         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41452         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41453         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41454         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41455         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41456         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41457         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41458         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41459         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41460         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41461         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41462         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41463         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41464         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41465         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41466         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41467         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41468         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41469         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41470         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41471         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41472         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41473         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41474         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41475         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41476         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41477         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41478         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41479         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41480         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41481         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41482         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41483         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41484         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41485         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41486         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41487         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41488         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41489         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41490         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41491         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41492         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41493         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41494         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41495
41496         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41497         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41498         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41499         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41500
41501         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41502         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41503
41504         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41505         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41506
41507         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41508         from mdllfile.ad[bs] and mdlltool.ad[bs]
41509
41510 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41511
41512         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41513         lieu of explicit sizeof/sizeof.
41514
41515 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41516
41517         * misc.c (copy_lang_decl): Remove.
41518
41519 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41520
41521         * misc.c: Delete traditional-mode-related code copied from the
41522         C front end but not used, or used only to permit the compiler
41523         to link.
41524
41525 2002-02-07  Richard Henderson  <rth@redhat.com>
41526
41527         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41528         * adaint.h (__gnat_to_gm_time): Update prototype.
41529
41530 2002-01-30  Richard Henderson  <rth@redhat.com>
41531
41532         * trans.c (tree_transform) [N_Loop_Statement]: Use
41533         expand_exit_loop_top_cond.
41534
41535 2001-12-23  Richard Henderson  <rth@redhat.com>
41536
41537         * utils.c (end_subprog_body): Push GC context around
41538         rest_of_compilation for nested functions.
41539
41540 2001-12-23  Richard Henderson  <rth@redhat.com>
41541
41542         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41543
41544 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41545
41546         * gnat-style.texi (Declarations and Types): Remove ancient style
41547         rule which was mandated by code generation issues.
41548
41549         * gnat-style.texi (header): Add @dircategory, @direntry.
41550         (title page): Remove date.
41551         (general) Add @./@: where approriate, and two spaces after the
41552         full stop at the end of a sentence.  Use @samp markup when
41553         referring concrete lexical entities (keywords, attribute names
41554         etc.), and @syntax for ARM grammar elements. Use @r for English
41555         text in comments.  Use @emph for emphasis.  Change "if-statements"
41556         etc. to "if statements" (without @samp). Break long lines.  Make
41557         casing of section names consistent.
41558         (Identifiers): Use @samp markup for variable names.
41559         (Comments): Use @samp markup for comment characters. Line-end
41560         comments may follow any Ada code, not just statements.  Fix
41561         misspelling of "Integer" as "integer".
41562         (Loop statements): Do not use variable name "I", use "J".
41563         (Subprogram Declarations): Document alignment.
41564         (Subprogram Bodies, Block statements): Document empty line before
41565         "begin".
41566
41567 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41568
41569         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41570         function approach did not work well because of a side effect (the
41571         function call could reallocate the table which was being indexed
41572         using its result). Fixes ada/4851.
41573
41574 2001-12-19  Robert Dewar  <dewar@gnat.com>
41575
41576         * bindgen.adb: Minor reformatting
41577
41578         * cstand.adb: Minor reformatting
41579
41580         * fmap.adb: Minor reformatting
41581         Change name from Add for Add_To_File_Map (Add is much too generic)
41582         Change Path_Name_Of to Mapped_Path_Name
41583         Change File_Name_Of to Mapped_File_Name
41584         Fix copyright dates in header
41585
41586         * fmap.ads:
41587         Change name from Add for Add_To_File_Map (Add is much too generic)
41588         Change Path_Name_Of to Mapped_Path_Name
41589         Change File_Name_Of to Mapped_File_Name
41590         Fix copyright dates in header
41591
41592         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41593         Add use clause for Fmap.
41594
41595         * make.adb: Minor reformatting
41596
41597         * osint.adb: Minor reformatting.  Change of names in Fmap.
41598         Add use clause for Fmap.
41599
41600         * prj-env.adb: Minor reformatting
41601
41602         * prj-env.ads: Minor reformatting
41603
41604         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41605         error found (there were odd exceptions to this general rule in
41606         -gnatec/-gnatem processing)
41607
41608 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41609
41610         * raise.c (__gnat_eh_personality): Exception handling personality
41611         routine for Ada.  Still in rough state, inspired from the C++ version
41612         and still containing a bunch of debugging artifacts.
41613         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41614         inspired from the C++ library.
41615
41616         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41617         exception handling integration.
41618
41619 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41620
41621         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41622         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41623         (HIE_OBJS): Add s-fat*.o
41624         (RAVEN_SOURCES): Remove files that are no longer required. Add
41625         interrupt handling files.
41626         (RAVEN_MOD): Removed, no longer needed.
41627
41628 2001-12-19  Robert Dewar  <dewar@gnat.com>
41629
41630         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41631         Add 2001 to copyright date
41632
41633         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41634         need to force universal inlining for these cases.
41635
41636 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41637
41638         * s-taprob.adb: Minor clean ups so that this unit can be used in
41639         Ravenscar HI.
41640
41641         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41642         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41643
41644 2001-12-19  Vincent Celier  <celier@gnat.com>
41645
41646         * prj-tree.ads (Project_Node_Record): Add comments for components
41647         Pkg_Id and Case_Insensitive.
41648
41649 2001-12-19  Pascal Obry  <obry@gnat.com>
41650
41651         * g-socket.adb: Minor reformatting. Found while reading code.
41652
41653 2001-12-19  Robert Dewar  <dewar@gnat.com>
41654
41655         * prj-tree.ads: Minor reformatting
41656
41657 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41658
41659         * config-lang.in (diff_excludes): Remove.
41660
41661 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41662
41663         * sem_res.adb (Resolve_Selected_Component): do not generate a
41664         discriminant check if the selected component is a component of
41665         the argument of an initialization procedure.
41666
41667         * trans.c (tree_transform, case of arithmetic operators): If result
41668         type is private, the gnu_type is the base type of the full view,
41669         given that the full view itself may be a subtype.
41670
41671 2001-12-17  Robert Dewar  <dewar@gnat.com>
41672
41673         * sem_res.adb: Minor reformatting
41674
41675         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41676         parameter in call to Machine (unknown horrible effects from this
41677         omission).
41678
41679         * urealp.h: Add definition of Round_Even for call to Machine
41680         Add third parameter for Machine
41681
41682 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41683
41684         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41685         predefined units in No_Run_Time mode.
41686
41687 2001-12-17  Richard Kenner  <kenner@gnat.com>
41688
41689         * misc.c (insn-codes.h): Now include.
41690
41691 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41692
41693         * a-except.adb: Preparation work for future integration of the GCC 3
41694         exception handling mechanism
41695         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41696         to factorize previous code sequences and make them externally callable,
41697         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41698         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41699         Use the new notification routines.
41700
41701 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41702
41703         * prj-tree.ads (First_Choice_Of): Document the when others case
41704
41705 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41706
41707         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41708         HI-E mode, in order to support Ravenscar profile properly.
41709
41710         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41711         mode on 32 bits targets.
41712
41713 2001-12-17  Vincent Celier  <celier@gnat.com>
41714
41715         * fmap.adb: Initial version.
41716
41717         * fmap.ads: Initial version.
41718
41719         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41720         If search is successfully done, add to mapping.
41721
41722         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41723
41724         * make.adb:
41725         (Gnatmake): Add new local variable Mapping_File_Name.
41726          Create mapping file when using project file(s).
41727          Delete mapping file before exiting.
41728
41729         * opt.ads (Mapping_File_Name): New variable
41730
41731         * osint.adb (Find_File): Use path name found in mapping, if any.
41732
41733         * prj-env.adb (Create_Mapping_File): New procedure
41734
41735         * prj-env.ads (Create_Mapping_File): New procedure.
41736
41737         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41738         (Mapping_File)
41739
41740         * usage.adb: Add entry for new switch -gnatem.
41741
41742         * Makefile.in: Add dependencies for fmap.o.
41743
41744 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41745
41746         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41747         is a package instantiation rewritten as a package body.
41748         (Install_Withed_Unit): Undo previous change, now redundant.
41749
41750 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41751
41752         * layout.adb:
41753         (Compute_Length): Move conversion to Unsigned to callers.
41754         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41755         Compute_Length and Determine_Range.
41756         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41757         Compute_Length and Determine_Range.
41758         Above changes fix problem with length computation for supernull arrays
41759         where Max (Len, 0) wasn't getting applied due to the Unsigned
41760         conversion used by Compute_Length.
41761
41762 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41763
41764         * rtsfind.ads:
41765         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41766          System.Secondary_Stack.
41767         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41768          in HI-E mode.
41769         Remove unused entity RE_Exception_Data.
41770
41771         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41772
41773         * rident.ads (No_Secondary_Stack): New restriction.
41774
41775 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41776
41777         * gnat_rm.texi: Fix minor typos. Found while reading the section
41778         regarding "Bit_Order Clauses" that was sent to a customer.
41779         Very interesting documentation!
41780
41781 2001-12-17  Robert Dewar  <dewar@gnat.com>
41782
41783         * sem_case.adb (Choice_Image): Avoid creating improper character
41784         literal names by using the routine Set_Character_Literal_Name. This
41785         fixes bombs in certain error message cases.
41786
41787 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41788
41789         * a-reatim.adb: Minor reformatting.
41790
41791 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41792
41793         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41794         case where the formal is an extension of another formal in the current
41795         unit or in a parent generic unit.
41796
41797 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41798
41799         * s-tposen.adb: Update comments.  Minor reformatting.
41800         Minor code clean up.
41801
41802         * s-tarest.adb: Update comments.  Minor code reorganization.
41803
41804 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41805
41806         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41807         when Java_VM.
41808
41809 2001-12-17  Robert Dewa  <dewar@gnat.com>
41810
41811         * exp_attr.adb: Minor reformatting
41812
41813 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41814
41815         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41816         derivations nested within a child unit: verify that the parent
41817         type is declared in an outer scope.
41818
41819 2001-12-17  Robert Dewar  <dewar@gnat.com>
41820
41821         * sem_ch12.adb: Minor reformatting
41822
41823 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41824
41825         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41826         warning if current unit is a predefined one, from which bodies may
41827         have been deleted.
41828
41829 2001-12-17  Robert Dewar  <dewar@gnat.com>
41830
41831         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41832         Fix header format. Add 2001 to copyright date.
41833
41834         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41835         which caused CE during compilation if checks were enabled.
41836
41837 2001-12-17  Vincent Celier  <celier@gnat.com>
41838
41839         * make.adb:
41840         (Switches_Of): New function
41841         (Test_If_Relative_Path): New procedure
41842         (Add_Switches): Use new function Switches_Of
41843         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41844         When using a project file, test if there are any relative
41845         search path. Fail if there are any.
41846         (Gnatmake): Only add switches for the primary directory when not using
41847         a project file. When using a project file, change directory to the
41848         object directory of the main project file. When using a project file,
41849         test if there are any relative search path. Fail if there are any.
41850         When using a project file, fail if specified executable is relative
41851         path with directory information, and prepend executable, if not
41852         specified as an absolute path, with the exec directory.  Make sure
41853         that only one -o switch is transmitted to the linker.
41854
41855         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41856
41857         * prj-nmsc.adb:
41858         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41859         when using a non standard naming scheme.
41860         (Check_Ada_Naming_Scheme): Make sure that error messages
41861         do not raise exceptions.
41862         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41863         (Language_Independent_Check): Check the exec directory.
41864
41865         * prj.adb (Project_Empty): Add new component Exec_Directory
41866
41867         * prj.ads:
41868         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41869         (Project_Data): Add component Exec_Directory
41870
41871         * snames.adb: Updated to match snames.ads revision 1.215
41872
41873         * snames.ads: Added Exec_Dir
41874
41875 2001-12-17  Robert Dewar  <dewar@gnat.com>
41876
41877         * make.adb: Minor reformatting
41878
41879         * prj-nmsc.adb: Minor reformatting
41880
41881         * snames.adb: Updated to match snames.ads
41882
41883         * snames.ads: Alphebetize entries for project file
41884
41885 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41886
41887         * trans.c (process_freeze_entity): Do nothing if the entity is a
41888         subprogram that was already elaborated.
41889
41890 2001-12-17  Richard Kenner  <kenner@gnat.com>
41891
41892         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41893         and Esize if object is referenced via pointer.
41894
41895 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41896
41897         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41898         is discrete before analyzing choices.
41899
41900 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41901
41902         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41903         containing the name of the Ada Main Program. This string is mainly
41904         intended for the debugger.
41905         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41906
41907 2001-12-17  Robert Dewar  <dewar@gnat.com>
41908
41909         * ali.adb: Set new Dummy_Entry field in dependency entry
41910
41911         * ali.ads: Add Dummy_Entry field to source dependency table
41912
41913         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41914
41915         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41916
41917         * lib-writ.ads: Document dummy D lines for missing files.
41918
41919         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41920
41921 2001-12-17  Robert Dewar  <dewar@gnat.com>
41922
41923         * ali.adb: Type reference does not reset current file.
41924
41925         * ali.adb: Recognize and scan renaming reference
41926
41927         * ali.ads: Add spec for storing renaming references.
41928
41929         * lib-xref.ads: Add documentation for handling of renaming references
41930
41931         * lib-xref.adb: Implement output of renaming reference.
41932
41933         * checks.adb:
41934         (Determine_Range): Document local variables
41935         (Determine_Range): Make sure Hbound is initialized. It looks as though
41936          there could be a real problem here with an uninitialized reference
41937          to Hbound, but no actual example of failure has been found.
41938
41939 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41940
41941         * g-socket.ads:
41942         Fix comment of Shutdown_Socket and Close_Socket. These functions
41943         should not fail silently because if they are called twice, this
41944         probably means that there is a race condition in the user program.
41945         Anyway, this behaviour is consistent with the rest of this unit.
41946         When an error occurs, an exception is raised with the error message
41947         as exception message.
41948
41949 2001-12-17  Robert Dewar  <dewar@gnat.com>
41950
41951         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41952         that it happens before modification of Sloc values for -gnatD.
41953
41954         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41955         so that it happens before modification of Sloc values for -gnatD.
41956
41957         * switch.adb: Minor reformatting
41958
41959 2001-12-15  Richard Henderson  <rth@redhat.com>
41960
41961         * sem_ch7.adb: Wrap comment.
41962
41963 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41964
41965         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41966         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41967         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41968         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41969         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41970         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41971         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41972         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41973         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41974         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41975         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41976         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41977         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41978         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41979         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41980         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41981         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41982         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41983         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41984         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41985         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41986         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41987         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41988         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41989         spelling errors.
41990
41991 2001-12-14  Vincent Celier  <celier@gnat.com>
41992
41993         * osint.adb(Create_Debug_File): When an object file is specified,
41994         put the .dg file in the same directory as the object file.
41995
41996 2001-12-14  Robert Dewar  <dewar@gnat.com>
41997
41998         * osint.adb: Minor reformatting
41999
42000         * lib-xref.adb (Output_Instantiation): New procedure to generate
42001         instantiation references.
42002
42003         * lib-xref.ads: Add documentation of handling of generic references.
42004
42005         * ali.adb (Read_Instantiation_Ref): New procedure to read
42006         instantiation references
42007
42008         * ali.ads: Add spec for storing instantiation references
42009
42010         * bindusg.adb: Minor reformatting
42011
42012         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42013
42014         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42015
42016         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42017
42018         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42019
42020         * csets.ads:
42021         Fix header format
42022         Add 2001 to copyright date
42023         Add entry for Latin-5 (Cyrillic ISO-8859-5)
42024
42025 2001-12-14  Matt Gingell  <gingell@gnat.com>
42026
42027         * adaint.c: mktemp is a macro on Lynx and can not be used as an
42028         expression.
42029
42030 2001-12-14  Richard Kenner  <kenner@gnat.com>
42031
42032         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42033         if operand is CONSTRUCTOR.
42034
42035 2001-12-14  Ed Schonberg  <schonber@gnat.com>
42036
42037         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42038         before emiting check on right-hand side, so that exception information
42039         is correct.
42040
42041 2001-12-14  Richard Kenner  <kenner@gnat.com>
42042
42043         * utils.c (create_var_decl): Throw away initializing expression
42044         if just annotating types and non-constant.
42045
42046 2001-12-14  Vincent Celier  <celier@gnat.com>
42047
42048         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42049         Default_Ada_...
42050
42051         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42052         Remove functions.
42053         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42054
42055         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42056         Remove functions.
42057         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42058
42059 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
42060
42061         * ChangeLog: Remove piece of diff output.
42062
42063 2001-12-14  Geert Bosch  <bosch@gnat.com>
42064
42065         * config-lang.in: Update copyright notice
42066
42067         * layout.adb: Remove commented out code.
42068
42069         * mdllfile.ads: Update copyright notice. Fix header format.
42070
42071         * sem_case.ads: Likewise.
42072
42073         * sem_ch3.adb: Minor reformatting.
42074
42075 2001-12-12  Geert Bosch  <bosch@gnat.com>
42076
42077         * freeze.ads: Update copyright date.
42078
42079         * g-comlin.ads: Minor reformatting.
42080
42081         * gnat-style.texi: Fix typo.
42082
42083 2001-12-12  Geert Bosch  <bosch@gnat.com>
42084
42085         *  einfo.h: Regenerate.
42086
42087 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42088
42089         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42090         on known node types, rather than untyped fields. Further cleanups.
42091
42092 2001-12-12  Robert Dewar  <dewar@gnat.com>
42093
42094         * sem_ch12.adb:
42095         (Save_Entity_Descendant): Minor comment update.
42096         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42097          of an N_Attribute_Reference node. As per note below, this does not
42098         eliminate need for Associated_Node in attribute ref nodes.
42099         (Associated_Node): Documentation explicitly mentions attribute
42100         reference nodes, since this field is used in such nodes.
42101
42102         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42103
42104 2001-12-12  Robert Dewar  <dewar@gnat.com>
42105
42106         * s-stalib.adb: Add more comments on with statements being needed
42107
42108         * par-ch12.adb: Minor reformatting
42109
42110         * prj-dect.ads: Fix copyright header
42111
42112         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42113         inputs fit in 32 bits, but the result still overflows.
42114
42115         * s-fatgen.ads: Minor comment improvement
42116
42117 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42118
42119         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42120         formal derived type, look for an inherited component from the full
42121         view of the parent, if any.
42122
42123 2001-12-12  Robert Dewar  <dewar@gnat.com>
42124
42125         * checks.ads (Apply_Alignment_Check): New procedure.
42126
42127         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42128         ensure that the alignment of objects with address clauses is
42129         appropriate, and raise PE if not.
42130
42131         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42132         Exp_Pakd.Known_Aligned_Enough
42133
42134         * mdllfile.ads: Minor reformatting
42135
42136         * mlib-fil.ads: Minor reformatting
42137
42138 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42139
42140         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42141         fix to any component reference if enclosing record has non-standard
42142         representation.
42143
42144 2001-12-12  Vincent Celier  <celier@gnat.com>
42145
42146         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42147         Iteration
42148
42149 2001-12-12  Ed Schonberg  <schonber@gnat.com>
42150
42151         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42152         sem_attr.
42153
42154 2001-12-12  Robert Dewar  <dewar@gnat.com>
42155
42156         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42157
42158 2001-12-12  Emmanuel Briot  <briot@gnat.com>
42159
42160         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42161         and it adds dependencies to system.io.
42162
42163 2001-12-12  Pascal Obry  <obry@gnat.com>
42164
42165         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42166         variable name.
42167
42168 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42169
42170         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42171         that is the parent of other generics, the instance body replaces the
42172         instance node.  Retrieve the instance of the spec, which is the one
42173         that is visible in clients and within the body.
42174
42175 2001-12-11  Vincent Celier  <celier@gnat.com>
42176
42177         * gnatmain.adb: Initial version.
42178
42179         * gnatmain.ads: Initial version.
42180
42181         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42182
42183         * snames.adb: Updated to match snames.ads.
42184
42185         * snames.ads: Added Gnatstub.
42186
42187 2001-12-11  Vincent Celier  <celier@gnat.com>
42188
42189         * prj-attr.adb (Initialization_Data): Change name from
42190         Initialisation_Data.
42191
42192 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42193
42194         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42195         + and * applied to backslashed expressions like \r.
42196
42197 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
42198
42199         * g-os_lib.ads: String_List type added, Argument_List type is now
42200         subtype of String_List.
42201
42202 2001-12-11  Robert Dewar  <dewar@gnat.com>
42203
42204         * g-os_lib.ads: Change copyright to FSF
42205         Add comments for String_List type
42206
42207 2001-12-11  Vincent Celier  <celier@gnat.com>
42208
42209         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42210         string to the buffer).
42211
42212 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42213
42214         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42215         sem_attr.
42216
42217         * sem_attr.adb: Simplify previous fix for Address.
42218         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42219         to avoid anomalies where the bound of the type appears to raise
42220         constraint error.
42221
42222 2001-12-11  Robert Dewar  <dewar@gnat.com>
42223
42224         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42225         handled.
42226
42227 2001-12-11  Ed Schonber   <schonber@gnat.com>
42228
42229         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42230         renamed unit before checking for recursive instantiations.
42231
42232 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42233
42234         * prj.ads: Add comments for some of the fields.
42235
42236 2001-12-11  Robert Dewar  <dewar@gnat.com>
42237
42238         * lib-xref.adb (Output_Refs): Don't output type references outside
42239         the main unit if they are not otherwise referenced.
42240
42241 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42242
42243         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42244         code and diagnose additional illegal uses
42245
42246         * sem_util.adb (Is_Object_Reference): An indexed component is an
42247         object only if the prefix is.
42248
42249 2001-12-11  Vincent Celier  <celier@gnat.com>
42250
42251         * g-diopit.adb: Initial version.
42252
42253         * g-diopit.ads: Initial version.
42254
42255         * g-dirope.adb:
42256         (Expand_Path): Avoid use of Unbounded_String
42257         (Find, Wildcard_Iterator): Moved to child package Iteration
42258
42259         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42260
42261 2001-12-11  Robert Dewar  <dewar@gnat.com>
42262
42263         * sem_attr.adb: Minor reformatting
42264
42265 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42266
42267         * sem_ch3.adb: Clarify some ???.
42268
42269 2001-12-11  Robert Dewar  <dewar@gnat.com>
42270
42271         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42272         Exp_Pakd.Known_Aligned_Enough
42273
42274         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42275         version is moved to Exp_Ch13.
42276
42277 2001-12-11  Robert Dewar  <dewar@gnat.com>
42278
42279         * einfo.ads: Minor reformatting
42280
42281         * exp_ch5.adb: Add comment for previous.change
42282
42283         * ali.adb: New interface for extended typeref stuff.
42284
42285         * ali.ads: New interface for typeref stuff.
42286
42287         * checks.adb (Apply_Alignment_Check): New procedure.
42288
42289         * debug.adb: Add -gnatdM for modified ALI output
42290
42291         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42292
42293         * lib-xref.adb: Extend generation of <..> notation to cover
42294         subtype/object types. Note that this is a complete rewrite,
42295         getting rid of the very nasty quadratic algorithm previously
42296         used for derived type output.
42297
42298         * lib-xref.ads: Extend description of <..> notation to cover
42299         subtype/object types. Uses {..} for these other cases.
42300         Also use (..) for pointer types.
42301
42302         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42303
42304         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
42305         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42306
42307 2001-12-11  Vincent Celier  <celier@gnat.com>
42308
42309         * gnatcmd.adb:
42310         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42311         Changed /BIND_ONLY to /ACTIONS=BIND
42312         Changed /LINK_ONLY to /ACTIONS=LINK
42313
42314 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42315
42316         * sem_ch8.adb (Find_Selected_Component): improved search for a
42317         candidate package in case of error.
42318
42319         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42320         chain back on scope stack before reinstalling use clauses.
42321
42322         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42323         is enabled, do not kill the code for the condition, to preserve
42324         warning.
42325
42326 2001-12-11  Robert Dewar  <dewar@gnat.com>
42327
42328         * checks.adb (Insert_Valid_Check): Apply validity check to expression
42329         of conversion, not to result of conversion.
42330
42331 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42332
42333         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42334         before freezing parent. If the declarations are mutually recursive,
42335         an access to the current record type may be frozen before the
42336         derivation is complete.
42337
42338 2001-12-05  Vincent Celier  <celier@gnat.com>
42339
42340         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42341         -c /COMPILE_ONLY, -l /LINK_ONLY
42342
42343         * opt.ads:
42344         (Bind_Only): New Flag
42345         (Link_Only): New flag
42346
42347         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42348         and -l (Link_Only)
42349
42350         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42351
42352         * make.adb:
42353         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42354         (Gnatmake): Set the step flags. Only perform a step if the
42355         corresponding step flag is True.
42356         (Scan_Make_Arg): Reset the bind and link step flags when -u
42357         or -gnatc has been specified.
42358
42359 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42360
42361         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42362         get bounds from right operand.
42363
42364         * sem_eval.adb: Minor reformatting
42365
42366         * exp_util.adb (Make_Literal_Range): use bound of literal rather
42367         than Index'First, its lower bound may be different from 1.
42368
42369         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42370         and C48009J
42371
42372 2001-12-05  Vincent Celier  <celier@gnat.com>
42373
42374         * prj-nmsc.adb Minor reformatting
42375
42376         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42377         set and libraries are not supported.
42378
42379 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42380
42381         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42382         private view explicitly, so the back-end can treat as a global
42383         when appropriate.
42384
42385 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42386
42387         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42388          unit, always replace instance node with new body, for ASIS use.
42389
42390 2001-12-05  Vincent Celier  <celier@gnat.com>
42391
42392         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42393         libraries are not supported and both attributes Library_Name and
42394         Library_Dir are specified.
42395
42396         * prj-proc.adb (Expression): Set location of Result to location of
42397         first term.
42398
42399         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42400         (prj-nmsc is now importing MLib.Tgt)
42401
42402         * prj-proc.adb: Put the change indicated above that was forgotten.
42403
42404 2001-12-05  Robert Dewar  <dewar@gnat.com>
42405
42406         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42407
42408 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42409
42410         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42411         constraint, introduce explicit subtype declaration and derive from it.
42412
42413         * sem_ch3.adb: Minor reformatting
42414
42415 2001-12-05  Robert Dewar  <dewar@gnat.com>
42416
42417         * checks.adb (Determine_Range): Increase cache size for checks.
42418         Minor reformatting
42419
42420         * exp_ch6.adb: Minor reformatting
42421         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42422         a parameter whose root type is System.Address, since treating such
42423         subprograms as pure in the code generator is almost surely a mistake
42424         that will lead to unexpected results.
42425
42426         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42427         change handling of conversions.
42428
42429         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42430
42431 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42432
42433         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42434         aggregate with static wrong size, attach generated Raise node to
42435         declaration.
42436
42437 2001-12-05  Robert Dewar  <dewar@gnat.com>
42438
42439         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42440         Fixes compilation abandoned bomb in B24009B.
42441
42442 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42443
42444         * sem_ch12.adb:
42445         Document use of Associated_Node on Selected_Components.
42446         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42447         to clarify use of untyped descendant fields.
42448
42449 2001-12-05  Robert Dewar  <dewar@gnat.com>
42450
42451         * prj-dect.ads: Add ??? comment
42452         Add 2001 to copyright notice (was not done in after all)
42453
42454         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42455
42456         * prj.ads: Minor reformatting throughout, and add some ??? comments
42457
42458         * snames.ads: Minor reformatting
42459
42460 2001-12-05  Geert Bosch  <bosch@gnat.com>
42461
42462         * snames.adb: Autoupdate
42463
42464 2001-12-05  Vincent Celier  <celier@gnat.com>
42465
42466         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42467
42468         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42469
42470         * prj-env.adb: Minor comment changes (modifying -> extends).
42471
42472         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42473
42474         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42475         Tok_Extends.
42476
42477         * prj.adb (Initialize): Change Modifying to Extends.
42478
42479         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42480
42481         * prj.ads: Minor comment change (Modifying -> extending).
42482
42483         * snames.ads: Change modifying to extends.
42484
42485 2001-12-05  Robert Dewar  <dewar@gnat.com>
42486
42487         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42488         do this after all.
42489
42490         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42491         do this after all.  Add 2001 to copyright notice
42492
42493 2001-12-04  Geert Bosch  <bosch@gnat.com>
42494
42495         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42496
42497 2001-12-04  Robert Dewar  <dewar@gnat.com>
42498
42499         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42500         location if we already have errors. Stops some cases of cascaded
42501         errors.
42502
42503         * errout.adb: Improve comment.
42504
42505 2001-12-04  Robert Dewar  <dewar@gnat.com>
42506
42507         * sem_ch12.adb:
42508         (Analyze_Formal_Type_Definition): Defend against Error.
42509         (Analyze_Formal_Subprogram): Defend against Error.
42510
42511         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42512         remove following semicolon if present. Removes cascaded error.
42513
42514 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42515
42516         * bindgen.adb:
42517         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42518          exceptions equals 0.
42519         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42520         Fixes PIWG E tests (which have to be run with -gnatL).
42521
42522 2001-12-04  Robert Dewar  <dewar@gnat.com>
42523
42524         * einfo.ads: Minor reformatting
42525
42526 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42527
42528         * einfo.ads: Block_Node points to the identifier of the block, not to
42529         the block node itself, to preserve the link when the block is
42530         rewritten, e.g. within an if-statement with a static condition.
42531
42532         * inline.adb (Cleanup_Scopes): recover block statement from block
42533         entity using new meaning of Block_Node.
42534
42535         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42536         identifier of block node, rather than to node itself.
42537
42538 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42539
42540         * layout.adb:
42541         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42542         (Discrimify): Go back to setting the Etypes of the selected component
42543         because the Vname component does not exist at this point and will
42544         fail name resolution. Also set Analyzed.
42545         Remove with and use of Sem_Res.
42546
42547 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42548
42549         * Makefile.in: (HIE_SOURCES): add s-fat*.
42550
42551 2001-12-04  Robert Dewar  <dewar@gnat.com>
42552
42553         * sem_attr.adb:
42554         (Compile_Time_Known_Attribute): New procedure.
42555         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42556          proper range check.
42557
42558 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42559
42560         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42561         processing discriminants to diagnose illegal default values.
42562
42563 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42564
42565         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42566         access discriminant within a type extension that constrains its
42567         parent discriminants.
42568
42569 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42570
42571         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42572         is malformed, use instance of Any_Id to allow analysis to proceed.
42573
42574         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42575         type definition is illegal.
42576         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42577         misplaced.
42578
42579 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42580
42581         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42582         constants.
42583
42584 2001-12-04  Robert Dewar  <dewar@gnat.com>
42585
42586         * errout.adb: Minor reformatting
42587
42588 2001-12-04  Robert Dewar  <dewar@gnat.com>
42589
42590         * exp_util.adb: Minor reformatting from last change
42591
42592         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42593         which is a rewriting of an expression, traverse the original
42594         expression to remove warnings that may have been posted on it.
42595
42596 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42597
42598         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42599         record that has other packed components.
42600
42601 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42602
42603         * adaint.c: Minor cleanups.
42604
42605 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42606
42607         * adaint.c: Do not use utime.h on vxworks.
42608
42609 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42610
42611         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42612         more confusion than it solves.
42613
42614 2001-12-04  Geert bosch  <bosch@gnat.com>
42615
42616         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42617
42618 2001-12-04  Geert Bosch  <bosch@gnat.com>
42619
42620         * Makefile.in (update-sources): New target.
42621         For use by gcc_release script.
42622
42623 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42624
42625         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42626         a configuration pragma, it is now legal wherever a pragma can appear.
42627
42628 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42629
42630         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42631         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42632         is now @CROSS@ -DIN_GCC; update comment.
42633
42634 2001-12-04  Robert Dewar  <dewar@gnat.com>
42635
42636         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42637         Fix problem that stopped ceinfo from working
42638
42639         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42640
42641         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42642
42643 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42644
42645         * gnatchop.adb:
42646         (File_Time_Stamp): New procedure.
42647         (Preserve_Mode): New boolean.
42648         (Write_Unit): Pass time stamp.
42649         Implement -p switch (preserve time stamps).
42650
42651         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42652
42653         * gnatchop.adb: Do usage info for -p switch
42654
42655         * adaint.h (__gnat_set_file_time_name): New function
42656
42657         * adaint.c (__gnat_set_file_time_name): Implement
42658
42659         * adaint.h: Fix typo
42660
42661 2001-12-03  Robert Dewar  <dewar@gnat.com>
42662
42663         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42664         have Associated_Node.
42665
42666 2001-12-03  Robert Dewar  <dewar@gnat.com>
42667
42668         * prj-proc.adb: Minor reformatting
42669
42670         * make.adb: Minor reformatting
42671
42672 2001-12-03  Geert Bosch  <bosch@gnat.com>
42673
42674         * make.adb: Minor reformatting.
42675
42676 2001-12-03 Robert Dewar  <dewar@gnat.com>
42677
42678         * sem_ch12.adb: Minor reformatting
42679
42680 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42681
42682         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42683         push Standard on the stack before analyzing the instance body,
42684         in order to have a clean visibility environment.
42685
42686         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42687
42688 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42689
42690         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42691         instantiation of a body that contains an inlined body.
42692
42693 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42694
42695         * sem_ch12.adb:
42696         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42697         to prevent freezing within formal packages.
42698         (Freeze_Subprogram_Body): If body comes from another instance that
42699         appeared before its own body, place freeze node at end of current
42700         declarative part, to prevent a back-end crash.
42701         (Inline_Instance_Body): Handle properly a package instance within
42702         a subprogram instance that is a child unit.
42703
42704 2001-12-01  Graham Stott  <grahams@redhat.com>
42705
42706         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42707         and add optabs.h dependency.
42708
42709         * misc.c: Include optabs.h
42710         (gnat_tree_code_type): Make static and const.
42711         (gnat_tree_code_length): Likewise.
42712         (gnat_tree_code_name): Likewise.
42713         (update_setjmp_buf): Obtain operands mode from insn_data.
42714
42715 2001-11-29  Richard Henderson  <rth@redhat.com>
42716
42717         * init.c: Remove obsolete dwarf2 frame.h section.
42718
42719 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42720
42721         * Make-lang.in (ada.generated-manpages): New dummy target.
42722
42723 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42724
42725         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42726         into Command, an array conversion is illegal here. Uncovered by
42727         ACATS B460005.
42728
42729 2001-11-28  Geert Bosch  <bosch@gnat.com>
42730
42731         * init.c: Minor whitespace changes.
42732
42733 2001-11-28  Doug Rupp  <rupp@gnat.com>
42734
42735         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42736         signal stack.
42737
42738 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42739
42740         * misc.c (gnat_expand_constant): Move declaration above
42741         definition of lang_hooks.
42742         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42743         (gnat_init): lang_expand_constant no longer exists.
42744
42745         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42746         always have vprintf.
42747         (gnat_init): Always call set_internal_error_function.
42748
42749 2001-11-27  Andreas Jaeger  <aj@suse.de>
42750
42751         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42752
42753 2001-11-27  Laurent Guerby  <guerby@acm.org>
42754
42755         * Makefile.in: Regenerate Ada dependencies.
42756
42757 2001-11-26  Richard Henderson  <rth@redhat.com>
42758
42759         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42760         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42761         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42762
42763 2001-11-25  Laurent Guerby  <guerby@acm.org>
42764
42765         * sysdep.c (rts_get_*): Fix style.
42766
42767 2001-11-19  Laurent Guerby  <guerby@acm.org>
42768
42769         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42770         since it is of no apparent use and cause warnings.
42771
42772 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42773
42774         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42775         static too.
42776         (gnat_init): Don't return NULL.
42777         (finish_parse): Remove.
42778
42779 2001-11-17  Laurent Guerby  <guerby@acm.org>
42780
42781         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42782         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42783         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42784         * lang-spec.h: Add missing struct field to silence warnings.
42785         * sysdep.c (rts_get_*): Provide K&R prototype.
42786         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42787         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42788         * tracebak.c (__gnat_backtrace): Remove unused variable.
42789         * utils.c (end_subprog_body): Move to K&R style.
42790
42791 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42792
42793         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42794
42795 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42796
42797         * misc.c (gnat_init): Change prototype.  Include the
42798         functionality of the old init_parse and init_decl_processing.
42799         (gnat_init_decl_processing): New prototype.
42800         (init_parse): Remove.
42801         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42802
42803 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42804
42805         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42806         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42807         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42808         set_yydebug): Remove.
42809
42810 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42811
42812         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42813         (struct lang_hooks): Constify.
42814         (language_string, lang_identify): Remove.
42815         * utils.c (init_decl_processing): Update.
42816
42817 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42818
42819         * misc.c: Include langhooks-def.h.
42820         * Makefile.in: Update.
42821
42822 2001-10-30  Robert Dewar  <dewar@gnat.com>
42823
42824         * style.adb:
42825         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42826         in the upper half of ASCII.
42827         (Check_Identifier): Minor reformatting
42828
42829 2001-10-30  Geert Bosch  <bosch@gnat.com>
42830
42831         * (Associated_Node, Set_Associated_Node): Do not check for
42832         Freeze_Entity.
42833
42834 2001-10-30  Robert Dewar  <dewar@gnat.com>
42835
42836         * a-reatim.ads: Minor reformatting
42837
42838 2001-10-30  Robert Dewar  <dewar@gnat.com>
42839
42840         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42841         undocumented declarations.
42842
42843 2001-10-30  Pascal Obry  <obry@gnat.com>
42844
42845         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42846         to the binder and linker.
42847         Minor style fix.
42848
42849         * mdll.ads: Fix layout.  Update copyright notice.
42850
42851         * mdll.adb: Fix layout.  Update copyright notice.
42852
42853 2001-10-30  Robert Dewar  <dewar@gnat.com>
42854
42855         * usage.adb: Minor fix to output for -gnaty.
42856
42857 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42858
42859         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42860         to accommodate all its possible values.
42861
42862         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42863         and of small absolute values of T.
42864
42865 2001-10-30  Richard Kenner  <kenner@gnat.com>
42866
42867         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42868         set_mem_attributes since not needed and wrong if RESULT if a REG;
42869         fixes ACATS failures.
42870
42871 2001-10-30  Geert Bosch  <bosch@gnat.com>
42872
42873         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42874         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42875
42876 2001-10-30  Robert Dewar  <dewar@gnat.com>
42877
42878         * bindusg.adb: Undocument -f switch.
42879
42880         * gnatcmd.adb: Remove /FULL_ELABORATION.
42881
42882         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42883         obsolescent.
42884
42885         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42886
42887         * gnatbind.adb: Minor update of warning msg.
42888
42889 2001-10-30  Vincent Celier  <celier@gnat.com>
42890
42891         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42892         for project file switches (-P (/PROJECT_FILE=),
42893          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42894         or MEDIUM or HIGH)
42895
42896 2001-10-30  Geert Bosch  <bosch@gnat.com>
42897
42898         * decl.c: Minor whitespace fixes.
42899
42900 2001-10-30  Richard Kenner  <kenner@gnat.com>
42901
42902         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42903
42904 2001-10-30  Geert Bosch  <bosch@gnat.com>
42905
42906         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42907         Found due to GCC 3.0 warning of using uninitialized value.
42908
42909         * layout.adb:
42910         (Get_Max_Size): Use variant record for tracking value/expression.
42911          Makes logic clearer and prevents warnings for uninitialized variables.
42912         (Layout_Array_Type): Use variant record for tracking value/expression.
42913          Makes logic clearer and prevents warnings for uninitialized variables.
42914
42915 2001-10-30  Robert Dewar  <dewar@gnat.com>
42916
42917         * lib.adb: Minor reformatting
42918
42919         * s-taprop.ads: Minor reformatting
42920
42921 2001-10-29  Laurent Guerby  <guerby@acm.org>
42922
42923         * init.c:
42924         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42925         const.
42926         (_gnat_error_handler): Make MSG const.
42927
42928 2001-10-29  Richard Kenner  <kenner@gnat.com>
42929
42930         * sysdep.c: Fix localtime_r problem on LynxOS.
42931         Also remove #elif to avoid warnings.
42932
42933         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42934         used by this.
42935
42936         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42937
42938 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42939
42940         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42941         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42942         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42943         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42944         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42945         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42946         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42947         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42948         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42949         types.ads, urealp.adb: Fix spelling errors.
42950
42951 2001-10-27  Laurent Guerby  <guerby@acm.org>
42952
42953         * trans.c (gigi): Fix non determinism leading to bootstrap
42954         comparison failures for debugging information.
42955
42956 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42957
42958         * gnat_rm.texi: Use @./@: where appropriate.
42959
42960 2001-10-26  Robert Dewar  <dewar@gnat.com>
42961
42962         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42963
42964 2001-10-26  Richard Kenner  <kenner@gnat.com>
42965
42966         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42967
42968 2001-10-26  Richard Kenner  <kenner@gnat.com>
42969
42970         * decl.c (validate_size): Modify message for bad size to avoid
42971         implication that compiler is modifying the size.
42972
42973 2001-10-26  Robert Dewar  <dewar@gnat.com>
42974
42975         * prj-util.adb: Minor reformatting. Fix bad header format.
42976
42977 2001-10-26  Robert Dewar  <dewar@gnat.com>
42978
42979         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42980
42981         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42982
42983         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42984         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42985         much more narrowly in places where needed. These are cleanups.
42986
42987 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42988
42989         * 5zosinte.ads (null_pthread): new constant.
42990
42991         * 5ztaprop.adb:
42992         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42993          later that this field has been set.
42994         (Finalize_TCB): ditto.
42995         (Suspend_Task): Verify that the thread ID is not null before using it.
42996         (Resume_Task): ditto.
42997
42998         * s-tasdeb.adb:
42999         (Resume_All_Tasks): Lock the tasks list before using it.
43000         (Suspend_All_Tasks): ditto.
43001
43002 2001-10-26  Richard Kenner  <kenner@gnat.com>
43003
43004         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43005         Make constant variant of designated type for Is_Access_Constant.
43006         Call update_pointer_to with main variant.
43007
43008         * trans.c (process_freeze_entity, process_type):
43009         Call update_pointer_to on main variant.
43010
43011         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43012         If main variant, update all other variants.
43013
43014         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43015         TREE_STATIC.
43016
43017 2001-10-26  Robert Dewar  <dewar@gnat.com>
43018
43019         * prj-util.adb: Minor reformatting
43020
43021 2001-10-26  Robert Dewar  <dewar@gnat.com>
43022
43023         * prj-util.adb: Minor reformatting
43024
43025 2001-10-26  Robert Dewar  <dewar@gnat.com>
43026
43027         * prj-attr.adb: Minor reformatting throughout
43028
43029 2001-10-26  Robert Dewar  <dewar@gnat.com>
43030
43031         * prj-attr.ads: Minor reformatting
43032         Add ??? comment (this whole spec has almost no comments)
43033
43034 2001-10-26  Vincent Celier  <celier@gnat.com>
43035
43036         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43037         ("//") that precede the drive letter on Interix.
43038
43039 2001-10-26  Geert Bosch  <bosch@gnat.com>
43040
43041         * gnat_rm.texi: Add GNAT Reference Manual.
43042
43043 2001-10-25  Robert Dewar  <dewar@gnat.com>
43044
43045         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43046         is Error. Similar change for other renaming cases.
43047
43048 2001-10-25  Robert Dewar  <dewar@gnat.com>
43049
43050         * s-atacco.ads: Add pragma Inline_Always for functions.
43051         Fix header format. Add copyright 2001
43052
43053 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43054
43055         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43056         return Error rather than Empty so that analysis can proceed.
43057
43058 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43059
43060         * sem_util.adb (Enter_Name): better handling of cascaded error
43061         messages when a unit appears in its own context.
43062
43063 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43064
43065         * sem_util.adb (Defining_Entity): in case of error, attach created
43066         entity to specification, so that semantic analysis can proceed.
43067
43068 2001-10-25  Robert Dewar  <dewar@gnat.com>
43069
43070         * sem_util.adb
43071         (Defining_Entity): Deal with Error.
43072         (Process_End_Label): Deal with bad end label for.
43073
43074 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43075
43076         * sem_elab.adb (Check_A_Call): refine message when call is in an
43077         instance but callee is not declared in the generic unit.
43078
43079 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43080
43081         * sem_elab.adb (Check_A_Call): check for renaming before finding the
43082         enclosing unit, which may already be different from the calling unit.
43083
43084 2001-10-25  Geert Bosch  <bosch@gnat.com>
43085
43086         * 4gintnam.ads: fix header format.
43087
43088 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43089
43090         * sem_res.adb (Resolve_Call): if the call is actually an indexing
43091         operation on the result of a parameterless call, perform elaboration
43092         check after the node has been properly rewritten.
43093
43094         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43095         inlined within the generic tree, the defining identifier is not a
43096         compilation_unit.
43097
43098 2001-10-25  Ed Schonberg  <schonber@gnat.com>
43099
43100         * sem_res.adb (Resolve): special-case resolution of Null in an
43101          instance or an inlined body to avoid view conflicts.
43102
43103         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43104          compatibility by retrieving the access type of the generic copy.
43105
43106 2001-10-25  Robert Dewar  <dewar@gnat.com>
43107
43108         * sem_ch3.adb:
43109         (Analyze_Number_Declaration): Handle error expression.
43110         (Signed_Integer_Type_Declaration): Handle error bound.
43111         (Analyze_Subtype_Indication): Handle error range.
43112
43113         * sem_util.adb (Get_Index_Bounds): Check for Error.
43114
43115 2001-10-25  Robert Dewar  <dewar@gnat.com>
43116
43117         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43118         in no run time mode.
43119
43120 2001-10-25  Pascal Obry  <obry@gnat.com>
43121
43122         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43123         mode case for ALLOC case.
43124
43125         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43126         all platforms. Improvement of last change.
43127
43128 2001-10-25  Robert Dewar  <dewar@gnat.com>
43129
43130         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43131
43132 2001-10-25  Geert Bosch  <bosch@gnat.com>
43133
43134         * osint.adb (Is_Relative): Remove duplicate.
43135
43136 2001-10-25  Pascal Obry  <obry@gnat.com>
43137
43138         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43139         pathnames in UNIX and DOS style with drive letter.
43140         (Is_Relative): new routine.
43141
43142         * osint.adb: Minor reformatting
43143
43144         * osint.adb (Is_Relative): implementation using
43145         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43146
43147 2001-10-25  Pascal Obry  <obry@gnat.com>
43148
43149         * g-dirope.adb (Basename): correctly compute offset between the
43150         original Path and the translated one.
43151
43152         * g-dirope.adb: (Base_Name): add some comments.
43153
43154 2001-10-25  Robert Dewar  <dewar@gnat.com>
43155
43156         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43157         in HIE mode, avoids compilation abandoned message
43158
43159         * exp_imgv.adb: Correct typo in previous change
43160
43161         * exp_imgv.adb: Correct typo in previous change (not my day!)
43162
43163 2001-10-25  Robert Dewar  <dewar@gnat.com>
43164
43165         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43166
43167 2001-10-25  Pascal Obry  <obry@gnat.com>
43168
43169         * g-awk.ads: Move all pragma inlines next to the routine
43170          declarations. This is more uniform with other GNAT spec.
43171
43172 2001-10-22  Geert Bosch  <bosch@gnat.com>
43173
43174         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43175
43176 2001-10-19  Geert Bosch  <bosch@gnat.com>
43177
43178         * Makefile.in (tools, gnattools): Remove gnatmem.
43179
43180 2001-10-17  Richard Henderson  <rth@redhat.com>
43181
43182         * Makefile.in (misc.o): Depend on langhooks.h.
43183         * misc.c: Include it.
43184         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43185         (LANG_HOOKS_DECODE_OPTION): New.
43186         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43187
43188 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
43189
43190         * trans.c (tree_transform): Adjust to recent change in
43191         expand_asm_operands to implement named asm operands.
43192
43193 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43194
43195         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43196         renaming of discriminant for mutable record type.
43197
43198 2001-10-11  Robert Dewar  <dewar@gnat.com>
43199
43200         * validsw.adb: Properly save -gnatVn status.
43201
43202 2001-10-11  Robert Dewar  <dewar@gnat.com>
43203
43204         * usage.adb: Add lines for V switch.
43205
43206         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43207         (/VALIDITY_CHECKING).
43208
43209 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43210
43211         * sem_type.adb (Add_One_Interp): an operator for a type declared in
43212         an extension of System is known to be visible.
43213
43214 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43215
43216         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43217         properly. Fixes regression on ACATS C34005G.
43218
43219 2001-10-11  Robert Dewar  <dewar@gnat.com>
43220
43221         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43222         loop in generic instance, since this is likely not very useful.
43223
43224 2001-10-11  Robert Dewar  <dewar@gnat.com>
43225
43226         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43227         the error message for high integrity mode.
43228
43229         * rtsfind.adb (RTE): Give message if we try to find an entity that
43230         is not available in high integrity mode.
43231
43232         * rtsfind.ads:
43233         (OK_To_Use_In_HIE_Mode): New array.
43234         (RTE): May return Empty in high integrity mode.
43235
43236         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43237         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43238
43239         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43240         unit if not inlined always and in no runtime mode. Fixes problem
43241         caused by new Rtsfind changes.
43242
43243         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43244         body is deleted.
43245
43246         * rtsfind.adb (RTE): Make sure we do not try to load unit after
43247         giving message for entity not available in high integrity mode.
43248
43249 2001-10-11  Pascal Obry  <obry@gnat.com>
43250
43251         * impunit.adb: Add GNAT.CRC32.
43252
43253 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43254
43255         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43256         properly the case where one universal operand in a non-static
43257         exponentiation of a real literal.
43258
43259 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43260
43261         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43262         clause, return the gobal finalization list, for lack of anthing else.
43263
43264 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43265
43266         * exp_ch7.adb (Make_Transient_Block): if statement is within
43267         exception handler, always use new transient scope to place Clean
43268         procedure.
43269
43270 2001-10-11  Pascal Obry  <obry@gnat.com>
43271
43272         * Makefile.in:
43273         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43274         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43275         (GNATLS_RTL_OBJS): add g-crc32.o
43276         (GNATMAKE_RTL_OBJS): add g-crc32.o
43277
43278         * ali-util.adb:
43279         (CRC_Match): new function.
43280         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43281         instead of the previous simple checksum algorithm.
43282         (Time_Stamp_Mismatch): use CRC_Match for comparison.
43283         (Set_Source_Table): idem.
43284
43285         * ali-util.ads:
43286         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43287         instead of simple checksum.
43288         (CRC_Match): new function.
43289         (CRC_Error): new constant.
43290
43291         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43292         a CRC now and not a simple checksum. A CRC uses lower-case hex
43293         letters, fixes ambiguity in parsing.
43294
43295         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43296         is what this variable will store.
43297
43298         * bcheck.adb: Change reference to chechsum in comments by CRC.
43299         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43300         rename All_Checksum_Match to All_CRC_Match. Change due to API
43301         renaming since now GNAT does not use a simple checksum but a
43302         CRC using GNAT.CRC32.
43303
43304         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43305         now and not anymore a simple checksum.
43306
43307         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43308         places.
43309
43310         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43311
43312         * scans.adb:
43313         (Restore_Scan_State): rename Checksum to CRC.
43314         (Save_Scan_State): idem.
43315
43316         * scans.ads:
43317         With GNAT.CRC32.
43318         (Checksum): rename to CRC.
43319         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43320
43321         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43322         GNAT.CRC32).  Update copyright notice.
43323
43324         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43325         GNAT.CRC32).  Update copyright notice.
43326
43327         * scn.adb:
43328         (Accumulate_Checksum): removed.
43329         (Update): new procedure. Add a wide-character into the CRC.
43330
43331         * sinput-l.adb:
43332         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43333         (Load_File): fix initialization of S (change Source_Checksum to
43334         Source_CRC)
43335
43336         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43337         Source_CRC in S initialization.
43338
43339         * sinput.adb (Source_Checksum): renamed to Source_CRC.
43340
43341         * sinput.ads (Source_Checksum): renamed to Source_CRC.
43342         Update comments for the CRC.
43343
43344         * types.adb (Hex): Use lowercase for the letter part.
43345
43346         * types.ads (Get_Hex_String): Returns the hexadecimal representation
43347         for a word. This is currently used only for CRC. In previous version,
43348         the checksum was using a representation with all letter being
43349         upper-case. With the new implementation (using CRC) we do not remove
43350         the 32th bit of the CRC, so we can have an upper-case starting letter
43351         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43352         It is ambigous since the CRC was optional and could be followed by
43353         options like EB, EE. So now this routines uses lower-case letter for
43354         the hexadecimal representation. Strange enough only lower case letters
43355         where checked in Scan_ALI (even if this was not a possible case).
43356
43357         * gnatvsn.ads (Library_Version): changed to 3.15a.
43358
43359         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43360         for the compiler.
43361
43362         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43363         for the compiler.
43364
43365         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43366         Add 2001 to copyright notice
43367         (Accumulate_Checksum): Modify to use System.CRC32.
43368
43369         * ali-util.ads: Redo changes of previous revision to continue to use
43370         the word Checksum. Add 2001 to copyright notice.
43371
43372         * ali.adb: Undo some of previous changes, not needed.
43373         Keep the change for lower case letters in the checksum.
43374
43375         * ali.ads: Undo previous change not needed.
43376
43377         * bcheck.adb: Undo most of previous change, not needed.
43378         But do use Checksums_Match for checksum comparison.
43379
43380         * gnatls.adb: Undo most of previous change, not needed.
43381         But do use Checksums_Match for comparing checksums.
43382
43383         * lib-load.adb: Undo previous change, not needed.
43384
43385         * lib-writ.adb: Undo previous change, not needed.
43386
43387         * lib-writ.ads: Document that checksums use lower case,
43388         not upper case letters.
43389
43390         * scans.adb: Undo previous change, not needed
43391
43392         * scans.ads: Undo previous change, not needed.
43393
43394         * scn-nlit.adb: Undo previous changes, not needed.
43395
43396         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43397
43398         * scn.adb:
43399         (Accumulate_Checksum): Use System.CRC32.
43400         (Initialize_Checksum): New procedure.
43401         Remove other changes of previous revision.
43402
43403         * sinput-p.adb: Undo previous change, not needed.
43404
43405         * sinput.adb: Undo previous change, not needed.
43406
43407         * sinput-l.adb: Undo previous change, not needed.
43408
43409         * sinput.ads: Undo previous change, not needed.  Keep only comment
43410         on new checksum algorithm
43411
43412         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43413         Also remove a-tags and a-stream from GNAT sources.
43414
43415         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43416
43417         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43418
43419 2001-10-11  Geert Bosch  <bosch@gnat.com>
43420
43421         * einfo.h: Regenerate.
43422
43423         * nmake.ads: Regenerate.
43424
43425         * nmake.adb: Regenerate.
43426
43427         * sinfo.h: Regenerate.
43428
43429         * treeprs.adb: Regenerate.
43430
43431 2001-10-10  Geert Bosch  <bosch@gnat.com>
43432
43433         * gnat-style.texi: New file describing coding guidelines for Ada.
43434
43435 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43436
43437         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43438         is Flag174.
43439
43440 2001-10-10  Geert Bosch  <bosch@gnat.com>
43441
43442         * snames.ads: Add new names for project facility.
43443
43444         * snames.adb: Update to reflect snames.ads changes.
43445
43446         * snames.h: Update to reflect snames.ads changes.
43447
43448 2001-10-10  Vincent Celier  <celier@gnat.com>
43449
43450         * make.adb:
43451         (Add_Switches): reflect the changes for the switches attributes
43452         Default_Switches indexed by the programming language,
43453         Switches indexed by the file name.
43454         (Collect_Arguments_And_Compile): Idem.
43455         Reflect the attribute name changes.
43456
43457         * prj-attr.adb:
43458         (Initialisation_Data): Change the names of some packages and
43459         attributes.
43460         (Initialize): process case insensitive associative arrays.
43461
43462         * prj-attr.ads:
43463         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43464
43465         * prj-dect.adb:
43466         (Parse_Attribute_Declaration): For case insensitive associative
43467          arrays, set the index string to lower case.
43468
43469         * prj-env.adb:
43470         Reflect the changes of the project attributes.
43471
43472         * prj-nmsc.adb:
43473         Replace Check_Naming_Scheme by Ada_Check and
43474         Language_Independent_Check.
43475
43476         * prj-nmsc.ads:
43477         Replaced Check_Naming_Scheme by 2 procedures:
43478         Ada_Check and Language_Independent_Check.
43479
43480         * prj-proc.adb:
43481         (Process_Declarative_Items): For case-insensitive associative
43482         arrays, set the index string to lower case.
43483         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43484         Prj.Nmsc.Check_Naming_Scheme.
43485
43486         * prj-tree.adb:
43487         (Case_Insensitive): New function
43488         (Set_Case_Insensitive): New procedure
43489
43490         * prj-tree.ads:
43491         (Case_Insensitive): New function
43492         (Set_Case_Insensitive): New procedure
43493         (Project_Node_Record): New flag Case_Insensitive.
43494
43495         * prj-util.adb:
43496         (Value_Of): new function to get the string value of a single
43497         string variable or attribute.
43498
43499         * prj-util.ads:
43500         (Value_Of): new function to get the string value of a single
43501         string variable or attribute.
43502
43503         * prj.adb:
43504         (Ada_Default_Spec_Suffix): New function
43505         (Ada_Default_Impl_Suffix): New function
43506         Change definitions of several constants to reflect
43507         new components of record types.
43508
43509         * prj.ads:
43510         (Naming_Data): Change several components to reflect new
43511         elements of naming schemes.
43512         (Project_Data): New flags Sources_Present and
43513         Language_Independent_Checked.
43514         (Ada_Default_Spec_Suffix): New function.
43515         (Ada_Default_Impl_Suffix): New function.
43516
43517         * snames.ads:
43518         Modification of predefined names for project manager: added
43519         Implementation, Specification_Exceptions, Implementation_Exceptions,
43520         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43521         Default_Switches, _Languages, Builder, Cross_Reference,
43522         Finder. Removed Body_Part, Specification_Append, Body_Append,
43523         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43524         Gnatlink.
43525
43526         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43527         Add comments.
43528
43529         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43530         not that it is Nil_Variable_Value.
43531
43532         * prj.ads: Add ??? for uncommented declarations
43533
43534 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43535
43536         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43537         constant, do not indicate possible modification, so that gigi can
43538         treat it as a bona fide constant.
43539
43540 2001-10-10  Robert Dewar  <dewar@gnat.com>
43541
43542         * sem_prag.adb: Add processing for pragma External.
43543
43544         * snames.ads: Add entry for pragma External.
43545
43546         * par-prag.adb: Add pragma External.
43547
43548         * snames.adb: Updated to match snames.ads.
43549
43550 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43551
43552         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43553         a dynamic task if the allocator appears in an indexed assignment
43554         or selected component assignment.
43555
43556         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43557         For a dynamic task in an assignment statement, use target of
43558         assignment to generate meaningful name.
43559
43560 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43561
43562         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43563         a generic package.
43564
43565         * einfo.ads: Body_Entity is also defined for generic package.
43566         Documentation change only
43567
43568         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43569         others_choice for a discriminated component initialization,
43570         convert discriminant references into the corresponding discriminals.
43571
43572         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43573         only if original type is private and expression has to be wrapped
43574         in a conversion.
43575
43576         * checks.adb:
43577         (Apply_Constraint_Check): Do not perform length check
43578         if expression is an aggregate with only an others_choice.
43579         (Length_N_Cond): two references to the same in_parameter
43580         (typically the discriminal in an init_proc) denote the same value.
43581         Two useful optimization uncovered by bugfixes above.
43582
43583 2001-10-10  Robert Dewar  <dewar@gnat.com>
43584
43585         * xeinfo.adb: Change int to char in translation of enumeration types.
43586         This fixes a problem in the C representation of component alignment.
43587         Add 2001 to copyright notice
43588
43589 2001-10-10  Richard Kenner  <kenner@gnat.com>
43590
43591         * decl.c: (validate_size): Do check size of object of integral type
43592         if it is a packed array type.
43593
43594 2001-10-10  Richard Kenner  <kenner@gnat.com>
43595
43596         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43597         VAR_DECL for constant if not Is_Public but -O0.
43598
43599 2001-10-10  Richard Kenner  <kenner@gnat.com>
43600
43601         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43602
43603 2001-10-10  Geert Bosch  <bosch@gnat.com>
43604
43605         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43606         use '/' as switch character, allowing for absolute file names.
43607
43608 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43609
43610         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43611         FSF address.
43612
43613 2001-10-08  Geert Bosch  <bosch@gnat.com>
43614
43615         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43616         Automatically build utilities when files need to be regenerated.
43617
43618 2001-10-08  Geert Bosch  <bosch@gnat.com>
43619
43620         * xsnames.adb: New utility for updating snames.ads and snames.adb
43621
43622 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43623
43624         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43625         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43626         (gnat1): Also depend on attribs.o.
43627         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43628         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43629         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43630         (ADAFLAGS): Add -W -Wall.
43631         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43632         take out CFLAGS.
43633
43634         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43635         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43636         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43637         Use $(ADAC), not $(CC), as compilation command.
43638
43639         (gnattools): Depend directly on tools to build, don't use
43640         recursive make.
43641         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43642
43643         * einfo.h, sinfo.h: New files (autogenerated).
43644
43645 2001-10-08  Richard Henderson  <rth@redhat.com>
43646
43647         * comperr.adb (Abort_In_Progress): New.
43648         (Compiler_Abort): Use it to prevent recursion.
43649
43650 2001-10-08  Robert Dewar  <dewar@gnat.com>
43651
43652         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43653
43654         * par-endh.adb (Output_End_Expected): We should also not test
43655         Error_Posted on the Error node, since now it is always set.
43656
43657         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43658         to help error recovery. Part of general work on 9407-004.
43659
43660         * par.adb: Add ??? for misuse of error
43661
43662         * sem_res.adb:
43663         (Resolve): Defend against Error, fixes 9407-003.
43664         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43665
43666         * sinfo.ads (N_Error): Now has Etype field (which will be set
43667         to Any_Type to help error recovery).
43668
43669 2001-10-08  Richard Kenner  <kenner@gnat.com>
43670
43671         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43672         Consistently set MEM attributes from expression; fixes
43673         bootstrap failure on x86.
43674
43675 2001-10-08  Geert Bosch  <bosch@gnat.com>
43676
43677         * 5oosinte.adb: Add 2001 to copyright notice.
43678
43679 2001-10-08  Geert Bosch  <bosch@gnat.com>
43680
43681         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43682
43683         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43684
43685 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43686
43687         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43688
43689 2001-10-05  Geert Bosch  <bosch@gnat.com>
43690
43691         * adaint.h: Small formatting fix.
43692
43693 2001-10-04  Geert Bosch  <bosch@gnat.com>
43694
43695         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43696         Arg is int, not FILE *, in dummy version of functions.
43697
43698         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43699         Arg is int, not FILE *.
43700
43701 2001-10-04  Geert Bosch  <bosch@gnat.com>
43702
43703         * 3lsoccon.ads: Added file, missed with initial check ins.
43704
43705         * 4lintnam.ads: Fix header format.
43706         Change Linux to GNU/Linux.
43707
43708         * 5iosinte.adb: Change Linux to GNU/Linux.
43709
43710         * 5iosinte.ads: Change Linux to GNU/Linux.
43711
43712         * 5itaprop.adb: Change Linux to GNU/Linux.
43713
43714         * 5itaspri.ads: Change Linux to GNU/Linux.
43715         Update copyright notice.
43716
43717         * 5lintman.adb: Change Linux to GNU/Linux.
43718
43719         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43720
43721         * 5losinte.ads: Change Linux to GNU/Linux.
43722
43723         * 5lsystem.ads: Change Linux to GNU/Linux.
43724
43725         * 5qosinte.adb: Change Linux to GNU/Linux.
43726
43727         * 5qosinte.ads: Change Linux to GNU/Linux.
43728
43729         * 5qparame.ads: Change Linux to GNU/Linux.
43730
43731         * 5qtaprop.adb: Change Linux to GNU/Linux.
43732
43733         * 5qtaspri.ads: Change Linux to GNU/Linux.
43734         Add 2001 to copyright notice.
43735
43736         * 5vintman.ads: Change Linux to GNU/Linux.
43737         Fix header format.  Add 2001 to copyright notice.
43738
43739         * g-soccon.ads: Change Linux to GNU/Linux.
43740
43741         * g-trasym.ads: Change Linux to GNU/Linux.
43742         Add 2001 to copyright notice.
43743
43744         * memtrack.adb: Change Linux to GNU/Linux.
43745
43746         * s-intman.ads: Change Linux to GNU/Linux.
43747         Add 2001 to copyright notice.  Fix header format.
43748
43749         * s-stache.adb: Change Linux to GNU/Linux.
43750
43751         * adaint.c: Change Linux to GNU/Linux.
43752
43753         * cio.c: Change Linux to GNU/Linux.
43754
43755         * cstreams.c: Change Linux to GNU/Linux.
43756
43757         * init.c: Change Linux to GNU/Linux.
43758
43759         * gmem.c: Change Linux to GNU/Linux.
43760
43761         * tracebak.c: Change Linux to GNU/Linux.
43762
43763
43764 2001-10-02  Geert Bosch  <bosch@gnat.com>
43765
43766         * misc.c (insert_default_attributes): Add dummy version.